# Percentage Preloader Help

**URL:** https://forum.kirupa.com/t/percentage-preloader-help/231450
**Category:** flash
**Created:** [July 4, 2007, 10:09pm UTC](https://forum.kirupa.com/t/percentage-preloader-help/231450 "2007-07-04T22:09:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Xploside](https://avatars.discourse-cdn.com/v4/letter/x/74df32/32.png) [@Xploside](https://forum.kirupa.com/u/Xploside)
#### Post date: [July 4, 2007, 10:09pm UTC](https://forum.kirupa.com/t/percentage-preloader-help/231450/1 "2007-07-04T22:09:07Z")

</div>

I have been making my preloader with this tutorial on kirupa. [URL=“[kirupa.com - Percentage Preloader with Load Bar](http://www.kirupa.com/forum/../developer/mx/percentagepreloader.htm)”]

[http://www.kirupa.com/developer/mx/percentagepreloader.htm](http://www.kirupa.com/forum/../developer/mx/percentagepreloader.htm)

Ive made it precisely to the tutorial. Its for a website im working on.  
The problem is that it apears with a blank white box for a while, and this is when the flash is being loaded, instead of letting my preloader do it. I am assuming that the host assumes the content wouldnt load itself, so it chooses to load it for it for it.

In the first actions frame I have this:

```auto
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
    this.gotoAndPlay(3);
}

```

In the second I have this:

```auto
[COLOR=red][SIZE=2]this.gotoAndPlay(1)[/SIZE][/COLOR]

```

EXAMPLES:

This is an earlier version, but it shows what im talking about.  
[URL=“[http://www.n3r.innersw.com/](http://www.n3r.innersw.com/)”][http://www.n3r.innersw.com/](http://www.n3r.innersw.com/)

This is the latest version, and if your internet connection is so fast you didnt catch the above one, you should see this.  
[URL=“[http://www.n3rclan.bravehost.com/](http://www.n3rclan.bravehost.com/)”][http://www.n3rclan.bravehost.com/](http://www.n3rclan.bravehost.com/)

> In the first example, it did go to the preloader, but this preloader required you to press Play. And most of it was already loaded by the time you see it.
