# XML pre-loader, how do I make one?

**URL:** <https://forum.kirupa.com/t/xml-pre-loader-how-do-i-make-one/246271>\
**Category:** flash\
**Created:** [December 9, 2007, 10:05am UTC](https://forum.kirupa.com/t/xml-pre-loader-how-do-i-make-one/246271 "2007-12-09T10:05:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheena](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sheena](https://forum.kirupa.com/u/sheena)\
**Post date:** [December 9, 2007, 10:05am UTC](https://forum.kirupa.com/t/xml-pre-loader-how-do-i-make-one/246271/1 "2007-12-09T10:05:28Z")

</div>

I’m using an xml file to load a number of images, this works fine but the images load one by one when i’m online, instead of all at once which is what I need.

Can anyone show me how I can set up a pre-loader for the xml file?

Many thanks

PS. I have looked at the kirupa tutorial but i’m not sure how I can make it work for me. I have a button on the main timeline that loads a swf file into an empty movieclip, the swf contains the xml call to load the images.

I’ve tried this but for some reason it doesn’t work:

myXML = new XML();  
myXML.load(“images.xml”);  
myXML.onLoad = function(success) {  
if (success) {  
gotoAndStop(2);  
trace(“success!”);  
}  
};
