Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
if (_parent.getBytesTotal() == _parent.getBytesLoaded()) {
quickPlay = true;
} else {
preLoad = _parent.getBytesTotal() * 1;
}
_parent.stop();
}
onClipEvent (enterFrame) {
this.gotoAndStop(loadedIndicatorFrame());
if (quickPlay == true) {
if (_currentframe == _totalframes) {
_parent.play();
}
} else if (_parent.getBytesLoaded() >= preLoad) {
_parent.play();
}
}
Symbol 4 MovieClip Frame 1
function loadedIndicatorFrame() {
var _local2 = int((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100) + 2;
if ((_local2 - lastFrame) > 4) {
lastFrame = lastFrame + 4;
} else if ((_local2 - lastFrame) > 0) {
lastFrame++;
}
return(lastFrame);
}
function preload() {
newPercLoaded = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
percLoaded = percLoaded + ((newPercLoaded - percLoaded) * 0.17);
percent = Math.ceil(percLoaded) + "%";
if ((percLoaded > 100) && (newPercLoaded == 100)) {
play();
}
}
Stage.showMenu = false;
lastFrame = 1;
var percLoaded = 0;
var newPercLoaded;
onEnterFrame = preload;