Skip to main content
August 25, 2010
Answered

Why is timer not stopping?

  • August 25, 2010
  • 1 reply
  • 763 views

Here's my code:

var TIMER_DELAY:Timer = new Timer(3000, 1); // 8 second delay
TIMER_DELAY.addEventListener(TimerEvent.TIMER, EXMove);

function EXMove(event:TimerEvent):void
{
//To slide in on X axis
slideXTween = new Tween(EX1_mc, "x", Regular.easeOut, 882, 499, 2, true);
}

TIMER_DELAY.start();

After the first run, I want the tweening to stop but it didn't.

Here's my .fla file.

This topic has been closed for replies.
Correct answer Ned Murphy

I don't see anything in the code you show that would cause the Timer to execute more than once.  There must be something else at work in the file that is causing a problem.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
August 25, 2010

I don't see anything in the code you show that would cause the Timer to execute more than once.  There must be something else at work in the file that is causing a problem.

August 25, 2010

Would you be able to download the .fla file and take a look? And you are right, according to those code, it shouldn't loop but it did.

August 25, 2010

Yes, there is something other than the code. It has something to do with one of the layers I have in my timeline. Not sure how to

fix it yet.