# Go to Scene help

**URL:** https://forum.kirupa.com/t/go-to-scene-help/117361
**Category:** Uncategorized
**Created:** [July 26, 2004, 9:36pm UTC](https://forum.kirupa.com/t/go-to-scene-help/117361 "2004-07-26T21:36:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![gamin](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gamin](https://forum.kirupa.com/u/gamin)
#### Post date: [July 26, 2004, 9:36pm UTC](https://forum.kirupa.com/t/go-to-scene-help/117361/1 "2004-07-26T21:36:02Z")

</div>

Ok, I am currently trying to make a mini movie/game and I need to make a little button in which once it has been clicked on it would go to another scene and that one would start playing. I thought it would be like onpress and then put in a gotoandplay code for actionscript. But then I don’t understand entirely how actionscript works so I would need to know the code required. I believe this requires actionscript but I am not positive so I wasn’t sure to put this under flash mx or actionscripting. I’m sorry in advance if I posted in the wrong section.  
Please help.

---

<div class="post-metadata">

### Author: ![Ordinathorreur](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ordinathorreur/32/536_2.png) [@Ordinathorreur](https://forum.kirupa.com/u/Ordinathorreur)
#### Post date: [July 26, 2004, 10:03pm UTC](https://forum.kirupa.com/t/go-to-scene-help/117361/2 "2004-07-26T22:03:47Z")

</div>

on(release){  
gotoAndPlay(“yourscenename”, 1);  
}

---

<div class="post-metadata">

### Author: ![gamin](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gamin](https://forum.kirupa.com/u/gamin)
#### Post date: [July 26, 2004, 10:36pm UTC](https://forum.kirupa.com/t/go-to-scene-help/117361/3 "2004-07-26T22:36:27Z")

</div>

I get the following error:

Scene=intro, Layer=1, Frame=31: Line 1: Mouse events are permitted only for button instances  
on(release){

Where am I suppose to put that code?

---

<div class="post-metadata">

### Author: ![Flink](https://avatars.discourse-cdn.com/v4/letter/f/919ad9/32.png) [@Flink](https://forum.kirupa.com/u/Flink)
#### Post date: [July 27, 2004, 9:57am UTC](https://forum.kirupa.com/t/go-to-scene-help/117361/4 "2004-07-27T09:57:35Z")

</div>

> [@gamin](#):
>
> I get the following error:
> 
> Scene=intro, Layer=1, Frame=31: Line 1: Mouse events are permitted only for button instances  
> on(release){
> 
> Where am I suppose to put that code?

on a button…

---

<div class="post-metadata">

### Author: ![gamin](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gamin](https://forum.kirupa.com/u/gamin)
#### Post date: [July 27, 2004, 12:39pm UTC](https://forum.kirupa.com/t/go-to-scene-help/117361/5 "2004-07-27T12:39:09Z")

</div>

But when I go to put the actions for that button and open the actions pan it says “Current selection cannot have actions applied to it.” while I’ve selected the proper state and everything. What’s wrong. Sorry for this but I’m an extremely large noob when it comes to actionscript.Please help.  
Thanks.

---

<div class="post-metadata">

### Author: ![gamin](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gamin](https://forum.kirupa.com/u/gamin)
#### Post date: [July 27, 2004, 12:50pm UTC](https://forum.kirupa.com/t/go-to-scene-help/117361/6 "2004-07-27T12:50:58Z")

</div>

I figured it out. Thanks guyz for your help. 🙂
