Thanks for your help. I checked out the resources you recomended- and I am getting there I think.
My goal is to count backwards from 2 minutes. In the past I have cheated with an animation of numbers that is based on fps. This is my first timer try (obviously).
This code gives my too many decimal places and counts forward. Could someone help me place the
int correctly so it displays only 2 numbers.
Also, any suggestions on counting backwards?
onClipEvent (load) {
wait = 120;
starTimer = true;
}
onClipEvent (enterFrame) {
if (starTimer) {
if (startTime == undefined) {
startTime = getTimer()/1000;
}
curTime = getTimer()/1000;
if ((curTime-startTime)>=wait) {
starTimer = false;
delete startTime;
// actions to do after time is up
trace ("bing!");
} else {
_root.timer.timeRemaining = wait-int((curTime-startTime)/1000);
}
}
}
thanks for taking the time to help me out.