I’m trying to create 4 MC’s, mc1, mc2, mc3 and mc4. Populate the arrray testArray with then and then trace testArrays’ contents so that that the output is:
mc1
mc2
mc3
mc4
do i have to treat mc like a string in order to concatenate it with the var i in the loop? that isn’t working.
var testArray:Array = new Array;
for(var i = 1; i < 4; i++){
var "mc"+i:MovieClip = new MovieClip;
testArray.push("mc"+i);
trace(testArray*)
}
If i don’t use the quotes around mc it also dosn’t work and asks for a semicolon before the plus.
would someone show me how this is done?
Thanks!