# Please help

**URL:** https://forum.kirupa.com/t/please-help/318107
**Category:** Uncategorized
**Created:** [January 11, 2011, 12:25am UTC](https://forum.kirupa.com/t/please-help/318107 "2011-01-11T00:25:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Asteroids](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@Asteroids](https://forum.kirupa.com/u/Asteroids)
#### Post date: [January 11, 2011, 12:25am UTC](https://forum.kirupa.com/t/please-help/318107/1 "2011-01-11T00:25:36Z")

</div>

hi…

i want to create xml looping for infinite thumbnail

```php
<images>
 <image source="images/Image1.jpg" thumb="thumbnails/thumb1.jpg">Description of image 1.</image>
 <image source="images/Image2.jpg" thumb="thumbnails/thumb2.jpg">Description of image 2.</image>
 <image source="images/Image3.jpg" thumb="thumbnails/thumb3.jpg">Description of image 3.</image>
 <image source="images/Image4.jpg" thumb="thumbnails/thumb4.jpg">Description of image 4.</image>
 <image source="images/Image5.jpg" thumb="thumbnails/thumb5.jpg">Description of image 5.</image>
 <image source="images/Image6.jpg" thumb="thumbnails/thumb6.jpg">Description of image 6.</image>
 <image source="images/Image7.jpg"thumb="thumbnails/thumb7.jpg">Description of image 7.</image>
</images>

```

this my xml code

```php
var imageLoader:Loader;
var xml:XML;
var xmlList:XMLList;
var xmlLoad:URLLoader = new URLLoader();
xmlLoad.load(new URLRequest("iphoneThumb_xml1.xml"));
xmlLoad.addEventListener(Event.COMPLETE, xmlLoaded);
function xmlLoaded(event:Event):void
{
 xml = XML(event.target.data);
 xmlList = xml.children();
 for(var i:int = 0; i < xmlList.length(); i++)
 {
  imageLoader = new Loader();
  imageLoader.load(new URLRequest(xmlList*.attribute("thumb")));
  imageLoader.x = i * 125 + 25;
  loaderImage.addChild(imageLoader);
  trace(i);
 }      
}

```

and this my function for looping

thanks people for help this thread
