# Need XML Preloader

**URL:** <https://forum.kirupa.com/t/need-xml-preloader/261310>\
**Category:** flash\
**Created:** [May 26, 2008, 6:40am UTC](https://forum.kirupa.com/t/need-xml-preloader/261310 "2008-05-26T06:40:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seek\_nik](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@seek\_nik](https://forum.kirupa.com/u/seek_nik)\
**Post date:** [May 26, 2008, 6:40am UTC](https://forum.kirupa.com/t/need-xml-preloader/261310/1 "2008-05-26T06:40:18Z")

</div>

Hello All,

I am using a script for downloading my xml file which contains the path for all images.

xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.load(“photogallery/2008/Farewell/farewelldata.xml”);  
xmlData.onLoad = loadXML;  
function loadXML(loaded) {  
if (loaded) {  
xmlNode = this.firstChild;  
image = [];  
description = [];  
cont = [];  
type = [];

```
    total = xmlNode.childNodes.length;
    for (i=0; i&lt;total; i++) {
        type* = xmlNode.childNodes*.attributes.typ;
        image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
        description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
        cont* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
    }
    firstImage();
    createThumb();            
    //trace(xmlNode.childNodes.length);
} else {
    content = "file not loaded!";
    loadtxt.text = "loading...";
    
}

```

}

Can you please tell me a solution to integrate preloader for this xml content. Also I need to integrate a preloader for the fla contents. Please advice
