Preloader code is in it’s own scene. It loads larger files (350k) fine but it doesn’t display until 70% for smaller files (17k). Using mx2004.
Here’s the code frame 1
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop(_root.frame);
}
if (loadedbytes == totalbytes) {
nextScene();
}
and frame 2
gotoAndPlay(2);
Thanks for any help.