# Use button to nagviate to next scene

**URL:** https://forum.kirupa.com/t/use-button-to-nagviate-to-next-scene/94566
**Category:** Uncategorized
**Created:** [November 14, 2003, 3:09am UTC](https://forum.kirupa.com/t/use-button-to-nagviate-to-next-scene/94566 "2003-11-14T03:09:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![naru](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@naru](https://forum.kirupa.com/u/naru)
#### Post date: [November 14, 2003, 3:09am UTC](https://forum.kirupa.com/t/use-button-to-nagviate-to-next-scene/94566/1 "2003-11-14T03:09:59Z")

</div>

Hi all,

I am newbie to flash mx 2004 and have some doubts. I will appreciate any helps. Thanks in advance.

Currently, I have 2 scene in my flash. (Name as Scene 1 and scene 2 repectively) I add a button to scene 1. When user click on it, it should nagivte to scene 2. Previoulsy in flash mx, there is a normal mode which allow me to do so. So, in flash mx 2004, how do I do it? I try to add the code myself but it don’t works. The coding is as follow:

goToAndPlay (“Scene 2”, 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: [November 14, 2003, 6:50am UTC](https://forum.kirupa.com/t/use-button-to-nagviate-to-next-scene/94566/2 "2003-11-14T06:50:24Z")

</div>

make sure to have a button handler

```auto

myButton.onRelease=function(){
gotoAndPlay("Scene 2",1);
}

```

myButton is the instance name of your button

---

<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: [November 14, 2003, 9:34am UTC](https://forum.kirupa.com/t/use-button-to-nagviate-to-next-scene/94566/3 "2003-11-14T09:34:13Z")

</div>

Also, if your button is inside of a movie clip, you’ll need to use a frame label instead of the scene name and frame number. 😛

And welcome to kirupa forum, by the way. =)
