Photogalery preloader problem

Hi to everyone!

I built a photogalery all in flash that displays 6 images at a time on one single page, then the user can click on any image displayed to view it more in detail. (Note that some categories have less then 6 images - this works fine all the same, it just loads noting)

Now I wanted to make a genaral preloader for all the images, but I cant understand how. What I had in Mind is creating another object movie that check the bytes loaded of each image adds them up , and then checks how many of these bytes are laoded continussly. However I don’t kno why this when checking if it works, this movie will just appear and disapear, before all the 6 images appear!!

does any one know why this is happening??

(I know my explanation is not so good so if anyone wishes me to give more detail pleas just let me know)

Thanks in advance for any help!