# Preloading all images in Flash/XML photo gallery

**URL:** <https://forum.kirupa.com/t/preloading-all-images-in-flash-xml-photo-gallery/177502>\
**Category:** flash\
**Created:** [February 2, 2006, 2:33pm UTC](https://forum.kirupa.com/t/preloading-all-images-in-flash-xml-photo-gallery/177502 "2006-02-02T14:33:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![catia](https://avatars.discourse-cdn.com/v4/letter/c/7993a0/32.png) [@catia](https://forum.kirupa.com/u/catia)\
**Post date:** [February 2, 2006, 2:33pm UTC](https://forum.kirupa.com/t/preloading-all-images-in-flash-xml-photo-gallery/177502/1 "2006-02-02T14:33:01Z")

</div>

Hi,

I’m building a Flash photo gallery, and I came up with a solution using Flash and XML which is very, very similar to the one in this tutorial: [http://www.kirupa.com/developer/mx2004/thumbnails.htm](http://www.kirupa.com/developer/mx2004/thumbnails.htm). The catch is, I’d like to preload all of the images listed in the XML array before showing the first picture. Simply using \_framesloaded will obviously not work; I searched around a bit on Internet, but I haven’t yet found a solution. I thought I might try using an external script in PHP or javascript and use fscommand() in Flash, but I wanted to post here to see if anyone could think of another (simpler) way. Any ideas?

Thanks,  
C

_Forgot to mention in title, this is for FlashMX using ActionScript 1_
