Frame 1
_global.gameMain = this;
gGameFrame = 27;
gRestarted = false;
play();
function fnSetConstants() {
LAUNCHER_ROTATION_FLOOR = -89;
LAUNCHER_ROTATION_CEIL = 0;
GRAVITY_ACCEL = 9.8;
ELEVATOR_SPEED = 3;
ELEVATOR_MIDDLE_X = markerElevMid._x;
DRILL_BEGIN_X = markerDrillBegin._x;
DRILL_END_Y = markerDrillEnd._y;
ENEMY_LIMIT = 12;
TOTAL_IN_CLIP = 6;
STOLEN_CUBE_MAX = 20;
POINTS_PER_CUBE = 5;
POINTS_PER_HIT = 5;
HILL_HIT_MAX = 3;
PASS_POINT_1 = Number(1);
PASS_POINT_2 = 4;
PASS_POINT_3 = 9;
fnInitializeVars();
}
function fnInitializeVars() {
gGameEnded = false;
gShotsLeft = TOTAL_IN_CLIP;
gCopyLevel = 1;
gElevatorStatus = "readyleftdown";
gTunnelDrilled = false;
gGuyInMiddle = false;
gStolenCubes = Number(0);
gEnemyScore = gStolenCubes * POINTS_PER_CUBE;
gMyScore = Number(0);
gHillHitCount = Number(0);
gGamePaused = false;
var gInitVelocity;
var gInitAngle;
var gUserDeterminedVelocity;
activeEnemies_arr = new Array();
surfaceDs_arr = new Array();
tunnelDs_arr = new Array();
}
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (Math.round(Number(Number(_global.gameMain.getBytesLoaded() / _global.gameMain.getBytesTotal()) * 10)) == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(Number(Math.round(Number(Number(_global.gameMain.getBytesLoaded() / _global.gameMain.getBytesTotal()) * 10)) + Number(1)));
}
}
Frame 2
play();
Frame 3
if (_framesloaded >= gGameFrame) {
gotoAndStop (4);
} else {
gotoAndPlay (2);
}
Frame 4
stop();
Frame 6
fnRestartGame();
Frame 9
maskButton.useHandCursor = false;
fnSetConstants();
stop();
function fnSetMoreVars() {
ELEVATOR_TOP = rightElevator._y;
ELEVATOR_BOTTOM = leftElevator._y;
gSurfaceLevelY = drillOriginal._y;
gTunnelLevelY = markerDrillBegin._y;
leftStopPointSurface = markerStopLeftSurface._x;
leftStopPointTunnel = markerStopLeftTunnel._x;
rightStopPointSurface = drillOriginal._x;
rightStopPointTunnel = markerStopRightTunnel._x;
fnStartGame();
}
function fnStartGame() {
LAUNCHER_ORIGIN_X = launcher._x;
LAUNCHER_ORIGIN_Y = launcher._y;
myLauncherObject = launcher.getBounds();
LAUNCHER_BARREL_LENGTH = Number(Math.abs(Number(Number(myLauncherObject.xMax) - Number(launcher._x))) + Number(missileOrig._width)) - Number(launcher.redline._width * 1.5);
delete myLauncherObject;
myOutlineObject = interfaceOutlines.getBounds();
gInterfaceFloor = Number(Number(interfaceOutlines._y) + Number(myOutlineObject.yMax));
delete myOutlineObject;
enemyLauncher.gotoAndPlay("launch1");
drillDMover.gotoAndPlay("check");
miningOp.gotoAndPlay("loop");
gInitVelocity = 60;
powerMeter.gotoAndStop("power" + gInitVelocity);
powerMeter.arrowButtonClip._x = eval (("powerMeter.marker" + gInitVelocity) + "._x");
duplicateMovieClip ("bordermask", "mask", 1000000);
setProperty("bordermask", _visible , 0);
duplicateMovieClip ("overlayOrig", "overlay", 999999);
setProperty("overlayOrig", _visible , 0);
}
Instance of Symbol 133 MovieClip "leftElevator" in Frame 9
onClipEvent (load) {
var vNextStatus;
leftUpPassenger = null;
leftDownPassenger = null;
rightUpPassenger = null;
rightDownPassenger = null;
}
onClipEvent (enterFrame) {
if (gameMain.gGamePaused == false) {
if (_global.gameMain.gElevatorStatus == "movingleftup") {
if ((this._y - Number(_global.gameMain.ELEVATOR_SPEED)) < _global.gameMain.ELEVATOR_TOP) {
setProperty(this, _y , _global.gameMain.ELEVATOR_TOP);
setProperty(_global.gameMain.rightElevator, _y , _global.gameMain.ELEVATOR_BOTTOM);
if (leftUpPassenger != null) {
if (eval (("_global.gameMain." + leftUpPassenger) + ".vBlownUp") == false) {
eval ("_global.gameMain." + leftUpPassenger).gotoAndPlay("getoffright");
} else {
eval ("_global.gameMain." + leftUpPassenger).gotoAndPlay("blowup");
}
}
if (rightDownPassenger != null) {
if (eval (("_global.gameMain." + rightDownPassenger) + ".vBlownUp") == false) {
eval ("_global.gameMain." + rightDownPassenger).gotoAndPlay("getoffleft");
} else {
eval ("_global.gameMain." + rightDownPassenger).gotoAndPlay("blowup");
}
}
vNextStatus = "readyleftup";
_global.gameMain.gElevatorStatus = "stalled";
} else {
setProperty(this, _y , Number(this._y - Number(_global.gameMain.ELEVATOR_SPEED)));
setProperty(_global.gameMain.rightElevator, _y , Number(Number(_global.gameMain.rightElevator._y) + Number(_global.gameMain.ELEVATOR_SPEED)));
if (leftUpPassenger != null) {
setProperty("_global.gameMain." + leftUpPassenger, _y , Number(Number(eval (("_global.gameMain." + leftUpPassenger) + "._y")) - Number(_global.gameMain.ELEVATOR_SPEED)));
}
if (rightDownPassenger != null) {
setProperty("_global.gameMain." + rightDownPassenger, _y , Number(Number(eval (("_global.gameMain." + rightDownPassenger) + "._y")) + Number(_global.gameMain.ELEVATOR_SPEED)));
}
}
} else if (_global.gameMain.gElevatorStatus == "movingleftdown") {
if (Number(Number(this._y) + Number(_global.gameMain.ELEVATOR_SPEED)) > _global.gameMain.ELEVATOR_BOTTOM) {
setProperty(this, _y , _global.gameMain.ELEVATOR_BOTTOM);
setProperty(_global.gameMain.rightElevator, _y , _global.gameMain.ELEVATOR_TOP);
if (leftDownPassenger != null) {
if (eval (("_global.gameMain." + leftDownPassenger) + ".vBlownUp") == false) {
eval ("_global.gameMain." + leftDownPassenger).gotoAndPlay("getoffleft");
} else {
eval ("_global.gameMain." + leftDownPassenger).gotoAndPlay("blowup");
}
}
if (rightUpPassenger != null) {
if (eval (("_global.gameMain." + rightUpPassenger) + ".vBlownUp") == false) {
eval ("_global.gameMain." + rightUpPassenger).gotoAndPlay("getoffright");
} else {
eval ("_global.gameMain." + rightUpPassenger).gotoAndPlay("blowup");
}
}
vNextStatus = "readyleftdown";
_global.gameMain.gElevatorStatus = "stalled";
} else {
setProperty(this, _y , Number(Number(this._y) + Number(_global.gameMain.ELEVATOR_SPEED)));
setProperty(_global.gameMain.rightElevator, _y , Number(Number(_global.gameMain.rightElevator._y) - Number(_global.gameMain.ELEVATOR_SPEED)));
if (leftDownPassenger != null) {
setProperty("_global.gameMain." + leftDownPassenger, _y , Number(Number(eval (("_global.gameMain." + leftDownPassenger) + "._y")) + Number(_global.gameMain.ELEVATOR_SPEED)));
}
if (rightUpPassenger != null) {
setProperty("_global.gameMain." + rightUpPassenger, _y , Number(Number(eval (("_global.gameMain." + rightUpPassenger) + "._y")) - Number(_global.gameMain.ELEVATOR_SPEED)));
}
}
} else if (_global.gameMain.gElevatorStatus == "stalled") {
if (vNextStatus == "readyleftdown") {
if ((rightUpPassenger == null) && (leftDownPassenger == null)) {
_global.gameMain.gElevatorStatus = vNextStatus;
}
} else if (vNextStatus == "readyleftup") {
if ((rightDownPassenger == null) && (leftUpPassenger == null)) {
_global.gameMain.gElevatorStatus = vNextStatus;
}
}
}
}
}
Instance of Symbol 222 MovieClip "infantryOriginal" in Frame 9
onClipEvent (load) {
vBlownUp = false;
}
Instance of Symbol 234 MovieClip "drillOriginal" in Frame 9
onClipEvent (load) {
vAction = "still";
vBlownUp = false;
}
Instance of Symbol 236 MovieClip "airOriginal" in Frame 9
onClipEvent (load) {
vBlownUp = false;
}
Instance of Symbol 258 MovieClip "hoverOriginal" in Frame 9
onClipEvent (load) {
vBlownUp = false;
}
Instance of Symbol 358 MovieClip in Frame 9
onClipEvent (load) {
this.bigButton.useHandCursor = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(gameMain._xmouse, gameMain._ymouse, true) == true) && (gameMain.gGameEnded == false)) {
gameMain.fnUpdateLauncher();
}
}
Instance of Symbol 371 MovieClip "enemyLauncher" in Frame 9
onClipEvent (load) {
vCopyLevel = 30000;
}
Frame 13
fnSetMoreVars();
stop();
function fnFireMissile() {
if (launcherHelp._visible == 1) {
setProperty("launcherHelp", _visible , 0);
}
i = TOTAL_IN_CLIP;
while (i > 0) {
if (eval (("charge" + i) + ".vCharged") == true) {
Set(("charge" + i) + ".vCharged", false);
eval ("charge" + i).gotoAndPlay("recharge");
gInitAngle = Math.abs(launcher._rotation);
var vXVelocityComponent;
vXVelocityComponent = gInitVelocity * Math.cos(Number((Math.PI/180) * gInitAngle));
var vYVelocityComponent;
vYVelocityComponent = gInitVelocity * Math.sin(Number((Math.PI/180) * gInitAngle));
var vHalfFlightTime;
vHalfFlightTime = vYVelocityComponent / GRAVITY_ACCEL;
var vTotalFlightTime;
vTotalFlightTime = vHalfFlightTime * 2;
var vYDisplacement;
vYDisplacement = Number(vYVelocityComponent * vHalfFlightTime) + Number(Number(Number(0.5) * Number(-GRAVITY_ACCEL)) * Number(vHalfFlightTime * vHalfFlightTime));
var vTrajectoryRange;
vTrajectoryRange = vXVelocityComponent * vTotalFlightTime;
duplicateMovieClip ("missileOrig", "missile" + gCopyLevel, gCopyLevel);
var vThirdAngle;
vThirdAngle = 90 - Number(gInitAngle);
var vSineProportion;
vSineProportion = Math.sin(Number((Math.PI/2))) / LAUNCHER_BARREL_LENGTH;
var vHorizDistance;
vHorizDistance = Math.sin(Number((Math.PI/180) * vThirdAngle)) / vSineProportion;
var vVertDistance;
vVertDistance = Math.sin(Number((Math.PI/180) * gInitAngle)) / vSineProportion;
Set(("missile" + gCopyLevel) + ".vBeginX", Number(Number(LAUNCHER_ORIGIN_X) + Number(vHorizDistance)));
Set(("missile" + gCopyLevel) + ".vBeginY", Number(Number(LAUNCHER_ORIGIN_Y) - Number(vVertDistance)));
setProperty("missile" + gCopyLevel, _x , eval (("missile" + gCopyLevel) + ".vBeginX"));
setProperty("missile" + gCopyLevel, _y , eval (("missile" + gCopyLevel) + ".vBeginY"));
setProperty("missile" + gCopyLevel, _rotation , -gInitAngle);
Set(("missile" + gCopyLevel) + ".vLastX", eval (("missile" + gCopyLevel) + ".vBeginX"));
Set(("missile" + gCopyLevel) + ".vLastY", eval (("missile" + gCopyLevel) + ".vBeginY"));
if (gInitVelocity >= 95) {
Set(("missile" + gCopyLevel) + ".vElapsedTime", 0.2);
} else if ((gInitVelocity >= 80) && (gInitVelocity <= 90)) {
Set(("missile" + gCopyLevel) + ".vElapsedTime", 0.24);
} else if ((gInitVelocity >= 60) && (gInitVelocity <= 75)) {
Set(("missile" + gCopyLevel) + ".vElapsedTime", 0.29);
} else if ((gInitVelocity >= 50) && (gInitVelocity <= 55)) {
Set(("missile" + gCopyLevel) + ".vElapsedTime", 0.38);
} else if ((gInitVelocity >= 35) && (gInitVelocity <= 45)) {
Set(("missile" + gCopyLevel) + ".vElapsedTime", 0.52);
} else if ((gInitVelocity >= 25) && (gInitVelocity <= 30)) {
Set(("missile" + gCopyLevel) + ".vElapsedTime", 0.74);
} else if (gInitVelocity == 20) {
Set(("missile" + gCopyLevel) + ".vElapsedTime", 1.2);
}
Set(("missile" + gCopyLevel) + ".vOrigVelocity", gInitVelocity);
Set(("missile" + gCopyLevel) + ".vTimeMax", vTotalFlightTime);
Set(("missile" + gCopyLevel) + ".vXVelocity", vXVelocityComponent);
Set(("missile" + gCopyLevel) + ".vYVelocityComp", vYVelocityComponent);
eval ("missile" + gCopyLevel).gotoAndPlay("flying");
gCopyLevel++;
launcher.burst.gotoAndPlay("go");
i = Number(0);
}
i--;
}
}
function fnUpdateLauncher() {
var vRotationVal;
vRotationVal = -(Number(Math.atan(Number(Math.abs(Number(LAUNCHER_ORIGIN_Y - Number(_ymouse)))) / Number(Math.abs(Number(Number(_xmouse) - Number(LAUNCHER_ORIGIN_X)))))) / Number((Math.PI/180)));
if (vRotationVal != lastRotationalVal) {
s = new Sound(CannonTic);
s.attachSound("LauncherTic");
s.setVolume(20);
s.start();
}
lastRotationalVal = vRotationVal;
if (vRotationVal < LAUNCHER_ROTATION_FLOOR) {
vRotationVal = LAUNCHER_ROTATION_FLOOR;
} else if (_ymouse > LAUNCHER_ORIGIN_Y) {
vRotationVal = LAUNCHER_ROTATION_CEIL;
}
if (gGamePaused == false) {
launcher._rotation = vRotationVal;
} else if (gGamePaused == true) {
launcher._rotation = 0;
}
}
function fnEnemyGetsCube() {
gStolenCubes++;
gEnemyScore = gStolenCubes * POINTS_PER_CUBE;
if (gStolenCubes >= STOLEN_CUBE_MAX) {
fnStopGame();
}
}
function fnUpdateMyScore() {
gMyScore = Number(Number(gMyScore) + Number(POINTS_PER_HIT));
}
function fnCheckHillHit(missileX) {
if ((missileX > eval (("markerHit" + String(Number(Number(gHillHitCount) + Number(1)))) + "Left._x")) && (missileX < eval (("markerHit" + String(Number(Number(gHillHitCount) + Number(1)))) + "Right._x"))) {
if (gHillHitCount < Number(Number(HILL_HIT_MAX) + Number(1))) {
gHillHitCount++;
overlay.gotoAndPlay("hit" + gHillHitCount);
interfaceOutlines.gotoAndStop("hit" + gHillHitCount);
}
}
}
function fnStopGame(energonhit) {
musicClip.gotoAndPlay("musicstop");
gGameEnded = true;
enemyLauncher.gotoAndStop("base");
i = 0;
while (i < activeEnemies_arr.length) {
removeMovieClip(activeEnemies_arr[i]);
i++;
}
removeMovieClip(gDriller);
setProperty("overlayOrig", _visible , 1);
delete activeEnemies_arr;
delete surfaceDs_arr;
delete tunnelDs_arr;
if (energonhit == true) {
overlay.boomEnding.gotoAndPlay("go");
overlay.message1._visible = 0;
overlay.message2._visible = 0;
} else {
removeMovieClip("overlay");
gotoAndPlay (18);
}
}
function fnRestartGame() {
gRestarted = true;
setProperty("rightElevator", _y , ELEVATOR_TOP);
setProperty("leftElevator", _y , ELEVATOR_BOTTOM);
fnInitializeVars();
gotoAndStop (13);
}
function fnGetHelp() {
gGamePaused = true;
activeMissiles_arr = new Array();
fnUpdateLauncher();
drillDMover.gotoAndStop("base");
enemyLauncher.gotoAndStop("base");
musicClip.gotoAndPlay("musicstop");
i = 0;
while (i < activeEnemies_arr.length) {
Set(("v" + i) + "ResumeFrame", eval (activeEnemies_arr[i] + "._currentframe"));
eval (activeEnemies_arr[i]).stop();
i++;
}
if (gDriller != undefined) {
vDrillerResumeFrame = eval (gDriller + "._currentframe");
eval (gDriller).stop();
}
i = 1;
while (i <= TOTAL_IN_CLIP) {
if (eval (("charge" + i) + ".vCharged") == false) {
Set(("vCharge" + i) + "ResumeFrame", eval (("charge" + i) + "._currentframe"));
eval ("charge" + i).stop();
}
i++;
}
overlay.message1._visible = 0;
overlay.message2._visible = 0;
overlay.helpClip.gotoAndStop("show");
}
function fnCloseHelp() {
gGamePaused = false;
drillDMover.gotoAndPlay("check");
i = 1;
while (i <= TOTAL_IN_CLIP) {
if (eval (("charge" + i) + ".vCharged") == false) {
eval ("charge" + i).gotoAndPlay(Number(eval (("vCharge" + i) + "ResumeFrame")));
}
i++;
}
if (Number(gMyScore / POINTS_PER_HIT) < PASS_POINT_1) {
enemyLauncher.gotoAndPlay("launch1");
} else if ((Number(gMyScore / POINTS_PER_HIT) >= PASS_POINT_1) && (Number(gMyScore / POINTS_PER_HIT) < PASS_POINT_2)) {
enemyLauncher.gotoAndPlay("launch2");
} else if ((Number(gMyScore / POINTS_PER_HIT) >= PASS_POINT_2) && (Number(gMyScore / POINTS_PER_HIT) < PASS_POINT_3)) {
enemyLauncher.gotoAndPlay("launch3");
} else {
enemyLauncher.gotoAndPlay("launch4");
}
i = 0;
while (i < activeMissiles_arr.length) {
eval (activeMissiles_arr[i]).gotoAndPlay("flying");
i++;
}
delete activeMissiles_arr;
i = 0;
while (i < activeEnemies_arr.length) {
eval (activeEnemies_arr[i]).gotoAndPlay(Number(eval (("v" + i) + "ResumeFrame")));
i++;
}
if (gDriller != undefined) {
eval (gDriller).gotoAndPlay(Number(vDrillerResumeFrame));
}
musicClip.gotoAndPlay("musicplay");
overlay.message1._visible = 1;
overlay.message2._visible = 1;
overlay.helpClip.gotoAndStop("hide");
}
var lastRotationalVal;
Instance of Symbol 393 MovieClip "launcherHelp" in Frame 13
onClipEvent (load) {
if (gameMain.gRestarted == true) {
setProperty(this, _visible , 0);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(gameMain._xmouse, gameMain._ymouse, true) == true) {
setProperty(this, _visible , 0);
}
}
Instance of Symbol 422 MovieClip "missileOrig" in Frame 13
onClipEvent (enterFrame) {
if ((this._currentframe > 1) && (this._currentframe < 6)) {
i = 0;
while (i < _global.gameMain.activeEnemies_arr.length) {
if (eval ("_global.gameMain." + _global.gameMain.activeEnemies_arr[i]).hitTest(this) == true) {
if (eval (("_global.gameMain." + _global.gameMain.activeEnemies_arr[i]) + ".vBlownUp") == false) {
Set(("_global.gameMain." + _global.gameMain.activeEnemies_arr[i]) + ".vBlownUp", true);
if (String(_global.gameMain.activeEnemies_arr[i]).substr(0, 5) == "drill") {
_global.gameMain.fnUpdateMyScore();
eval ("_global.gameMain." + _global.gameMain.activeEnemies_arr[i]).gotoAndPlay("blowup");
if ((this._currentframe < 6) && (vExploded == false)) {
if (_global.gameMain.leftElevator.leftUpPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.leftUpPassenger = null;
} else if (_global.gameMain.leftElevator.rightUpPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.rightUpPassenger = null;
} else if (_global.gameMain.leftElevator.leftDownPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.leftDownPassenger = null;
} else if (_global.gameMain.leftElevator.rightDownPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.rightDownPassenger = null;
}
vExploded = true;
this.gotoAndPlay("explode");
}
} else if (String(_global.gameMain.activeEnemies_arr[i]).substr(0, 8) == "infantry") {
_global.gameMain.fnUpdateMyScore();
var vName;
var vDepth;
vName = _global.gameMain.activeEnemies_arr[i];
vDepth = eval ("_global.gameMain." + _global.gameMain.activeEnemies_arr[i]).getDepth();
removeMovieClip(eval ("_global.gameMain." + _global.gameMain.activeEnemies_arr[i]));
duplicateMovieClip ("_global.gameMain.infantryExplodeOriginal", vName, vDepth);
setProperty("_global.gameMain." + vName, _x , this._x);
setProperty("_global.gameMain." + vName, _y , this._y);
eval ("_global.gameMain." + vName).gotoAndPlay("explode");
if ((this._currentframe < 6) && (vExploded == false)) {
if (_global.gameMain.leftElevator.leftUpPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.leftUpPassenger = null;
} else if (_global.gameMain.leftElevator.rightUpPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.rightUpPassenger = null;
} else if (_global.gameMain.leftElevator.leftDownPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.leftDownPassenger = null;
} else if (_global.gameMain.leftElevator.rightDownPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.rightDownPassenger = null;
}
vExploded = true;
this.gotoAndPlay("explode");
}
} else if (String(_global.gameMain.activeEnemies_arr[i]).substr(0, 5) == "hover") {
_global.gameMain.fnUpdateMyScore();
var vName;
var vDepth;
vName = _global.gameMain.activeEnemies_arr[i];
vDepth = eval ("_global.gameMain." + _global.gameMain.activeEnemies_arr[i]).getDepth();
removeMovieClip(eval ("_global.gameMain." + _global.gameMain.activeEnemies_arr[i]));
duplicateMovieClip ("_global.gameMain.hoverExplodeOriginal", vName, vDepth);
setProperty("_global.gameMain." + vName, _x , this._x);
setProperty("_global.gameMain." + vName, _y , this._y);
eval ("_global.gameMain." + vName).gotoAndPlay("explode");
if ((this._currentframe < 6) && (vExploded == false)) {
if (_global.gameMain.leftElevator.leftUpPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.leftUpPassenger = null;
} else if (_global.gameMain.leftElevator.rightUpPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.rightUpPassenger = null;
} else if (_global.gameMain.leftElevator.leftDownPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.leftDownPassenger = null;
} else if (_global.gameMain.leftElevator.rightDownPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.rightDownPassenger = null;
}
vExploded = true;
this.gotoAndPlay("explode");
}
} else if (String(_global.gameMain.activeEnemies_arr[i]).substr(0, 3) == "air") {
if (Number(Number(this._y) - Number(eval (("_global.gameMain." + _global.gameMain.activeEnemies_arr[i]) + "._y"))) < 5) {
_global.gameMain.fnUpdateMyScore();
var vName;
var vDepth;
vName = _global.gameMain.activeEnemies_arr[i];
vDepth = eval ("_global.gameMain." + _global.gameMain.activeEnemies_arr[i]).getDepth();
removeMovieClip(eval ("_global.gameMain." + _global.gameMain.activeEnemies_arr[i]));
duplicateMovieClip ("_global.gameMain.airExplodeOriginal", vName, vDepth);
setProperty("_global.gameMain." + vName, _x , this._x);
eval ("_global.gameMain." + vName).gotoAndPlay("explode");
if ((this._currentframe < 6) && (vExploded == false)) {
if (_global.gameMain.leftElevator.leftUpPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.leftUpPassenger = null;
} else if (_global.gameMain.leftElevator.rightUpPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.rightUpPassenger = null;
} else if (_global.gameMain.leftElevator.leftDownPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.leftDownPassenger = null;
} else if (_global.gameMain.leftElevator.rightDownPassenger == _global.gameMain.activeEnemies[i]) {
_global.gameMain.leftElevator.rightDownPassenger = null;
}
vExploded = true;
this.gotoAndPlay("explode");
}
} else {
Set(("_global.gameMain." + _global.gameMain.activeEnemies_arr[i]) + ".vBlownUp", false);
}
}
}
}
i++;
}
}
}
onClipEvent (load) {
vExploded = false;
}
Frame 18
helpMaskButton.useHandCursor = false;
play();
Frame 56
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 2
stop();
Symbol 15 MovieClip Frame 3
stop();
Symbol 15 MovieClip Frame 4
stop();
Symbol 15 MovieClip Frame 5
stop();
Symbol 15 MovieClip Frame 6
stop();
Symbol 15 MovieClip Frame 7
stop();
Symbol 15 MovieClip Frame 8
stop();
Symbol 15 MovieClip Frame 9
stop();
Symbol 15 MovieClip Frame 10
stop();
Symbol 15 MovieClip Frame 11
stop();
Symbol 29 MovieClip Frame 2
stop();
Symbol 51 Button
on (release) {
play();
}
Symbol 103 MovieClip Frame 168
stop();
Symbol 103 MovieClip Frame 173
stop();
Symbol 103 MovieClip Frame 187
stop();
Symbol 103 MovieClip Frame 205
stop();
Symbol 103 MovieClip Frame 245
stop();
Symbol 103 MovieClip Frame 265
stop();
Symbol 103 MovieClip Frame 274
_global.gameMain.gotoAndStop("instructions");
stop();
Symbol 107 Button
on (release) {
gotoAndStop (9);
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 2
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 5
stop();
Symbol 122 MovieClip Frame 8
stop();
Symbol 122 MovieClip Frame 11
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 4
stop();
Symbol 126 MovieClip Frame 9
stop();
Symbol 126 MovieClip Frame 14
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 3
play();
Symbol 222 MovieClip Frame 176
_global.gameMain.fnEnemyGetsCube();
gameMain.CubeStolen.gotoAndPlay("play");
i = 0;
while (i < _global.gameMain.activeEnemies_arr.length) {
if (_global.gameMain.activeEnemies_arr[i] == this._name) {
_global.gameMain.activeEnemies_arr.splice(i, 1);
i = _global.gameMain.activeEnemies_arr.length;
}
i++;
}
removeMovieClip(this);
Symbol 230 MovieClip Frame 2
stop();
Symbol 230 MovieClip Frame 3
play();
Symbol 230 MovieClip Frame 16
i = 0;
while (i < _global.gameMain.activeEnemies_arr.length) {
if (_global.gameMain.activeEnemies_arr[i] == this._name) {
_global.gameMain.activeEnemies_arr.splice(i, 1);
i = _global.gameMain.activeEnemies_arr.length;
}
i++;
}
gotoAndStop (2);
Symbol 234 MovieClip Frame 1
stop();
function fnMoveLeft() {
if (gameMain.gGamePaused == false) {
if (vBlownUp == false) {
if (vCurrentYPlane == "Tunnel") {
var vSpeed;
vSpeed = speed;
if (_global.gameMain.gTunnelDrilled == "inprogress") {
if (this._x <= _global.gameMain.DRILL_BEGIN_X) {
vSpeed = speed / 2;
}
}
if (Number(Number(this._x) - Number(speed)) > _global.gameMain.leftStopPointTunnel) {
setProperty(this, _x , Number(Number(this._x) - Number(vSpeed)));
} else {
setProperty(this, _x , _global.gameMain.leftStopPointTunnel);
gotoAndPlay (40);
}
play();
}
} else if (vBlownUp == true) {
gotoAndPlay (137);
}
} else if (gameMain.gGamePaused == true) {
stop();
}
}
function fnMoveRight() {
if (gameMain.gGamePaused == false) {
if (vBlownUp == false) {
if (vCurrentYPlane == "Surface") {
if (vBlownUp == false) {
if (Number(Number(this._x) + Number(speed)) < _global.gameMain.rightStopPointSurface) {
setProperty(this, _x , Number(Number(this._x) + Number(speed)));
} else {
setProperty(this, _x , _global.gameMain.rightStopPointSurface);
_global.gameMain.fnEnemyGetsCube();
gotoAndPlay (138);
}
} else if (vBlownUp == true) {
gotoAndPlay (138);
}
play();
}
} else if (vBlownUp == true) {
gotoAndPlay (137);
}
} else if (gameMain.gGamePaused == true) {
stop();
}
}
function fnDrill(dir) {
if (gameMain.gGamePaused == false) {
if (dir == "left") {
if (Number(this._x - Number(speed)) < _global.gameMain.leftStopPointTunnel) {
setProperty(this, _x , _global.gameMain.leftStopPointTunnel);
_global.gameMain.tunnelDrill.gotoAndStop("drillup");
gotoAndPlay (30);
} else {
setProperty(this, _x , Number(this._x - Number(speed / 2)));
setProperty(_global.gameMain.tunnelDrill.maskHoriz, _x , Number(Number(_global.gameMain.tunnelDrill.maskHoriz._x) - Number(speed / 2)));
play();
}
} else if (dir == "up") {
setProperty(this, _y , Number(this._y - Number(speed / 1.5)));
setProperty(_global.gameMain.tunnelDrill.maskVert, _y , Number(Number(_global.gameMain.tunnelDrill.maskVert._y) - Number(speed / 1.5)));
if (_global.gameMain.flapToTunnel.hitTest(this) == true) {
setProperty("ceiling", _visible , 0);
_global.gameMain.flapToTunnel.gotoAndStop("open");
setProperty(this, _y , _global.gameMain.DRILL_END_Y);
_global.gameMain.tunnelDrill.gotoAndStop("enddrill");
_global.gameMain.gTunnelDrilled = true;
_global.gameMain.activeEnemies_arr.push(this._name);
gotoAndPlay (51);
} else {
play();
}
}
} else if (gameMain.gGamePaused == true) {
stop();
}
}
function fnClimb() {
if (gameMain.gGamePaused == false) {
var vSpeed;
vSpeed = speed;
if (_global.gameMain.gTunnelDrilled == "inprogress") {
vSpeed = speed / 3;
}
setProperty(this, _y , Number(this._y - Number(vSpeed)));
if (_global.gameMain.flapToTunnel.hitTest(this) == true) {
setProperty(this, _y , _global.gameMain.DRILL_END_Y);
gotoAndPlay (51);
} else {
play();
}
} else if (gameMain.gGamePaused == true) {
stop();
}
}
function fnFallDown() {
if (gameMain.gGamePaused == false) {
if (Number(Number(this._y) + Number(_global.gameMain.GRAVITY_ACCEL)) > _global.gameMain.gTunnelLevelY) {
setProperty(this, _y , _global.gameMain.gTunnelLevelY);
vElevator = null;
vAction = "walkingright";
gotoAndPlay (127);
_global.gameMain.tunnelDs_arr.push(this._name);
} else {
setProperty(this, _y , Number(Number(this._y) + Number(_global.gameMain.GRAVITY_ACCEL)));
play();
}
} else if (gameMain.gGamePaused == true) {
stop();
}
}
Symbol 234 MovieClip Frame 3
stop();
Symbol 234 MovieClip Frame 9
fnMoveLeft();
play();
Symbol 234 MovieClip Frame 10
fnMoveLeft();
play();
Symbol 234 MovieClip Frame 11
fnMoveLeft();
play();
Symbol 234 MovieClip Frame 12
fnMoveLeft();
play();
Symbol 234 MovieClip Frame 13
fnMoveLeft();
play();
Symbol 234 MovieClip Frame 14
fnMoveLeft();
play();
Symbol 234 MovieClip Frame 15
fnMoveLeft();
play();
Symbol 234 MovieClip Frame 16
if (vCurrentYPlane == "Tunnel") {
fnMoveLeft();
}
play();
Symbol 234 MovieClip Frame 17
if (vBlownUp == false) {
gotoAndPlay (9);
} else {
gotoAndPlay (137);
}
Symbol 234 MovieClip Frame 19
fnMoveLeftToDrill();
play();
function fnMoveLeftToDrill() {
if (gameMain.gGamePaused == false) {
if (vBlownUp == false) {
if (Number(Number(this._x) - Number(speed)) < _global.gameMain.DRILL_BEGIN_X) {
setProperty(this, _x , _global.gameMain.DRILL_BEGIN_X);
_global.gameMain.tunneldrill.gotoAndStop("drillleft");
_global.gameMain.gTunnelDrilled = "inprogress";
i = 0;
while (i < _global.gameMain.activeEnemies_arr.length) {
if (_global.gameMain.activeEnemies_arr[i] == this._name) {
_global.gameMain.activeEnemies_arr.splice(i, 1);
i = _global.gameMain.activeEnemies_arr.length;
}
i++;
}
gotoAndPlay (24);
} else {
setProperty(this, _x , Number(Number(this._x) - Number(speed)));
play();
}
} else if (vBlownUp == true) {
gotoAndPlay (137);
}
} else if (gameMain.gGamePaused == true) {
stop();
}
}
Symbol 234 MovieClip Frame 20
fnMoveLeftToDrill();
play();
Symbol 234 MovieClip Frame 21
fnMoveLeftToDrill();
play();
Symbol 234 MovieClip Frame 22
fnMoveLeftToDrill();
play();
Symbol 234 MovieClip Frame 23
gotoAndPlay (19);
Symbol 234 MovieClip Frame 24
fnDrill("left");
play();
Symbol 234 MovieClip Frame 25
fnDrill("left");
play();
Symbol 234 MovieClip Frame 26
fnDrill("left");
play();
Symbol 234 MovieClip Frame 27
fnDrill("left");
play();
Symbol 234 MovieClip Frame 28
gotoAndPlay (24);
Symbol 234 MovieClip Frame 30
fnDrill("up");
play();
Symbol 234 MovieClip Frame 32
fnDrill("up");
Symbol 234 MovieClip Frame 34
fnDrill("up");
Symbol 234 MovieClip Frame 36
fnDrill("up");
Symbol 234 MovieClip Frame 38
gotoAndPlay (30);
Symbol 234 MovieClip Frame 40
fnClimb();
play();
Symbol 234 MovieClip Frame 41
fnClimb();
play();
Symbol 234 MovieClip Frame 42
fnClimb();
play();
Symbol 234 MovieClip Frame 43
fnClimb();
play();
Symbol 234 MovieClip Frame 44
fnClimb();
play();
Symbol 234 MovieClip Frame 45
fnClimb();
play();
Symbol 234 MovieClip Frame 46
fnClimb();
play();
Symbol 234 MovieClip Frame 47
fnClimb();
play();
Symbol 234 MovieClip Frame 48
gotoAndPlay (40);
Symbol 234 MovieClip Frame 51
play();
Symbol 234 MovieClip Frame 58
setProperty(this, _y , _global.gameMain.DRILL_END_Y);
gotoAndPlay (84);
Symbol 234 MovieClip Frame 61
play();
Symbol 234 MovieClip Frame 65
this._x = eval (("_global.gameMain." + vElevator) + "Elevator._x");
if (vElevator == "right") {
_global.gameMain.gElevatorStatus = "movingleftup";
} else {
_global.gameMain.gElevatorStatus = "movingleftdown";
}
_global.gameMain.surfaceDs_arr.splice(0, 1);
if (vBlownUp == false) {
stop();
} else if (vBlownUp == true) {
gotoAndPlay (137);
}
Symbol 234 MovieClip Frame 67
vCurrentYPlane = "Tunnel";
fnMoveLeft();
Symbol 234 MovieClip Frame 68
fnMoveLeft();
Symbol 234 MovieClip Frame 69
fnMoveLeft();
Symbol 234 MovieClip Frame 70
setProperty(this, _y , _global.gameMain.gTunnelLevelY);
if (vElevator == "left") {
_global.gameMain.leftElevator.leftDownPassenger = null;
} else if (vElevator == "right") {
_global.gameMain.leftElevator.rightDownPassenger = null;
}
if (vBlownUp == false) {
if (_global.gameMain.gTunnelDrilled == false) {
gameMain.gDriller = this._name;
gotoAndPlay (19);
} else {
gotoAndPlay (9);
}
} else if (vBlownUp == true) {
gotoAndPlay (137);
}
Symbol 234 MovieClip Frame 74
play();
Symbol 234 MovieClip Frame 81
setProperty(this, _x , _global.gameMain.ELEVATOR_MIDDLE_X);
vAction = "waitingleft";
if (vBlownUp == false) {
gotoAndStop (3);
} else if (vBlownUp == true) {
gotoAndPlay (137);
}
Symbol 234 MovieClip Frame 84
play();
Symbol 234 MovieClip Frame 97
fnFallDown();
play();
Symbol 234 MovieClip Frame 98
gotoAndPlay (97);
Symbol 234 MovieClip Frame 101
stop();
Symbol 234 MovieClip Frame 105
play();
Symbol 234 MovieClip Frame 109
this._x = eval (("_global.gameMain." + vElevator) + "Elevator._x");
Set(("_global.gameMain.leftElevator." + vElevator) + "UpPassenger", this._name);
if (vElevator == "right") {
_global.gameMain.gElevatorStatus = "movingleftdown";
} else {
_global.gameMain.gElevatorStatus = "movingleftup";
}
_global.gameMain.tunnelDs_arr.splice(0, 1);
if (vBlownUp == false) {
stop();
} else if (vBlownUp == true) {
gotoAndPlay (137);
}
Symbol 234 MovieClip Frame 111
vCurrentYPlane = "Surface";
fnMoveRight();
Symbol 234 MovieClip Frame 112
fnMoveRight();
Symbol 234 MovieClip Frame 113
fnMoveRight();
Symbol 234 MovieClip Frame 114
setProperty(this, _y , _global.gameMain.gSurfaceLevelY);
if (vBlownUp == false) {
if (vElevator == "left") {
_global.gameMain.leftElevator.leftUpPassenger = null;
gotoAndPlay (116);
} else if (vElevator == "right") {
_global.gameMain.leftElevator.rightUpPassenger = null;
gotoAndPlay (127);
}
} else if (vBlownUp == true) {
gotoAndPlay (137);
}
Symbol 234 MovieClip Frame 116
play();
Symbol 234 MovieClip Frame 124
setProperty(this, _x , _global.gameMain.leftStopPointSurface);
setProperty(this, _y , _global.gameMain.gSurfaceLevelY);
if (vBlownUp == false) {
gotoAndPlay (127);
} else if (vBlownUp == true) {
gotoAndPlay (137);
}
Symbol 234 MovieClip Frame 127
fnMoveRight();
Symbol 234 MovieClip Frame 128
fnMoveRight();
Symbol 234 MovieClip Frame 129
fnMoveRight();
Symbol 234 MovieClip Frame 130
fnMoveRight();
Symbol 234 MovieClip Frame 131
fnMoveRight();
Symbol 234 MovieClip Frame 132
fnMoveRight();
Symbol 234 MovieClip Frame 133
fnMoveRight();
Symbol 234 MovieClip Frame 134
fnMoveRight();
Symbol 234 MovieClip Frame 135
if (vBlownUp == false) {
gotoAndPlay (127);
} else {
gotoAndPlay (137);
}
Symbol 234 MovieClip Frame 137
vBlownUp = true;
play();
Symbol 234 MovieClip Frame 138
vBlownUp = true;
play();
Symbol 234 MovieClip Frame 139
_global.gameMain.drillDMover.gotoAndStop("base");
gameMain.CubeStolen.gotoAndPlay("play");
i = 0;
while (i < _global.gameMain.activeEnemies_arr.length) {
if (_global.gameMain.activeEnemies_arr[i] == this._name) {
_global.gameMain.activeEnemies_arr.splice(i, 1);
i = _global.gameMain.activeEnemies_arr.length;
}
i++;
}
i = 0;
while (i < _global.gameMain.surfaceDs_arr.length) {
if (_global.gameMain.surfaceDs_arr[i] == this._name) {
_global.gameMain.surfaceDs_arr.splice(i, 1);
i = _global.gameMain.surfaceDs_arr.length;
}
i++;
}
i = 0;
while (i < _global.gameMain.tunnelDs_arr.length) {
if (_global.gameMain.tunnelDs_arr[i] == this._name) {
_global.gameMain.tunnelDs_arr.splice(i, 1);
i = _global.gameMain.tunnelDs_arr.length;
}
i++;
}
if (_global.gameMain.leftElevator.leftUpPassenger == this._name) {
_global.gameMain.leftElevator.leftUpPassenger = null;
} else if (_global.gameMain.leftElevator.rightUpPassenger == this._name) {
_global.gameMain.leftElevator.rightUpPassenger = null;
} else if (_global.gameMain.leftElevator.leftDownPassenger == this._name) {
_global.gameMain.leftElevator.leftDownPassenger = null;
} else if (_global.gameMain.leftElevator.rightDownPassenger == this._name) {
_global.gameMain.leftElevator.rightDownPassenger = null;
}
_global.gameMain.drillDMover.gotoAndPlay("check");
removeMovieClip(this);
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 3
play();
Symbol 236 MovieClip Frame 78
_global.gameMain.fnEnemyGetsCube();
gameMain.CubeStolen.gotoAndPlay("play");
i = 0;
while (i < _global.gameMain.activeEnemies_arr.length) {
if (_global.gameMain.activeEnemies_arr[i] == this._name) {
_global.gameMain.activeEnemies_arr.splice(i, 1);
i = _global.gameMain.activeEnemies_arr.length;
}
i++;
}
removeMovieClip(this);
Symbol 248 MovieClip Frame 2
stop();
Symbol 248 MovieClip Frame 3
play();
Symbol 248 MovieClip Frame 19
i = 0;
while (i < _global.gameMain.activeEnemies_arr.length) {
if (_global.gameMain.activeEnemies_arr[i] == this._name) {
_global.gameMain.activeEnemies_arr.splice(i, 1);
i = _global.gameMain.activeEnemies_arr.length;
}
i++;
}
gotoAndStop (2);
Symbol 258 MovieClip Frame 2
stop();
Symbol 258 MovieClip Frame 5
var vCounter;
vCounter = Number(0);
var vHoverMax;
vHoverMax = 1;
var vWaitMax;
vWaitMax = 1;
play();
Symbol 258 MovieClip Frame 13
vCounter++;
play();
Symbol 258 MovieClip Frame 18
if (vCounter >= vHoverMax) {
gotoAndPlay (21);
} else {
gotoAndPlay (13);
}
Symbol 258 MovieClip Frame 21
vCounter = Number(0);
play();
Symbol 258 MovieClip Frame 30
vCounter++;
play();
Symbol 258 MovieClip Frame 43
if (vCounter >= vWaitMax) {
gotoAndPlay (46);
} else {
gotoAndPlay (30);
}
Symbol 258 MovieClip Frame 46
play();
Symbol 258 MovieClip Frame 120
_global.gameMain.fnEnemyGetsCube();
gameMain.CubeStolen.gotoAndPlay("play");
i = 0;
while (i < _global.gameMain.activeEnemies_arr.length) {
if (_global.gameMain.activeEnemies_arr[i] == this._name) {
_global.gameMain.activeEnemies_arr.splice(i, 1);
i = _global.gameMain.activeEnemies_arr.length;
}
i++;
}
removeMovieClip(this);
Symbol 268 MovieClip Frame 2
stop();
Symbol 268 MovieClip Frame 3
play();
Symbol 268 MovieClip Frame 19
i = 0;
while (i < _global.gameMain.activeEnemies_arr.length) {
if (_global.gameMain.activeEnemies_arr[i] == this._name) {
_global.gameMain.activeEnemies_arr.splice(i, 1);
i = _global.gameMain.activeEnemies_arr.length;
}
i++;
}
gotoAndStop (2);
Symbol 275 Button
on (release) {
gameMain.fnGetHelp();
}
Symbol 278 Button
on (release) {
gameMain.fnCloseHelp();
}
Symbol 296 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 2
play();
Symbol 296 MovieClip Frame 5
gotoAndStop (1);
Symbol 307 Button
on (release) {
gameMain.fnCloseHelp();
}
Symbol 308 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 3
maskButton.useHandCursor = false;
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 5
play();
Symbol 310 MovieClip Frame 8
gameMain.fnStopGame(true);
stop();
Symbol 332 Button
on (release) {
gameMain.gotoAndPlay("blowuprestart");
}
Symbol 333 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 2
boomMask.useHandCursor = false;
play();
Symbol 333 MovieClip Frame 40
stop();
Symbol 336 MovieClip Frame 1
play();
Symbol 336 MovieClip Frame 60
stop();
Symbol 341 MovieClip Frame 1
play();
Symbol 341 MovieClip Frame 60
stop();
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 6
play();
Symbol 346 MovieClip Frame 20
stop();
Symbol 346 MovieClip Frame 22
play();
Symbol 346 MovieClip Frame 36
stop();
Symbol 346 MovieClip Frame 38
play();
Symbol 346 MovieClip Frame 40
gameMain.fnStopGame(true);
stop();
Symbol 354 Button
on (press) {
gameMain.fnFireMissile();
}
Symbol 356 Button
on (press) {
_global.gameMain.fnFireMissile();
}
Symbol 369 MovieClip Frame 1
vCharged = true;
stop();
Symbol 369 MovieClip Frame 3
play();
Symbol 369 MovieClip Frame 68
gotoAndStop (1);
Symbol 371 MovieClip Frame 1
function fnLaunchDrill() {
vCopyLevel++;
duplicateMovieClip ("_global.gameMain.drillOriginal", "drill" + vCopyLevel, vCopyLevel);
_global.gameMain.activeEnemies_arr.push("drill" + vCopyLevel);
_global.gameMain.surfaceDs_arr.push("drill" + vCopyLevel);
Set(("_global.gameMain.drill" + vCopyLevel) + ".vCurrentYPlane", "Surface");
Set(("_global.gameMain.drill" + vCopyLevel) + ".speed", 5);
Set(("_global.gameMain.drill" + vCopyLevel) + ".vLeftStopPointSurface", _global.gameMain.leftStopPointSurface);
Set(("_global.gameMain.drill" + vCopyLevel) + ".vRightStopPointSurface", _global.gameMain.rightStopPointSurface);
Set(("_global.gameMain.drill" + vCopyLevel) + ".vLeftStopPointTunnel", _global.gameMain.leftStopPointTunnel);
Set(("_global.gameMain.drill" + vCopyLevel) + ".vRightStopPointTunnel", _global.gameMain.rightStopPointTunnel);
Set(("_global.gameMain.drill" + vCopyLevel) + ".vAction", "walkingleft");
eval ("_global.gameMain.drill" + vCopyLevel).gotoAndPlay("walkleft");
}
function fnLaunchInfantry() {
vCopyLevel++;
duplicateMovieClip ("_global.gameMain.infantryOriginal", "infantry" + vCopyLevel, vCopyLevel);
_global.gameMain.activeEnemies_arr.push("infantry" + vCopyLevel);
eval ("_global.gameMain.infantry" + vCopyLevel).gotoAndPlay("go");
}
function fnLaunchAir() {
vCopyLevel++;
duplicateMovieClip ("_global.gameMain.airOriginal", "air" + vCopyLevel, vCopyLevel);
_global.gameMain.activeEnemies_arr.push("air" + vCopyLevel);
eval ("_global.gameMain.air" + vCopyLevel).gotoAndPlay("go");
}
function fnLaunchHoverer() {
vCopyLevel++;
duplicateMovieClip ("_global.gameMain.hoverOriginal", "hover" + vCopyLevel, vCopyLevel);
_global.gameMain.activeEnemies_arr.push("hover" + vCopyLevel);
eval ("_global.gameMain.hover" + vCopyLevel).gotoAndPlay("go");
}
Symbol 371 MovieClip Frame 2
stop();
Symbol 371 MovieClip Frame 4
play();
Symbol 371 MovieClip Frame 11
if ((Math.random() > 0.2) && (_global.gameMain.activeEnemies_arr.length < _global.gameMain.ENEMY_LIMIT)) {
fnLaunchAir();
}
play();
Symbol 371 MovieClip Frame 38
if (Number(_global.gameMain.gMyScore / _global.gameMain.POINTS_PER_HIT) >= _global.gameMain.PASS_POINT_1) {
gotoAndPlay (42);
} else {
gotoAndPlay (4);
}
Symbol 371 MovieClip Frame 42
play();
Symbol 371 MovieClip Frame 49
if ((Math.random() > 0.2) && (_global.gameMain.activeEnemies_arr.length < _global.gameMain.ENEMY_LIMIT)) {
fnLaunchDrill();
}
play();
Symbol 371 MovieClip Frame 59
if ((Math.random() > 0.7) && (_global.gameMain.activeEnemies_arr.length < _global.gameMain.ENEMY_LIMIT)) {
fnLaunchAir();
}
play();
Symbol 371 MovieClip Frame 73
if (Number(_global.gameMain.gMyScore / _global.gameMain.POINTS_PER_HIT) >= _global.gameMain.PASS_POINT_2) {
gotoAndPlay (77);
} else {
gotoAndPlay (42);
}
Symbol 371 MovieClip Frame 77
play();
Symbol 371 MovieClip Frame 83
if ((Math.random() > 0.2) && (_global.gameMain.activeEnemies_arr.length < _global.gameMain.ENEMY_LIMIT)) {
fnLaunchInfantry();
}
play();
Symbol 371 MovieClip Frame 99
if ((Math.random() > 0.7) && (_global.gameMain.activeEnemies_arr.length < _global.gameMain.ENEMY_LIMIT)) {
fnLaunchAir();
}
play();
Symbol 371 MovieClip Frame 113
if ((Math.random() > 0.7) && (_global.gameMain.activeEnemies_arr.length < _global.gameMain.ENEMY_LIMIT)) {
fnLaunchDrill();
}
play();
Symbol 371 MovieClip Frame 121
if (Number(_global.gameMain.gMyScore / _global.gameMain.POINTS_PER_HIT) >= _global.gameMain.PASS_POINT_3) {
gotoAndPlay (126);
} else {
gotoAndPlay (77);
}
Symbol 371 MovieClip Frame 126
play();
Symbol 371 MovieClip Frame 139
if ((Math.random() > 0.3) && (_global.gameMain.activeEnemies_arr.length < _global.gameMain.ENEMY_LIMIT)) {
fnLaunchHoverer();
}
play();
Symbol 371 MovieClip Frame 159
if ((Math.random() > 0.3) && (_global.gameMain.activeEnemies_arr.length < _global.gameMain.ENEMY_LIMIT)) {
fnLaunchAir();
}
play();
Symbol 371 MovieClip Frame 181
if ((Math.random() > 0.3) && (_global.gameMain.activeEnemies_arr.length < _global.gameMain.ENEMY_LIMIT)) {
fnLaunchDrill();
}
play();
Symbol 371 MovieClip Frame 202
if ((Math.random() > 0.3) && (_global.gameMain.activeEnemies_arr.length < _global.gameMain.ENEMY_LIMIT)) {
fnLaunchInfantry();
}
play();
Symbol 371 MovieClip Frame 227
gotoAndPlay (126);
Symbol 373 MovieClip Frame 2
stop();
Symbol 373 MovieClip Frame 5
i = 1;
while (i < _global.gameMain.surfaceDs_arr.length) {
var vToMove;
if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]) + "._x") < eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[Number(Number(i) - Number(1))]) + "._x")) {
vToMove = _global.gameMain.surfaceDs_arr[i];
_global.gameMain.surfaceDs_arr.splice(i, 1);
_global.gameMain.surfaceDs_arr.splice(Number(Number(i) - Number(1)), 0, vToMove);
}
delete vToMove;
i++;
}
vStopPoint = _global.gameMain.leftStopPointSurface;
var vIndexStart;
if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vElevator") == "left") {
if (((((_global.gameMain.gElevatorStatus == "readyleftdown") && (_global.gameMain.leftElevator.leftUpPassenger == null)) && (_global.gameMain.leftElevator.leftDownPassenger == null)) && (_global.gameMain.leftElevator.rightUpPassenger == null)) && (_global.gameMain.leftElevator.rightDownPassenger == null)) {
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vElevator") != "left") {
_global.gameMain.gElevatorStatus = "movingleftup";
}
}
}
if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vElevator") == "left") {
vIndexStart = Number(1);
} else {
vIndexStart = Number(0);
}
i = vIndexStart;
while (i < _global.gameMain.surfaceDs_arr.length) {
if (Number(Number(eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]) + "._x")) - Number(eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]) + ".speed"))) > vStopPoint) {
setProperty("_global.gameMain." + _global.gameMain.surfaceDs_arr[i], _x , Number(Number(eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]) + "._x")) - Number(eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]) + ".speed"))));
if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]) + ".vAction") != "walkingleft") {
if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]) + ".vBlownUp") == false) {
Set(("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]) + ".vAction", "walkingleft");
eval ("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]).gotoAndPlay("walkleft");
}
}
} else {
setProperty("_global.gameMain." + _global.gameMain.surfaceDs_arr[i], _x , vStopPoint);
if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]) + ".vAction") == "walkingleft") {
if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]) + ".vBlownUp") == false) {
Set(("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]) + ".vAction", "waitingleft");
eval ("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]).gotoAndStop("waitleft");
}
}
}
vStopPoint = Number(Number(vStopPoint) + Number(_global.gameMain.drillOriginal._width * 1.5));
i++;
}
if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + "._x") == _global.gameMain.ELEVATOR_MIDDLE_X) {
if ((_global.gameMain.gElevatorStatus == "readyleftup") && (eval (_global.gameMain.leftElevator.leftUpPassenger) == null)) {
if ((eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vBlownUp") == false) && (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vAction") != "boardingleft")) {
eval ("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]).gotoAndPlay("boardleft");
Set(("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vAction", "boardingleft");
_global.gameMain.leftElevator.leftDownPassenger = _global.gameMain.surfaceDs_arr[0];
}
}
} else if ((eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + "._x") == _global.gameMain.leftStopPointSurface) && (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vAction") == "waitingleft")) {
Set(("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vElevator", null);
if (((_global.gameMain.gElevatorStatus == "readyleftup") && (_global.gameMain.leftElevator.leftUpPassenger == null)) || (_global.gameMain.gElevatorStatus == "movingleftup")) {
Set(("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vElevator", "left");
} else if ((_global.gameMain.gElevatorStatus == "readyleftdown") && (_global.gameMain.leftElevator.rightUpPassenger == null)) {
Set(("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vElevator", "right");
}
if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vElevator") == "left") {
if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vBlownUp") == false) {
if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vAction") != "jumpingleft") {
Set(("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vAction", "jumpingleft");
eval ("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]).gotoAndPlay("jumpleft");
}
}
} else if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vElevator") == "right") {
if ((eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vBlownUp") == false) && (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vAction") != "boardingleft")) {
if ((_global.gameMain.gElevatorStatus == "readyleftdown") && (_global.gameMain.leftElevator.rightUpPassenger == null)) {
eval ("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]).gotoAndPlay("boardleft");
Set(("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vAction", "boardingleft");
_global.gameMain.leftElevator.rightDownPassenger = _global.gameMain.surfaceDs_arr[0];
}
}
}
}
play();
Symbol 373 MovieClip Frame 6
if ((eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vElevator") == "right") && (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vAction") == "walkingright")) {
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vBlownUp") == false) {
if (Number(Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + "._x")) + Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".speed"))) < _global.gameMain.ELEVATOR_MIDDLE_X) {
setProperty("_global.gameMain." + _global.gameMain.tunnelDs_arr[0], _x , Number(Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + "._x")) + Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".speed"))));
} else {
setProperty("_global.gameMain." + _global.gameMain.tunnelDs_arr[0], _x , _global.gameMain.ELEVATOR_MIDDLE_X);
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vBlownUp") == false) {
Set(("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vAction", "waitingright");
eval ("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]).gotoAndStop("waitright");
}
}
}
}
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vElevator") == "right") {
if (((((_global.gameMain.gElevatorStatus == "readyleftdown") && (_global.gameMain.leftElevator.rightUpPassenger == null)) && (_global.gameMain.leftElevator.rightDownPassenger == null)) && (_global.gameMain.leftElevator.leftUpPassenger == null)) && (_global.gameMain.leftElevator.leftDownPassenger == null)) {
if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[0]) + ".vElevator") != "right") {
_global.gameMain.gElevatorStatus = "movingleftup";
}
}
}
var vIndexStart;
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vElevator") == "right") {
vIndexStart = Number(1);
} else {
vIndexStart = Number(0);
}
vStopPoint = _global.gameMain.rightStopPointTunnel;
i = vIndexStart;
while (i < _global.gameMain.tunnelDs_arr.length) {
if (Number(Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[i]) + "._x")) + Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[i]) + ".speed"))) < vStopPoint) {
setProperty("_global.gameMain." + _global.gameMain.tunnelDs_arr[i], _x , Number(Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[i]) + "._x")) + Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[i]) + ".speed"))));
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[i]) + ".vAction") != "walkingright") {
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[i]) + ".vBlownUp") == false) {
Set(("_global.gameMain." + _global.gameMain.tunnelDs_arr[i]) + ".vAction", "walkingright");
eval ("_global.gameMain." + _global.gameMain.tunnelDs_arr[i]).gotoAndPlay("walkright");
}
}
} else {
setProperty("_global.gameMain." + _global.gameMain.tunnelDs_arr[i], _x , vStopPoint);
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[i]) + ".vAction") == "walkingright") {
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[i]) + ".vBlownUp") == false) {
Set(("_global.gameMain." + _global.gameMain.tunnelDs_arr[i]) + ".vAction", "waitingright");
eval ("_global.gameMain." + _global.gameMain.tunnelDs_arr[i]).gotoAndStop("waitright");
}
}
}
vStopPoint = Number(Number(vStopPoint) - Number(_global.gameMain.drillOriginal._width * 1.3));
i++;
}
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + "._x") == _global.gameMain.ELEVATOR_MIDDLE_X) {
if ((_global.gameMain.gElevatorStatus == "readyleftup") && (eval (_global.gameMain.leftElevator.rightDownPassenger) == null)) {
if ((eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vBlownUp") == false) && (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vAction") != "boardingright")) {
eval ("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]).gotoAndPlay("boardright");
Set(("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vAction", "boardingright");
_global.gameMain.leftElevator.rightUpPassenger = _global.gameMain.tunnelDs_arr[0];
}
}
} else if ((eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + "._x") == _global.gameMain.rightStopPointTunnel) && (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vAction") == "waitingright")) {
Set(("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vElevator", null);
if ((((_global.gameMain.gElevatorStatus == "readyleftup") && (_global.gameMain.leftElevator.rightDownPassenger == null)) || (_global.gameMain.gElevatorStatus == "movingleftup")) || (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vElevator") == "right")) {
Set(("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vElevator", "right");
} else if (((_global.gameMain.gElevatorStatus == "readyleftdown") || (_global.gameMain.gElevatorStatus == "movingleftdown")) || (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vElevator") == "left")) {
Set(("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vElevator", "left");
}
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vElevator") == "right") {
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vBlownUp") == false) {
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vAction") != "walkingright") {
Set(("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vAction", "walkingright");
eval ("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]).gotoAndPlay("walkright");
setProperty("_global.gameMain." + _global.gameMain.tunnelDs_arr[0], _x , Number(Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + "._x")) + Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".speed"))));
} else if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vAction") == "walkingright") {
if (Number(Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + "._x")) + Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".speed"))) < _global.gameMain.ELEVATOR_MIDDILE_X) {
setProperty("_global.gameMain." + _global.gameMain.tunnelDs_arr[0], _x , Number(Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + "._x")) + Number(eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".speed"))));
} else {
setProperty("_global.gameMain." + _global.gameMain.tunnelDs_arr[0], _x , _global.gameMain.ELEVATOR_MIDDLE_X);
}
}
}
} else if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vElevator") == "left") {
if ((eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vBlownUp") == false) && (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vAction") != "boardingright")) {
if ((_global.gameMain.gElevatorStatus == "readyleftdown") && (eval (_global.gameMain.leftElevator.leftDownPassenger) == null)) {
eval ("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]).gotoAndPlay("boardright");
Set(("_global.gameMain." + _global.gameMain.tunnelDs_arr[0]) + ".vAction", "boardingright");
_global.gameMain.leftElevator.leftUpPassenger = _global.gameMain.tunnelDs_arr[0];
}
}
}
}
i = 0;
while (i < _global.gameMain.activeEnemies_arr.length) {
if (eval (("_global.gameMain." + _global.gameMain.activeEnemies_arr[i]) + ".vBlownUp") == true) {
_global.gameMain.activeEnemies_arr.splice(i, 1);
}
i++;
}
i = 0;
while (i < _global.gameMain.surfaceDs_arr.length) {
if (eval (("_global.gameMain." + _global.gameMain.surfaceDs_arr[i]) + ".vBlownUp") == true) {
_global.gameMain.surfaceDs_arr.splice(i, 1);
}
i++;
}
i = 0;
while (i < _global.gameMain.tunnelDs_arr.length) {
if (eval (("_global.gameMain." + _global.gameMain.tunnelDs_arr[i]) + ".vBlownUp") == true) {
_global.gameMain.tunnelDs_arr.splice(i, 1);
}
i++;
}
gotoAndPlay (5);
Symbol 377 Button
on (release) {
stopAllSounds();
gotoAndStop (13);
}
Symbol 395 Button
on (press) {
startDrag (this, false, _parent.marker20._x, this._y, _parent.marker100._x, this._y);
gotoAndPlay (4);
}
on (release, releaseOutside) {
_parent.fnSnapToGrid();
gotoAndStop (1);
stopDrag();
}
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 4
myTempArray_arr = new Array();
i = Number(Number(_parent.meterVals_arr.length) - Number(1));
while (i >= 0) {
if (this.hitTest(eval ("_parent.marker" + _parent.meterVals_arr[i])) == true) {
myTempArray_arr.push(_parent.meterVals_arr[i]);
}
i--;
}
if (myTempArray_arr.length == 1) {
_parent.gotoAndStop("power" + myTempArray_arr[0]);
} else {
var vClosestMarker;
vClosestMarker = myTempArray_arr[0];
i = 1;
while (i < myTempArray_arr.length) {
if (Math.abs(Number(Number(this._x) - Number(eval (("_parent.marker" + myTempArray_arr[i]) + "._x")))) < Math.abs(Number(Number(this._x) - Number(eval (("_parent.marker" + vClosestMarker) + "._x"))))) {
vClosestMarker = myTempArray_arr[i];
}
i++;
}
_parent.gotoAndStop("power" + vClosestMarker);
}
play();
Symbol 396 MovieClip Frame 5
gotoAndPlay (4);
Symbol 414 MovieClip Frame 1
meterVals_arr = new Array("20", "25", "30", "35", "40", "45", "50", "55", "60", "65", "70", "75", "80", "85", "90", "95", "100");
stop();
function fnSnapToGrid() {
arrowButtonClip._x = eval (("marker" + _global.gameMain.gInitVelocity) + "._x");
}
Symbol 414 MovieClip Frame 5
_global.gameMain.gInitVelocity = 20;
Symbol 414 MovieClip Frame 6
_global.gameMain.gInitVelocity = 25;
Symbol 414 MovieClip Frame 7
_global.gameMain.gInitVelocity = 30;
Symbol 414 MovieClip Frame 8
_global.gameMain.gInitVelocity = 35;
Symbol 414 MovieClip Frame 9
_global.gameMain.gInitVelocity = 40;
Symbol 414 MovieClip Frame 10
_global.gameMain.gInitVelocity = 45;
Symbol 414 MovieClip Frame 11
_global.gameMain.gInitVelocity = 50;
Symbol 414 MovieClip Frame 12
_global.gameMain.gInitVelocity = 55;
Symbol 414 MovieClip Frame 13
_global.gameMain.gInitVelocity = 60;
Symbol 414 MovieClip Frame 14
_global.gameMain.gInitVelocity = 65;
Symbol 414 MovieClip Frame 15
_global.gameMain.gInitVelocity = 70;
Symbol 414 MovieClip Frame 16
_global.gameMain.gInitVelocity = 75;
Symbol 414 MovieClip Frame 17
_global.gameMain.gInitVelocity = 80;
Symbol 414 MovieClip Frame 18
_global.gameMain.gInitVelocity = 85;
Symbol 414 MovieClip Frame 19
_global.gameMain.gInitVelocity = 90;
Symbol 414 MovieClip Frame 20
_global.gameMain.gInitVelocity = 95;
Symbol 414 MovieClip Frame 21
_global.gameMain.gInitVelocity = 100;
stop();
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 3
if (this._y >= _global.gameMain.gInterfaceFloor) {
gotoAndPlay (6);
} else if ((_global.gameMain.interfaceOutlines.hitTest(Number(Number(vBeginX) + Number(vElapsedTime * vXVelocity)), Number(Number(vBeginY) - Number((vYVelocityComp * vElapsedTime) - Number((0.5 * _global.gameMain.GRAVITY_ACCEL) * (vElapsedTime * vElapsedTime)))), true) == true) && (_global.gameMain.interfaceOutlines.hitTest(this._x, this._y, true) == false)) {
_global.gameMain.fnCheckHillHit(this._x);
gotoAndPlay (6);
} else if ((_global.gameMain.markerTruck.hitTest(this._x, this._y, true) == true) && (gameMain.overlay.hittruckanim._currentframe == 1)) {
_global.gameMain.overlay.hittruckanim.gotoAndPlay("explode");
gotoAndPlay (6);
} else {
if (Number(Number(vBeginY) - Number((vYVelocityComp * vElapsedTime) - Number((0.5 * _global.gameMain.GRAVITY_ACCEL) * (vElapsedTime * vElapsedTime)))) < _global.gameMain.gInterfaceFloor) {
setProperty(this, _x , Number(Number(vBeginX) + Number(vElapsedTime * vXVelocity)));
setProperty(this, _y , Number(Number(vBeginY) - Number((vYVelocityComp * vElapsedTime) - Number((0.5 * _global.gameMain.GRAVITY_ACCEL) * (vElapsedTime * vElapsedTime)))));
} else {
setProperty(this, _y , _global.gameMain.gInterfaceFloor);
}
var vHypotenuse;
var vOpposite;
var vAdajacent;
var vSineFactor;
var vRotateFactor;
vOpposite = Number(vLastY) - Number(this._y);
vAdjacent = Number(Number(vLastX) - Number(this._x));
vHypotenuse = Math.sqrt(Number(Number(vOpposite * vOpposite) + Number(vAdjacent * vAdjacent)));
vSineFactor = 1 / vHypotenuse;
vRotateFactor = -(Math.asin(vSineFactor * vOpposite) / (Math.PI/180));
setProperty(this, _rotation , vRotateFactor);
vElapsedTime = Number(Number(vElapsedTime) + Number(0.15));
vLastX = this._x;
vLastY = this._y;
if (gameMain.gGamePaused == false) {
play();
} else if (gameMain.gGamePaused == true) {
gameMain.activeMissiles_arr.push(this._name);
stop();
}
}
Symbol 422 MovieClip Frame 4
if (this._y >= gameMain.gInterfaceFloor) {
gotoAndPlay (6);
} else if ((gameMain.interfaceOutlines.hitTest(Number(Number(vBeginX) + Number(vElapsedTime * vXVelocity)), Number(Number(vBeginY) - Number((vYVelocityComp * vElapsedTime) - Number((0.5 * gameMain.GRAVITY_ACCEL) * (vElapsedTime * vElapsedTime)))), true) == true) && (gameMain.interfaceOutlines.hitTest(this._x, this._y, true) == false)) {
gameMain.fnCheckHillHit(this._x);
gotoAndPlay (6);
} else if ((gameMain.markerTruck.hitTest(this._x, this._y, true) == true) && (gameMain.overlay.hittruckanim._currentframe == 1)) {
gameMain.overlay.hittruckanim.gotoAndPlay("explode");
gotoAndPlay (6);
} else {
if (Number(Number(vBeginY) - Number((vYVelocityComp * vElapsedTime) - Number((0.5 * gameMain.GRAVITY_ACCEL) * (vElapsedTime * vElapsedTime)))) < gameMain.gInterfaceFloor) {
setProperty(this, _x , Number(Number(vBeginX) + Number(vElapsedTime * vXVelocity)));
setProperty(this, _y , Number(Number(vBeginY) - Number((vYVelocityComp * vElapsedTime) - Number((0.5 * gameMain.GRAVITY_ACCEL) * (vElapsedTime * vElapsedTime)))));
} else {
setProperty(this, _y , gameMain.gInterfaceFloor);
}
var vHypotenuse;
var vOpposite;
var vAdajacent;
var vSineFactor;
var vRotateFactor;
vOpposite = Number(vLastY) - Number(this._y);
vAdjacent = Number(Number(vLastX) - Number(this._x));
vHypotenuse = Math.sqrt(Number(Number(vOpposite * vOpposite) + Number(vAdjacent * vAdjacent)));
vSineFactor = 1 / vHypotenuse;
vRotateFactor = -(Math.asin(vSineFactor * vOpposite) / (Math.PI/180));
setProperty(this, _rotation , vRotateFactor);
vElapsedTime = Number(Number(vElapsedTime) + Number(0.15));
vLastX = this._x;
vLastY = this._y;
if (gameMain.gGamePaused == false) {
if (vExploded == false) {
gotoAndPlay (3);
} else {
gotoAndPlay (6);
}
} else if (gameMain.gGamePaused == true) {
gameMain.activeMissiles_arr.push(this._name);
stop();
}
}
Symbol 422 MovieClip Frame 6
play();
Symbol 422 MovieClip Frame 15
removeMovieClip(this);
Symbol 424 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 7
gotoAndStop (1);
Symbol 427 MovieClip Frame 1
play();
Symbol 427 MovieClip Frame 2
stop();
Symbol 427 MovieClip Frame 4
play();
Symbol 427 MovieClip Frame 5
stop();
Symbol 447 MovieClip Frame 1
vBlownEnemies = gameMain.gMyScore / gameMain.POINTS_PER_HIT;
Symbol 451 Button
on (release) {
_global.gameMain.fnRestartGame();
}
Symbol 452 MovieClip Frame 150
stop();