Hi guys.. not blitz releated but I am sure some of you use flash/action script.
I am lookig to create a simple count down timer in flash (AS 2.0), but I cant seem to store a variable.. or to stop flash remaking the variable.
this what I have;
1. Made a dynamic text box.. called it "counterINS"
2. set FPS on movie to 1
3. frame 1 =
4. frame 2 =
What this should do is decrease newtime by 1 every seconds 360>359>358>357 etc ... instead it loops through both frames reset newtime back to 360.. ignoring my gotoAndPlay(2) command?
My trace output is =
loaded vars
359
loaded vars
359
loaded vars
359
loaded vars
359
loaded vars
359
What am I doing wrong? I am new to flash.
I am lookig to create a simple count down timer in flash (AS 2.0), but I cant seem to store a variable.. or to stop flash remaking the variable.
this what I have;
1. Made a dynamic text box.. called it "counterINS"
2. set FPS on movie to 1
3. frame 1 =
var timetoo_mins = (6) // mins var newtime = (timetoo_mins * 60); // get seconds trace("loaded vars"); gotoAndPlay(2);
4. frame 2 =
if (newtime > 0) { newtime = newtime - 1; trace(newtime); } _root.counterINS.text = newtime; // update text box gotoAndPlay(2);
What this should do is decrease newtime by 1 every seconds 360>359>358>357 etc ... instead it loops through both frames reset newtime back to 360.. ignoring my gotoAndPlay(2) command?
My trace output is =
loaded vars
359
loaded vars
359
loaded vars
359
loaded vars
359
loaded vars
359
What am I doing wrong? I am new to flash.