>> The second param limits the number of times it can fire. True, both methods will work. However, if you use the second repeatCount parameter, then you won't know when it's finished so you can remove your listener unless you also add a listener to listen for the timerComplete event as well - so you'd have two listeners running instead of one and have to remove both of those listeners. Doesn't matter either way IMO, just be sure you remove the listeners when it's finished if you don't need it anymore.
Jason Merrill Bank of America Global Learning Learning & Performance Soluions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -----Original Message----- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Keith Reinfeld Sent: Thursday, February 04, 2010 4:42 PM To: 'Flash Coders List' Subject: RE: [Flashcoders] making a repeating effect var timer:Timer = new Timer(5000, 1000); The second param limits the number of times it can fire. Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net -----Original Message----- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Gustavo Duenas Sent: Thursday, February 04, 2010 3:14 PM To: Flash Coders List Subject: Re: [Flashcoders] making a repeating effect I've downloaded thanks on other matters, when you say using a timer, you mean something like this ( I've have this from a tutorial, mixing with my idea); something like this? import flash.utils.*; var timer:Timer = new Timer(5000); timer.addEventListener("timer",TimedFunction); timer.start(); function timedFuntion(e:TimerEvent):void{ var heart:MovieClip = new Heart(); heart.x = Math.random * stage.stageWidth; heart.y = Math.random * stage.stageHeight; } the question is , how can I stop this? Gus On Feb 4, 2010, at 3:40 PM, Jer Brand wrote: > Completely un-helpful for your code, but you could also give HYPE a > whirl. Have been having a blast playing with it lately. I think the > above task is one of the examples. > > http://hype.joshuadavis.com/ > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2665 - Release Date: 02/04/10 01:35:00 _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders