# Moving button

**URL:** https://forum.kirupa.com/t/moving-button/6175
**Category:** Uncategorized
**Created:** [October 1, 2002, 10:05am UTC](https://forum.kirupa.com/t/moving-button/6175 "2002-10-01T10:05:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![postatomic](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@postatomic](https://forum.kirupa.com/u/postatomic)
#### Post date: [October 1, 2002, 10:05am UTC](https://forum.kirupa.com/t/moving-button/6175/1 "2002-10-01T10:05:00Z")

</div>

hi,

I’m still trying to make a button stop and start when rolled over. and play a movieclip when pressed…

I can achieve the stop/start but can’t get it to play the movieclip.

I’ve got a basic version of what I’ve done in a .fla can someone shed some light on what I’ve done wrong?

Fingers crossed.

---

<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: [October 1, 2002, 2:45pm UTC](https://forum.kirupa.com/t/moving-button/6175/2 "2002-10-01T14:45:54Z")

</div>

just replace the code

on(press) {  
\_root.square.gotoAndPlay(\_root.box);  
}

with this:

on (press) {  
\_root.gotoAndStop(“box”);  
}

If you a “\*\*\_root” in front of gotoandPlay/Stop you do not need to put in the (…).  
and why did you put that square (\_root. **square**.goto…) there?  
that doesn’t make any sense.  
And if you wanna go to a specific frame label then the frame label has to be in **“”**.

---

<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: [October 1, 2002, 8:55pm UTC](https://forum.kirupa.com/t/moving-button/6175/3 "2002-10-01T20:55:45Z")

</div>

Thanks syko

That worked…!!

I can’t believe that I’ve been trying to do this for 3 weeks now…and you help me within a day!!

Thanks again…

Paul
