Combined Code
frame 1 {
stop();
}
// unknown tag 88 length 115
movieClip 8 {
frame 1 {
kTotal = _root.getBytesTotal() / 1024;
kLoaded = 0;
preloadTotal = Math.round(kTotal);
pcentLoaded = 0;
onEnterFrame = function () {
if (firstTimer == undefined) {
firstTimer = 1;
firstBytes = _root.getBytesLoaded() / 1024;
endTime = getTimer() / 1000;
rateTimer = endTime / firstBytes;
}
if (Math.round(kLoaded) < Math.round(kTotal)) {
if (_root._framesloaded > 1 && firstTimer == 1) {
_root.play();
firstTimer = 2;
}
calcPercentLoaded();
updateDisplay();
} else {
delete this.onEnterFrame;
this._visible = false;
}
};
calcPercentLoaded = function () {
kLoaded = Math.round(_root.getBytesLoaded() / 1024);
pcentLoaded = Math.round((Math.round(_root.getBytesLoaded() / 1024) / Math.round(_root.getBytesTotal() / 1024)) * 100);
timeRemaining = Math.round(rateTimer * (kTotal - kLoaded));
minRemaining = Math.floor(timeRemaining / 60);
secsRemaining = timeRemaining - minRemaining * 60;
if (secsRemaining < 10) {
secsRemaining = '0' + secsRemaining;
}
timerText = minRemaining + ':' + secsRemaining;
};
updateDisplay = function () {
percentage.text = pcentLoaded + '% Loaded';
};
}
}
frame 2 {
stop();
}
movieClip 10 {
}