# Xml pics into dynamic movieclips... To load images...?

**URL:** <https://forum.kirupa.com/t/xml-pics-into-dynamic-movieclips-to-load-images/228498>\
**Category:** Uncategorized\
**Created:** [June 8, 2007, 9:23am UTC](https://forum.kirupa.com/t/xml-pics-into-dynamic-movieclips-to-load-images/228498 "2007-06-08T09:23:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clum](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@clum](https://forum.kirupa.com/u/clum)\
**Post date:** [June 8, 2007, 9:23am UTC](https://forum.kirupa.com/t/xml-pics-into-dynamic-movieclips-to-load-images/228498/1 "2007-06-08T09:23:13Z")

</div>

Can anyone help me please…I’m new to xml and flash integration… so please bear with me!

I’m calling in images from xml like so…

```auto
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;

```

The image paths are appearing in the output window via a trace. So that bit works.

I cant get them to load into the movieclips generated to hold them.

```auto
while (Number(n)<_root.no_ofpics) {
    n = Number(n)+1;
    bn = "button" add n;
    duplicateMovieClip("button", bn, n);
    
setProperty(bn, _x, Number(getProperty(bn, _x))+Number(n*(getProperty(bn, _width)-12)));
                //for (var i = picsroot.firstChild; i != null; i=i.nextSibling) { 
                    bn = attachMovie (bn add ".n", "bn" + count, depth ++, {} );
somehow...load images!?!

```

How should i be expressing the load in this case?

bn[n].loadMovie.image\*;  
or  
“bn” + count.loadMovie(image\*);  
or even  
loadMovie(“images/image”+n+".jpg", bn add “.blank” );  
or similar?!?  
this is bending my brain!
