# Using XML/Actionscript to show an image in Flash MX 2004 (What am I doing wrong?)

**URL:** <https://forum.kirupa.com/t/using-xml-actionscript-to-show-an-image-in-flash-mx-2004-what-am-i-doing-wrong/190124>\
**Category:** flash\
**Created:** [June 8, 2006, 8:07pm UTC](https://forum.kirupa.com/t/using-xml-actionscript-to-show-an-image-in-flash-mx-2004-what-am-i-doing-wrong/190124 "2006-06-08T20:07:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indecisive](https://avatars.discourse-cdn.com/v4/letter/i/a5b964/32.png) [@Indecisive](https://forum.kirupa.com/u/Indecisive)\
**Post date:** [June 8, 2006, 8:07pm UTC](https://forum.kirupa.com/t/using-xml-actionscript-to-show-an-image-in-flash-mx-2004-what-am-i-doing-wrong/190124/1 "2006-06-08T20:07:08Z")

</div>

Heya,

I was wondering if someone could look at this coding that I am using to display XML data. Currently everything loads perfectly except for the thumbnails and I really cannot figure out why or how to make it work. All thumbnails are .jpg’s so that’s not the issue, I know it has to do something with the coding.

> if (items\*.attributes.type == “article”) {  
> // create variables for our elements  
> var article\_title = items\*.firstChild; //  
> var thumb = items\*.childNodes[1]; // second child node

```
        var item_mc = menu_mc.attachMovie("menu_item","item"+item_count, item_count);
        item_mc._y = item_count * item_spacing;
        item_count++;
        
        //
        item_mc.title_txt.text = article_title.firstChild.nodeValue;
        item_mc.picture.MovieClip = thumb.firstChild.nodeValue;

```

Any help would be greatly appreciated as is this problem is the only one left I need to solve. If there’s anything else you need to help further, please let me know and I’ll reply ASAP.

-Ind
