# First play. Then go to other scene

**URL:** <https://forum.kirupa.com/t/first-play-then-go-to-other-scene/1104>\
**Category:** flash\
**Created:** [August 8, 2002, 4:35pm UTC](https://forum.kirupa.com/t/first-play-then-go-to-other-scene/1104 "2002-08-08T16:35:34Z")\
**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, 4:35pm UTC](https://forum.kirupa.com/t/first-play-then-go-to-other-scene/1104/1 "2002-08-08T16:35:34Z")

</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.

I thought this was it, but he immediatly goes to scene 2

on (release) {  
gotoAndPlay(92);

```
gotoAndPlay("Scene 2", 93);

```

}

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, 4:39pm UTC](https://forum.kirupa.com/t/first-play-then-go-to-other-scene/1104/2 "2002-08-08T16:39:46Z")

</div>

Your button code should say this…

```auto

on (release) {
gotoAndPlay(92);
}

```

and on the last frame (the frame you want your scene 2 to come up) add this code…

```auto

gotoAndPlay("Scene 2", 93);

```
