Cache preloader

Hello everyone. This is my first time posting, so I wanted to make sure it was a worthy question :slight_smile:

I’ve been building a photo gallery that calls an XML file to load all the meta data, including the paths for the images i’m using in the gallery. I have a chaching function that’s running in the background after the file is loaded, but I’d really like to setup a preloader that pauses the movie until all the images are ‘cached’.

Does anyone know of an easy way to do this?

I was thinking of adding another loop that would get the filesize of each image loaded into my array, then pause in the loop until each image loads. Would this be an ‘if’ followed by a series of ‘&&’ statements for each image?

Thanks in advance for any help.