Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-14-2012, 03:56 AM   #1
Registered User
Join Date: Dec 2010
Posts: 22
Default 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");
grayle is offline   Reply With Quote
Old 04-14-2012, 04:37 AM   #2
Registered User
Join Date: Dec 2010
Posts: 22

Woops, nvm. solved it. Devil is always in the details... :P
grayle is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:51 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.