Okay, I have a flash file that is basically a large gallery of images that are being arranged and moved around on stage. They are specific objects that I named Image01, Image02, Image03, etc. There's a total of 25 of them, and I want to preform all my tweens with for loops instead of typing the various tweens 25 times over. Here's my code.
for(var i:int = 1; i <= ArraySize; i++){ //Builds my Array of Objects on Stage
if(i<10){
ImageNames[i] = Object(“Image” + “0″ + i);
} else if(i>=10){
ImageNames[i] = Object(“Image” + i);
}
TweenMax.to(ImageNames[i], 0, {x:x_Dist, y:y_Dist, colorMatrixFilter:{saturation:0}}); //Do my tweening stuff
}
My problem is, TweenMax keeps trying to Tween the Array Object instead of the name of the object on stage that the array is holding. Is there anyway to tell Flash that the current ImageNames[] element is an object on stage for it to manipulate?
Thanks in Advance