Frame 1
_global.gMainTL = this;
rCodesEntered = false;
rFirstTime = true;
rPreloadTitle = 9;
rPreloadKeycodes = 15;
rPreloadLev1 = 20;
rPreloadLev2 = 24;
rPreloadLev3 = 30;
rPreloadLev4 = 35;
rPreloadLev5 = 40;
rPreloadLev6 = 45;
empty_array = new Array();
play();
function fnInit() {
rGameInProgress = false;
rContinue = false;
rPlayAgain = false;
oKeyCode.setCorrectCodeNum(oKeyCode.getMaxCodes());
}
function fnFrontLoaded() {
delete rPreloadTitle;
delete rPreloadKeycodes;
gotoAndStop ("front_loaded");
}
Math.randomInteger = function (lowInt, highInt) {
return(lowInt + Math.floor(Math.random() * Math.round((highInt + 1) - lowInt)));
};
Math.roundToDecimal = function (num, decimalplaces) {
var _local2 = decimalplaces;
var _local1;
if (_local2 != 0) {
_local1 = Math.round(num * Math.pow(10, _local2)) / Math.pow(10, _local2);
} else {
_local1 = Math.round(num);
}
return(_local1);
};
oKeyCode = new Object();
oKeyCode.pCode1 = "Duke";
oKeyCode.code1Variations_array = new Array("duke", "DUKE");
oKeyCode.pCode2 = "Team";
oKeyCode.code2Variations_array = new Array("team", "TEAM");
oKeyCode.pCode3 = "Joes";
oKeyCode.code3Variations_array = new Array("joes", "JOES");
oKeyCode.pCode4 = "Hawk";
oKeyCode.code4Variations_array = new Array("hawk", "HAWK");
oKeyCode.pCode5 = "Hero";
oKeyCode.code5Variations_array = new Array("hero", "HERO");
oKeyCode.pMaxCodes = 5;
oKeyCode.assessUser = function () {
var _local1 = this;
if (_local1.pCorrectCodeNum == _local1.getMaxCodes()) {
oLevel.setHighestLevel();
_local1.skip();
} else {
gotoAndStop ("keycode_entry");
}
};
oKeyCode.checkSOCodes = function () {
var _local1 = this;
var i = 1;
i = 1;
while (i <= _local1.getMaxCodes()) {
var vCode = localSO_so.data["pCode" + i];
var _local2 = 1;
_local2 = 1;
while (_local2 <= _local1.getMaxCodes()) {
if (vCode == _local1["pCode" + _local2]) {
_local1.pCorrectCodeNum++;
_local1["pCorrectCode" + _local1.pCorrectCodeNum] = vCode;
_local2 = _local1.getMaxCodes();
} else {
var _local3 = 0;
_local3 = 0;
while (_local3 < _local1[("code" + _local2) + "Variations_array"].length) {
if (vCode == _local1[("code" + _local2) + "Variations_array"][_local3]) {
thispCorrectCodeNum++;
_local1["pCorectCode" + _local1.pCorrectCodeNum] = _local1["pCode" + _local2];
_local2 = _local1.getMaxCodes();
_local3 = _local1[("code" + _local2) + "Variations_array"].length;
}
_local3++;
}
}
_local2++;
}
delete vCode;
i++;
}
};
oKeyCode.getCorrectCodeNum = function () {
return(this.pCorrectCodeNum);
};
oKeyCode.getMaxCodes = function () {
return(this.pMaxCodes);
};
oKeyCode.initMoreCodesScreen = function () {
var i = 1;
i = 1;
while (i <= this.getMaxCodes()) {
if (i <= this.pCorrectCodeNum) {
eval (("feedback_mc.code" + i) + "Status_mc").gotoAndStop("valid");
} else {
eval (("feedback_mc.code" + i) + "Status_mc").gotoAndStop("invalid");
}
i++;
}
Selection.setFocus("feedback_mc.codeEntry_txt");
};
oKeyCode.initEntryPage = function () {
var i = 1;
i = 1;
while (i <= this.getMaxCodes()) {
if (i <= this.pCorrectCodeNum) {
eval (("code" + i) + "Status_mc").gotoAndStop("valid");
} else {
eval (("code" + i) + "Status_mc").gotoAndStop("invalid");
}
i++;
}
Selection.setFocus("codeEntry_txt");
oLevel.setHighestLevel();
};
oKeyCode.setCorrectCodeNum = function (num) {
this.pCorrectCodeNum = num;
};
oKeyCode.skip = function () {
var _local2 = this;
rCodesEntered = true;
var _local1 = 1;
_local1 = 1;
while (_local1 <= _local2.getMaxCodes()) {
if (_local1 <= _local2.pCorrectCodeNum) {
localSO_so.data["pCode" + _local1] = _local2["pCode" + _local1];
} else {
localSO_so.data["pCode" + _local1] = "";
}
_local1++;
}
localSO_so.flush();
oLevel.resetMe();
delete oKCMouseListener;
gotoAndPlay ("check_load");
};
oKeyCode.submitCode = function (userinput, endlevel) {
if (this.getCorrectCodeNum() < this.getMaxCodes()) {
var i = 1;
var vNextSlot;
i = 1;
while (i <= this.getMaxCodes()) {
if (localSO_so.data["pCode" + i] == "") {
vNextSlot = i;
i = this.getMaxCodes();
}
i++;
}
var lockedCodes_array = new Array();
var j = 1;
var vCanAdd;
i = 1;
while (i <= this.getMaxCodes()) {
vCanAdd = true;
j = 1;
while (j < vNextSlot) {
if (localSO_so.data["pCode" + j] == this["pCode" + i]) {
vCanAdd = false;
j = vNextSlot;
}
j++;
}
if (vCanAdd == true) {
lockedCodes_array.push(i);
}
i++;
}
var k = 0;
var m = 0;
var vCodeNum;
var vSuccess;
k = 0;
while (k < lockedCodes_array.length) {
vSuccess = false;
vCodeNum = lockedCodes_array[k];
if (userinput == this["pCode" + vCodeNum]) {
vSuccess = true;
} else {
m = 0;
while (m < this[("code" + vCodeNum) + "Variations_array"].length) {
if (userinput == this[("code" + vCodeNum) + "Variations_array"][m]) {
vSuccess = true;
m = this[("code" + vCodeNum) + "Variations_array"].length;
}
m++;
}
}
if (vSuccess == true) {
localSO_so.data["pCode" + vNextSlot] = this["pCode" + vCodeNum];
localSO_so.flush();
if (endlevel == true) {
eval (("feedback_mc.code" + vNextSlot) + "Status_mc").gotoAndStop("valid");
feedback_mc.continue_mc.gotoAndStop("active");
} else {
eval (("code" + vNextSlot) + "Status_mc").gotoAndStop("valid");
}
this.setCorrectCodeNum(vNextSlot);
if (endlevel == true) {
feedback_mc.codeEntry_txt.text = "";
} else {
codeEntry_txt.text = "";
}
k = lockedCodes_array.length;
}
k++;
}
if (this.getCorrectCodeNum() < this.getMaxCodes()) {
if (endlevel == true) {
Selection.setFocus("feedback_mc.codeEntry_txt");
} else {
Selection.setFocus("codeEntry_txt");
}
}
} else if (endlevel == true) {
feedback_mc.codeEntry_txt.text = "You've unlocked all levels.";
} else {
codeEntry_txt.text = "You've unlocked all levels.";
}
oLevel.setHighestLevel();
};
Frame 2
if (_framesloaded >= rPreloadTitle) {
fnInit();
gotoAndPlay ("title");
} else {
play();
}
Frame 3
gotoAndPlay ("loadloop");
Frame 4
play();
Instance of Symbol 6 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (gMainTL.getBytesLoaded() == gMainTL.getBytesTotal()) {
gMainTL.fnFrontLoaded();
}
}
Frame 9
if (_framesloaded >= rPreloadKeycodes) {
fnFrontLoaded();
} else {
gotoAndPlay ("title");
}
Frame 11
IntroMus = new Sound(AudioIntro1Music_MC);
IntroMus.attachSound("Intro1");
IntroMus.setVolume(50);
IntroMus.start(0, 999);
stop();
function delayBombDrop() {
trace("bombReset");
oPushDownHeli.pBombDropping = false;
clearInterval(bombDelay);
}
function fnCloseBriefing(clip) {
eval (clip).gotoAndStop("base");
if (rCodesEntered == false) {
oKeyCode.assessUser();
} else if ((rGameInProgress == true) && (rForcedPause == true)) {
fnResumeGame();
} else if (rInLevTrans == true) {
border_mc.levTransition_mc.play();
}
}
function fnCloseHelp() {
if (rGameInProgress == false) {
fnPlayTrans();
} else {
feedback_mc.gotoAndStop("base");
fnResumeGame();
}
}
function fnDisableGameBtns() {
border_mc.help_btn.enabled = false;
oWeaponsMenu.disableBtns();
}
function fnEnableGameBtns() {
border_mc.help_btn.enabled = true;
oWeaponsMenu.enableBtns();
}
function fnResetGameVars(continueplay) {
rWeaponLevel = 200000 /* 0x030D40 */;
if (continueplay != true) {
oLevel.resetMe();
}
oScore.resetMe();
oTigerHawk.resetMe();
}
function fnResumeGame() {
rGameOn = true;
fnEnableGameBtns();
oTigerHawk.resume();
Key.addListener(oKeyListener);
Mouse.addListener(oMouseListener);
oExplosions.resume();
oLauncher.resume();
oLevel.resume();
oWeaponsMenu.resume();
var _local2 = 0;
_local2 = 0;
while (_local2 < scrollingObjs_array.length) {
scrollingObjs_array[_local2].resume();
_local2++;
}
var _local1 = 0;
_local1 = 0;
while (_local1 < trailingObjs_array.length) {
trailingObjs_array[_local1].resume();
_local1++;
}
}
function fnSetUpGame() {
scrollingObjs_array = new Array();
trailingObjs_array = new Array();
duplicateMovieClip (feedbackORIG_mc, "feedback_mc", 600000);
duplicateMovieClip (borderORIG_mc, "border_mc", 600001);
duplicateMovieClip (missionBriefingORIG_mc, "missionBriefing_mc", 600002);
feedbackORIG_mc._visible = false;
borderORIG_mc._visible = false;
missionBriefingORIG_mc._visible = false;
Gatling.prototype.setXMax();
Missile.prototype.setXMax();
oExplosions.setUp();
oLauncher.setUp();
oTigerHawk.setMaxMouseDist();
oWeaponsMenu.setUp();
fnDisableGameBtns();
fnResetGameVars();
fnUpdateDisplay();
rInLevTrans = false;
}
function fnStartGame() {
oTigerHawk.resetMe();
oLauncher.reset();
var _local1 = oLevel.getLevel();
oScore.setReq(_local1);
Bomb.prototype.setYMax();
switch (_local1) {
case 1 :
rLev1HeliOn = false;
oLevel.lev1.reset();
Enemy_pulverizerWalk.prototype.setPositions();
MechMissile.prototype.setPositions();
oPushDownHeli.reset();
oBg = new BgElement("bg", 0.2, "oBg", false);
scrollingObjs_array.push(oBg);
break;
case 2 :
oLevel.lev2.reset();
Enemy_nAdderLeft.prototype.setPositions();
Enemy_nAdderRight.prototype.setPositions();
NAdderLeftLaser.prototype.setPositions();
NAdderRightLaser.prototype.setPositions();
oNAdderLeft.setPositions();
oClouds = new BgElement("clouds", 0.7, "oClouds", false);
oBg1 = new BgElement("bg1", 0.15, "oBg1", false);
oBg2 = new BgElement("bg2", 1, "oBg2", true);
scrollingObjs_array.push(oClouds, oBg1, oBg2);
break;
case 3 :
oLevel.lev3.reset();
Enemy_aAGun.prototype.setPositions();
Enemy_tikiHut1.prototype.setPositions();
Enemy_tikiHut2.prototype.setPositions();
Enemy_heli.prototype.setPositions();
AAGunBullet.prototype.setPositions();
HeliMissile.prototype.setPositions();
oBg = new BgElement("bg", 0.2, "oBg", false);
duplicateMovieClip (fgORIG_mc, "fg_mc", 599999);
fgORIG_mc._visible = false;
oFg = new BgElement("fg", 1, "oFg", false);
scrollingObjs_array.push(oBg, oFg);
break;
case 4 :
oLevel.lev4.reset();
Enemy_hangGlider.prototype.setPositions();
Enemy_hangGliderRight.prototype.setPositions();
Enemy_hangGliderLeft.prototype.setPositions();
HGRightBullet.prototype.setPositions();
HGLeftBullet.prototype.setPositions();
HGBomb.prototype.setPositions();
oBg = new BgElement("bg", 0.18, "oBg", false);
scrollingObjs_array.push(oBg);
break;
case 5 :
oLevel.lev5.reset();
duplicateMovieClip (fgORIG_mc, "fg_mc", 199999);
fgORIG_mc._visible = false;
Enemy_boat.prototype.setPositions();
Enemy_boatRight.prototype.setPositions();
Enemy_boatLeft.prototype.setPositions();
BoatBullet.prototype.setPositions();
Enemy_heli.prototype.setPositions();
Enemy_paraBomb.prototype.setPositions();
break;
case 6 :
oLevel.lev6.reset();
Enemy_volcano.prototype.setPositions();
Enemy_volcano1.prototype.setPositions();
Enemy_volcano2.prototype.setPositions();
Enemy_volcano3.prototype.setPositions();
Enemy_nAdderRight.prototype.setPositions();
Enemy_heli.prototype.setPositions();
duplicateMovieClip (nAdderLeftORIG_mc, "nAdderLeft_mc", 599998);
nAdderLeftORIG_mc._visible = false;
NAdderLeftLaser.prototype.setPositions();
oNAdderLeft.setPositions();
oBg = new BgElement("bg", 0.17, "oBg", false);
duplicateMovieClip (tigerHawkORIG_mc, "tigerHawk_mc", 599999);
tigerHawkORIG_mc._visible = false;
scrollingObjs_array.push(oBg);
break;
}
rGameInProgress = true;
rContinue = false;
rPlayAgain = false;
fnUpdateDisplay();
oExplosions.reset();
oTigerHawk.setClipFrame("base");
oTigerHawk.setObjRef();
oTigerHawk.setVerticalRange();
oWeaponsMenu.reset();
rInLevTrans = false;
fnResumeGame();
}
function fnUpdateDisplay(newlev) {
var _local1 = newlev;
if (_local1 != undefined) {
if (_local1 == 1) {
oTigerHawk.resetMe();
oScore.resetMe();
}
oLevel.updateDisplay(_local1);
} else {
oLevel.updateDisplay();
}
oHealthDisplay.updateMeter();
oScore.updateScore();
}
function fnViewBriefing(clip) {
if (rGameOn == true) {
rForcedPause = true;
fnPauseGame();
} else if (rInLevTrans == true) {
border_mc.levTransition_mc.stop();
} else {
rForcedPause = false;
}
eval (clip).gotoAndPlay("panel1");
}
function fnViewHelp() {
fnPauseGame();
feedback_mc.gotoAndStop("help");
}
start_btn.onRelease = function () {
fnViewBriefing("missionBriefingORIG_mc");
this.enabled = false;
};
Array.prototype.searchArray = function (searchElement) {
var _local2 = this;
var _local3 = searchElement;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1] == _local3) {
return(_local1);
}
_local1++;
}
return(null);
};
oSetupKeyListener = new Object();
oSetupKeyListener.onKeyDown = function () {
var vGoBack = false;
var vFocused = eval (Selection.getFocus());
var i = 1;
i = 1;
while (i <= oKeyCode.getMaxCodes()) {
if (eval (("codeEntry" + i) + "_txt") == vFocused) {
vGoBack = true;
break;
}
i++;
}
if (vGoBack == true) {
Key.removeListener(this);
Mouse.removeListener(oKCMouseListener);
gotoAndStop ("keycode_entry");
} else {
trace("stay on this page");
}
};
oKCMouseListener = new Object();
oTigerHawk = new Object();
oTigerHawk.pClip = "tigerHawk_mc";
oTigerHawk.pContactPoints = 6;
oTigerHawk.pMaxSpeed = 8;
oTigerHawk.pMinSpeed = 2;
oTigerHawk.pVertIncrMax = 15;
oTigerHawk.pVertIncrMin = 0.5;
oTigerHawk.pVertIncrMultiplier = 0.5;
oTigerHawk.checkForCollision = function () {
var i = 0;
i = 0;
while (i < oLauncher.activeEnemies_array.length) {
var vEnemyObj = oLauncher.getActiveEnemy(i);
if (vEnemyObj.pCanBeKilled == true) {
if (eval (this.pClip + ".hitArea_mc").hitTest(eval (vEnemyObj.getClip()))) {
if ((vEnemyObj.pCollideWithTH == false) && (vEnemyObj.pKilled == false)) {
if (vEnemyObj.pCanBeKilled == true) {
vEnemyObj.collideWithTigerHawk();
}
this.getHit(vEnemyObj.pCollisionDamageInflicted);
break;
}
}
} else {
var vAttacking = false;
if (vEnemyObj.pCanAttack == true) {
if (eval (vEnemyObj.pClip).hitArea_mc) {
vAttacking = true;
}
}
if (vAttacking == true) {
if (eval (this.pClip + ".hitArea_mc").hitTest(eval (eval (vEnemyObj.pClip).hitArea_mc))) {
if (vEnemyObj.pAttackedTH == false) {
vEnemyObj.pAttackedTH = true;
this.getHit(vEnemyObj.pAttackDamageInflicted);
}
}
} else {
var j = 1;
j = 1;
while (j <= this.pContactPoints) {
var oPoint = new Object();
oPoint.x = eval (((this.pClip + ".contactPoint") + j) + "_mc")._x;
oPoint.y = eval (((this.pClip + ".contactPoint") + j) + "_mc")._y;
eval (this.pClip).localToGlobal(oPoint);
if (eval (vEnemyObj.pClip).hitTest(oPoint.x, oPoint.y, true)) {
this.getHit(this.getHealth(), true);
break;
}
delete oPoint;
j++;
}
}
}
delete vEnemyObj;
i++;
}
if (this.getHealth() > 0) {
this.checkVertPosition();
}
};
oTigerHawk.checkVertPosition = function () {
var vTopBound = this.pMouseYMin;
if (oLevel.getLevel() == 1) {
if (oLevel.lev1.pHeliOn == true) {
if (oPushDownHeli.getTHInRange(eval (this.pClip)._x) == true) {
vTopBound = oPushDownHeli.getBtmBound() - eval (this.pClip).top_mc._y;
}
}
}
var vMyY = this.getClipY();
var vMouseY = _ymouse;
if (vMouseY < vTopBound) {
vMouseY = vTopBound;
} else if (vMouseY > this.pMouseYMax) {
vMouseY = this.pMouseYMax;
}
if (vMyY != vMouseY) {
this.moveVertically(vMyY, vMouseY);
} else if (this.getClipFrame() != "base") {
this.setClipFrame("base");
}
};
oTigerHawk.dropBomb = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).bombStart_mc.bomb_mc._x;
oPoint.y = eval (this.pClip).bombStart_mc.bomb_mc._y;
var vRot = eval (this.pClip).bombStart_mc.bomb_mc._rotation;
eval (this.pClip).bombStart_mc.localToGlobal(oPoint);
var vLevel = rWeaponLevel;
rWeaponLevel++;
Set("oWeapon" + vLevel, new Bomb(vLevel, oPoint.x, oPoint.y, vRot));
};
oTigerHawk.fireMissile = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).missileStart_mc.missile_mc._x;
oPoint.y = eval (this.pClip).missileStart_mc.missile_mc._y;
eval (this.pClip).missileStart_mc.localToGlobal(oPoint);
var vLevel = rWeaponLevel;
rWeaponLevel++;
Set("oWeapon" + vLevel, new Missile(vLevel, oPoint.x, oPoint.y));
eval (this.pClip).missileStart_mc.gotoAndStop("base");
};
oTigerHawk.fireWeapon = function () {
var vWeapon = this.getCurrentWeapon();
if (oWeaponsMenu.getWeaponStatus(vWeapon) == true) {
if (vWeapon == "missile") {
eval (this.pClip).missileStart_mc.gotoAndPlay("go");
} else if (vWeapon == "bomb") {
eval (this.pClip).bombStart_mc.gotoAndPlay("go");
} else {
eval (this.pClip).gatlingFlash_mc.gotoAndPlay("go");
Set("oWeapon" + rWeaponLevel, new Gatling(rWeaponLevel));
}
rWeaponLevel++;
oWeaponsMenu.fireWeapon(vWeapon);
}
};
oTigerHawk.getBodyClip = function () {
return(eval (this.pClip).body_mc);
};
oTigerHawk.getCenterX = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).center_mc._x;
oPoint.y = eval (this.pClip).center_mc._y;
eval (this.pClip).localToGlobal(oPoint);
return(oPoint.x);
};
oTigerHawk.getClipFrame = function () {
return(this.pClipFrame);
};
oTigerHawk.getClipX = function () {
return(eval (this.pClip)._x);
};
oTigerHawk.getClipY = function () {
return(eval (this.pClip)._y);
};
oTigerHawk.getCurrentWeapon = function () {
return(this.pCurrentWeapon);
};
oTigerHawk.getHealth = function () {
return(this.pHealth);
};
oTigerHawk.getHit = function (damage, crash) {
this.pHealth = this.getHealth() - damage;
if (this.pHealth <= 0) {
if (this.pAlive == true) {
this.pAlive = false;
this.pSpeed = 0;
if (crash == true) {
eval (this.pClip).gotoAndPlay("crash");
} else {
eval (this.pClip).flasher_mc.gotoAndPlay("go");
fnNoHealthLeft();
}
this.pHealth = 0;
}
} else {
eval (this.pClip).flasher_mc.gotoAndPlay("go");
}
oHealthDisplay.updateMeter();
};
oTigerHawk.getHitClip = function () {
return(eval (this.pClip).hitArea_mc);
};
oTigerHawk.getSpeed = function () {
return(this.pSpeed);
};
oTigerHawk.getSwatted = function (points) {
oScore.losePoints(points);
};
oTigerHawk.moveVertically = function (myY, mouseY) {
var vDist = (myY - mouseY);
var vMoveIncr = (vDist * this.pVertIncrMultiplier);
var vAbsMoveIncr = Math.abs(vMoveIncr);
if (vAbsMoveIncr <= this.pVertIncrMin) {
eval (this.pClip)._y = mouseY;
} else {
if (vAbsMoveIncr > this.pVertIncrMax) {
if (vMoveIncr < 0) {
vMoveIncr = -this.pVertIncrMax;
} else {
vMoveIncr = this.pVertIncrMax;
}
}
eval (this.pClip)._y = myY - vMoveIncr;
}
if (vDist > 0) {
if (this.getClipFrame() != "move_up") {
this.setClipFrame("move_up");
}
} else if (this.getClipFrame() != "move_down") {
this.setClipFrame("move_down");
}
};
oTigerHawk.pause = function () {
if (eval (this.pClip).missileStart_mc._currentframe != 1) {
eval (this.pClip).missileStart_mc.stop();
}
if (eval (this.pClip).bombStart_mc._currentframe != 1) {
eval (this.pClip).bombStart_mc.stop();
}
};
oTigerHawk.resetMe = function () {
this.pAlive = true;
this.pHealth = 100;
if (rContinue == true) {
eval (this.pClip)._y = this.pStartClipY;
} else {
this.pStartClipY = eval (this.pClip)._y;
}
};
oTigerHawk.resume = function () {
this.setSpeed();
if (eval (this.pClip).missileStart_mc._currentframe != 1) {
eval (this.pClip).missileStart_mc.play();
}
if (eval (this.pClip).bombStart_mc._currentframe != 1) {
eval (this.pClip).bombStart_mc.play();
}
};
oTigerHawk.setClipFrame = function (clipframe) {
this.pClipFrame = clipframe;
eval (this.pClip).gotoAndStop(clipframe);
};
oTigerHawk.setCurrentWeapon = function (weapon) {
this.pCurrentWeapon = weapon;
};
oTigerHawk.setMaxMouseDist = function () {
this.pMaxDist = mouseXMax_mc._x - eval (this.pClip)._x;
};
oTigerHawk.setObjRef = function () {
eval (this.pClip).vObjRef = this;
};
oTigerHawk.setSpeed = function () {
if (this.pAlive == true) {
var vDist = (_xmouse - eval (this.pClip)._x);
var vMaxDist = this.pMaxDist;
var vMinSpeed = this.pMinSpeed;
var vMaxSpeed = this.pMaxSpeed;
if (vDist <= 0) {
this.pSpeed = vMinSpeed;
} else if (vDist >= vMaxDist) {
this.pSpeed = vMaxSpeed;
} else {
var vRatio = (vDist / vMaxDist);
vRatio = Math.round(vRatio * 100) / 100;
this.pSpeed = vMinSpeed + (vRatio * (vMaxSpeed - vMinSpeed));
}
} else {
this.pSpeed = 0;
}
};
oTigerHawk.setVerticalRange = function () {
this.pMouseYMax = tigerHawkYMax_mc._y;
this.pMouseYMin = tigerHawkYMin_mc._y;
};
BgElement = function (bgtype, speedfactor, objname, obstacle) {
this.pObjName = objname;
this.pType = bgtype;
this.pClip = bgtype + "_mc";
this.pSpeedMultiplier = speedfactor;
this.pXMax = eval (bgtype + "XMax_mc")._x;
this.pXMin = eval (bgtype + "XMin_mc")._x;
if (obstacle == true) {
this.pObstacle = true;
this.pCanAttack = false;
this.pCanBeKilled = false;
this.pCollisionDamageInflicted = 100;
this.pKilled = false;
oLauncher.activeEnemies_array.push(this);
} else {
this.pObstacle = false;
}
};
BgElement.prototype.getClip = function () {
return(this.pClip);
};
BgElement.prototype.getHitClip = function () {
return(this.pClip);
};
BgElement.prototype.getType = function () {
return(this.pType);
};
BgElement.prototype.hitByWeapon = function (weapontype, damage) {
};
BgElement.prototype.pause = function () {
};
BgElement.prototype.removeMe = function () {
fnRemoveObj(this.pObjName);
};
BgElement.prototype.resume = function () {
};
BgElement.prototype.scrollMe = function () {
var vClipX = eval (this.pClip)._x;
var vSpeed = (this.pSpeedMultiplier * oTigerHawk.getSpeed());
if ((vClipX - vSpeed) < this.pXMin) {
var vLeftover = (this.pXMin - (vClipX - vSpeed));
eval (this.pClip)._x = this.pXMax - vLeftover;
} else {
eval (this.pClip)._x = vClipX - vSpeed;
}
if (this.pObstacle == true) {
}
return(true);
};
Enemy = function () {
};
Enemy.prototype.addToScrollingObjsArray = function () {
scrollingObjs_array.push(this);
};
Enemy.prototype.getBeginX = function () {
return(this.pBeginX);
};
Enemy.prototype.getBeginY = function () {
return(this.pBeginY);
};
Enemy.prototype.getClip = function () {
return(this.pClip);
};
Enemy.prototype.getHitClip = function () {
return(this.pClip);
};
Enemy.prototype.removeFromScrollArray = function () {
var _local2 = this;
var _local1 = 0;
_local1 = 0;
while (_local1 < scrollingObjs_array.length) {
if (scrollingObjs_array[_local1] == _local2) {
scrollingObjs_array.splice(_local1, 1);
return;
}
_local1++;
}
};
Enemy.prototype.removeMe = function () {
var _local1 = this;
oLauncher.removeFromEnemyArray(_local1);
removeMovieClip(_local1.pClip);
var _local2 = String(_local1.pClip).substr(0, String(_local1.pClip).indexOf("_mc"));
var _local3 = "oEnemy_" + _local2;
fnRemoveObj(_local3);
};
Enemy.prototype.stopClip = function () {
this.pClipPlaying = false;
eval (this.pClip).stop();
};
Enemy_pulverizerWalk = function (clipname, cliplevel) {
this.pClip = clipname;
this.pClipPlaying = true;
this.pCollideWithTH = false;
this.pFirstShoot = true;
this.pHealth = 20;
this.pKilled = false;
this.pLevel = cliplevel;
eval (this.pClip).vObjRef = this;
eval (this.pClip).gotoAndPlay("start");
this.addToScrollingObjsArray();
this.setShootVar(false);
this.setSwatVar(false);
};
Enemy_pulverizerWalk.prototype = new Enemy();
Enemy_pulverizerWalk.prototype.pArmLowerFrameNum = 4;
Enemy_pulverizerWalk.prototype.pArmRaiseFrameNum = 4;
Enemy_pulverizerWalk.prototype.pBaseClip = "pulverizerWalk_mc";
Enemy_pulverizerWalk.prototype.pCanBeKilled = true;
Enemy_pulverizerWalk.prototype.pCollisionDamageInflicted = 5;
Enemy_pulverizerWalk.prototype.pCollisionDamageTaken = 5;
Enemy_pulverizerWalk.prototype.pKillPoints = 5;
Enemy_pulverizerWalk.prototype.pSwatPoints = 5;
Enemy_pulverizerWalk.prototype.pSpeed = 4;
Enemy_pulverizerWalk.prototype.calculateShootAngle = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).mechArm_mc._x;
oPoint.y = eval (this.pClip).mechArm_mc._y;
eval (this.pClip).localToGlobal(oPoint);
var vArmX = (oPoint.x - ((this.pSpeed + oTigerHawk.getSpeed()) * (this.pArmRaiseFrameNum + 5)));
var vArmY = oPoint.y;
var vTHX = oTigerHawk.getClipX();
var vTHY = oTigerHawk.getClipY();
if (Math.random() > oLevel.lev1.pMechShootAccuracy) {
vTHY = oTigerHawk.pMouseYMin + (Math.random() * (oTigerHawk.pMouseYMax - oTigerHawk.pMouseYMin));
}
var vRotation = 90;
if (vTHY < vArmY) {
var vOpp = (vArmY - vTHY);
var vAdj = (vArmX - vTHX);
var vHyp = Math.sqrt((vOpp * vOpp) + (vAdj * vAdj));
var vTheta = (Math.asin((1 * vOpp) / vHyp) / (Math.PI/180));
vRotation = vTheta + 90;
} else if (vTHY > vArmY) {
var vOpp = (vArmX - vTHX);
var vAdj = (vTHY - vArmY);
var vHyp = Math.sqrt((vOpp * vOpp) + (vAdj * vAdj));
vRotation = Math.asin((1 * vOpp) / vHyp) / (Math.PI/180);
}
this.pArmRotation = 0;
var vRandNum = Math.random();
if (vRandNum > 0.7) {
this.pTargetArmRotation = 90;
} else {
this.pTargetArmRotation = vRotation;
}
if (this.pTargetArmRotation == 90) {
this.pTargetArmRotation = 87.5;
}
this.pRotationSegment = this.pTargetArmRotation / this.pArmRaiseFrameNum;
};
Enemy_pulverizerWalk.prototype.callAttack = function (afterattack) {
var vAttack = false;
var vLevel = oLevel.getLevel();
var vMyX = eval (this.pClip)._x;
var vCanShoot = false;
var vCanSwat = true;
var vAttackType = null;
if (this.pFirstShoot == true) {
vAttackType = "shoot";
} else {
if (oLauncher.getLaunchedCount() >= 4) {
if ((vMyX <= this.pShootXMax) && (vMyX >= this.pShootXMin)) {
vCanShoot = true;
}
}
if ((vMyX <= this.pSwatMax) && (vMyX >= this.pSwatMin)) {
vCanSwat = true;
}
vRand = Math.random();
if (vCanShoot == true) {
if (vCanSwat == true) {
if (vRand > 0.5) {
vAttackType = "shoot";
} else {
vAttackType = "swat";
}
} else {
vAttackType = "shoot";
}
} else if (vCanSwat == true) {
if (vRand > 0.5) {
vAttackType = "swat";
}
}
}
if (vAttackType == "shoot") {
if (afterattack != true) {
eval (this.pClip).vShootAgain = true;
} else {
eval (this.pClip).vShootAgain = false;
}
if (rGameOn == true) {
eval (this.pClip).gotoAndPlay("shoot");
} else {
eval (this.pClip).gotoAndStop("shoot");
}
vAttack = true;
} else if (vAttackType == "swat") {
if ((eval (this.pClip)._x < (eval (oTigerHawk.pClip)._x + 180)) && (eval (this.pClip)._x > eval (oTigerHawk.pClip)._x)) {
this.setSwatVar(true);
if (rGameOn == true) {
eval (this.pClip).gotoAndPlay("swat");
} else {
eval (this.pClip).gotoAndStop("swat");
}
vAttack = true;
}
}
if (vAttack == false) {
if (rGameOn == true) {
if (vLevel == 1) {
eval (this.pClip).gotoAndPlay("walk");
} else {
eval (this.pClip).gotoAndStop("base");
}
} else if (vLevel == 1) {
eval (this.pClip).gotoAndStop("walk");
} else {
eval (this.pClip).gotoAndStop("base");
}
}
};
Enemy_pulverizerWalk.prototype.checkInitContact = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).missile_mc._x;
oPoint.y = eval (this.pClip).missile_mc._y;
eval (this.pClip).localToGlobal(oPoint);
if (eval (oTigerHawk.getBodyClip()).hitTest(oPoint.x, oPoint.y, true)) {
oExplosions.fire(oPoint.x, oPoint.y, "MechMissile");
eval (this.pClip).gotoAndPlay("shoot_end");
}
};
Enemy_pulverizerWalk.prototype.collideWithTigerHawk = function () {
this.pCollideWithTH = true;
if (this.getSwatVar() == true) {
oTigerHawk.getSwatted(this.pSwatPoints);
} else {
this.pHealth = this.pHealth - this.pCollisionDamageTaken;
if (this.pHealth <= 0) {
this.pKilled = true;
this.pSpeed = 0;
if (Math.random() > 0.5) {
eval (this.pClip).gotoAndPlay("die_right");
} else {
eval (this.pClip).gotoAndPlay("die_left");
}
oScore.addPoints(this.pKillPoints);
}
}
};
Enemy_pulverizerWalk.prototype.fireMissile = function () {
var _local1 = this;
var _local2 = rWeaponLevel;
Set("oMechMissile" + _local2, new MechMissile(_local2, _local1.pTargetArmRotation, _local1.pMissileStartX, _local1.pMissileStartY, _local1.pMissileXMoveRatio, _local1.pMissileYMoveRatio));
rWeaponLevel++;
delete _local1.pMissileStartX;
delete _local1.pMissileStartY;
delete _local1.pMissileXMoveRatio;
delete _local1.pMissileYMoveRatio;
};
Enemy_pulverizerWalk.prototype.getArmRotation = function () {
return(this.pArmRotation);
};
Enemy_pulverizerWalk.prototype.getBeginX = function () {
return(eval (this.pBaseClip)._x);
};
Enemy_pulverizerWalk.prototype.getBeginY = function () {
return(eval (this.pBaseClip)._y);
};
Enemy_pulverizerWalk.prototype.getShootVar = function () {
return(this.pShooting);
};
Enemy_pulverizerWalk.prototype.getSwatVar = function () {
return(this.pSwatting);
};
Enemy_pulverizerWalk.prototype.hitByWeapon = function (weapontype, damage) {
this.pHealth = this.pHealth - damage;
if (this.pHealth <= 0) {
this.pKilled = true;
this.pSpeed = 0;
if (Math.random() > 0.5) {
eval (this.pClip).gotoAndPlay("die_left");
} else {
eval (this.pClip).gotoAndPlay("die_right");
}
oScore.addPoints(this.pKillPoints);
}
};
Enemy_pulverizerWalk.prototype.lowerArm = function () {
this.pArmRotation = this.getArmRotation() - this.pRotationSegment;
eval (this.pClip).mechArm_mc._rotation = this.getArmRotation();
};
Enemy_pulverizerWalk.prototype.pause = function () {
eval (this.pClip).stop();
if (this.getShootVar() == true) {
eval (this.pClip).mechArm_mc.stop();
}
};
Enemy_pulverizerWalk.prototype.placeMissile = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).mechArm_mc.missile_mc._x;
oPoint.y = eval (this.pClip).mechArm_mc.missile_mc._y;
eval (this.pClip).mechArm_mc.localToGlobal(oPoint);
if (eval (oTigerHawk.getBodyClip()).hitTest(oPoint.x, oPoint.y, true)) {
oExplosions.fire(oPoint.x, oPoint.y, "MechMissile");
eval (this.pClip).gotoAndPlay("shoot_end");
} else {
var vSpeed = (this.pSpeed + oTigerHawk.getSpeed());
if (this.pTargetArmRotation > 90) {
var vTheta = (this.pTargetArmRotation - 90);
var vAdjAngle = (90 - vTheta);
var vOpp = ((Math.sin(vTheta * (Math.PI/180)) * vSpeed) / 1);
var vAdj = ((Math.sin(vAdjAngle * (Math.PI/180)) * vSpeed) / 1);
this.pMissileStartX = oPoint.x - vAdj;
this.pMissileStartY = oPoint.y - vOpp;
this.pMissileXMoveRatio = -(vAdj / vSpeed);
this.pMissileYMoveRatio = -(vOpp / vSpeed);
} else if (this.pTargetArmRotation < 90) {
var vAdjAngle = this.pTargetArmRotation;
var vTheta = (90 - vAdjAngle);
vOpp = (Math.sin(vTheta * (Math.PI/180)) * vSpeed) / 1;
vAdj = (Math.sin(vAdjAngle * (Math.PI/180)) * vSpeed) / 1;
this.pMissileStartX = oPoint.x - vAdj;
this.pMissileStartY = oPoint.y + vOpp;
this.pMissileXMoveRatio = -(vAdj / vSpeed);
this.pMissileYMoveRatio = vOpp / vSpeed;
} else {
this.pMissileStartX = oPoint.x - vSpeed;
this.pMissileStartY = oPoint.y;
this.pMissileXMoveRatio = -vSpeed;
this.pMissileYMoveRatio = 0;
}
}
};
Enemy_pulverizerWalk.prototype.raiseArm = function () {
this.pArmRotation = this.getArmRotation() + this.pRotationSegment;
eval (this.pClip).mechArm_mc._rotation = this.getArmRotation();
};
Enemy_pulverizerWalk.prototype.resume = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).play();
if (this.getShootVar() == true) {
eval (this.pClip).mechArm_mc.play();
}
}
};
Enemy_pulverizerWalk.prototype.scrollMe = function () {
var vSpeed = (this.pSpeed + oTigerHawk.getSpeed());
var vCanScroll = true;
var vClipX = eval (this.pClip)._x;
if ((vClipX - vSpeed) < this.pMinX) {
vCanScroll = false;
this.removeMe();
} else {
eval (this.pClip)._x = vClipX - vSpeed;
}
return(vCanScroll);
};
Enemy_pulverizerWalk.prototype.setPositions = function () {
var _local1 = this;
_local1.pMinX = pulverizerWalkXMin_mc._x;
_local1.pShootXMax = pulverizerWalkShootXMax_mc._x;
_local1.pShootXMin = pulverizerWalkShootXMin_mc._x;
_local1.pSwatXMax = pulverizerWalkSwatXMax_mc._x;
_local1.pSwatXMin = pulverizerWalkSwatXMin_mc._x;
};
Enemy_pulverizerWalk.prototype.setShootVar = function (val) {
this.pShooting = val;
};
Enemy_pulverizerWalk.prototype.setSwatVar = function (val) {
this.pSwatting = val;
};
Enemy_pulverizerWalk.prototype.shoot = function () {
this.pShooting = true;
this.pRotationSegment = this.pTargetArmRotation / this.pArmLowerFrameNum;
eval (this.pClip).mechArm_mc.gotoAndPlay("shoot");
};
Enemy_nAdderRight = function (clipname, cliplevel) {
this.pClip = clipname;
this.pClipPlaying = false;
this.pCollideWithTH = false;
this.pHealth = 12;
this.pKilled = false;
this.pLevel = cliplevel;
eval (this.pClip).vObjRef = this;
eval (this.pClip).vAttackTravelMin = 30;
eval (this.pClip).vAttackTravelMax = 90;
eval (this.pClip).gotoAndStop("base");
this.addToScrollingObjsArray();
};
Enemy_nAdderRight.prototype = new Enemy();
Enemy_nAdderRight.prototype.pBaseClip = "nAdderRight_mc";
Enemy_nAdderRight.prototype.pCanBeKilled = true;
Enemy_nAdderRight.prototype.pCollisionDamageInflicted = 5;
Enemy_nAdderRight.prototype.pCollisionDamageTaken = 5;
Enemy_nAdderRight.prototype.pKillPoints = 5;
Enemy_nAdderRight.prototype.pSpeed = oTigerHawk.pMinSpeed + ((oTigerHawk.pMaxSpeed - oTigerHawk.pMinSpeed) / 1.5);
Enemy_nAdderRight.prototype.callAttack = function () {
var vMyX = eval (this.pClip)._x;
if ((vMyX >= this.pAttackXMin) && (vMyX <= this.pAttackXMax)) {
eval (this.pClip).gotoAndPlay("shoot");
this.pClipPlaying = true;
} else {
eval (this.pClip).attackCaller_mc.gotoAndPlay("reset");
}
};
Enemy_nAdderRight.prototype.checkInitialLasers = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).lasers_mc._x;
oPoint.y = eval (this.pClip).lasers_mc._y;
var vLaserWidth = Math.floor(oPoint.x);
eval (this.pClip).localToGlobal(oPoint);
var vLaserX = oPoint.x;
var vLaserY = oPoint.y;
var trajXValues_array = new Array();
var vContact = false;
var i = 0;
i = 0;
while (i < vLaserWidth) {
trajXValues_array.push(vLaserX - i);
i++;
}
var j = 0;
j = 0;
while (j < trajXValues_array.length) {
if (eval (oTigerHawk.getBodyClip()).hitTest(trajXValues_array[j], vLaserY, true)) {
vContact = true;
break;
}
var k = 0;
k = 0;
while (k < oLauncher.activeEnemies_array.length) {
var vEnemyObj = oLauncher.getActiveEnemy(k);
if (vEnemyObj.pCanBeKilled == false) {
if (eval (vEnemyObj.pClip).hitTest(trajXValues_array[j], vLaserY, true)) {
vContact = true;
k = oLauncher.activeEnemies_array.length;
j = trajXValues_array.length;
}
}
k++;
}
j++;
}
if (vContact == true) {
this.pClipPlaying = false;
eval (this.pClip).gotoAndStop("base");
this.doneShooting();
} else if (rGameOn == true) {
eval (this.pClip).play();
} else {
eval (this.pClip).stop();
}
};
Enemy_nAdderRight.prototype.collideWithEnemy = function () {
this.die(true);
};
Enemy_nAdderRight.prototype.collideWithTigerHawk = function () {
var _local1 = this;
_local1.pCollideWithTH = true;
_local1.pHealth = _local1.pHealth - _local1.pCollisionDamageTaken;
if (_local1.pHealth <= 0) {
_local1.die();
}
};
Enemy_nAdderRight.prototype.die = function (collide) {
this.pHealth = 0;
this.pKilled = true;
this.pSpeed = 0;
eval (this.pClip).gotoAndPlay("die");
this.pClipPlaying = true;
if (collide != true) {
oScore.addPoints(this.pKillPoints);
}
};
Enemy_nAdderRight.prototype.doneShooting = function () {
this.pShootTimerOn = true;
nALeftShootReset_mc.gotoAndPlay("go");
};
Enemy_nAdderRight.prototype.fireLasers = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).lasers_mc._x;
oPoint.y = eval (this.pClip).lasers_mc._y;
eval (this.pClip).localToGlobal(oPoint);
var vLaunchX = oPoint.x;
var vLaunchY = oPoint.y;
var vLev = rWeaponLevel;
rWeaponLevel++;
Set("oNAdderRightLaser" + vLev, new NAdderRightLaser(vLev, vLaunchX, vLaunchY, this));
this.pClipPlaying = false;
eval (this.pClip).gotoAndStop("base");
};
Enemy_nAdderRight.prototype.getBeginX = function () {
return(eval (this.pBaseClip)._x);
};
Enemy_nAdderRight.prototype.getBeginY = function () {
var _local2 = this;
var _local1 = _local2.pBeginYMax - _local2.pBeginYMin;
var _local3 = _local2.pBeginYMin + (Math.random() * _local1);
return(_local3);
};
Enemy_nAdderRight.prototype.hitByWeapon = function (weapontype, damage) {
var _local1 = this;
_local1.pHealth = _local1.pHealth - damage;
if (_local1.pHealth <= 0) {
_local1.pSpeed = 0;
_local1.pSpeed = 0;
_local1.die();
}
};
Enemy_nAdderRight.prototype.pause = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).stop();
} else {
eval (this.pClip).attackCaller_mc.stop();
}
};
Enemy_nAdderRight.prototype.resume = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).play();
} else {
eval (this.pClip).attackCaller_mc.play();
}
};
Enemy_nAdderRight.prototype.scrollMe = function () {
var vSpeed = (this.pSpeed + oTigerHawk.getSpeed());
var vCanScroll = true;
var vClipX = eval (this.pClip)._x;
if ((vClipX - vSpeed) < this.pMinX) {
vCanScroll = false;
this.removeMe();
} else {
eval (this.pClip)._x = vClipX - vSpeed;
}
return(vCanScroll);
};
Enemy_nAdderRight.prototype.setPositions = function () {
var _local1 = this;
_local1.pAttackXMin = nAdderRightShootXMin_mc._x;
_local1.pAttackXMax = nAdderRightShootXMax_mc._x;
_local1.pBeginYMin = nAdderRightYMin_mc._y;
_local1.pBeginYMax = nAdderRightYMax_mc._y;
_local1.pMinX = nAdderRightXMin_mc._x;
};
Enemy_nAdderLeft = function (clipname, cliplevel) {
this.pClip = clipname;
this.pClipPlaying = false;
this.pCollideWithTH = false;
this.pHealth = 12;
this.pKilled = false;
this.pLevel = cliplevel;
eval (this.pClip).vObjRef = this;
eval (this.pClip).vAttackTravelMin = 30;
eval (this.pClip).vAttackTravelMax = 90;
eval (this.pClip).gotoAndStop("base");
this.addToScrollingObjsArray();
};
Enemy_nAdderLeft.prototype = new Enemy();
Enemy_nAdderLeft.prototype.pBaseClip = "nAdderLeftCopy_mc";
Enemy_nAdderLeft.prototype.pCanBeKilled = true;
Enemy_nAdderLeft.prototype.pCollisionDamageInflicted = 5;
Enemy_nAdderLeft.prototype.pCollisionDamageTaken = 5;
Enemy_nAdderLeft.prototype.pKillPoints = 5;
Enemy_nAdderLeft.prototype.pSpeed = oTigerHawk.pMaxSpeed / 2;
Enemy_nAdderLeft.prototype.callAttack = function () {
var vMyX = eval (this.pClip)._x;
if ((vMyX >= this.pAttackXMin) && (vMyX <= this.pAttackXMax)) {
eval (this.pClip).gotoAndPlay("shoot");
this.pClipPlaying = true;
} else {
eval (this.pClip).attackCaller_mc.gotoAndPlay("reset");
}
};
Enemy_nAdderLeft.prototype.collideWithEnemy = function () {
this.die(true);
};
Enemy_nAdderLeft.prototype.collideWithTigerHawk = function () {
var _local1 = this;
_local1.pCollideWithTH = true;
_local1.pHealth = _local1.pHealth - _local1.pCollisionDamageTaken;
if (_local1.pHealth <= 0) {
_local1.die();
}
};
Enemy_nAdderLeft.prototype.checkInitialLasers = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).lasers_mc._x;
oPoint.y = eval (this.pClip).lasers_mc._y;
var vLaserWidth = Math.floor(oPoint.x);
eval (this.pClip).localToGlobal(oPoint);
var vLaserX = oPoint.x;
var vLaserY = oPoint.y;
var trajXValues_array = new Array();
var vContact = false;
var i = 0;
i = 0;
while (i < vLaserWidth) {
trajXValues_array.push(vLaserX - i);
i++;
}
var j = 0;
j = 0;
while (j < trajXValues_array.length) {
if (eval (oTigerHawk.getBodyClip()).hitTest(trajXValues_array[j], vLaserY, true)) {
vContact = true;
break;
}
var k = 0;
k = 0;
while (k < oLauncher.activeEnemies_array.length) {
var vEnemyObj = oLauncher.getActiveEnemy(k);
if (vEnemyObj.pCanBeKilled == false) {
if (eval (vEnemyObj.pClip).hitTest(trajXValues_array[j], vLaserY, true)) {
vContact = true;
k = oLauncher.activeEnemies_array.length;
j = trajXValues_array.length;
}
}
k++;
}
j++;
}
if (vContact == true) {
this.pClipPlaying = false;
eval (this.pClip).gotoAndStop("base");
this.doneShooting();
} else if (rGameOn == true) {
eval (this.pClip).play();
} else {
eval (this.pClip).stop();
}
};
Enemy_nAdderLeft.prototype.die = function (collide) {
this.pHealth = 0;
this.pKilled = true;
this.pSpeed = 0;
eval (this.pClip).gotoAndPlay("die");
this.pClipPlaying = true;
if (collide != true) {
oScore.addPoints(this.pKillPoints);
}
};
Enemy_nAdderLeft.prototype.doneShooting = function () {
this.pShootTimerOn = true;
nALeftShootReset_mc.gotoAndPlay("go");
};
Enemy_nAdderLeft.prototype.fireLasers = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).lasers_mc._x;
oPoint.y = eval (this.pClip).lasers_mc._y;
eval (this.pClip).localToGlobal(oPoint);
var vLaunchX = oPoint.x;
var vLaunchY = oPoint.y;
var vLev = rWeaponLevel;
Set("oNAdderLeftLaser" + vLev, new NAdderLeftLaser(vLev, vLaunchX, vLaunchY));
rWeaponLevel++;
eval (this.pClip).gotoAndStop("base");
};
Enemy_nAdderLeft.prototype.getBeginX = function () {
return(eval (this.pBaseClip)._x);
};
Enemy_nAdderLeft.prototype.getBeginY = function () {
var _local2 = this;
var _local1 = _local2.pBeginYMax - _local2.pBeginYMin;
var _local3 = _local2.pBeginYMin + (Math.random() * _local1);
return(_local3);
};
Enemy_nAdderLeft.prototype.hitByWeapon = function (weapontype, damage) {
var _local1 = this;
_local1.pHealth = _local1.pHealth - damage;
if (_local1.pHealth <= 0) {
_local1.pSpeed = 0;
_local1.pSpeed = 0;
_local1.die();
}
};
Enemy_nAdderLeft.prototype.pause = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).stop();
} else {
eval (this.pClip).attackCaller_mc.stop();
}
};
Enemy_nAdderLeft.prototype.resume = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).play();
} else {
eval (this.pClip).attackCaller_mc.play();
}
};
Enemy_nAdderLeft.prototype.scrollMe = function () {
var vSpeed = (this.pSpeed + oTigerHawk.getSpeed());
var vCanScroll = true;
var vClipX = eval (this.pClip)._x;
if ((vClipX + vSpeed) > this.pMaxX) {
vCanScroll = false;
this.removeMe();
} else {
eval (this.pClip)._x = vClipX + vSpeed;
}
return(vCanScroll);
};
Enemy_nAdderLeft.prototype.setPositions = function () {
var _local1 = this;
_local1.pAttackXMin = nAdderLeftShootXMin_mc._x;
_local1.pAttackXMax = nAdderLeftShootXMax_mc._x;
_local1.pBeginYMin = nAdderLeftYMin_mc._y;
_local1.pBeginYMax = nAdderLeftYMax_mc._y;
_local1.pMaxX = nAdderLeftXMin_mc._x;
};
Enemy_aAGun = function (clipname, cliplevel) {
this.pClip = clipname;
this.pClipPlaying = false;
this.pCollideWithTH = false;
this.pHealth = 10;
this.pKilled = false;
this.pLevel = cliplevel;
this.pRotateFrameNum = 4;
eval (this.pClip).vObjRef = this;
eval (this.pClip).vAttackTravelMin = 50;
eval (this.pClip).vAttackTravelMax = 160;
eval (this.pClip).gotoAndStop("base");
eval (this.pClip)._rotation = Math.randomInteger(this.pBeginRotateMin, this.pBeginRotateMax);
this.addToScrollingObjsArray();
};
Enemy_aAGun.prototype = new Enemy();
Enemy_aAGun.prototype.pBeginRotateMin = 20;
Enemy_aAGun.prototype.pBeginRotateMax = 60;
Enemy_aAGun.prototype.pCanBeKilled = true;
Enemy_aAGun.prototype.pKillPoints = 5;
Enemy_aAGun.prototype.pRotateMin = 30;
Enemy_aAGun.prototype.pRotateMax = 150;
Enemy_aAGun.prototype.callAttack = function () {
var vMyX = eval (this.pClip)._x;
var vMyY = eval (this.pClip)._y;
var vTargetRot = 90;
if ((vMyX <= this.pAttackXMax) && (vMyX >= this.pAttackXMin)) {
var vAttackX = (vMyX - (this.getSpeed() * this.pRotateFrameNum));
var vXMultiplier = 5.2;
var vTHY = oTigerHawk.getClipY();
if ((vTHY <= this.pCalcLine) && (oTigerHawk.getSpeed() > (oTigerHawk.pMinSpeed + ((oTigerHawk.pMaxSpeed - oTigerHawk.pMinSpeed) / 2)))) {
vXMultiplier = 9;
}
var vTHX = (oTigerHawk.getClipX() + (oTigerHawk.getSpeed() * vXMultiplier));
var vTargetRot;
var vTheta;
var vOpp;
var vAdj;
var vHyp;
if (vAttackX == vTHX) {
vTargetRot = 90;
} else if (vAttackX > vTHX) {
vOpp = vMyY - vTHY;
vAdj = vAttackX - vTHX;
vHyp = Math.sqrt((vOpp * vOpp) + (vAdj * vAdj));
vTargetRot = Math.asin((1 * vOpp) / vHyp) / (Math.PI/180);
} else if (vAttackX < vTHX) {
vOpp = vMyY - vTHY;
vAdj = vTHX - vAttackX;
vHyp = Math.sqrt((vOpp * vOpp) + (vAdj * vAdj));
vTheta = Math.asin((1 * vOpp) / vHyp) / (Math.PI/180);
vTargetRot = 180 - vTheta;
}
if (vTargetRot < this.pRotateMin) {
vTargetRot = this.pRotateMin;
if (vTargetRot < 90) {
vTheta = vTargetRot;
vAdjAngle = 90 - vTheta;
vOpp = (Math.sin(vTheta * (Math.PI/180)) * vAdj) / Math.sin(vAdjAngle * (Math.PI/180));
vHyp = Math.sqrt((vAdj * vAdj) + (vOpp * vOpp));
} else if (vTargetRot > 90) {
vTheta = 180 - vTargetRot;
vAdjAngle = 90 - vTheta;
vOpp = (Math.sin(vTheta * (Math.PI/180)) * vAdj) / Math.sin(vAdjAngle * (Math.PI/180));
vHyp = Math.sqrt((vAdj * vAdj) + (vOpp * vOpp));
}
} else if (vTargetRot > this.pRotateMax) {
vTargetRot = this.pRotateMax;
if (vTargetRot < 90) {
vTheta = vTargetRot;
vAdjAngle = 90 - vTheta;
vOpp = (Math.sin(vTheta * (Math.PI/180)) * vAdj) / Math.sin(vAdjAngle * (Math.PI/180));
vHyp = Math.sqrt((vAdj * vAdj) + (vOpp * vOpp));
} else if (vTargetRot > 90) {
vTheta = 180 - vTargetRot;
vAdjAngle = 90 - vTheta;
vOpp = (Math.sin(vTheta * (Math.PI/180)) * vAdj) / Math.sin(vAdjAngle * (Math.PI/180));
vHyp = Math.sqrt((vAdj * vAdj) + (vOpp * vOpp));
}
}
var vCurrentRot = eval (this.pClip)._rotation;
this.pRotationSegment = Math.abs(vCurrentRot - vTargetRot) / this.pRotateFrameNum;
this.pClipPlaying = true;
if (vCurrentRot <= vTargetRot) {
eval (this.pClip).gotoAndPlay("rotate_up");
} else {
eval (this.pClip).gotoAndPlay("rotate_down");
}
if (vTargetRot == 90) {
this.pBulletXMoveRatio = 0;
this.pBulletYMoveRatio = 1;
} else {
this.pBulletXMoveRatio = vAdj / vHyp;
this.pBulletYMoveRatio = vOpp / vHyp;
}
} else {
eval (this.pClip).attackCaller_mc.gotoAndPlay("reset");
}
};
Enemy_aAGun.prototype.fireGun = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).bullet_mc._x;
oPoint.y = eval (this.pClip).bullet_mc._y;
eval (this.pClip).localToGlobal(oPoint);
var vRotation = eval (this.pClip)._rotation;
var vBulletStartX = oPoint.x;
var vBulletStartY = oPoint.y;
var vLev = rWeaponLevel;
rWeaponLevel++;
Set("oAAGunBullet" + vLev, new AAGunBullet(vLev, eval (this.pClip)._rotation, vBulletStartX, vBulletStartY, this.pBulletXMoveRatio, this.pBulletYMoveRatio));
delete this.pBulletXMoveRatio;
delete this.pBulletYMoveRatio;
eval (this.pClip).gotoAndStop("base");
this.pClipPlaying = false;
};
Enemy_aAGun.prototype.getSpeed = function () {
return(oTigerHawk.getSpeed());
};
Enemy_aAGun.prototype.hitByWeapon = function (weapontype, damage) {
this.pHealth = this.pHealth - damage;
if (this.pHealth <= 0) {
this.pKilled = true;
this.pClipPlaying = true;
eval (this.pClip).gotoAndPlay("explode");
oScore.addPoints(this.pKillPoints);
}
};
Enemy_aAGun.prototype.pause = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).stop();
} else {
eval (this.pClip).attackCaller_mc.stop();
}
};
Enemy_aAGun.prototype.resume = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).play();
} else {
eval (this.pClip).attackCaller_mc.play();
}
};
Enemy_aAGun.prototype.rotateDown = function () {
var vNewRot = (eval (this.pClip)._rotation - this.pRotationSegment);
eval (this.pClip)._rotation = vNewRot;
};
Enemy_aAGun.prototype.rotateUp = function () {
var vNewRot = (eval (this.pClip)._rotation + this.pRotationSegment);
eval (this.pClip)._rotation = vNewRot;
};
Enemy_aAGun.prototype.scrollMe = function () {
var vCanScroll = true;
var vMyX = eval (this.pClip)._x;
var vSpeed = this.getSpeed();
if ((vMyX - vSpeed) <= this.pMinX) {
vCanScroll = false;
this.removeMe();
} else {
eval (this.pClip)._x = eval (this.pClip)._x - vSpeed;
}
return(vCanScroll);
};
Enemy_aAGun.prototype.setPositions = function () {
var _local1 = this;
_local1.pAttackXMax = aAGunAttackXMax_mc._x;
_local1.pAttackXMin = aAGunAttackXMin_mc._x;
_local1.pBeginX = enemyObstBeginX_mc._x;
_local1.pBeginY = aAGun_mc._y;
_local1.pCalcLine = aAGunCalcMarker_mc._y;
_local1.pMinX = enemyObstXMin_mc._x;
};
Enemy_tikiHut = function (clipname, cliplevel) {
this.pClip = clipname;
this.pClipPlaying = false;
this.pHealth = 1;
this.pKilled = false;
this.pLevel = cliplevel;
eval (this.pClip).vObjRef = this;
eval (this.pClip).gotoAndStop("base");
this.addToScrollingObjsArray();
};
Enemy_tikiHut.prototype = new Enemy();
Enemy_tikiHut.prototype.pCanBeKilled = true;
Enemy_tikiHut.prototype.pKillPoints = 0;
Enemy_tikiHut.prototype.hitByWeapon = function (weapontype, damage) {
this.pHealth = this.pHealth - damage;
if (this.pHealth <= 0) {
this.pKilled = true;
this.pClipPlaying = true;
eval (this.pClip).gotoAndPlay("die");
oScore.addPoints(this.pKillPoints);
}
};
Enemy_tikiHut.prototype.pause = function () {
eval (this.pClip).stop();
};
Enemy_tikiHut.prototype.resume = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).play();
}
};
Enemy_tikiHut.prototype.scrollMe = function () {
var vCanScroll = true;
var vNextX = (eval (this.pClip)._x - oTigerHawk.getSpeed());
if (vNextX <= this.pMinX) {
vCanScroll = false;
this.removeMe();
} else {
eval (this.pClip)._x = eval (this.pClip)._x - oTigerHawk.getSpeed();
}
return(vCanScroll);
};
Enemy_tikiHut1 = function (clipname, cliplevel) {
super(clipname, cliplevel);
};
Enemy_tikiHut1.prototype = new Enemy_tikiHut();
Enemy_tikiHut1.prototype.setPositions = function () {
var _local1 = this;
_local1.pBeginX = enemyObstBeginX_mc._x;
_local1.pBeginY = tikiHut1_mc._y;
_local1.pMinX = enemyObstXMin_mc._x;
};
Enemy_tikiHut2 = function (clipname, cliplevel) {
super(clipname, cliplevel);
};
Enemy_tikiHut2.prototype = new Enemy_tikiHut();
Enemy_tikiHut2.prototype.setPositions = function () {
var _local1 = this;
_local1.pBeginX = enemyObstBeginX_mc._x;
_local1.pBeginY = tikiHut2_mc._y;
_local1.pMinX = enemyObstXMin_mc._x;
};
Enemy_heli = function (clipname, cliplevel) {
this.pClip = clipname;
this.pClipPlaying = false;
this.pCollideWithTH = false;
this.pHealth = 14;
this.pKilled = false;
this.pLevel = cliplevel;
eval (this.pClip).vObjRef = this;
eval (this.pClip).vAttackTravelMin = 30;
eval (this.pClip).vAttackTravelMax = 110;
eval (this.pClip).gotoAndStop("base");
if (eval (this.pClip).vLiftUp == true) {
eval (this.pClip)._rotation = 10;
this.pAscending = false;
this.pAtTop = false;
this.pTopY = this.getBeginY();
this.pLiftUp = true;
this.pSpeed = 0;
oLevel.lev3.pLastLiftUpHeli = this;
this.addHut();
} else {
this.pLiftUp = false;
}
this.addToScrollingObjsArray();
if (oLevel.getLevel() == 3) {
if (oLevel.lev3.pHeliLaunched == false) {
oLevel.lev3.pHeliLaunched = true;
}
}
};
Enemy_heli.prototype = new Enemy();
Enemy_heli.prototype.pAscendIncr = 3;
Enemy_heli.prototype.pCanBeKilled = true;
Enemy_heli.prototype.pCollisionDamageInflicted = 5;
Enemy_heli.prototype.pCollisionDamageTaken = 5;
Enemy_heli.prototype.pKillPoints = 5;
Enemy_heli.prototype.pRotationIncr = 1;
Enemy_heli.prototype.pSpeed = oTigerHawk.pMinSpeed + ((oTigerHawk.pMaxSpeed - oTigerHawk.pMinSpeed) / 3);
Enemy_heli.prototype.pSpeedIncr = 0.2;
Enemy_heli.prototype.addHut = function () {
var vTikiLev = (this.pLevel + 1);
var vTiki = (("tikiHut2_" + vTikiLev) + "_mc");
attachMovie("tikiHut2", vTiki, vTikiLev);
eval (vTiki)._x = eval (this.pClip)._x;
eval (vTiki)._y = Enemy_tikiHut2.prototype.getBeginY();
oLauncher.launch("tikiHut2", vTiki, vTikiLev);
};
Enemy_heli.prototype.callAttack = function () {
var vMyX = eval (this.pClip)._x;
if ((vMyX >= this.pAttackXMin) && (vMyX <= this.pAttackXMax)) {
var vAttack = true;
if (this.pLiftUp == true) {
var vMyY = eval (this.pClip)._y;
if (vMyY > this.pLiftUpAttackY) {
vAttack = false;
}
}
if (vAttack == true) {
this.pClipPlaying = true;
eval (this.pClip).gotoAndPlay("shoot_missile");
} else {
eval (this.pClip).attackCaller_mc.gotoAndPlay("reset");
}
} else {
eval (this.pClip).attackCaller_mc.gotoAndPlay("reset");
}
};
Enemy_heli.prototype.collideWithTigerHawk = function () {
var _local1 = this;
_local1.pCollideWithTH = true;
_local1.pHealth = _local1.pHealth - _local1.pCollisionDamageTaken;
if (_local1.pHealth <= 0) {
_local1.die();
}
};
Enemy_heli.prototype.die = function () {
this.pKilled = true;
this.pClipPlaying = true;
this.pSpeed = 0;
eval (this.pClip).gotoAndPlay("die");
oScore.addPoints(this.pKillPoints);
};
Enemy_heli.prototype.fireMissile = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).missile_mc._x;
oPoint.y = eval (this.pClip).missile_mc._y;
eval (this.pClip).localToGlobal(oPoint);
var vLaunchX = oPoint.x;
var vLaunchY = oPoint.y;
var vLev = rWeaponLevel;
Set("oHeliMissile" + vLev, new HeliMissile(vLev, vLaunchX, vLaunchY, this));
rWeaponLevel++;
eval (this.pClip).gotoAndStop("base");
this.pClipPlaying = false;
};
Enemy_heli.prototype.getBeginY = function (liftup) {
var _local2 = this;
var _local1;
if (liftup == true) {
_local1 = _local2.pBeginLiftUpY;
} else {
_local1 = _local2.pBeginYMin + (Math.random() * (_local2.pBeginYMax - _local2.pBeginYMin));
}
return(_local1);
};
Enemy_heli.prototype.getSpeed = function () {
return(this.pSpeed + oTigerHawk.getSpeed());
};
Enemy_heli.prototype.hitByWeapon = function (weapontype, damage) {
var _local1 = this;
_local1.pHealth = _local1.pHealth - damage;
if (_local1.pHealth <= 0) {
_local1.die();
}
};
Enemy_heli.prototype.pause = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).stop();
} else {
eval (this.pClip).attackCaller_mc.stop();
}
};
Enemy_heli.prototype.resume = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).play();
} else {
eval (this.pClip).attackCaller_mc.play();
}
};
Enemy_heli.prototype.scrollMe = function () {
var vCanScroll = true;
var vNextX = (eval (this.pClip)._x - this.getSpeed());
if (vNextX <= this.pXMin) {
vCanScroll = false;
this.removeMe();
} else {
if (this.pLiftUp == true) {
if (this.pAtTop == false) {
if (vNextX <= this.pLiftUpX) {
if (this.pAscending == false) {
this.pAscending = true;
} else {
var vNextY = (eval (this.pClip)._y - this.pAscendIncr);
if (vNextY <= this.pTopY) {
eval (this.pClip)._y = this.pTopY;
this.pAscending = false;
this.pAtTop = true;
} else {
eval (this.pClip)._y = eval (this.pClip)._y - this.pAscendIncr;
}
}
}
} else {
var vRotation = eval (this.pClip)._rotation;
if (vRotation > 0) {
if ((vRotation - this.pRotationIncr) >= 0) {
eval (this.pClip)._rotation = Number(eval (this.pClip)._rotation) - this.pRotationIncr;
if ((this.pSpeed + this.pSpeedIncr) <= Enemy_heli.prototype.pSpeed) {
this.pSpeed = this.pSpeed + this.pSpeedIncr;
} else {
this.pSpeed = Enemy_heli.prototype.pSpeed;
}
} else {
eval (this.pClip)._rotation = 0;
}
} else if ((this.pSpeed + this.pSpeedIncr) <= Enemy_heli.prototype.pSpeed) {
this.pSpeed = this.pSpeed + this.pSpeedIncr;
} else {
this.pSpeed = Enemy_heli.prototype.pSpeed;
}
}
}
eval (this.pClip)._x = vNextX;
}
return(vCanScroll);
};
Enemy_heli.prototype.setPositions = function () {
var _local1 = this;
_local1.pAttackXMin = heliAttackXMin_mc._x;
_local1.pAttackXMax = heliAttackXMax_mc._x;
if (oLevel.getLevel() == 3) {
_local1.pBeginLiftUpY = liftUpHeliBeginY_mc._y;
_local1.pLiftUpAttackY = heliLiftUpAttackY_mc._y;
_local1.pLiftUpClearX = heliLiftOffClearX_mc._x;
_local1.pLiftUpX = heliLiftUpX_mc._x;
}
_local1.pBeginX = heli_mc._x;
_local1.pBeginYMin = heliBeginYMin_mc._y;
_local1.pBeginYMax = heliBeginYMax_mc._y;
_local1.pXMin = heliXMin_mc._x;
};
Enemy_paraBomb = function (clipname, cliplevel) {
this.pClip = clipname;
this.pClipPlaying = false;
this.pCollideWithTH = false;
this.pHealth = 1;
this.pKilled = false;
this.pLanded = false;
this.pLevel = cliplevel;
eval (this.pClip).vObjRef = this;
eval (this.pClip).gotoAndStop("base");
this.addToScrollingObjsArray();
};
Enemy_paraBomb.prototype = new Enemy();
Enemy_paraBomb.prototype.pCanBeKilled = true;
Enemy_paraBomb.prototype.pCollisionDamageInflicted = 10;
Enemy_paraBomb.prototype.pCollisionDamageTaken = 5;
Enemy_paraBomb.prototype.pKillPoints = 5;
Enemy_paraBomb.prototype.pSpeed = 0;
Enemy_paraBomb.prototype.pVertSpeed = 1.5;
Enemy_paraBomb.prototype.collideWithTigerHawk = function () {
var _local1 = this;
_local1.pCollideWithTH = true;
_local1.pHealth = _local1.pHealth - _local1.pCollisionDamageTaken;
if (_local1.pHealth <= 0) {
_local1.die();
}
};
Enemy_paraBomb.prototype.die = function () {
this.pKilled = true;
this.pClipPlaying = true;
eval (this.pClip).gotoAndPlay("explode");
oScore.addPoints(this.pKillPoints);
};
Enemy_paraBomb.prototype.getBeginX = function () {
return(this.pBeginXMin + (Math.random() * this.pBeginXRange));
};
Enemy_paraBomb.prototype.getHitClip = function () {
return(eval (this.pClip).hitArea_mc);
};
Enemy_paraBomb.prototype.getSpeed = function () {
return(this.pSpeed + oTigerHawk.getSpeed());
};
Enemy_paraBomb.prototype.hitByWeapon = function (weapontype, damage) {
var _local1 = this;
_local1.pHealth = _local1.pHealth - damage;
if (_local1.pHealth <= 0) {
_local1.die();
}
};
Enemy_paraBomb.prototype.pause = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).stop();
}
};
Enemy_paraBomb.prototype.resume = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).play();
}
};
Enemy_paraBomb.prototype.scrollMe = function () {
var vCanScroll = true;
var vNextX = (eval (this.pClip)._x - this.getSpeed());
var vNextY = (eval (this.pClip)._y + this.pVertSpeed);
if (vNextX <= this.pXMin) {
vCanScroll = false;
this.removeMe();
} else if (this.pLanded == false) {
if (vNextY >= this.pYMax) {
this.pLanded = true;
eval (this.pClip)._y = this.pYMax;
eval (this.pClip).gotoAndPlay("land");
this.pClipPlaying = true;
}
}
if (vCanScroll == true) {
eval (this.pClip)._x = vNextX;
if (this.pLanded == false) {
eval (this.pClip)._y = vNextY;
}
}
return(vCanScroll);
};
Enemy_paraBomb.prototype.setPositions = function () {
var _local1 = this;
_local1.pBeginY = paraBomb_mc._y;
_local1.pBeginXMin = paraBombBeginXMin_mc._x;
_local1.pBeginXMax = paraBombBeginXMax_mc._x;
_local1.pBeginXRange = _local1.pBeginXMax - _local1.pBeginXMin;
_local1.pXMin = paraBombXMin_mc._x;
_local1.pYMax = paraBombYMax_mc._y;
};
Enemy_hangGlider = function (clipname, cliplevel) {
this.pClip = clipname;
eval (this.pClip).vAttackTravelMin = 25;
eval (this.pClip).vAttackTravelMax = 65;
this.pClipPlaying = false;
this.pCollideWithEnemy = false;
this.pCollideWithTH = false;
this.pHealth = 2;
if (eval (this.pClip).vBomber == true) {
this.pBomber = true;
} else {
this.pBomber = false;
if (Math.random() < oLevel.lev4.pIntelProb) {
this.pIntelligent = true;
} else {
this.pDestY = Math.round(this.getRandomY());
this.pIntelligent = false;
}
}
this.pKilled = false;
this.pLevel = cliplevel;
eval (this.pClip).vObjRef = this;
eval (this.pClip).gotoAndStop("base");
this.addToScrollingObjsArray();
};
Enemy_hangGlider.prototype = new Enemy();
Enemy_hangGlider.prototype.pCanBeKilled = true;
Enemy_hangGlider.prototype.pCollisionDamageInflicted = 5;
Enemy_hangGlider.prototype.pCollisionDamageTaken = 5;
Enemy_hangGlider.prototype.pContactPoints = 6;
Enemy_hangGlider.prototype.pKillPoints = 5;
Enemy_hangGlider.prototype.pVertMoveIncr = 1.5;
Enemy_hangGlider.prototype.callAttack = function () {
var vMyX = eval (this.pClip)._x;
var vAttack = false;
if (this.pBomber == true) {
if ((vMyX >= this.pBombDropXMin) && (vMyX <= this.pBombDropXMax)) {
eval (this.pClip).gotoAndPlay("drop_bomb");
vAttack = true;
}
} else if ((vMyX >= this.pAttackXMin) && (vMyX <= this.pAttackXMax)) {
eval (this.pClip).gotoAndPlay("shoot");
vAttack = true;
}
if (vAttack == true) {
this.pClipPlaying = true;
} else {
eval (this.pClip).attackCaller_mc.gotoAndPlay("reset");
}
};
Enemy_hangGlider.prototype.collideWithEnemy = function () {
this.pCollideWithEnemy = true;
this.die(true);
};
Enemy_hangGlider.prototype.collideWithTigerHawk = function () {
var _local1 = this;
_local1.pCollideWithTH = true;
_local1.pHealth = _local1.pHealth - _local1.pCollisionDamageTaken;
if (_local1.pHealth <= 0) {
_local1.die();
}
};
Enemy_hangGlider.prototype.die = function (collide) {
this.pHealth = 0;
this.pSpeed = 0;
this.pKilled = true;
eval (this.pClip).gotoAndPlay("die");
this.pClipPlaying = true;
if (collide != true) {
oScore.addPoints(this.pKillPoints);
}
};
Enemy_hangGlider.prototype.getBeginY = function (bomber) {
var _local1;
if (bomber == true) {
_local1 = this.pBeginBomberY;
} else {
_local1 = this.getRandomY();
}
return(_local1);
};
Enemy_hangGlider.prototype.getRandomY = function () {
return(this.pBeginYMin + (Math.random() * this.pBeginYRange));
};
Enemy_hangGlider.prototype.hitByWeapon = function (weapontype, damage) {
var _local1 = this;
_local1.pHealth = _local1.pHealth - damage;
if (_local1.pHealth <= 0) {
_local1.pSpeed = 0;
_local1.die();
}
};
Enemy_hangGlider.prototype.moveVertically = function () {
var vMyY = eval (this.pClip)._y;
var vNextY;
if (this.pIntelligent == true) {
this.pDestY = Math.round(oTigerHawk.getClipY());
if (this.pDestY < vMyY) {
if ((vMyY - this.pVertMoveIncr) > this.pDestY) {
vNextY = vMyY - this.pVertMoveIncr;
} else {
vNextY = this.pDestY;
}
} else if (this.pDestY > vMyY) {
if ((vMyY + this.pVertMoveIncr) < this.pDestY) {
vNextY = vMyY + this.pVertMoveIncr;
} else {
vNextY = this.pDestY;
}
}
} else if (vMyY > this.pDestY) {
if ((vMyY - this.pVertMoveIncr) > this.pDestY) {
vNextY = vMyY - this.pVertMoveIncr;
} else {
vNextY = this.pDestY;
}
} else if (vMyY < this.pDestY) {
if ((vMyY + this.pVertMoveIncr) < this.pDestY) {
vNextY = vMyY + this.pVertMoveIncr;
} else {
vNextY = this.pDestY;
}
} else {
this.pDestY = Math.round(this.getRandomY());
vNextY = vMyY;
}
eval (this.pClip)._y = vNextY;
};
Enemy_hangGlider.prototype.pause = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).stop();
} else {
eval (this.pClip).attackCaller_mc.stop();
}
};
Enemy_hangGlider.prototype.resume = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).play();
} else {
eval (this.pClip).attackCaller_mc.play();
}
};
Enemy_hangGlider.prototype.setPositions = function () {
var _local1 = this;
_local1.pBeginBomberY = HGBomberStartY_mc._y;
_local1.pBombDropXMax = HGBombDropXMax_mc._x;
_local1.pBombDropXMin = HGBombDropXMin_mc._x;
};
Enemy_hangGliderRight = function (clipname, cliplevel) {
super(clipname, cliplevel);
};
Enemy_hangGliderRight.prototype = new Enemy_hangGlider();
Enemy_hangGliderRight.prototype.pSpeed = 0.5;
Enemy_hangGliderRight.prototype.dropBomb = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).bomb_mc._x;
oPoint.y = eval (this.pClip).bomb_mc._y;
eval (this.pClip).localToGlobal(oPoint);
var vLev = rWeaponLevel;
rWeaponLevel++;
Set("oHGBomb" + vLev, new HGRightBomb(vLev, oPoint.x, oPoint.y));
eval (this.pClip).gotoAndStop("base");
this.pClipPlaying = false;
};
Enemy_hangGliderRight.prototype.fire = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).bullet_mc._x;
oPoint.y = eval (this.pClip).bullet_mc._y;
eval (this.pClip).localToGlobal(oPoint);
var vLev = rWeaponLevel;
rWeaponLevel++;
Set("oHGBullet" + vLev, new HGRightBullet(vLev, oPoint.x, oPoint.y));
eval (this.pClip).gotoAndStop("base");
this.pClipPlaying = false;
};
Enemy_hangGliderRight.prototype.getSpeed = function () {
return(this.pSpeed + oTigerHawk.getSpeed());
};
Enemy_hangGliderRight.prototype.scrollMe = function () {
var vCanScroll = true;
var vNextX = (eval (this.pClip)._x - this.getSpeed());
if (vNextX <= this.pXMin) {
vCanScroll = false;
this.removeMe();
} else {
if (this.pCollideWithEnemy == false) {
var i = 0;
i = 0;
while (i < oLauncher.activeEnemies_array.length) {
var vEnemyObj = oLauncher.getActiveEnemy(i);
if (vEnemyObj != this) {
var j = 1;
j = 1;
while (j <= this.pContactPoints) {
var oPoint = new Object();
oPoint.x = eval (((this.pClip + ".contactPoint") + j) + "_mc")._x;
oPoint.y = eval (((this.pClip + ".contactPoint") + j) + "_mc")._y;
eval (this.pClip).localToGlobal(oPoint);
if (eval (vEnemyObj.pClip).hitTest(oPoint.x, oPoint.y, true)) {
vCanScroll = false;
this.collideWithEnemy();
if (vEnemyObj.pCanBeKilled == true) {
vEnemyObj.collideWithEnemy();
}
break;
}
delete oPoint;
j++;
}
}
delete vEnemyObj;
i++;
}
}
if (vCanScroll == true) {
eval (this.pClip)._x = vNextX;
if (this.pBomber == false) {
this.moveVertically();
}
}
}
return(vCanScroll);
};
Enemy_hangGliderRight.prototype.setPositions = function () {
var _local1 = this;
_local1.pAttackXMin = hangGliderRightAttackXMin_mc._x;
_local1.pAttackXMax = hangGliderRightAttackXMax_mc._x;
_local1.pBeginX = hangGliderRight_mc._x;
_local1.pBeginYMin = hangGliderRightBeginYMin_mc._y;
_local1.pBeginYMax = hangGliderRightBeginYMax_mc._y;
_local1.pBeginYRange = _local1.pBeginYMax - _local1.pBeginYMin;
_local1.pXMin = hangGliderRightXMin_mc._x;
};
Enemy_hangGliderLeft = function (clipname, cliplevel) {
super(clipname, cliplevel);
};
Enemy_hangGliderLeft.prototype = new Enemy_hangGlider();
Enemy_hangGliderLeft.prototype.pSpeed = oTigerHawk.pMaxSpeed + 0.1;
Enemy_hangGliderLeft.prototype.dropBomb = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).bomb_mc._x;
oPoint.y = eval (this.pClip).bomb_mc._y;
eval (this.pClip).localToGlobal(oPoint);
var vLev = rWeaponLevel;
rWeaponLevel++;
Set("oHGBomb" + vLev, new HGLeftBomb(vLev, oPoint.x, oPoint.y));
eval (this.pClip).gotoAndStop("base");
this.pClipPlaying = false;
};
Enemy_hangGliderLeft.prototype.fire = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).bullet_mc._x;
oPoint.y = eval (this.pClip).bullet_mc._y;
eval (this.pClip).localToGlobal(oPoint);
var vLev = rWeaponLevel;
rWeaponLevel++;
Set("oHGBullet" + vLev, new HGLeftBullet(vLev, oPoint.x, oPoint.y));
eval (this.pClip).gotoAndStop("base");
this.pClipPlaying = false;
};
Enemy_hangGliderLeft.prototype.getSpeed = function () {
return(this.pSpeed - oTigerHawk.getSpeed());
};
Enemy_hangGliderLeft.prototype.scrollMe = function () {
var vCanScroll = true;
var vNextX = (eval (this.pClip)._x + this.getSpeed());
if (vNextX >= this.pXMax) {
vCanScroll = false;
this.removeMe();
} else {
if (this.pCollideWithEnemy == false) {
var i = 0;
i = 0;
while (i < oLauncher.activeEnemies_array.length) {
var vEnemyObj = oLauncher.getActiveEnemy(i);
if (vEnemyObj != this) {
var j = 1;
j = 1;
while (j <= this.pContactPoints) {
var oPoint = new Object();
oPoint.x = eval (((this.pClip + ".contactPoint") + j) + "_mc")._x;
oPoint.y = eval (((this.pClip + ".contactPoint") + j) + "_mc")._y;
eval (this.pClip).localToGlobal(oPoint);
if (eval (vEnemyObj.pClip).hitTest(oPoint.x, oPoint.y, true)) {
vCanScroll = false;
this.pCollideWithEnemy = true;
this.collideWithEnemy();
if (vEnemyObj.pCanBeKilled == true) {
vEnemyObj.pCollideWithEnemy = true;
vEnemyObj.collideWithEnemy();
}
break;
}
delete oPoint;
j++;
}
}
delete vEnemyObj;
i++;
}
}
if (vCanScroll == true) {
eval (this.pClip)._x = vNextX;
if (this.pBomber == false) {
this.moveVertically();
}
}
}
return(vCanScroll);
};
Enemy_hangGliderLeft.prototype.setPositions = function () {
var _local1 = this;
_local1.pAttackXMin = hangGliderLeftAttackXMin_mc._x;
_local1.pAttackXMax = hangGliderLeftAttackXMax_mc._x;
_local1.pBeginX = hangGliderLeft_mc._x;
_local1.pXMax = hangGliderLeftXMax_mc._x;
_local1.pBeginYMin = hangGliderLeftBeginYMin_mc._y;
_local1.pBeginYMax = hangGliderLeftBeginYMax_mc._y;
_local1.pBeginYRange = _local1.pBeginYMax - _local1.pBeginYMin;
};
Enemy_volcano = function (clipname, cliplevel) {
this.pClip = clipname;
eval (this.pClip).vAttackTravelMin = 65;
eval (this.pClip).vAttackTravelMax = 100;
this.pAttackedTH = false;
this.pClipPlaying = false;
this.pSpeed = 0;
this.pKilled = false;
this.pCollideWithTH = false;
this.pLevel = cliplevel;
eval (this.pClip).vObjRef = this;
eval (this.pClip).gotoAndStop("base");
this.addToScrollingObjsArray();
};
Enemy_volcano.prototype = new Enemy();
Enemy_volcano.prototype.pAttackDamageInflicted = 10;
Enemy_volcano.prototype.pCanAttack = true;
Enemy_volcano.prototype.pCanBeKilled = false;
Enemy_volcano.prototype.pCollisionDamageInflicted = 100;
Enemy_volcano.prototype.callAttack = function () {
if (Math.random() > oLevel.lev6.eruptionFrequency) {
var vMyX = eval (this.pClip)._x;
if ((vMyX >= this.pAttackXMin) && (vMyX <= this.pAttackXMax)) {
this.pClipPlaying = true;
eval (this.pClip).gotoAndPlay("erupt");
} else {
eval (this.pClip).attackCaller.gotoAndPlay("reset");
}
}
};
Enemy_volcano.prototype.doneErupting = function () {
eval (this.pClip).gotoAndStop("base");
this.pClipPlaying = false;
};
Enemy_volcano.prototype.pause = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).stop();
} else {
eval (this.pClip).attackCaller_mc.stop();
}
};
Enemy_volcano.prototype.resume = function () {
if (this.pClipPlaying == true) {
eval (this.pClip).play();
} else {
eval (this.pClip).attackCaller_mc.play();
}
};
Enemy_volcano.prototype.scrollMe = function () {
var vCanScroll = true;
var vNextX = (eval (this.pClip)._x - this.getSpeed());
if (vNextX <= this.pXMin) {
vCanScroll = false;
this.removeMe();
} else {
eval (this.pClip)._x = vNextX;
}
return(vCanScroll);
};
Enemy_volcano.prototype.getSpeed = function () {
return(this.pSpeed + oTigerHawk.getSpeed());
};
Enemy_volcano.prototype.setPositions = function () {
this.pAttackXMin = volcanoAttackXMin_mc._x;
this.pAttackXMax = volcanoAttackXMax_mc._x;
};
Enemy_volcano1 = function (clipname, cliplevel) {
super(clipname, cliplevel);
};
Enemy_volcano1.prototype = new Enemy_volcano();
Enemy_volcano1.prototype.setPositions = function () {
var _local1 = this;
_local1.pBeginX = volcano1_mc._x;
_local1.pBeginY = volcano1_mc._y;
_local1.pXMin = volcano1XMin_mc._x;
};
Enemy_volcano2 = function (clipname, cliplevel) {
super(clipname, cliplevel);
};
Enemy_volcano2.prototype = new Enemy_volcano();
Enemy_volcano2.prototype.setPositions = function () {
var _local1 = this;
_local1.pBeginX = volcano2_mc._x;
_local1.pBeginY = volcano2_mc._y;
_local1.pXMin = volcano2XMin_mc._x;
};
Enemy_volcano3 = function (clipname, cliplevel) {
super(clipname, cliplevel);
};
Enemy_volcano3.prototype = new Enemy_volcano();
Enemy_volcano3.prototype.setPositions = function () {
var _local1 = this;
_local1.pBeginX = volcano3_mc._x;
_local1.pBeginY = volcano3_mc._y;
_local1.pXMin = volcano3XMin_mc._x;
};
Enemy_boat = function (clipname, cliplevel) {
this.pClip = clipname;
eval (this.pClip).vAttackTravelMin = 65;
eval (this.pClip).vAttackTravelMax = 100;
this.pClipPlaying = false;
this.pCollideWithTH = false;
this.pHealth = 10;
this.pKilled = false;
if ((oLevel.lev5.pVariableBoatSpeed == true) && (Math.random() > 0.1)) {
this.pDestSpeed = this.getRandVarSpeed();
this.pVariableSpeed = true;
} else {
this.pVariableSpeed = false;
}
this.pLevel = cliplevel;
eval (this.pClip).vObjRef = this;
eval (this.pClip).gotoAndStop("base");
this.addToScrollingObjsArray();
};
Enemy_boat.prototype = new Enemy();
Enemy_boat.prototype.pCanBeKilled = true;
Enemy_boat.prototype.pKillPoints = 5;
Enemy_boat.prototype.pSpeedIncr = 0.1;
Enemy_boat.prototype.callAttack = function () {
var vMyX = eval (this.pClip)._x;
if ((vMyX >= this.pAttackXMin) && (vMyX <= this.pAttackXMax)) {
this.pClipPlaying = true;
eval (this.pClip).gotoAndPlay("shoot");
} else {
eval (this.pClip).attackCaller.gotoAndPlay("reset");
}
};
Enemy_boat.prototype.die = function () {
this.pSpeed = 0;
this.pKilled = true;
eval (this.pClip).gotoAndPlay("die");
this.pClipPlaying = true;
oScore.addPoints(this.pKillPoints);
};
Enemy_boat.prototype.fire = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).bullet_mc._x;
oPoint.y = eval (this.pClip).bullet_mc._y;
eval (this.pClip).localToGlobal(oPoint);
var vStartX = oPoint.x;
var vStartY = oPoint.y;
var vTHY = oTigerHawk.getClipY();
var vXMultiplier = 5.2;
if ((vTHY <= this.pCalcLine) && (oTigerHawk.getSpeed() > (oTigerHawk.pMinSpeed + ((oTigerHawk.pMaxSpeed - oTigerHawk.pMinSpeed) / 2)))) {
vXMultiplier = 9.5;
}
vXMultiplier = 4;
var vTHX = (oTigerHawk.getClipX() + (oTigerHawk.getSpeed() * vXMultiplier));
var vRot;
var vXMoveRatio;
var vYMoveRatio;
if (vTHX < vStartX) {
var vAdj = (vStartX - vTHX);
var vOpp = (vStartY - vTHY);
var vHyp = Math.sqrt((vAdj * vAdj) + (vOpp * vOpp));
var vTheta = (Math.asin((1 * vOpp) / vHyp) / (Math.PI/180));
vRot = vTheta;
vXMoveRatio = vAdj / vHyp;
vYMoveRatio = vOpp / vHyp;
} else if (vTHX > vStartX) {
var vAdj = (vTHX - vStartX);
var vOpp = (vStartY - vTHY);
var vHyp = Math.sqrt((vAdj * vAdj) + (vOpp * vOpp));
var vTheta = (Math.asin((1 * vOpp) / vHyp) / (Math.PI/180));
vRot = 180 - vTheta;
vXMoveRatio = vAdj / vHyp;
vYMoveRatio = vOpp / vHyp;
} else {
vRot = 90;
vXMoveRatio = 0;
vYMoveRatio = 1;
}
var vLev = rWeaponLevel;
rWeaponLevel++;
Set("oBoatBullet" + vLev, new BoatBullet(vLev, vStartX, vStartY, vRot, vXMoveRatio, vYMoveRatio));
this.pClipPlaying = false;
eval (this.pClip).gotoAndStop("base");
};
Enemy_boat.prototype.getRandVarSpeed = function () {
var _local1 = this;
var _local2 = Math.roundToDecimal(_local1.pSpeedMin + (Math.random() * (_local1.pSpeedMax - _local1.pSpeedMin)), 1);
return(_local2);
};
Enemy_boat.prototype.hitByWeapon = function (weapontype, damage) {
var _local1 = this;
_local1.pHealth = _local1.pHealth - damage;
if (_local1.pHealth <= 0) {
_local1.die();
}
};
Enemy_boat.prototype.setPositions = function () {
var _local1 = this;
_local1.pAttackXMin = boatAttackXMin_mc._x;
_local1.pAttackXMax = boatAttackXMax_mc._x;
_local1.pCalcLine = boatBulletCalcMarker_mc._y;
};
Enemy_boatRight = function (clipname, cliplevel) {
super(clipname, cliplevel);
};
Enemy_boatRight.prototype = new Enemy_boat();
Enemy_boatRight.prototype.pSpeed = 5;
Enemy_boatRight.prototype.pSpeedMin = 0;
Enemy_boatRight.prototype.pSpeedMax = 8;
Enemy_boatRight.prototype.getSpeed = function () {
var _local1 = this;
var _local2;
if (_local1.pVariableSpeed == true) {
if (_local1.pSpeed > _local1.pDestSpeed) {
if ((_local1.pSpeed - _local1.pSpeedIncr) < _local1.pDestSpeed) {
_local1.pSpeed = _local1.pDestSpeed;
} else {
_local1.pSpeed = _local1.pSpeed - _local1.pSpeedIncr;
}
} else if (_local1.pSpeed < _local1.pDestSpeed) {
if ((_local1.pSpeed + _local1.pSpeedIncr) > _local1.pDestSpeed) {
_local1.pSpeed = _local1.pDestSpeed;
} else {
_local1.pSpeed = _local1.pSpeed + _local1.pSpeedIncr;
}
} else {
_local1.pDestSpeed = _local1.getRandVarSpeed();
}
}
_local2 = _local1.pSpeed + oTigerHawk.getSpeed();
return(_local2);
};
Enemy_boatRight.prototype.scrollMe = function () {
var vCanScroll = true;
var vNextX = (eval (this.pClip)._x - this.getSpeed());
if (vNextX <= this.pXMin) {
vCanScroll = false;
this.removeMe();
} else {
eval (this.pClip)._x = vNextX;
}
return(vCanScroll);
};
Enemy_boatRight.prototype.setPositions = function () {
var _local1 = this;
_local1.pBeginX = boatRight_mc._x;
_local1.pBeginY = boatRight_mc._y;
_local1.pXMin = boatRightXMin_mc._x;
};
Enemy_boatLeft = function (clipname, cliplevel) {
super(clipname, cliplevel);
};
Enemy_boatLeft.prototype = new Enemy_boat();
Enemy_boatLeft.prototype.pSpeed = oTigerHawk.pMaxSpeed + 0.5;
Enemy_boatLeft.prototype.pSpeedMin = oTigerHawk.pMaxSpeed + 0.2;
Enemy_boatLeft.prototype.pSpeedMax = oTigerhawk.pMaxSpeed + 3;
Enemy_boatLeft.prototype.getSpeed = function () {
var _local1 = this;
var _local2;
if (_local1.pVariableSpeed == true) {
if (_local1.pSpeed > _local1.pDestSpeed) {
if ((_local1.pSpeed - _local1.pSpeedIncr) < _local1.pDestSpeed) {
_local1.pSpeed = _local1.pDestSpeed;
} else {
_local1.pSpeed = _local1.pSpeed - _local1.pSpeedIncr;
}
} else if (_local1.pSpeed < _local1.pDestSpeed) {
if ((_local1.pSpeed + _local1.pSpeedIncr) > _local1.pDestSpeed) {
_local1.pSpeed = _local1.pDestSpeed;
} else {
_local1.pSpeed = _local1.pSpeed + _local1.pSpeedIncr;
}
} else {
_local1.pDestSpeed = _local1.getRandVarSpeed();
}
}
_local2 = _local1.pSpeed - oTigerHawk.getSpeed();
return(_local2);
};
Enemy_boatLeft.prototype.scrollMe = function () {
var vCanScroll = true;
var vNextX = (eval (this.pClip)._x + this.getSpeed());
if (vNextX >= this.pXMax) {
vCanScroll = false;
this.removeMe();
} else {
eval (this.pClip)._x = vNextX;
}
return(vCanScroll);
};
Enemy_boatLeft.prototype.setPositions = function () {
var _local1 = this;
_local1.pBeginX = boatLeft_mc._x;
_local1.pBeginY = boatLeft_mc._y;
_local1.pXMax = boatLeftXMax_mc._x;
};
oNAdderLeft = new Object();
oNAdderLeft.pClip = "nAdderLeft_mc";
oNAdderLeft.pContactPoints = 6;
oNAdderLeft.pMaxXSpeed = oTigerHawk.pMaxSpeed + 3;
oNAdderLeft.pMinXSpeed = oTigerHawk.pMinSpeed - 2;
oNAdderLeft.pMaxYSpeed = oTigerHawk.pMaxSpeed + 2;
oNadderLeft.pMinYSpeed = oTigerHawk.pMinSpeed - 2;
oNAdderLeft.pSpeedIncr = 0.4;
oNAdderLeft.pVertMoveIncr = 5;
oNAdderLeft.calcMove = function () {
if (this.pDetonated == false) {
if (this.checkForCollision() == "clear") {
var vQualifyX = false;
var vQualifyY = false;
var vMyX = Math.roundToDecimal(eval (this.pClip)._x, 1);
var vMyY = eval (this.pClip)._y;
var vTHSpeed = Math.roundToDecimal(oTigerHawk.getSpeed(), 1);
var vTHY = oTigerHawk.getClipY();
var vXDiff = (this.pTargetX - vMyX);
var vYDiff = (vTHY - vMyY);
var vYAdjustment = 0;
if (vYDiff > 0) {
if ((vMyY + this.pVertMoveIncr) <= vTHY) {
vYAdjustment = this.pVertMoveIncr;
} else {
vQualifyY = true;
vYAdjustment = vTHY - vMyY;
}
} else if (vYDiff < 0) {
if ((vMyY - this.pVertMoveIncr) >= vTHY) {
vYAdjustment = -this.pVertMoveIncr;
} else {
vQualifyY = true;
vYAdjustment = -(vMyY - vTHY);
}
} else {
vQualifyY = true;
}
eval (this.pClip)._y = eval (this.pClip)._y + vYAdjustment;
if (vXDiff > 0) {
if (this.pSpeed <= vTHSpeed) {
if ((this.pSpeed + this.pSpeedIncr) <= this.pMaxXSpeed) {
this.pSpeed = this.pSpeed + this.pSpeedIncr;
}
} else {
var vCurrentPxSpeed = (Math.roundToDecimal(this.pSpeed - vTHSpeed, 2) - this.pSpeedIncr);
var vAdderX = vMyX;
while (vCurrentPxSpeed >= this.pSpeedIncr) {
vAdderX = vAdderX + vCurrentPxSpeed;
vCurrentPxSpeed = vCurrentPxSpeed - this.pSpeedIncr;
}
vAdderX = Math.roundToDecimal(vAdderX, 2);
if (vAdderX < this.pTargetX) {
if ((this.pSpeed + this.pSpeedIncr) <= this.pMaxXSpeed) {
this.pSpeed = this.pSpeed + this.pSpeedIncr;
}
} else if ((this.pSpeed - this.pSpeedIncr) >= this.pMinXSpeed) {
this.pSpeed = this.pSpeed - this.pSpeedIncr;
}
}
} else if (vXDiff < 0) {
if ((this.pSpeed - this.pSpeedIncr) >= this.pMinXSpeed) {
this.pSpeed = this.pSpeed - this.pSpeedIncr;
}
} else if (Math.abs(this.pSpeed - vTHSpeed) <= 0.6) {
this.pSpeed = vTHSpeed;
eval (this.pClip)._x = this.pTargetX;
vQualifyX = true;
} else if (this.pSpeed > vTHSpeed) {
this.pSpeed = this.pSpeed - this.pSpeedIncr;
} else {
this.pSpeed = this.pSpeed + this.pSpeedIncr;
}
var vPixelXSpeed = Math.roundToDecimal(this.pSpeed - vTHSpeed, 2);
var vChangeX = true;
if (Math.abs(this.pSpeed - vTHSpeed) <= 0.6) {
if (Math.abs(vMyX - this.pTargetX) < this.pSpeed) {
this.pSpeed = vTHSpeed;
vChangeX = false;
if (Math.abs(vMyX - this.pTargetX) > 0.2) {
if (vMyX > this.pTargetX) {
eval (this.pClip)._x = eval (this.pClip)._x - ((vMyX - this.pTargetX) / 2);
} else if (vMyX < this.pTargetX) {
eval (this.pClip)._x = eval (this.pClip)._x + ((this.pTargetX - vMyX) / 2);
}
} else {
vQualifyX = true;
eval (this.pClip)._x = this.pTargetX;
}
}
}
if (this.leaving) {
eval (this.pClip)._x = eval (this.pClip)._x - 1;
trace(eval (this.pClip)._x);
if (eval (this.pClip)._x <= 20) {
eval (this.pClip).gotoAndStop(1);
oLevel.lev2.pNAdderLeftOn = false;
this.pClipPlaying = false;
}
} else if (vChangeX == true) {
eval (this.pClip)._x = eval (this.pClip)._x + vPixelXSpeed;
}
if ((vQualifyX == true) && (vQualifyY == true)) {
if (this.pShooting == false) {
this.shoot();
}
}
}
} else {
eval (this.pClip)._x = eval (this.pClip)._x - oTigerHawk.getSpeed();
}
};
oNAdderLeft.checkForCollision = function () {
var vStatus = "clear";
var i = 0;
i = 0;
while (i < oLauncher.activeEnemies_array.length) {
var vEnemyObj = oLauncher.getActiveEnemy(i);
var j = 1;
j = 1;
while (j <= this.pContactPoints) {
var oPoint = new Object();
oPoint.x = eval (((this.pClip + ".contactPoint") + j) + "_mc")._x;
oPoint.y = eval (((this.pClip + ".contactPoint") + j) + "_mc")._y;
eval (this.pClip).localToGlobal(oPoint);
if (eval (vEnemyObj.pClip).hitTest(oPoint.x, oPoint.y, true)) {
if (vEnemyObj.pCanBeKilled == false) {
vStatus = "hit";
this.die();
}
break;
}
delete oPoint;
j++;
}
delete vEnemyObj;
i++;
}
return(vStatus);
};
oNAdderLeft.checkInitialLasers = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).lasers_mc._x;
oPoint.y = eval (this.pClip).lasers_mc._y;
var vLaserWidth = Math.floor(oPoint.x);
eval (this.pClip).localToGlobal(oPoint);
var vLaserX = oPoint.x;
var vLaserY = oPoint.y;
var trajXValues_array = new Array();
var vContact = false;
var i = 0;
i = 0;
while (i < vLaserWidth) {
trajXValues_array.push(vLaserX - i);
i++;
}
var j = 0;
j = 0;
while (j < trajXValues_array.length) {
if (eval (oTigerHawk.getBodyClip()).hitTest(trajXValues_array[j], vLaserY, true)) {
vContact = true;
break;
}
var k = 0;
k = 0;
while (k < oLauncher.activeEnemies_array.length) {
var vEnemyObj = oLauncher.getActiveEnemy(k);
if (vEnemyObj.pCanBeKilled == false) {
if (eval (vEnemyObj.pClip).hitTest(trajXValues_array[j], vLaserY, true)) {
vContact = true;
k = oLauncher.activeEnemies_array.length;
j = trajXValues_array.length;
}
}
k++;
}
j++;
}
if (vContact == true) {
this.pClipPlaying = false;
eval (this.pClip).gotoAndStop("base");
this.doneShooting();
} else if (rGameOn == true) {
eval (this.pClip).play();
} else {
eval (this.pClip).stop();
}
};
oNAdderLeft.die = function () {
this.pDetonated = true;
eval (this.pClip).gotoAndPlay("die");
this.pClipPlaying = true;
};
oNAdderLeft.doneShooting = function () {
this.pShootTimerOn = true;
nALeftShootReset_mc.gotoAndPlay("go");
};
oNAdderLeft.fireLasers = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).lasers_mc._x;
oPoint.y = eval (this.pClip).lasers_mc._y;
eval (this.pClip).localToGlobal(oPoint);
var vLaunchX = oPoint.x;
var vLaunchY = oPoint.y;
var vLev = rWeaponLevel;
rWeaponLevel++;
Set("oNAdderLeftLaser" + vLev, new NAdderLeftLaser(vLev, vLaunchX, vLaunchY, this));
this.pClipPlaying = false;
eval (this.pClip).gotoAndStop("base");
};
oNAdderLeft.getDetonatedVar = function () {
return(this.pDetonated);
};
oNAdderLeft.getShootTimerVar = function () {
return(this.pShootTimerOn);
};
oNAdderLeft.launch = function () {
if (this.leaving != true) {
this.leaving = false;
this.pClipPlaying = false;
this.pDetonated = false;
this.pShooting = false;
this.pShootTimerOn = false;
this.pSpeed = this.pMaxXSpeed;
eval (this.pClip).vObjRef = this;
this.resetClip();
eval (this.pClip).gotoAndStop("base");
oLevel["lev" + oLevel.getLevel()].pNAdderLeftOn = true;
}
};
oNAdderLeft.goAway = function () {
this.leaving = true;
};
oNAdderLeft.resetClip = function () {
eval (this.pClip)._x = this.pClipResetX;
eval (this.pClip)._y = this.pClipResetY;
};
oNAdderLeft.resetShoot = function () {
this.pShooting = false;
this.pShootTimerOn = false;
nALeftShootReset_mc.gotoAndStop("base");
};
oNAdderLeft.setPositions = function () {
this.pClipResetX = eval (this.pClip)._x;
this.pClipResetY = eval (this.pClip)._y;
this.pTargetX = nAdderLeftTargetX_mc._x;
nALeftShootReset_mc.vObjRef = this;
};
oNAdderLeft.shoot = function () {
this.pClipPlaying = true;
this.pShooting = true;
eval (this.pClip).gotoAndPlay("shoot");
};
oPushDownHeli = new Object();
oPushDownHeli.pClip = "heli_mc";
oPushDownHeli.pAscendSpeedIncr = 1;
oPushDownHeli.pAscendSpeedMax = 8;
oPushDownHeli.pDescendIncr = 0.5;
oPushDownHeli.pMaxRotate = 15;
oPushDownHeli.pMaxRotateIncr = 0.5;
oPushDownHeli.pMaxSpeed = oTigerHawk.pMaxSpeed + 3;
oPushDownHeli.pMinSpeed = oTigerHawk.pMinSpeed - 2;
oPushDownHeli.pSpeedIncr = 0.2;
oPushDownHeli.pSpeedRange = oPushDownHeli.pMaxSpeed - oPushDownHeli.pMinSpeed;
oPushDownHeli.pBombDropping = false;
oPushDownHeli.pBombLock = false;
oPushDownHeli.loseBombLock = function () {
this.pBombLock = false;
eval (this.pClip).bombLock_mc.gotoAndStop(1);
clearInterval(bombDelay);
};
oPushDownHeli.calcMove = function () {
var vPixelSpeed;
this.pDescending = false;
var vMyX = Math.roundToDecimal(eval (this.pClip)._x, 1);
var vTHSpeed = Math.roundToDecimal(oTigerHawk.getSpeed(), 1);
var vXDiff = (this.pTargetX - vMyX);
if (vXDiff > 0) {
this.loseBombLock();
if (this.pSpeed <= vTHSpeed) {
if ((this.pSpeed + this.pSpeedIncr) <= this.pMaxSpeed) {
this.pSpeed = this.pSpeed + this.pSpeedIncr;
}
} else {
var vCurrentPxSpeed = (Math.roundToDecimal(this.pSpeed - vTHSpeed, 2) - this.pSpeedIncr);
var vHeliX = vMyX;
while (vCurrentPxSpeed >= this.pSpeedIncr) {
vHeliX = vHeliX + vCurrentPxSpeed;
vCurrentPxSpeed = vCurrentPxSpeed - this.pSpeedIncr;
}
vHeliX = Math.roundToDecimal(vHeliX, 2);
if (vHeliX < this.pTargetX) {
if ((this.pSpeed + this.pSpeedIncr) <= this.pMaxSpeed) {
this.pSpeed = this.pSpeed + this.pSpeedIncr;
}
} else if ((this.pSpeed - this.pSpeedIncr) >= this.pMinSpeed) {
this.pSpeed = this.pSpeed - this.pSpeedIncr;
}
}
vPixelSpeed = Math.roundToDecimal(this.pSpeed - vTHSpeed, 2);
} else if (vXDiff < 0) {
this.loseBombLock();
if ((this.pSpeed - this.pSpeedIncr) >= this.pMinSpeed) {
this.pSpeed = this.pSpeed - this.pSpeedIncr;
}
vPixelSpeed = Math.roundToDecimal(this.pSpeed - vTHSpeed, 2);
} else if (Math.abs(this.pSpeed - vTHSpeed) <= 0.8) {
this.pSpeed = vTHSpeed;
eval (this.pClip)._x = this.pTargetX;
this.pDescending = true;
if (this.pBombLock == false) {
eval (this.pClip).bombLock_mc.gotoAndStop(2);
bombDelay = setInterval(delayBombDrop, 2500);
this.pBombLock = true;
this.pBombDropping = true;
} else if (this.pBombDropping == false) {
this.startDropBomb();
}
} else {
if (this.pSpeed > vTHSpeed) {
this.pSpeed = this.pSpeed - this.pSpeedIncr;
} else {
this.pSpeed = this.pSpeed + this.pSpeedIncr;
}
vPixelSpeed = Math.roundToDecimal(this.pSpeed - vTHSpeed, 2);
}
var vChangeX = true;
if (Math.abs(this.pSpeed - vTHSpeed) <= 0.5) {
if (Math.abs(vMyX - this.pTargetX) < this.pSpeed) {
this.pSpeed = vTHSpeed;
vChangeX = false;
if (Math.abs(vMyX - this.pTargetX) > 0.2) {
if (vMyX > this.pTargetX) {
eval (this.pClip)._x = eval (this.pClip)._x - ((vMyX - this.pTargetX) / 2);
} else if (vMyX < this.pTargetX) {
eval (this.pClip)._x = eval (this.pClip)._x + ((this.pTargetX - vMyX) / 2);
}
} else {
eval (this.pClip)._x = this.pTargetX;
}
}
}
if ((this.pDescending == false) && (vChangeX == true)) {
eval (this.pClip)._x = eval (this.pClip)._x + vPixelSpeed;
}
var vTrueRelSpeed = (this.pSpeed - this.pMinSpeed);
var vRotate = Math.roundToDecimal((this.pMaxRotate * vTrueRelSpeed) / this.pSpeedRange, 1);
var vCurrentRot = eval (this.pClip)._rotation;
if (Math.abs(vRotate - vCurrentRot) <= this.pMaxRotateIncr) {
eval (this.pClip)._rotation = vRotate;
} else if (vRotate > vCurrentRot) {
eval (this.pClip)._rotation = eval (this.pClip)._rotation + this.pMaxRotateIncr;
} else {
eval (this.pClip)._rotation = eval (this.pClip)._rotation - this.pMaxRotateIncr;
}
};
oPushDownHeli.startDropBomb = function () {
eval (this.pClip).bombLock_mc.gotoAndStop(3);
eval (this.pClip).bombStart_mc.gotoAndPlay("go");
this.pBombDropping = true;
};
oPushDownHeli.dropBomb = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).bombStart_mc.bomb_mc._x;
oPoint.y = eval (this.pClip).bombStart_mc.bomb_mc._y;
var vRot = eval (this.pClip).bombStart_mc.bomb_mc._rotation;
eval (this.pClip).bombStart_mc.localToGlobal(oPoint);
var vLevel = rWeaponLevel;
rWeaponLevel++;
Set("oHeliBomb" + vLevel, new HeliBomb(vLevel, oPoint.x, oPoint.y, vRot));
};
oPushDownHeli.getBtmBound = function () {
var oPoint = new Object();
oPoint.x = eval (this.pClip).bottom_mc._x;
oPoint.y = eval (this.pClip).bottom_mc._y;
eval (this.pClip).localToGlobal(oPoint);
return(oPoint.y);
};
oPushDownHeli.getTHInRange = function (thxval) {
var oPoint1 = new Object();
oPoint1.x = eval (this.pClip).back_mc._x;
oPoint1.y = eval (this.pClip).back_mc._y;
eval (this.pClip).localToGlobal(oPoint1);
var vBackX = oPoint1.x;
var oPoint2 = new Object();
oPoint2.x = eval (this.pClip).front_mc._x;
oPoint2.y = eval (this.pClip).front_mc._y;
eval (this.pClip).localToGlobal(oPoint2);
var vFrontX = oPoint2.x;
if (((vBackX <= thxval) && (vFrontX >= thxval)) && (this.pAscending == false)) {
return(true);
}
return(false);
};
oPushDownHeli.launch = function () {
this.pAscending = false;
this.pAscendSpeed = 2;
this.pSpeed = Math.roundToDecimal(oTigerHawk.getSpeed(), 1);
eval (this.pClip).vObjRef = this;
this.resetClip();
eval (this.pClip).gotoAndStop("active");
oLevel.lev1.pHeliOn = true;
};
oPushDownHeli.reset = function () {
this.pAscendXMax = heliXMax_mc._x;
this.pAscendXMin = heliXMin_mc._x;
this.pAscendYMin = heliXMin_mc._y;
if (rContinue == false) {
this.pClipResetX = eval (this.pClip)._x;
this.pClipResetY = eval (this.pClip)._y;
}
this.pDescendYMax = heliYMax_mc._y;
this.pTargetX = Math.roundToDecimal(oTigerHawk.getCenterX(), 1);
};
oPushDownHeli.resetClip = function () {
eval (this.pClip)._x = this.pClipResetX;
eval (this.pClip)._y = this.pClipResetY;
eval (this.pClip).gotoAndStop("base");
};
EnemyWeapon = function () {
};
EnemyWeapon.prototype.addToScrollArray = function () {
scrollingObjs_array.push(this);
};
EnemyWeapon.prototype.getDetonatedVar = function () {
return(this.pDetonated);
};
EnemyWeapon.prototype.pause = function () {
if (this.getDetonatedVar() == true) {
eval (this.pClip).stop();
}
};
EnemyWeapon.prototype.removeFromTrailingArray = function () {
var _local2 = this;
var _local1 = 0;
_local1 = 0;
while (_local1 < trailingObjs_array.length) {
if (trailingObjs_array[_local1] == _local2) {
trailingObjs_array.splice(_local1, 1);
return;
}
_local1++;
}
};
EnemyWeapon.prototype.resume = function () {
if (this.getDetonatedVar() == true) {
eval (this.pClip).play();
}
};
MechMissile = function (lev, angle, startx, starty, xmoveratio, ymoveratio) {
this.pClip = ("mechMissile" + lev) + "_mc";
this.pDepthLevel = lev;
this.pDetonated = false;
this.pXMoveRatio = xmoveratio;
this.pYMoveRatio = ymoveratio;
attachMovie("mechMissile", this.pClip, lev);
eval (this.pClip).vObjRef = this;
eval (this.pClip)._x = startx;
eval (this.pClip)._y = starty;
eval (this.pClip)._rotation = angle - 90;
this.addToScrollArray();
};
MechMissile.prototype = new EnemyWeapon();
MechMissile.prototype.pDamageInflicted = 15;
MechMissile.prototype.pHitTestPixelIncr = 3;
MechMissile.prototype.pSpeed = oTigerHawk.pMaxSpeed + 25;
MechMissile.prototype.removeMe = function () {
var _local1 = this;
_local1.removeFromTrailingArray();
removeMovieClip(_local1.pClip);
var _local2 = "oMechMissile" + _local1.pDepthLevel;
fnRemoveObj(_local2);
};
MechMissile.prototype.scrollMe = function () {
var vSpeed = (this.pSpeed + oTigerHawk.getSpeed());
var vCanScroll = true;
var vNextX = (eval (this.pClip)._x + (this.pXMoveRatio * vSpeed));
var vNextY = (eval (this.pClip)._y + (this.pYMoveRatio * vSpeed));
if (((vNextX <= this.pMinX) || (vNextY <= this.pMinY)) || (vNextY >= this.pMaxY)) {
vCanScroll = false;
this.removeMe();
} else if (this.pDetonated == false) {
var trajXValues_array = new Array();
var trajYValues_array = new Array();
var vAddMore = true;
var j = 1;
while (vAddMore == true) {
var vNewValue = Number(eval (this.pClip)._x + ((j * this.pHitTestPixelIncr) * this.pXMoveRatio));
if (vNewValue > vNextX) {
trajXValues_array.push(vNewValue);
trajYValues_array.push(Number(eval (this.pClip)._y + ((j * this.pHitTestPixelIncr) * this.pYMoveRatio)));
j++;
} else {
trajXValues_array.push(vNextX);
trajYValues_array.push(vNextY);
vAddMore = false;
}
delete vNewValue;
}
var vContact = false;
var i = 0;
i = 0;
while (i < trajXValues_array.length) {
if (eval (oTigerHawk.getBodyClip()).hitTest(trajXValues_array[i], trajYValues_array[i], true)) {
this.pDetonated = true;
vContact = true;
eval (this.pClip)._x = trajXValues_array[i];
eval (this.pClip)._y = trajYValues_array[i];
vCanScroll = false;
oTigerHawk.getHit(this.pDamageInflicted);
eval (this.pClip).gotoAndPlay("detonate");
trailingObjs_array.push(this);
i = trajXValues_array.length;
}
i++;
}
if (vContact == false) {
eval (this.pClip)._x = vNextX;
eval (this.pClip)._y = vNextY;
}
}
return(vCanScroll);
};
MechMissile.prototype.scrollMeTrailing = function () {
};
MechMissile.prototype.setPositions = function () {
var _local1 = this;
_local1.pMinY = mechMissileMinY_mc._y;
_local1.pMaxY = mechMissileMaxY_mc._y;
_local1.pMinX = mechMissileMinX_mc._x;
};
NAdderLeftLaser = function (lev, startx, starty, launchobj) {
this.pClip = ("nAdderLeftLaser" + lev) + "_mc";
this.pDepthLevel = lev;
this.pDetonated = false;
this.pLaunchObj = launchobj;
attachMovie("nAdderLeftLaser", this.pClip, lev);
eval (this.pClip).vObjRef = this;
eval (this.pClip)._x = startx + this.getSpeed();
eval (this.pClip)._y = starty;
this.addToScrollArray();
};
NAdderLeftLaser.prototype = new EnemyWeapon();
NAdderLeftLaser.prototype.pDamageInflicted = 15;
NAdderLeftLaser.prototype.pHitTestPixelIncr = 2;
NAdderLeftLaser.prototype.pSpeed = oTigerHawk.pMaxSpeed + 17;
NAdderLeftLaser.prototype.getSpeed = function () {
return(this.pSpeed - oTigerHawk.getSpeed());
};
NAdderLeftLaser.prototype.removeMe = function () {
var _local1 = this;
_local1.pLaunchObj.doneShooting();
_local1.removeFromTrailingArray();
removeMovieClip(_local1.pClip);
var _local2 = "oNAdderLeftLaser" + _local1.pDepthLevel;
fnRemoveObj(_local2);
};
NAdderLeftLaser.prototype.scrollMe = function () {
var vCanScroll = true;
var vMyX = eval (this.pClip)._x;
var vSpeed = this.getSpeed();
if ((vMyX + vSpeed) >= this.pXMax) {
vCanScroll = false;
this.removeMe();
} else {
var vContact = false;
var vMyY = eval (this.pClip)._y;
var inBtwnXValues_array = new Array();
var trajXValues_array = new Array();
var vLaserWidth = Math.floor(eval (this.pClip).marker_mc._width);
var i = 0;
i = 0;
while (i < vLaserWidth) {
trajXValues_array.push(vMyX - i);
i++;
}
j = 0;
while (j < trajXValues_array.length) {
if (eval (oTigerHawk.getBodyClip()).hitTest(trajXValues_array[j], vMyY, true)) {
this.pDetonated = true;
vCanScroll = false;
vContact = true;
oTigerHawk.getHit(this.pDamageInflicted);
trailingObjs_array.push(this);
eval (this.pClip).gotoAndPlay("detonate");
break;
}
j++;
}
if (vContact == false) {
var n = 0;
n = 0;
while (n < Math.floor(vSpeed / this.pHitTestPixelIncr)) {
inBtwnXValues_array.push(vMyX + (this.pHitTestPixelIncr * n));
n++;
}
var k = 0;
k = 0;
while (k < oLauncher.activeEnemies_array.length) {
var vEnemyObj = oLauncher.getActiveEnemy(k);
if (vEnemyObj.pCanBeKilled == false) {
var m = 0;
m = 0;
while (m < inBtwnXValues_array.length) {
if (eval (vEnemyObj.pClip).hitTest(inBtwnXValues_array[m], vMyY, true)) {
this.pDetonated = true;
vCanScroll = false;
vContact = true;
trailingObjs_array.push(this);
eval (this.pClip).gotoAndPlay("detonate");
eval (this.pClip)._x = inBtwnXValues_array[m];
m = inBtwnXValues_array.length;
k = oLauncher.activeEnemies_array.length;
}
m++;
}
}
k++;
}
}
if (vContact == false) {
eval (this.pClip)._x = eval (this.pClip)._x + vSpeed;
}
}
return(vCanScroll);
};
NAdderLeftLaser.prototype.scrollMeTrailing = function () {
eval (this.pClip)._x = eval (this.pClip)._x - oTigerHawk.getSpeed();
};
NAdderLeftLaser.prototype.setPositions = function () {
this.pXMax = nAdderLeftLaserXMax_mc._x;
};
NAdderRightLaser = function (lev, startx, starty) {
this.pClip = ("nAdderRightLaser" + lev) + "_mc";
this.pDepthLevel = lev;
this.pDetonated = false;
attachMovie("nAdderRightLaser", this.pClip, lev);
eval (this.pClip).vObjRef = this;
eval (this.pClip)._x = startx - this.getSpeed();
eval (this.pClip)._y = starty;
this.addToScrollArray();
};
NAdderRightLaser.prototype = new EnemyWeapon();
NAdderRightLaser.prototype.pDamageInflicted = 15;
NAdderRightLaser.prototype.pSpeed = oTigerHawk.pMaxSpeed + 17;
NAdderRightLaser.prototype.getSpeed = function () {
return(oTigerHawk.getSpeed() + this.pSpeed);
};
NAdderRightLaser.prototype.removeMe = function () {
var _local1 = this;
_local1.removeFromTrailingArray();
removeMovieClip(_local1.pClip);
var _local2 = "oNAdderRightLaser" + _local1.pDepthLevel;
fnRemoveObj(_local2);
};
NAdderRightLaser.prototype.scrollMe = function () {
var vCanScroll = true;
var vMyX = eval (this.pClip)._x;
var vSpeed = this.getSpeed();
if ((vMyX - vSpeed) <= this.pXMin) {
vCanScroll = false;
this.removeMe();
} else {
var vContact = false;
var vMyY = eval (this.pClip)._y;
var trajXValues_array = new Array();
var vLaserWidth = Math.floor(eval (this.pClip).marker_mc._width);
var i = 0;
i = 0;
while (i < vLaserWidth) {
trajXValues_array.push(vMyX + i);
i++;
}
var j = 0;
j = 0;
while (j < trajXValues_array.length) {
if (eval (oTigerHawk.getBodyClip()).hitTest(trajXValues_array[j], vMyY, true)) {
this.pDetonated = true;
vCanScroll = false;
vContact = true;
oTigerHawk.getHit(this.pDamageInflicted);
trailingObjs_array.push(this);
eval (this.pClip).gotoAndPlay("detonate");
break;
}
j++;
}
if (vContact == false) {
eval (this.pClip)._x = eval (this.pClip)._x - vSpeed;
}
}
return(vCanScroll);
};
NAdderRightLaser.prototype.scrollMeTrailing = function () {
};
NAdderRightLaser.prototype.setPositions = function () {
this.pXMin = nAdderRightLaserXMin_mc._x;
};
AAGunBullet = function (lev, angle, startx, starty, xmoveratio, ymoveratio) {
this.pClip = ("aAGunBullet" + lev) + "_mc";
this.pDepthLevel = lev;
this.pDetonated = false;
this.pXMoveRatio = xmoveratio;
this.pYMoveRatio = ymoveratio;
attachMovie("aAGunBullet", this.pClip, lev);
eval (this.pClip).vObjRef = this;
this.pClipRotation = angle;
eval (this.pClip)._rotation = this.pClipRotation;
eval (this.pClip)._x = startx;
eval (this.pClip)._y = starty;
this.addToScrollArray();
};
AAGunBullet.prototype = new EnemyWeapon();
AAGunBullet.prototype.pBulletSpeed = oTigerHawk.pMaxSpeed + 12;
AAGunBullet.prototype.pDamageInflicted = 10;
AAGunBullet.prototype.pHitTestPixelIncr = 3;
AAGunBullet.prototype.getNextX = function (rot, xratio, startx, speed) {
vTHSpeed = oTigerHawk.getSpeed();
var vSpeed;
if ((speed == undefined) || (speed == false)) {
vSpeed = this.pBulletSpeed - vTHSpeed;
} else {
vSpeed = speed;
}
var vRotation;
if ((rot == undefined) || (rot == false)) {
vRotation = this.pClipRotation;
} else {
vRotation = rot;
}
var vXMoveRatio;
if ((xratio == undefined) || (xratio == false)) {
vXMoveRatio = this.pXMoveRatio;
} else {
vXMoveRatio = xratio;
}
var vMyX;
if ((startx == undefined) || (startx == false)) {
vMyX = eval (this.pClip)._x;
} else {
vMyX = startx;
}
var vNextX;
if (vRotation < 90) {
vNextX = (vMyX - (vSpeed * vXMoveRatio)) - vTHSpeed;
} else if (vRotation > 90) {
vNextX = (vMyX + (vSpeed * vXMoveRatio)) - vTHSpeed;
} else {
vNextX = vMyX - vTHSpeed;
}
return(vNextX);
};
AAGunBullet.prototype.getNextY = function (yratio, starty, speed) {
var vSpeed;
if ((speed == undefined) || (speed == false)) {
vSpeed = this.pBulletSpeed - oTigerHawk.getSpeed();
} else {
vSpeed = speed;
}
var vYMoveRatio;
if ((yratio == undefined) || (yratio == false)) {
vYMoveRatio = this.pYMoveRatio;
} else {
vYMoveRatio = yratio;
}
var vMyY;
if ((starty == undefined) || (starty == false)) {
vMyY = eval (this.pClip)._y;
} else {
vMyY = starty;
}
return(vMyY - (vYMoveRatio * vSpeed));
};
AAGunBullet.prototype.removeMe = function () {
var _local1 = this;
_local1.removeFromTrailingArray();
removeMovieClip(_local1.pClip);
var _local2 = "oAAGunBullet" + _local1.pDepthLevel;
fnRemoveObj(_local2);
};
AAGunBullet.prototype.scrollMe = function () {
var vCanScroll = true;
var vNextX = this.getNextX();
var vNextY = this.getNextY();
if ((vNextX <= this.pMinX) || (vNextY <= this.pMinY)) {
vCanScroll = false;
this.removeMe();
} else {
if (this.pDetonated == false) {
var trajXValues_array = new Array();
var trajYValues_array = new Array();
var vAddMore = true;
var j = 1;
while (vAddMore == true) {
var vNewValue;
if (this.pClipRotation < 90) {
vNewValue = this.getNextX(false, false, eval (this.pClip)._x, j * this.pHitTestPixelIncr);
if (vNewValue > vNextX) {
trajXValues_array.push(vNewValue);
trajYValues_array.push(this.getNextY(false, eval (this.pClip)._y, j * this.pHitTestPixelIncr));
j++;
} else {
trajXValues_array.push(vNextX);
trajYValues_array.push(vNextY);
vAddMore = false;
}
} else if (this.pClipRotation > 90) {
vNewValue = this.getNextX(false, false, eval (this.pClip)._x, j * this.pHitTestPixelIncr);
if (vNewValue < vNextX) {
trajXValues_array.push(vNewValue);
trajYValues_array.push(this.getNextY(false, eval (this.pClip)._y, j * this.pHitTestPixelIncr));
j++;
} else {
trajXValues_array.push(vNextX);
trajYValues_array.push(vNextY);
vAddMore = false;
}
} else {
vNewValue = Number(eval (this.pClip)._y) - (j * this.pHitTestPixelIncr);
if (vNewValue > vNextY) {
trajXValues_array.push(vNextX);
trajYValues_array.push(vNewValue);
j++;
} else {
trajXValues_array.push(vNextX);
trajYValues_array.push(vNextY);
vAddMore = false;
}
}
delete vNewValue;
}
var i = 0;
i = 0;
while (i < trajXValues_array.length) {
if (eval (oTigerHawk.getBodyClip()).hitTest(trajXValues_array[i], trajYValues_array[i], true)) {
this.pDetonated = true;
eval (this.pClip)._x = trajXValues_array[i];
eval (this.pClip)._y = trajYValues_array[i];
vCanScroll = false;
oTigerHawk.getHit(this.pDamageInflicted);
eval (this.pClip).gotoAndPlay("detonate");
trailingObjs_array.push(this);
i = trajXValues_array.length;
}
i++;
}
}
if (vCanScroll == true) {
eval (this.pClip)._x = vNextX;
eval (this.pClip)._y = vNextY;
}
}
return(vCanScroll);
};
AAGunBullet.prototype.setPositions = function () {
this.pMinX = aABulletOffScreen_mc._x;
this.pMinY = aABulletOffScreen_mc._y;
};
HeliMissile = function (lev, startx, starty, launchobj) {
this.pClip = ("heliMissile" + lev) + "_mc";
this.pDepthLevel = lev;
this.pDetonated = false;
this.pLaunchObj = launchobj;
this.pSpeed = this.pLaunchObj.pSpeed + 8;
attachMovie("heliMissile", this.pClip, lev);
eval (this.pClip).vObjRef = this;
eval (this.pClip)._x = startx + this.getSpeed();
eval (this.pClip)._y = starty;
this.addToScrollArray();
};
HeliMissile.prototype = new EnemyWeapon();
HeliMissile.prototype.pDamageInflicted = 10;
HeliMissile.prototype.pHitTestPixelIncr = 3;
HeliMissile.prototype.getSpeed = function () {
return(this.pSpeed + oTigerHawk.getSpeed());
};
HeliMissile.prototype.removeMe = function () {
var _local1 = this;
_local1.removeFromTrailingArray();
removeMovieClip(_local1.pClip);
var _local2 = "oHeliMissile" + _local1.pDepthLevel;
fnRemoveObj(_local2);
};
HeliMissile.prototype.scrollMe = function () {
var vCanScroll = true;
var vMyX = eval (this.pClip)._x;
var vMyY = eval (this.pClip)._y;
var vNextX = (vMyX - this.getSpeed());
if (vNextX <= this.pXMin) {
vCanScroll = false;
this.removeMe();
} else {
if (this.pDetonated == false) {
var trajXValues_array = new Array();
var vAddMore = true;
var j = 1;
while (vAddMore == true) {
var vNewValue = (vMyX - (j * this.pHitTestPixelIncr));
if (vNewValue >= vNextX) {
trajXValues_array.push(vNewValue);
j++;
} else {
trajXValues_array.push(vNextX);
vAddMore = false;
}
delete vNewValue;
}
var i = 0;
i = 0;
while (i < trajXValues_array.length) {
if (eval (oTigerHawk.getBodyClip()).hitTest(trajXValues_array[i], vMyY, true)) {
this.pDetonated = true;
eval (this.pClip)._x = trajXValues_array[i];
vCanScroll = false;
oTigerHawk.getHit(this.pDamageInflicted);
eval (this.pClip).gotoAndPlay("detonate");
trailingObjs_array.push(this);
i = trajXValues_array.length;
}
i++;
}
}
if (vCanScroll == true) {
eval (this.pClip)._x = vNextX;
}
}
return(vCanScroll);
};
HeliMissile.prototype.setPositions = function () {
this.pXMin = enemyObstXMin_mc._x;
};
HeliBomb = function (lev, startx, starty, rot) {
this.pSpeed = oPushDownHeli.pSpeed;
this.pMaxY = bombYMax_mc._y;
this.pDepthLevel = lev;
this.pDetonated = false;
this.pType = "bomb";
this.pClip = ("weapon" + this.pDepthLevel) + "_mc";
attachMovie("bomb", this.pClip, vDepthLev);
eval (this.pClip)._x = startx;
eval (this.pClip)._y = starty;
if (rot != undefined) {
eval (this.pClip)._rotation = rot;
}
scrollingObjs_array.push(this);
eval (this.pClip).vObjRef = this;
};
HeliBomb.prototype = new EnemyWeapon();
HeliBomb.prototype.pDamageInflicted = 10;
HeliBomb.prototype.pDropSpeed = 12;
HeliBomb.prototype.pSpeedMultiplier = 0.65;
HeliBomb.prototype.removeMe = function () {
var _local1 = this;
_local1.removeFromTrailingArray();
removeMovieClip(_local1.pClip);
var _local2 = "oHeliBomb" + _local1.pDepthLevel;
fnRemoveObj(_local2);
};
HeliBomb.prototype.scrollMe = function () {
if (this.pDetonated == false) {
var vClipX = eval (this.pClip)._x;
var vClipY = eval (this.pClip)._y;
var vSpeed = (this.pSpeedMultiplier * oTigerHawk.getSpeed());
if ((vClipY + this.pDropSpeed) >= this.pMaxY) {
eval (this.pClip)._y = this.pMaxY;
if (this.getDetonatedVar() == false) {
this.pDetonated = true;
eval (this.pClip).gotoAndPlay("detonate");
eval (this.pClip).bombLock_mc.gotoAndStop(3);
if (oPushDownHeli.pBombLock) {
eval (oPushDownHeli.pClip).bombLock_mc.gotoAndStop(2);
bombDelay = setInterval(delayBombDrop, 2500);
} else {
eval (oPushDownHeli.pClip).bombLock_mc.gotoAndStop(1);
}
}
} else {
if (eval (oTigerHawk.getBodyClip()).hitTest(vClipX, vClipY + this.pDropSpeed, true)) {
this.pDetonated = true;
vCanScroll = false;
oTigerHawk.getHit(this.pDamageInflicted);
eval (this.pClip).gotoAndPlay("detonate");
trailingObjs_array.push(this);
if (oPushDownHeli.pBombLock) {
eval (oPushDownHeli.pClip).bombLock_mc.gotoAndStop(2);
bombDelay = setInterval(delayBombDrop, 2500);
} else {
eval (oPushDownHeli.pClip).bombLock_mc.gotoAndStop(1);
}
}
if (this.getDetonatedVar() == false) {
eval (this.pClip)._y = vClipY + this.pDropSpeed;
}
}
eval (this.pClip)._x = eval (this.pClip)._x + ((this.pSpeed - oTigerHawk.pSpeed) * 1.5);
return(true);
}
};
HGBullet = function () {
};
HGBullet.prototype = new EnemyWeapon();
HGBullet.prototype.pDamageInflicted = 5;
HGBullet.prototype.pHitTestPixelIncr = 2;
HGBullet.prototype.removeMe = function () {
var _local1 = this;
_local1.removeFromTrailingArray();
removeMovieClip(_local1.pClip);
var _local2 = "oHGBullet" + _local1.pDepthLevel;
fnRemoveObj(_local2);
};
HGRightBullet = function (lev, startx, starty) {
this.pClip = ("HGRightBullet" + lev) + "_mc";
this.pDepthLevel = lev;
this.pDetonated = false;
attachMovie("HGRightBullet", this.pClip, lev);
eval (this.pClip).vObjRef = this;
eval (this.pClip)._x = startx - this.getSpeed();
eval (this.pClip)._y = starty;
this.addToScrollArray();
};
HGRightBullet.prototype = new HGBullet();
HGRightBullet.prototype.pSpeed = 12;
HGRightBullet.prototype.getSpeed = function () {
return(this.pSpeed + oTigerHawk.getSpeed());
};
HGRightBullet.prototype.scrollMe = function () {
var vCanScroll = true;
var vNextX = (eval (this.pClip)._x - this.getSpeed());
if (vNextX <= this.pXMin) {
vCanScroll = false;
this.removeMe();
} else {
var vMyX = eval (this.pClip)._x;
if (this.pDetonated == false) {
var trajXValues_array = new Array();
var vAddMore = true;
var j = 1;
while (vAddMore == true) {
var vNewValue = (vMyX - (j * this.pHitTestPixelIncr));
if (vNewValue >= vNextX) {
trajXValues_array.push(vNewValue);
j++;
} else {
trajXValues_array.push(vNextX);
vAddMore = false;
}
delete vNewValue;
}
var vMyY = eval (this.pClip)._y;
var i = 0;
i = 0;
while (i < trajXValues_array.length) {
if (eval (oTigerHawk.getBodyClip()).hitTest(trajXValues_array[i], vMyY, true)) {
this.pDetonated = true;
eval (this.pClip)._x = trajXValues_array[i];
vCanScroll = false;
oTigerHawk.getHit(this.pDamageInflicted);
eval (this.pClip).gotoAndPlay("detonate");
trailingObjs_array.push(this);
i = trajXValues_array.length;
}
i++;
}
}
if (vCanScroll == true) {
eval (this.pClip)._x = vNextX;
}
}
return(vCanScroll);
};
HGRightBullet.prototype.setPositions = function () {
this.pXMin = HGRightBulletXMin_mc._x;
};
HGLeftBullet = function (lev, startx, starty) {
this.pClip = ("HGLeftBullet" + lev) + "_mc";
this.pDepthLevel = lev;
this.pDetonated = false;
attachMovie("HGLeftBullet", this.pClip, lev);
eval (this.pClip).vObjRef = this;
eval (this.pClip)._x = startx + this.getSpeed();
eval (this.pClip)._y = starty;
this.addToScrollArray();
};
HGLeftBullet.prototype = new HGBullet();
HGLeftBullet.prototype.pSpeed = 14;
HGLeftBullet.prototype.getSpeed = function () {
return(this.pSpeed - oTigerHawk.getSpeed());
};
HGLeftBullet.prototype.scrollMe = function () {
var vCanScroll = true;
var vMyX = eval (this.pClip)._x;
var vNextX = (vMyX + this.getSpeed());
if (vNextX >= this.pXMax) {
vCanScroll = false;
this.removeMe();
} else {
if (this.pDetonated == false) {
var trajXValues_array = new Array();
var vAddMore = true;
var j = 1;
while (vAddMore == true) {
var vNewValue = (vMyX + (j * this.pHitTestPixelIncr));
if (vNewValue <= vNextX) {
trajXValues_array.push(vNewValue);
j++;
} else {
trajXValues_array.push(vNextX);
vAddMore = false;
}
delete vNewValue;
}
var vMyY = eval (this.pClip)._y;
var i = 0;
i = 0;
while (i < trajXValues_array.length) {
if (eval (oTigerHawk.getBodyClip()).hitTest(trajXValues_array[i], vMyY, true)) {
this.pDetonated = true;
eval (this.pClip)._x = trajXValues_array[i];
vCanScroll = false;
oTigerHawk.getHit(this.pDamageInflicted);
eval (this.pClip).gotoAndPlay("detonate");
trailingObjs_array.push(this);
i = trajXValues_array.length;
}
i++;
}
}
if (vCanScroll == true) {
eval (this.pClip)._x = vNextX;
}
}
return(vCanScroll);
};
HGLeftBullet.prototype.setPositions = function () {
this.pXMax = HGLeftBulletXMax_mc._x;
};
HGBomb = function () {
};
HGBomb.prototype = new EnemyWeapon();
HGBomb.prototype.pDamageInflicted = 15;
HGBomb.prototype.pSpeed = 9;
HGBomb.prototype.pHitTestPxDiv = 5;
HGBomb.prototype.removeMe = function () {
var _local1 = this;
_local1.removeFromTrailingArray();
removeMovieClip(_local1.pClip);
var _local2 = "oHGBomb" + _local1.pDepthLevel;
fnRemoveObj(_local2);
};
HGBomb.prototype.scrollMe = function () {
var vCanScroll = true;
var vNextY = (eval (this.pClip)._y + this.pSpeed);
if (vNextY >= this.pYMax) {
var vCanScroll = false;
this.removeMe();
} else {
var vMyX = eval (this.pClip)._x;
var vMyY = eval (this.pClip)._y;
var vNextX = (vMyX - oTigerHawk.getSpeed());
if (this.pDetonated == false) {
var vXs_array = new Array();
var vYs_array = new Array();
var vXIncr = ((vMyX - vNextX) / this.pHitTestPxDiv);
var vYIncr = ((vNextY - vMyY) / this.pHitTestPxDiv);
var i = 1;
i = 1;
while (i <= this.pHitTestPxDiv) {
vXs_array.push(vMyX - (i * vXIncr));
vYs_array.push(vMyY + (i * vYIncr));
i++;
}
var j = 0;
j = 0;
while (j < vXs_array.length) {
if (eval (oTigerHawk.getBodyClip()).hitTest(vXs_array[j], vYs_array[j], true)) {
this.pDetonated = true;
oTigerHawk.getHit(this.pDamageInflicted);
eval (this.pClip).gotoAndPlay("detonate");
trailingObjs_array.push(this);
j = vXs_array.length;
}
j++;
}
}
if (vCanScroll == true) {
eval (this.pClip)._x = vMyX - oTigerHawk.getSpeed();
eval (this.pClip)._y = vNextY;
}
}
return(vCanScroll);
};
HGBomb.prototype.setPositions = function () {
this.pYMax = HGBombYMax_mc._y;
};
HGRightBomb = function (lev, startx, starty) {
this.pDepthLevel = lev;
this.pDetonated = false;
this.pClip = ("HGRightBomb" + this.pDepthLevel) + "_mc";
attachMovie("HGRightBomb", this.pClip, this.pDepthLevel);
eval (this.pClip).vObjRef = this;
eval (this.pClip).gotoAndStop("base");
eval (this.pClip)._x = startx;
eval (this.pClip)._y = starty;
this.addToScrollArray();
};
HGRightBomb.prototype = new HGBomb();
HGLeftBomb = function (lev, startx, starty) {
this.pDepthLevel = lev;
this.pDetonated = false;
this.pClip = ("HGLeftBomb" + this.pDepthLevel) + "_mc";
attachMovie("HGLeftBomb", this.pClip, this.pDepthLevel);
eval (this.pClip).vObjRef = this;
eval (this.pClip).gotoAndStop("base");
eval (this.pClip)._x = startx;
eval (this.pClip)._y = starty;
this.addToScrollArray();
};
HGLeftBomb.prototype = new HGBomb();
BoatBullet = function (lev, startx, starty, rot, xmoveratio, ymoveratio) {
this.pClip = ("boatBullet" + lev) + "_mc";
this.pDepthLevel = lev;
this.pDetonated = false;
this.pXMoveRatio = xmoveratio;
this.pYMoveRatio = ymoveratio;
attachMovie("boatBullet", this.pClip, lev);
eval (this.pClip).vObjRef = this;
this.pClipRotation = rot;
eval (this.pClip)._rotation = this.pClipRotation;
eval (this.pClip)._x = this.getNextX(startx, this.pBulletSpeed * 1.5);
eval (this.pClip)._y = this.getNextY(starty, this.pBulletSpeed * 1.5);
this.addToScrollArray();
};
BoatBullet.prototype = new EnemyWeapon();
BoatBullet.prototype.pBulletSpeed = oTigerHawk.pMaxSpeed + 13;
BoatBullet.prototype.pDamageInflicted = 10;
BoatBullet.prototype.pHitTestPixelIncr = 3;
BoatBullet.prototype.getNextX = function (startx, speed) {
var vMyX;
if ((startx == undefined) || (startx == false)) {
vMyX = eval (this.pClip)._x;
} else {
vMyX = startx;
}
var vRotation = this.pClipRotation;
var vTHSpeed = oTigerHawk.getSpeed();
var vSpeed;
if ((speed == undefined) || (speed == false)) {
vSpeed = this.pBulletSpeed * this.pXMoveRatio;
} else {
vSpeed = speed * this.pXMoveRatio;
}
var vNextX;
if (vRotation < 90) {
vNextX = (vMyX - vSpeed) - vTHSpeed;
} else if (vRotation > 90) {
vNextX = (vMyX + vSpeed) - vTHSpeed;
} else {
vNextX = vMyX - vTHSpeed;
}
return(vNextX);
};
BoatBullet.prototype.getNextY = function (starty, speed) {
var vSpeed;
if ((speed == undefined) || (speed == false)) {
vSpeed = this.pBulletSpeed - oTigerHawk.getSpeed();
} else {
vSpeed = speed - oTigerHawk.getSpeed();
}
var vMyY;
if ((starty == undefined) || (starty == false)) {
vMyY = eval (this.pClip)._y;
} else {
vMyY = starty;
}
return(vMyY - (this.pYMoveRatio * vSpeed));
};
BoatBullet.prototype.removeMe = function () {
var _local1 = this;
_local1.removeFromTrailingArray();
removeMovieClip(_local1.pClip);
var _local2 = "oBoatBullet" + _local1.pDepthLevel;
fnRemoveObj(_local2);
};
BoatBullet.prototype.scrollMe = function () {
var vCanScroll = true;
var vNextX = this.getNextX();
var vNextY = this.getNextY();
if (((vNextX <= this.pMinX) || (vNextY <= this.pMinY)) || (vNextX >= this.pMaxX)) {
vCanScroll = false;
this.removeMe();
} else {
if (this.pDetonated == false) {
var trajXValues_array = new Array();
var trajYValues_array = new Array();
var vAddMore = true;
var j = 1;
while (vAddMore == true) {
var vNewValue;
if (this.pClipRotation < 90) {
vNewValue = this.getNextX(false, false, eval (this.pClip)._x, j * this.pHitTestPixelIncr);
if (vNewValue > vNextX) {
trajXValues_array.push(vNewValue);
trajYValues_array.push(this.getNextY(false, eval (this.pClip)._y, j * this.pHitTestPixelIncr));
j++;
} else {
trajXValues_array.push(vNextX);
trajYValues_array.push(vNextY);
vAddMore = false;
}
} else if (this.pClipRotation > 90) {
vNewValue = this.getNextX(false, false, eval (this.pClip)._x, j * this.pHitTestPixelIncr);
if (vNewValue < vNextX) {
trajXValues_array.push(vNewValue);
trajYValues_array.push(this.getNextY(false, eval (this.pClip)._y, j * this.pHitTestPixelIncr));
j++;
} else {
trajXValues_array.push(vNextX);
trajYValues_array.push(vNextY);
vAddMore = false;
}
} else {
vNewValue = Number(eval (this.pClip)._y) - (j * this.pHitTestPixelIncr);
if (vNewValue > vNextY) {
trajXValues_array.push(vNextX);
trajYValues_array.push(vNewValue);
j++;
} else {
trajXValues_array.push(vNextX);
trajYValues_array.push(vNextY);
vAddMore = false;
}
}
delete vNewValue;
}
var i = 0;
i = 0;
while (i < trajXValues_array.length) {
if (eval (oTigerHawk.getBodyClip()).hitTest(trajXValues_array[i], trajYValues_array[i], true)) {
this.pDetonated = true;
eval (this.pClip)._x = trajXValues_array[i];
eval (this.pClip)._y = trajYValues_array[i];
vCanScroll = false;
oTigerHawk.getHit(this.pDamageInflicted);
eval (this.pClip).gotoAndPlay("detonate");
trailingObjs_array.push(this);
i = trajXValues_array.length;
}
i++;
}
}
if (vCanScroll == true) {
eval (this.pClip)._x = vNextX;
eval (this.pClip)._y = vNextY;
}
}
return(vCanScroll);
};
BoatBullet.prototype.setPositions = function () {
var _local1 = this;
_local1.pMinX = boatBulletXMin_mc._x;
_local1.pMinY = boatBulletYMin_mc._y;
_local1.pMaxX = boatBulletXMax_mc._x;
};
Weapon = function () {
};
Weapon.prototype.addToScrollArray = function () {
scrollingObjs_array.push(this);
};
Weapon.prototype.createClip = function (startx, starty, rot) {
var vDepthLev = this.getDepthLevel();
this.pClip = ("weapon" + vDepthLev) + "_mc";
attachMovie(this.getType(), this.pClip, vDepthLev);
if (startx == undefined) {
eval (this.pClip)._x = oTigerHawk.getClipX();
eval (this.pClip)._y = oTigerHawk.getClipY();
} else {
eval (this.pClip)._x = startx;
eval (this.pClip)._y = starty;
if (rot != undefined) {
eval (this.pClip)._rotation = rot;
}
}
if (this.getType() == "bomb") {
scrollingObjs_array.push(this);
} else {
eval (this.pClip).gotoAndPlay("go");
}
eval (this.pClip).vObjRef = this;
};
Weapon.prototype.getDepthLevel = function () {
return(this.pDepthLevel);
};
Weapon.prototype.getDetonatedVar = function () {
return(this.pDetonated);
};
Weapon.prototype.getType = function () {
return(this.pType);
};
Weapon.prototype.pause = function () {
if (this.getDetonatedVar() == true) {
eval (this.pClip).stop();
}
};
Weapon.prototype.removeFromScrollArray = function () {
var _local2 = this;
var _local1 = 0;
_local1 = 0;
while (_local1 < scrollingObjs_array.length) {
if (scrollingObjs_array[_local1] == _local2) {
scrollingObjs_array.splice(_local1, 1);
return;
}
_local1++;
}
};
Weapon.prototype.removeFromTrailingArray = function () {
var _local2 = this;
var _local1 = 0;
_local1 = 0;
while (_local1 < trailingObjs_array.length) {
if (trailingObjs_array[_local1] == _local2) {
trailingObjs_array.splice(_local1, 1);
return;
}
_local1++;
}
};
Weapon.prototype.removeMe = function () {
var _local1 = this;
_local1.removeFromTrailingArray();
removeMovieClip(_local1.pClip);
var _local2 = "oWeapon" + _local1.getDepthLevel();
fnRemoveObj(_local2);
};
Weapon.prototype.resume = function () {
if (this.getDetonatedVar() == true) {
eval (this.pClip).play();
}
};
Weapon.prototype.setUp = function (lev, weapontype, startx, starty, rot) {
var _local1 = this;
_local1.pDepthLevel = lev;
_local1.pDetonated = false;
_local1.pType = weapontype;
_local1.createClip(startx, starty, rot);
};
Bomb = function (lev, startx, starty, rot) {
this.setUp(lev, "bomb", startx, starty, rot);
};
Bomb.prototype = new Weapon();
Bomb.prototype.pDamageInflicted = 20;
Bomb.prototype.pDropSpeed = 12;
Bomb.prototype.pSpeedMultiplier = 0.65;
Bomb.prototype.scrollMe = function () {
var vClipX = eval (this.pClip)._x;
var vClipY = eval (this.pClip)._y;
var vSpeed = (this.pSpeedMultiplier * oTigerHawk.getSpeed());
if ((vClipY + this.pDropSpeed) >= this.pMaxY) {
eval (this.pClip)._y = this.pMaxY;
if (this.getDetonatedVar() == false) {
this.pDetonated = true;
eval (this.pClip).gotoAndPlay("detonate");
}
} else {
var i = 0;
i = 0;
while (i < oLauncher.activeEnemies_array.length) {
var vEnemyObj = oLauncher.getActiveEnemy(i);
var vShapeParam = false;
if (vEnemyObj.pCanBeKilled == false) {
vShapeParam = true;
}
if (eval (vEnemyObj.getHitClip()).hitTest(eval (this.pClip)._x, eval (this.pClip)._y, vShapeParam)) {
if (vEnemyObj.pKilled == false) {
if (this.getDetonatedVar() == false) {
vEnemyObj.hitByWeapon("bomb", this.pDamageInflicted);
this.pDetonated = true;
eval (this.pClip).gotoAndPlay("detonate");
break;
}
}
}
delete vEnemyObj;
i++;
}
if (this.getDetonatedVar() == false) {
eval (this.pClip)._y = vClipY + this.pDropSpeed;
}
}
eval (this.pClip)._x = vClipX - vSpeed;
return(true);
};
Bomb.prototype.setYMax = function () {
this.pMaxY = bombYMax_mc._y;
};
Gatling = function (lev) {
this.setUp(lev, "gatling");
};
Gatling.prototype = new Weapon();
Gatling.prototype.pDamageInflicted = 1;
Gatling.prototype.pHitTestPixelIncr = 3;
Gatling.prototype.pSpeed = oTigerHawk.pMaxSpeed + 14;
Gatling.prototype.scrollMe = function () {
var vSpeed = (this.pSpeed - oTigerHawk.getSpeed());
var vCanScroll = true;
var vClipX = eval (this.pClip)._x;
var vNewX = (vClipX + vSpeed);
if (vNewX > this.pMaxX) {
vCanScroll = false;
this.removeMe();
} else {
var i = 0;
i = 0;
while (i < oLauncher.activeEnemies_array.length) {
var vEnemyObj = oLauncher.getActiveEnemy(i);
if (vEnemyObj.pKilled == false) {
if (this.getDetonatedVar() == false) {
var trajXValues_array = new Array();
trajXValues_array.push(vClipX);
var vAddMore = true;
var j = 1;
while (vAddMore == true) {
var vNewValue = (vClipX + (j * this.pHitTestPixelIncr));
if (vNewValue < vNewX) {
trajXValues_array.push(vNewValue);
j++;
} else {
vAddMore = false;
}
delete vNewValue;
}
var k = 0;
k = 0;
while (k < trajXValues_array.length) {
if (eval (vEnemyObj.getHitClip()).hitTest(trajXValues_array[k], eval (this.pClip)._y, true)) {
vEnemyObj.hitByWeapon("gatling", this.pDamageInflicted);
this.pDetonated = true;
vCanScroll = false;
trailingObjs_array.push(this);
eval (this.pClip)._x = trajXValues_array[k];
eval (this.pClip).gotoAndPlay("detonate");
k = trajXValues_array.length;
i = oLauncher.activeEnemies_array.length;
}
k++;
}
delete j;
delete vAddMore;
delete trajXValues_array;
}
}
delete vEnemyObj;
i++;
}
}
if (vCanScroll == true) {
eval (this.pClip)._x = vNewX;
}
return(vCanScroll);
};
Gatling.prototype.scrollMeTrailing = function () {
eval (this.pClip)._x = eval (this.pClip)._x - oTigerHawk.getSpeed();
};
Gatling.prototype.setXMax = function () {
this.pMaxX = weaponXMax_mc._x;
};
Missile = function (lev, startx, starty) {
this.setUp(lev, "missile", startx, starty);
};
Missile.prototype = new Weapon();
Missile.prototype.pDamageInflicted = 20;
Missile.prototype.pHitTestPixelIncr = 3;
Missile.prototype.pSpeed = oTigerHawk.pMaxSpeed + 17;
Missile.prototype.scrollMe = function () {
var vCanScroll = true;
var vSpeed = (this.pSpeed - oTigerHawk.getSpeed());
var vClipX = eval (this.pClip)._x;
var vNewX = (vClipX + vSpeed);
if (vNewX > this.pMaxX) {
vCanScroll = false;
this.removeMe();
} else {
var i = 0;
i = 0;
while (i < oLauncher.activeEnemies_array.length) {
var vEnemyObj = oLauncher.getActiveEnemy(i);
if (vEnemyObj.pKilled == false) {
if (this.getDetonatedVar() == false) {
var trajXValues_array = new Array();
trajXValues_array.push(vClipX);
var vAddMore = true;
var j = 1;
while (vAddMore == true) {
var vNewValue = (vClipX + (j * this.pHitTestPixelIncr));
if (vNewValue < vNewX) {
trajXValues_array.push(vNewValue);
j++;
} else {
vAddMore = false;
}
delete vNewValue;
}
var k = 0;
k = 0;
while (k < trajXValues_array.length) {
if (eval (vEnemyObj.getHitClip()).hitTest(trajXValues_array[k], eval (this.pClip)._y, true)) {
if (vEnemyObj.pCanBeKilled == true) {
vEnemyObj.hitByWeapon("missile", this.pDamageInflicted);
}
this.pDetonated = true;
vCanScroll = false;
eval (this.pClip)._x = trajXValues_array[k];
eval (this.pClip).gotoAndPlay("detonate");
trailingObjs_array.push(this);
k = trajXValues_array.length;
i = oLauncher.activeEnemies_array.length;
}
k++;
}
delete j;
delete vAddMore;
delete trajXValues_array;
}
}
delete vEnemyObj;
i++;
}
}
if (vCanScroll == true) {
eval (this.pClip)._x = vClipX + vSpeed;
}
return(vCanScroll);
};
Missile.prototype.scrollMeTrailing = function () {
eval (this.pClip)._x = eval (this.pClip)._x - oTigerHawk.getSpeed();
};
Missile.prototype.setXMax = function () {
this.pMaxX = weaponXMax_mc._x;
};
oExplosions = new Object();
oExplosions.pTotalClips = 5;
oExplosions.allClips_array = new Array();
oExplosions.endExplosion = function (clipname) {
var vClip = Number(String(clipname).substr(9, String(clipname).indexOf("_mc") - 9));
var vAdd = true;
var i = 1;
i = 1;
while (i < this.availClips_array.length) {
if (vClip == Number(this.availClips_array[i])) {
vAdd = false;
break;
}
i++;
}
if (vAdd == true) {
this.availClips_array.push(vClip);
}
eval (clipname)._x = eval (clipname).vXReset;
eval (clipname)._y = eval (clipname).vYReset;
};
oExplosions.fire = function (xpos, ypos, weapon) {
oTigerHawk.getHit(eval (weapon).prototype.pDamageInflicted);
if (this.availClips_array.length > 0) {
var vClip = this.availClips_array[0];
this.availClips_array.splice(0, 1);
eval (("explosion" + vClip) + "_mc")._x = xpos;
eval (("explosion" + vClip) + "_mc")._y = ypos;
eval (("explosion" + vClip) + "_mc").gotoAndPlay("detonate");
}
};
oExplosions.pause = function () {
var i = 1;
i = 1;
while (i <= this.pTotalClips) {
if (eval (("explosion" + i) + "_mc")._currentframe != 1) {
eval (("explosion" + i) + "_mc").stop();
}
i++;
}
};
oExplosions.reset = function () {
if (this.availClips_array) {
delete this.availClips_array;
}
this.availClips_array = this.allClips_array.concat(empty_array);
var i = 1;
i = 1;
while (i <= this.pTotalClips) {
eval (("explosion" + i) + "_mc")._x = eval (("explosion" + i) + "_mc").vXReset;
eval (("explosion" + i) + "_mc")._y = eval (("explosion" + i) + "_mc").vYReset;
i++;
}
};
oExplosions.resume = function () {
var i = 1;
i = 1;
while (i <= this.pTotalClips) {
if (eval (("explosion" + i) + "_mc")._currentframe != 1) {
eval (("explosion" + i) + "_mc").play();
}
i++;
}
};
oExplosions.setUp = function () {
var i = 1;
i = 1;
while (i <= this.pTotalClips) {
this.allClips_array.push(i);
eval (("explosion" + i) + "_mc").vObjRef = this;
eval (("explosion" + i) + "_mc").vXReset = eval (("explosion" + i) + "_mc")._x;
eval (("explosion" + i) + "_mc").vYReset = eval (("explosion" + i) + "_mc")._y;
i++;
}
};
oHealthDisplay = new Object();
oHealthDisplay.pClip = "border_mc.damageMeter_mc";
oHealthDisplay.updateMeter = function () {
var vFrameNum;
if (oTigerHawk.getHealth() >= 100) {
vFrameNum = eval (this.pClip)._totalframes;
} else if (oTigerHawk.getHealth() <= 0) {
vFrameNum = 1;
} else {
vFrameNum = 2 + Math.floor((oTigerHawk.getHealth() * (eval (this.pClip)._totalframes - 2)) / 100);
}
eval (this.pClip).gotoAndStop(vFrameNum);
};
oLauncher = new Object();
oLauncher.pClip = "launcher_mc";
oLauncher.allEnemyTypes_array = new Array();
oLauncher.activeEnemies_array = new Array();
oLauncher.addDistance = function () {
eval (this.pClip).vDist = eval (this.pClip).vDist + oTigerHawk.getSpeed();
this.pTHDist = this.pTHDist + oTigerHawk.getSpeed();
if (rWeaponLevel >= 550000) {
rWeaponLevel = 200000 /* 0x030D40 */;
}
};
oLauncher.checkAccelerate = function () {
var vLevel = oLevel.getLevel();
switch (vLevel) {
case 1 :
var vLaunchedCount = this.getLaunchedCount();
if (oLevel.lev1.pHeliLaunched == false) {
if (vLaunchedCount >= 10) {
if (Math.random() > 0.3) {
oPushDownHeli.launch();
oLevel.lev1.pHeliLaunched = true;
}
}
}
if ((vLaunchedCount > 5) && (vLaunchedCount <= 10)) {
oLevel.lev1.pMechShootAccuracy = 0.3;
} else if ((vLaunchedCount > 7) && (vLaunchedCount <= 8)) {
oLevel.lev1.pMechShootAccuracy = 0.6;
} else if ((vLaunchedCount > 8) && (vLaunchedCount <= 10)) {
oLevel.lev1.pMechShootAccuracy = 0.9;
} else if ((vLaunchedCount > 10) && (vLaunchedCount <= 16)) {
oLevel.lev1.pMechShootAccuracy = 0.2;
} else if ((vLaunchedCount > 16) && (vLaunchedCount <= 21)) {
oLevel.lev1.pMechShootAccuracy = 0.5;
} else if ((vLaunchedCount > 21) && (vLaunchedCount <= 25)) {
oLevel.lev1.pMechShootAccuracy = 0.8;
} else if (vLaunchedCount > 25) {
oLevel.lev1.pMechShootAccuracy = 0.9;
}
return;
case 2 :
if (oLevel.lev2.pNAdderLeftLaunched == false) {
if (this.getLaunchedCount() >= 5) {
oNAdderLeft.leaving = false;
oNAdderLeft.launch();
oLevel.lev2.pNAdderLeftLaunched = true;
}
} else if (oLevel.lev2.pAdderRightAdded == false) {
if (this.getLaunchedCount() >= 12) {
if (Math.random() > 0.3) {
oNAdderLeft.goAway();
oLevel.lev2.pAdderLeftHidden = true;
this.allEnemyTypes_array.splice(0, 1);
oLevel.lev2.pAdderLeftAdded = false;
this.allEnemyTypes_array.push("nAdderRight");
oLevel.lev2.pAdderRightAdded = true;
}
}
} else if (oLevel.lev2.pAdderLeftAdded == false) {
if (this.getLaunchedCount() >= 18) {
if (Math.random() > 0.3) {
this.allEnemyTypes_array.push("nAdderLeft");
oLevel.lev2.pAdderLeftAdded = true;
}
}
} else if (oLevel.lev2.pAdderLeftHidden == true) {
if (this.getLaunchedCount() >= 24) {
oNAdderLeft.leaving = false;
oLevel.lev2.pNAdderLeftOn = true;
oNAdderLeft.launch();
oLevel.lev2.pAdderLeftHidden = false;
}
}
return;
case 3 :
if (oLevel.lev3.pHeliAdded == false) {
if (this.getLaunchedCount() >= 6) {
this.allEnemyTypes_array.push("heli");
oLevel.lev3.pHeliAdded = true;
}
} else if (oLevel.lev3.pLiftUpHeliAdded == false) {
if (this.getLaunchedCount() >= 15) {
if (oLevel.lev3.pHeliLaunched == true) {
oLevel.lev3.pLiftUpHeliAdded = true;
}
}
}
return;
case 4 :
var vLaunchedCount = this.getLaunchedCount();
if (oLevel.lev4.pHangGliderBombersAdded == false) {
if (vLaunchedCount >= 7) {
oLevel.lev4.pHangGliderBombersAdded = true;
}
} else if (oLevel.lev4.pHangGliderLeftsAdded == false) {
if (vLaunchedCount >= 13) {
this.allEnemyTypes_array.push("hangGliderLeft");
oLevel.lev4.pHangGliderLeftsAdded = true;
}
}
if ((vLaunchedCount >= 4) && (vLaunchedCount < 8)) {
oLevel.lev4.pIntelProb = 0.4;
} else if ((vLaunchedCount >= 8) && (vLaunchedCount < 12)) {
eval (oLauncher.pClip).vMaxDist = 140;
oLevel.lev4.pIntelProb = 0.5;
} else if ((vLaunchedCount >= 12) && (vLaunchedCount < 16)) {
eval (oLauncher.pClip).vMinDist = 75;
eval (oLauncher.pClip).vMaxDist = 130;
oLevel.lev4.pIntelProb = 0.6;
} else if ((vLaunchedCount >= 16) && (vLaunchedCount < 20)) {
eval (oLauncher.pClip).vMinDist = 70;
eval (oLauncher.pClip).vMaxDist = 120;
oLevel.lev4.pIntelProb = 0.7;
} else if ((vLaunchedCount >= 20) && (vLaunchedCount < 24)) {
eval (oLauncher.pClip).vMinDist = 65;
eval (oLauncher.pClip).vMaxDist = 110;
oLevel.lev4.pIntelProb = 0.8;
} else if (vLaunchedCount == 24) {
eval (oLauncher.pClip).vMaxDist = 100;
oLevel.lev4.pIntelProb = 0.9;
}
return;
case 5 :
var vLaunchedCount = this.getLaunchedCount();
if (oLevel.lev5.pHelisAdded == false) {
if (vLaunchedCount >= 5) {
this.allEnemyTypes_array.push("heli");
oLevel.lev5.pHelisAdded = true;
}
} else if (oLevel.lev5.pLeftBoatsAdded == false) {
if (vLaunchedCount >= 10) {
this.allEnemyTypes_array.push("boatLeft");
oLevel.lev5.pLeftBoatsAdded = true;
}
} else if (oLevel.lev5.pHelisRemoved == false) {
if (vLaunchedCount >= 15) {
var i = 0;
i = 0;
while (i < this.allEnemyTypes_array.length) {
if (this.allEnemyTypes_array[i] == "heli") {
this.allEnemyTypes_array.splice(i, 1);
i = this.allEnemyTypes_array.length;
}
i++;
}
eval (oLauncher.pClip).vMinDist = eval (oLauncher.pClip).vMinDist - 10;
eval (oLauncher.pClip).vMaxDist = eval (oLauncher.pClip).vMaxDist - 20;
oLevel.lev5.pVariableBoatSpeed = true;
oLevel.lev5.pHelisRemoved = true;
}
} else if (vLaunchedCount == 30) {
this.allEnemyTypes_array.push("heli");
eval (oLauncher.pClip).vMinDist = eval (oLauncher.pClip).vMinDist + 5;
eval (oLauncher.pClip).vMaxDist = eval (oLauncher.pClip).vMaxDist + 10;
}
if (oLevel.lev5.pParaBombsAdded == false) {
if (oLevel.lev5.pLeftBoatsAdded == true) {
this.allEnemyTypes_array.push("paraBomb");
oLevel.lev5.pParaBombsAdded = true;
}
} else if (oLevel.lev5.pRightBoatsRemoved == false) {
if (vLaunchedCount >= 16) {
var i = 0;
i = 0;
while (i < this.allEnemyTypes_array.length) {
if (this.allEnemyTypes_array[i] == "boatRight") {
this.allEnemyTypes_array.splice(i, 1);
oLevel.lev5.pRightBoatsRemoved = true;
i = this.allEnemyTypes_array.length;
}
i++;
}
}
} else if (oLevel.lev5.pLeftBoatsRemoved == false) {
if (vLaunchedCount >= 20) {
var i = 0;
i = 0;
while (i < this.allEnemyTypes_array.length) {
if (this.allEnemyTypes_array[i] == "boatLeft") {
this.allEnemyTypes_array.splice(i, 1);
oLevel.lev5.pLeftBoatsRemoved = true;
i = this.allEnemyTypes_array.length;
}
i++;
}
}
} else if (oLevel.lev5.pBoatsAddedBack == false) {
if (vLaunchedCount >= 26) {
this.allEnemyTypes_array.push("boatRight", "boatLeft");
oLevel.lev5.pBoatsAddedBack = true;
}
}
return;
case 6 :
var vLaunchedCount = this.getLaunchedCount();
if (oLevel.lev6.pVolcanosAdded == false) {
if (vLaunchedCount >= 5) {
oLevel.lev6.eruptionFrequency = 0.6;
this.allEnemyTypes_array.push("volcano1", "volcano2", "volcano3");
oLevel.lev6.pVolcanosAdded = true;
}
} else if (oLevel.lev6.pCopterAdded == false) {
if (vLaunchedCount >= 12) {
var i = 1;
var vIndex;
i = 1;
while (i <= 3) {
vIndex = this.allEnemyTypes_array.searchArray("volcano" + i);
this.allEnemyTypes_array.splice(vIndex, 1);
i++;
}
oLevel.lev6.pVolcanosRemoved = true;
this.allEnemyTypes_array.push("heli");
oLevel.lev6.pCopterAdded = true;
}
} else if (oLevel.lev6.pVolcanosRemoved == true) {
if (vLaunchedCount >= 17) {
this.allEnemyTypes_array.push("volcano1", "volcano2", "volcano3");
oLevel.lev6.eruptionFrequency = 0.3;
oLevel.lev6.pVolcanosRemoved = false;
}
} else {
if (oLevel.lev6.pNAdderAdded != false) {
break;
}
if (vLaunchedCount < 23) {
break;
}
oNAdderLeft.leaving = false;
oNAdderLeft.launch();
oLevel.lev6.pNAdderAdded = true;
}
}
};
oLauncher.getActiveEnemy = function (index) {
return(this.activeEnemies_array[index]);
};
oLauncher.getDistance = function () {
return(this.pTHDist);
};
oLauncher.getEnemyCount = function () {
return(this.activeEnemies_array.length);
};
oLauncher.getLaunchedCount = function () {
return(this.pLaunchedCount);
};
oLauncher.getNextEnemyLev = function (enemytype) {
var _local1;
if (enemytype == "paraBomb") {
_local1 = this.pNextBGEnemyLev;
} else {
_local1 = this.pNextEnemyLev;
}
return(_local1);
};
oLauncher.hitTestNewClip = function (clipname, enemytype, cliplevel) {
var vCanLaunch = true;
if (clipname != undefined) {
this.vQueuedClip = clipname;
this.vQueuedEnemyType = enemytype;
this.vQueuedLevel = cliplevel;
}
var i = 0;
i = 0;
while (i < this.activeEnemies_array.length) {
var vEnemyObj = this.getActiveEnemy(i);
if (eval (this.vQueuedClip).hitTest(eval (vEnemyObj.pClip))) {
vCanLaunch = false;
break;
}
if (((oLevel.getLevel() == 3) && (oLevel.lev3.pLiftUpHeliAdded == true)) && (this.vQueuedEnemyType == "heli")) {
if (oLevel.lev3.pLastLiftUpHeli != null) {
if (oLevel.lev3.pLastLiftUpHeli.pKilled == false) {
if (eval (this.vQueuedClip).vLiftUp != true) {
if (eval (oLevel.lev3.pLastLiftUpHeli.pClip)._x > Enemy_heli.prototype.pLiftUpClearX) {
vCanLaunch = false;
break;
}
}
}
}
}
delete vEnemyObj;
i++;
}
if (vCanLaunch == true) {
this.launch(this.vQueuedEnemyType, this.vQueuedClip, this.vQueuedLevel);
eval (this.pClip).gotoAndPlay("go");
} else {
eval (this.pClip).gotoAndPlay("wait");
}
};
oLauncher.incrementEnemyLev = function (enemytype) {
var _local1 = this;
if (enemytype == "paraBomb") {
_local1.pNextBGEnemyLev = _local1.pNextBGEnemyLev + 2;
if (_local1.pNextBGEnemyLev >= 4500) {
_local1.pNextBGEnemyLev = 2;
}
} else {
_local1.pNextEnemyLev = _local1.pNextEnemyLev + 2;
if (_local1.pNextEnemyLev >= 195000) {
_local1.pNextEnemyLev = 5000;
}
}
};
oLauncher.launch = function (enemytype, clipname, cliplevel) {
Set((("oEnemy_" + enemytype) + "_") + cliplevel, new eval ("Enemy_" + enemytype)(clipname, cliplevel));
this.activeEnemies_array.push(eval ((("oEnemy_" + enemytype) + "_") + cliplevel));
var vLev = oLevel.getLevel();
this.pLaunchedCount++;
this.incrementEnemyLev(enemytype);
this.checkAccelerate();
};
oLauncher.pause = function () {
eval (this.pClip).stop();
};
oLauncher.removeFromEnemyArray = function (obj) {
var _local2 = this;
var _local3 = obj;
var _local1 = 0;
_local1 = 0;
while (_local1 < _local2.activeEnemies_array.length) {
if (_local3 == _local2.activeEnemies_array[_local1]) {
_local2.activeEnemies_array.splice(_local1, 1);
return;
}
_local1++;
}
};
oLauncher.reset = function () {
this.pLaunchedCount = 0;
this.pLoopStarted = false;
this.pNextEnemyLev = 5000;
this.pNextBGEnemyLev = 2;
this.pTHDist = 0;
this.setLoopValues();
this.activeEnemies_array.splice(0);
this.allEnemyTypes_array.splice(0);
var vLevel = oLevel.getLevel();
switch (vLevel) {
case 1 :
this.allEnemyTypes_array.push("pulverizerWalk");
break;
case 2 :
this.allEnemyTypes_array.push("nAdderLeft");
break;
case 3 :
this.allEnemyTypes_array.push("aAGun", "tikiHut1", "tikiHut2");
break;
case 4 :
this.allEnemyTypes_array.push("hangGliderRight");
break;
case 5 :
this.allEnemyTypes_array.push("boatRight");
break;
case 6 :
this.allEnemyTypes_array.push("nAdderRight");
}
eval (this.pClip).gotoAndStop("base");
};
oLauncher.resume = function () {
if (this.pLoopStarted == true) {
eval (this.pClip).play();
} else {
this.pLoopStarted = true;
this.tryLaunch();
}
};
oLauncher.setLoopValues = function () {
var vMinDist;
var vMaxDist;
var vLevel = oLevel.getLevel();
switch (vLevel) {
case 1 :
vMinDist = 70;
vMaxDist = 115;
break;
case 2 :
vMinDist = 70;
vMaxDist = 120;
break;
case 3 :
vMinDist = 65;
vMaxDist = 110;
break;
case 4 :
vMinDist = 80;
vMaxDist = 150;
break;
case 5 :
vMinDist = 80;
vMaxDist = 155;
break;
case 6 :
vMinDist = 65;
vMaxDist = 120;
}
eval (this.pClip).vMinDist = vMinDist;
eval (this.pClip).vMaxDist = vMaxDist;
};
oLauncher.setUp = function () {
eval (this.pClip).vObjRef = this;
};
oLauncher.tryLaunch = function () {
if (this.allEnemyTypes_array.length > 0) {
var vIndex = Math.randomInteger(0, this.allEnemyTypes_array.length - 1);
vLev = oLevel.getLevel();
if (vLev == 3) {
if (oLevel.lev3.pHeliAdded == false) {
if (Math.random() > 0.4) {
vIndex = 0;
}
}
}
var vEnemyType = this.allEnemyTypes_array[vIndex];
var vNextLev = this.getNextEnemyLev(vEnemyType);
var vNewClip = (((vEnemyType + "_") + vNextLev) + "_mc");
attachMovie(vEnemyType, vNewClip, vNextLev);
eval (vNewClip)._x = eval ("Enemy_" + vEnemyType).prototype.getBeginX();
if (((((vLev == 3) && (oLevel.lev3.pLiftUpHeliAdded == true)) && (vEnemyType == "heli")) && (oLauncher.getLaunchedCount() >= 24)) && (Math.random() > 0.4)) {
eval (vNewClip).vLiftUp = true;
eval (vNewClip)._y = eval ("Enemy_" + vEnemyType).prototype.getBeginY(true);
} else if ((((vLev == 4) && (oLevel.lev4.pHangGliderbombersAdded == true)) && (Math.random() > 0.6)) && ((vEnemyType == "hangGliderRight") || (vEnemyType == "hangGliderLeft"))) {
eval (vNewClip).vBomber = true;
eval (vNewClip)._y = eval ("Enemy_" + vEnemyType).prototype.getBeginY(true);
} else {
eval (vNewClip)._y = eval ("Enemy_" + vEnemyType).prototype.getBeginY();
}
this.hitTestNewClip(vNewClip, vEnemyType, vNextLev);
}
};
oLevel = new Object();
oLevel.pClip = "border_mc.levelIndicator_mc";
oLevel.getHighestLevel = function () {
return(this.pHighestLevel);
};
oLevel.getLevel = function () {
return(this.pLevel);
};
oLevel.pause = function () {
var _local1 = this;
var _local2 = _local1.getLevel();
switch (_local2) {
case 1 :
_local1.lev1.pause();
return;
case 2 :
_local1.lev2.pause();
return;
case 5 :
_local1.lev5.pause();
return;
case 6 :
_local1.lev6.pause();
return;
}
};
oLevel.resetMe = function () {
this.setLevel(1);
};
oLevel.resume = function () {
var _local1 = this;
var _local2 = _local1.getLevel();
switch (_local2) {
case 1 :
_local1.lev1.resume();
return;
case 2 :
_local1.lev2.resume();
return;
case 5 :
_local1.lev5.resume();
return;
case 6 :
_local1.lev6.resume();
return;
}
};
oLevel.setHighestLevel = function () {
this.pHighestLevel = oKeyCode.getCorrectCodeNum() + 1;
};
oLevel.setLevel = function (lev) {
this.pLevel = lev;
};
oLevel.updateDisplay = function (fakelev) {
if (fakelev != undefined) {
eval (this.pClip).gotoAndStop("lev" + fakelev);
} else {
eval (this.pClip).gotoAndStop("lev" + this.getLevel());
}
};
oLevel.lev1 = new Object();
oLevel.lev1.pause = function () {
if (heli_mc.bombLock_mc.blink) {
heli_mc.bombLock_mc.blink.stop();
}
};
oLevel.lev1.reset = function () {
var _local1 = this;
_local1.pHeliOn = false;
_local1.pHeliLaunched = false;
_local1.pMechShootAccuracy = 0.1;
};
oLevel.lev1.resume = function () {
if (heli_mc.bombLock_mc.blink) {
heli_mc.bombLock_mc.blink.play();
}
};
oLevel.lev2 = new Object();
oLevel.lev2.pause = function () {
if (this.pNAdderLeftOn == true) {
if (oNAdderLeft.pClipPlaying == true) {
eval (oNAdderLeft.pClip).stop();
}
if (oNAdderLeft.getShootTimerVar() == true) {
nALeftShootReset_mc.stop();
}
}
};
oLevel.lev2.reset = function () {
var _local1 = this;
_local1.pAdderRightAdded = false;
_local1.pAdderLeftAdded = true;
_local1.pNAdderLeftLaunched = false;
_local1.pNAdderLeftOn = false;
_local1.pAdderLeftHidden = false;
};
oLevel.lev2.resume = function () {
if (this.pNAdderLeftOn == true) {
if (oNAdderLeft.pClipPlaying == true) {
eval (oNAdderLeft.pClip).play();
}
if (oNAdderLeft.getShootTimerVar() == true) {
nALeftShootReset_mc.play();
}
}
};
oLevel.lev3 = new Object();
oLevel.lev3.reset = function () {
var _local1 = this;
_local1.pHeliAdded = false;
_local1.pHeliLaunched = false;
_local1.pLiftUpHeliAdded = false;
_local1.pLastLiftUpHeli = null;
};
oLevel.lev4 = new Object();
oLevel.lev4.reset = function () {
var _local1 = this;
_local1.pHangGliderLeftsAdded = false;
_local1.pHangGliderBombersAdded = false;
_local1.pIntelProb = 0.3;
};
oLevel.lev5 = new Object();
oLevel.lev5.pause = function () {
fg_mc.stop();
};
oLevel.lev5.reset = function () {
var _local1 = this;
_local1.pHelisAdded = false;
_local1.pHelisRemoved = false;
_local1.pVariableBoatSpeed = false;
_local1.pLeftBoatsAdded = false;
_local1.pParaBombsAdded = false;
_local1.pRightBoatsRemoved = false;
_local1.pLeftBoatsRemoved = false;
_local1.pBoatsAddedBack = false;
};
oLevel.lev5.resume = function () {
fg_mc.play();
};
oLevel.lev6 = new Object();
oLevel.lev6.pause = function () {
if (this.pNAdderLeftOn == true) {
if (oNAdderLeft.pClipPlaying == true) {
eval (oNAdderLeft.pClip).stop();
}
if (oNAdderLeft.getShootTimerVar() == true) {
nALeftShootReset_mc.stop();
}
}
};
oLevel.lev6.reset = function () {
var _local1 = this;
_local1.pVolcanosAdded = false;
_local1.pCopterAdded = false;
_local1.pVolcanosRemoved = false;
_local1.pNAdderAdded = false;
_local1.pNAdderLeftOn = false;
};
oLevel.lev6.resume = function () {
if (this.pNAdderLeftOn == true) {
if (oNAdderLeft.pClipPlaying == true) {
eval (oNAdderLeft.pClip).play();
}
if (oNAdderLeft.getShootTimerVar() == true) {
nALeftShootReset_mc.play();
}
}
};
oScore = new Object();
oScore.pScoreTxtField = "border_mc.score_txt";
oScore.addPoints = function (points) {
var _local1 = this;
_local1.pScore = _local1.pScore + points;
_local1.pPointsThisLevel = _local1.pPointsThisLevel + points;
_local1.updateScore();
var _local2 = oLevel.getLevel();
if (_local1.pPointsThisLevel >= _local1.getReqPoints()) {
if (_local2 < oLevel.getHighestLevel()) {
fnEndLevel();
} else if (_local2 >= (oKeyCode.getMaxCodes() + 1)) {
fnEndLevel(true);
} else {
fnEndLevel(false, true);
}
}
};
oScore.getReqPoints = function () {
return(this.pReqPoints);
};
oScore.getScore = function () {
return(this.pScore);
};
oScore.losePoints = function (pointstaken) {
var _local1 = this;
_local1.pScore = _local1.pScore - pointstaken;
if (_local1.pScore < 0) {
_local1.pScore = 0;
_local1.pPointsThisLevel = 0;
}
_local1.updateScore();
};
oScore.resetMe = function () {
this.pScore = 0;
};
oScore.setReq = function (lev) {
var _local1 = this;
_local1.pPointsThisLevel = 0;
switch (lev) {
case 1 :
_local1.pReqPoints = 100;
return;
case 2 :
_local1.pReqPoints = 100;
return;
case 3 :
_local1.pReqPoints = 100;
return;
case 4 :
_local1.pReqPoints = 100;
return;
case 5 :
_local1.pReqPoints = 100;
return;
case 6 :
_local1.pReqPoints = 100;
return;
default :
_local1.pReqPoints = 100;
}
};
oScore.updateScore = function () {
eval (this.pScoreTxtField).text = this.getScore();
};
oWeaponsMenu = new Object();
oWeaponsMenu.pClip = "border_mc.weaponsMenu_mc";
oWeaponsMenu.allWeapons_array = new Array("gatling", "missile", "bomb");
oWeaponsMenu.disableBtns = function () {
var i = 0;
i = 0;
while (i < this.allWeapons_array.length) {
if (oTigerHawk.getCurrentWeapon() != this.allWeapons_array[i]) {
eval (this.pClip)[this.allWeapons_array[i] + "_btn"].enabled = false;
}
i++;
}
};
oWeaponsMenu.enableBtns = function () {
var i = 0;
i = 0;
while (i < this.allWeapons_array.length) {
if (oTigerHawk.getCurrentWeapon() != this.allWeapons_array[i]) {
eval (this.pClip)[this.allWeapons_array[i] + "_btn"].enabled = true;
}
i++;
}
};
oWeaponsMenu.fireWeapon = function (weapon) {
if (weapon != "gatling") {
Set(weapon + "Ready", false);
eval (((this.pClip + ".") + weapon) + "Recharge_mc").gotoAndPlay("recharge");
}
};
oWeaponsMenu.getWeaponStatus = function (weapon) {
var vReady = true;
if (eval (weapon + "Ready") == false) {
vReady = false;
}
return(vReady);
};
oWeaponsMenu.pause = function () {
var i = 0;
i = 0;
while (i < this.allWeapons_array.length) {
if (this.getWeaponStatus(this.allWeapons_array[i]) == false) {
eval (((this.pClip + ".") + this.allWeapons_array[i]) + "Recharge_mc").stop();
}
i++;
}
};
oWeaponsMenu.reset = function () {
var i = 0;
i = 0;
while (i < this.allWeapons_array.length) {
var vWeapon = this.allWeapons_array[i];
Set(vWeapon + "Ready", true);
eval (((this.pClip + ".") + vWeapon) + "Recharge_mc").gotoAndStop("base");
i++;
}
};
oWeaponsMenu.resume = function () {
var i = 0;
i = 0;
while (i < this.allWeapons_array.length) {
if (this.getWeaponStatus(this.allWeapons_array[i]) == false) {
eval (((this.pClip + ".") + this.allWeapons_array[i]) + "Recharge_mc").play();
}
i++;
}
};
oWeaponsMenu.resetWeaponStatus = function (weapon) {
Set(weapon + "Ready", true);
eval (((this.pClip + ".") + weapon) + "Recharge_mc").gotoAndStop("base");
};
oWeaponsMenu.selectWeapon = function (weapon) {
oTigerHawk.setCurrentWeapon(weapon);
eval (this.pClip).gotoAndStop(weapon + "_selected");
};
oWeaponsMenu.setBtns = function () {
if (rGameOn == true) {
this.enableBtns();
} else {
this.disableBtns();
}
};
oWeaponsMenu.setUp = function () {
this.selectWeapon("gatling");
eval (this.pClip).vObjRef = this;
};
oWeaponsMenu.toggleWeapon = function () {
var _local2 = this;
var vCurrent = oTigerHawk.getCurrentWeapon();
var _local3;
var _local1 = 0;
_local1 = 0;
while (_local1 < _local2.allWeapons_array.length) {
if (_local2.allWeapons_array[_local1] == vCurrent) {
_local3 = _local1;
break;
}
_local1++;
}
var vNextIndex = 0;
if (_local3 < (_local2.allWeapons_array.length - 1)) {
vNextIndex = _local3 + 1;
}
_local2.selectWeapon(_local2.allWeapons_array[vNextIndex]);
};
oKeyListener = new Object();
oKeyListener.onKeyUp = function () {
if (Key.getCode() == 32) {
oWeaponsMenu.toggleWeapon();
}
};
oMouseListener = new Object();
oMouseListener.onMouseDown = function () {
if (gameArea_mc.hitTest(_xmouse, _ymouse, true)) {
oTigerHawk.fireWeapon();
}
};
oMouseListener.onMouseMove = function () {
oTigerHawk.setSpeed();
};
Frame 15
if (_framesloaded >= eval ("rPreloadLev" + oLevel.getLevel())) {
gotoAndStop("lev" + oLevel.getLevel());
} else {
nextLevel_txt.text = oLevel.getLevel();
play();
}
Frame 16
if (_framesloaded >= eval ("rPreloadLev" + oLevel.getLevel())) {
gotoAndStop("lev" + oLevel.getLevel());
} else {
play();
}
Frame 18
gotoAndPlay ("check_load_loop");
Frame 20
if (rFirstTime == true) {
aip = new Sound(AudioIntroPedal_MC);
aip.attachSound("MusicHelp");
aip.setVolume(5);
aip.start(0, 999);
fnSetUpGame();
feedback_mc.gotoAndStop("instructions");
}
stop();
function fnClearStage() {
var _local2 = 0;
_local2 = 0;
while (_local2 < scrollingObjs_array.length) {
scrollingObjs_array[_local2].removeMe();
_local2++;
}
scrollingObjs_array.splice(0);
var _local1 = 0;
var _local3 = trailingObjs_array.length;
_local1 = 0;
while (_local1 < trailingObjs_array.length) {
trailingObjs_array[_local1].removeMe();
if (trailingObjs_array.length != _local3) {
_local3 = trailingObjs_array.length;
_local1--;
}
_local1++;
}
trailingObjs_array.splice(0);
if (fg_mc) {
removeMovieClip("fg_mc");
}
if (tigerHawkORIG_mc) {
removeMovieClip("tigerHawk_mc");
}
if (nAdderLeftORIG_mc) {
removeMovieClip("nAdderLeft_mc");
}
}
function fnContinue() {
rContinue = true;
rPickUpLevel = oLevel.getLevel();
fnPlayAgain(true);
fnClearStage();
fnUpdateDisplay();
}
function fnEndLevel(win, morecodes) {
fnPauseGame();
if (win == true) {
feedback_mc.gotoAndPlay("win");
} else if (morecodes == true) {
feedback_mc.gotoAndPlay("end_level");
} else {
feedback_mc.gotoAndPlay("end_level_advance");
}
}
function fnNextLevel(continueplay) {
fnClearStage();
if (continueplay == true) {
if (rPickUpLevel == 1) {
eval (oPushDownHeli.pClip).gotoAndStop("base");
oPushDownHeli.resetClip();
} else if (rPickUpLevel == 2) {
eval (oNAdderLeft.pClip).gotoAndStop("base");
oNAdderLeft.resetClip();
}
oLevel.setLevel(rPickUpLevel);
} else {
oLevel.setLevel(oLevel.getLevel() + 1);
}
gotoAndStop("lev" + oLevel.getLevel());
}
function fnNoHealthLeft() {
fnPauseGame();
feedback_mc.gotoAndPlay("no_health_left");
}
function fnPauseGame() {
Key.removeListener(oKeyListener);
Mouse.removeListener(oMouseListener);
oLauncher.pause();
oTigerHawk.pause();
oExplosions.pause();
oLevel.pause();
oWeaponsMenu.pause();
rGameOn = false;
fnDisableGameBtns();
var _local2 = 0;
_local2 = 0;
while (_local2 < scrollingObjs_array.length) {
scrollingObjs_array[_local2].pause();
_local2++;
}
var _local1 = 0;
_local1 = 0;
while (_local1 < trailingObjs_array.length) {
trailingObjs_array[_local1].pause();
_local1++;
}
}
function fnPlayAgain(continueplay) {
feedback_mc.gotoAndStop("base");
vOldLev = oLevel.getLevel();
fnResetGameVars(continueplay);
rInLevTrans = true;
if (continueplay == true) {
border_mc.levTransition_mc.gotoAndPlay("lev" + oLevel.getLevel());
} else {
rPlayAgain = true;
border_mc.levTransition_mc.gotoAndPlay("go");
}
}
function fnPlayAgainTrans() {
if (vOldLev == 1) {
oPushDownHeli.resetClip();
} else {
gotoAndStop ("lev1");
}
}
function fnPlayNextLevel() {
feedback_mc.gotoAndStop("base");
rInLevTrans = true;
border_mc.levTransition_mc.gotoAndPlay("pickup");
}
function fnPlayTrans() {
rInLevTrans = true;
border_mc.levTransition_mc.gotoAndPlay("go");
}
function fnRemoveObj(objname) {
delete eval (objname);
}
sceneMover_mc.onEnterFrame = function () {
if (rGameOn == true) {
var _local1 = 0;
_local1 = 0;
while (_local1 < scrollingObjs_array.length) {
if (scrollingObjs_array[_local1].scrollMe() == false) {
scrollingObjs_array.splice(_local1, 1);
_local1--;
}
_local1++;
}
var _local2 = 0;
_local2 = 0;
while (_local2 < trailingObjs_array.length) {
trailingObjs_array[_local2].scrollMeTrailing();
_local2++;
}
if (oLevel.lev1.pHeliOn == true) {
oPushDownHeli.calcMove();
}
oTigerHawk.checkForCollision();
oLauncher.addDistance();
}
};
Instance of Symbol 407 MovieClip "heli_mc" in Frame 20
onClipEvent (load) {
this.vObjRef = _parent.oPushDownHeli;
}
Frame 25
stop();
sceneMover_mc.onEnterFrame = function () {
if (rGameOn == true) {
var _local1 = 0;
_local1 = 0;
while (_local1 < scrollingObjs_array.length) {
if (scrollingObjs_array[_local1].scrollMe() == false) {
scrollingObjs_array.splice(_local1, 1);
_local1--;
}
_local1++;
}
var _local2 = 0;
_local2 = 0;
while (_local2 < trailingObjs_array.length) {
trailingObjs_array[_local2].scrollMeTrailing();
_local2++;
}
if (oLevel.lev2.pNAdderLeftOn == true) {
oNAdderLeft.calcMove();
}
oTigerHawk.checkForCollision();
oLauncher.addDistance();
}
};
Frame 30
stop();
sceneMover_mc.onEnterFrame = function () {
if (rGameOn == true) {
var _local1 = 0;
_local1 = 0;
while (_local1 < scrollingObjs_array.length) {
if (scrollingObjs_array[_local1].scrollMe() == false) {
scrollingObjs_array.splice(_local1, 1);
_local1--;
}
_local1++;
}
var _local2 = 0;
_local2 = 0;
while (_local2 < trailingObjs_array.length) {
trailingObjs_array[_local2].scrollMeTrailing();
_local2++;
}
oTigerHawk.checkForCollision();
oLauncher.addDistance();
}
};
Frame 35
stop();
sceneMover_mc.onEnterFrame = function () {
if (rGameOn == true) {
var _local1 = 0;
_local1 = 0;
while (_local1 < scrollingObjs_array.length) {
if (scrollingObjs_array[_local1].scrollMe() == false) {
scrollingObjs_array.splice(_local1, 1);
_local1--;
}
_local1++;
}
var _local2 = 0;
_local2 = 0;
while (_local2 < trailingObjs_array.length) {
trailingObjs_array[_local2].scrollMeTrailing();
_local2++;
}
oTigerHawk.checkForCollision();
oLauncher.addDistance();
}
};
Frame 40
stop();
sceneMover_mc.onEnterFrame = function () {
if (rGameOn == true) {
var _local1 = 0;
_local1 = 0;
while (_local1 < scrollingObjs_array.length) {
if (scrollingObjs_array[_local1].scrollMe() == false) {
scrollingObjs_array.splice(_local1, 1);
_local1--;
}
_local1++;
}
var _local2 = 0;
_local2 = 0;
while (_local2 < trailingObjs_array.length) {
trailingObjs_array[_local2].scrollMeTrailing();
_local2++;
}
oTigerHawk.checkForCollision();
oLauncher.addDistance();
}
};
Frame 45
stop();
function fnLinkToPrize() {
trace("link to different site");
}
function fnPrintCertificate() {
print_mc.gotoAndPlay("setup");
}
sceneMover_mc.onEnterFrame = function () {
if (rGameOn == true) {
var _local1 = 0;
_local1 = 0;
while (_local1 < scrollingObjs_array.length) {
if (scrollingObjs_array[_local1].scrollMe() == false) {
scrollingObjs_array.splice(_local1, 1);
_local1--;
}
_local1++;
}
var _local2 = 0;
_local2 = 0;
while (_local2 < trailingObjs_array.length) {
trailingObjs_array[_local2].scrollMeTrailing();
_local2++;
}
if (oLevel.lev6.pNAdderLeftOn == true) {
oNAdderLeft.calcMove();
}
oTigerHawk.checkForCollision();
oLauncher.addDistance();
}
};
Symbol 153 MovieClip Frame 2
stop();
Symbol 153 MovieClip Frame 5
goJoe_btn.onRelease = function () {
gMainTL.fnCloseBriefing(this._parent._name);
};
play();
Symbol 153 MovieClip Frame 11
next_btn.onRelease = function () {
gotoAndPlay ("panel2");
};
stop();
Symbol 153 MovieClip Frame 15
play();
Symbol 153 MovieClip Frame 22
next_btn.onRelease = function () {
gotoAndPlay ("panel3");
};
stop();
Symbol 153 MovieClip Frame 26
play();
Symbol 153 MovieClip Frame 34
next_btn.onRelease = function () {
gotoAndPlay ("panel4");
};
stop();
Symbol 153 MovieClip Frame 38
play();
Symbol 153 MovieClip Frame 46
next_btn.onRelease = function () {
gotoAndPlay ("panel5");
};
stop();
Symbol 153 MovieClip Frame 50
play();
Symbol 153 MovieClip Frame 58
next_btn.onRelease = function () {
gotoAndPlay ("end");
};
stop();
Symbol 153 MovieClip Frame 61
play();
Symbol 153 MovieClip Frame 67
goJoe_btn.onRelease = function () {
gMainTL.fnCloseBriefing(this._parent._name);
};
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 3
stop();
Symbol 162 MovieClip Frame 5
stop();
Symbol 162 MovieClip Frame 7
stop();
Symbol 162 MovieClip Frame 9
stop();
Symbol 162 MovieClip Frame 11
stop();
Symbol 162 MovieClip Frame 13
gotoAndStop ("park");
Symbol 165 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
gMainTL.MainMus.setVolume(gMainTL.MainMus.getVolume() - 5);
Symbol 205 MovieClip Frame 3
if (gMainTL.MainMus.getVolume() != 0) {
gotoAndPlay ("start");
}
Symbol 205 MovieClip Frame 4
gMainTL.MainMus.stop();
stop();
Symbol 217 MovieClip Frame 2
stop();
Symbol 217 MovieClip Frame 5
stop();
Symbol 237 MovieClip Frame 2
stop();
Symbol 237 MovieClip Frame 5
nextLevel_btn.onRelease = function () {
gMainTL.MainMus.stop();
gMainTL.MainMus.setVolume(75);
gMainTL.MainMus.start(0, 999);
gMainTL.aip.stop();
gMainTL.fnPlayNextLevel();
};
stop();
Symbol 252 MovieClip Frame 2
stop();
Symbol 252 MovieClip Frame 5
mask_btn.useHandCursor = false;
start_btn.onRelease = function () {
if (gMainTL.rFirstTime == true) {
gMainTL.rFirstTime = false;
gMainTL.MainMus = new Sound(gMainTL.AudioMainMusic_MC);
gMainTL.MainMus.attachSound("Music2");
gMainTL.MainMus.setVolume(75);
gMainTL.MainMus.start(0, 999);
gMainTL.aip.stop();
}
gMainTL.fnCloseHelp();
};
stop();
Symbol 252 MovieClip Frame 8
mask_btn.useHandCursor = false;
resume_btn.onRelease = function () {
gMainTL.fnCloseHelp();
};
stop();
Symbol 252 MovieClip Frame 11
mask_btn.useHandCursor = false;
play();
Symbol 252 MovieClip Frame 19
nextLevel_btn.onRelease = function () {
gMainTL.MainMus.stop();
gMainTL.MainMus.setVolume(75);
gMainTL.MainMus.start(0, 999);
gMainTL.aip.stop();
gMainTL.fnPlayNextLevel();
};
stop();
Symbol 252 MovieClip Frame 22
mask_btn.useHandCursor = false;
play();
Symbol 252 MovieClip Frame 32
playAgain_btn.onRelease = function () {
gMainTL.MainMus.stop();
gMainTL.MainMus.setVolume(75);
gMainTL.MainMus.start(0, 999);
gMainTL.aip.stop();
gMainTL.fnPlayAgain();
};
enterCodes_btn.onRelease = function () {
gotoAndStop ("enter_codes");
};
stop();
Symbol 252 MovieClip Frame 34
back_btn.onRelease = function () {
Key.removeListener(oCodeListener);
delete oCodeListener;
gotoAndStop ("end_level_code_prompt");
};
submitCode_btn.onRelease = function () {
Key.removeListener(oCodeListener);
delete oCodeListener;
gMainTL.oKeyCode.submitCode(codeEntry_txt.text, true);
};
if (gMainTL.oLevel.getHighestLevel() > gMainTL.oLevel.getLevel()) {
continue_mc.gotoAndStop("active");
} else {
continue_mc.gotoandStop("inactive");
}
gMainTL.oKeyCode.initMoreCodesScreen();
codeEntry_txt.tabIndex = 1;
oCodeListener = new Object();
oCodeListener.onKeyUp = function () {
if (Key.getCode() == 13) {
gMainTL.oKeyCode.submitCode(codeEntry_txt.text, true);
}
};
Key.addListener(oCodeListener);
stop();
Symbol 252 MovieClip Frame 41
mask_btn.useHandCursor = false;
play();
Symbol 252 MovieClip Frame 47
playAgain_btn.onRelease = function () {
gMainTL.MainMus.stop();
gMainTL.MainMus.setVolume(75);
gMainTL.MainMus.start(0, 999);
gMainTL.aip.stop();
gMainTL.fnPlayAgain();
};
continue_btn.onRelease = function () {
gMainTL.MainMus.stop();
gMainTL.MainMus.setVolume(75);
gMainTL.MainMus.start(0, 999);
gMainTL.aip.stop();
gMainTL.fnContinue();
};
stop();
Symbol 252 MovieClip Frame 54
mask_btn.useHandCursor = false;
play();
Symbol 252 MovieClip Frame 57
playAgain_btn.onRelease = function () {
gMainTL.MainMus.stop();
gMainTL.MainMus.setVolume(75);
gMainTL.MainMus.start(0, 999);
gMainTL.aip.stop();
gMainTL.fnPlayAgain();
};
print_btn.onRelease = function () {
gMainTL.fnPrintCertificate();
};
prize_btn.onRelease = function () {
gMainTL.fnLinkToPrize();
};
stop();
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 3
play();
Symbol 263 MovieClip Frame 6
if (gMainTL.rGameInProgress == true) {
gMainTL.fnClearStage();
if (gMainTL.rPlayAgain == true) {
vNextLev = 1;
} else {
vNextLev = gMainTL.oLevel.getLevel() + 1;
}
gMainTL.fnUpdateDisplay(vNextLev);
} else {
vNextLev = 1;
}
Symbol 263 MovieClip Frame 7
gotoAndPlay("lev" + vNextLev);
Symbol 263 MovieClip Frame 22
gotoAndPlay ("fade_out");
Symbol 263 MovieClip Frame 37
gotoAndPlay ("fade_out");
Symbol 263 MovieClip Frame 52
gotoAndPlay ("fade_out");
Symbol 263 MovieClip Frame 67
gotoAndPlay ("fade_out");
Symbol 263 MovieClip Frame 82
gotoAndPlay ("fade_out");
Symbol 263 MovieClip Frame 97
gotoAndPlay ("fade_out");
Symbol 263 MovieClip Frame 99
if (gMainTL.rGameInProgress == true) {
if (gMainTL.rPlayAgain == true) {
gMainTL.fnPlayAgainTrans();
} else {
gMainTL.fnNextLevel(gMainTL.rContinue);
}
} else {
gMainTL.feedback_mc.gotoAndStop("base");
}
Symbol 263 MovieClip Frame 106
gMainTL.fnStartGame();
gotoAndStop ("base");
Symbol 277 MovieClip Frame 2
stop();
Symbol 277 MovieClip Frame 4
stop();
Symbol 277 MovieClip Frame 6
stop();
Symbol 277 MovieClip Frame 8
stop();
Symbol 277 MovieClip Frame 10
stop();
Symbol 277 MovieClip Frame 12
stop();
Symbol 277 MovieClip Frame 14
stop();
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 100
stop();
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 24
_parent.vObjRef.resetWeaponStatus("bomb");
Symbol 318 MovieClip Frame 25
_parent.vObjRef.resetWeaponStatus("bomb");
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 4
gotoAndStop ("base");
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 24
_parent.vObjRef.resetWeaponStatus("missile");
Symbol 320 MovieClip Frame 25
_parent.vObjRef.resetWeaponStatus("missile");
Symbol 323 MovieClip Frame 2
vObjRef.setBtns();
missile_btn.onRelease = function () {
vObjRef.selectWeapon("missile");
};
bomb_btn.onRelease = function () {
vObjRef.selectWeapon("bomb");
};
stop();
Symbol 323 MovieClip Frame 5
vObjRef.setBtns();
gatling_btn.onRelease = function () {
vObjRef.selectWeapon("gatling");
};
bomb_btn.onRelease = function () {
vObjRef.selectWeapon("bomb");
};
stop();
Symbol 323 MovieClip Frame 8
vObjRef.setBtns();
missile_btn.onRelease = function () {
vObjRef.selectWeapon("missile");
};
gatling_btn.onRelease = function () {
vObjRef.selectWeapon("gatling");
};
stop();
Symbol 332 MovieClip Frame 1
help_btn.onRelease = function () {
gMainTL.fnViewHelp();
};
missionBriefing_btn.onRelease = function () {
gMainTL.fnViewBriefing("missionBriefing_mc");
};
stop();
Instance of Symbol 277 MovieClip "levelIndicator_mc" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("lev" + VenomMain.gLevel);
}
Symbol 359 MovieClip Frame 2
stop();
Symbol 374 MovieClip [mechMissile] Frame 2
stop();
Symbol 374 MovieClip [mechMissile] Frame 6
gMainTL.AudioExplosions_MC.play();
Symbol 374 MovieClip [mechMissile] Frame 21
vObjRef.removeMe();
Symbol 374 MovieClip [mechMissile] Frame 22
vObjRef.removeMe();
Symbol 380 MovieClip Frame 2
stop();
Symbol 380 MovieClip Frame 7
_parent.vObjRef.checkInitContact();
Symbol 380 MovieClip Frame 8
_parent.vObjRef.checkInitContact();
Symbol 380 MovieClip Frame 9
_parent.vObjRef.placeMissile();
Symbol 380 MovieClip Frame 10
_parent.vObjRef.fireMissile();
Symbol 380 MovieClip Frame 12
_parent.vObjRef.setShootVar(false);
gotoAndStop ("base");
Symbol 380 MovieClip Frame 13
_parent.vObjRef.setShootVar(false);
gotoAndStop ("base");
Symbol 383 MovieClip Frame 11
stop();
Symbol 384 MovieClip [pulverizerWalk] Frame 2
stop();
Symbol 384 MovieClip [pulverizerWalk] Frame 24
vObjRef.callAttack();
Symbol 384 MovieClip [pulverizerWalk] Frame 25
gotoAndPlay ("walk");
Symbol 384 MovieClip [pulverizerWalk] Frame 27
play();
Symbol 384 MovieClip [pulverizerWalk] Frame 43
vObjRef.setSwatVar(false);
if (gMainTL.rGameOn == true) {
gotoAndPlay ("swat_pickup");
} else {
gotoAndStop ("swat_pickup");
}
Symbol 384 MovieClip [pulverizerWalk] Frame 44
vObjRef.setSwatVar(false);
gotoAndPlay ("swat_pickup");
Symbol 384 MovieClip [pulverizerWalk] Frame 46
vObjRef.calculateShootAngle();
Symbol 384 MovieClip [pulverizerWalk] Frame 47
vObjRef.raiseArm();
Symbol 384 MovieClip [pulverizerWalk] Frame 48
vObjRef.raiseArm();
Symbol 384 MovieClip [pulverizerWalk] Frame 49
vObjRef.raiseArm();
Symbol 384 MovieClip [pulverizerWalk] Frame 50
vObjRef.raiseArm();
Symbol 384 MovieClip [pulverizerWalk] Frame 53
vObjRef.shoot();
Instance of Symbol 380 MovieClip "mechArm_mc" in Symbol 384 MovieClip [pulverizerWalk] Frame 53
onClipEvent (load) {
this._rotation = _parent.vObjRef.getArmRotation();
}
Symbol 384 MovieClip [pulverizerWalk] Frame 55
vPickUpFrame = mechArm_mc._currentframe + 1;
Symbol 384 MovieClip [pulverizerWalk] Frame 56
mechArm_mc.gotoAndPlay(vPickUpFrame);
delete vPickUpFrame;
Symbol 384 MovieClip [pulverizerWalk] Frame 62
vObjRef.lowerArm();
Symbol 384 MovieClip [pulverizerWalk] Frame 63
vObjRef.lowerArm();
Symbol 384 MovieClip [pulverizerWalk] Frame 64
vObjRef.lowerArm();
Symbol 384 MovieClip [pulverizerWalk] Frame 65
vObjRef.lowerArm();
Symbol 384 MovieClip [pulverizerWalk] Frame 67
if (vShootAgain == true) {
vObjRef.callAttack(true);
} else if (gMainTL.rGameOn == true) {
gotoAndPlay ("walk");
} else {
gotoAndStop ("walk");
}
Symbol 384 MovieClip [pulverizerWalk] Frame 68
if (vShootAgain == true) {
vObjRef.callAttack(true);
} else {
gotoAndPlay ("walk");
}
Symbol 384 MovieClip [pulverizerWalk] Frame 70
gMainTL.AudioExplosions_MC.play();
Symbol 384 MovieClip [pulverizerWalk] Frame 81
vObjRef.stopClip();
Symbol 384 MovieClip [pulverizerWalk] Frame 93
stop();
Symbol 384 MovieClip [pulverizerWalk] Frame 98
gMainTL.AudioExplosions_MC.play();
Symbol 384 MovieClip [pulverizerWalk] Frame 114
vObjRef.stopClip();
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 2
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 401 MovieClip Frame 4
_parent.vObjRef.dropBomb();
Symbol 406 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 3
stop();
Symbol 407 MovieClip Frame 7
stop();
Symbol 413 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 2
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 413 MovieClip Frame 4
_parent.vObjRef.fireMissile();
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 3
_parent._alpha = 20;
play();
Symbol 414 MovieClip Frame 5
_parent._alpha = 100;
Symbol 414 MovieClip Frame 7
_parent._alpha = 20;
Symbol 414 MovieClip Frame 9
_parent._alpha = 100;
Symbol 414 MovieClip Frame 11
_parent._alpha = 20;
Symbol 414 MovieClip Frame 13
_parent._alpha = 100;
Symbol 414 MovieClip Frame 15
_parent._alpha = 20;
Symbol 414 MovieClip Frame 17
_parent._alpha = 100;
gotoAndStop ("base");
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 3
play();
Symbol 417 MovieClip Frame 5
gotoAndStop ("base");
Symbol 437 MovieClip Frame 2
stop();
Symbol 437 MovieClip Frame 7
stop();
Symbol 437 MovieClip Frame 10
stop();
Symbol 437 MovieClip Frame 15
gMainTL.AudioExplosions_MC.play();
play();
Symbol 437 MovieClip Frame 29
gMainTL.fnNoHealthLeft();
stop();
Symbol 440 MovieClip [missile] Frame 2
stop();
Symbol 440 MovieClip [missile] Frame 4
play();
Symbol 440 MovieClip [missile] Frame 6
vObjRef.addToScrollArray();
Symbol 440 MovieClip [missile] Frame 7
stop();
Symbol 440 MovieClip [missile] Frame 11
gMainTL.AudioExplosions_MC.play();
Symbol 440 MovieClip [missile] Frame 24
vObjRef.removeMe();
Symbol 440 MovieClip [missile] Frame 25
vObjRef.removeMe();
Symbol 447 MovieClip [gatling] Frame 2
stop();
Symbol 447 MovieClip [gatling] Frame 4
play();
Symbol 447 MovieClip [gatling] Frame 6
vObjRef.addToScrollArray();
Symbol 447 MovieClip [gatling] Frame 7
stop();
Symbol 447 MovieClip [gatling] Frame 10
gMainTL.AudioExplosions_MC.play();
Symbol 447 MovieClip [gatling] Frame 24
vObjRef.removeMe();
Symbol 447 MovieClip [gatling] Frame 25
vObjRef.removeMe();
Symbol 449 MovieClip [bomb] Frame 1
stop();
Symbol 449 MovieClip [bomb] Frame 17
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 449 MovieClip [bomb] Frame 30
vObjRef.removeFromScrollArray();
Symbol 449 MovieClip [bomb] Frame 31
vObjRef.removeMe();
Symbol 449 MovieClip [bomb] Frame 32
vObjRef.removeMe();
Symbol 451 MovieClip Frame 2
stop();
Symbol 451 MovieClip Frame 5
vDist = 0;
vLaunchDist = Math.randomInteger(vMinDist, vMaxDist);
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 451 MovieClip Frame 7
if ((vDist >= vLaunchDist) || (vObjRef.getEnemyCount() == 0)) {
if (gMainTL.rGameOn == true) {
gotoAndPlay ("try_launch");
} else {
gotoAndStop ("try_launch");
}
} else if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 451 MovieClip Frame 10
if (gMainTL.rGameOn == true) {
gotoAndPlay ("loop");
} else {
gotoAndStop ("loop");
}
Symbol 451 MovieClip Frame 11
gotoAndPlay ("loop");
Symbol 451 MovieClip Frame 16
vObjRef.tryLaunch();
Symbol 451 MovieClip Frame 21
vObjRef.hitTestNewClip();
Symbol 451 MovieClip Frame 23
gotoAndPlay ("wait");
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 3
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 456 MovieClip Frame 18
vObjRef.endExplosion(this._name);
Symbol 456 MovieClip Frame 19
vObjRef.endExplosion(this._name);
Symbol 458 MovieClip Frame 1
gMainTL.IntroMus.setVolume(gMainTL.IntroMus.getVolume() - 1);
Symbol 458 MovieClip Frame 2
if (gMainTL.IntroMus.getVolume() != 0) {
gotoAndPlay ("start");
}
Symbol 458 MovieClip Frame 3
gMainTL.IntroMus.stop();
stop();
Symbol 477 MovieClip Frame 2
vStartDist = gMainTL.oLauncher.getDistance();
vReqTravelDist = Math.randomInteger(_parent.vAttackTravelMin, _parent.vAttackTravelMax);
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 477 MovieClip Frame 4
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 477 MovieClip Frame 6
if ((gMainTL.oLauncher.getDistance() - vStartDist) >= vReqTravelDist) {
_parent.vObjRef.callAttack();
} else if (gMainTL.rGameOn == true) {
gotoAndPlay ("loop");
} else {
gotoAndStop ("loop");
}
Symbol 483 MovieClip [nAdderRightLaser] Frame 1
stop();
Symbol 483 MovieClip [nAdderRightLaser] Frame 4
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 483 MovieClip [nAdderRightLaser] Frame 17
vObjRef.removeMe();
Symbol 483 MovieClip [nAdderRightLaser] Frame 18
vObjRef.removeMe();
Symbol 485 MovieClip [nAdderRight] Frame 2
stop();
Symbol 485 MovieClip [nAdderRight] Frame 4
attackCaller_mc.gotoandPlay("reset");
stop();
Symbol 485 MovieClip [nAdderRight] Frame 7
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 485 MovieClip [nAdderRight] Frame 10
vObjRef.fireLasers();
Symbol 485 MovieClip [nAdderRight] Frame 12
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 485 MovieClip [nAdderRight] Frame 25
vObjRef.removeFromScrollArray();
vObjRef.removeMe();
Symbol 485 MovieClip [nAdderRight] Frame 26
vObjRef.removeFromScrollArray();
vObjRef.removeMe();
Symbol 494 MovieClip [nAdderLeftLaser] Frame 1
stop();
Symbol 494 MovieClip [nAdderLeftLaser] Frame 4
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 494 MovieClip [nAdderLeftLaser] Frame 17
vObjRef.removeMe();
Symbol 494 MovieClip [nAdderLeftLaser] Frame 18
vObjRef.removeMe();
Symbol 495 MovieClip [nAdderLeft] Frame 2
stop();
Symbol 495 MovieClip [nAdderLeft] Frame 4
attackCaller_mc.gotoandPlay("reset");
stop();
Symbol 495 MovieClip [nAdderLeft] Frame 7
vObjRef.checkInitialLasers();
Symbol 495 MovieClip [nAdderLeft] Frame 8
vObjRef.checkInitialLasers();
Symbol 495 MovieClip [nAdderLeft] Frame 9
vObjRef.checkInitialLasers();
Symbol 495 MovieClip [nAdderLeft] Frame 10
vObjRef.fireLasers();
Symbol 495 MovieClip [nAdderLeft] Frame 12
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 495 MovieClip [nAdderLeft] Frame 26
if (this._name != "nAdderLeft_mc") {
vObjRef.removeFromScrollArray();
vObjRef.removeMe();
}
Symbol 495 MovieClip [nAdderLeft] Frame 62
vObjRef.launch();
Symbol 495 MovieClip [nAdderLeft] Frame 63
vObjRef.launch();
Symbol 502 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 3
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 502 MovieClip Frame 20
vObjRef.resetShoot();
Symbol 510 MovieClip [aAGunBullet] Frame 1
stop();
Symbol 510 MovieClip [aAGunBullet] Frame 4
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 510 MovieClip [aAGunBullet] Frame 17
vObjRef.removeMe();
Symbol 510 MovieClip [aAGunBullet] Frame 18
vObjRef.removeMe();
Symbol 514 MovieClip [aAGun] Frame 1
stop();
Symbol 514 MovieClip [aAGun] Frame 3
stop();
Symbol 514 MovieClip [aAGun] Frame 6
vObjRef.rotateUp();
Symbol 514 MovieClip [aAGun] Frame 7
vObjRef.rotateUp();
Symbol 514 MovieClip [aAGun] Frame 8
vObjRef.rotateUp();
Symbol 514 MovieClip [aAGun] Frame 9
vObjRef.rotateUp();
gotoAndPlay ("shoot");
Symbol 514 MovieClip [aAGun] Frame 12
vObjRef.rotateDown();
Symbol 514 MovieClip [aAGun] Frame 13
vObjRef.rotateDown();
Symbol 514 MovieClip [aAGun] Frame 14
vObjRef.rotateDown();
Symbol 514 MovieClip [aAGun] Frame 15
vObjRef.rotateDown();
gotoAndPlay ("shoot");
Symbol 514 MovieClip [aAGun] Frame 20
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 514 MovieClip [aAGun] Frame 21
vObjRef.fireGun();
Symbol 514 MovieClip [aAGun] Frame 25
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGamOn == true) {
play();
} else {
eval (false)();
}
Symbol 514 MovieClip [aAGun] Frame 34
vObjRef.stopClip();
Symbol 514 MovieClip [aAGun] Frame 35
vObjRef.stopClip();
Symbol 519 MovieClip [tikiHut2] Frame 2
stop();
Symbol 519 MovieClip [tikiHut2] Frame 4
stop();
Symbol 519 MovieClip [tikiHut2] Frame 8
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 519 MovieClip [tikiHut2] Frame 22
vObjRef.stopClip();
Symbol 519 MovieClip [tikiHut2] Frame 23
vObjRef.stopClip();
Symbol 521 MovieClip [tikiHut1] Frame 2
stop();
Symbol 521 MovieClip [tikiHut1] Frame 4
stop();
Symbol 521 MovieClip [tikiHut1] Frame 8
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 521 MovieClip [tikiHut1] Frame 22
vObjRef.stopClip();
Symbol 521 MovieClip [tikiHut1] Frame 23
vObjRef.stopClip();
Symbol 525 MovieClip [heliMissile] Frame 1
stop();
Symbol 525 MovieClip [heliMissile] Frame 4
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 525 MovieClip [heliMissile] Frame 17
vObjRef.removeMe();
Symbol 525 MovieClip [heliMissile] Frame 18
vObjRef.removeMe();
Symbol 528 MovieClip [heli] Frame 2
stop();
Symbol 528 MovieClip [heli] Frame 4
stop();
Symbol 528 MovieClip [heli] Frame 7
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 528 MovieClip [heli] Frame 9
vObjRef.fireMissile();
Symbol 528 MovieClip [heli] Frame 13
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 528 MovieClip [heli] Frame 26
vObjRef.removeMe();
Symbol 528 MovieClip [heli] Frame 27
vObjRef.removeMe();
Symbol 564 MovieClip [HGRightBullet] Frame 1
stop();
Symbol 564 MovieClip [HGRightBullet] Frame 4
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 564 MovieClip [HGRightBullet] Frame 18
vObjRef.removeMe();
Symbol 564 MovieClip [HGRightBullet] Frame 19
vObjRef.removeMe();
Symbol 565 MovieClip [HGRightBomb] Frame 1
stop();
Symbol 565 MovieClip [HGRightBomb] Frame 39
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 565 MovieClip [HGRightBomb] Frame 53
vObjRef.removeMe();
Symbol 565 MovieClip [HGRightBomb] Frame 54
vObjRef.removeMe();
Symbol 566 MovieClip [hangGliderRight] Frame 2
stop();
Symbol 566 MovieClip [hangGliderRight] Frame 4
stop();
Symbol 566 MovieClip [hangGliderRight] Frame 8
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 566 MovieClip [hangGliderRight] Frame 10
vObjRef.fire();
Symbol 566 MovieClip [hangGliderRight] Frame 13
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 566 MovieClip [hangGliderRight] Frame 15
vObjRef.dropBomb();
Symbol 566 MovieClip [hangGliderRight] Frame 18
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameon == true) {
play();
} else {
stop();
}
Symbol 566 MovieClip [hangGliderRight] Frame 23
vObjRef.removeFromScrollArray();
vObjRef.removeMe();
Symbol 566 MovieClip [hangGliderRight] Frame 24
vObjRef.removeFromScrollArray();
vObjRef.removeMe();
Symbol 568 MovieClip [HGLeftBullet] Frame 1
stop();
Symbol 568 MovieClip [HGLeftBullet] Frame 4
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 568 MovieClip [HGLeftBullet] Frame 9
vObjRef.removeMe();
Symbol 568 MovieClip [HGLeftBullet] Frame 10
vObjRef.removeMe();
Symbol 569 MovieClip [HGLeftBomb] Frame 1
stop();
Symbol 569 MovieClip [HGLeftBomb] Frame 39
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 569 MovieClip [HGLeftBomb] Frame 53
vObjRef.removeMe();
Symbol 569 MovieClip [HGLeftBomb] Frame 54
vObjRef.removeMe();
Symbol 570 MovieClip [hangGliderLeft] Frame 2
stop();
Symbol 570 MovieClip [hangGliderLeft] Frame 4
stop();
Symbol 570 MovieClip [hangGliderLeft] Frame 8
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 570 MovieClip [hangGliderLeft] Frame 10
vObjRef.fire();
Symbol 570 MovieClip [hangGliderLeft] Frame 13
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 570 MovieClip [hangGliderLeft] Frame 15
vObjRef.dropBomb();
Symbol 570 MovieClip [hangGliderLeft] Frame 18
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameon == true) {
play();
} else {
stop();
}
Symbol 570 MovieClip [hangGliderLeft] Frame 24
vObjRef.removeFromScrollArray();
vObjRef.removeMe();
Symbol 570 MovieClip [hangGliderLeft] Frame 25
vObjRef.removeFromScrollArray();
vObjRef.removeMe();
Symbol 573 MovieClip [boatBullet] Frame 1
stop();
Symbol 573 MovieClip [boatBullet] Frame 4
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 573 MovieClip [boatBullet] Frame 17
vObjRef.removeMe();
Symbol 573 MovieClip [boatBullet] Frame 18
vObjRef.removeMe();
Symbol 574 MovieClip [boatRight] Frame 2
stop();
Symbol 574 MovieClip [boatRight] Frame 4
stop();
Symbol 574 MovieClip [boatRight] Frame 7
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 574 MovieClip [boatRight] Frame 8
vObjRef.fire();
Symbol 574 MovieClip [boatRight] Frame 15
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 574 MovieClip [boatRight] Frame 29
vObjRef.removeFromScrollArray();
vObjRef.removeMe();
Symbol 574 MovieClip [boatRight] Frame 30
vObjRef.removeFromScrollArray();
vObjRef.removeMe();
Symbol 576 MovieClip [boatLeft] Frame 2
stop();
Symbol 576 MovieClip [boatLeft] Frame 4
stop();
Symbol 576 MovieClip [boatLeft] Frame 7
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 576 MovieClip [boatLeft] Frame 8
vObjRef.fire();
Symbol 576 MovieClip [boatLeft] Frame 15
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 576 MovieClip [boatLeft] Frame 29
vObjRef.removeFromScrollArray();
vObjRef.removeMe();
Symbol 576 MovieClip [boatLeft] Frame 30
vObjRef.removeFromScrollArray();
vObjRef.removeMe();
Symbol 588 MovieClip [paraBomb] Frame 2
stop();
Symbol 588 MovieClip [paraBomb] Frame 4
stop();
Symbol 588 MovieClip [paraBomb] Frame 8
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 588 MovieClip [paraBomb] Frame 15
vObjRef.pClipPlaying = false;
stop();
Symbol 588 MovieClip [paraBomb] Frame 17
gMainTL.AudioExplosions_MC.play();
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 588 MovieClip [paraBomb] Frame 27
vObjRef.removeMe();
Symbol 588 MovieClip [paraBomb] Frame 28
vObjRef.removeMe();
Symbol 617 MovieClip [volcano1] Frame 2
stop();
Symbol 617 MovieClip [volcano1] Frame 4
stop();
Symbol 617 MovieClip [volcano1] Frame 8
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 617 MovieClip [volcano1] Frame 31
vObjRef.doneErupting();
Symbol 622 MovieClip [volcano2] Frame 2
stop();
Symbol 622 MovieClip [volcano2] Frame 4
stop();
Symbol 622 MovieClip [volcano2] Frame 7
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 622 MovieClip [volcano2] Frame 30
vObjRef.doneErupting();
Symbol 626 MovieClip [volcano3] Frame 2
stop();
Symbol 626 MovieClip [volcano3] Frame 4
stop();
Symbol 626 MovieClip [volcano3] Frame 7
if (gMainTL.rGameOn == true) {
play();
} else {
stop();
}
Symbol 626 MovieClip [volcano3] Frame 29
vObjRef.doneErupting();
Symbol 639 MovieClip Frame 1
vPrinted = false;
setProperty(this, _rotation , 0);
setProperty(this, _visible , true);
stop();
Symbol 639 MovieClip Frame 3
setProperty(this, _rotation , 90);
setProperty(this, _visible , false);
score_txt.text = gMainTL.oScore.getScore();
play();
Symbol 639 MovieClip Frame 4
if (vPrinted == false) {
vPrinted = true;
print (this, "bmovie");
}
Symbol 639 MovieClip Frame 5
gotoAndStop ("base");