Re: [Flashcoders] making a repeating effect

2010-02-08 Thread Gustavo Duenas
ith 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 Matt S. Sent: Friday, February 05, 2010 9:53 AM To: Flash Coders List Subject: Re: [Flashcoders] makin

Re: [Flashcoders] making a repeating effect

2010-02-05 Thread .matt
hattyfig.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&q

RE: [Flashcoders] making a repeating effect

2010-02-05 Thread Keith Reinfeld
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; or new Heart(myCounter); (in which myCounter then gets saved within "heart" as i

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

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 if(e.currentTarget.currentC

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Muzak
m * stage.stageWidth; heart.y = Math.random * stage.stageHeight; counter++; }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:

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Gustavo Duenas
stener you've already got should be registering for the Timer.timer event instead of "timer". --- On Thu, 2/4/10, Gustavo Duenas wrote: From: Gustavo Duenas Subject: Re: [Flashcoders] making a repeating effect To: "Flash Coders List" Date: Thursday, February 4, 2010,

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Jim Lafser
imerĀ event instead of "timer". --- On Thu, 2/4/10, Gustavo Duenas wrote: From: Gustavo Duenas Subject: Re: [Flashcoders] making a repeating effect To: "Flash Coders List" Date: Thursday, February 4, 2010, 4:14 PM I've downloaded thanks on other matters, when you sa

RE: [Flashcoders] making a repeating effect

2010-02-04 Thread Merrill, Jason
n...@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 c

RE: [Flashcoders] making a repeating effect

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

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 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, mixi

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Nathan Mynarcik
ight; counter++; }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 o

RE: [Flashcoders] making a repeating effect

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

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Jim Lafser
: [Flashcoders] making a repeating effect To: "Flash Coders List" 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 as the delay in seconds. --Original Message

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); timer.star

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 Flashcoders@chattyfig.fig

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 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: