# Button to next scene..sounds easy enough

**URL:** <https://forum.kirupa.com/t/button-to-next-scene-sounds-easy-enough/107710>\
**Category:** Uncategorized\
**Created:** [April 18, 2004, 9:30am UTC](https://forum.kirupa.com/t/button-to-next-scene-sounds-easy-enough/107710 "2004-04-18T09:30:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spence](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@spence](https://forum.kirupa.com/u/spence)\
**Post date:** [April 18, 2004, 9:30am UTC](https://forum.kirupa.com/t/button-to-next-scene-sounds-easy-enough/107710/1 "2004-04-18T09:30:47Z")

</div>

Hi,

I thought it would be easy enough to create a button that sends you to the next scene?

My button is however embedded within a small moveclip but that shouldn’t make a difference surely?

My code is:

on(press){  
gotoAndPlay(“scene 2”,1);  
}

I know this has been replaced with the new function option but even that isn’t  
working.

Have I got a typo or something? Im a bit confused.

When I run the movie the button simply just plays scene one from the beginning again?  
I’ve tried this code:

on(press){  
\_root.gotoAndPlay(“scene 2”,1);  
}

but this just froze the movie completely?

Can anyone help?

Thanks
