|
Buttons
Nov 18, 2006 19:51:32 GMT 2
Post by Atnas on Nov 18, 2006 19:51:32 GMT 2
Can someone please teach me how to make a button that skips to the next scene? Also how to make one that goes to the previous scene as well. Thanks. ;D
|
|
|
Buttons
Nov 18, 2006 21:10:42 GMT 2
Post by viruszero on Nov 18, 2006 21:10:42 GMT 2
just make your button and apply this actionscript code to it.
on(release) { gotoAndplay("<scene name>,<frame number>") }
this is useful for scene selecters
but for next scene or previous scene just subsitiute the gotoAndplay with prevScene( ) or nextScene( )
(and don't put the "<scene name>,<frame number>" in the parentheses of the prev/next scene code or you'll get errors. also watch out for syntax, as i may have it wrong but the code is right. so just auto syntax/format and it should fix itself, if not look in the + like menu of the action menu to find the codes and enter them yourself. )
|
|
|
Buttons
Nov 19, 2006 22:31:25 GMT 2
Post by Atnas on Nov 19, 2006 22:31:25 GMT 2
Thanks, I'll try it and tell you if it works.
|
|