# Preloader quirk?

**URL:** <https://forum.kirupa.com/t/preloader-quirk/76622>\
**Category:** flash\
**Created:** [January 20, 2005, 12:08am UTC](https://forum.kirupa.com/t/preloader-quirk/76622 "2005-01-20T00:08:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vernbaby](https://avatars.discourse-cdn.com/v4/letter/v/d9b06d/32.png) [@vernbaby](https://forum.kirupa.com/u/vernbaby)\
**Post date:** [January 20, 2005, 12:08am UTC](https://forum.kirupa.com/t/preloader-quirk/76622/1 "2005-01-20T00:08:56Z")

</div>

Hey all…

Quick question about a file I’m trying to add a preloader to. For some odd reason when I preview my movie the bandwidth profiler is telling me that ALL my data is loading on frame 1 (approx. 32 kb). Unfortunately the flash player is halting the playing of my preloader until all the content is loaded already. So it’s going from frame 0 to frame 3 without showing the progress of the load.

Is there a way I can get this larger portion onto a later frame so the progress loader will show??

Here’s my code for the preloader (which I got from kirupa):

bytes\_loaded = Math.round(\_root.getBytesLoaded());  
bytes\_total = Math.round(\_root.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.loadBar.\_width = getPercent_100;  
\_root.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
gotoAndPlay(“main”, 1);  
}

Then there is a “gotoAndPlay(1);” on frame 2. Any help would be very much appreciated!!
