[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.Frame 1 (836 B)
movieLength = Math.floor(this.getBytesTotal() / 100);
myBytesLoaded = Math.floor(this.getBytesLoaded() / movieLength);
mcLoader.gotoAndStop(myBytesLoaded);
if (myBytesLoaded >= 100) {
gotoAndPlay (5);
}
if (origTime < 1) {
origTime = getTimer();
origSize = this.getBytesLoaded();
} else if (getTimer() >= (origTime + 1000)) {
newSize = this.getBytesLoaded() - origSize;
timeGuess = Math.floor(this.getBytesTotal() / newSize);
}
if (60 < timeGuess) {
minuteGuess = timeGuess / 60;
downloadMessage = ((("Approximate download time is " + minuteGuess) + " minutes & ") + timeGuess) + " second(s)";
} else if (timeGuess < 2) {
downloadMessage = ("Approximate download time is " + timeGuess) + " second";
} else {
downloadMessage = ("Approximate download time is " + timeGuess) + " seconds";
}
Frame 4 (17 B)
gotoAndPlay (1);
Frame 799 (8 B)
stop();
Symbol 42 Button (25 B)
on (release) {
play();
}