Flash 8 actionScript queston

DEATH eVADER

Space Core
Joined
Nov 10, 2003
Messages
8,142
Reaction score
19
I'm sure some of you budding flash users may know how you do this.

Basically I have two scenes, each one named "Scene 1" and "Scene 2".

I have a button in each of the scenes to go back a forth between them, however I do not know the actionScript 1.0 or actionScript 2.0 code to perform the switch (but to specifically go to frame 1 or either scene).

I thought it might of been the code below (applied directly to the button)

on release();
{
this.gotoAndStop("Scene 2"(1));
}

However it doesn't seem to work. Any ways around this?
 
I'm not familiar with the specifics of ActionScript, but since it is based on JavaScript, I'm pretty sure you shouldn't have a semicolon after on release().. and you may need to separate the parameters of your function call...

Code:
on(release)
{
this.gotoAndStop("Scene 2", 1);
}

EDIT: And it looks like its on(release), not on release()


http://www.adobe.com/support/flash/...pt_dictionary/actionscript_dictionary382.html
 
Thanks for that, I was wondering where I saw the code for it. I couldn't find it so I started making it up

cheers
 
Back
Top