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