# Preload problem. HELP!

**URL:** <https://forum.kirupa.com/t/preload-problem-help/172827>\
**Category:** Uncategorized\
**Created:** [December 18, 2005, 2:55pm UTC](https://forum.kirupa.com/t/preload-problem-help/172827 "2005-12-18T14:55:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AgentOrange](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@AgentOrange](https://forum.kirupa.com/u/AgentOrange)\
**Post date:** [December 18, 2005, 2:55pm UTC](https://forum.kirupa.com/t/preload-problem-help/172827/1 "2005-12-18T14:55:35Z")

</div>

Hi all, I’m working on a site at the moment that loads in the sections as seperate .swf files. Each satelite .swf has a preloader which, for some reason, doesn’t kick in until its 70+% loaded.  
Here’s the code I’m using.

Frame 1: percent=Math.floor(getBytesLoaded()/getBytesTotal()\*100);  
Output.text=percent+"% loaded";

Frame 2: if (percent == 100){  
gotoAndPlay(3);  
}else{  
gotoAndPlay(1);  
}

There are around 10 large(ish) images within the file but, despite the fact that the first three frames contain nothing but a dynamic text box, loading code and a white background, the bandwidth profile says the first frame is 216k. Even so,using the simulated DSL setting the preloader doesn’t appear until around 80% loaded. Why is this? I’m tearing my hair out here. Oh, before anyone asks, I haven’t ticked the ‘export in first frame’ option in any of the movieclips.
