Flash as2 project gotoAndPlay function not accepting a variable

woodscrews

Honorable
Jan 14, 2013
18
0
10,560
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
18
0
10,560
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.