# Why does my preloader start at 40%?

**URL:** <https://forum.kirupa.com/t/why-does-my-preloader-start-at-40/233982>\
**Category:** flash\
**Created:** [July 29, 2007, 2:41am UTC](https://forum.kirupa.com/t/why-does-my-preloader-start-at-40/233982 "2007-07-29T02:41:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zwemg](https://avatars.discourse-cdn.com/v4/letter/z/bc79bd/32.png) [@zwemg](https://forum.kirupa.com/u/zwemg)\
**Post date:** [July 29, 2007, 2:41am UTC](https://forum.kirupa.com/t/why-does-my-preloader-start-at-40/233982/1 "2007-07-29T02:41:38Z")

</div>

The code to my knowledge is fine, I just dont know why it doesnt show the progress bar and percentage at the beggining, Starts at like 40% loaded.

Below is my code

```auto
stop();

myInterval = setInterval(preload,100);

function preload() {
    var current = _root.getBytesLoaded();
    var total = _root.getBytesTotal();
    var pctLoaded = Math.round(current/total*100);
    pct_txt.text = pctLoaded+"%";
    loaderBar_mc._xscale = pctLoaded;
    
    if (current >= total) {
        gotoAndStop(2);
        clearInterval(myInterval);
    }
}

```
