# Help, i dont understand this, parent in my own code :(

**URL:** https://forum.kirupa.com/t/help-i-dont-understand-this-parent-in-my-own-code/326470
**Category:** Uncategorized
**Created:** [December 16, 2011, 4:21pm UTC](https://forum.kirupa.com/t/help-i-dont-understand-this-parent-in-my-own-code/326470 "2011-12-16T16:21:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![daush](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@daush](https://forum.kirupa.com/u/daush)
#### Post date: [December 16, 2011, 4:21pm UTC](https://forum.kirupa.com/t/help-i-dont-understand-this-parent-in-my-own-code/326470/1 "2011-12-16T16:21:23Z")

</div>

Hi there, i’m trying to do a drag and drop, works fine but idk why 😕

i have this code

```auto

if (mcTMP.dropTarget != null) {
  for (var i:Number=0; i<=hit; i++) {
   if (mcTMP.dropTarget.parent == this["hit" + i]) {
    this["lin" + i].appendText(mcTMP.name.substring(2, mcTMP.name.length));
    lins* = uint(this["lin" + i].text);
    break;
   }
  }
 }

```

mcTMP is a movieClip = e.target from mouseUp.

So, im inside mcTMP mouseUP, if i drop target hit0 movieclip i got a number. ok  
but…if im inside mcTMP, should be: mcTMP.dropTargert == parent.hit0 (coz hit0 its outside mcTMP), but i have to use THIS to work :/, as well lin0 movieclip, this.lin0?? lin0 its also outside mcTMP, should be parent.lin0

why it is still working??

thanks
