Can you create multiple variables with a function or a loop?
I want to dynamically create variables that will create and place instances of a movie clip on the stage at runtime. Is this possible? Here's what I've come up with, I know it's super wrong. Any help is much appreciated:
var counter:Number = 3;
for (var i:int = 0; i<counter; i++)
{
var a:Number = i
var a:pill1_mc = new pill1_mc();
i.x = 600;
i.y = 55;
if (i != 0)
{
i.y = (i-1).y +36;
}
}