http://pastebin.com/m2b549c17
of course i guess you could put the code inside the makeHeart() function 
straight in the myTimerTrigger() function.
you could write it without the second argument in new Timer() and just restart 
the timer every time it completes and use a variable to increment and check if 
it has reached the desired count. this situation might be better if you need to 
change "on the fly" how many it will make once the timer has started. i'm not 
that up on timers, i tend not to use them much.
hope that solves it for you.
david

> From: gdue...@leftandrightsolutions.com
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] making a repeating effect
> Date: Thu, 4 Feb 2010 16:14:02 -0500
> 
> 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
                                          
_________________________________________________________________
Send us your Hotmail stories and be featured in our newsletter
http://clk.atdmt.com/UKM/go/195013117/direct/01/_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to