>>the question is , how can I stop this? Just keep a variable that keeps count. Increment the "countHearts" or whatever you call it variable every time the timer function runs. When you reach 1000, stop the timer, remove the timer listener, set it to null and you're done.
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 Gustavo Duenas Sent: Thursday, February 04, 2010 4: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 _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders