Timer not firing
Hi guys, I'm just now jumping on the as3 bandwagon after resisting as2 because it was what I was comfortable with. I know the problem's solution is staring me right in the face, and I'm resisting every urge to run back to as2 and finish this problem in 3 minutes. I created a timer so that a movie clip I'm trying to place on a timer transitions every 3 seconds to a new image inside the movie clip. The problem is that the code just wont execute. There are no errors, and I've tried putting a trace inside the event listen function. it just wont run.
Could anyone help me out with this? Thanks!
var mycrawler:Timer = new Timer(3000);
mycrawler:addEventListener(TimerEvent.TIMER, timerListener);
function timerListener (e:TimerEvent):void{
trace("Timer is Triggered");
myAdCrawler.nextFrame();
}
mycrawler.start();
|