Combined Code
button 4 {
on (release) {
getURL('http://www.newgrounds.com', '_blank');
}
}
movieClip 8 {
}
movieClip 12 {
}
movieClip 15 {
}
movieClip 16 {
}
movieClip 19 {
}
movieClip 21 {
}
movieClip 24 {
}
movieClip 25 {
}
movieClip 27 {
}
movieClip 29 {
}
movieClip 37 {
}
movieClip 42 {
}
movieClip 45 {
}
movieClip 51 {
frame 40 {
stop();
}
}
movieClip 74 {
}
button 75 {
on (release) {
_root.play();
}
}
movieClip 76 {
frame 1 {
function onEnterFrame() {
if (!loaded) {
var v3 = _root.getBytesLoaded() / _root.getBytesTotal();
if (v3 >= 1) {
play();
bar._x = initX;
loaded = true;
} else {
bar._x = initX + (v3 - 1) * bar._width;
}
}
var v4 = getTimer() - time;
timeAccum += v4;
while (timeAccum >= FRAME_TIME) {
var v2 = 0;
while (v2 < timeClips.length) {
if (timeClips[v2]._currentframe < timeClips[v2]._totalframes) {
timeClips[v2].nextFrame();
} else {
timeClips[v2].gotoAndStop(1);
}
++v2;
}
if (loaded && _currentframe < _totalframes) {
nextFrame();
}
timeAccum -= FRAME_TIME;
}
time += v4;
}
stop();
_root.stop();
var initX = bar._x;
var time = getTimer();
var FRAME_TIME = 33.33333333333334;
var timeAccum = 0;
var loaded = false;
timeClips = [bargfx, tank.mc0, tank.mc1, tank.mc2, tank.mc3, tank.mc4, tank.mc4.mc0, tank.mc4.mc1, tank.mc4.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc0.mc2, tank.mc4.mc0.mc0.mc0.mc3, tank.mc4.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc2, tank.mc5.mc0];
var i = 0;
while (i < timeClips.length) {
timeClips[i].stop();
++i;
}
}
frame 51 {
}
}
frame 2 {
play_btn.onRelease = function () {
play();
};
pause_btn.onRelease = function () {
stop();
};
forward_btn.onPress = function () {
_root.createEmptyMovieClip('controller_mc', 1);
controller_mc.onEnterFrame = function () {
_root.gotoAndStop(_root._currentframe + 3);
if (_root._currentframe + 3 > _root._totalframes) {
_root.gotoAndStop(_root._totalframes);
}
};
};
forward_btn.onRelease = function () {
controller_mc.removeMovieClip();
};
forward_btn.onReleaseOutside = function () {
controller_mc.removeMovieClip();
};
rewind_btn.onPress = function () {
_root.createEmptyMovieClip('controller_mc', 1);
controller_mc.onEnterFrame = function () {
_root.gotoAndStop(_root._currentframe - 3);
if (_root._currentframe - 3 < 1) {
_root.gotoAndStop(1);
}
};
};
rewind_btn.onRelease = function () {
controller_mc.removeMovieClip();
};
rewind_btn.onReleaseOutside = function () {
controller_mc.removeMovieClip();
};
}
frame 2 {
blankiddy.setvolume(0);
}
frame 10015 {
stop();
}