PDA

View Full Version : Premature preloader


Frosty_spl
08-03-2006, 07:30 PM
Ive searched, and came up empty handed.

I found why a preloader will come in late. But mine finishes too early.

It loads about half of what its suppose to, then the content loads like normal. (it should loads all 367k of the info, but it only goes to around 170, then the content loads)

What could be wrong?

This preloader is from an older version of flash, and it worked fine in flash 8, but i tweaked some of the visual elements of it, and now it prematurely preloads.

thanks for your help!



onClipEvent (enterFrame) {
loaded = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
progress = Math.round((loaded/total)*100);
loaderInfo = Math.round(loaded/1000) + " k loaded / " + Math.round(total/1000) + " k total";
progressBar._width = progress * 2;
if (loaded == total) {
_parent.nextFrame();
}
}

Frosty_spl
08-03-2006, 08:37 PM
I figured it out

I had to put a stop action in the frame above the preloader, in the timeline.