# HELP! I do not know

**URL:** <https://forum.kirupa.com/t/help-i-do-not-know/57284>\
**Category:** Uncategorized\
**Created:** [July 12, 2004, 2:08am UTC](https://forum.kirupa.com/t/help-i-do-not-know/57284 "2004-07-12T02:08:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![babypapichulo](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@babypapichulo](https://forum.kirupa.com/u/babypapichulo)\
**Post date:** [July 12, 2004, 2:08am UTC](https://forum.kirupa.com/t/help-i-do-not-know/57284/1 "2004-07-12T02:08:27Z")

</div>

[center]well I have several objects in this Flash file I am making. I am using Flash MX 2004. The objects are as follows/

1. button labled “check”  
2.Inpu text labled “note”  
and 3. a movie clip labled “sticky”

## I have this script

[left]on (press) {  
startDrag("“sticky”);  
}  
on (release) {  
stopDrag();  
}  
[center]------------------------------------

the script is attached to the button. I want it so when I click and drag the button everything moves with it. How (if possible) can I do that. Can someone please tell me. PLEASE

Thanks in advance.

[/center]  
[/left]  
[/center]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2004, 1:23pm UTC](https://forum.kirupa.com/t/help-i-do-not-know/57284/2 "2004-07-12T13:23:32Z")

</div>

funny thing… i was thinking that in order to do that you had to calculate the current x & y of the button, and on enterframe calculate the difference and add/subtract it from the other’s x & y so they would move in tandem… but i put this on the button:

on (press) {  
this.startDrag(false);  
}  
on (release) {  
stopDrag();  
}

and they all move together, which i didn’t expect. see if that works for you.
