# XML help. . . AGAIN :(

**URL:** <https://forum.kirupa.com/t/xml-help-again/307086>\
**Category:** flash\
**Created:** [March 27, 2010, 10:39pm UTC](https://forum.kirupa.com/t/xml-help-again/307086 "2010-03-27T22:39:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivavida](https://avatars.discourse-cdn.com/v4/letter/v/848f3c/32.png) [@Vivavida](https://forum.kirupa.com/u/Vivavida)\
**Post date:** [March 27, 2010, 10:39pm UTC](https://forum.kirupa.com/t/xml-help-again/307086/1 "2010-03-27T22:39:22Z")

</div>

Ok I have an empty movieclip called picture, i am trying to load an image by using XML

I traced xmlData.Book[0].author and it DOES return “grace.png” which is the name of the image! So what is wrong with the below text?? Thanks! 🙂  
x

var xmlLoader:URLLoader = new URLLoader();  
var xmlData:XML = new XML();  
var imageLoader:URLLoader = new URLLoader();

var image = xmlData;  
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);  
xmlLoader.load(new URLRequest(“sampleXML.xml”));

function LoadXML(e:Event):void {  
xmlData = new XML(e.target.data);  
image = xmlData.Book[0].author  
picture.loadMovie(image);  
}
