Dynamic Preloader

I created my own photo gallery of dynamicly loaded jpegs using the following code.
The following code is in frame one
createEmptyMovieClip(“container”,2);

The following code is in frame 2 and is repeated in every frame after that with only the name of the image changing.
stop();
loadMovie(“gallery_images/IMG_0755.JPG”,“container”);
container._x=0;
container._y=.8;

It’s a nice galley and works well.
What actionscript can I use as a preloader to show the status of the dynamically loaded jpeg?