# Simple Drag and Drop question

**URL:** <https://forum.kirupa.com/t/simple-drag-and-drop-question/213165>\
**Category:** flash\
**Created:** [January 17, 2007, 11:41am UTC](https://forum.kirupa.com/t/simple-drag-and-drop-question/213165 "2007-01-17T11:41:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ziggywiggy](https://avatars.discourse-cdn.com/v4/letter/z/ecccb3/32.png) [@ziggywiggy](https://forum.kirupa.com/u/ziggywiggy)\
**Post date:** [January 17, 2007, 11:41am UTC](https://forum.kirupa.com/t/simple-drag-and-drop-question/213165/1 "2007-01-17T11:41:36Z")

</div>

I have a movie (i.e. “dragMov”) which is loaded by another flash file (i.e. “mainFile”). So the root is mainFile. This code is inside a button in dragMov (doesn’t work when mainFile is played - works when dragMov is played):

```auto
 
on(release) {
 stopDrag ();        
 
 if (this._droptarget != "/target1" ) {
 
   blahblahblahblah 
 }
 
 else {
   blahblahblahblah 
 }
 
}

```

I am guessing that “/target1” is equal to \_root.target1. How can I change it so that it refers to dragMov’s target1, not the root’s?

I could put the code in another layer, instead of inside the button, but I just wanna know how… :book:

I am not sure how mainFile loads the movie, because it is inside our LMS and I just upload them over the net.
