# Preloader finishing b4 fully loaded

**URL:** https://forum.kirupa.com/t/preloader-finishing-b4-fully-loaded/189908
**Category:** Uncategorized
**Created:** [June 7, 2006, 4:34am UTC](https://forum.kirupa.com/t/preloader-finishing-b4-fully-loaded/189908 "2006-06-07T04:34:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fenomnon64](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@fenomnon64](https://forum.kirupa.com/u/fenomnon64)
#### Post date: [June 7, 2006, 4:34am UTC](https://forum.kirupa.com/t/preloader-finishing-b4-fully-loaded/189908/1 "2006-06-07T04:34:05Z")

</div>

Wutsup Doods,  
Anyways, having a preloader issue here, It seems that the preloader I have created will only load 1/2 way, then will jump to the site, however the site isn’t fully loaded yet. I am wondering what could be the cause of that. I wonder if it is because there are multiple movie clips in the animation or something. this is the script I have been using for the preloader:

* * *

onClipEvent (load) {  
totalBytes =\_root.getBytesTotal();  
}

onClipEvent (enterFrame) {  
loadedBytes =\_root.getBytesLoaded();  
percentLoaded = Math.round (loadedBytes/totalBytes\*100);  
gotoAndStop (percentLoaded);  
if (loadedBytes ==totalBytes) {  
\_root.gotoAndPlay (“website”);  
}  
}

* * *

:crazy:
