# (FMX) pre-loader help

**URL:** <https://forum.kirupa.com/t/fmx-pre-loader-help/45143>\
**Category:** flash\
**Created:** [March 11, 2004, 11:51am UTC](https://forum.kirupa.com/t/fmx-pre-loader-help/45143 "2004-03-11T11:51:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom\_s](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@tom\_s](https://forum.kirupa.com/u/tom_s)\
**Post date:** [March 11, 2004, 11:51am UTC](https://forum.kirupa.com/t/fmx-pre-loader-help/45143/1 "2004-03-11T11:51:27Z")

</div>

hi everyone!

how its done, when you enter to site [http://www.calpoly.edu/~mghanson/flash/spacegrid.html](http://www.calpoly.edu/~mghanson/flash/spacegrid.html) pre-loader loading the content of site  
and when you re-enter to site you see the  
pre-loader once again and pre-loader loading from 1 to 100 fast  
what script cause this effect ?

i have 2 mc, mc1 with script :

onClipEvent (enterFrame) {  
if (!loaded && this.\_url != \_root.\_url) {  
if (this.getBytesLoaded() == this.getBytesTotal()) {  
loaded = true;  
\_root.mc2.gotoAndPlay(“preloader”);  
}  
}  
}

and mc2 have preloader in 2 frames and then goes frame with label loadMovie(“content”)

but its not working, help me pls…

---

<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:** [March 11, 2004, 7:15pm UTC](https://forum.kirupa.com/t/fmx-pre-loader-help/45143/2 "2004-03-11T19:15:01Z")

</div>

That’s simply how preloaders work, there’s no script that causes it to happen. What basically happens it this: when you first enter the site, the content isn’t in the cache of the user yet. So the content is downloaded, and the preloader displays this progress.

When you reload the site after it has finished loading, the content will already be downloaded to the user’s cache, and therefore the content doesn’t need to be downloaded again. This is why the preloader displays 100 immediately, because the content is already downloaded; it’s already 100% downloaded from the very first second you view the site, because it is in the cache of the user. 🙂

---

<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:** [March 12, 2004, 7:26pm UTC](https://forum.kirupa.com/t/fmx-pre-loader-help/45143/3 "2004-03-12T19:26:18Z")

</div>

I really can’t say. I’ve got lots of things to do, and my website is growing veeeeery slowly.
