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