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) 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”,"_blank"); [/SIZE][/FONT][FONT=Arial][SIZE=2] } [/SIZE][/FONT][/INDENT]I understand that: [FONT=Arial][SIZE=2]getURL(“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