Hi everyone,
I am making a game (actually more like 5 games) in Adobe Flash CS5 using actionscript 3 and i need a bit of help making the score system work.
My game is on frame 5, and i have 2 variables in frame 5, Name (Player name) and Time (Playing Time) i want to do 2 things with these variables;
In frame 4 i have the "You lose, try again" screen, which i want to read the playing time but it doesnt, code is this:
playing_time.text = Time;
but it just displays a random string of letters.
The other one is on frame 13 I want to have a scoreboard that shows names in one column and times in another. It can not read the variables from frame 5 either.
Am i doing something wrong? Do i have to do something special to the variables to make them carry over? Or is this simply the wrong way to carry variables between frames?
Any help would be greatly appreciated.
Thanks Guys (And Gals)!
Kyle.
I am making a game (actually more like 5 games) in Adobe Flash CS5 using actionscript 3 and i need a bit of help making the score system work.
My game is on frame 5, and i have 2 variables in frame 5, Name (Player name) and Time (Playing Time) i want to do 2 things with these variables;
In frame 4 i have the "You lose, try again" screen, which i want to read the playing time but it doesnt, code is this:
playing_time.text = Time;
but it just displays a random string of letters.
The other one is on frame 13 I want to have a scoreboard that shows names in one column and times in another. It can not read the variables from frame 5 either.
Am i doing something wrong? Do i have to do something special to the variables to make them carry over? Or is this simply the wrong way to carry variables between frames?
Any help would be greatly appreciated.
Thanks Guys (And Gals)!
Kyle.