i want to call an image from an xml file with description, but i’m hanging now… can’t load the image! Please help me out…
function loadXML(loaded) {
if (loaded) {
_root.flyerpic = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.eventname = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
txt_name.text = _root.eventname;
} else {
trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("flyer.xml");
the xml file is this:
<event>
<flyer>
<picture>flyer.gif</picture>
<name>Event Name</name>
</flyer>
</event>
I’m glad if somebody could show me the way to load the image into an empty mc called “mc_flyer”
thanks