onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
tmr = getTimer();t2 = int(tmr/1000);
rem = t2 * 100;
rem2 = int(rem / percent);
rem4 = rem2 - t2;
rem3 = "estimated completion in " + rem4 + " seconds";
pltext = percent+"%";
t3 = "time elapsed: " + t2;gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
No comments:
Post a Comment