# Adding preloader to beginning of movie

**URL:** <https://forum.kirupa.com/t/adding-preloader-to-beginning-of-movie/111584>\
**Category:** Uncategorized\
**Created:** [May 28, 2004, 3:23pm UTC](https://forum.kirupa.com/t/adding-preloader-to-beginning-of-movie/111584 "2004-05-28T15:23:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy11983](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@andy11983](https://forum.kirupa.com/u/andy11983)\
**Post date:** [May 28, 2004, 3:23pm UTC](https://forum.kirupa.com/t/adding-preloader-to-beginning-of-movie/111584/1 "2004-05-28T15:23:57Z")

</div>

Hi its me again,

I as stated im anewbie to flash, anyway i was doin the tutorial ‘percentage preloader with load bar’ & ‘create a photo gallery’ anyway i was wondering how do i add the preloader to the beginning of the photo gallery movie?

Thanks for your help

Andy

---

<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:** [May 28, 2004, 4:05pm UTC](https://forum.kirupa.com/t/adding-preloader-to-beginning-of-movie/111584/2 "2004-05-28T16:05:20Z")

</div>

In your preloader movie put the gallery in frame3  
change this

```auto
if (bytes_loaded == bytes_total) {
                                 this.gotoAndPlay(3);

```

in

```auto
if (bytes_loaded == bytes_total) {
                                 this.gotoAndStop(3);

```

scotty(-:

---

<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:** [May 28, 2004, 4:22pm UTC](https://forum.kirupa.com/t/adding-preloader-to-beginning-of-movie/111584/3 "2004-05-28T16:22:20Z")

</div>

Hi scotty,

Cheers again, mate,i made the chnages you suggested. now when i run the movie the preload bar doesn’t increase, like you see it doin in the net? howcome?

Cheers again mate appreciate your help.

Andy

---

<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:** [May 28, 2004, 4:31pm UTC](https://forum.kirupa.com/t/adding-preloader-to-beginning-of-movie/111584/4 "2004-05-28T16:31:25Z")

</div>

Or if you test your movie (CTRL+Enter), hit CTRL+Enter again to simulate a download, you can set the setting (modem, cable etc) in the View menu (I believe that what it is in MX).  
Or what’s happening is that your movie is too “small” since in the gallery you load all the images;)  
Btw, in the code of the gallery is “room” for a preloader:)

scotty(-:
