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

Reply via email to