Error Code: 1024 help please??
Okay, here's my code
this.onEnterFrame. omg = function (){}; countdowntimer
function addEventListener(){}"callback_handler;)"
{
var targetTime = targetTime.getTime();
var timeLeft = targetTime - 670();
var milisecond = Math.floor(timeLeft/100);
var second = Math.floor(second/60);
var decisecond = Math.floor(decisecond/10);
var centisecond = Math.floor(centisecond/10);
second = String(second % 60);
if(second.length < 2){
second = "0" + second;
}
decisecond = String(decisecond % 10);
if(decisecond.length < 2){
decisecond = "0" + decisecond;
}
centisecond = String(centisecond % 10);
if(centisecond.length < 2){
centisecond = "0" + centisecond;
var counter:String = second + ":" + decisecond + ":" + centisecond;
time_txt.text = counter;
}else{
trace("TIME'S }UP");
var newTime:String = "00:00:00";
time_txt.text = newTime;
delete (this.onEnterFrame);
}
}
I'm trying to create a customized countdown timer, and you'll notice on line 4, collumn 11, I keep getting the same error no matter how I change it...
Can anyone tell me what is wrong??