# Preloader skips to 100% only when live!

**URL:** <https://forum.kirupa.com/t/preloader-skips-to-100-only-when-live/225199>\
**Category:** flash\
**Created:** [May 9, 2007, 4:53pm UTC](https://forum.kirupa.com/t/preloader-skips-to-100-only-when-live/225199 "2007-05-09T16:53:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![inadequateanima](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@inadequateanima](https://forum.kirupa.com/u/inadequateanima)\
**Post date:** [May 9, 2007, 4:53pm UTC](https://forum.kirupa.com/t/preloader-skips-to-100-only-when-live/225199/1 "2007-05-09T16:53:35Z")

</div>

I’ve built a preloader that works fine locally, when downloading files from the web address supplied. But when I post it live, the preloader shows a frame of 100% then shows the image before it has fully loaded. It ‘pops’ in.  
What am I doing wrong? This has been driving me crazy for 4 days and any help would be much appreciated.  
Thanks!  
The link to the ‘faulty’ site is [www.inadequateanimal.com/index2.html](http://www.inadequateanimal.com/index2.html)

The preloader code I am using for each quadrant is:

filename = [“01.jpg”, “02.jpg”, “03.jpg”, “04.jpg”, “05.jpg”, “06.jpg”, “07.jpg”, “08.jpg”, “09.jpg”];  
path = “[http://www.inadequateanimal.com/pictures/topleft/](http://www.inadequateanimal.com/pictures/topleft/)”;  
i = filename.length;  
k = Math.floor(Math.random()\*i);

\_root.topleft.onEnterFrame = function() {  
startLoading(path+filename[k]);  
infoField.\_visible = true;}  
function startLoading(whichImage) {  
loadMovie(whichImage, topleftloader);  
\_root.topleft.onEnterFrame = function() {  
infoLoaded = \_root.topleft.topleftloader.getBytesLoaded();  
infoTotal = \_root.topleft.topleftloader.getBytesTotal();  
percentage = Math.floor(infoLoaded/infoTotal\*100);  
infoField.text = percentage+"%";  
if (percentage\>=100) {  
infoField.\_visible = false;  
\_root.topleft.gotoAndStop(2);

```
  }

```

};  
}  
stop();
