Why dosen’t my preloader show up before after 70%?
Here’s the actionscript:
Frame 1:
//initialize text fields
loadpercent = “0%”;
loadBytes = “0 of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " KB”;
Frame 2:
loadPercent = (Math.floor (_root.getBytesLoaded() / _root.getBytesTotal() * 100) + “%”);
loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000 + " KB of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " KB total loaded");
if (_root.getBytesLoaded() == _root.getBytesTotal()){ //Check for finished loading
//If loaded, final update to fields
loadPercent = “100%”;
loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000 + " KB of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " KB total loaded");
gotoAndPlay(“start”); //Where to go once your movie is loaded
}
Frame 3:
gotoAndPlay(2); //Loops back to continuosly update text fields