# Hmzz, \_parent not working?

**URL:** <https://forum.kirupa.com/t/hmzz--parent-not-working/127113>\
**Category:** Uncategorized\
**Created:** [October 30, 2004, 2:59pm UTC](https://forum.kirupa.com/t/hmzz--parent-not-working/127113 "2004-10-30T14:59:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![3pinter](https://avatars.discourse-cdn.com/v4/letter/3/9de053/32.png) [@3pinter](https://forum.kirupa.com/u/3pinter)\
**Post date:** [October 30, 2004, 2:59pm UTC](https://forum.kirupa.com/t/hmzz--parent-not-working/127113/1 "2004-10-30T14:59:56Z")

</div>

Well, I’ve applied this piece of as1 to a mc of mine. But this is not working at all…  
If I change \_parent to \_root, everything works just fine but this .swf-file is loaded externally so I have to change all the \_root’s to \_parent’s.  
And that’s not working.

```auto
_parent.webdesigns01.onPress = function() {
	var marginX = this._xmouse;
	var marginY = this._ymouse;
	this.onEnterFrame = function() {
		this._x = _parent._xmouse-marginX;
		this._y = _parent._ymouse-marginY;
	};
};
_parent.webdesigns01.onRelease = function() {
	delete this.onEnterFrame;
};

```

Anyone an idea.
