# Help with dragging a nested MC around global stage

**URL:** https://forum.kirupa.com/t/help-with-dragging-a-nested-mc-around-global-stage/149767
**Category:** flash
**Created:** [June 1, 2005, 4:31am UTC](https://forum.kirupa.com/t/help-with-dragging-a-nested-mc-around-global-stage/149767 "2005-06-01T04:31:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mindfriction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mindfriction/32/172_2.png) [@mindfriction](https://forum.kirupa.com/u/mindfriction)
#### Post date: [June 1, 2005, 4:31am UTC](https://forum.kirupa.com/t/help-with-dragging-a-nested-mc-around-global-stage/149767/1 "2005-06-01T04:31:25Z")

</div>

Hi guys,

I have a simple popup dialog box which exists in a movieclip within the timeline of a loaded movie. I would like to be able to drag this dialog within the bounds of the parent movie (i.e. global stage) and not be confined to the dialogs parent clip and ultimately parent movie. …Hope that makes sense!?

Within my dialog\_mc I have a clip called drag\_mc which the user clicks to drag dialog (the specifics are below)

Path:  
\_root.site\_mc.gallery\_mc.dialog\_mc

Registration point:  
top left

```auto

drag_mc.onPress = function() {
	var rbound = Stage.width-this._parent._width;
	var bbound = Stage.height-this._parent._height;
	this._parent.startDrag(false, 0, 0, rbound, bbound);
};
drag_mc.onRelease = function() {
	this._parent.stopDrag();
};
drag_mc.onReleaseOutside = drag_mc.onRelease;

```

Thanks in advance! 😃
