hello
I’m trying to create a list of items from an xml file. the file loads fine but my for loop times-out after about 600 items…
how can I stop this or how to do it differently???
[AS] linksXML.onLoad = function()
{
trace(linksXML);
var theURL;
var theDisplayName;
var baseSearchPath = “response/parameter/value/atoz”;
var total = linksXML.getNodeSiblingCount(baseSearchPath, “link”);
trace(total);
var items = new Array();
// for (var i = 0; i<total; i++)
for (var i = 0; i<500; i++)
{
theURL = linksXML.getNodeAttribute(baseSearchPath + “/link[”+i+"]", “url”);
theDisplayName = linksXML.getNodeAttribute(baseSearchPath + “/link[”+i+"]", “displayname”);
var item = {name:theDisplayName, url:theURL};
items.push(item);
}
_root.atozList = createList(items);
_root.atozLoaded();
}[/AS]