1 Reply Latest reply on Oct 5, 2006 7:27 PM by inlineblue

    Event.TIMER_COMPLETE throws error!

    leotemp Level 1
      Event.TIMER_COMPLETE does not work and thats how its written in the docs, anyone know how this is supposed to go down?

      MY BROKEN ATTEMPT COPIED FROM THE DOCS-----------------------------

      function delaySearch() : void {
      // creates a new five-second Timer
      var minuteTimer:Timer = new Timer(2000, 2);
      // designates listeners for the the completion event
      minuteTimer.addEventListener(Event. onTimerComplete);
      // starts the timer ticking
      minuteTimer.start();
      }
      public function onTimerComplete(evt:Event):void {
      search();
      }