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 keyframe
of the star animation to make it loop.

On 7/3/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote:

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 <[EMAIL PROTECTED]> wrote:
>
> 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  = 50;
> var i =0;
> while ( i < starsCount ) {
>   var currentStar = _root[ "star" + i ]._alpha ;
>   currentStar._alpha = currenStar._alpha + currentStar.alphaSpeed;
>   i++;
> }
> _______________________________________________
> [email protected]
> 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 and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


_______________________________________________
[email protected]
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 and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to