# Scene

**URL:** <https://forum.kirupa.com/t/scene/3259>\
**Category:** programming\
**Created:** [April 9, 2002, 2:11pm UTC](https://forum.kirupa.com/t/scene/3259 "2002-04-09T14:11:26Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [April 9, 2002, 2:11pm UTC](https://forum.kirupa.com/t/scene/3259/1 "2002-04-09T14:11:26Z")

</div>

I’ve made a simple menu with 4 buttons.I have 4 different scenes.I want to use the buttons to play those scenes.  
As action on each button i’ve used:

```
 on(release){
   gotoAndPlay("Scene1",1);
 }

```

ofcourse each time a different scene name.  
Now when I play it, no matter what button I click, it always plays scene2.

What am I doing wrong??!!!

---

<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:** [April 9, 2002, 3:03pm UTC](https://forum.kirupa.com/t/scene/3259/2 "2002-04-09T15:03:04Z")

</div>

The code is almost correct. When calling out to goto a scene, use frame labels instead of frame numbers.

create a new layer  
open your frame panel  
select the first frame of scene2, and type “something” into the text box in the panel.

then in your goto statement add it with quotes where the number would be like this

on(release){  
gotoAndPlay(“something”);  
}
