Trying to use a tween in a loop and apply it to each dynamically created movieclip, not as a block after the fact. here is the sample code:
stage.frameRate = 30;
for (var i:int = 1; i < 5; i++)
var rectMC:String = “rect”.concat(i);
this[rectMC] = new MovieClip();
this[rectMC].graphics.beginFill(Math.random() * 0xFFFFFF);
var fadeIn:Tween = new Tween(this[rectMC], “alpha”, None.easeNone, 0, 1, 60, false);
The actionscript code works fine, except for the tween, which is applied on all the sample rectangles at once. I want to fade in the rectangles (or any other dynamically created movieclips in loops) one at a time. Any ideas would be a great help. Thanks.