Flash as2 project gotoAndPlay function not accepting a variable

woodscrews

Honorable
Jan 14, 2013
18
0
10,560
0
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
0
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.
 
Thread starter Similar threads Forum Replies Date
N Apps General Discussion 4
E Apps General Discussion 2
O Apps General Discussion 1
N Apps General Discussion 3
P Apps General Discussion 1
M Apps General Discussion 1
V Apps General Discussion 15
T Apps General Discussion 1
Speculation Apps General Discussion 5
A Apps General Discussion 1
T Apps General Discussion 7
J Apps General Discussion 1
N3rdR4ge Apps General Discussion 1
D Apps General Discussion 3
F Apps General Discussion 6
C Apps General Discussion 1
E Apps General Discussion 5
D Apps General Discussion 2
T Apps General Discussion 4
J Apps General Discussion 1

ASK THE COMMUNITY

TRENDING THREADS