PDA

View Full Version : Preloader only appearing near end


bandolin
08-28-2009, 01:47 PM
My preloader only appears once the swf is at about 96%. That's useless. Why doesn't it appear immediately?

Site:http://www.bandolin.net/CitedesJeunes/

Actionscript (Frame 1)
var amountLoaded:Number = new Number(this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal);

preloaderClip.loadBar.width = amountLoaded * 400;

preloaderClip.loadText.text = "Chargement de contenu du site : " + (Math.round(amountLoaded * 100)).toString() + "%";Actionscript (Frame 2)
if(this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
gotoAndPlay(3);
}else{
gotoAndPlay(1);
}

The movie starts on frame 3.