# Any Loop experts out there?

**URL:** <https://forum.kirupa.com/t/any-loop-experts-out-there/83303>\
**Category:** flash\
**Created:** [March 17, 2005, 4:47pm UTC](https://forum.kirupa.com/t/any-loop-experts-out-there/83303 "2005-03-17T16:47:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![orionstar](https://avatars.discourse-cdn.com/v4/letter/o/51bf81/32.png) [@orionstar](https://forum.kirupa.com/u/orionstar)\
**Post date:** [March 17, 2005, 4:47pm UTC](https://forum.kirupa.com/t/any-loop-experts-out-there/83303/1 "2005-03-17T16:47:59Z")

</div>

Hello, I have some actionscript that calls xml data from a few nodes and I would like them to loop through each “section”.  
What am I doing wrong? Only the first section where “k”=0 shows and nothing else.

```auto

var nd = 0;
k=0;

for(i=0;i<=75;i++) {
		for(ki=0;ki<=12;k++) {
	format.setStyle(".topnav", {fontWeight:"bold", color:"#000000", fontSize:"10px"});
	format.setStyle("a:hover", {color:"#FF9900",textDecoration:"underline"});
	format.setStyle("a:link", {color:"#FFFFFF"});
	format.setStyle("custom", {color:"#0066FF"});
	_root.menu1["judejude"].styleSheet = format;
	_root.menu1["link_txt"+i].styleSheet = format;
	
		
  jude1 = this.firstChild.childNodes[k].childNodes[nd++].firstChild.nodeValue;
  output.htmlText="<p class='community'>"+jude1+"</p>"; 
  _root.menu1["link"+i] = this.firstChild.childNodes[k].childNodes[nd++].firstChild.nodeValue;
	thaddeus= "<a class='headline' href='"+ _root.menu1["link"+i]+ "'><b>"+jude1 +"</b></a>"; 
   _root.menu1["link_txt"+i].htmlText=thaddeus; 
   _root.menu1["judejude"].htmlText=jude1;
		
}
}

```
