using action script 2 how can i send a variable value to a dynamic textbox on a different keyframe?
Thanks for your swift response.
That sounds like a good solution, but the code I have on frame 2 is this
| timer = 0; |
| countup = function(){ |
| timer++; |
| } |
| countupInterval = setInterval(countup,100); |
If I added the same actionscript to frame 3 which has a dynamic textbox with a variable timer attached wouldn't it just put the timer back to 0? What I want is the last known value that was given when it was in frame 2.
I am thinking of temple run here, I am trying to caculate the total distance(set in the timer variable) from the previous try.
Hope this makes sense.
Chazwick
You do not want to re-instantiate the variable in any other frame, just be sure to have the frame that code is in extended to whatever other frame it needs to be available to. You extend the frame's code to other frames the same way you would have anything else extend for numerous frames.
North America
Europe, Middle East and Africa
Asia Pacific