Answered
Preloader starts late
Hi, I've created a preloader for my 1mb+ flash movie.
However, when I tried to load it, the screen was empty for a few
seconds before the preloader suddenly pops up. By then, it had
already loaded about 50%. I thought it was supposed to start
immediately from 0% and load till 100%?
In the 1st frame I've the following AS:
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay("start");
}
2nd frame:
gotoAndPlay(1);
and the 3rd frame is labeled "start". I've also assigned a dynamic text with the var name: percentDone.
Can anyone help on this? Thanks very much!
In the 1st frame I've the following AS:
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay("start");
}
2nd frame:
gotoAndPlay(1);
and the 3rd frame is labeled "start". I've also assigned a dynamic text with the var name: percentDone.
Can anyone help on this? Thanks very much!