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.
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;
}
}