Hi everyone, i’m running in to a little trouble with actionscript 3.0.
I have an xmlList object, but using the xmlList is very slow, so i want to copy the data in to an array.
I can do this using this loop.
//set up map data
for (var j:uint = 1;j<=layerData.length();j++){
var temp:Array = new Array();
for (var k:uint = 1;k<=layerData[j].data.tile.@gid.length();k++){
temp.push(layerData[j].data.tile.@gid[k]);
}
mapData[j] = temp;
};
Problem is, its very slow, and causes lash to timeout, so is there a faster way to copy an xmllist contents to an array?