# Problem with the preloader

**URL:** https://forum.kirupa.com/t/problem-with-the-preloader/243391
**Category:** Uncategorized
**Created:** [November 6, 2007, 4:45pm UTC](https://forum.kirupa.com/t/problem-with-the-preloader/243391 "2007-11-06T16:45:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rafoarc](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@rafoarc](https://forum.kirupa.com/u/rafoarc)
#### Post date: [November 6, 2007, 4:45pm UTC](https://forum.kirupa.com/t/problem-with-the-preloader/243391/1 "2007-11-06T16:45:35Z")

</div>

Hi all, I am having some problems with my preloader… it starts displaying only after 80% of the site is loaded and until then i only see a blank page… When I first build it, it was working just fine… then I kept working on the site and this thing happen… I tried 2 different ways, but still have the same problem…

1. On frame 4 I have the following action:

```auto
if (_framesloaded>=24) {
              gotoAndStop(5)
  } else if (_framesloaded<24) {
              gotoAndPlay(1);
  }

```

1. On frame 1 the following script:

```auto
stop();
  loadingbar._xscale = 1;
  var loadingCall:Number = setInterval(preloadSite, 50);
  function preloadSite():Void {
              var siteLoaded:Number = _root.getBytesLoaded();
              var siteTotal:Number = _root.getBytesTotal();
              var percentage:Number = Math.round(siteLoaded/siteTotal*100);
              loadingbar._xscale = percentage;
              percentClip.percentDisplay.text = percentage+"%";
              percentClip._x = loadingbar._x+loadingbar._width;
              bytesDisplay.text = "loaded "+siteLoaded+" of "+siteTotal+" bytes";
              if (siteLoaded>=siteTotal) {
                          clearInterval(loadingCall);
                          gotoAndStop(5);
              }
  }

```

Those are actually two different preloaders that I tried. However i don’t think there is a problem with the scripts because i used them before…  
Any ideas?  
thanks
