Skip to main content
BlueSky010
Participant
January 7, 2015
Question

Error Code: 1024 help please??

  • January 7, 2015
  • 1 reply
  • 347 views

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??

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
January 8, 2015

What is the actual error message indicating?  onEnterFrame is AS2, so that might be part of the problem if your intention is to be working in AS3.