Picture preloader

I made a website for a photographer and every picture takes like four seconds to load. I want to know how can I make a “preloader” every time someone clicks on a button to load the movie with the picture in it. the actionscript I have for those buttons is:

on (release) {
loadMovieNum(“2P.swf”, 1);}

thank you!

One way is to add a preloader to each of those moives that contains the images. Here is a link on how to do that.

http://www.kirupa.com/developer/mx/percentagepreloader.htm

I also notice you’re using loadMovieNum to load your external movies which is unnecessary. You can use just loadMovie, something like this.

on (release){
loadMovie("2P.swf", 1);
}

thanks for your answer. I was trying to make what you told me but I dont think it can work because all the thumbnails are on the same frame. so the actionscripting has to be on the buttons and not on the frames I think… do you have an idea?

What are you talking about? I’m a bit confused. The preloader script has to be on frames, usually at the very beginning at your movie. The preloader script has nothing to do with your button thumbnails because all your content should be after the frames that contains the preloader script.

I’m not sure how to explain, why dont you check the website I made on www.yossisudri.com
I was trying to send you the .fla file but it is too big.
The pictures are separated movies and the buttons make loadmovie to each one of them. everything happens on the same frame. please help me!
thank you very very much

— I checked your website its amazing!!-----