i got this script out of a flash MX book but it doesnt seem to be working…im trying to create a preloader with a simple status bar that loads a scene within the same file. the scene does end up loading…but the status bar just says “100% completed” the whole time its loading the scene. is there a flaw in the script or an i doing something else wrong?
onClipEvent(enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesLoaded();
framesLoaded = Math.ceil((loaded/total)*100);
gotoAndStop(framesLoaded);
status.text = framesLoaded+" % COMPLETED";
if (framesLoaded>=90) {
nextScene();
}
}