Preloading Images in XML photogallery

I’m using this photogallery

http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm

Is there any way to display the first image and while it is displayed preload all the remaining images to avoid any delay while viewing the rest? I’ve tried some actionscript but I’m new to flash and the weird results i’m getting prove just as much.