I have the following code in AS2 :
for(g=0; g<10; g++) {
var curCard = attachMovie("Card Clip", String("card"+String(g)+"_mc"), 500000 + g);
cur = eval("card"+String(g)+"_mc");
}
How would I do this in AS3. I need to be able to create movie clips with dynamic names and then be able to directly reference them with my code afterwards.
for(g=0; g<10; g++) {
var curCard = attachMovie("Card Clip", String("card"+String(g)+"_mc"), 500000 + g);
cur = eval("card"+String(g)+"_mc");
}
How would I do this in AS3. I need to be able to create movie clips with dynamic names and then be able to directly reference them with my code afterwards.