I’m using the code below on preloaders
loadedbytes=getBytesLoaded();
totalbytes=getBytesTotal();
loadedkbytes=Math.ceil (loadedbytes/1000);
totalkbytes=Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextScene ();
}
frame = int(loadedbytes/(totalbytes/100));
_root.loader.gotoAndStop(frame);
It doesn’t always show all of my preloader, ie: by about 25% of the preloader animation it jumps to the movie. I still want the preloader to play all the frames before it goes to the movie regardless of download speed. Also sometimes it sticks on the final frame of the movie for a few seconds and then jumps to the main scene.
Can anyone notice any reason for this in my code?
Thanks in advance
Mhunki