Hi Everybody!
I just want to know if any body can help me? im trying to load a xml file on flash but it does not load the whole content of the xml file.
here is my code on the actions layer
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
title = [];
description = [];
link = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
title* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
link* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
rssfeed.text = _root.title+ "
" + _root.description+ "
"+ _root.link+ "
";
}
trace(total);
} else {
trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://www.kirupa.com/modular/kirupa.xml");
is there somebody can help with these?
Thanks in advance,
mjmdotorg