PDA

View Full Version : back to previous SCENE script



blurqueen
September 21st, 2003, 11:28 PM
Hi all!
lets say i have 5 scenes in my fla file, how can i put a <b>"Back Button" </b> in each of the scenes and make it go back to WHICHEVER scene i was at previously?

some actionscripting / javascripting on my button perharps?
a really simple script that will work exactly like:
<A HREF="javascript:history.go(-1)"> as in in html

Anyone knows? :-\

Thanks

claudio
September 21st, 2003, 11:30 PM
Use the nextScene() and prevScene() actions.

blurqueen
September 21st, 2003, 11:52 PM
I meant WHICHEVER scene i came from, i believe the nextScene() and prevScene() actions refer to the scenes positioned above/below the Scene Toolbox Window.which is not wat i am looking for.

ALPHA
September 21st, 2003, 11:57 PM
gotoAndStop(); -

Use the code like this I think apply it to a button -
on (release) {
gotoAndStop("Intro", 1);
}


Intro being the scene name - must have quotations and 1 being the frame number in the scene.

blurqueen
September 22nd, 2003, 12:00 AM
nonono..... i mean a script that works EXACTLY like
<A HREF="javascript:history.go(-1)"> as in in html
but now i just want to apply this to back to previous SCENE

claudio
September 22nd, 2003, 12:06 AM
Theres no property to retrive the current scene of the movie, so you need to set a variable for that.

blurqueen
September 22nd, 2003, 01:56 AM
im just a beginner...