i am trying to create a loop that will put a list of names from external sources into a number of Arrays .so what i did is :
for (i=0; i<4; i++) {
this["loadVarsText"+i] = new LoadVars();
this["loadVarsText"+i].onLoad = function(success) {
if (success) {
originText = this.textVar;
this["cdNames"+i] = new Array();
this["cdNames"+i] = "loadVarsText"+i.textVar.split(",");
}
};
this["loadVarsText"+i].load("cd"+i+".txt", originText);
}
and i dont understand why it is not working, and how can i fix it?