# Xml...am i on the right way?

**URL:** <https://forum.kirupa.com/t/xml-am-i-on-the-right-way/169794>\
**Category:** Uncategorized\
**Created:** [November 19, 2005, 3:13pm UTC](https://forum.kirupa.com/t/xml-am-i-on-the-right-way/169794 "2005-11-19T15:13:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surekin](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Surekin](https://forum.kirupa.com/u/Surekin)\
**Post date:** [November 19, 2005, 3:13pm UTC](https://forum.kirupa.com/t/xml-am-i-on-the-right-way/169794/1 "2005-11-19T15:13:39Z")

</div>

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…

```auto
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:

```auto
<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
