Flash as2 project gotoAndPlay function not accepting a variable

Status
Not open for further replies.

woodscrews

Honorable
Jan 14, 2013
81
0
10,630
on the first frame of the first scene i have this


_global.lastViewedScene = "intro";

then on a leter scene i have this, only it tells me it cannot accept anything other then a string for that function, i dont even



on(release) {

gotoAndPlay(_global.lastViewedScene, 1);

}
 

woodscrews

Honorable
Jan 14, 2013
81
0
10,630
the first spoiler has the variable declaration and initiation, the second attempts to jump to to a different scene. essentially im trying to impliment a basic history system in the project, with the first frame of some scenes setting this variable so they can jump back to that scene from elsewhere.
 
Status
Not open for further replies.