Dynamic Images and Loading

Here’s my situation…
I have a slideshow of no more than 5 jpgs (01.jpg-05.jpg) that I am dynamically loading that will be animated linearly (ie. 01.jp, 02.jpg, etc.).

I’m loading them into a container movieclip, and they load in fine and my movie works great.

Here’s my problem…
I would like to know that if there isn’t a 04.jpg, or 05.jpg on the server where my images are, that after my movieclip plays the 01.jpg, 02.jpg, & 03.jpgs, that if there is no #4 or#5, that my movie would loop back to play the number 01.jpg again. I hope I explained it well, but I am in dire need of help. Here’s
my loading images code…

imageHolder2._x = 0;
imageHolder2._y = 0;
loadMovie(“02.jpg”, _root.container.imageHolder2);

Thanks for listening!