Frame 1
play();
function fnCreateDebris(i, j, x, y) {
var vRand = (Math.floor(Math.random() * 3) + 1);
var vDir = eval (((("blockDup" + i) + "_mc.hit") + j) + "_mc.vType");
if ((vDir == "bottom") || (vDir == "right")) {
var point = {x:eval (((("blockDup" + i) + "_mc.hit") + j) + "_mc")._x, y:eval (((("blockDup" + i) + "_mc.hit") + j) + "_mc")._y};
eval (((("blockDup" + i) + "_mc.hit") + j) + "_mc").localToGlobal(point);
duplicateMovieClip (eval ((("debris" + vRand) + vDir) + "_mc"), "dupDebris" + debrisDupLevel, debrisDupLevel);
eval ("dupDebris" + debrisDupLevel)._x = point.x;
eval ("dupDebris" + debrisDupLevel)._y = point.y;
debrisList.push(eval ("dupDebris" + debrisDupLevel));
debrisDupLevel++;
}
}
function fnInit() {
s = new Sound();
sMusic = new Sound(music_mc);
Tank.prototype.storeTurn = fnStoreTurn;
Tank.prototype.turn = fnTurnObject;
Tank.prototype.move = fnMoveObject;
Tank.prototype.fire = fnAttackObject;
Enemy.prototype.turn = fnTurnObject;
Enemy.prototype.move = fnMoveObject;
Enemy.prototype.fire = fnAttackObject;
enemyList = new Array();
attackList = new Array();
debrisList = new Array();
enemyTypes = ["quad", "bat", "hiss", "ring"];
xStreets = [2, 3, 4];
yStreets = [4, 7, 9];
dupLevel = 2000;
selectedWeapon = null;
duplicateMovieClip (border_mc, "borderDup", 10000);
duplicateMovieClip (cross_mc, "crosshair_mc", 9999);
borderDup.briefing_mc.gotoAndPlay(2);
borderDup.loadMeter_mc.gotoAndStop(16);
with (border_mc) {
left_mc.left_btn.enabled = false;
right_mc.right_btn.enabled = false;
down_mc.down_btn.enabled = false;
up_mc.up_btn.enabled = false;
rocket_btn.enabled = false;
guns_mc.enabled = false;
}
}
function fnStartGame() {
sMusic.attachSound("Music");
sMusic.setVolume(60);
sMusic.start(0, 999);
fnResetScore();
_global.gGameStarted = true;
level = 1;
keyListener = new Object();
KeyListener.onKeyDown = function () {
switch (Key.getCode()) {
case 32 :
if (gTank.weapon == "guns") {
gTank.selectWeapon("rocket");
} else {
gTank.selectWeapon("guns");
}
return;
case 37 :
gTank.storeTurn("left");
return;
case 38 :
gTank.storeTurn("up");
return;
case 39 :
gTank.storeTurn("right");
return;
case 40 :
gTank.storeTurn("down");
}
};
Key.addListener(keyListener);
fnInitLevel();
enemyDupLevel = 2000;
}
function fnEndGame() {
_global.gGameStarted = false;
_global.gGameOn = false;
borderDup.messages_mc.gotoAndPlay("game over");
crosshair_mc.stopDrag();
crosshair_mc._x = -100;
crosshair_mc._y = -100;
clearInterval(updater);
clearInterval(enemyShootInterval);
clearInterval(shootDelayTimer);
selectedWeapon = null;
while (attackList.length > 0) {
attackList[0].removeMovieClip();
attackList.splice(0, 1);
}
if (gTank.weapon == "laserrocket") {
gTank.selectWeapon("rocket");
}
fnFadeAudioOut(sMusic);
}
function fnPauseGame() {
_global.gGameOn = false;
var i = 0;
while (i < attacklist.length) {
attackList[i].stop();
i++;
}
}
function fnUnPauseGame() {
_global.gGameOn = true;
var i = 0;
while (i < attackList.length) {
attackList[i].play();
i++;
}
}
function fnInitLevel() {
_global.gTank = new Tank(selectedWeapon);
borderDup.level_mc.level_txt.text = level;
borderDup.meter_mc.gotoAndStop(1);
if (level == 1) {
TOP = 78.3;
BOTTOM = 317.3;
RIGHT = 597.5;
LEFT = 56;
gTank.speed = 3;
layout = [1, 2, 3];
startEnemies = ["bat", "bat", "bat"];
restEnemies = ["bat", "bat", "bat", "bat", "bat", "bat", "bat", "hiss", "hiss", "hiss", "hiss"];
dropLocs = [1, 2, 3, 4, 5];
dropOffLocs = [1, 2, 3, 4];
duplicateMovieClip (smoke_mc, "smokeDup", 9990);
smokeDup.gotoAndPlay(2);
} else if (level == 2) {
TOP = 81;
BOTTOM = 317;
RIGHT = 598;
LEFT = 47;
gTank.speed = 2;
layout = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 5];
startEnemies = ["bat", "bat", "bat", "hiss"];
restEnemies = ["bat", "bat", "bat", "bat", "bat", "bat", "bat", "bat", "bat", "bat", "hiss", "hiss", "hiss", "hiss", "hiss", "hiss", "hiss", "hiss", "ring", "ring", "ring", "ring"];
dropLocs = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17];
dropOffLocs = [1, 2, 3, 4, 5, 6];
duplicateMovieClip (smoke1_mc, "smokeDup1", 9990);
duplicateMovieClip (smoke2_mc, "smokeDup2", 9991);
smokeDup1.gotoAndPlay(2);
smokeDup2.gotoAndPlay(10);
} else if (level == 3) {
TOP = 78;
BOTTOM = 318;
RIGHT = 600;
LEFT = 43;
gTank.speed = 2;
layout = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 5];
startEnemies = ["bat", "bat", "bat", "hiss", "ring", "ring"];
restEnemies = ["bat", "bat", "bat", "bat", "bat", "bat", "bat", "bat", "bat", "bat", "bat", "bat", "bat", "hiss", "hiss", "hiss", "hiss", "hiss", "hiss", "hiss", "ring", "ring", "ring", "quad", "quad", "quad", "quad"];
dropLocs = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30];
dropOffLocs = [1, 2, 3, 4, 5, 6, 7, 8];
duplicateMovieClip (smoke1_mc, "smokeDup1", 9990);
duplicateMovieClip (smoke2_mc, "smokeDup2", 9991);
var vRand = Math.floor(Math.random() * dropLocs.length);
var vNum = dropLocs[vRand];
var vLocx = eval (("drop" + vNum) + "_mc")._x;
var vLocy = eval (("drop" + vNum) + "_mc")._y;
duplicateMovieClip (special_mc, "specialDup2", 998);
specialDup2._x = vLocx;
specialDup2._y = vLocy;
dropLocs.splice(vRand);
smokeDup1.gotoAndPlay(2);
smokeDup2.gotoAndPlay(10);
laserLoadMeter_mc.gotoAndStop(5);
}
var i = 1;
while (i < (layout.length + 1)) {
duplicateMovieClip (("block" + i) + "_mc", ("blockDup" + i) + "_mc", Number(7900 + i));
eval (("blockDup" + i) + "_mc").gotoAndStop("bldg" + layout[i - 1]);
i++;
}
while (startEnemies.length > 0) {
trace("dropOffLocs=" + dropOffLocs);
var vRand = Math.floor(Math.random() * dropLocs.length);
var vNum = dropLocs[vRand];
var vLocx = eval (("drop" + vNum) + "_mc")._x;
var vLocy = eval (("drop" + vNum) + "_mc")._y;
var vRand2 = Math.floor(Math.random() * eval (("drop" + vNum) + "_mc").directions.length);
var vDir = eval (("drop" + vNum) + "_mc.directions")[vRand2];
dropLocs.splice(vRand, 1);
var vObj = new Enemy(startEnemies[0], vLocx, vLocy, vDir);
enemyList.push(vObj);
startEnemies.splice(0, 1);
}
var vRand = Math.floor(Math.random() * dropLocs.length);
var vNum = dropLocs[vRand];
var vLocx = eval (("drop" + vNum) + "_mc")._x;
var vLocy = eval (("drop" + vNum) + "_mc")._y;
duplicateMovieClip (special_mc, "specialDup", 999);
specialDup._x = vLocx;
specialDup._y = vLocy;
dropLocs.splice(vRand);
updater = setInterval(fnUpdate, 66.6666666666667);
turret_mc.onEnterFrame = rotateTowardsTank;
crosshair_mc.startDrag(true);
debrisDupLevel = 500;
}
function fnEndLevel(vMessage) {
_global.gGameOn = false;
borderDup.messages_mc.gotoAndStop("level" + level);
crosshair_mc.stopDrag();
crosshair_mc._x = -100;
crosshair_mc._y = -100;
clearInterval(updater);
clearInterval(enemyShootInterval);
clearInterval(shootDelayTimer);
if (gTank.weapon == "laserrocket") {
gTank.selectWeapon("rocket");
}
}
function fnClearLevel() {
gTank.clip.removeMovieClip();
selectedWeapon = gTank.weapon;
_global.gTank = null;
if (level == 1) {
smokeDup.removeMovieClip();
} else {
smokeDup1.removeMovieClip();
smokeDup2.removeMovieClip();
}
var i = 1;
while (i < (layout.length + 1)) {
removeMovieClip(("blockDup" + i) + "_mc");
i++;
}
while (debrisList.length > 0) {
removeMovieClip(debrisList[0]);
debrisList.splice(0, 1);
}
while (enemyList.length > 0) {
fnRemoveEnemy(enemyList[0], false);
}
if (level < 3) {
level++;
} else {
level = 1;
borderDup.score_mc.score_txt.text = 0;
removeMovieClip(specialDup2);
}
borderDup.meter_mc.gotoAndStop(1);
borderDup.level_mc.level_txt.text = level;
removeMovieClip(specialDup);
}
function Tank(vWeapon) {
this.vType = "tank";
this.vDamage = 0;
this.size = level;
duplicateMovieClip (grizzly_mc, "grizzlyDup", 1000);
grizzlyDup.turret_mc.onEnterFrame = rotateTowardsMouse;
this.clip = grizzlyDup;
switch (level) {
case 1 :
this.xPos = 57;
this.yPos = 85;
break;
case 2 :
this.xPos = 49.5;
this.yPos = 81.1;
break;
case 3 :
this.xPos = 48.6;
this.yPos = 78.9;
}
this.clip._x = this.xPos;
this.clip._y = this.yPos;
this.dir = "right";
if (vWeapon != null) {
this.selectWeapon(vWeapon);
} else {
this.selectWeapon("guns");
}
this.oldWeapon = null;
this.state = "moving";
this.speed = null;
this.shootOK = true;
this.warned = false;
this.storeDir = null;
this.clip.flash_mc.gotoAndPlay(2);
}
function Enemy(vType, xPos, yPos, vDir) {
trace((((((((vType + ",") + xPos) + ",") + yPos) + ",") + vDir) + ",") + enemyDupLevel);
this.vType = vType;
this.xPos = xPos;
this.yPos = yPos;
this.ai = true;
duplicateMovieClip (eval (vType + "_mc"), "enemyDup" + enemyDupLevel, enemyDupLevel);
this.clip = eval ("enemyDup" + enemyDupLevel);
switch (this.vType) {
case "quad" :
this.speed = 3;
this.pointVal = 2500;
this.maxDamage = 3;
break;
case "bat" :
this.speed = 4;
this.pointVal = 500;
this.maxDamage = 2;
if (level == 1) {
this.ai = false;
}
break;
case "hiss" :
this.speed = 2;
this.pointVal = 1000;
this.maxDamage = 10;
if (level != 3) {
this.clip.turret_mc.onEnterFrame = rotateTowardsTank;
}
if (level == 1) {
this.ai = false;
}
break;
case "ring" :
this.speed = 2;
this.pointVal = 1500;
this.maxDamage = 20;
this.clip.turret_mc.onEnterFrame = rotateTowardsTank;
}
this.clip.onEnterFrame = checkShoot;
this.startTime = getTimer();
this.clip.objRef = this;
this.clip._x = this.xPos;
this.clip._y = this.yPos;
this.clip.fireOK = true;
this.dir = vDir;
this.state = "moving";
this.turnOK = true;
this.continueTurn = null;
this.hit = false;
enemyDupLevel++;
}
function fnStoreTurn(dir) {
this.state = "moving";
if ((this.dir == "right") && (dir == "left")) {
this.dir = "left";
} else if ((this.dir == "left") && (dir == "right")) {
this.dir = "right";
} else if ((this.dir == "up") && (dir == "down")) {
this.dir = "down";
} else if ((this.dir == "down") && (dir == "up")) {
this.dir = "up";
} else {
this.storeDir = dir;
}
}
function fnTurnObject(dir) {
this.state = "moving";
if ((dir != this.dir) && (dir != null)) {
switch (dir) {
case "right" :
if (this.dir != "left") {
this.clip.tank_mc.gotoAndPlay((this.dir + "To") + dir);
this.state = "turning";
}
break;
case "left" :
if (this.dir != "right") {
this.clip.tank_mc.gotoAndPlay((this.dir + "To") + dir);
this.state = "turning";
}
break;
case "up" :
if (this.dir != "down") {
this.clip.tank_mc.gotoAndPlay((this.dir + "To") + dir);
this.state = "turning";
}
break;
case "down" :
if (this.dir == "up") {
break;
}
this.clip.tank_mc.gotoAndPlay((this.dir + "To") + dir);
this.state = "turning";
}
this.dir = dir;
}
this.storeDir = null;
}
function fnMoveObject() {
switch (this.dir) {
case "right" :
xInc = this.speed;
yInc = 0;
break;
case "left" :
xInc = (-1) * this.speed;
yInc = 0;
break;
case "up" :
yInc = (-1) * this.speed;
xInc = 0;
break;
case "down" :
yInc = this.speed;
xInc = 0;
}
if (this.state == "moving") {
var vTurnOK = false;
if ((this.dir == "right") || (this.dir == "left")) {
var i = 1;
while (i < (yStreets[level - 1] + 1)) {
if (((this.xPos > (eval (("streetY" + i) + "_mc")._x - 5)) && (this.xPos < (eval (("streetY" + i) + "_mc")._x + 5))) && (this.vType != "tank")) {
if (this.turnOK == true) {
if (this.yPos < (streetX1_mc._y + 5)) {
this.turn("down");
} else if (this.yPos > (eval (("streetX" + xStreets[level - 1]) + "_mc")._y - 5)) {
this.turn("up");
} else if (this.ai == true) {
if (gTank.yPos > this.yPos) {
this.turn("down");
} else {
this.turn("up");
}
} else {
var vRand = Math.floor(Math.random() * 2);
if (vRand == 0) {
this.turn("down");
} else {
this.turn("up");
}
}
this.turnOK = false;
}
} else if (((this.xPos > (eval (("streetY" + i) + "_mc")._x - 5)) && (this.xPos < (eval (("streetY" + i) + "_mc")._x + 5))) && (this.vType == "tank")) {
this.turn(this.storeDir);
vTurnOK = true;
} else if (((this.xPos > (eval (("streetY" + i) + "_mc")._x - 20)) && (this.xPos < (eval (("streetY" + i) + "_mc")._x + 20))) && (this.vType == "tank")) {
fnEnableDirButtons(true);
vTurnOK = true;
}
i++;
}
} else if ((this.dir == "up") || (this.dir == "down")) {
var i = 1;
while (i < (xStreets[level - 1] + 1)) {
if (((this.yPos > (eval (("streetX" + i) + "_mc")._y - 5)) && (this.yPos < (eval (("streetX" + i) + "_mc")._y + 5))) && (this.vType == "tank")) {
trace("turn called");
this.turn(this.storeDir);
vTurnOK = true;
}
if (((this.yPos > (eval (("streetX" + i) + "_mc")._y - 5)) && (this.yPos < (eval (("streetX" + i) + "_mc")._y + 5))) && (this._vType != "tank")) {
if (this.turnOK == true) {
if (this.xPos < (streetY1._x + 5)) {
this.turn("right");
} else if (this.xPos > (eval (("streetY" + yStreets[level - 1]) + "_mc")._x - 5)) {
this.turn("left");
} else if (this.ai == true) {
if (gTank.xPos > this.xPos) {
this.turn("right");
} else {
this.turn("left");
}
} else {
var vRand = Math.floor(Math.random() * 2);
if (vRand == 0) {
this.turn("right");
} else {
this.turn("left");
}
}
this.turnOK = false;
}
} else if (((this.yPos > (eval (("streetX" + i) + "_mc")._y - 20)) && (this.yPos < (eval (("streetX" + i) + "_mc")._y + 20))) && (this.vType == "tank")) {
fnEnableDirButtons(true);
vTurnOK = true;
}
i++;
}
}
if ((vTurnOK != true) && (this.vType == "tank")) {
fnEnableDirButtons(false);
}
if (((((this.xPos + xInc) < RIGHT) && ((this.xPos + xInc) > LEFT)) && ((this.yPos + yInc) > TOP)) && ((this.yPos + yInc) < BOTTOM)) {
this.xPos = this.xPos + xInc;
this.yPos = this.yPos + yInc;
this.clip._x = this.xPos;
this.clip._y = this.yPos;
} else if (((this.xPos > RIGHT) && (this.dir == "left")) || ((this.xPos < LEFT) && (this.dir == "right"))) {
this.xPos = this.xPos + xInc;
this.yPos = this.yPos + yInc;
this.clip._x = this.xPos;
this.clip._y = this.yPos;
} else if ((this.xPos > RIGHT) && (this.dir == "right")) {
this.turn("up");
this.clip.continueTurn = "left";
} else if ((this.xPos < LEFT) && (this.dir == "left")) {
this.turn("up");
this.clip.continueTurn("right");
} else if (((this.xPos + xInc) > RIGHT) && ((this.yPos - 5) < streetX1_mc._y)) {
this.turn("down");
} else if (((this.xPos + xInc) > RIGHT) && ((this.yPos + 5) > eval (("streetX" + xStreets[level - 1]) + "_mc")._y)) {
this.turn("up");
} else if (((this.xPos + xInc) < LEFT) && ((this.yPos - 5) < streetX1_mc._y)) {
this.turn("down");
} else if (((this.xPos + xInc) < LEFT) && ((this.yPos + 5) > eval (("streetX" + xStreets[level - 1]) + "_mc")._y)) {
this.turn("up");
} else if (((this.yPos + yInc) < TOP) && ((this.xPos - 5) < streetY1_mc._x)) {
this.turn("right");
} else if (((this.yPos + yInc) < TOP) && ((this.xPos + 5) > eval (("streetY" + yStreets[level - 1]) + "_mc")._x)) {
this.turn("left");
} else if (((this.yPos + yInc) > BOTTOM) && ((this.xPos - 5) < streetY1_mc._x)) {
this.turn("right");
} else if (((this.yPos + yInc) > BOTTOM) && ((this.xPos + 5) > eval (("streetY" + yStreets[level - 1]) + "_mc")._x)) {
this.turn("left");
} else if (this.vType == "tank") {
this.state = "stuck";
}
if ((this.vType == "tank") && (this.clip.hitTest(specialDup) || (this.clip.hitTest(specialDup2)))) {
this.selectWeapon("laserrocket");
s.attachSound("ROLR");
s.start();
var vRand = Math.floor(Math.random() * dropLocs.length);
var vNum = dropLocs[vRand];
var vLocx = eval (("drop" + vNum) + "_mc")._x;
var vLocy = eval (("drop" + vNum) + "_mc")._y;
if (this.clip.hitTest(specialDup)) {
specialDup._x = vLocx;
specialDup._y = vLocy;
} else {
specialDup2._x = vLocx;
specialDup2._y = vLocy;
}
dropLocs.splice(vRand, 1);
if (dropLocs.length == 0) {
if (level == 1) {
dropLocs = [1, 2, 3, 4, 5];
} else if (level == 2) {
dropLocs = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17];
} else {
dropLocs = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30];
}
}
}
var i = 0;
while (i < enemyList.length) {
if ((this.clip.hitTest(enemyList[i].clip) && (this != enemyList[i])) || (this.clip.hitTest(gTank.clip) && (this != gTank))) {
if (this.vType == "tank") {
if (enemyList[i].hit == false) {
if (enemyList[i].vType == "bat") {
enemyList[i].hit = true;
enemyList[i].clip.tank_mc._visible = false;
enemyList[i].clip.turret_mc._visible = false;
enemyList[i].clip.explosion_mc.gotoAndPlay(2);
enemyExplosions_mc.play();
} else {
this.state = "stuck";
}
}
} else if (this.turnOK == true) {
if (((this.xPos - 20) > RIGHT) || ((this.xPos + 20) < LEFT)) {
fnRemoveEnemy(this, false);
restEnemies.push(this.vType);
} else if ((this.vType == "bat") && (this.clip.hitTest(gTank.clip))) {
this.hit = true;
this.clip.tank_mc._visible = false;
this.clip.turret_mc._visible = false;
this.clip.explosion_mc.gotoAndPlay(2);
} else {
switch (this.dir) {
case "right" :
this.turn("up");
this.clip.continueTurn = "left";
break;
case "up" :
this.turn("left");
this.clip.continueTurn = "down";
break;
case "left" :
this.turn("down");
this.clip.continueTurn = "right";
break;
case "down" :
this.turn("right");
this.clip.continueTurn = "up";
}
}
this.turnOK = false;
}
}
i++;
}
}
}
function fnAttackObject(vAgain) {
if (this.vType == "tank") {
var shootOK = false;
if ((this.weapon == "rocket") && (borderDup.loadMeter_mc._currentframe == 16)) {
shootOK = true;
borderDup.loadMeter_mc.gotoAndPlay(2);
} else if ((this.weapon == "guns") || (this.weapon == "laserrocket")) {
if ((level == 3) && (laserLoadMeter_mc._currentframe == 5)) {
shootOK = true;
laserLoadMeter_mc.gotoAndPlay(2);
} else if (level < 3) {
shootOK = true;
}
}
if (shootOK == true) {
if (vAgain == true) {
duplicateMovieClip (guns2_mc, "shootDup" + dupLevel, dupLevel);
eval ("shootDup" + dupLevel).vType = this.weapon;
eval ("shootDup" + dupLevel).vFired = "tank";
eval ("shootDup" + dupLevel).damage = 0.5;
attackList.push(eval ("shootDup" + dupLevel));
} else {
duplicateMovieClip (eval (this.weapon + "_mc"), "shootDup" + dupLevel, dupLevel);
eval ("shootDup" + dupLevel).vType = this.weapon;
eval ("shootDup" + dupLevel).vFired = "tank";
if (this.weapon == "guns") {
eval ("shootDup" + dupLevel).damage = 0.5;
} else {
eval ("shootDup" + dupLevel).damage = 10;
}
attackList.push(eval ("shootDup" + dupLevel));
}
}
} else {
switch (this.vType) {
case "quad" :
duplicateMovieClip (laser_mc, "shootDup" + dupLevel, dupLevel);
eval ("shootDup" + dupLevel).vType = "laser";
eval ("shootDup" + dupLevel).vDamage = 7;
eval ("shootDup" + dupLevel).pointVal = -1250;
break;
case "bat" :
duplicateMovieClip (guns_mc, "shootDup" + dupLevel, dupLevel);
eval ("shootDup" + dupLevel).vType = "guns";
eval ("shootDup" + dupLevel).vDamage = 1;
eval ("shootDup" + dupLevel).pointVal = -250;
break;
case "hiss" :
duplicateMovieClip (rocket_mc, "shootDup" + dupLevel, dupLevel);
eval ("shootDup" + dupLevel).vType = "rocket";
eval ("shootDup" + dupLevel).vDamage = 2;
eval ("shootDup" + dupLevel).pointVal = -500;
break;
case "ring" :
duplicateMovieClip (rocket_mc, "shootDup" + dupLevel, dupLevel);
eval ("shootDup" + dupLevel).vType = "rocket";
eval ("shootDup" + dupLevel).vDamage = 5;
eval ("shootDup" + dupLevel).pointVal = -750;
}
eval ("shootDup" + dupLevel).vFired = "enemy";
attackList.push(eval ("shootDup" + dupLevel));
}
eval ("shootDup" + dupLevel)._x = this.xPos;
eval ("shootDup" + dupLevel)._y = this.yPos;
if (this.vType == "tank") {
eval ("shootDup" + dupLevel).rotateTowardsMouse();
} else if (((this.vType == "hiss") || (this.vType == "ring")) || (this.vType == "quad")) {
eval ("shootDup" + dupLevel).rotateTowardsTank();
} else {
switch (this.dir) {
case "up" :
eval ("shootDup" + dupLevel)._rotation = -90;
break;
case "left" :
eval ("shootDup" + dupLevel)._rotation = 180;
break;
case "down" :
eval ("shootDup" + dupLevel)._rotation = 90;
}
}
eval ("shootDup" + dupLevel).onEnterFrame = checkHitAttack;
eval ("shootDup" + dupLevel).gotoAndPlay(2);
dupLevel++;
if ((this.weapon == "guns") && (vAgain != true)) {
this.fire(true);
}
}
function fnUpdate() {
if (gGameOn == true) {
gTank.move();
var i = 0;
while (i < enemyList.length) {
enemyList[i].move();
i++;
}
}
}
function fnEnableDirButtons(vOn) {
if (vOn == false) {
gTank.storeDir = null;
turnOK = false;
with (borderDup) {
right_mc.gotoAndStop(2);
left_mc.gotoAndStop(2);
up_mc.gotoAndStop(2);
down_mc.gotoAndStop(2);
}
if ((gTank.dir == "right") || (gTank.dir == "left")) {
borderDup.right_mc.gotoAndStop(1);
borderDup.left_mc.gotoAndStop(1);
} else if ((gTank.dir == "up") || (gTank.dir == "down")) {
borderDup.up_mc.gotoAndStop(1);
borderDup.down_mc.gotoAndStop(1);
}
} else {
turnOK = true;
with (borderDup) {
right_mc.gotoAndStop(1);
left_mc.gotoAndStop(1);
up_mc.gotoAndStop(1);
down_mc.gotoAndStop(1);
}
}
}
function fnRemoveEnemy(vObj) {
var i = 0;
while (i < enemyList.length) {
if (enemyList[i] == vObj) {
enemyList[i].clip.removeMovieClip();
enemyList.splice(i, 1);
}
i++;
}
if (gGameOn == true) {
if (restEnemies.length > 0) {
var vRand = Math.floor(Math.random() * dropOffLocs.length);
var vNum = dropOffLocs[vRand];
dropOffLocs.splice(vRand, 1);
fnResetDropOffLocs();
var vLocx = eval (("dropOff" + vNum) + "_mc")._x;
var vLocy = eval (("dropOff" + vNum) + "_mc")._y;
var vDir = eval (("dropOff" + vNum) + "_mc").direction;
var vRand2 = Math.floor(Math.random() * restEnemies.length);
if (((vLocx != null) && (vLocy != null)) && (vDir != null)) {
var vObj = new Enemy(restEnemies[vRand2], vLocx, vLocy, vDir);
enemyList.push(vObj);
restEnemies.splice(vRand2, 1);
trace("restEnemies=" + restEnemies);
trace("enemyList=" + enemyList);
}
} else if (enemyList.length == 0) {
fnEndLevel();
} else {
trace("enemyList=" + enemyList);
var i = 0;
while (i < enemyList.length) {
if (enemyList[i].xPos == undefined) {
fnRemoveEnemy(enemyList[i]);
}
trace(enemyList[i].vType);
trace(enemyList[i].xPos);
trace(enemyList[i].yPos);
trace(enemyList[i].clip);
i++;
}
}
}
}
function fnResetDropOffLocs() {
if (dropOffLocs.length == 0) {
if (level == 1) {
dropOffLocs = [1, 2, 3, 4];
} else if (level == 2) {
dropOffLocs = [1, 2, 3, 4, 5, 6];
} else {
dropOffLocs = [1, 2, 3, 4, 5, 6, 7, 8];
}
}
}
function fnEnemyShoot(which) {
var vRand = Math.floor(Math.random() * enemyList.length);
enemyList[vRand].fire();
}
function fnScorePoints(vPoints) {
if ((score + vPoints) > 0) {
score = score + vPoints;
} else {
score = 0;
}
borderDup.score_mc.score_txt.text = score;
}
function fnResetScore() {
score = 0;
borderDup.score_mc.score_txt.text = "0";
}
function fnRemoveAttack(vObj) {
var i = 0;
while (i < attackList.length) {
if (attackList[i] == vObj) {
attackList.splice(i, 1);
}
i++;
}
vObj.removeMovieClip();
}
function fnFadeAudioOut(vClip) {
fader = setInterval(fnFadeLoop, 66.6666666666667, vClip, "fader" + dupLevel);
}
function fnFadeHelpOut(vClip) {
fader2 = setInterval(fnFadeLoop2, 66.6666666666667, vClip, "fader" + dupLevel);
}
function fnFadeLoop(vClip) {
trace(vClip);
trace(vClip.getVolume());
if (vClip.getVolume() >= 0) {
vClip.setVolume(vClip.getVolume() - 2);
} else {
clearInterval(fader);
vClip.stop();
}
}
function fnFadeLoop2(vClip) {
trace(vClip);
trace(vClip.getVolume());
if (vClip.getVolume() >= 0) {
vClip.setVolume(vClip.getVolume() - 2);
} else {
clearInterval(fader2);
vClip.stop();
}
}
var currentDir;
_global.gTank;
_global.gGameOn;
_global.gGameStarted = false;
var level;
var updater;
var TOP;
var BOTTOM;
var RIGHT;
var LEFT;
var layout;
var xStreets;
var yStreets;
var dupLevel;
var swapDupLevel;
var speed;
var turnOK;
var enemyList;
var keyListener;
var enemyTypes;
var enemyShootInterval;
var shootDelayTimer;
var enemyDupLevel;
var startEnemies;
var restEnemies;
var dropLocs;
var dropOffLocs;
var score;
var attackList;
var selectedWeapon;
var debrisList;
var debrisDupLevel;
var s;
var sMusic;
_global.radiansToDegrees = function (radians) {
return((radians / Math.PI) * 180);
};
MovieClip.prototype.checkShoot = function () {
if ((((getTimer() - this.objRef.startTime) > 4000) && (gGameOn == true)) && (this.objRef.hit != true)) {
switch (this.objRef.vType) {
case "quad" :
if ((Math.abs(gTank.xPos - this._x) < 300) && (Math.abs(gTank.yPos - this._y) < 300)) {
if (this.fireOK == true) {
this.fireOK = false;
this.fireDelay_mc.gotoAndPlay(2);
}
}
return;
case "bat" :
if ((Math.abs(gTank.xPos - this._x) < 100) && (Math.abs(gTank.yPos - this._y) < 100)) {
if (this.fireOK == true) {
this.fireOK = false;
this.objRef.fire();
this.fireDelay_mc.gotoAndPlay(2);
}
}
return;
case "hiss" :
if ((((this._x + 5) > gTank.xPos) && ((this._x - 5) < gTank.xPos)) | (((this._y + 5) > gTank.yPos) && ((this._y - 5) < gTank.yPos))) {
if (this.fireOK == true) {
this.fireOK = false;
this.fireDelay_mc.gotoAndPlay(2);
}
}
return;
case "ring" :
if (!((Math.abs(gTank.xPos - this._x) < 300) && (Math.abs(gTank.yPos - this._y) < 300))) {
break;
}
if (this.fireOK != true) {
break;
}
this.fireOK = false;
this.fireDelay_mc.gotoAndPlay(2);
}
}
};
MovieClip.prototype.checkHitAttack = function () {
if (gGameOn == true) {
var i = 1;
while (i < (layout.length + 1)) {
if (this.hit_mc.hitTest(eval (("blockDup" + i) + "_mc"))) {
var j = 1;
while (j < 13) {
if (this.hit_mc.hitTest(eval (((("blockDup" + i) + "_mc.hit") + j) + "_mc")) && (this.vType == "guns")) {
if (eval (((("blockDup" + i) + "_mc.hit") + j) + "_mc").hit != true) {
buildingExplosions_mc.play();
eval (((("blockDup" + i) + "_mc.hit") + j) + "_mc").gotoAndPlay(2);
eval (((("blockDup" + i) + "_mc.hit") + j) + "_mc").hit = true;
fnCreateDebris(i, j, point.x, point.y);
fnRemoveAttack(this);
} else {
fnRemoveAttack(this);
}
} else if (this.hit_mc.hitTest(eval (((("blockDup" + i) + "_mc.hit") + j) + "_mc")) && (eval (((("blockDup" + i) + "_mc.hit") + j) + "_mc").hit != true)) {
buildingExplosions_mc.play();
eval (((("blockDup" + i) + "_mc.hit") + j) + "_mc").gotoAndPlay(2);
eval (((("blockDup" + i) + "_mc.hit") + j) + "_mc").hit = true;
fnCreateDebris(i, j);
var incDamage = true;
switch (eval (((("blockDup" + i) + "_mc.hit") + j) + "_mc.vType")) {
case "right" :
if ((eval (("blockDup" + i) + "_mc")._x > gTank.xPos) && (this.damage > 5)) {
incDamage = false;
}
break;
case "left" :
if ((eval (("blockDup" + i) + "_mc")._x < gTank.xPos) && (this.damage > 5)) {
incDamage = false;
}
break;
case "top" :
if ((eval (("blockDup" + i) + "_mc")._y < gTank.yPos) && (this.damage > 5)) {
incDamage = false;
}
break;
case "bottom" :
if (!((eval (("blockDup" + i) + "_mc")._y > gTank.yPos) && (this.damage > 5))) {
break;
}
incDamage = false;
}
if (incDamage == true) {
this.damage++;
}
if (this.damage == 7) {
fnRemoveAttack(this);
}
}
j++;
}
}
i++;
}
if (this.vFired == "tank") {
var i = 0;
while (i < enemyList.length) {
if (this.hit_mc.hitTest(enemyList[i].clip) && (enemyList[i].hit != true)) {
enemyList[i].damage = enemyList[i].damage + this.damage;
if (enemyList[i].damage >= enemyList[i].maxDamage) {
enemyList[i].hit = true;
enemyList[i].clip.tank_mc._visible = false;
enemyList[i].clip.turret_mc._visible = false;
enemyList[i].clip.explosion_mc.gotoAndPlay(2);
enemyExplosions_mc.play();
fnScorePoints(enemyList[i].pointVal);
} else {
enemyList[i].clip.hit_mc.gotoAndPlay(this.vType);
}
if (this.vType == "guns") {
fnRemoveAttack(this);
} else if (enemyList[i].vType == "bat") {
this.damage++;
} else {
fnRemoveAttack(this);
}
}
i++;
}
} else if (this.hit_mc.hitTest(gTank.clip)) {
if (this.vType == "guns") {
gTank.clip.hit_mc.gotoAndPlay("guns");
} else {
gTank.clip.hit_mc.gotoAndPlay("rocket");
}
gTank.damage(this.vDamage);
fnScorePoints(this.pointVal);
fnRemoveAttack(this);
}
}
};
MovieClip.prototype.rotateTowardsMouse = function () {
if (gGameOn == true) {
var point = {x:this._x, y:this._y};
this._parent.localToGlobal(point);
var deltaX = (_xmouse - point.x);
var deltaY = (_ymouse - point.y);
var rotationRadian = Math.atan2(deltaY, deltaX);
var rotationAngle = radiansToDegrees(rotationRadian);
this._rotation = rotationAngle;
}
};
MovieClip.prototype.rotateTowardsTank = function () {
if (gGameOn == true) {
var point = {x:this._x, y:this._y};
this._parent.localToGlobal(point);
var deltaX = (gTank.xPos - point.x);
var deltaY = (gTank.yPos - point.y);
var rotationRadian = Math.atan2(deltaY, deltaX);
var rotationAngle = radiansToDegrees(rotationRadian);
this._rotation = rotationAngle;
}
};
MovieClip.prototype.setToTankPosition = function () {
this._x = gTank.xPos;
this._y = gTank.yPos;
};
Tank.prototype.damage = function (vNum) {
if (gGameOn == true) {
this.vDamage = this.vDamage + vNum;
if ((this.vDamage >= 21) && (this.warned == false)) {
fnPauseGame();
borderDup.messages_mc.gotoAndPlay("damage alert");
this.warned = true;
} else if (this.vDamage >= 30) {
this.vDamage = 30;
fnEndGame();
}
borderDup.meter_mc.gotoAndStop(this.vDamage);
}
};
Tank.prototype.selectWeapon = function (which) {
if ((which == "laserrocket") && (this.weapon == "laserrocket")) {
borderDup.rocketButton_mc.laserRocket_mc.timer_mc.gotoAndPlay(1);
} else {
this.oldWeapon = this.weapon;
this.weapon = which;
if (which == "guns") {
borderDup.gunsButton_mc.gotoAndStop(2);
borderDup.rocketButton_mc.gotoAndStop(1);
} else if (which == "rocket") {
borderDup.loadMeter_mc.gotoAndStop(16);
borderDup.rocketButton_mc.gotoAndStop(2);
borderDup.gunsButton_mc.gotoAndStop(1);
} else if (which == "laserrocket") {
borderDup.loadMeter_mc.gotoAndStop(1);
borderDup.rocketButton_mc.gotoAndStop(3);
borderDup.gunsButton_mc.gotoAndStop(1);
}
}
};
Frame 2
play();
Frame 11
if (getBytesLoaded() == getBytesTotal()) {
gotoAndPlay (12);
} else {
gotoAndPlay (7);
}
Frame 12
introMusic = new Sound(IntroMusic_mc);
introMusic.attachSound("IntroMusic");
introMusic.setVolume(50);
introMusic.start(0, 999);
start_btn.onPress = function () {
play();
};
Frame 19
stop();
Frame 24
fnInit();
stop();
Instance of Symbol 100 MovieClip "drop1_mc" in Frame 25
onClipEvent (load) {
this.directions = ["right", "left", "down"];
}
Instance of Symbol 100 MovieClip "drop2_mc" in Frame 25
onClipEvent (load) {
this.directions = ["right", "left", "down"];
}
Instance of Symbol 100 MovieClip "drop3_mc" in Frame 25
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop4_mc" in Frame 25
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop5_mc" in Frame 25
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "dropOff1_mc" in Frame 25
onClipEvent (load) {
direction = "right";
}
Instance of Symbol 100 MovieClip "dropOff2_mc" in Frame 25
onClipEvent (load) {
direction = "right";
}
Instance of Symbol 100 MovieClip "dropOff3_mc" in Frame 25
onClipEvent (load) {
direction = "left";
}
Instance of Symbol 100 MovieClip "dropOff4_mc" in Frame 25
onClipEvent (load) {
direction = "left";
}
Frame 26
fnStartGame();
stop();
fire_btn.onPress = function () {
if (gGameOn == true) {
gTank.fire();
}
};
Frame 31
stop();
Instance of Symbol 100 MovieClip "drop3_mc" in Frame 32
onClipEvent (load) {
this.directions = ["right", "left", "down"];
}
Instance of Symbol 100 MovieClip "drop4_mc" in Frame 32
onClipEvent (load) {
this.directions = ["right", "left", "down"];
}
Instance of Symbol 100 MovieClip "drop5_mc" in Frame 32
onClipEvent (load) {
this.directions = ["left", "down"];
}
Instance of Symbol 100 MovieClip "drop6_mc" in Frame 32
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop7_mc" in Frame 32
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop8_mc" in Frame 32
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop9_mc" in Frame 32
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop10_mc" in Frame 32
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop11_mc" in Frame 32
onClipEvent (load) {
this.directions = ["left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop12_mc" in Frame 32
onClipEvent (load) {
this.directions = ["right", "left", "up"];
}
Instance of Symbol 100 MovieClip "drop13_mc" in Frame 32
onClipEvent (load) {
this.directions = ["right", "left", "up"];
}
Instance of Symbol 100 MovieClip "drop14_mc" in Frame 32
onClipEvent (load) {
this.directions = ["right", "left", "up"];
}
Instance of Symbol 100 MovieClip "drop15_mc" in Frame 32
onClipEvent (load) {
this.directions = ["right", "left", "up"];
}
Instance of Symbol 100 MovieClip "drop16_mc" in Frame 32
onClipEvent (load) {
this.directions = ["right", "left", "up"];
}
Instance of Symbol 100 MovieClip "drop17_mc" in Frame 32
onClipEvent (load) {
this.directions = ["left", "up"];
}
Instance of Symbol 100 MovieClip "dropOff3_mc" in Frame 32
onClipEvent (load) {
direction = "right";
}
Instance of Symbol 100 MovieClip "dropOff5_mc" in Frame 32
onClipEvent (load) {
direction = "left";
}
Instance of Symbol 100 MovieClip "dropOff6_mc" in Frame 32
onClipEvent (load) {
direction = "left";
}
Frame 33
fnInitLevel();
stop();
fire_btn.onPress = function () {
if (gGameOn == true) {
gTank.fire();
}
};
Instance of Symbol 100 MovieClip "drop5_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "down"];
}
Instance of Symbol 100 MovieClip "drop6_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "down"];
}
Instance of Symbol 100 MovieClip "drop7_mc" in Frame 38
onClipEvent (load) {
this.directions = ["left", "down"];
}
Instance of Symbol 100 MovieClip "drop11_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop12_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop13_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop14_mc" in Frame 38
onClipEvent (load) {
this.directions = ["left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop15_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop16_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop17_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop18_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop19_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop20_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop21_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop22_mc" in Frame 38
onClipEvent (load) {
this.directions = ["left", "down", "up"];
}
Instance of Symbol 100 MovieClip "drop23_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "up"];
}
Instance of Symbol 100 MovieClip "drop24_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "up"];
}
Instance of Symbol 100 MovieClip "drop25_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "up"];
}
Instance of Symbol 100 MovieClip "drop26_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "up"];
}
Instance of Symbol 100 MovieClip "drop27_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "up"];
}
Instance of Symbol 100 MovieClip "drop28_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "up"];
}
Instance of Symbol 100 MovieClip "drop29_mc" in Frame 38
onClipEvent (load) {
this.directions = ["right", "left", "up"];
}
Instance of Symbol 100 MovieClip "drop30_mc" in Frame 38
onClipEvent (load) {
this.directions = ["left", "up"];
}
Instance of Symbol 100 MovieClip "dropOff1_mc" in Frame 38
onClipEvent (load) {
this.direction = "right";
}
Instance of Symbol 100 MovieClip "dropOff2_mc" in Frame 38
onClipEvent (load) {
this.direction = "right";
}
Instance of Symbol 100 MovieClip "dropOff3_mc" in Frame 38
onClipEvent (load) {
this.direction = "right";
}
Instance of Symbol 100 MovieClip "dropOff4_mc" in Frame 38
onClipEvent (load) {
this.direction = "right";
}
Instance of Symbol 100 MovieClip "dropOff5_mc" in Frame 38
onClipEvent (load) {
this.direction = "left";
}
Instance of Symbol 100 MovieClip "dropOff6_mc" in Frame 38
onClipEvent (load) {
this.direction = "left";
}
Instance of Symbol 100 MovieClip "dropOff7_mc" in Frame 38
onClipEvent (load) {
this.direction = "left";
}
Instance of Symbol 100 MovieClip "dropOff8_mc" in Frame 38
onClipEvent (load) {
this.direction = "left";
}
Frame 39
fnInitLevel();
stop();
fire_btn.onPress = function () {
if (gGameOn == true) {
gTank.fire();
}
};
Symbol 84 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
function fnReset() {
gTank.state = "moving";
timer_mc.gotoAndPlay("startTimer");
}
stop();
Symbol 95 MovieClip Frame 10
stop();
fnReset();
Symbol 95 MovieClip Frame 20
stop();
fnReset();
Symbol 95 MovieClip Frame 30
stop();
fnReset();
Symbol 95 MovieClip Frame 40
stop();
fnReset();
Symbol 95 MovieClip Frame 50
stop();
fnReset();
Symbol 95 MovieClip Frame 60
stop();
fnReset();
Symbol 95 MovieClip Frame 70
stop();
fnReset();
Symbol 95 MovieClip Frame 80
stop();
fnReset();
Symbol 101 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
play();
Symbol 107 MovieClip Frame 18
_global.gGameOn = true;
gotoAndStop (1);
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
play();
Symbol 114 MovieClip Frame 5
gotoAndStop (1);
Symbol 114 MovieClip Frame 6
play();
Symbol 114 MovieClip Frame 8
gotoAndStop (1);
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
play();
Symbol 115 MovieClip Frame 4
gotoAndPlay (2);
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 30
stop();
Symbol 147 MovieClip Frame 1
stop();
up_btn.onPress = function () {
gTank.storeTurn("up");
};
Symbol 148 MovieClip Frame 1
stop();
right_btn.onPress = function () {
gTank.storeTurn("right");
};
Symbol 150 MovieClip Frame 1
stop();
down_btn.onPress = function () {
gTank.storeTurn("down");
};
Symbol 151 MovieClip Frame 1
stop();
left_btn.onPress = function () {
gTank.storeTurn("left");
};
Symbol 161 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 6
stop();
Symbol 242 MovieClip Frame 8
play();
Symbol 242 MovieClip Frame 11
if (gTank.vDamage == 0) {
bonus_mc.gotoAndStop(2);
_parent._parent.fnScorePoints(5000);
}
Symbol 242 MovieClip Frame 20
stop();
next_btn.onRelease = function () {
_parent._parent.fnClearLevel();
_parent._parent.gotoAndStop("level2");
gotoAndPlay (158);
};
Symbol 242 MovieClip Frame 22
play();
Symbol 242 MovieClip Frame 25
if (gTank.vDamage == 0) {
bonus_mc.gotoAndStop(2);
_parent._parent.fnScorePoints(5000);
}
Symbol 242 MovieClip Frame 35
stop();
next_btn.onRelease = function () {
_parent._parent.fnClearLevel();
_parent._parent.gotoAndStop("level3");
gotoAndPlay (198);
};
Symbol 242 MovieClip Frame 37
play();
Symbol 242 MovieClip Frame 40
_parent._parent.fnFadeAudioOut(_parent._parent.sMusic);
if (gTank.vDamage == 0) {
bonus_mc.gotoAndStop(2);
_parent._parent.fnScorePoints(5000);
}
Symbol 242 MovieClip Frame 116
if (_root.user_id == "none") {
getURL (("/gijoe/experience/scripts/holder.cfm?action=postscores&gameID=106&score=" + _root.borderDup.score_mc.score_txt.text) + "&test=test");
stop();
} else {
loadVariablesNum (("/gijoe/experience/scripts/scores.cfm?action=postscores&gameID=106&score=" + _root.borderDup.score_mc.score_txt.text) + "&test=test", 0);
stop();
playAgain_btn.onRelease = function () {
_parent._parent.sMusic.stop();
_parent._parent.fnClearLevel();
_parent._parent.gotoAndStop("level1");
gotoAndPlay (118);
};
}
Symbol 242 MovieClip Frame 118
play();
Symbol 242 MovieClip Frame 157
_parent._parent.play();
gotoAndStop (1);
Symbol 242 MovieClip Frame 158
play();
Symbol 242 MovieClip Frame 197
_parent._parent.play();
gotoAndStop (1);
Symbol 242 MovieClip Frame 198
play();
Symbol 242 MovieClip Frame 237
_parent._parent.play();
gotoAndStop (1);
Symbol 242 MovieClip Frame 238
play();
Symbol 242 MovieClip Frame 260
_parent._parent.fnUnPauseGame();
stop();
Symbol 242 MovieClip Frame 262
play();
Symbol 242 MovieClip Frame 274
if (_root.user_id == "none") {
getURL (("/gijoe/experience/scripts/holder.cfm?action=postscores&gameID=106&score=" + _root.borderDup.score_mc.score_txt.text) + "&test=test");
stop();
} else {
loadVariablesNum (("/gijoe/experience/scripts/scores.cfm?action=postscores&gameID=106&score=" + _root.borderDup.score_mc.score_txt.text) + "&test=test", 0);
}
Symbol 242 MovieClip Frame 275
stop();
if (_root.user_id == "none") {
getURL ("");
playAgain_btn._x = 1000;
}
playAgain_btn.onRelease = function () {
_parent._parent.fnClearLevel();
_parent._parent.gotoAndStop("level1");
_parent._parent.sMusic.stop();
gotoAndPlay (118);
};
Symbol 252 MovieClip Frame 1
stop();
guns_btn.onPress = function () {
gTank.selectWeapon("guns");
};
Symbol 269 MovieClip Frame 1
play();
Symbol 269 MovieClip Frame 156
trace("meter calls " + gTank.oldWeapon);
gTank.selectWeapon(gTank.oldWeapon);
Symbol 270 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 1
stop();
rocket_btn.onPress = function () {
gTank.selectWeapon("rocket");
};
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 2
play();
Symbol 297 MovieClip Frame 20
_parent.fnRemoveAttack(this);
Symbol 300 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 2
play();
Symbol 300 MovieClip Frame 9
_parent.fnRemoveAttack(this);
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 2
play();
Symbol 306 MovieClip Frame 17
_parent.fnRemoveAttack(this);
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 12
_parent._parent.objRef.turnOK = true;
Symbol 310 MovieClip Frame 1
function fnReset() {
if (_parent.continueTurn != null) {
_parent.objRef.turn(_parent.continueTurn);
trace((_parent.objRef.vType + " continue turn ") + _parent.continueTurn);
_parent.continueTurn = null;
} else {
_parent.objRef.state = "moving";
timer_mc.gotoAndPlay("startTimer");
}
}
stop();
Symbol 310 MovieClip Frame 10
stop();
fnReset();
Symbol 310 MovieClip Frame 20
stop();
fnReset();
Symbol 310 MovieClip Frame 30
stop();
fnReset();
Symbol 310 MovieClip Frame 40
stop();
fnReset();
Symbol 310 MovieClip Frame 50
stop();
fnReset();
Symbol 310 MovieClip Frame 60
stop();
fnReset();
Symbol 310 MovieClip Frame 70
stop();
fnReset();
Symbol 310 MovieClip Frame 80
stop();
fnReset();
Symbol 314 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 2
play();
Symbol 314 MovieClip Frame 30
_parent.objRef.fire();
Symbol 314 MovieClip Frame 60
_parent.fireOK = true;
gotoAndStop (1);
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 15
_parent._parent.fnRemoveEnemy(_parent.objRef);
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 5
gotoAndStop (1);
Symbol 321 MovieClip Frame 6
_parent._parent.enemyExplosions_mc.play();
Symbol 321 MovieClip Frame 8
gotoAndStop (1);
Symbol 326 MovieClip Frame 1
function fnReset() {
if (_parent.continueTurn != null) {
_parent.objRef.turn(_parent.continueTurn);
trace((_parent.objRef.vType + " continue turn ") + _parent.continueTurn);
_parent.continueTurn = null;
} else {
_parent.objRef.state = "moving";
timer_mc.gotoAndPlay("startTimer");
}
}
stop();
Symbol 326 MovieClip Frame 10
stop();
fnReset();
Symbol 326 MovieClip Frame 20
stop();
fnReset();
Symbol 326 MovieClip Frame 30
stop();
fnReset();
Symbol 326 MovieClip Frame 40
stop();
fnReset();
Symbol 326 MovieClip Frame 50
stop();
fnReset();
Symbol 326 MovieClip Frame 60
stop();
fnReset();
Symbol 326 MovieClip Frame 70
stop();
fnReset();
Symbol 326 MovieClip Frame 80
stop();
fnReset();
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 9
_parent._parent.fnRemoveEnemy(_parent.objRef);
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 5
gotoAndStop (1);
Symbol 328 MovieClip Frame 6
_parent._parent.enemyExplosions_mc.play();
Symbol 328 MovieClip Frame 16
gotoAndStop (1);
Symbol 335 MovieClip Frame 1
function fnReset() {
if (_parent.continueTurn != null) {
_parent.objRef.turn(_parent.continueTurn);
_parent.continueTurn = null;
} else {
_parent.objRef.state = "moving";
timer_mc.gotoAndPlay("startTimer");
}
}
stop();
Symbol 335 MovieClip Frame 10
stop();
fnReset();
Symbol 335 MovieClip Frame 20
stop();
fnReset();
Symbol 335 MovieClip Frame 30
stop();
fnReset();
Symbol 335 MovieClip Frame 40
stop();
fnReset();
Symbol 335 MovieClip Frame 50
stop();
fnReset();
Symbol 335 MovieClip Frame 60
stop();
fnReset();
Symbol 335 MovieClip Frame 70
stop();
fnReset();
Symbol 335 MovieClip Frame 80
stop();
fnReset();
Symbol 341 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 9
_parent._parent.fnRemoveEnemy(_parent.objRef);
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 5
gotoAndStop (1);
Symbol 342 MovieClip Frame 8
gotoAndStop (1);
Symbol 349 MovieClip Frame 1
function fnReset() {
if (_parent.continueTurn != null) {
_parent.objRef.turn(_parent.continueTurn);
trace((_parent.objRef.vType + " continue turn ") + _parent.continueTurn);
_parent.continueTurn = null;
} else {
_parent.objRef.state = "moving";
timer_mc.gotoAndPlay("startTimer");
}
}
stop();
Symbol 349 MovieClip Frame 10
stop();
fnReset();
Symbol 349 MovieClip Frame 20
stop();
fnReset();
Symbol 349 MovieClip Frame 30
stop();
fnReset();
Symbol 349 MovieClip Frame 40
stop();
fnReset();
Symbol 349 MovieClip Frame 50
stop();
fnReset();
Symbol 349 MovieClip Frame 60
stop();
fnReset();
Symbol 349 MovieClip Frame 70
stop();
fnReset();
Symbol 349 MovieClip Frame 80
stop();
fnReset();
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 2
play();
Symbol 350 MovieClip Frame 30
_parent.fireOK = true;
gotoAndStop (1);
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 2
_parent._parent.enemyEplosions_mc.play();
Symbol 351 MovieClip Frame 9
_parent._parent.fnRemoveEnemy(_parent.objRef);
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
gotoAndStop (1);
Symbol 366 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 2
play();
Symbol 366 MovieClip Frame 5
stop();
Symbol 376 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 5
stop();
Symbol 382 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 5
stop();
Symbol 387 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 5
stop();
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 5
stop();
Symbol 390 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 5
stop();
Symbol 392 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 5
stop();
Symbol 437 MovieClip Frame 1
stop();
help_btn.onRelease = function () {
if (gGameStarted == true) {
_parent._parent.fnPauseGame();
}
gotoAndStop (2);
};
Symbol 437 MovieClip Frame 2
stop();
mask_btn.enabled = false;
start_btn.onRelease = function () {
if (gGameStarted == true) {
_parent._parent.fnUnPauseGame();
} else {
_parent._parent.gotoAndStop("level1");
_parent.messages_mc.gotoAndPlay("level start 1");
_parent._parent.fnFadeHelpOut(_parent._parent.helpMusic);
}
clearInterval(_parent._parent.fader);
gotoAndStop (1);
};
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 376 MovieClip "hit1_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 382 MovieClip "hit2_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 387 MovieClip "hit3_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 389 MovieClip "hit5_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 390 MovieClip "hit4_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 392 MovieClip "hit6_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 376 MovieClip "hit1_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 382 MovieClip "hit2_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 387 MovieClip "hit3_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 389 MovieClip "hit5_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 390 MovieClip "hit4_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 392 MovieClip "hit6_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 376 MovieClip "hit1_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 382 MovieClip "hit2_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 387 MovieClip "hit3_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 389 MovieClip "hit5_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 390 MovieClip "hit4_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 392 MovieClip "hit6_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 376 MovieClip "hit1_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 382 MovieClip "hit2_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 387 MovieClip "hit3_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 389 MovieClip "hit5_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 390 MovieClip "hit4_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 392 MovieClip "hit6_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 376 MovieClip "hit1_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 382 MovieClip "hit2_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 387 MovieClip "hit3_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 389 MovieClip "hit5_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 390 MovieClip "hit4_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 392 MovieClip "hit6_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 376 MovieClip "hit1_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 382 MovieClip "hit2_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 387 MovieClip "hit3_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 389 MovieClip "hit5_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 390 MovieClip "hit4_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 392 MovieClip "hit6_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 376 MovieClip "hit1_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 382 MovieClip "hit2_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 387 MovieClip "hit3_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 389 MovieClip "hit5_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 390 MovieClip "hit4_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 392 MovieClip "hit6_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 376 MovieClip "hit1_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 382 MovieClip "hit2_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 387 MovieClip "hit3_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 392 MovieClip "hit6_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 389 MovieClip "hit5_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 390 MovieClip "hit4_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 376 MovieClip "hit1_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 382 MovieClip "hit2_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 387 MovieClip "hit3_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 392 MovieClip "hit6_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 389 MovieClip "hit5_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 390 MovieClip "hit4_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 376 MovieClip "hit1_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 382 MovieClip "hit2_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 387 MovieClip "hit3_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 389 MovieClip "hit5_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 390 MovieClip "hit4_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 392 MovieClip "hit6_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 437 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Symbol 440 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 2
play();
Symbol 440 MovieClip Frame 16
stop();
Symbol 444 Button
on (release) {
fnViewBriefing();
}
Symbol 487 Button
on (release) {
if (gHelpCalled == false) {
if (gResumeFrame == null) {
hitMeter.gotoAndStop("strike0");
gScore = Number(0);
gSetNum = Number(1);
gotoAndPlay (1);
} else {
gotoAndStop (1);
}
} else if (gHelpCalled == true) {
if (gInTransition == true) {
gotoAndPlay(Number(gPickUpFrame));
} else {
gotoAndStop("resumeset" + gSetNum);
}
}
}
Symbol 559 Button
on (release) {
if (gHelpCalled == false) {
if (gResumeFrame == null) {
hitMeter.gotoAndStop("strike0");
gScore = Number(0);
gSetNum = Number(1);
gotoAndPlay (1);
} else {
gotoAndStop (1);
}
} else if (gHelpCalled == true) {
if (gInTransition == true) {
gotoAndPlay(Number(gPickUpFrame));
} else {
gotoAndStop("resumeset" + gSetNum);
}
}
}
Symbol 560 MovieClip Frame 1
stop();
briefing_btn.onRelease = function () {
if (gGameStarted == true) {
_parent._parent.fnPauseGame();
}
gotoAndPlay (2);
};
Symbol 560 MovieClip Frame 2
play();
mask_btn.enabled = false;
goJoe_btn.onRelease = function () {
if (gGameStarted == true) {
_parent._parent.fnUnPauseGame();
} else {
_parent.help_mc.gotoAndStop(2);
_parent._parent.fnFadeAudioOut(_parent._parent.introMusic);
_parent._parent.helpMusic = new Sound(_parent._parent.HelpMusic_mc);
_parent._parent.helpMusic.attachSound("HelpMusic");
_parent._parent.helpMusic.setVolume(50);
_parent._parent.helpMusic.start(0, 999);
}
gotoAndStop (1);
};
Symbol 560 MovieClip Frame 8
next_btn.onRelease = function () {
gotoAndPlay (31);
};
Symbol 560 MovieClip Frame 30
stop();
Symbol 560 MovieClip Frame 31
play();
Symbol 560 MovieClip Frame 58
next_btn.onRelease = function () {
gotoAndPlay (71);
};
Symbol 560 MovieClip Frame 70
stop();
Symbol 560 MovieClip Frame 71
play();
Symbol 560 MovieClip Frame 98
next_btn.onRelease = function () {
gotoAndPlay (115);
};
Symbol 560 MovieClip Frame 114
stop();
Symbol 560 MovieClip Frame 115
play();
Symbol 560 MovieClip Frame 150
next_btn.onRelease = function () {
gotoAndPlay (164);
};
Symbol 560 MovieClip Frame 163
stop();
Symbol 560 MovieClip Frame 164
play();
Symbol 560 MovieClip Frame 169
_parent._parent.fnFadeAudioOut(_parent._parent.introMusic);
Symbol 560 MovieClip Frame 174
next_btn.onRelease = function () {
if (gGameStarted == true) {
_parent._parent.fnUnPauseGame();
} else {
_parent.help_mc.gotoAndStop(2);
_parent._parent.helpMusic = new Sound(_parent._parent.HelpMusic_mc);
_parent._parent.helpMusic.attachSound("HelpMusic");
_parent._parent.helpMusic.setVolume(50);
_parent._parent.helpMusic.start(0, 999);
}
gotoAndStop (1);
};
Symbol 560 MovieClip Frame 201
stop();
Symbol 560 MovieClip Frame 202
play();
Symbol 560 MovieClip Frame 211
stop();
Symbol 561 MovieClip Frame 1
stop();
stop_btn.onPress = function () {
gTank.state = "stuck";
};
Instance of Symbol 440 MovieClip "loadMeter_mc" in Symbol 561 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(15);
}
Symbol 580 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 2
play();
Symbol 580 MovieClip Frame 37
_parent.fnRemoveAttack(this);
Symbol 582 MovieClip Frame 1
stop();
Symbol 582 MovieClip Frame 2
play();
Symbol 582 MovieClip Frame 9
_parent.fnRemoveAttack(this);
Symbol 587 MovieClip Frame 1
stop();
Symbol 587 MovieClip Frame 2
stop();
hitClips = 12;
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 587 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 587 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 587 MovieClip Frame 2
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 587 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 587 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 587 MovieClip Frame 2
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 376 MovieClip "hit1_mc" in Symbol 587 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 382 MovieClip "hit2_mc" in Symbol 587 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 387 MovieClip "hit3_mc" in Symbol 587 MovieClip Frame 2
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 389 MovieClip "hit5_mc" in Symbol 587 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 390 MovieClip "hit4_mc" in Symbol 587 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 392 MovieClip "hit6_mc" in Symbol 587 MovieClip Frame 2
onClipEvent (load) {
this.vType = "right";
}
Symbol 587 MovieClip Frame 4
stop();
hitClips = 12;
Symbol 587 MovieClip Frame 6
stop();
hitClips = 12;
Symbol 587 MovieClip Frame 8
stop();
hitClips = 12;
Symbol 587 MovieClip Frame 10
stop();
hitClips = 12;
Symbol 587 MovieClip Frame 12
stop();
hitClips = 8;
Symbol 587 MovieClip Frame 14
stop();
hitClips = 0;
Symbol 587 MovieClip Frame 16
stop();
hitClips = 5;
Instance of Symbol 376 MovieClip "hit1_mc" in Symbol 587 MovieClip Frame 16
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 382 MovieClip "hit2_mc" in Symbol 587 MovieClip Frame 16
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 387 MovieClip "hit3_mc" in Symbol 587 MovieClip Frame 16
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 392 MovieClip "hit6_mc" in Symbol 587 MovieClip Frame 16
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 389 MovieClip "hit5_mc" in Symbol 587 MovieClip Frame 16
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 390 MovieClip "hit4_mc" in Symbol 587 MovieClip Frame 16
onClipEvent (load) {
this.vType = "right";
}
Symbol 587 MovieClip Frame 18
stop();
hitClips = 12;
Symbol 587 MovieClip Frame 20
stop();
hitClips = 12;
Instance of Symbol 392 MovieClip "hit1_mc" in Symbol 587 MovieClip Frame 20
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 392 MovieClip "hit10_mc" in Symbol 587 MovieClip Frame 20
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 392 MovieClip "hit12_mc" in Symbol 587 MovieClip Frame 20
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 392 MovieClip "hit9_mc" in Symbol 587 MovieClip Frame 20
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 392 MovieClip "hit8_mc" in Symbol 587 MovieClip Frame 20
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 392 MovieClip "hit3_mc" in Symbol 587 MovieClip Frame 20
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 392 MovieClip "hit4_mc" in Symbol 587 MovieClip Frame 20
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 392 MovieClip "hit7_mc" in Symbol 587 MovieClip Frame 20
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 382 MovieClip "hit2_mc" in Symbol 587 MovieClip Frame 20
onClipEvent (load) {
this.vType = "top";
}
Symbol 587 MovieClip Frame 22
stop();
hitClips = 12;
Instance of Symbol 366 MovieClip "hit10_mc" in Symbol 587 MovieClip Frame 22
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit11_mc" in Symbol 587 MovieClip Frame 22
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit12_mc" in Symbol 587 MovieClip Frame 22
onClipEvent (load) {
this.vType = "left";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 587 MovieClip Frame 22
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 587 MovieClip Frame 22
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 366 MovieClip "hit9_mc" in Symbol 587 MovieClip Frame 22
onClipEvent (load) {
this.vType = "top";
}
Instance of Symbol 376 MovieClip "hit1_mc" in Symbol 587 MovieClip Frame 22
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 387 MovieClip "hit3_mc" in Symbol 587 MovieClip Frame 22
onClipEvent (load) {
this.vType = "bottom";
}
Instance of Symbol 389 MovieClip "hit5_mc" in Symbol 587 MovieClip Frame 22
onClipEvent (load) {
this.vType = "right";
}
Instance of Symbol 390 MovieClip "hit4_mc" in Symbol 587 MovieClip Frame 22
onClipEvent (load) {
this.vType = "right";
}
Symbol 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 3
stop();
Symbol 602 MovieClip Frame 5
stop();
Symbol 602 MovieClip Frame 7
stop();
Symbol 602 MovieClip Frame 9
stop();
Symbol 602 MovieClip Frame 11
stop();
Symbol 602 MovieClip Frame 13
gotoAndStop (1);
Symbol 607 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 3
stop();
Symbol 607 MovieClip Frame 5
stop();
Symbol 607 MovieClip Frame 7
stop();
Symbol 607 MovieClip Frame 9
gotoAndStop (1);
Symbol 608 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 1
function fnReset() {
if (_parent.continueTurn != null) {
_parent.objRef.turn(_parent.continueTurn);
trace((_parent.objRef.vType + " continue turn ") + _parent.continueTurn);
_parent.continueTurn = null;
} else {
_parent.objRef.state = "moving";
timer_mc.gotoAndPlay("startTimer");
}
}
stop();
Symbol 610 MovieClip Frame 10
stop();
fnReset();
Symbol 610 MovieClip Frame 20
stop();
fnReset();
Symbol 610 MovieClip Frame 30
stop();
fnReset();
Symbol 610 MovieClip Frame 40
stop();
fnReset();
Symbol 610 MovieClip Frame 50
stop();
fnReset();
Symbol 610 MovieClip Frame 60
stop();
fnReset();
Symbol 610 MovieClip Frame 70
stop();
fnReset();
Symbol 610 MovieClip Frame 80
stop();
fnReset();
Symbol 617 MovieClip Frame 1
function fnReset() {
if (_parent.continueTurn != null) {
_parent.objRef.turn(_parent.continueTurn);
trace((_parent.objRef.vType + " continue turn ") + _parent.continueTurn);
_parent.continueTurn = null;
} else {
_parent.objRef.state = "moving";
timer_mc.gotoAndPlay("startTimer");
}
}
stop();
Symbol 617 MovieClip Frame 10
stop();
fnReset();
Symbol 617 MovieClip Frame 20
stop();
fnReset();
Symbol 617 MovieClip Frame 30
stop();
fnReset();
Symbol 617 MovieClip Frame 40
stop();
fnReset();
Symbol 617 MovieClip Frame 50
stop();
fnReset();
Symbol 617 MovieClip Frame 60
stop();
fnReset();
Symbol 617 MovieClip Frame 70
stop();
fnReset();
Symbol 617 MovieClip Frame 80
stop();
fnReset();
Symbol 620 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 2
play();
Symbol 620 MovieClip Frame 5
stop();