# Problem with my button

**URL:** <https://forum.kirupa.com/t/problem-with-my-button/96753>\
**Category:** Uncategorized\
**Created:** [December 13, 2003, 12:39am UTC](https://forum.kirupa.com/t/problem-with-my-button/96753 "2003-12-13T00:39:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrishop](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@chrishop](https://forum.kirupa.com/u/chrishop)\
**Post date:** [December 13, 2003, 12:39am UTC](https://forum.kirupa.com/t/problem-with-my-button/96753/1 "2003-12-13T00:39:25Z")

</div>

well i have the action scrupt and everything

```auto

on (press) {
    gotoAndPlay("scene8", 1);
}

```

when i press the button it starts scene 7 over without going to scene 8. i am not very good with actionscript but learning

any one can help it will be apprecitive 😉

---

<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:** [December 13, 2003, 6:58am UTC](https://forum.kirupa.com/t/problem-with-my-button/96753/2 "2003-12-13T06:58:22Z")

</div>

For some reason you can’t target scene names with AS…least I’ve never been able to. Instead do this:

make a new layer in scene 8, click in the frame and give it a frame name of scene8 (ie in the lower right corner of the properties panel) then change your script to this:  
[AS]  
on (press) {  
\_root.gotoAndPlay(“scene8”);  
}  
[/AS]  
and everything should work fine. Thats the only way I’ve been able to target scenes is with frame labels.
