# Button, play, scene

**URL:** <https://forum.kirupa.com/t/button-play-scene/1111>\
**Category:** Uncategorized\
**Created:** [August 8, 2002, 7:41pm UTC](https://forum.kirupa.com/t/button-play-scene/1111 "2002-08-08T19:41:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chewie](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@Chewie](https://forum.kirupa.com/u/Chewie)\
**Post date:** [August 8, 2002, 7:41pm UTC](https://forum.kirupa.com/t/button-play-scene/1111/1 "2002-08-08T19:41:58Z")

</div>

Does somebody know how to put this into action script???

I want to push on a button and then he should play the rest of the scene…when he is finished playing the scene he should go to the desired scene and play there. It has to be all in the button actionscript.

I thought this was it:

on (release) {  
gotoAndPlay(92);

gotoAndPlay(“Scene 2”, 93);  
}

But he immediatly goes to scene 2  
How can I do it right???

---

<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:** [August 8, 2002, 10:00pm UTC](https://forum.kirupa.com/t/button-play-scene/1111/2 "2002-08-08T22:00:41Z")

</div>

you said it ALL has to be in the button? Why?

anyway…

```auto

on(release){
mc.gotoandplay(2);

if(mc._currentframe>=92){
mc2.gotoandPlay(1);
}

```
