# Goto and play scene?

**URL:** <https://forum.kirupa.com/t/goto-and-play-scene/243677>\
**Category:** flash\
**Created:** [November 9, 2007, 4:07pm UTC](https://forum.kirupa.com/t/goto-and-play-scene/243677 "2007-11-09T16:07:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azyr](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Azyr](https://forum.kirupa.com/u/Azyr)\
**Post date:** [November 9, 2007, 4:07pm UTC](https://forum.kirupa.com/t/goto-and-play-scene/243677/1 "2007-11-09T16:07:29Z")

</div>

For some reason i’m having problems swapping scenes in my flash movie. At first i put the action in a “actions” named layer and a link to a button.

So basicly when scene1 loads the frame 1 action is “stop ();”. The viewer clicks on button1 which has a code of ;

on (press) {  
gotoAndPlay (“10”);  
}

At frame 10 a 15 frame animation plays and finishes at frame 25. Actions for frame 25 is (keyframed ofc) ;

gotoAndPlay (“scene2”, 1);

which wont work. I tried \_root.gotoandplay etc and even scene1.gotoandplay and stil wont work. Then i assigned the action to the button itself and just wanted to see if i could switch to the scene by clicking on the button. No it wont work.

I’m fairly (actualy VERY) new to flash, so i might be missing something essential. What is it?
