# Picture preloader

**URL:** https://forum.kirupa.com/t/picture-preloader/26465
**Category:** Uncategorized
**Created:** [July 23, 2003, 10:57am UTC](https://forum.kirupa.com/t/picture-preloader/26465 "2003-07-23T10:57:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dafnabru](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@dafnabru](https://forum.kirupa.com/u/dafnabru)
#### Post date: [July 23, 2003, 10:57am UTC](https://forum.kirupa.com/t/picture-preloader/26465/1 "2003-07-23T10:57:30Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2003, 11:07am UTC](https://forum.kirupa.com/t/picture-preloader/26465/2 "2003-07-23T11:07:15Z")

</div>

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](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.

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

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2003, 12:16pm UTC](https://forum.kirupa.com/t/picture-preloader/26465/3 "2003-07-23T12:16:21Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2003, 12:19pm UTC](https://forum.kirupa.com/t/picture-preloader/26465/4 "2003-07-23T12:19:11Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2003, 12:31pm UTC](https://forum.kirupa.com/t/picture-preloader/26465/5 "2003-07-23T12:31:10Z")

</div>

I’m not sure how to explain, why dont you check the website I made on [www.yossisudri.com](http://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!!-----
