# AS3/ XML help loading in images!

**URL:** <https://forum.kirupa.com/t/as3-xml-help-loading-in-images/284892>\
**Category:** flash\
**Created:** [March 24, 2009, 7:13pm UTC](https://forum.kirupa.com/t/as3-xml-help-loading-in-images/284892 "2009-03-24T19:13:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wuzzi2ya](https://avatars.discourse-cdn.com/v4/letter/w/e79b87/32.png) [@wuzzi2ya](https://forum.kirupa.com/u/wuzzi2ya)\
**Post date:** [March 24, 2009, 7:13pm UTC](https://forum.kirupa.com/t/as3-xml-help-loading-in-images/284892/1 "2009-03-24T19:13:51Z")

</div>

Below is my code, everything works fine with the loading of the text, yet I cannot get the images to show. “txtBox\_mc.buttonText.htmlText = contentInput.callout.button;” is my basic structure… Im pretty sure I need a loader to place the images in but I am unsure on how the syntax looks… Please help… And Thanks…

```auto
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();

    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);

    xmlLoader.load(new URLRequest("CalloutContent.xml"));

    function LoadXML(e:Event):void {
        trace("LoadXML");
        xmlData = new XML(e.target.data);
        ParseContent(xmlData);
    }

    function ParseContent(contentInput:XML):void {
        trace("ParseContent");
        txtBox_mc.buttonText.htmlText = contentInput.callout.button;
        txtBox2_mc.buttonText.htmlText = contentInput.callout.button2;
        txtBox3_mc.buttonText.htmlText = contentInput.callout.button3;
     //this is where my path to the images would go but Im not sure where to go from here
        imageBox.image.MovieClip = contentInput.callout.images;
     //This shows no errors but no image either

        trace("XML Output");
        trace("------------------------");
        trace(contentInput);

    }

```
