# Preloading all external images at once

**URL:** <https://forum.kirupa.com/t/preloading-all-external-images-at-once/232347>\
**Category:** Uncategorized\
**Created:** [July 13, 2007, 12:23am UTC](https://forum.kirupa.com/t/preloading-all-external-images-at-once/232347 "2007-07-13T00:23:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoolagon](https://avatars.discourse-cdn.com/v4/letter/h/58956e/32.png) [@hoolagon](https://forum.kirupa.com/u/hoolagon)\
**Post date:** [July 13, 2007, 12:23am UTC](https://forum.kirupa.com/t/preloading-all-external-images-at-once/232347/1 "2007-07-13T00:23:42Z")

</div>

Hi,

Im using a mix between xml and loadClip to dynamically load the content of a photogallery into my swf. Everything is working fine except the preloader. I know how to make a preloader for each individual image using this function:

```auto
myListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number){
//blah blah
}

```

However for this particular project it does not matter when each individual image is loaded, but rather I need to know when the whole lot is done. Does anyone know how I can do this… it could be that Im using the wrong approach and maybe I can solve this with some kind of a onLoad(success) type function on the xml part of the code.

Im stuck. Please help, deadlines tomorrow!

Thanks in advance,

J
