# A simple question

**URL:** <https://forum.kirupa.com/t/a-simple-question/51808>\
**Category:** Uncategorized\
**Created:** [May 17, 2004, 2:54pm UTC](https://forum.kirupa.com/t/a-simple-question/51808 "2004-05-17T14:54:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joeagius](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@joeagius](https://forum.kirupa.com/u/joeagius)\
**Post date:** [May 17, 2004, 2:54pm UTC](https://forum.kirupa.com/t/a-simple-question/51808/1 "2004-05-17T14:54:53Z")

</div>

Hi,  
I am attempting to do the following:

I have a movieclip and inside it is two buttons and a graphic. There is a button on the top and a button on the top right, then gr aphic below. It looks like a window. The top is a bar I wish to use to drag the entire moveclip, and the top right is an X to close the window.

The problem is in my code… I am using :  
on (press) {  
startDrag(“window”, false);  
}  
on (release) {  
stopDrag();  
}

However it isn’t working because “window” is infact in root… I cannot use the button inside the movie clip to move the entire movie clip.

My question is: What is the proper code to move the entire movie clip which is in root, using a button located inside the movie clip?

Thanks,  
Joe
