# Smooooth Load All Frames Preloader

**URL:** <https://forum.kirupa.com/t/smooooth-load-all-frames-preloader/217280>\
**Category:** Uncategorized\
**Created:** [February 25, 2007, 6:06am UTC](https://forum.kirupa.com/t/smooooth-load-all-frames-preloader/217280 "2007-02-25T06:06:49Z")\
**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:** [February 25, 2007, 6:06am UTC](https://forum.kirupa.com/t/smooooth-load-all-frames-preloader/217280/1 "2007-02-25T06:06:49Z")

</div>

OK the preloader works, however it doesn’t load from the 1st frame, to the last. it just jumps (which defies the point of my preloader) this is the script I am using:

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

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

Anyone have any ideas to load or maybe delay the loading, since its not that big of a swf anyway.:afro:
