[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 38 (8 B)
stop();
Frame 39 (8 B)
stop();
Frame 40 (26 B)
stopAllSounds();
stop();
Symbol 9 Button (65 B)
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 15 MovieClip Frame 1 (1.67 KiB) ●
function timerHandler() {
var _local2 = this;
if (!loadingComplete) {
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._yscale = 100 * _local3;
if (_local3 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return;
}
} else {
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local1 = 0;
while ((frameAccum >= FRAME_TIME) && (_local1 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(_local2, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local1++;
}
updateAfterEvent();
}
}
function advanceFrame(clip, recurse, loop) {
var _local1 = clip;
var _local2 = loop;
var _local3 = recurse;
if (!_local1) {
} else {
_local1.stop();
if (_local1._currentframe == _local1._totalframes) {
if (_local2) {
_local1.gotoAndStop(1);
}
} else {
_local1.nextFrame();
}
if (_local3) {
for (childName in _local1) {
if (typeof(_local1[childName]) == "movieclip") {
advanceFrame(_local1[childName], _local3, _local2);
}
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 15 MovieClip Frame 72 (14 B)
startMovie();
Symbol 22 Button (30 B)
on (release) {
nextFrame();
}
Symbol 30 Button (35 B)
on (release) {
gotoAndStop (40);
}
Symbol 33 Button (30 B)
on (release) {
prevFrame();
}
Symbol 36 Button (30 B)
on (release) {
nextFrame();
}
Symbol 74 Button (35 B)
on (release) {
gotoAndStop (40);
}