Hello, I am using this tutorial here:
http://www.kirupa.com/developer/mx2004/xml_slideshow.htm
But I want to preload all my images, and not have them load one by one as shown on the tutorial. Do I just tweak the preloader code (pasted below) or is this going to require a totally different code? By the way the images are going to be loaded from a URL inside an xml file, and not just a path from my images folder, not sure if that makes a difference.
Any help is appreciated, thanks!
Here’s the preloader code from the tutorial
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};