hi i have a function that kinda look like this:
//////////////////GTA4//////COUNTDOWN////////////////
onEnterFrame = function () {
eventDate = new Date(2007, 9, 16);
eventMsecs = eventDate.getTime();
currentDate = new Date();
currentMsecs = currentDate.getTime();
timeLeft = eventMsecs-currentMsecs;
//
timeleft_txt.text = timeLeft;
};
//////////////////////////////////////////////////////////////
it works but only counts down in msecs though…
But heres the strange thing:
after the function i put in:
if (timeLeft<=0) {
trace (“YEAH”);
}
or something like that
AND IT TRACES?
i try with
if (timeLeft>=0) {
trace (“YEAH”);
}
AND IT TRACES
so i try
if (timeLeft==0) {
trace (“YEAH”);
}
NO TRACE
no trace is also if i try >
or <