# XML and Image Gallery

**URL:** https://forum.kirupa.com/t/xml-and-image-gallery/248895
**Category:** flash
**Created:** [January 13, 2008, 12:18am UTC](https://forum.kirupa.com/t/xml-and-image-gallery/248895 "2008-01-13T00:18:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![marSoul](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/marsoul/32/3456_2.png) [@marSoul](https://forum.kirupa.com/u/marSoul)
#### Post date: [January 13, 2008, 12:18am UTC](https://forum.kirupa.com/t/xml-and-image-gallery/248895/1 "2008-01-13T00:18:11Z")

</div>

Hi all  
I want to create an image gallery like the nvidia site : [http://www.nvidia.com/page/home.html](http://www.nvidia.com/page/home.html)  
If you see the flash intro, you can see that 4 images with description will load and loop continually.  
I have created the xml part in flash, but the problem is :

1. how can i make pause between images that are showing ?
2. how can i make it looping ?

i am images from a directory with xml.

```auto
function loadXML(loaded) {
    if (loaded) {
        xmlNode = this.firstChild;
        images = [];
        titles = [];
        total = xmlNode.childNodes.length;
        for (i=0; i<total; i++) {
            _root.images = xmlNode.childNodes*.childNodes[0].firstChild;
            _root.desc = xmlNode.childNodes*.childNodes[1].firstChild;
            _root.textHolder.textHolder.text = _root.desc;
            loadMovie(images, imageHolder);

        }
    } else {
        trace("file not loaded!");
    }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images_xml.xml");

```

please help me…
