use multiple LoadVars objects.
can you make use of this simplified example ?
PHP Code:
// text1.txt -- &vars=a,b,c,d&
// text2.txt -- &vars=e,f,g,h&
fileNames = ["text1.txt", "text2.txt"];
len = fileNames.length;
arr = [];
for(var n=0;n!=len;n++){
this["lv"+n] = new LoadVars();
this["lv"+n].load(fileNames[n]);
this["lv"+n].onLoad = function(){
arr.push(this.vars.split(","));
showArray();
}
}
function showArray(){
trace("--------");
for(var p=0;p!=arr.length;p++){
len2 = arr[p].length;
for(var q=0;q!=len2;q++){
trace("arr["+p+"]["+q+"] = "+arr[p][q]);
}
}
};
/* - produces this array -
_level0.arr = [object #2, class 'Array'] [
0:[object #3, class 'Array'] [
0:"a",
1:"b",
2:"c",
3:"d"
],
1:[object #4, class 'Array'] [
0:"e",
1:"f",
2:"g",
3:"h"
]
*/
hth