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
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
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
: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
...@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
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:
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
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
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);
...@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
[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
++;
}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
...@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
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
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
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
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
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
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
19 matches
Mail list logo