# I got Problem with xml for image handler

**URL:** <https://forum.kirupa.com/t/i-got-problem-with-xml-for-image-handler/248504>\
**Category:** Uncategorized\
**Created:** [January 8, 2008, 10:29pm UTC](https://forum.kirupa.com/t/i-got-problem-with-xml-for-image-handler/248504 "2008-01-08T22:29:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyme](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@kyme](https://forum.kirupa.com/u/kyme)\
**Post date:** [January 8, 2008, 10:29pm UTC](https://forum.kirupa.com/t/i-got-problem-with-xml-for-image-handler/248504/1 "2008-01-08T22:29:40Z")

</div>

i made a code from flash that will display images  
from movie clip and now im using XML to handle images.  
but then the problem is my image wil not display,  
Actually i want to display my image each movie clip with different animation.  
And now heres my XML code.

> 

\<?xml version=“1.0” encoding=utf-8" standalone=“yes”?\>

```
       &lt;pic id="1"&gt;
            &lt;image&gt;raw/sample. jpg&lt;/image&gt;
       &lt;/pic&gt; 

        &lt;pic id="2"&gt;
             &lt;image&gt;raw/sample2.jpg&lt;/image&gt;
        &lt;/pic&gt;

```

and now heres my flash code that will suppose to work out w/ XML  
i just dont want to use arrays for this, i just want to call them through user id from XML tags.  
if possible ^\_^?

> 

```
 my_xml=new XML();

```

my\_xml.ignoreWhite=true;  
my\_xml.onLoad=loadXML;;  
my\_xml.load(“image.xml”)

function loadXML(loaded){

```
   if(!loaded)
{
 trace("error and wont work");
 return;
}

```

**this.img1.loadMovie(pic [id=1]);** \<– DID I MISS SOMETHING PART IN HERE?  
scale = 40;  
img1.\_xscale = scale;  
img1.\_yscale = scale;  
}
