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…
- On frame 4 I have the following action:
if (_framesloaded>=24) {
gotoAndStop(5)
} else if (_framesloaded<24) {
gotoAndPlay(1);
}
- On frame 1 the following script:
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