# \_parent. or \_root.?

**URL:** <https://forum.kirupa.com/t/-parent-or--root/101171>\
**Category:** Uncategorized\
**Created:** [February 6, 2004, 7:13pm UTC](https://forum.kirupa.com/t/-parent-or--root/101171 "2004-02-06T19:13:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhunki](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@mhunki](https://forum.kirupa.com/u/mhunki)\
**Post date:** [February 6, 2004, 7:13pm UTC](https://forum.kirupa.com/t/-parent-or--root/101171/1 "2004-02-06T19:13:42Z")

</div>

I have created a dropzone on the main stage where, when a dragged item is placed it deletes, basically a trash can.

All works fine with this code when both the item and the trash can are on the same level.

onClipEvent (mouseDown) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse)) {  
this.startDrag();  
}  
}  
onClipEvent (mouseUp) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse)) {  
this.stopDrag();

```
if (_root.dropzone.hitTest(this._x,this._y,true)) {
	unloadMovie(this);
}

```

}  
}

However the item a movieclip, is placed within a palette, another movie clip. I’ve tried variations of \_root. and \_parent. but can’t get it to function, anyone any ideas?
