# Plz help w/ button code

**URL:** https://forum.kirupa.com/t/plz-help-w-button-code/185522
**Category:** Uncategorized
**Created:** [April 13, 2006, 10:05pm UTC](https://forum.kirupa.com/t/plz-help-w-button-code/185522 "2006-04-13T22:05:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![xtinarox26](https://avatars.discourse-cdn.com/v4/letter/x/f14d63/32.png) [@xtinarox26](https://forum.kirupa.com/u/xtinarox26)
#### Post date: [April 13, 2006, 10:05pm UTC](https://forum.kirupa.com/t/plz-help-w-button-code/185522/1 "2006-04-13T22:05:02Z")

</div>

i have this code on a button called “misc.” that is in a movie clip

on(press) {  
gotoAndPlay(38);  
}

when the “still” button is clicked & the code for that is  
on(press) {  
gotoAndPlay(29);  
}

…it just replays the “misc, frame(38)”…? any ideas…?

---

<div class="post-metadata">

### Author: ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)
#### Post date: [April 13, 2006, 10:22pm UTC](https://forum.kirupa.com/t/plz-help-w-button-code/185522/2 "2006-04-13T22:22:10Z")

</div>

you may have to target the timeline that contains these frames you are after.

---

<div class="post-metadata">

### Author: ![xtinarox26](https://avatars.discourse-cdn.com/v4/letter/x/f14d63/32.png) [@xtinarox26](https://forum.kirupa.com/u/xtinarox26)
#### Post date: [April 13, 2006, 11:07pm UTC](https://forum.kirupa.com/t/plz-help-w-button-code/185522/3 "2006-04-13T23:07:09Z")

</div>

when i use \_root.gotoAndPlay(frame number) that does work but when i click on the same button twice for some reason it plays the next frame …weird! any suggestions??

---

<div class="post-metadata">

### Author: ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)
#### Post date: [April 13, 2006, 11:09pm UTC](https://forum.kirupa.com/t/plz-help-w-button-code/185522/4 "2006-04-13T23:09:01Z")

</div>

i cleaned your post - it was confusing 🙂

can you post an fla?

---

<div class="post-metadata">

### Author: ![xtinarox26](https://avatars.discourse-cdn.com/v4/letter/x/f14d63/32.png) [@xtinarox26](https://forum.kirupa.com/u/xtinarox26)
#### Post date: [April 13, 2006, 11:12pm UTC](https://forum.kirupa.com/t/plz-help-w-button-code/185522/5 "2006-04-13T23:12:46Z")

</div>

thanks luna! my .fla exceeds the limit 😑

if any1 wants to look at it i can e-mail it to you…thanks soooo much …!!

> [@lunatic](#):
>
> i cleaned your post - it was confusing 🙂
> 
> can you post an fla?

---

<div class="post-metadata">

### Author: ![xtinarox26](https://avatars.discourse-cdn.com/v4/letter/x/f14d63/32.png) [@xtinarox26](https://forum.kirupa.com/u/xtinarox26)
#### Post date: [April 13, 2006, 11:44pm UTC](https://forum.kirupa.com/t/plz-help-w-button-code/185522/6 "2006-04-13T23:44:44Z")

</div>

TO VIEW THE 4v.FLA go here thanks!!! guys & darkmotion

[http://www.darkmotion.com/Uploader/](http://www.darkmotion.com/Uploader/)
