Re: [Flashcoders] making a repeating effect

2010-02-08 Thread Gustavo Duenas
Home Page: http://keithreinfeld.home.comcast.net -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt S. Sent: Friday, February 05, 2010 9:53 AM To: Flash Coders List Subject: Re: [Flashcoders] making

RE: [Flashcoders] making a repeating effect

2010-02-05 Thread Keith Reinfeld
Better still: import flash.utils.Timer; import flash.events.TimerEvent; var timer:Timer = new Timer(1000, 10); timer.addEventListener(TimerEvent.TIMER, onTimer, false, 0, true); timer.start(); function onTimer(e:TimerEvent):void { // do stuff

Re: [Flashcoders] making a repeating effect

2010-02-05 Thread Matt S.
Unless you need to assign a name or ID number to the heart, eg: heart.name = heart+myCounter; or new Heart(myCounter); (in which myCounter then gets saved within heart as idNum or whatever). I guess it depends on whether the hearts just sit quietly once added or will need to perform their own

RE: [Flashcoders] making a repeating effect

2010-02-05 Thread Keith Reinfeld
:53 AM To: Flash Coders List Subject: Re: [Flashcoders] making a repeating effect Unless you need to assign a name or ID number to the heart, eg: heart.name = heart+myCounter; or new Heart(myCounter); (in which myCounter then gets saved within heart as idNum or whatever). I guess it depends

Re: [Flashcoders] making a repeating effect

2010-02-05 Thread .matt
...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt S. Sent: Friday, February 05, 2010 9:53 AM To: Flash Coders List Subject: Re: [Flashcoders] making a repeating effect Unless you need to assign a name or ID number to the heart, eg: heart.name = heart+myCounter

RE: [Flashcoders] making a repeating effect

2010-02-04 Thread David Hunter
use a Timer() so everytime it elapses it triggers a function to generate a single heart and add it to the display list in a random place and size. increment a counter variable every time the function runs and when it gets to 1000 then get it to cancel your timer. hope that helps. david From:

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Nathan Mynarcik
Add each heart to the stage with alpha at 0. Then use a tween engine to fade the heart in with a delay. Use your i variable as the delay in seconds. --Original Message-- From: Gustavo Duenas Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Jer Brand
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

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Gustavo Duenas
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);

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Jim Lafser
...@mynarcik.com Subject: Re: [Flashcoders] making a repeating effect To: Flash Coders List flashcoders@chattyfig.figleaf.com Date: Thursday, February 4, 2010, 3:16 PM Add each heart to the stage with alpha at 0. Then use a tween engine to fade the heart in with a delay. Use your i variable

RE: [Flashcoders] making a repeating effect

2010-02-04 Thread Merrill, Jason
[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

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Nathan Mynarcik
++; }else{ timer.stop(); } } --Original Message-- From: Gustavo Duenas Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: Re: [Flashcoders] making a repeating effect Sent: Feb 4, 2010 3:14 PM I've downloaded thanks on other matters, when you

RE: [Flashcoders] making a repeating effect

2010-02-04 Thread Keith Reinfeld
...@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

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Gustavo Duenas
ok, now can repeat them until the end of the times...how can I make them to stop at certain number like 200 for example gus On Feb 4, 2010, at 4:14 PM, Gustavo Duenas wrote: I've downloaded thanks on other matters, when you say using a timer, you mean something like this ( I've have this

RE: [Flashcoders] making a repeating effect

2010-02-04 Thread David Hunter
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

RE: [Flashcoders] making a repeating effect

2010-02-04 Thread Merrill, Jason
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

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Jim Lafser
instead of timer. --- On Thu, 2/4/10, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: From: Gustavo Duenas gdue...@leftandrightsolutions.com Subject: Re: [Flashcoders] making a repeating effect To: Flash Coders List flashcoders@chattyfig.figleaf.com Date: Thursday, February 4, 2010, 4:14

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Gustavo Duenas
be registering for the Timer.timer event instead of timer. --- On Thu, 2/4/10, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: From: Gustavo Duenas gdue...@leftandrightsolutions.com Subject: Re: [Flashcoders] making a repeating effect To: Flash Coders List flashcoders

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Muzak
04, 2010 10:37 PM Subject: Re: [Flashcoders] making a repeating effect You can try this: timer.addEventListener(timer,timedFunction); var counter:int; timer.start(); function timedFuntion(e:TimerEvent):void{ if(counter = 1000){ var heart:MovieClip = new Heart(); heart.x = Math.random