How do you create new MovieClipLoader instances dynamically? Like supposing I want to create 20 new MovieClipLoader using while with names “mcl1”, “mcl2”, “mcl3…”, how does it work? I have my code below but I keep getting syntax errors
var i:Number = 1;
while(i <= 20){
var _root["mcl" + i]:MovieClipLoader = new MovieClipLoader(); //error in this line
i++;
}
Is there a way to do this or should I write all 20 one by one instead?