# Quick question - next scene link from button

**URL:** <https://forum.kirupa.com/t/quick-question-next-scene-link-from-button/213186>\
**Category:** flash\
**Created:** [January 17, 2007, 3:47pm UTC](https://forum.kirupa.com/t/quick-question-next-scene-link-from-button/213186 "2007-01-17T15:47:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JetBlack](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@JetBlack](https://forum.kirupa.com/u/JetBlack)\
**Post date:** [January 17, 2007, 3:47pm UTC](https://forum.kirupa.com/t/quick-question-next-scene-link-from-button/213186/1 "2007-01-17T15:47:12Z")

</div>

Hi folks

I’m no master at Flash, so the answer to this question is probably obvious, however its eluding me.

I’ve got the “Complex Button RollOver/RollOut Effects” ([http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)) tutorial working perfectly. However there’s a problem with the last line of code which is:  
[INDENT][FONT=Arial][SIZE=2] [/SIZE][/FONT][FONT=Arial][SIZE=2]this.onRelease = function(){getURL(“[http://www.kirupa.com](http://www.kirupa.com)”,"\_blank"); [/SIZE][/FONT][FONT=Arial][SIZE=2] } [/SIZE][/FONT][/INDENT]I understand that: [FONT=Arial][SIZE=2]_getURL(“[http://www.kirupa.com](http://www.kirupa.com)”,"\_blank");_ is just an example so previously I replaced the line of code with:  
[/SIZE][/FONT][INDENT][FONT=Arial][SIZE=2]this.onRelease = function(){[/SIZE][/FONT]  
[FONT=Arial][SIZE=2]\_root.gotoAndStop(1);[/SIZE][/FONT]  
[/INDENT][INDENT][FONT=Arial][SIZE=2]}[/SIZE][/FONT]  
[/INDENT][FONT=Arial][SIZE=2] - which of course sent me back to the main scene’s start point. Fine

I now want to have the link go to the next scene (Scene 2). I’ve tried:  
[/SIZE][/FONT][INDENT]this.onRelease = function(){  
gotoAndStop(“Scene 2”,1);  
}  
[/INDENT]This however doesn’t work.

Could you please help me with my code to make the button move to the next scene?

Thanks
