# Same SWF Frame 1 Preloader will not show up until 84%

**URL:** https://forum.kirupa.com/t/same-swf-frame-1-preloader-will-not-show-up-until-84/300578
**Category:** flash
**Created:** [November 24, 2009, 12:17am UTC](https://forum.kirupa.com/t/same-swf-frame-1-preloader-will-not-show-up-until-84/300578 "2009-11-24T00:17:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)
#### Post date: [November 24, 2009, 12:17am UTC](https://forum.kirupa.com/t/same-swf-frame-1-preloader-will-not-show-up-until-84/300578/1 "2009-11-24T00:17:02Z")

</div>

Well, since it is all supposed to be one SWF file, I’m doing all the preloading in Frame1.

I have a simple textField on the stage which displays the percentage, and this code every frame:

```auto
stop();

import flash.events.ProgressEvent;

// Check if already loaded
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal )
    { this.nextFrame(); }
else
{
    this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, update);
    function update(e:ProgressEvent):void
    {
        if (e.bytesLoaded == e.bytesTotal)
        {
            this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, update);
            this.nextFrame();
        }
        else
        {
            percentText.text = Math.floor( (e.bytesLoaded*100)/e.bytesTotal ) + "%";
        }
    }
}

```

Sadly, the textField will not show up until the SWF is loaded to about 70%.

Is there any reason why, and any workaround?
