# Preloading problems

**URL:** https://forum.kirupa.com/t/preloading-problems/244726
**Category:** Uncategorized
**Created:** [November 21, 2007, 7:01am UTC](https://forum.kirupa.com/t/preloading-problems/244726 "2007-11-21T07:01:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sy0995](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@sy0995](https://forum.kirupa.com/u/sy0995)
#### Post date: [November 21, 2007, 7:01am UTC](https://forum.kirupa.com/t/preloading-problems/244726/1 "2007-11-21T07:01:23Z")

</div>

i came across this preloading problem when i was making a full-flash site.i made a preloader to show numbers from1 to 100 while the movie is loading,the preloader works fine with most of my movies but one,when i try to jump to that part i have to wait at least8’’ of blank to see the preloader with the number of 98.I’ve no idea why,that movie has the exactly same code for preloader as others’,  
here is the code of the preloader

//code for the first frame  
loaded\_bytes = Math.round(\_root.getBytesLoaded());  
loaded\_total = Math.round(\_root.getBytesTotal());  
total\_percent = (loaded\_bytes/loaded\_total)\*100;  
\_root.loaded\_text = Math.round(total\_percent);  
if(loaded\_bytes == total\_percent){  
gotoAndPlay(3)  
}  
//code for second frame  
gotoAndPlay(1);  
really preciate it
