]
[mailto:[EMAIL PROTECTED] On Behalf Of Count
Schemula
Sent: 04 July 2006 09:22 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] 50 stars blinking... app gets too slow
Also, FWIW, I think I've heard that brightness is a lot less processor
intensive than alpha.
Assuming that we have access
Very good example Bernard. Thank you :)
Marcelo.
On 7/3/06, Weyert de Boer [EMAIL PROTECTED] wrote:
Works well if you ask me.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Also, FWIW, I think I've heard that brightness is a lot less processor
intensive than alpha.
Assuming that we have access to the brightness property.
On 7/4/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:
Very good example Bernard. Thank you :)
Marcelo.
On 7/3/06, Weyert de Boer [EMAIL
I´ve created 50 star movieclips with random sizes, rotation and scale. Till
there, everything went fine, the sky´s got good looking, but the stars
needed some life, so I thought in adding a fade-in / fade-out tween to
each of them - and here comes the problem - I´ve attached a onEnterFrame
event
It´s random. While some are fading in, others are fading out and so on. I
used Fuse to iterate through the stars created and attach the onEnterFrame
event on each of them.
How I would animate each of them at different times using only one
onEnterFrame event?
Maybe the best solution would be to
It seems much more likely to me that it's alpha related. Remove the
alpha-related code and see if it still occurs.
Scott
On 03/07/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:
It´s random. While some are fading in, others are fading out and so on. I
used Fuse to iterate through the
Marcelo de Moraes Serpa wrote:
It´s random. While some are fading in, others are fading out and so on. I
used Fuse to iterate through the stars created and attach the
onEnterFrame
event on each of them.
Well, you could define variable in each star instance and give up a
fadeSpeed whereby it's
I´ve created 50 star movieclips with random sizes, rotation and scale.
Till there, everything went fine, the sky´s got good looking, but the
stars needed some life, so I thought in adding a fade-in / fade-out
tween to each of them - and here comes the problem - I´ve attached a
onEnterFrame
Thank you all for the replies! :)
@ryanm: I will take a look at this article tonight, seems very interesting.
@Weyert: I didn´t really understand your technique Weyert. Could you please
make it more clear!? How would I iterate through 50+ stars movieclips and
apply it?
Cheers,
Marcelo.
On
Well, what you do is you add +5 or -5 to the current _alpha value.
Meaning you will increase or decrease the current alpha value by 5. It's
like writing instance._alpha = instance._alpha - 5 (or + 5). Of course,
you can use some sort of loop to update all movieclips/stars i.e:
var starsCount
Ok Weyert...:) now I think I´ve got the point - each star would have a
different speed, so, they would blink at different time rates, right? And
with only one loop to achieve this, I would prevent myself of attaching an
onEnterFrame to each of the stars...
Marcelo.
On 7/3/06, Weyert de Boer
Hmmm... looking better at this loop, I don´t think it would do the smooth
fade-in/fade-out I would like to achieve. I guess the best solution still is
animating this fade-in/fade-out using the flash IDE and then do a play() in
the script. I would have only to add a line of script in the last
Well, the negative will make your movieclip fadeout, and a positive one
will fadein. But yes.
.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
A method I've often used to get around this kind of processor hogging is to
set it up that only, say, 10 stars are animating at any one time (i.e. only
10 have onEnterFrame handlers set or even better, following Weyert's
suggestion, update only 10 at a time using a single onEnterFrame handler).
Hi Adrian! Thanks a lot for sharing your valuable experiences ;)
Marcelo.
On 7/3/06, Adrian Park [EMAIL PROTECTED] wrote:
A method I've often used to get around this kind of processor hogging is
to
set it up that only, say, 10 stars are animating at any one time (i.e.
only
10 have
Onderwerp: Re: [Flashcoders] 50 stars blinking... app gets too slow
Hmmm... looking better at this loop, I don´t think it would
do the smooth fade-in/fade-out I would like to achieve. I
guess the best solution still is animating this
fade-in/fade-out using the flash IDE and then do a play
Works well if you ask me.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting
17 matches
Mail list logo