Hi. I have an array containing names of movie clips. I would like to loop through the array, and add the movie clips to the stage.
I have the following code, but obviously this doesn’t work. Can anyone steer me in the right direction?
var mcArray = [];
mcArray .push( "mc1" );
mcArray .push( "mc1" );
mcArray .push( "mc3" );
mcArray .push( "mc4" );
for( var clip in mcArray) {
var newClip:clip = new clip();
this.addChild(newClip);
newClip.x = 0;
newClip.y = 0;
}