i am trying to “dynamically” create variable names inside a for loop and add them to an array…
var thumbsArray:Array = new Array;
for (var i:Number; i < 5; i++)
{
var this["thumb" + i]:Loader = new Loader;
thumbsArray.push(this["thumb" + i]);
this["thumb" + i].load(new URLRequest("images/samplepic.jpg");
addChild(this["thumb" + i]);
}
// ' this["thumb" + i] ' is definitely not the way to write it.. so how should i write it?