RE: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-06 Thread neo binedell
] [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

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-04 Thread Marcelo de Moraes Serpa
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:

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-04 Thread Count Schemula
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

[Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Marcelo de Moraes Serpa
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

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Marcelo de Moraes Serpa
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

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Scott Hyndman
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

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Weyert de Boer
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

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread ryanm
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

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Marcelo de Moraes Serpa
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

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Weyert de Boer
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

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Marcelo de Moraes Serpa
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

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Marcelo de Moraes Serpa
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

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Weyert de Boer
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:

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Adrian Park
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).

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Marcelo de Moraes Serpa
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

RE: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Bernard Visscher
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

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Weyert de Boer
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