Frame 1
function zoomIn(menuObj) {
if (_root._xscale <= 500) {
_root._xscale = _root._xscale + 100;
_root._yscale = _root._yscale + 100;
}
zoomMenu_cm.customItems[2].enabled = true;
}
function zoomOut() {
if (_root._xscale >= 50) {
_root._xscale = _root._xscale - 25;
_root._yscale = _root._yscale - 25;
}
zoomMenu_cm.customItems[2].enabled = true;
}
function the100() {
if (_root._xscale != 100) {
_root._xscale = 100;
_root._yscale = 100;
}
zoomMenu_cm.customItems[2].enabled = false;
}
function showAll() {
_root._xscale = Stage.width / 2;
_root._yscale = Stage.height / 2;
}
function theQuality() {
if (_quality == "HIGH") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
trace(_quality);
}
stop();
var zoomMenu_cm = new ContextMenu(theHandlers);
zoomMenu_cm.hideBuiltInItems();
zoomMenu_cm.customItems.push(new ContextMenuItem("My Zoom In", zoomIn));
zoomMenu_cm.customItems.push(new ContextMenuItem("My Zoom Out", zoomOut));
zoomMenu_cm.customItems.push(new ContextMenuItem("My 100%", the100, null, false));
zoomMenu_cm.customItems.push(new ContextMenuItem("My Show All", showAll));
zoomMenu_cm.customItems.push(new ContextMenuItem("My Quality", theQuality, true));
_level0.menu = zoomMenu_cm;
Instance of Symbol 80 MovieClip in Frame 1
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 80 MovieClip in Frame 3
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Instance of Symbol 114 MovieClip "player" in Frame 6
onClipEvent (load) {
moveSpeed = 2;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (_root.Walls.hitTest(getBounds(_root).xMax, _y, true)) {
} else {
this._x = this._x + moveSpeed;
this.gotoAndStop(3);
}
} else if (Key.isDown(38)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMin, true)) {
} else {
this._y = this._y - moveSpeed;
this.gotoAndStop(2);
}
} else if (Key.isDown(40)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMax, true)) {
} else {
this._y = this._y + moveSpeed;
this.gotoAndStop(5);
}
} else if (Key.isDown(37)) {
if (_root.Walls.hitTest(getBounds(_root).xMin, _y, true)) {
} else {
this._x = this._x - moveSpeed;
this.gotoAndStop(4);
}
}
}
Instance of Symbol 112 MovieClip "goal" in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.nextFrame();
}
}
Frame 7
stop();
Instance of Symbol 114 MovieClip "player" in Frame 7
onClipEvent (load) {
moveSpeed = 2;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (_root.Walls.hitTest(getBounds(_root).xMax, _y, true)) {
} else {
this._x = this._x + moveSpeed;
this.gotoAndStop(3);
}
} else if (Key.isDown(38)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMin, true)) {
} else {
this._y = this._y - moveSpeed;
this.gotoAndStop(2);
}
} else if (Key.isDown(40)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMax, true)) {
} else {
this._y = this._y + moveSpeed;
this.gotoAndStop(5);
}
} else if (Key.isDown(37)) {
if (_root.Walls.hitTest(getBounds(_root).xMin, _y, true)) {
} else {
this._x = this._x - moveSpeed;
this.gotoAndStop(4);
}
}
}
onClipEvent (load) {
_x = 29.5;
_y = 41.5;
}
Frame 8
stop();
Instance of Symbol 114 MovieClip "player" in Frame 8
onClipEvent (load) {
moveSpeed = 2;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (_root.Walls.hitTest(getBounds(_root).xMax, _y, true)) {
} else {
this._x = this._x + moveSpeed;
this.gotoAndStop(3);
}
} else if (Key.isDown(38)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMin, true)) {
} else {
this._y = this._y - moveSpeed;
this.gotoAndStop(2);
}
} else if (Key.isDown(40)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMax, true)) {
} else {
this._y = this._y + moveSpeed;
this.gotoAndStop(5);
}
} else if (Key.isDown(37)) {
if (_root.Walls.hitTest(getBounds(_root).xMin, _y, true)) {
} else {
this._x = this._x - moveSpeed;
this.gotoAndStop(4);
}
}
}
onClipEvent (load) {
_x = 43.5;
_y = 36.5;
}
Instance of Symbol 127 MovieClip "Walls" in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
prevFrame();
}
}
Frame 9
stop();
Instance of Symbol 114 MovieClip "player" in Frame 9
onClipEvent (load) {
moveSpeed = 2;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (_root.Walls.hitTest(getBounds(_root).xMax, _y, true)) {
} else {
this._x = this._x + moveSpeed;
this.gotoAndStop(3);
}
} else if (Key.isDown(38)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMin, true)) {
} else {
this._y = this._y - moveSpeed;
this.gotoAndStop(2);
}
} else if (Key.isDown(40)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMax, true)) {
} else {
this._y = this._y + moveSpeed;
this.gotoAndStop(5);
}
} else if (Key.isDown(37)) {
if (_root.Walls.hitTest(getBounds(_root).xMin, _y, true)) {
} else {
this._x = this._x - moveSpeed;
this.gotoAndStop(4);
}
}
}
onClipEvent (load) {
_x = 275;
_y = 37.5;
}
Instance of Symbol 134 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Frame 10
stop();
Instance of Symbol 114 MovieClip "player" in Frame 10
onClipEvent (load) {
moveSpeed = 2;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (_root.Walls.hitTest(getBounds(_root).xMax, _y, true)) {
} else {
this._x = this._x + moveSpeed;
this.gotoAndStop(3);
}
} else if (Key.isDown(38)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMin, true)) {
} else {
this._y = this._y - moveSpeed;
this.gotoAndStop(2);
}
} else if (Key.isDown(40)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMax, true)) {
} else {
this._y = this._y + moveSpeed;
this.gotoAndStop(5);
}
} else if (Key.isDown(37)) {
if (_root.Walls.hitTest(getBounds(_root).xMin, _y, true)) {
} else {
this._x = this._x - moveSpeed;
this.gotoAndStop(4);
}
}
}
onClipEvent (load) {
_x = 275;
_y = 37.5;
}
Instance of Symbol 136 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Frame 11
stop();
Instance of Symbol 112 MovieClip "goal" in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.nextFrame();
}
}
Instance of Symbol 144 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
nextFrame();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Walls.play();
}
}
Instance of Symbol 114 MovieClip "player" in Frame 11
onClipEvent (load) {
moveSpeed = 2;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (_root.Walls.hitTest(getBounds(_root).xMax, _y, true)) {
} else {
this._x = this._x + moveSpeed;
this.gotoAndStop(3);
}
} else if (Key.isDown(38)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMin, true)) {
} else {
this._y = this._y - moveSpeed;
this.gotoAndStop(2);
}
} else if (Key.isDown(40)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMax, true)) {
} else {
this._y = this._y + moveSpeed;
this.gotoAndStop(5);
}
} else if (Key.isDown(37)) {
if (_root.Walls.hitTest(getBounds(_root).xMin, _y, true)) {
} else {
this._x = this._x - moveSpeed;
this.gotoAndStop(4);
}
}
}
onClipEvent (load) {
_x = 507;
_y = 265;
}
Instance of Symbol 146 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Instance of Symbol 146 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Frame 12
stop();
Instance of Symbol 114 MovieClip "player" in Frame 12
onClipEvent (load) {
moveSpeed = 2;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (_root.Walls.hitTest(getBounds(_root).xMax, _y, true)) {
} else {
this._x = this._x + moveSpeed;
this.gotoAndStop(3);
}
} else if (Key.isDown(38)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMin, true)) {
} else {
this._y = this._y - moveSpeed;
this.gotoAndStop(2);
}
} else if (Key.isDown(40)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMax, true)) {
} else {
this._y = this._y + moveSpeed;
this.gotoAndStop(5);
}
} else if (Key.isDown(37)) {
if (_root.Walls.hitTest(getBounds(_root).xMin, _y, true)) {
} else {
this._x = this._x - moveSpeed;
this.gotoAndStop(4);
}
}
}
onClipEvent (load) {
_x = 56.5;
_y = 40;
}
Frame 13
stop();
Instance of Symbol 114 MovieClip "player" in Frame 13
onClipEvent (load) {
moveSpeed = 2;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (_root.Walls.hitTest(getBounds(_root).xMax, _y, true)) {
} else {
this._x = this._x + moveSpeed;
this.gotoAndStop(3);
}
} else if (Key.isDown(38)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMin, true)) {
} else {
this._y = this._y - moveSpeed;
this.gotoAndStop(2);
}
} else if (Key.isDown(40)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMax, true)) {
} else {
this._y = this._y + moveSpeed;
this.gotoAndStop(5);
}
} else if (Key.isDown(37)) {
if (_root.Walls.hitTest(getBounds(_root).xMin, _y, true)) {
} else {
this._x = this._x - moveSpeed;
this.gotoAndStop(4);
}
}
}
onClipEvent (load) {
_x = 71;
_y = 295;
}
Instance of Symbol 144 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
nextFrame();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Walls.lock.nextFrame();
}
}
Instance of Symbol 144 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
nextFrame();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Walls.play();
}
}
Frame 14
stop();
Instance of Symbol 112 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.text1._visible = true;
}
}
Instance of Symbol 163 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Instance of Symbol 163 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Instance of Symbol 163 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Instance of Symbol 164 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Instance of Symbol 164 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Instance of Symbol 164 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Instance of Symbol 166 MovieClip "text1" in Frame 14
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 114 MovieClip "player" in Frame 14
onClipEvent (load) {
moveSpeed = 2;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (_root.Walls.hitTest(getBounds(_root).xMax, _y, true)) {
} else {
this._x = this._x + moveSpeed;
this.gotoAndStop(3);
}
} else if (Key.isDown(38)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMin, true)) {
} else {
this._y = this._y - moveSpeed;
this.gotoAndStop(2);
}
} else if (Key.isDown(40)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMax, true)) {
} else {
this._y = this._y + moveSpeed;
this.gotoAndStop(5);
}
} else if (Key.isDown(37)) {
if (_root.Walls.hitTest(getBounds(_root).xMin, _y, true)) {
} else {
this._x = this._x - moveSpeed;
this.gotoAndStop(4);
}
}
}
onClipEvent (load) {
_x = 275;
_y = 263.6;
}
Instance of Symbol 112 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.nextFrame();
}
}
Frame 15
stop();
Instance of Symbol 112 MovieClip "goal" in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.nextFrame();
}
}
Instance of Symbol 168 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Instance of Symbol 168 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Instance of Symbol 168 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Instance of Symbol 168 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Instance of Symbol 170 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Instance of Symbol 172 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.text1._visible = true;
}
}
Instance of Symbol 174 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.text3._visible = true;
}
}
Instance of Symbol 175 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
beep.start();
_root.prevFrame();
}
}
onClipEvent (load) {
beep = new Sound();
beep.attachSound("beep");
}
Instance of Symbol 177 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
nextFrame();
_root.haha._visible = true;
}
}
Instance of Symbol 179 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.text2._visible = true;
}
}
Instance of Symbol 114 MovieClip "player" in Frame 15
onClipEvent (load) {
moveSpeed = 2;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (_root.Walls.hitTest(getBounds(_root).xMax, _y, true)) {
} else {
this._x = this._x + moveSpeed;
this.gotoAndStop(3);
}
} else if (Key.isDown(38)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMin, true)) {
} else {
this._y = this._y - moveSpeed;
this.gotoAndStop(2);
}
} else if (Key.isDown(40)) {
if (_root.Walls.hitTest(_x, getBounds(_root).yMax, true)) {
} else {
this._y = this._y + moveSpeed;
this.gotoAndStop(5);
}
} else if (Key.isDown(37)) {
if (_root.Walls.hitTest(getBounds(_root).xMin, _y, true)) {
} else {
this._x = this._x - moveSpeed;
this.gotoAndStop(4);
}
}
}
onClipEvent (load) {
_x = 25.1;
_y = 16.6;
}
Instance of Symbol 184 MovieClip "text2" in Frame 15
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 186 MovieClip "haha" in Frame 15
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 188 MovieClip "text3" in Frame 15
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 190 MovieClip "text1" in Frame 15
onClipEvent (load) {
this._visible = false;
}
Frame 16
stop();
Instance of Symbol 80 MovieClip in Frame 16
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Frame 17
stop();
Instance of Symbol 80 MovieClip in Frame 17
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Symbol 49 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 51 MovieClip Frame 40
stop();
Symbol 77 Button
on (release) {
startMovie();
}
Symbol 78 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
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.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 84 MovieClip Frame 137
stop();
_root.nextFrame();
Symbol 87 MovieClip Frame 19
stop();
Symbol 93 Button
on (press, release) {
gotoAndStop ("game");
}
Symbol 98 Button
on (press, release) {
getURL ("http://innerchild548.newgrounds.com/");
}
Symbol 102 Button
on (press, release) {
gotoAndStop ("instruct");
}
Symbol 117 Button
on (press, release) {
gotoAndStop ("main");
}
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 26
stop();
Symbol 141 MovieClip Frame 291
stop();
Symbol 141 MovieClip Frame 904
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 2
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 1917
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 1917
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 2
stop();
Symbol 198 Button
on (press, release) {
nextFrame();
}
Symbol 205 Button
on (press) {
getURL ("http://innerchild548.newgrounds.com/");
}