Hey there…im having trouble with this xml file.
what im trying to do is load a thumbnail,then its respective swf file through xml.
The structure has to stay the same because of update i will be making to it, so if anyone can point out what i have to do to display the respective .swf can you please post.
Cheers
XML
<featured>
<one thumb="1.jpg">one.swf</one>
</featured>
Heres the AS
// Load XML
function loadXML(loaded){
_root.featured =
this.firstChild.childNodes[0].childNodes[0].firstChild;
_root.one =
this.firstChild.childNodes[0].attributes;
trace(_root.one.thumb) // Displays Attribute
};
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("this.xml");