Hi,
I've been using a "for" loop in a javascript to load multiple nodes from an xml file, but now I need to do the same thing in flash. Here's the javascript code:
As they're written, I can't use the two variables (xmlDoc & x) or "document.write " in Actionscript. It's not working and I couldn't find anything to help me in the tutorials/help files in Flash itself. Does anyone know how to do this?
Thanks in advance!
I've been using a "for" loop in a javascript to load multiple nodes from an xml file, but now I need to do the same thing in flash. Here's the javascript code:
Code:
xmlDoc=loadXMLDoc("xmlfile.xml");
x=xmlDoc.getElementsByTagName('info');
for (i=0;i<x.length;i++)
{
document.write(x[i].childNodes[0].nodeValue)
document.write("<br />")
}
Thanks in advance!
Comment