Sign in with
Sign up | Sign in
Your question

Flash as2 project gotoAndPlay function not accepting a variable

Last response: in Applications
Share
January 31, 2013 9:19:58 AM

on the first frame of the first scene i have this


Spoiler
_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



Spoiler
on(release) {

gotoAndPlay(_global.lastViewedScene, 1);

}
February 4, 2013 1:23:31 PM

i would like to know why this isnt working and how i may be able to fix it
February 5, 2013 6:02:16 AM

Well you need to give me a bit more info, so that I could help you.
February 5, 2013 8:38:37 AM

what would you like to know, im not sure what it is you need to know
February 5, 2013 9:07:27 AM

I don't get your opening post.

What is in the spoilers?
February 5, 2013 9:12:56 AM

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.
!