Combined Code
frame 1 {
stop();
}
movieClip 3 {
}
movieClip 7 {
}
movieClip 12 {
}
movieClip 13 {
}
movieClip 16 {
}
movieClip 17 {
}
movieClip 19 {
}
movieClip 23 {
}
movieClip 24 {
}
movieClip 27 {
}
movieClip 31 {
}
movieClip 34 {
}
movieClip 35 {
}
movieClip 37 {
}
movieClip 38 {
}
movieClip 39 {
}
movieClip 40 {
}
movieClip 42 {
}
button 43 {
on (release) {
getURL('http://www.newgrounds.com', '_blank');
}
}
movieClip 46 {
}
button 52 {
on (release) {
startMovie();
}
}
movieClip 54 {
frame 1 {
function timerHandler() {
if (!loadingComplete) {
var v4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * v4;
if (v4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop('loaded');
}
return undefined;
}
}
dt = getTimer() - time;
time += dt;
frameAccum += dt;
var v3 = 0;
for (;;) {
if (!(frameAccum >= FRAME_TIME && v3 < MAX_FRAME_SKIP)) break;
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
frameAccum -= FRAME_TIME;
v3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return undefined;
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof clip[childName] == 'movieclip') {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.33333333333334;
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();
}
frame 2 {
stop();
}
}
movieClip 61 {
}
movieClip 63 {
frame 1 {
function camControl() {
rp.x = _x;
rp.y = _y;
var v5 = camH * (_yscale * 0.01);
var v6 = camW * (_xscale * 0.01);
var v3 = sH / v5;
var v4 = sW / v6;
_x2 = (v6 / 2) * v4;
_y2 = (v5 / 2) * v3;
_xscale2 = v4 * 100;
_yscale2 = v3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x += value - v2.x;
}
function get_x2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.x;
}
function set_y2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._y += value - v2.y;
}
function get_y2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.y;
}
function get_xscale2() {
return _parent._xscale;
}
function set_xscale2(value) {
setProperty2('_xscale', value);
}
function get_yscale2() {
return _parent._yscale;
}
function set_yscale2(value) {
setProperty2('_yscale', value);
}
function get_rotation2() {
return parent.rotation;
}
function set_rotation2(value) {
setProperty2('_rotation', value);
}
function setProperty2(prop, n) {
var v3 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v3);
_parent[prop] = n;
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x -= v2.x - v3.x;
_parent._y -= v2.y - v3.y;
}
_visible = false;
addProperty('_x2', get_x2, set_x2);
addProperty('_y2', get_y2, set_y2);
addProperty('_xscale2', get_xscale2, set_xscale2);
addProperty('_yscale2', get_yscale2, set_yscale2);
addProperty('_rotation2', get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = 'exactFit';
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {'x': this._x, 'y': this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
}
}
frame 46 {
if (Key.isDown(32)) {
gotoAndPlay(2807);
}
}
movieClip 229 {
}
movieClip 286 {
}
movieClip 290 {
}
movieClip 293 {
}
movieClip 307 {
}
movieClip 312 {
}
movieClip 375 {
}
movieClip 455 {
}
movieClip 477 {
}
movieClip 506 {
}
movieClip 614 {
}
movieClip 706 {
}
movieClip 759 {
}
movieClip 761 {
}
movieClip 763 {
}
movieClip 796 {
}
movieClip 818 {
}
movieClip 858 {
}
movieClip 988 {
}
movieClip 997 {
}
movieClip 1000 {
}
movieClip 1006 {
}
movieClip 1029 {
}
movieClip 1031 {
}
movieClip 1047 {
}
movieClip 1089 {
}
movieClip 1188 {
}
movieClip 1191 {
}
movieClip 1193 {
}
movieClip 1239 {
}
movieClip 1242 {
}
movieClip 1244 {
}
movieClip 1247 {
}
movieClip 1249 {
}
movieClip 1251 {
}
movieClip 1253 {
}
movieClip 1255 {
}
movieClip 1257 {
}
movieClip 1259 {
}
movieClip 1261 {
}
movieClip 1262 {
}
movieClip 1264 {
}
movieClip 1268 {
}
movieClip 1274 {
}
movieClip 1276 {
}
movieClip 1278 {
}
movieClip 1301 {
}
movieClip 1383 {
}
movieClip 1389 {
}
movieClip 1394 {
}
movieClip 1396 {
}
movieClip 1400 {
}
movieClip 1402 {
}
movieClip 1417 {
}
movieClip 1428 {
}
movieClip 1438 {
}
movieClip 1440 {
}
movieClip 1531 {
}
movieClip 1535 {
}
movieClip 1544 {
}
movieClip 1548 {
}
movieClip 1554 {
}
movieClip 1556 {
}
movieClip 1558 {
}
movieClip 1560 {
}
movieClip 1589 {
}
movieClip 1599 {
}
movieClip 1602 {
}
movieClip 1605 {
}
movieClip 1614 {
}
movieClip 1628 {
}
movieClip 1629 {
}
movieClip 1630 {
}
movieClip 1730 {
}
movieClip 1811 {
}
movieClip 1906 {
}
movieClip 2091 {
}
movieClip 2173 {
}
movieClip 2176 {
}
movieClip 2194 {
}
movieClip 2231 {
}
movieClip 2234 {
}
movieClip 2296 {
}
movieClip 2309 {
}
movieClip 2363 {
}
movieClip 2432 {
}
movieClip 2469 {
}
movieClip 2535 {
}
movieClip 2538 {
}
movieClip 2539 {
frame 1 {
function getPosNow() {
var v1 = {'x': 0, 'y': 0};
var v2 = {'x': 0, 'y': 0};
localToGlobal(v1);
lineMC.localToGlobal(v2);
return {'p1': v1, 'p2': v2};
}
if (rgb == null) {
rgb = 16777215;
}
if (alpha == null) {
alpha = 100;
}
createEmptyMovieClip('shadowMC', 0);
if (shadowMC.shaQueue == null) {
shadowMC.shaQueue = new Array();
shadowMC.queueLen = Math.abs(int(queueLen));
if (shadowMC.queueLen == 0) {
shadowMC.queueLen = 10;
}
var p = getPosNow();
var i = 0;
while (i < shadowMC.queueLen) {
shadowMC.shaQueue.push(p);
++i;
}
}
onEnterFrameFunc = function () {
shadowMC.pushPos();
shadowMC.render();
};
shadowMC.pushPos = function () {
this.shaQueue.shift();
this.shaQueue.push(getPosNow());
};
shadowMC.render = function () {
this.clear();
var v7 = alpha;
var v15 = v7 / this.queueLen;
var v5 = [];
for (var v3 in this.shaQueue) {
var v2 = this.shaQueue[v3].p1;
var v4 = this.shaQueue[v3].p2;
var v10 = {'x': v2.x, 'y': v2.y};
var v8 = {'x': v4.x, 'y': v4.y};
this.globalToLocal(v10);
this.globalToLocal(v8);
v5[v3] = {'p1': v10, 'p2': v8};
}
v3 = v5.length - 1;
while (v3 > 0) {
v2 = v5[v3].p1;
v4 = v5[v3].p2;
var v6 = v5[v3 - 1].p2;
var v9 = v5[v3 - 1].p1;
this.beginFill(rgb, v7);
this.moveTo(v2.x, v2.y);
this.lineTo(v4.x, v4.y);
this.lineTo(v6.x, v6.y);
this.endFill();
this.beginFill(rgb, v7);
this.moveTo(v6.x, v6.y);
this.lineTo(v9.x, v9.y);
this.lineTo(v2.x, v2.y);
this.endFill();
v7 -= v15;
--v3;
}
};
}
}
movieClip 2540 {
frame 1 {
function onEnterFrame() {
sword.onEnterFrameFunc();
}
sword.alpha = 50;
sword.rgb = 16724736;
sword.lineMC._visible = false;
sword.queueLen = 5;
}
}
movieClip 2553 {
}
movieClip 2589 {
}
movieClip 2693 {
}
movieClip 2701 {
}
movieClip 2706 {
}
movieClip 2710 {
}
movieClip 2715 {
}
movieClip 2760 {
}
movieClip 2782 {
}
movieClip 2784 {
}
movieClip 2791 {
}
movieClip 2832 {
}
movieClip 2866 {
}
movieClip 2944 {
}
movieClip 2946 {
}
movieClip 2954 {
}
movieClip 2957 {
}
movieClip 3019 {
}
movieClip 3035 {
}
movieClip 3036 {
}
movieClip 3043 {
}
movieClip 3078 {
}
movieClip 3112 {
}
movieClip 3127 {
}
movieClip 3129 {
}
movieClip 3132 {
}
movieClip 3156 {
}
movieClip 3163 {
}
movieClip 3167 {
}
movieClip 3170 {
}
movieClip 3172 {
}
movieClip 3199 {
}
movieClip 3203 {
}
movieClip 3212 {
}
movieClip 3215 {
}
movieClip 3217 {
}
movieClip 3219 {
}
movieClip 3240 {
}
movieClip 3273 {
}
movieClip 3371 {
}
movieClip 3375 {
}
movieClip 3400 {
}
movieClip 3406 {
}
movieClip 3407 {
}
movieClip 3437 {
}
movieClip 3441 {
}
movieClip 3454 {
}
movieClip 3482 {
}
movieClip 3486 {
}
movieClip 3530 {
}
movieClip 3633 {
}
movieClip 3651 {
}
movieClip 3703 {
}
movieClip 3740 {
frame 1 {
function onEnterFrame() {
sword.onEnterFrameFunc();
}
sword.alpha = 30;
sword.rgb = 255;
sword.lineMC._visible = false;
sword.queueLen = 5;
}
}
movieClip 3742 {
frame 1 {
function onEnterFrame() {
sword.onEnterFrameFunc();
}
sword.alpha = 30;
sword.rgb = 255;
sword.lineMC._visible = false;
sword.queueLen = 5;
}
}
movieClip 3824 {
}
movieClip 3943 {
}
movieClip 3946 {
}
movieClip 3967 {
}
movieClip 4108 {
}
movieClip 4138 {
}
movieClip 4296 {
}
movieClip 4342 {
}
movieClip 4344 {
}
movieClip 4345 {
}
movieClip 4347 {
}
movieClip 4349 {
}
movieClip 4353 {
}
movieClip 4355 {
}
movieClip 4574 {
}
movieClip 4712 {
}
movieClip 4721 {
}
movieClip 4723 {
}
movieClip 4725 {
}
movieClip 4727 {
}
movieClip 4734 {
}
movieClip 4822 {
}
movieClip 4825 {
}
movieClip 4851 {
}
movieClip 4998 {
}
movieClip 5051 {
}
movieClip 5074 {
frame 1 {
function onEnterFrame() {
sword.onEnterFrameFunc();
}
sword.alpha = 70;
sword.rgb = 26367;
sword.lineMC._visible = false;
sword.queueLen = 5;
}
}
movieClip 5167 {
}
movieClip 5428 {
frame 1 {
function onEnterFrame() {
sword.onEnterFrameFunc();
}
sword.alpha = 70;
sword.rgb = 39423;
sword.lineMC._visible = false;
sword.queueLen = 5;
}
}
movieClip 5525 {
}
movieClip 5711 {
}
movieClip 5793 {
}
movieClip 5814 {
}
movieClip 5817 {
}
movieClip 5819 {
}
movieClip 5823 {
}
movieClip 5840 {
}
movieClip 5845 {
}
movieClip 5847 {
}
movieClip 5853 {
}
movieClip 5855 {
}
movieClip 5873 {
}
movieClip 6293 {
}
movieClip 6435 {
}
movieClip 6437 {
}
movieClip 6439 {
}
movieClip 6483 {
}
movieClip 6498 {
}
// unknown tag 88 length 83
movieClip 6643 {
}
movieClip 6884 {
}
movieClip 6886 {
}
movieClip 6889 {
}
movieClip 6957 {
}
movieClip 7091 {
}
movieClip 7283 {
}
movieClip 7284 {
}
movieClip 7306 {
}
movieClip 7310 {
}
movieClip 7316 {
}
movieClip 7331 {
}
movieClip 7357 {
}
movieClip 7359 {
}
movieClip 7361 {
}
movieClip 7570 {
}
movieClip 7709 {
}
movieClip 7790 {
}
movieClip 7796 {
}
movieClip 7808 {
}
movieClip 7810 {
}
movieClip 7826 {
}
movieClip 7838 {
}
movieClip 7845 {
}
movieClip 7847 {
}
movieClip 7855 {
}
movieClip 7869 {
}
movieClip 7880 {
}
movieClip 7882 {
}
movieClip 7884 {
}
movieClip 7904 {
}
movieClip 7911 {
}
movieClip 7922 {
}
movieClip 7923 {
frame 1 {
function camControl() {
rp.x = _x;
rp.y = _y;
var v5 = camH * (_yscale * 0.01);
var v6 = camW * (_xscale * 0.01);
var v3 = sH / v5;
var v4 = sW / v6;
_x2 = (v6 / 2) * v4;
_y2 = (v5 / 2) * v3;
_xscale2 = v4 * 100;
_yscale2 = v3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x += value - v2.x;
}
function get_x2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.x;
}
function set_y2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._y += value - v2.y;
}
function get_y2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.y;
}
function get_xscale2() {
return _parent._xscale;
}
function set_xscale2(value) {
setProperty2('_xscale', value);
}
function get_yscale2() {
return _parent._yscale;
}
function set_yscale2(value) {
setProperty2('_yscale', value);
}
function get_rotation2() {
return parent.rotation;
}
function set_rotation2(value) {
setProperty2('_rotation', value);
}
function setProperty2(prop, n) {
var v3 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v3);
_parent[prop] = n;
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x -= v2.x - v3.x;
_parent._y -= v2.y - v3.y;
}
addProperty('_x2', get_x2, set_x2);
addProperty('_y2', get_y2, set_y2);
addProperty('_xscale2', get_xscale2, set_xscale2);
addProperty('_yscale2', get_yscale2, set_yscale2);
addProperty('_rotation2', get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = 'exactFit';
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {'x': this._x, 'y': this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
}
}
movieClip 7968 {
}
movieClip 7971 {
}
movieClip 7973 {
}
movieClip 8074 {
}
movieClip 8206 {
}
movieClip 8217 {
}
movieClip 8466 {
}
movieClip 8468 {
}
movieClip 8484 {
}
movieClip 8492 {
}
movieClip 8494 {
}
movieClip 8496 {
}
movieClip 8516 {
}
movieClip 8518 {
}
movieClip 8519 {
}
movieClip 8521 {
}
movieClip 8522 {
}
movieClip 8524 {
}
movieClip 8525 {
}
movieClip 8527 {
}
movieClip 8529 {
}
movieClip 8531 {
}
movieClip 8533 {
}
movieClip 8535 {
}
movieClip 8537 {
}
movieClip 8543 {
}
movieClip 8577 {
}
movieClip 8584 {
}
movieClip 8591 {
}
movieClip 8598 {
}
movieClip 8604 {
}
movieClip 8612 {
}
movieClip 8619 {
}
movieClip 8653 {
}
movieClip 8690 {
}
movieClip 8713 {
}
movieClip 8728 {
}
movieClip 8732 {
}
movieClip 8735 {
}
movieClip 8738 {
}
movieClip 8741 {
}
movieClip 8744 {
}
movieClip 8747 {
}
movieClip 8750 {
}
movieClip 8752 {
}
movieClip 8790 {
}
movieClip 8804 {
}
movieClip 8813 {
}
movieClip 9075 {
}
movieClip 9226 {
}
movieClip 9287 {
}
movieClip 9299 {
}
movieClip 9305 {
}
movieClip 9316 {
}
movieClip 9329 {
}
movieClip 9332 {
}
movieClip 9353 {
}
movieClip 9357 {
}
movieClip 9359 {
}
movieClip 9361 {
}
movieClip 9418 {
}
movieClip 9461 {
}
movieClip 9471 {
}
movieClip 9555 {
}
movieClip 9622 {
}
movieClip 9696 {
}
movieClip 9719 {
}