I am having some trouble and I cannot put my finger on it, coming back undefined, but all looks perfect! no?
my xml
<clients>
<client>
<image>1.jpg</image>
</client>
</clients>
my flash actionscript
clientXML = new XML();
clientXML.ignoreWhite = true;
clientXML.load("client.xml");
//has the xml loaded
clientXML.onLoad = function(success) {
if (success) {
xmlNode = this.firstChild;
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
//xml retrieval
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
}
firstXML();
}
}
//FIRST XML
function firstXML() {
trace(image[0]);
};