Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Error Code: 1024 help please??

New Here ,
Jan 07, 2015 Jan 07, 2015

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

TOPICS
ActionScript
330
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 07, 2015 Jan 07, 2015
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines