5 Replies Latest reply on May 3, 2007 11:56 AM by Rothrock

    Countdown Timer Error Msg: "Warning: 1090: Migration issue"

    kraw17
      Hey folks,

      New to Flash here (using CS3), trying to create a countdown timer.

      Following is the error message I receive when trying to test the
      movie:

      "Warning: 1090: Migration issue: The onEnterFrame is not triggered
      automatically by Flash Player at run time in ActionScript 3.0. You
      must first register this handler for the event using addEventListener
      ( 'enterFrame', callback_handler).

      Does anyone know what this means? And please "dumb it down" for this newbie. :)

      Following is the actionscript I'm using:

      this.onEnterFrame = function() {

      var today:Date = new Date();
      var currentYear = today.getFullYear();
      var currentTime = today.getTime();

      var targetDate:Date = new Date(2007,5,10);
      var targetTime = targetDate.getTime();

      var timeLeft = targetTime - currentTime;

      var sec = Math.floor(timeLeft/1000);
      var min = Math.floor(sec/60);
      var hrs = Math.floor(min/60);
      var days = Math.floor(hrs/24);
      sec = String(sec % 60);
      if (sec.length < 2) {
      sec = "0" + sec;
      }
      min = String(min % 60);
      if (min.length < 2) {
      min = "0" + min;
      }
      hrs = String(hrs % 24);
      if (hrs.length < 2) {
      hrs = "0" + hrs;
      }
      days = String(days);

      var counter:String = days + ":" + hrs + ":" + min + ":" + sec;
      time_txt.text = counter;
      }


      Thanks in advance!!!