# Button probs

**URL:** <https://forum.kirupa.com/t/button-probs/189442>\
**Category:** Uncategorized\
**Created:** [June 2, 2006, 4:02pm UTC](https://forum.kirupa.com/t/button-probs/189442 "2006-06-02T16:02:00Z")\
**Posts on this page:** 1\
**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:** [June 2, 2006, 4:02pm UTC](https://forum.kirupa.com/t/button-probs/189442/1 "2006-06-02T16:02:00Z")

</div>

I have 8 buttons and i’m using the following code for onPress…it goes to a certain frame on the timeline “\_energy”,"\_dma"… the btn\_1 works fine…, btn\_2,\_3,etc., doesn’t work at all…hell a hand doesn’t even show up lol…i gave it an instance name & evrything. I thought the stop(); was preventing it from working…but doesn’t look like it…and i have the AS on its own layer…not quite sure if the code has to be above each frame label…argghh…help :O)

p.s. the file size is 147. kb…so i can’t post…if any1 would like to see it plz let me know.

```auto
 
btn_1.onPress=function(){
 _root.gotoAndPlay("_on");
}
btn_2.onPress=function(){
 _root.gotoAndPlay("_energy");
}
btn_3.onPress=function(){
 _root.gotoAndPlay("_dma");
}

```
