Hiya,
In my library, I have a range of movieClips each with a different linkage: MC1, MC2, MC3, MC4, and MC5.
I’m attempting to add these MovieClips from the library, to the stage, using a single for loop. But I haven’t got the faintest idea of how I can do this.
for (var i:Number = 0; i < 5; i++) {
var myBtn:MC* = new MC*(); // This is the line causing the problem
myBtn.x = i * 327.8;
myBtn.id = i;
myBtn.name = "button" + i;
addChild (myBtn);
}
All ideas are greatly appreciated. Cheers.
Mark Notton