[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Instance of Symbol 19 MovieClip [loading] in Frame 1 (406 B)
onClipEvent (load) {
if (_parent.getBytesTotal() == _parent.getBytesLoaded()) {
quickPlay = true;
} else {
preLoad = _parent.getBytesTotal() * 0.75;
}
_parent.stop();
}
onClipEvent (enterFrame) {
gotoAndStop(loadedIndicatorFrame());
if (quickPlay == true) {
if (_currentframe == _totalframes) {
_parent.play();
}
} else if (_parent.getBytesLoaded() >= preLoad) {
_parent.play();
}
}
Frame 13 (17 B)
gotoAndPlay (2);
Frame 85 (17 B)
gotoAndPlay (2);
Symbol 19 MovieClip [loading] Frame 1 (675 B)
function loadedIndicatorFrame() {
var newFrame = (int((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 65) + 2);
if ((newFrame - lastFrame) > 4) {
lastFrame = lastFrame + 4;
loadedText = ((int(((_parent.getBytesTotal() / 1024) * (lastFrame - 2)) / 65) + "kb of ") + int(_parent.getBytesTotal() / 1024)) + "kb";
} else if ((newFrame - lastFrame) > 0) {
lastFrame++;
loadedText = ((int(_parent.getBytesLoaded() / 1024) + "kb of ") + int(_parent.getBytesTotal() / 1024)) + "kb";
} else {
loadedText = ((int(_parent.getBytesLoaded() / 1024) + "kb of ") + int(_parent.getBytesTotal() / 1024)) + "kb";
}
return(lastFrame);
}
lastFrame = 1;
Symbol 31 Button (35 B)
on (release) {
gotoAndPlay (14);
}