# Loading image from a loop problem

**URL:** <https://forum.kirupa.com/t/loading-image-from-a-loop-problem/223046>\
**Category:** flash\
**Created:** [April 19, 2007, 1:09am UTC](https://forum.kirupa.com/t/loading-image-from-a-loop-problem/223046 "2007-04-19T01:09:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baeshin](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@Baeshin](https://forum.kirupa.com/u/Baeshin)\
**Post date:** [April 19, 2007, 1:09am UTC](https://forum.kirupa.com/t/loading-image-from-a-loop-problem/223046/1 "2007-04-19T01:09:52Z")

</div>

Hey guys,

I have problem with loading an image from a loop.  
The method I used is I created an array, then load the xml file with the images. And in the loop, where also the menu is created, I called through the array the wanted image from the xml.

I tried to find the problem, but I don’t get it to work as I want.  
The output says that the url is undefined, but sometimes when I try a different aproach, it loads constantly the same picture.

Hopefully can someone help me with this one=)

Cheers,

Baeshin.

[http://student.cmd.hro.nl/0781034/menu/menu.zip](http://student.cmd.hro.nl/0781034/menu/menu.zip)
