Hello,
I have the following loop:
var disabled = new Array('RB0','RC0');
for (var j = 0; j < disabled.length; j++ ) {
var d : MovieClip = getChildByName(disabled[j]) as MovieClip;
var tween:Tween = new Tween(d, "alpha", Strong.easeOut, 1, 0.25, 2, true);
} // Fade disabled
In this case I have only two elements in the array but in fact I will have 70.
I get the error on tween:
Warning: 3596: Duplicate variable definition.
I understand why but how can I avoid this?
I mean, I want only to apply the tween not store it in a tween variable.
I am not sure the best way to tween the 2 … 70 Movie Clips.
How should I do this?
Thank You,
Miguel