# Timeout prob

**URL:** <https://forum.kirupa.com/t/timeout-prob/178933>\
**Category:** Uncategorized\
**Created:** [February 15, 2006, 3:17pm UTC](https://forum.kirupa.com/t/timeout-prob/178933 "2006-02-15T15:17:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakepeg](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@jakepeg](https://forum.kirupa.com/u/jakepeg)\
**Post date:** [February 15, 2006, 3:17pm UTC](https://forum.kirupa.com/t/timeout-prob/178933/1 "2006-02-15T15:17:47Z")

</div>

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]
