Frame 1
function doSomething() {
getURL ("http://www.eggysgames.com", "_blank");
}
function doSomething3() {
getURL ("http://www.armorgames.com", "_blank");
}
playeronehp = 100;
pausedgame = false;
sound = true;
i = 0;
adBox._x = 28;
adBox._y = 141;
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Eggys Games", doSomething);
Functioned3 = new ContextMenuItem("Armor Games", doSomething3);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned3);
MENU.builtInItems.quality = true;
_root.menu = MENU;
myURL = _url;
okDomains = ["armorgames.com", "games.armorgames.com", "preview.armorgames.com", "cache.armorgames.com", "www.chat.kongregate.com", "www.kongregate.com", "www.armorgames.com", "www.games.armorgames.com", "www.preview.armorgames.com", "kongregate.com", "chat.kongregate.com", "kongregate", "preview.kongregate.com", "chat.kongregate", "kongregate", "spielaffe.de", "*.armorgames.com", "cdn.armorgames.com", "gamemedia.armorgames.com"];
allowed = false;
i = 0;
while (i < okDomains.length) {
if (myURL.indexOf(okDomains[i]) != -1) {
adBox.swapDepths(99999);
removeMovieClip(adBox);
allowed = true;
}
i++;
}
if (allowed == false) {
var CPMStarContentSpotID = "9448Q4183221D";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=9448Q4183221D");
adBox._x = 28;
adBox._y = 141;
}
urls_allowed = ["armorgames.com", "games.armorgames.com", "preview.armorgames.com", "cache.armorgames.com", "www.chat.kongregate.com", "www.kongregate.com", "www.armorgames.com", "www.games.armorgames.com", "www.preview.armorgames.com"];
Instance of Symbol 90 MovieClip in Frame 1
on (press) {
getURL ("http://www.armorgames.com", "blank");
}
Instance of Symbol 195 MovieClip in Frame 1
on (release) {
getURL ("http://www.eggysgames.com/", "blank");
}
Frame 2
adBox.swapDepths(99999);
removeMovieClip(adBox);
Frame 3
stop();
Instance of Symbol 228 MovieClip in Frame 3
on (press) {
getURL ("http://www.armorgames.com", "blank");
}
Frame 4
stop();
Instance of Symbol 246 MovieClip in Frame 4
on (press) {
getURL ("http://www.eggysgames.com", "_blank");
}
Frame 5
function nextsong() {
stopAllSounds();
my_sound = new Sound();
my_sound.attachSound("oberon");
my_sound.start(0, 1);
my_sound.onSoundComplete = nextsong2;
}
function nextsong2() {
stopAllSounds();
my_sound2 = new Sound();
my_sound2.attachSound("orchestra");
my_sound2.start(0, 1);
my_sound2.onSoundComplete = nextsong3;
}
function nextsong3() {
stopAllSounds();
my_sound2 = new Sound();
my_sound2.attachSound("song3");
my_sound2.start(0, 1);
my_sound2.onSoundComplete = nextsong4;
}
function nextsong4() {
stopAllSounds();
my_sound2 = new Sound();
my_sound2.attachSound("song4");
my_sound2.start(0, 1);
my_sound2.onSoundComplete = nextsong;
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
nextsong();
stop();
__com_mochibot__("3dcecef0", this, 10301, true);
Instance of Symbol 248 MovieClip in Frame 5
onClipEvent (load) {
_root.beenpressed = false;
}
onClipEvent (enterFrame) {
if (((Key.isDown(65) and (_root.beenpressed == false)) and (_root.playmenu._visible == true)) or (((_root._currentframe == 5) and Key.isDown(65)) and (_root.beenpressed == false))) {
_root.beenpressed = true;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("selection", this);
someSound.start(0, 1);
}
_root.flasher.gotoAndPlay(2);
_root.pausedgame = false;
_root.playmenu._visible = false;
}
if ((!Key.isDown(65)) and (_root.beenpressed == true)) {
_root.beenpressed = false;
}
}
Instance of Symbol 56 MovieClip "rocket" in Frame 5
onClipEvent (load) {
if (_name != "rocket") {
_y = (_root.heli._y + random(5));
dir = _root.heli.dir;
if (dir == false) {
_x = (_root.heli._x - 5);
_rotation = 0;
}
if (dir == true) {
_x = (_root.heli._x + 5);
_rotation = 180;
}
speed = 12;
yspeed = 0;
timer = 0;
once = true;
dietimer = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if (_currentframe != 2) {
timer++;
_y = (_y + yspeed);
yspeed = yspeed + 0.2;
if ((yspeed < 1) and (timer <= 10)) {
yspeed = 1;
}
if (timer > 10) {
if ((_root.sound == true) and (once == true)) {
someSound = new Sound();
someSound.attachSound("launchsound", this);
someSound.start(0, 1);
once = false;
}
yspeed = 0;
inside.flare.gotoAndPlay(2);
_x = (_x - (Math.cos((_rotation * Math.PI) / 180) * speed));
_y = (_y - (Math.sin((_rotation * Math.PI) / 180) * speed));
}
}
}
if (_root.heli2.hitTest(this)) {
if (_currentframe == 1) {
_root.playertwohp = _root.playertwohp - 7;
}
if (_currentframe == 1) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("explosion", this);
someSound.start(0, 1);
}
}
gotoAndStop (2);
}
if (_root.wall.hitTest(_x, _y, true)) {
if (_currentframe == 1) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("explosion", this);
someSound.start(0, 1);
}
}
gotoAndStop (2);
}
if ((((_x > 600) or (_x < -50)) or (_y > 450)) or (_y < -50)) {
removeMovieClip(this);
}
if (_currentframe == 2) {
dietimer++;
if (dietimer > 300) {
removeMovieClip(this);
}
}
if (_root._currentframe != 5) {
removeMovieClip(this);
}
}
Instance of Symbol 288 MovieClip "bullet" in Frame 5
onClipEvent (load) {
if (_name != "bullet") {
_y = (_root.heli._y + random(5));
dir = _root.heli.dir;
if (dir == false) {
_x = (_root.heli._x - 25);
_rotation = 180;
}
if (dir == true) {
_x = (_root.heli._x + 25);
_rotation = 0;
}
speed = 12;
}
}
onClipEvent (enterFrame) {
if (_name != "bullet") {
if (_currentframe != 2) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * speed));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * speed));
}
}
if (_root.heli2.hitTest(this)) {
if (_currentframe == 1) {
_root.playertwohp = _root.playertwohp - 1;
}
if (_currentframe == 1) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ric1", this);
someSound.start(0, 1);
}
}
gotoAndStop (2);
}
if (_root.wall.hitTest(_x, _y, true)) {
if (_currentframe == 1) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ric1", this);
someSound.start(0, 1);
}
}
gotoAndStop (2);
}
if ((((_x > 600) or (_x < -50)) or (_y > 450)) or (_y < -50)) {
removeMovieClip(this);
}
if (_root._currentframe != 5) {
removeMovieClip(this);
}
}
Instance of Symbol 312 MovieClip "heli" in Frame 5
onClipEvent (load) {
timer = 0;
speed = 6;
scale = _xscale;
dir = true;
takeoff = 0;
timer2 = 40;
timer3 = 0;
flare.gotoAndStop(2);
bob = random(80) + 9;
bob2 = random(50) + 100;
}
onClipEvent (enterFrame) {
timer2++;
timer3++;
_x = (_x + 4);
if (timer3 > bob2) {
duplicateMovieClip (_root.rocket, "newrocket" + _root.i, _root.i);
timer3 = 0;
_root.i = _root.i + 1;
}
if (timer2 > bob) {
duplicateMovieClip (_root.bullet, "newbullet" + _root.i, _root.i);
_root.i = _root.i + 1;
flare.gotoAndPlay(1);
if (timer2 > 60) {
timer2 = 0;
}
bob = random(50) + 9;
flare.gotoAndPlay(1);
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("gunsound", this);
someSound.start(0, 1);
}
}
if (_x > 600) {
_x = -50;
_y = (random(200) + 40);
}
if (idle._currentframe == 1) {
idle.gotoAndPlay(2);
takeoff = 5;
}
}
Instance of Symbol 195 MovieClip in Frame 5
on (release) {
getURL ("http://www.eggysgames.com/", "blank");
}
Instance of Symbol 320 MovieClip in Frame 5
on (press) {
getURL ("http://www.armorgames.com", "blank");
}
Instance of Symbol 324 MovieClip in Frame 5
onClipEvent (load) {
this.swapDepths(99999);
}
Frame 6
function resetgame() {
if ((_root.char._currentframe == 5) or (_root.char._y > 500)) {
_root.pausedgame = true;
_root.protecttimer = 0;
_root.lamps._y = lampY;
_root.movebg._y = bgY;
_root.ground.starter._y = starterY;
_root.heli.gotoAndStop(1);
_root.heli._x = 50;
_root.heli._y = 360;
_root.feet = 0;
_root.playeronehp = 100;
_root.heli._xscale = _root.heli.scale;
_root.heli.xspeed = 0;
_root.heli.yspeed = 0;
_root.char._x = -40;
_root.adder = 0;
_root.char._y = -40;
_root.char.comehere = false;
_root.char.gotoAndStop(1);
_root.heli.once = false;
_root.upspawn.gotoAndStop(1);
_root.helispawner.gotoAndStop(1);
_root.blockspawner.gotoAndStop(1);
_root.cloud._y = -200;
_root.fade.gotoAndPlay(1);
}
}
function spawnheli() {
if ((_root.pausedgame == false) and (_root.endfade._currentframe == 1)) {
duplicateMovieClip (_root.enemyheli, "newenemyheli" + _root.g, _root.getNextHighestDepth());
roll = random(4) + 1;
if (roll == 1) {
_root["newenemyheli" + _root.g]._x = -100;
_root["newenemyheli" + _root.g]._y = 100;
}
if (roll == 2) {
_root["newenemyheli" + _root.g]._x = -100;
_root["newenemyheli" + _root.g]._y = 300;
}
if (roll == 3) {
_root["newenemyheli" + _root.g]._x = 650;
_root["newenemyheli" + _root.g]._y = 100;
}
if (roll == 4) {
_root["newenemyheli" + _root.g]._x = 650;
_root["newenemyheli" + _root.g]._y = 300;
}
_root.g = _root.g + 1;
}
}
function spawnplane() {
if ((_root.pausedgame == false) and (_root.endfade._currentframe == 1)) {
duplicateMovieClip (_root.enemyplane, "newenemyplane" + _root.g, _root.getNextHighestDepth());
_root.g = _root.g + 1;
}
}
function spawnplatform() {
if (_root.endfade._currentframe == 1) {
roll = random(3) + 1;
roll2 = random(2) + 1;
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.g, _root.getNextHighestDepth());
if (roll2 == 1) {
_root["newenemyone" + _root.g]._x = 190;
_root["newenemyone" + _root.g]._y = -172;
}
if (roll2 == 2) {
_root["newenemyone" + _root.g]._x = 390;
_root["newenemyone" + _root.g]._y = -172;
}
_root["newenemyone" + _root.g].typer = true;
if (roll == 1) {
_root["newenemyone" + _root.g].gotoAndStop(1);
}
if (roll == 2) {
_root["newenemyone" + _root.g].gotoAndStop(3);
}
if (roll == 3) {
_root["newenemyone" + _root.g].gotoAndStop(5);
}
_root.g = _root.g + 1;
if (roll2 == 1) {
duplicateMovieClip (_root.platform, "newplatform" + _root.g, _root.getNextHighestDepth());
_root["newplatform" + _root.g]._x = 220;
_root["newplatform" + _root.g]._y = -172;
}
if (roll2 == 2) {
duplicateMovieClip (_root.platform, "newplatform" + _root.g, _root.getNextHighestDepth());
_root["newplatform" + _root.g]._x = 350;
_root["newplatform" + _root.g]._y = -172;
_root["newplatform" + _root.g].dir = true;
}
_root.g = _root.g + 1;
}
}
function spawnnext() {
if ((pausedgame == false) and (_root.endfade._currentframe == 1)) {
duplicateMovieClip (_root.ground.spawnblocks, "newspawnedblocks" + s, s);
s = s + 1;
timer = 0;
updateAfterEvent();
}
}
stop();
i = 0;
e = 52;
adder = 0;
s = 102;
g = 200;
feet = 0;
once = false;
once2 = false;
timer = 0;
mana = 0;
fade.gotoAndPlay(1);
charged = false;
pausedgame = true;
targetskilled = 0;
mainspeed = 1;
playeronehp = 100;
special.gotoAndStop(1);
groundX = _root.ground._x;
groundY = _root.ground._y;
bgY = _root.movebg._y;
starterY = _root.ground.starter._Y;
lampY = _root.lamps._y;
getTimer();
onEnterFrame = function () {
if ((pausedgame == false) and (_root.endfade._currentframe == 1)) {
if (_root.i > 30) {
_root.i = 0;
}
if (_root.e > 101) {
_root.e = 52;
}
if (_root.s > 198) {
_root.s = 102;
}
if (_root.g > 298) {
_root.g = 202;
}
if (feet >= 150) {
_root.cloud._y = _root.cloud._y + 1;
}
if (feet == 110) {
_root.adder = 1;
}
if (feet == 320) {
_root.adder = 2;
}
if (feet == 420) {
_root.adder = 3;
}
if (feet == 520) {
_root.adder = 4;
}
if (feet == 660) {
_root.adder = 5;
}
if (feet == 770) {
_root.adder = 6;
}
if (feet == 890) {
_root.adder = 7;
}
if (feet == 1000) {
_root.adder = 8;
}
if (feet == 1180) {
_root.adder = 9;
}
if (feet == 1200) {
_root.adder = 10;
}
if (feet == 1400) {
_root.adder = 11;
}
if (feet == 1600) {
_root.adder = 12;
}
if (movebg._y < 1800) {
_root.movebg._y = _root.movebg._y + 0.18;
}
if (_root.endfade._currentframe == 1) {
_root.ground.starter._y = _root.ground.starter._y + mainspeed;
}
}
};
Instance of Symbol 337 MovieClip "mana" in Frame 6
onClipEvent (enterFrame) {
_xscale = _root.mana;
_root.mana = _root.mana - 0.7;
if ((_root.mana <= 0) and (_root.charged == true)) {
if (_root.special._currentframe == 5) {
_root.heli.shield.gotoAndStop(1);
}
_root.charged = false;
_root.special.gotoAndStop(1);
_root.mana = 0;
}
if (_root.mana <= 0) {
_root.charged = false;
_root.mana = 0;
}
}
Instance of Symbol 339 MovieClip "cloud" in Frame 6
onClipEvent (load) {
if (_name != "cloud") {
_x = random(550);
_y = (-200 + random(150));
}
}
onClipEvent (enterFrame) {
if (_name != "cloud") {
_y = (_y + 1);
if (_y > 450) {
removeMovieClip(this);
}
}
}
Instance of Symbol 341 MovieClip "blockspawner" in Frame 6
onClipEvent (enterFrame) {
if ((_root.pausedgame == false) and (_currentframe == 1)) {
gotoAndPlay (2);
}
}
Instance of Symbol 343 MovieClip "helispawner" in Frame 6
onClipEvent (enterFrame) {
if ((_root.pausedgame == false) and (_currentframe == 1)) {
gotoAndPlay (2);
}
}
Instance of Symbol 426 MovieClip "heli" in Frame 6
onClipEvent (load) {
timer = 0;
speed = 6;
scale = _xscale;
dir = true;
news = ss;
takeoff = 0;
once = false;
xspeed = 0;
yspeed = 0;
shieldtimer = 0;
}
onClipEvent (enterFrame) {
if ((((Key.isDown(38) and (_root.pausedgame == true)) and (_root.char._currentframe != 5)) and (_root.instruc._visible == false)) and (_root.endfade._currentframe == 1)) {
yspeed = yspeed - 1;
if (yspeed < -5) {
yspeed = -5;
}
if (idle._currentframe == 1) {
idle.gotoAndPlay(2);
takeoff = 5;
}
_root.pausedgame = false;
}
if (_root.pausedgame == false) {
if (Key.isDown(68)) {
gotoAndStop (2);
}
if (_root.playeronehp <= 0) {
gotoAndStop (2);
}
if ((_currentframe == 2) and (once == false)) {
_root.playeronehp = 30;
_root.char.comehere = true;
_root.char.inside.gotoAndPlay(2);
_root.laser.gotoAndStop(1);
_root.char._x = _x;
_root.char._y = _y;
_root.char.gravity = -12;
once = true;
}
if (_currentframe == 1) {
shieldtimer--;
if (shieldtimer <= 0) {
shield.gotoAndStop(1);
}
if (((Key.isDown(83) and (timer <= 0)) and (idle._currentframe != 1)) and (_root.special._currentframe == 2)) {
_root.charged = true;
if (_root.mana == 0) {
_root.mana = 100;
}
duplicateMovieClip (_root.rocket, "newrocket" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
duplicateMovieClip (_root.rocket, "newrocket" + _root.i, _root.getNextHighestDepth());
_root["newrocket" + _root.i].up = true;
_root.i = _root.i + 1;
timer = 7;
}
if ((((Key.isDown(83) and (timer <= 0)) and (idle._currentframe != 1)) and (_root.special._currentframe == 3)) and (_root.laser._currentframe == 1)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("lasersound", this);
someSound.start(0, 1);
}
_root.charged = true;
if (_root.mana == 0) {
_root.mana = 100;
}
_root.laser.gotoAndPlay(2);
if (dir == true) {
_root.laser._x = _x + 620;
_root.laser._y = _y;
}
if (dir == false) {
_root.laser._x = _x - 620;
_root.laser._y = _y;
}
}
if ((((Key.isDown(83) and (timer <= 0)) and (idle._currentframe != 1)) and (_root.special._currentframe == 4)) and (timer <= 0)) {
_root.special.gotoAndStop(1);
duplicateMovieClip (_root.bigbomb, "newbigbomb" + _root.i, _root.getNextHighestDepth());
_root["newbigbomb" + _root.i].once = false;
_root.i = _root.i + 1;
}
if ((((Key.isDown(83) and (timer <= 0)) and (idle._currentframe != 1)) and (_root.special._currentframe == 5)) and (_root.charged == false)) {
_root.special.gotoAndStop(1);
shield.gotoAndStop(2);
shieldtimer = 200;
}
if ((((Key.isDown(83) and (timer <= 0)) and (idle._currentframe != 1)) and (_root.special._currentframe == 6)) and (timer <= 0)) {
_root.charged = true;
if (_root.mana == 0) {
_root.mana = 100;
}
duplicateMovieClip (_root.chargrenade, "newchargrenade" + _root.i, _root.getNextHighestDepth());
_root["newchargrenade" + _root.i].onces = false;
_root.i = _root.i + 1;
timer = 10;
}
if ((Key.isDown(65) and (timer <= 0)) and (idle._currentframe != 1)) {
duplicateMovieClip (_root.bullet, "newbullet" + _root.i, _root.getNextHighestDepth());
timer = 7;
_root.i = _root.i + 1;
flare.gotoAndPlay(1);
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("gunsound", this);
someSound.start(0, 1);
}
}
timer--;
if (Key.isDown(38)) {
yspeed = yspeed - 1;
if (yspeed < -6) {
yspeed = -6;
}
if (idle._currentframe == 1) {
idle.gotoAndPlay(2);
takeoff = 5;
}
}
if (Key.isDown(40) and (!(idle._currentframe === 1))) {
yspeed = yspeed + 1;
if (yspeed > 6) {
yspeed = 6;
}
}
if (Key.isDown(37) and (idle._currentframe != 1)) {
xspeed = xspeed - 1;
_xscale = (-scale);
dir = false;
if (xspeed < -6) {
xspeed = -6;
}
} else if (Key.isDown(39) and (idle._currentframe != 1)) {
xspeed = xspeed + 1;
_xscale = scale;
dir = true;
if (xspeed > 6) {
xspeed = 6;
}
}
if (!Key.isDown(39)) {
xspeed = xspeed / 1.2;
}
if (!Key.isDown(38)) {
yspeed = yspeed / 1.1;
}
if ((!Key.isDown(39)) and (!Key.isDown(37))) {
_rotation = 0;
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_x > 535) {
_x = 535;
}
if (_x < 15) {
_x = 15;
}
if (_y < 5) {
_y = 5;
}
if (_y > 390) {
_y = 390;
}
if (_root.laser._currentframe != 1) {
if (dir == true) {
_root.laser._x = _x + 620;
_root.laser._y = _y;
}
if (dir == false) {
_root.laser._x = _x - 620;
_root.laser._y = _y;
}
}
}
}
}
Instance of Symbol 56 MovieClip "rocket" in Frame 6
onClipEvent (load) {
if (_name != "rocket") {
_y = (_root.heli._y + random(5));
dir = _root.heli.dir;
if (dir == false) {
_x = (_root.heli._x - 5);
_rotation = 0;
}
if (dir == true) {
_x = (_root.heli._x + 5);
_rotation = 180;
}
speed = 15;
ted = random(5);
yspeed = 0;
timer = 0;
once = true;
dietimer = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if ((_name != "rocket") and (_root.endfade._currentframe == 1)) {
if (_currentframe != 2) {
timer++;
if (up == true) {
_y = (_y - (_root.mainspeed + 2));
if (timer > 5) {
if (inside.flare._currentframe == 1) {
inside.flare.gotoAndPlay(2);
}
if ((_root.sound == true) and (once == true)) {
someSound = new Sound();
someSound.attachSound("launchsound", this);
someSound.start(0, 1);
once = false;
}
if (dir == true) {
_x = (_x + 10);
}
if (dir == false) {
_x = (_x - 10);
}
}
} else {
_y = (_y + (_root.mainspeed + 0.5));
if (timer > 5) {
if (inside.flare._currentframe == 1) {
inside.flare.gotoAndPlay(2);
}
if ((_root.sound == true) and (once == true)) {
someSound = new Sound();
someSound.attachSound("launchsound", this);
someSound.start(0, 1);
once = false;
}
if (dir == true) {
_x = (_x + 10);
}
if (dir == false) {
_x = (_x - 10);
}
}
}
}
}
if (dead.dead2._currentframe == 32) {
removeMovieClip(this);
}
if ((((_x > 565) or (_x < -15)) or (_y > 450)) or (_y < -50)) {
removeMovieClip(this);
}
if (_currentframe == 2) {
dietimer++;
_y = (_y + _root.mainspeed);
if (dietimer > 300) {
removeMovieClip(this);
}
}
}
Instance of Symbol 432 MovieClip "bullet" in Frame 6
onClipEvent (load) {
if (_name != "bullet") {
_y = (_root.heli._y + random(5));
dir = _root.heli.dir;
if (dir == false) {
_x = (_root.heli._x - 25);
_rotation = 180;
}
if (dir == true) {
_x = (_root.heli._x + 25);
_rotation = 0;
}
speed = 12;
}
}
onClipEvent (enterFrame) {
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if ((_name != "bullet") and (_root.endfade._currentframe == 1)) {
if (_currentframe != 2) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * speed));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * speed));
}
}
if (dead._currentframe == 4) {
removeMovieClip(this);
}
if ((((_x > 565) or (_x < -15)) or (_y > 450)) or (_y < -50)) {
removeMovieClip(this);
}
}
Instance of Symbol 437 MovieClip "ebullet" in Frame 6
onClipEvent (load) {
if (_name != "ebullet") {
speed = 8;
_visible = false;
timer = 0;
if (_root.heli._currentframe == 1) {
X = _root.heli._x - _x;
Y = (_root.heli._y - _y) - 10;
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 180);
}
if (_root.heli._currentframe == 2) {
X = _root.char._x - _x;
Y = (_root.char._y - _y) - 4;
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 180);
}
}
}
onClipEvent (enterFrame) {
if (_root.flashbomb.hitTest(this)) {
removeMovieClip(this);
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (inside.dead._currentframe == 4) {
removeMovieClip(this);
}
if (((_name != "ebullet") and (inside._currentframe == 1)) and (_root.endfade._currentframe == 1)) {
if ((_root.heli.hitTest(this) and (inside._currentframe == 1)) and (_root.heli._currentframe == 1)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ric1", this);
someSound.start(0, 1);
}
inside.gotoAndStop(2);
if (_root.heli.shield._currentframe == 1) {
_root.playeronehp = _root.playeronehp - 4;
}
}
if ((((_x > 565) or (_x < -15)) or (_y > 450)) or (_y < -50)) {
removeMovieClip(this);
}
timer++;
if (timer >= 2) {
_visible = true;
}
if (inside._currentframe == 1) {
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
}
}
}
Instance of Symbol 477 MovieClip "enemyone" in Frame 6
onClipEvent (load) {
if (_name != "enemyone") {
z = 0;
health = 3;
timer = 0;
scale = -_xscale;
range = 200;
}
}
onClipEvent (enterFrame) {
if ((_name != "enemyone") and (_root.endfade._currentframe == 1)) {
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
if (_currentframe == 1) {
gotoAndStop (2);
}
if (_currentframe == 3) {
gotoAndStop (4);
}
if (_currentframe == 5) {
gotoAndStop (6);
}
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (typer == true) {
_y = (_y + (_root.mainspeed + 1));
} else {
_y = (_y + _root.mainspeed);
}
if (_y > 420) {
removeMovieClip(this);
}
if (((_currentframe != 2) and (_currentframe != 4)) and (_currentframe != 6)) {
if (_root.heli._x < _x) {
_xscale = (-scale);
}
if (_root.heli._x > _x) {
_xscale = scale;
}
z = 0;
while (z < 31) {
if (((_currentframe != 2) and (_currentframe != 4)) and (_currentframe != 6)) {
if (_root["newbullet" + z].hitTest(this) and (_root["newbullet" + z]._currentframe == 1)) {
if (_currentframe == 1) {
gotoAndStop (2);
}
if (_currentframe == 3) {
gotoAndStop (4);
}
if (_currentframe == 5) {
gotoAndStop (6);
}
_root["newbullet" + z].gotoAndStop(2);
break;
}
if (_root["newrocket" + z].hitTest(this) and (_root["newrocket" + z]._currentframe == 1)) {
if (_currentframe == 1) {
gotoAndStop (2);
}
if (_currentframe == 3) {
gotoAndStop (4);
}
if (_currentframe == 5) {
gotoAndStop (6);
}
_root["newrocket" + z].gotoAndStop(2);
break;
}
if (_root["newcharbullet" + z].hitTest(this) and (_root["newcharbullet" + z]._currentframe == 1)) {
if (_currentframe == 1) {
gotoAndStop (2);
}
if (_currentframe == 3) {
gotoAndStop (4);
}
if (_currentframe == 5) {
gotoAndStop (6);
}
_root["newcharbullet" + z].gotoAndStop(2);
break;
}
if (_root["newchargrenade" + z].hitTest(this)) {
if (_currentframe == 1) {
gotoAndStop (2);
}
if (_currentframe == 3) {
gotoAndStop (4);
}
if (_currentframe == 5) {
gotoAndStop (6);
}
_root["newchargrenade" + z].gotoAndStop(2);
break;
}
}
z++;
}
if (_root.heli._y < _y) {
if (_currentframe == 1) {
if (egun.pistol._currentframe == 1) {
egun.pistol.gotoAndPlay(2);
_root.e = _root.e + 1;
duplicateMovieClip (_root.ebullet, "newebullet" + _root.e, _root.getNextHighestDepth());
_root["newebullet" + _root.e]._x = _x;
_root["newebullet" + _root.e]._y = _y - 15;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("shotsound", this);
someSound.start(0, 1);
}
}
}
if (_currentframe == 3) {
if (egun._currentframe == 1) {
egun.gotoAndPlay(2);
_root.e = _root.e + 1;
duplicateMovieClip (_root.erocket, "newerocket" + _root.e, _root.getNextHighestDepth());
_root["newerocket" + _root.e]._x = _x;
_root["newerocket" + _root.e]._y = _y - 10;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("launchsound", this);
someSound.start(0, 1);
}
}
}
if (_currentframe == 5) {
if (egun._currentframe == 1) {
egun.gotoAndPlay(2);
_root.e = _root.e + 1;
duplicateMovieClip (_root.grenade, "newgrenade" + _root.e, _root.getNextHighestDepth());
_root["newgrenade" + _root.e]._x = _x;
_root["newgrenade" + _root.e]._y = _y - 20;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("grenadesound", this);
someSound.start(0, 1);
}
}
}
}
}
}
}
Instance of Symbol 483 MovieClip "charbullet" in Frame 6
onClipEvent (load) {
if (_name != "bullet") {
_y = (_root.char._y - 14);
dir = _root.char.dir;
if (dir == false) {
_x = (_root.char._x + 12);
_rotation = 0;
}
if (dir == true) {
_x = (_root.char._x - 12);
_rotation = 180;
}
speed = 8;
}
}
onClipEvent (enterFrame) {
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if ((_name != "bullet") and (_root.endfade._currentframe == 1)) {
if (_currentframe != 2) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * speed));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * speed));
}
}
if (dead._currentframe == 4) {
removeMovieClip(this);
}
if ((((_x > 600) or (_x < -50)) or (_y > 450)) or (_y < -50)) {
removeMovieClip(this);
}
}
Instance of Symbol 488 MovieClip "gun" in Frame 6
onClipEvent (load) {
if (_name != "gun") {
timer = 0;
once = false;
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (bang._currentframe == 22) {
removeMovieClip(this);
}
if (((_name != "gun") and (_currentframe != 3)) and (_root.endfade._currentframe == 1)) {
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (3);
}
if (_y > 450) {
removeMovieClip(this);
}
_y = (_y + _root.mainspeed);
timer++;
if (timer == 20) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("turretsound", this);
someSound.start(0, 1);
}
_root.e = _root.e + 1;
duplicateMovieClip (_root.eturretbullet, "neweturretbullet" + _root.e, _root.getNextHighestDepth());
_root["neweturretbullet" + _root.e]._x = _x;
_root["neweturretbullet" + _root.e]._y = _y;
}
if (timer == 22) {
_root.e = _root.e + 1;
duplicateMovieClip (_root.eturretbullet, "neweturretbullet" + _root.e, _root.getNextHighestDepth());
_root["neweturretbullet" + _root.e]._x = _x;
_root["neweturretbullet" + _root.e]._y = _y;
}
if (timer == 24) {
_root.e = _root.e + 1;
duplicateMovieClip (_root.eturretbullet, "neweturretbullet" + _root.e, _root.getNextHighestDepth());
_root["neweturretbullet" + _root.e]._x = _x;
_root["neweturretbullet" + _root.e]._y = _y;
}
if (timer == 26) {
gotoAndStop (2);
}
if (timer == 30) {
gotoAndStop (1);
}
if (timer == 45) {
timer = 0;
}
if (_root.heli._currentframe == 1) {
Xd = _root.heli._x - _x;
Yd = _root.heli._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 180);
updateAfterEvent();
}
if (_root.heli._currentframe == 2) {
Xd = _root.char._x - _x;
Yd = _root.char._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 180);
updateAfterEvent();
}
}
i = 0;
while (i < 31) {
if (_currentframe == 1) {
if (_root["newbullet" + i].hitTest(this) and (_root["newbullet" + i]._currentframe == 1)) {
gotoAndStop (3);
_root["newbullet" + i].gotoAndStop(2);
break;
}
if (_root["newrocket" + i].hitTest(this) and (_root["newrocket" + i]._currentframe == 1)) {
gotoAndStop (3);
_root["newrocket" + i].gotoAndStop(2);
break;
}
if (_root["newcharbullet" + i].hitTest(this) and (_root["newcharbullet" + i]._currentframe == 1)) {
gotoAndStop (3);
_root["newcharbullet" + i].gotoAndStop(2);
break;
}
if (_root["newchargrenade" + i].hitTest(this)) {
gotoAndStop (3);
_root["newchargrenade" + i].gotoAndStop(2);
break;
}
}
i++;
}
}
Instance of Symbol 494 MovieClip "eturretbullet" in Frame 6
onClipEvent (load) {
if (_name != "eturretbullet") {
speed = 9;
_visible = false;
timer = 0;
if (_root.heli._currentframe == 1) {
X = _root.heli._x - _x;
Y = _root.heli._y - _y;
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 180);
}
if (_root.heli._currentframe == 2) {
X = _root.char._x - _x;
Y = _root.char._y - _y;
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 180);
}
}
}
onClipEvent (enterFrame) {
if (_root.flashbomb.hitTest(this)) {
removeMovieClip(this);
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if ((_name != "eturretbullet") and (_root.endfade._currentframe == 1)) {
if (dead._currentframe == 4) {
removeMovieClip(this);
}
if (_currentframe != 2) {
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
}
if ((((_x > 565) or (_x < -15)) or (_y > 450)) or (_y < -50)) {
removeMovieClip(this);
}
timer++;
if (timer == 4) {
_visible = true;
}
if ((_root.heli.hitTest(this) and (_currentframe == 1)) and (_root.heli._currentframe == 1)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ric1", this);
someSound.start(0, 1);
}
gotoAndStop (2);
if (_root.heli.shield._currentframe == 1) {
_root.playeronehp = _root.playeronehp - 6;
}
}
}
}
Instance of Symbol 498 MovieClip "enemyheli" in Frame 6
onClipEvent (load) {
if (_name != "enemyheli") {
scale = _xscale;
timer = 0;
dir = true;
roll = random(2) + 1;
roll2 = random(3) + 1;
if (roll2 == 1) {
maxspeed = 1.5;
}
if (roll2 == 2) {
maxspeed = 2;
}
if (roll2 == 3) {
maxspeed = 2.5;
}
speed = 1;
yspeed = 0;
}
}
onClipEvent (enterFrame) {
if (bang._currentframe == 22) {
removeMovieClip(this);
}
if (_name != "enemyheli") {
if ((_root.pausedgame == true) and (_root.endfade._currentframe == 1)) {
removeMovieClip(this);
}
if ((_currentframe == 1) and (_root.endfade._currentframe == 1)) {
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (2);
}
_y = (_y + yspeed);
if (((_root.char.hit.hitTest(hit) and (_root.heli._currentframe == 2)) and (_root.char._currentframe != 5)) and (_root.endfade._currentframe == 1)) {
_root.playeronehp = 100;
_root.heli.xspeed = 0;
_root.heli.yspeed = 0;
_root.heli._x = _x;
_root.heli._y = _y;
_root.char._x = -40;
_root.char._y = -40;
_root.char.comehere = false;
_root.char.gotoAndStop(1);
_root.heli.once = false;
_root.heli.gotoAndStop(1);
_root.heli.idle.gotoAndPlay(2);
_root.heli._xscale = scale;
removeMovieClip(this);
}
if (_root.heli._currentframe == 1) {
if (_root.heli._x > _x) {
_xscale = scale;
_x = (_x + speed);
dir = true;
}
if (_root.heli._x < _x) {
_xscale = (-scale);
_x = (_x - speed);
dir = false;
}
if ((_root.heli._y - _y) <= -5) {
yspeed = yspeed - speed;
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
}
if ((_root.heli._y - _y) >= 5) {
yspeed = yspeed + speed;
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
} else {
yspeed = yspeed / 1.1;
}
}
if (_root.heli._currentframe == 2) {
if (_root.char._x > _x) {
_xscale = scale;
_x = (_x + speed);
dir = true;
}
if (_root.char._x < _x) {
_xscale = (-scale);
_x = (_x - speed);
dir = false;
}
if ((_root.char._y - _y) <= -5) {
yspeed = yspeed - 1;
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
}
if ((_root.char._y - _y) >= 5) {
yspeed = yspeed + 1;
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
} else {
yspeed = yspeed / 1.1;
}
}
timer++;
if (timer == 30) {
if ((((_x > 0) and (_x < 550)) and (_y > 0)) and (_y < 400)) {
if (((_root.heli._y - _y) >= -80) and ((_root.heli._y - _y) <= 80)) {
_root.e = _root.e + 1;
duplicateMovieClip (_root.ehelibullet, "newehelibullet" + _root.e, _root.getNextHighestDepth());
_root["newehelibullet" + _root.e].dir = dir;
if (_root["newehelibullet" + _root.e].dir == false) {
_root["newehelibullet" + _root.e]._x = _x - 12;
}
if (_root["newehelibullet" + _root.e].dir == true) {
_root["newehelibullet" + _root.e]._x = _x + 12;
}
_root["newehelibullet" + _root.e]._y = _y;
flare.gotoAndPlay(1);
}
}
timer = 0;
}
i = 0;
while (i <= 31) {
if (this.hitTest(_root["newbullet" + i]._x, _root["newbullet" + i]._y, true) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (2);
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("vehsound", this);
someSound.start(0, 1);
}
break;
}
if (this.hitTest(_root["newrocket" + i]._x, _root["newrocket" + i]._y, true) and (_root["newrocket" + i]._currentframe == 1)) {
_root["newrocket" + i].gotoAndStop(2);
gotoAndStop (2);
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("vehsound", this);
someSound.start(0, 1);
}
break;
}
if (this.hitTest(_root["newcharbullet" + i]._x, _root["newcharbullet" + i]._y, true) and (_root["newcharbullet" + i]._currentframe == 1)) {
_root["newcharbullet" + i].gotoAndStop(2);
gotoAndStop (2);
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("vehsound", this);
someSound.start(0, 1);
}
break;
}
if (this.hitTest(_root["newchargrenade" + i]._x, _root["newchargrenade" + i]._y, true)) {
_root["newchargrenade" + i].gotoAndStop(2);
gotoAndStop (2);
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("vehsound", this);
someSound.start(0, 1);
}
break;
}
i++;
}
}
}
}
Instance of Symbol 494 MovieClip "ehelibullet" in Frame 6
onClipEvent (load) {
if (_name != "ehelibullet") {
if (dir == false) {
_rotation = 180;
}
if (dir == true) {
_rotation = 0;
}
speed = 12;
}
}
onClipEvent (enterFrame) {
if (_root.flashbomb.hitTest(this)) {
removeMovieClip(this);
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if ((_name != "ehelibullet") and (_root.endfade._currentframe == 1)) {
if (_currentframe != 2) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * speed));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * speed));
}
}
if (dead._currentframe == 4) {
removeMovieClip(this);
}
if ((((_x > 565) or (_x < -15)) or (_y > 450)) or (_y < -50)) {
removeMovieClip(this);
}
if ((_root.heli.hitTest(this) and (_currentframe == 1)) and (_root.heli._currentframe == 1)) {
gotoAndStop (2);
if (_root.heli.shield._currentframe == 1) {
_root.playeronehp = _root.playeronehp - 7;
}
}
}
Instance of Symbol 505 MovieClip "erocket" in Frame 6
onClipEvent (load) {
if (_name != "erocket") {
speed = 8;
_visible = false;
timer = 0;
if (_root.heli._currentframe == 1) {
X = _root.heli._x - _x;
Y = (_root.heli._y - _y) - 10;
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 180);
}
if (_root.heli._currentframe == 2) {
X = _root.char._x - _x;
Y = (_root.char._y - _y) - 4;
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 180);
}
}
}
onClipEvent (enterFrame) {
if (_root.flashbomb.hitTest(this)) {
removeMovieClip(this);
}
if (bomb._currentframe == 22) {
removeMovieClip(this);
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (dead.dead2._currentframe == 42) {
removeMovieClip(this);
}
if (_currentframe == 2) {
_y = (_y + _root.mainspeed);
}
if (((_name != "erocket") and (_currentframe == 1)) and (_root.endfade._currentframe == 1)) {
if ((_root.heli.hitTest(this) and (_currentframe == 1)) and (_root.heli._currentframe == 1)) {
gotoAndStop (2);
if (_root.heli.shield._currentframe == 1) {
_root.playeronehp = _root.playeronehp - 5;
}
}
if ((((_x > 565) or (_x < -15)) or (_y > 450)) or (_y < -50)) {
removeMovieClip(this);
}
timer++;
if (timer >= 2) {
_visible = true;
}
if (_currentframe == 1) {
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
}
}
}
Instance of Symbol 508 MovieClip "pbomb" in Frame 6
onClipEvent (load) {
gravity = 2;
timer = 0;
tick = random(30) + 10;
scale = _xscale;
if (dir == true) {
_xscale = (-scale);
}
}
onClipEvent (enterFrame) {
if (_root.flashbomb.hitTest(this)) {
removeMovieClip(this);
}
if (bomb._currentframe == 31) {
removeMovieClip(this);
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (((_name != "pbomb") and (_currentframe == 1)) and (_root.endfade._currentframe == 1)) {
gravity = gravity + 0.3;
if (dir == false) {
_xscale = scale;
_x = (_x + 1);
_rotation = (_rotation + 0.5);
}
if (dir == true) {
_xscale = (-scale);
_x = (_x - 1);
_rotation = (_rotation - 0.5);
}
_y = (_y + gravity);
timer++;
if (timer > tick) {
gotoAndStop (2);
}
}
}
Instance of Symbol 513 MovieClip "enemyplane" in Frame 6
onClipEvent (load) {
if (_name != "enemyplane") {
timer = 0;
bob = random(110) + 50;
roll = random(2) + 1;
scale = _xscale;
if (roll == 1) {
_x = -260;
_y = (random(75) + 10);
}
if (roll == 2) {
_xscale = (-scale);
_x = 700;
_y = (random(75) + 10);
}
}
}
onClipEvent (enterFrame) {
if (bang._currentframe == 22) {
removeMovieClip(this);
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (((_name != "enemyplane") and (_currentframe == 1)) and (_root.endfade._currentframe == 1)) {
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (2);
}
i = 0;
while (i <= 31) {
if (this.hitTest(_root["newbullet" + i]._x, _root["newbullet" + i]._y, true) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (2);
break;
}
if (this.hitTest(_root["newrocket" + i]._x, _root["newrocket" + i]._y, true) and (_root["newrocket" + i]._currentframe == 1)) {
_root["newrocket" + i].gotoAndStop(2);
gotoAndStop (2);
break;
}
if (this.hitTest(_root["newcharbullet" + i]._x, _root["newcharbullet" + i]._y, true) and (_root["newcharbullet" + i]._currentframe == 1)) {
_root["newcharbullet" + i].gotoAndStop(2);
gotoAndStop (2);
break;
}
if (this.hitTest(_root["newchargrenade" + i]._x, _root["newchargrenade" + i]._y, true)) {
_root["newchargrenade" + i].gotoAndStop(2);
gotoAndStop (2);
break;
}
i++;
}
if (roll == 1) {
_x = (_x + 4);
if (_x > 600) {
removeMovieClip(this);
}
}
if (roll == 2) {
if (_x < -100) {
removeMovieClip(this);
}
_x = (_x - 4);
}
timer++;
if (timer == bob) {
_root.e = _root.e + 1;
duplicateMovieClip (_root.pbomb, "pbomb" + _root.e, _root.getNextHighestDepth());
_root["pbomb" + _root.e]._x = _x - 12;
_root["pbomb" + _root.e]._y = _y;
tempname = _root["pbomb" + _root.e];
if (roll == 1) {
_root["pbomb" + _root.e].dir = false;
}
if (roll == 2) {
_root["pbomb" + _root.e].dir = true;
}
}
}
}
Instance of Symbol 524 MovieClip "enemytank" in Frame 6
onClipEvent (load) {
if (_name != "enemytank") {
timer = 0;
health = 5;
}
}
onClipEvent (enterFrame) {
if ((_name != "enemytank") and (_root.endfade._currentframe == 1)) {
_y = (_y + _root.mainspeed);
timer++;
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (3);
}
if (_y > 500) {
removeMovieClip(this);
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (bang._currentframe == 22) {
removeMovieClip(this);
}
if (_currentframe != 3) {
if (_root.heli._y < _y) {
if ((_currentframe == 1) and (timer > 60)) {
_root.e = _root.e + 1;
duplicateMovieClip (_root.tankshot, "newtankshot" + _root.e, _root.getNextHighestDepth());
_root["newtankshot" + _root.e]._x = _x;
_root["newtankshot" + _root.e]._y = _y;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("tankshot", this);
someSound.start(0, 1);
}
timer = 0;
}
}
if (health <= 0) {
gotoAndStop (3);
}
i = 0;
while (i < 31) {
if (_currentframe != 3) {
if (_root["newbullet" + i].hitTest(this) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (2);
health = health - 1;
break;
}
if ((_root["newrocket" + i].hitTest(this) and (_root["newrocket" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (3);
health = health - 2;
_root["newrocket" + i].gotoAndStop(2);
break;
}
if ((_root["newcharbullet" + i].hitTest(this) and (_root["newcharbullet" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newcharbullet" + i].gotoAndStop(2);
break;
}
if (_root["newchargrenade" + i].hitTest(this) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 3;
_root["newchargrenade" + i].gotoAndStop(2);
break;
}
}
i++;
}
}
}
}
Instance of Symbol 526 MovieClip "tankshot" in Frame 6
onClipEvent (load) {
if (_name != "tankshot") {
speed = 10;
_visible = false;
timer = 0;
if (_root.heli._currentframe == 1) {
X = _root.heli._x - _x;
Y = (_root.heli._y - _y) - 10;
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 180);
}
if (_root.heli._currentframe == 2) {
X = _root.char._x - _x;
Y = (_root.char._y - _y) - 4;
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 180);
}
}
}
onClipEvent (enterFrame) {
if (_root.flashbomb.hitTest(this)) {
removeMovieClip(this);
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (bomb._currentframe == 32) {
removeMovieClip(this);
}
if (((_name != "tankshot") and (_currentframe == 1)) and (_root.endfade._currentframe == 1)) {
if ((_root.heli.hitTest(this) and (_currentframe == 1)) and (_root.heli._currentframe == 1)) {
gotoAndStop (2);
_root.playeronehp = _root.playeronehp - 1;
}
if ((_root.char.hitTest(this) and (_currentframe == 1)) and (_root.heli._currentframe == 2)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ric1", this);
someSound.start(0, 1);
}
gotoAndStop (2);
if (_root.heli.shield._currentframe == 1) {
_root.playeronehp = _root.playeronehp - 1;
}
}
if ((((_x > 565) or (_x < -15)) or (_y > 450)) or (_y < -50)) {
removeMovieClip(this);
}
timer++;
if (timer >= 3) {
_visible = true;
}
if (_currentframe == 1) {
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
}
}
}
Instance of Symbol 530 MovieClip "platform" in Frame 6
onClipEvent (load) {
scale = _xscale;
if (dir == true) {
_xscale = (-scale);
}
}
onClipEvent (enterFrame) {
if ((_name != "platform") and (_root.endfade._currentframe == 1)) {
_y = (_y + (_root.mainspeed + 1));
if (hit.hitTest(_root.char._x, _root.char._y, true)) {
_root.char._y = _y;
_root.char.gravity = 0;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
if (Key.isDown(38) and hit.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (_y > 420) {
removeMovieClip(this);
}
}
}
Instance of Symbol 592 MovieClip "char" in Frame 6
onClipEvent (load) {
comehere = false;
scale = _xscale;
gravity = 0;
timer = 0;
dir = false;
newtimer = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if ((_root.playeronehp <= 0) and (_root.heli.bang._currentframe == 22)) {
gotoAndStop (5);
}
if (((comehere == true) and (_currentframe != 5)) and (_root.endfade._currentframe == 1)) {
if ((_y > 500) and (_root.endfade._currentframe == 1)) {
_root.endfade.gotoAndPlay(2);
}
e = 52;
while (e <= 102) {
if (hit.hitTest(_root["newebullet" + e]._x, _root["newebullet" + e]._y, true) and (_root["newebullet" + e]._currentframe == 1)) {
_root["newebullet" + e].inside.gotoAndStop(2);
_root.playeronehp = _root.playeronehp - 5;
break;
}
if (hit.hitTest(_root["neweturretbullet" + e]._x, _root["neweturretbullet" + e]._y, true) and (_root["neweturretbullet" + e]._currentframe == 1)) {
_root["neweturretbullet" + e].gotoAndStop(2);
_root.playeronehp = _root.playeronehp - 5;
break;
}
if (hit.hitTest(_root["newehelibullet" + e]._x, _root["newehelibullet" + e]._y, true) and (_root["newehelibullet" + e]._currentframe == 1)) {
_root["newehelibullet" + e].gotoAndStop(2);
_root.playeronehp = _root.playeronehp - 5;
break;
}
if (hit.hitTest(_root["newerocket" + e]._x, _root["newerocket" + e]._y, true) and (_root["newerocket" + e]._currentframe == 1)) {
_root["newerocket" + e].gotoAndStop(2);
_root.playeronehp = _root.playeronehp - 5;
break;
}
e++;
}
timer--;
if ((Key.isDown(65) and (timer <= 0)) and (idle._currentframe != 1)) {
duplicateMovieClip (_root.charbullet, "newcharbullet" + _root.i, _root.getNextHighestDepth());
_root["newcharbullet" + _root.i]._x = _x;
_root["newcharbullet" + _root.i]._y = _y;
timer = 10;
_root.i = _root.i + 1;
flare.gotoAndPlay(1);
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("gunsound", this);
someSound.start(0, 1);
}
}
if (_currentframe == 1) {
_y = (_y + gravity);
gravity++;
if (gravity > 2) {
gravity = 2;
}
}
if (_currentframe == 4) {
_y = (_y + gravity);
gravity++;
if (Key.isDown(39)) {
_x = (_x + 5);
_xscale = scale;
dir = false;
}
if (Key.isDown(37)) {
_x = (_x - 5);
_xscale = (-scale);
dir = true;
}
}
if (_currentframe == 1) {
if (Key.isDown(39)) {
_x = (_x + 5);
dir = false;
_xscale = scale;
}
if (Key.isDown(37)) {
_x = (_x - 5);
dir = true;
_xscale = (-scale);
}
}
if ((_currentframe != 1) and (_currentframe != 4)) {
_y = (_y + gravity);
gravity++;
_y = (_y + 2);
if ((!Key.isDown(39)) and (!Key.isDown(37))) {
gotoAndStop (2);
}
if (Key.isDown(39)) {
_x = (_x + 5);
_xscale = scale;
gotoAndStop (3);
dir = false;
}
if (Key.isDown(37)) {
_x = (_x - 5);
_xscale = (-scale);
gotoAndStop (3);
dir = true;
}
}
}
}
Instance of Symbol 596 MovieClip "P2hp" in Frame 6
onClipEvent (enterFrame) {
_xscale = _root.playeronehp;
if (_root.playeronehp < 0) {
_root.playeronehp = 0;
}
}
Instance of Symbol 609 MovieClip "lamps" in Frame 6
onClipEvent (enterFrame) {
if (_root.pausedgame == false) {
_y = (_y + _root.mainspeed);
}
}
Instance of Symbol 612 MovieClip "grenade" in Frame 6
onClipEvent (load) {
if (_name != "grenade") {
timer = 0;
gravity = -15;
if (_root.heli._x < _x) {
sider = false;
}
if (_root.heli._x > _x) {
sider = true;
}
X = _root.heli._x - _x;
Y = (_root.heli._y - _y) - 10;
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 180);
}
}
onClipEvent (enterFrame) {
if (_root.flashbomb.hitTest(this)) {
removeMovieClip(this);
}
if (bomb._currentframe == 20) {
removeMovieClip(this);
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (_name != "grenade") {
if (_currentframe == 1) {
if (_root.heli.hitTest(this)) {
gotoAndStop (2);
}
if (sider == false) {
_x = (_x - 5);
}
if (sider == true) {
_x = (_x + 5);
}
timer++;
_rotation = (_rotation + 5);
gravity++;
_y = (_y + gravity);
}
if ((timer > 20) and (_currentframe == 1)) {
gotoAndStop (2);
}
}
}
Instance of Symbol 625 MovieClip "upgrade" in Frame 6
onClipEvent (load) {
if (_name != "upgrade") {
_x = (random(500) + 30);
_y = -50;
bob = random(6) + 1;
gotoAndStop(bob);
}
}
onClipEvent (enterFrame) {
if (_name != "upgrade") {
if (_root.endfade._currentframe == 1) {
_y = (_y + 2);
}
if (_y > 450) {
removeMovieClip(this);
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (_root.heli.hitTest(this)) {
if (_currentframe == 6) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("heartbeatsound", this);
someSound.start(0, 1);
}
_root.playeronehp = _root.playeronehp + 20;
removeMovieClip(this);
}
if (_currentframe == 4) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("powerupsound", this);
someSound.start(0, 1);
}
_root.heli.shieldtimer = 200;
_root.heli.shield.gotoAndStop(2);
removeMovieClip(this);
}
}
if (_root.heli.hitTest(this) and (_root.mana <= 0)) {
if (_currentframe == 1) {
_root.special.gotoAndStop(2);
}
if (_currentframe == 2) {
_root.special.gotoAndStop(3);
}
if (_currentframe == 3) {
_root.special.gotoAndStop(4);
}
if (_currentframe == 5) {
_root.special.gotoAndStop(6);
}
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("powerupsound", this);
someSound.start(0, 1);
}
removeMovieClip(this);
}
}
}
Instance of Symbol 640 MovieClip "laser" in Frame 6
onClipEvent (load) {
scale = _xscale;
}
onClipEvent (enterFrame) {
if ((_currentframe >= 2) and (_currentframe <= 5)) {
bob = _root.getNextHighestDepth();
this.swapDepths(bob);
}
if (_root.heli.dir == false) {
_xscale = scale;
}
if (_root.heli.dir == true) {
_xscale = (-scale);
}
}
Instance of Symbol 644 MovieClip "bigbomb" in Frame 6
onClipEvent (load) {
if (once == false) {
timer = 0;
_x = _root.heli._x;
_y = _root.heli._y;
}
}
onClipEvent (enterFrame) {
if (once == false) {
_rotation = (_rotation + 7);
_y = (_y + 3);
timer++;
if (timer > 10) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("bigbombsound", this);
someSound.start(0, 1);
}
_root.flashbomb.gotoAndPlay(2);
_x = -230;
_y = -280;
once = true;
timer = 0;
removeMovieClip(this);
}
}
}
Instance of Symbol 622 MovieClip "chargrenade" in Frame 6
onClipEvent (load) {
if (_name != "chargrenade") {
timer = 0;
gravity = -16;
_x = _root.heli._x;
_y = _root.heli._y;
}
}
onClipEvent (enterFrame) {
if (_root.flashbomb.hitTest(this)) {
removeMovieClip(this);
}
if (dd.bomb._currentframe == 20) {
removeMovieClip(this);
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (_name != "chargrenade") {
if (_currentframe == 1) {
if (sider == false) {
_x = (_x - 5);
}
if (sider == true) {
_x = (_x + 5);
}
timer++;
_rotation = (_rotation + 5);
gravity++;
_y = (_y + gravity);
}
if ((timer > 20) and (_currentframe == 1)) {
gotoAndStop (2);
}
}
}
Instance of Symbol 645 MovieClip "upspawn" in Frame 6
onClipEvent (enterFrame) {
if ((_root.pausedgame == false) and (_currentframe == 1)) {
gotoAndPlay (2);
}
}
Instance of Symbol 688 MovieClip "instruc" in Frame 6
onClipEvent (enterFrame) {
if (Key.isDown(38) and (_visible == true)) {
_root.pausedgame = false;
_visible = false;
}
}
Instance of Symbol 624 MovieClip in Frame 6
onClipEvent (load) {
bob = _root.objectdepthcounter;
this.swapDepths(bob);
_root.objectdepthcounter = _root.objectdepthcounter + 1;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("heartbeatsound", this);
someSound.start(0, 1);
}
_root.mainhpbar.health = _root.mainhpbar.health - 20;
this.swapDepths(9999);
removeMovieClip(this);
}
}
Instance of Symbol 694 MovieClip "SS" in Frame 6
on (press) {
if (_currentframe == 2) {
_root.nextsong();
gotoAndStop (1);
_root.sound = true;
} else if (_currentframe == 1) {
_root.sound = false;
gotoAndStop (2);
}
}
Instance of Symbol 706 MovieClip "endfade" in Frame 6
onClipEvent (enterFrame) {
if ((_currentframe != 1) and (_root.heli._currentframe == 2)) {
_root.char.gotoAndStop(5);
}
if ((_currentframe != 1) and (_root.char._currentframe == 5)) {
_root.heli.gotoAndStop(2);
}
if ((_currentframe >= 1) and (_currentframe <= 5)) {
bob = _root.getNextHighestDepth();
this.swapDepths(bob);
}
if (_currentframe == 20) {
ted = _root.getNextHighestDepth();
_root.fade.swapDepths(ted);
}
if (Key.isDown(38) and (_currentframe == 20)) {
gotoAndPlay (21);
}
if (_currentframe > 20) {
play();
}
}
Instance of Symbol 707 MovieClip "flashbomb" in Frame 6
onClipEvent (enterFrame) {
if ((_currentframe >= 2) and (_currentframe <= 5)) {
bob = _root.getNextHighestDepth();
this.swapDepths(bob);
}
}
Symbol 32 MovieClip Frame 22
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 2
play();
Symbol 33 MovieClip Frame 4
gotoAndStop (1);
Symbol 33 MovieClip Frame 5
stop();
_root.targetskilled = _root.targetskilled + 1;
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 5
gotoAndPlay (2);
Symbol 55 MovieClip Frame 1
stop();
Instance of Symbol 54 MovieClip "dead2" in Symbol 55 MovieClip Frame 1
onClipEvent (enterFrame) {
if (testing == true) {
removeMovieClip(this);
}
}
Symbol 56 MovieClip Frame 1
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("missound", this);
someSound.start(0, 1);
}
Symbol 56 MovieClip Frame 2
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("vehsound", this);
someSound.start(0, 1);
}
Instance of Symbol 55 MovieClip "dead" in Symbol 56 MovieClip Frame 2
onClipEvent (load) {
bob = random(4) + 1;
gotoAndStop(bob);
}
Instance of Symbol 63 MovieClip in Symbol 64 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.endfade._currentframe != 1) {
stop();
}
}
Symbol 69 MovieClip Frame 20
duplicateMovieClip (_root.helimissile1, "helimissile1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.S = _root.S + 1;
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 2
stop();
Symbol 70 MovieClip Frame 3
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
stop();
Symbol 73 MovieClip Frame 3
stop();
Symbol 74 MovieClip [bullet] Frame 1
stop();
Symbol 74 MovieClip [bullet] Frame 2
stop();
Symbol 74 MovieClip [bullet] Frame 3
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 21
stop();
Symbol 167 MovieClip Frame 22
prevFrame();
Symbol 181 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 1
stop();
Instance of Symbol 167 MovieClip "node1" in Symbol 195 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.power == 4) {
stopDrag();
}
}
on (press) {
if (_root.power != 4) {
startDrag (this);
}
}
on (release) {
if (_root.power != 4) {
stopDrag();
}
}
Symbol 204 Button
on (press) {
_root.gotoAndPlay(2);
}
Symbol 205 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
_root.candie._visible = false;
_root.gotoAndPlay(2);
}
Symbol 205 MovieClip Frame 2
gotoAndPlay (1);
Symbol 205 MovieClip Frame 3
stop();
Symbol 226 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 226 MovieClip Frame 225
_root.nextFrame();
Symbol 246 MovieClip Frame 144
_root.gotoAndStop(5);
Instance of Symbol 257 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (enterFrame) {
e = 52;
while (e <= 102) {
if (this.hitTest(_root["newebullet" + e]._x, _root["newebullet" + e]._y, true) and (_root["newebullet" + e]._currentframe == 1)) {
_root["newebullet" + e].inside.gotoAndStop(2);
}
if (this.hitTest(_root["neweturretbullet" + e]._x, _root["neweturretbullet" + e]._y, true) and (_root["neweturretbullet" + e]._currentframe == 1)) {
_root["neweturretbullet" + e].gotoAndStop(2);
}
if (this.hitTest(_root["newehelibullet" + e]._x, _root["newehelibullet" + e]._y, true) and (_root["newehelibullet" + e]._currentframe == 1)) {
_root["newehelibullet" + e].gotoAndStop(2);
}
e++;
}
i = 0;
while (i <= 31) {
if (this.hitTest(_root["newbullet" + i]._x, _root["newbullet" + i]._y, true) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
}
if (this.hitTest(_root["newrocket" + i]._x, _root["newrocket" + i]._y, true) and (_root["newrocket" + i]._currentframe == 1)) {
_root["newrocket" + i].gotoAndStop(2);
}
if (this.hitTest(_root["newcharbullet" + i]._x, _root["newcharbullet" + i]._y, true) and (_root["newcharbullet" + i]._currentframe == 1)) {
_root["newcharbullet" + i].gotoAndStop(2);
}
if (_root.char._currentframe != 5) {
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char.gravity = 0;
_root.char._y--;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
}
i++;
}
}
Instance of Symbol 257 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (enterFrame) {
e = 52;
while (e <= 102) {
if (this.hitTest(_root["newebullet" + e]._x, _root["newebullet" + e]._y, true) and (_root["newebullet" + e]._currentframe == 1)) {
_root["newebullet" + e].inside.gotoAndStop(2);
}
if (this.hitTest(_root["neweturretbullet" + e]._x, _root["neweturretbullet" + e]._y, true) and (_root["neweturretbullet" + e]._currentframe == 1)) {
_root["neweturretbullet" + e].gotoAndStop(2);
}
if (this.hitTest(_root["newehelibullet" + e]._x, _root["newehelibullet" + e]._y, true) and (_root["newehelibullet" + e]._currentframe == 1)) {
_root["newehelibullet" + e].gotoAndStop(2);
}
e++;
}
i = 0;
while (i <= 31) {
if (this.hitTest(_root["newbullet" + i]._x, _root["newbullet" + i]._y, true) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
}
if (this.hitTest(_root["newrocket" + i]._x, _root["newrocket" + i]._y, true) and (_root["newrocket" + i]._currentframe == 1)) {
_root["newrocket" + i].gotoAndStop(2);
}
if (this.hitTest(_root["newcharbullet" + i]._x, _root["newcharbullet" + i]._y, true) and (_root["newcharbullet" + i]._currentframe == 1)) {
_root["newcharbullet" + i].gotoAndStop(2);
}
if (_root.char._currentframe != 5) {
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char.gravity = 0;
_root.char._y--;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
}
i++;
}
}
Instance of Symbol 261 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (enterFrame) {
e = 52;
while (e <= 102) {
if (this.hitTest(_root["newebullet" + e]._x, _root["newebullet" + e]._y, true) and (_root["newebullet" + e]._currentframe == 1)) {
_root["newebullet" + e].inside.gotoAndStop(2);
}
if (this.hitTest(_root["neweturretbullet" + e]._x, _root["neweturretbullet" + e]._y, true) and (_root["neweturretbullet" + e]._currentframe == 1)) {
_root["neweturretbullet" + e].gotoAndStop(2);
}
if (this.hitTest(_root["newehelibullet" + e]._x, _root["newehelibullet" + e]._y, true) and (_root["newehelibullet" + e]._currentframe == 1)) {
_root["newehelibullet" + e].gotoAndStop(2);
}
e++;
}
i = 0;
while (i <= 31) {
if (this.hitTest(_root["newbullet" + i]._x, _root["newbullet" + i]._y, true) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
}
if (this.hitTest(_root["newrocket" + i]._x, _root["newrocket" + i]._y, true) and (_root["newrocket" + i]._currentframe == 1)) {
_root["newrocket" + i].gotoAndStop(2);
}
if (this.hitTest(_root["newcharbullet" + i]._x, _root["newcharbullet" + i]._y, true) and (_root["newcharbullet" + i]._currentframe == 1)) {
_root["newcharbullet" + i].gotoAndStop(2);
}
if (_root.char._currentframe != 5) {
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char.gravity = 0;
_root.char._y--;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
}
i++;
}
}
Instance of Symbol 264 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (enterFrame) {
e = 52;
while (e <= 102) {
if (this.hitTest(_root["newebullet" + e]._x, _root["newebullet" + e]._y, true) and (_root["newebullet" + e]._currentframe == 1)) {
_root["newebullet" + e].inside.gotoAndStop(2);
}
if (this.hitTest(_root["neweturretbullet" + e]._x, _root["neweturretbullet" + e]._y, true) and (_root["neweturretbullet" + e]._currentframe == 1)) {
_root["neweturretbullet" + e].gotoAndStop(2);
}
if (this.hitTest(_root["newehelibullet" + e]._x, _root["newehelibullet" + e]._y, true) and (_root["newehelibullet" + e]._currentframe == 1)) {
_root["newehelibullet" + e].gotoAndStop(2);
}
e++;
}
i = 0;
while (i <= 31) {
if (this.hitTest(_root["newbullet" + i]._x, _root["newbullet" + i]._y, true) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
}
if (this.hitTest(_root["newrocket" + i]._x, _root["newrocket" + i]._y, true) and (_root["newrocket" + i]._currentframe == 1)) {
_root["newrocket" + i].gotoAndStop(2);
}
if (this.hitTest(_root["newcharbullet" + i]._x, _root["newcharbullet" + i]._y, true) and (_root["newcharbullet" + i]._currentframe == 1)) {
_root["newcharbullet" + i].gotoAndStop(2);
}
if (_root.char._currentframe != 5) {
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char.gravity = 0;
_root.char._y--;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
}
i++;
}
}
Instance of Symbol 266 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.heli.hitTest(this) or _root.char.hit.hitTest(this)) {
_root.playeronehp = _root.playeronehp - 1;
}
}
Instance of Symbol 266 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.heli.hitTest(this) or _root.char.hit.hitTest(this)) {
_root.playeronehp = _root.playeronehp - 1;
}
}
Instance of Symbol 266 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.heli.hitTest(this) or _root.char.hit.hitTest(this)) {
_root.playeronehp = _root.playeronehp - 1;
}
}
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 2
stop();
Symbol 283 MovieClip Frame 3
stop();
Symbol 283 MovieClip Frame 4
stop();
Symbol 288 MovieClip Frame 1
stop();
Instance of Symbol 283 MovieClip in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
bob = random(4) + 1;
gotoAndStop(bob);
}
Symbol 288 MovieClip Frame 2
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 2
stop();
Symbol 310 MovieClip Frame 3
stop();
Symbol 311 MovieClip Frame 1
bob = random(3) + 1;
d.gotoAndStop(bob) + 1;
Symbol 311 MovieClip Frame 2
stop();
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 2
stop();
Symbol 316 Button
on (press) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 5
stop();
_root.nextFrame();
Symbol 324 MovieClip Frame 50
stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 1
if (_root.pausedgame == true) {
stop();
}
Symbol 341 MovieClip Frame 28
if (_root.mainspeed == 4) {
_root.spawnnext();
gotoAndPlay (2);
}
Symbol 341 MovieClip Frame 37
if (_root.mainspeed == 3) {
_root.spawnnext();
gotoAndPlay (2);
}
Symbol 341 MovieClip Frame 54
if (_root.mainspeed == 2) {
_root.spawnnext();
gotoAndPlay (2);
}
Symbol 341 MovieClip Frame 105
if (_root.mainspeed == 1) {
_root.spawnnext();
}
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 2
if (_root.feet > 100) {
_root.spawnplatform();
}
Symbol 343 MovieClip Frame 3
if (_root.feet > 200) {
_root.spawnplane();
}
Symbol 343 MovieClip Frame 10
if (_root.feet > 1900) {
_root.spawnplane();
}
Symbol 343 MovieClip Frame 23
if (_root.feet > 400) {
_root.spawnplane();
}
Symbol 343 MovieClip Frame 32
if (_root.feet > 1500) {
_root.spawnplane();
}
Symbol 343 MovieClip Frame 42
if (_root.feet > 750) {
_root.spawnheli();
}
Symbol 343 MovieClip Frame 56
if (_root.feet > 250) {
_root.spawnplatform();
}
Symbol 343 MovieClip Frame 76
if (_root.feet > 600) {
_root.spawnplane();
}
Symbol 343 MovieClip Frame 84
if (_root.feet > 2100) {
_root.spawnplane();
}
Symbol 343 MovieClip Frame 93
if (_root.feet > 1500) {
_root.spawnplane();
}
Symbol 343 MovieClip Frame 102
if (_root.feet > 1600) {
_root.spawnplatform();
}
Symbol 343 MovieClip Frame 123
if (_root.feet > 50) {
_root.spawnheli();
}
Symbol 343 MovieClip Frame 148
if (_root.feet > 800) {
_root.spawnplane();
}
Symbol 343 MovieClip Frame 163
if (_root.feet > 1400) {
_root.spawnplatform();
}
Symbol 343 MovieClip Frame 198
if (_root.feet > 1750) {
_root.spawnplatform();
}
Symbol 343 MovieClip Frame 199
if (_root.feet > 1500) {
_root.spawnplane();
}
Symbol 343 MovieClip Frame 217
if (_root.feet > 1000) {
_root.spawnplane();
}
Symbol 343 MovieClip Frame 228
if (_root.feet > 2000) {
_root.spawnplane();
}
Symbol 343 MovieClip Frame 233
if (_root.feet > 1200) {
_root.spawnplane();
}
Symbol 343 MovieClip Frame 239
if (_root.feet > 1900) {
_root.spawnplatform();
}
Symbol 343 MovieClip Frame 240
gotoAndPlay (2);
Symbol 348 MovieClip Frame 10
if ((_root.pausedgame == false) and (_root.endfade._currentframe == 1)) {
_root.feet = _root.feet + 1;
}
Instance of Symbol 257 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.char._currentframe != 5) {
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char._y--;
_root.char.gravity = 0;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
}
}
Instance of Symbol 266 MovieClip in Symbol 377 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.heli.hitTest(this) and (_root.heli._currentframe == 1)) and (_root.heli.shield._currentframe == 1)) {
_root.playeronehp = _root.playeronehp - 2;
}
if ((_root.char.hitTest(this) and (_root.heli._currentframe == 2)) and (_root.heli.shield._currentframe == 1)) {
_root.playeronehp = _root.playeronehp - 2;
}
}
Symbol 380 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 381 MovieClip Frame 1
stop();
Instance of Symbol 377 MovieClip "chainsaw" in Symbol 381 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.endfade._currentframe != 1) {
stop();
}
}
Symbol 381 MovieClip Frame 2
stop();
Symbol 381 MovieClip Frame 3
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("bangbangsound", this);
someSound.start(0, 1);
}
Instance of Symbol 400 MovieClip in Symbol 401 MovieClip Frame 20
onClipEvent (enterFrame) {
if (_root.endfade._currentframe != 1) {
stop();
}
}
Instance of Symbol 266 MovieClip in Symbol 401 MovieClip Frame 20
onClipEvent (enterFrame) {
if ((_root.heli.hitTest(this) and (_root.heli._currentframe == 1)) and (_root.heli.shield._currentframe == 1)) {
_root.playeronehp = _root.playeronehp - 2;
}
if ((_root.char.hitTest(this) and (_root.heli._currentframe == 2)) and (_root.heli.shield._currentframe == 1)) {
_root.playeronehp = _root.playeronehp - 2;
}
}
Symbol 401 MovieClip Frame 50
gotoAndPlay (1);
Symbol 401 MovieClip Frame 51
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("vehsound", this);
someSound.start(0, 1);
}
Symbol 418 MovieClip Frame 1
stop();
Instance of Symbol 360 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.char._currentframe != 5) {
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char.gravity = 0;
_root.char._y--;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
}
}
Symbol 418 MovieClip Frame 2
stop();
Instance of Symbol 261 MovieClip in Symbol 418 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.char._currentframe != 5) {
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char.gravity = 0;
_root.char._y--;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
}
}
Symbol 418 MovieClip Frame 3
stop();
Instance of Symbol 360 MovieClip in Symbol 418 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.char._currentframe != 5) {
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char.gravity = 0;
_root.char._y--;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
}
}
Symbol 418 MovieClip Frame 4
stop();
Instance of Symbol 381 MovieClip in Symbol 418 MovieClip Frame 4
onClipEvent (load) {
health = 7;
}
onClipEvent (enterFrame) {
if (health <= 0) {
gotoAndStop (3);
}
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (3);
}
i = 0;
while (i < 31) {
if (_currentframe != 3) {
if (_root["newbullet" + i].hitTest(this) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (2);
health = health - 1;
}
if ((_root["newrocket" + i].hitTest(this) and (_root["newrocket" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (3);
_root["newrocket" + i].gotoAndStop(2);
}
if ((_root["newcharbullet" + i].hitTest(this) and (_root["newcharbullet" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newcharbullet" + i].gotoAndStop(2);
}
if (_root["newchargrenade" + i].hitTest(this) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newchargrenade" + i].gotoAndStop(2);
}
}
i++;
}
}
Instance of Symbol 381 MovieClip in Symbol 418 MovieClip Frame 4
onClipEvent (load) {
health = 7;
}
onClipEvent (enterFrame) {
if (health <= 0) {
gotoAndStop (3);
}
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (3);
}
i = 0;
while (i < 31) {
if (_currentframe != 3) {
if (_root["newbullet" + i].hitTest(this) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (2);
health = health - 1;
}
if ((_root["newrocket" + i].hitTest(this) and (_root["newrocket" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (3);
_root["newrocket" + i].gotoAndStop(2);
}
if ((_root["newcharbullet" + i].hitTest(this) and (_root["newcharbullet" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newcharbullet" + i].gotoAndStop(2);
}
if (_root["newchargrenade" + i].hitTest(this) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newchargrenade" + i].gotoAndStop(2);
}
}
i++;
}
}
Instance of Symbol 386 MovieClip in Symbol 418 MovieClip Frame 4
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
}
Instance of Symbol 386 MovieClip in Symbol 418 MovieClip Frame 4
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
}
Symbol 418 MovieClip Frame 5
stop();
Instance of Symbol 388 MovieClip in Symbol 418 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.char._currentframe != 5) {
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char.gravity = 0;
_root.char._y--;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
}
}
Instance of Symbol 381 MovieClip in Symbol 418 MovieClip Frame 5
onClipEvent (load) {
health = 7;
timer = 0;
switcher = false;
}
onClipEvent (enterFrame) {
if ((_currentframe != 3) and (_root.endfade._currentframe == 1)) {
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (3);
}
timer++;
if ((timer == 38) and (switcher == false)) {
switcher = true;
timer = 0;
}
if ((timer == 38) and (switcher == true)) {
switcher = false;
timer = 0;
}
if (switcher == false) {
_x = (_x + 3);
}
if (switcher == true) {
_x = (_x - 3);
}
}
if (health <= 0) {
gotoAndStop (3);
}
i = 0;
while (i < 31) {
if (_currentframe != 3) {
if (_root["newbullet" + i].hitTest(this) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (2);
health = health - 1;
}
if ((_root["newrocket" + i].hitTest(this) and (_root["newrocket" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (3);
_root["newrocket" + i].gotoAndStop(2);
}
if ((_root["newcharbullet" + i].hitTest(this) and (_root["newcharbullet" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newcharbullet" + i].gotoAndStop(2);
}
if (_root["newchargrenade" + i].hitTest(this) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newchargrenade" + i].gotoAndStop(2);
}
}
i++;
}
}
Symbol 418 MovieClip Frame 6
stop();
Instance of Symbol 381 MovieClip in Symbol 418 MovieClip Frame 6
onClipEvent (load) {
health = 7;
timer = 0;
switcher = true;
}
onClipEvent (enterFrame) {
if ((_currentframe != 3) and (_root.endfade._currentframe == 1)) {
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (3);
}
timer++;
if ((timer == 38) and (switcher == false)) {
switcher = true;
timer = 0;
}
if ((timer == 38) and (switcher == true)) {
switcher = false;
timer = 0;
}
if (switcher == false) {
_x = (_x + 3);
}
if (switcher == true) {
_x = (_x - 3);
}
}
if (health <= 0) {
gotoAndStop (3);
}
i = 0;
while (i < 31) {
if (_currentframe != 3) {
if (_root["newbullet" + i].hitTest(this) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (2);
health = health - 1;
}
if ((_root["newrocket" + i].hitTest(this) and (_root["newrocket" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (3);
_root["newrocket" + i].gotoAndStop(2);
}
if ((_root["newcharbullet" + i].hitTest(this) and (_root["newcharbullet" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newcharbullet" + i].gotoAndStop(2);
}
if (_root["newchargrenade" + i].hitTest(this) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newchargrenade" + i].gotoAndStop(2);
}
}
i++;
}
}
Symbol 418 MovieClip Frame 7
stop();
Instance of Symbol 392 MovieClip in Symbol 418 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.char._currentframe != 5) {
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char.gravity = 0;
_root.char._y--;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
}
}
Symbol 418 MovieClip Frame 8
stop();
Instance of Symbol 360 MovieClip in Symbol 418 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.char._currentframe != 5) {
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char.gravity = 0;
_root.char._y--;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
}
}
Symbol 418 MovieClip Frame 9
stop();
Instance of Symbol 401 MovieClip in Symbol 418 MovieClip Frame 9
onClipEvent (load) {
timer = 0;
switcher = true;
}
onClipEvent (enterFrame) {
if (_root.endfade._currentframe != 1) {
stop();
}
if ((_currentframe != 51) and (_root.endfade._currentframe == 1)) {
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (51);
}
timer++;
if ((timer > 40) and (switcher == false)) {
switcher = true;
timer = 0;
}
if ((timer > 40) and (switcher == true)) {
switcher = false;
timer = 0;
}
if (switcher == false) {
_y = (_y - 2);
}
if (switcher == true) {
_y = (_y + 2);
}
i = 0;
while (i <= 31) {
if (this.hitTest(_root["newbullet" + i]._x, _root["newbullet" + i]._y, true) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (51);
}
if (this.hitTest(_root["newrocket" + i]._x, _root["newrocket" + i]._y, true) and (_root["newrocket" + i]._currentframe == 1)) {
_root["newrocket" + i].gotoAndStop(2);
gotoAndStop (51);
}
if (this.hitTest(_root["newcharbullet" + i]._x, _root["newcharbullet" + i]._y, true) and (_root["newcharbullet" + i]._currentframe == 1)) {
_root["newcharbullet" + i].gotoAndStop(2);
gotoAndStop (51);
}
if (this.hitTest(_root["newchargrenade" + i]._x, _root["newchargrenade" + i]._y, true)) {
_root["newchargrenade" + i].gotoAndStop(2);
gotoAndStop (51);
}
i++;
}
}
}
Symbol 418 MovieClip Frame 10
stop();
Symbol 418 MovieClip Frame 11
stop();
Symbol 418 MovieClip Frame 12
stop();
Symbol 418 MovieClip Frame 13
stop();
Symbol 418 MovieClip Frame 14
stop();
Instance of Symbol 381 MovieClip in Symbol 418 MovieClip Frame 14
onClipEvent (load) {
health = 7;
}
onClipEvent (enterFrame) {
if (health <= 0) {
gotoAndStop (3);
}
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (3);
}
i = 0;
while (i < 31) {
if (_currentframe != 3) {
if (_root["newbullet" + i].hitTest(this) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (2);
health = health - 1;
}
if ((_root["newrocket" + i].hitTest(this) and (_root["newrocket" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (3);
_root["newrocket" + i].gotoAndStop(2);
}
if ((_root["newcharbullet" + i].hitTest(this) and (_root["newcharbullet" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newcharbullet" + i].gotoAndStop(2);
}
if (_root["newchargrenade" + i].hitTest(this) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newchargrenade" + i].gotoAndStop(2);
}
}
i++;
}
}
Instance of Symbol 381 MovieClip in Symbol 418 MovieClip Frame 14
onClipEvent (load) {
health = 7;
}
onClipEvent (enterFrame) {
if (health <= 0) {
gotoAndStop (3);
}
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (3);
}
i = 0;
while (i < 31) {
if (_currentframe != 3) {
if (_root["newbullet" + i].hitTest(this) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (2);
health = health - 1;
}
if ((_root["newrocket" + i].hitTest(this) and (_root["newrocket" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (3);
_root["newrocket" + i].gotoAndStop(2);
}
if ((_root["newcharbullet" + i].hitTest(this) and (_root["newcharbullet" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newcharbullet" + i].gotoAndStop(2);
}
if (_root["newchargrenade" + i].hitTest(this) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newchargrenade" + i].gotoAndStop(2);
}
}
i++;
}
}
Instance of Symbol 386 MovieClip in Symbol 418 MovieClip Frame 14
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
}
Instance of Symbol 386 MovieClip in Symbol 418 MovieClip Frame 14
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
}
Symbol 418 MovieClip Frame 15
stop();
Instance of Symbol 401 MovieClip in Symbol 418 MovieClip Frame 15
onClipEvent (load) {
timer = 0;
switcher = true;
}
onClipEvent (enterFrame) {
if (_root.endfade._currentframe != 1) {
stop();
}
if ((_currentframe != 51) and (_root.endfade._currentframe == 1)) {
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (51);
}
timer++;
if ((timer > 40) and (switcher == false)) {
switcher = true;
timer = 0;
}
if ((timer > 40) and (switcher == true)) {
switcher = false;
timer = 0;
}
if (switcher == false) {
_y = (_y - 2);
}
if (switcher == true) {
_y = (_y + 2);
}
i = 0;
while (i <= 31) {
if (this.hitTest(_root["newbullet" + i]._x, _root["newbullet" + i]._y, true) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (51);
}
if (this.hitTest(_root["newrocket" + i]._x, _root["newrocket" + i]._y, true) and (_root["newrocket" + i]._currentframe == 1)) {
_root["newrocket" + i].gotoAndStop(2);
gotoAndStop (51);
}
if (this.hitTest(_root["newcharbullet" + i]._x, _root["newcharbullet" + i]._y, true) and (_root["newcharbullet" + i]._currentframe == 1)) {
_root["newcharbullet" + i].gotoAndStop(2);
gotoAndStop (51);
}
if (this.hitTest(_root["newchargrenade" + i]._x, _root["newchargrenade" + i]._y, true)) {
_root["newchargrenade" + i].gotoAndStop(2);
gotoAndStop (51);
}
i++;
}
}
}
Instance of Symbol 401 MovieClip in Symbol 418 MovieClip Frame 15
onClipEvent (load) {
timer = 0;
switcher = true;
}
onClipEvent (enterFrame) {
if (_root.endfade._currentframe != 1) {
stop();
}
if ((_currentframe != 51) and (_root.endfade._currentframe == 1)) {
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (51);
}
timer++;
if ((timer > 40) and (switcher == false)) {
switcher = true;
timer = 0;
}
if ((timer > 40) and (switcher == true)) {
switcher = false;
timer = 0;
}
if (switcher == false) {
_y = (_y - 2);
}
if (switcher == true) {
_y = (_y + 2);
}
i = 0;
while (i <= 31) {
if (this.hitTest(_root["newbullet" + i]._x, _root["newbullet" + i]._y, true) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (51);
}
if (this.hitTest(_root["newrocket" + i]._x, _root["newrocket" + i]._y, true) and (_root["newrocket" + i]._currentframe == 1)) {
_root["newrocket" + i].gotoAndStop(2);
gotoAndStop (51);
}
if (this.hitTest(_root["newcharbullet" + i]._x, _root["newcharbullet" + i]._y, true) and (_root["newcharbullet" + i]._currentframe == 1)) {
_root["newcharbullet" + i].gotoAndStop(2);
gotoAndStop (51);
}
if (this.hitTest(_root["newchargrenade" + i]._x, _root["newchargrenade" + i]._y, true)) {
_root["newchargrenade" + i].gotoAndStop(2);
gotoAndStop (51);
}
i++;
}
}
}
Symbol 418 MovieClip Frame 16
stop();
Instance of Symbol 414 MovieClip in Symbol 418 MovieClip Frame 16
onClipEvent (enterFrame) {
if (_root.char._currentframe != 5) {
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char.gravity = 0;
_root.char._y--;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
}
}
Instance of Symbol 381 MovieClip in Symbol 418 MovieClip Frame 16
onClipEvent (load) {
health = 7;
timer = 0;
switcher = true;
}
onClipEvent (enterFrame) {
if ((_currentframe != 3) and (_root.endfade._currentframe == 1)) {
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (3);
}
timer++;
if ((timer == 38) and (switcher == false)) {
switcher = true;
timer = 0;
}
if ((timer == 38) and (switcher == true)) {
switcher = false;
timer = 0;
}
if (switcher == false) {
_x = (_x + 3);
}
if (switcher == true) {
_x = (_x - 3);
}
}
if (health <= 0) {
gotoAndStop (3);
}
i = 0;
while (i < 31) {
if (_currentframe != 3) {
if (_root["newbullet" + i].hitTest(this) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (2);
health = health - 1;
}
if ((_root["newrocket" + i].hitTest(this) and (_root["newrocket" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (3);
_root["newrocket" + i].gotoAndStop(2);
}
if ((_root["newcharbullet" + i].hitTest(this) and (_root["newcharbullet" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newcharbullet" + i].gotoAndStop(2);
}
if (_root["newchargrenade" + i].hitTest(this) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newchargrenade" + i].gotoAndStop(2);
}
}
i++;
}
}
Symbol 418 MovieClip Frame 17
stop();
Instance of Symbol 417 MovieClip in Symbol 418 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.char._currentframe != 5) {
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char.gravity = 0;
_root.char._y--;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
}
}
Instance of Symbol 381 MovieClip in Symbol 418 MovieClip Frame 17
onClipEvent (load) {
health = 7;
timer = 0;
switcher = false;
}
onClipEvent (enterFrame) {
if ((_currentframe != 3) and (_root.endfade._currentframe == 1)) {
if (_root.laser.hitTest(this) or _root.flashbomb.hitTest(this)) {
gotoAndStop (3);
}
timer++;
if ((timer == 38) and (switcher == false)) {
switcher = true;
timer = 0;
}
if ((timer == 38) and (switcher == true)) {
switcher = false;
timer = 0;
}
if (switcher == false) {
_x = (_x + 3);
}
if (switcher == true) {
_x = (_x - 3);
}
}
if (health <= 0) {
gotoAndStop (3);
}
i = 0;
while (i < 31) {
if (_currentframe != 3) {
if (_root["newbullet" + i].hitTest(this) and (_root["newbullet" + i]._currentframe == 1)) {
_root["newbullet" + i].gotoAndStop(2);
gotoAndStop (2);
health = health - 1;
}
if ((_root["newrocket" + i].hitTest(this) and (_root["newrocket" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (3);
_root["newrocket" + i].gotoAndStop(2);
}
if ((_root["newcharbullet" + i].hitTest(this) and (_root["newcharbullet" + i]._currentframe == 1)) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newcharbullet" + i].gotoAndStop(2);
}
if (_root["newchargrenade" + i].hitTest(this) and (_currentframe == 1)) {
gotoAndStop (2);
health = health - 1;
_root["newchargrenade" + i].gotoAndStop(2);
}
}
i++;
}
}
Symbol 418 MovieClip Frame 18
stop();
Instance of Symbol 360 MovieClip in Symbol 418 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.char._currentframe != 5) {
while (this.hitTest(_root.char._x, _root.char._y, true)) {
_root.char.gravity = 0;
_root.char._y--;
if (_root.char._currentframe == 1) {
_root.char.gotoAndStop(2);
}
if (_root.char._currentframe == 4) {
_root.char.gotoAndStop(2);
}
}
if (Key.isDown(38) and this.hitTest(_root.char._x, _root.char._y + 3, true)) {
_root.char.gotoAndStop(4);
_root.char.gravity = -8;
}
}
}
Instance of Symbol 418 MovieClip "spawnblocks" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
if (_name != "spawnblocks") {
bob = (random(6) + 1) + _root.adder;
gotoAndStop(bob);
once = false;
}
}
onClipEvent (enterFrame) {
if ((_name != "spawnblocks") and (_root.endfade._currentframe == 1)) {
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (_y > 420) {
removeMovieClip(this);
}
_y = (_y + _root.mainspeed);
if (once == false) {
if (_currentframe == 2) {
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.g, _root.getNextHighestDepth());
_root["newenemyone" + _root.g]._x = 200;
_root["newenemyone" + _root.g]._y = -172;
_root.g = _root.g + 1;
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.g, _root.getNextHighestDepth());
_root["newenemyone" + _root.g]._x = 380;
_root["newenemyone" + _root.g]._y = -172;
_root.g = _root.g + 1;
once = true;
}
if (_currentframe == 3) {
side = random(2) + 1;
if (side == 1) {
duplicateMovieClip (_root.gun, "newgun" + _root.g, _root.getNextHighestDepth());
_root["newgun" + _root.g]._x = 210;
_root["newgun" + _root.g]._y = -150;
}
if (side == 2) {
duplicateMovieClip (_root.gun, "newgun" + _root.g, _root.getNextHighestDepth());
_root["newgun" + _root.g]._x = 360;
_root["newgun" + _root.g]._y = -150;
}
_root.g = _root.g + 1;
once = true;
}
if (_currentframe == 7) {
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.g, _root.getNextHighestDepth());
_root["newenemyone" + _root.g]._x = 120;
_root["newenemyone" + _root.g]._y = -172;
_root["newenemyone" + _root.g].gotoAndStop(3);
_root.g = _root.g + 1;
once = true;
}
if (_currentframe == 8) {
duplicateMovieClip (_root.gun, "newgun" + _root.g, _root.getNextHighestDepth());
_root["newgun" + _root.g]._x = 210;
_root["newgun" + _root.g]._y = -150;
_root.g = _root.g + 1;
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.g, _root.getNextHighestDepth());
_root["newenemyone" + _root.g]._x = 320;
_root["newenemyone" + _root.g]._y = -172;
_root["newenemyone" + _root.g].gotoAndStop(3);
_root.g = _root.g + 1;
once = true;
}
if (_currentframe == 11) {
duplicateMovieClip (_root.enemytank, "newenemytank" + _root.g, _root.getNextHighestDepth());
_root["newenemytank" + _root.g]._x = 285;
_root["newenemytank" + _root.g]._y = -180;
_root.g = _root.g + 1;
once = true;
}
if (_currentframe == 12) {
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.g, _root.getNextHighestDepth());
_root["newenemyone" + _root.g]._x = 285;
_root["newenemyone" + _root.g]._y = -172;
_root["newenemyone" + _root.g].gotoAndStop(5);
_root.g = _root.g + 1;
once = true;
}
if (_currentframe == 13) {
duplicateMovieClip (_root.gun, "newgun" + _root.g, _root.getNextHighestDepth());
_root["newgun" + _root.g]._x = 210;
_root["newgun" + _root.g]._y = -150;
_root.g = _root.g + 1;
duplicateMovieClip (_root.gun, "newgun" + _root.g, _root.getNextHighestDepth());
_root["newgun" + _root.g]._x = 360;
_root["newgun" + _root.g]._y = -150;
_root.g = _root.g + 1;
once = true;
}
if (_currentframe == 14) {
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.g, _root.getNextHighestDepth());
_root["newenemyone" + _root.g]._x = 220;
_root["newenemyone" + _root.g]._y = -172;
_root["newenemyone" + _root.g].gotoAndStop(5);
_root.g = _root.g + 1;
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.g, _root.getNextHighestDepth());
_root["newenemyone" + _root.g]._x = 350;
_root["newenemyone" + _root.g]._y = -172;
_root["newenemyone" + _root.g].gotoAndStop(5);
_root.g = _root.g + 1;
once = true;
}
if (_currentframe == 15) {
duplicateMovieClip (_root.enemytank, "newenemytank" + _root.g, _root.getNextHighestDepth());
_root["newenemytank" + _root.g]._x = 285;
_root["newenemytank" + _root.g]._y = -180;
_root.g = _root.g + 1;
once = true;
}
if (_currentframe == 16) {
duplicateMovieClip (_root.gun, "newgun" + _root.g, _root.getNextHighestDepth());
_root["newgun" + _root.g]._x = 210;
_root["newgun" + _root.g]._y = -150;
_root.g = _root.g + 1;
duplicateMovieClip (_root.enemytank, "newenemytank" + _root.g, _root.getNextHighestDepth());
_root["newenemytank" + _root.g]._x = 285;
_root["newenemytank" + _root.g]._y = -180;
_root.g = _root.g + 1;
once = true;
}
if (_currentframe == 17) {
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.g, _root.getNextHighestDepth());
_root["newenemyone" + _root.g]._x = 220;
_root["newenemyone" + _root.g]._y = -172;
_root["newenemyone" + _root.g].gotoAndStop(5);
_root.g = _root.g + 1;
duplicateMovieClip (_root.enemytank, "newenemytank" + _root.g, _root.getNextHighestDepth());
_root["newenemytank" + _root.g]._x = 285;
_root["newenemytank" + _root.g]._y = -180;
_root.g = _root.g + 1;
once = true;
}
if (_currentframe == 18) {
duplicateMovieClip (_root.gun, "newgun" + _root.g, _root.getNextHighestDepth());
_root["newgun" + _root.g]._x = 210;
_root["newgun" + _root.g]._y = -150;
_root.g = _root.g + 1;
duplicateMovieClip (_root.gun, "newgun" + _root.g, _root.getNextHighestDepth());
_root["newgun" + _root.g]._x = 360;
_root["newgun" + _root.g]._y = -150;
_root.g = _root.g + 1;
duplicateMovieClip (_root.enemytank, "newenemytank" + _root.g, _root.getNextHighestDepth());
_root["newenemytank" + _root.g]._x = 285;
_root["newenemytank" + _root.g]._y = -180;
_root.g = _root.g + 1;
once = true;
}
}
}
}
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 2
stop();
Symbol 422 MovieClip Frame 3
stop();
Symbol 423 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 21
gotoAndPlay (2);
Symbol 425 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 2
stop();
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 2
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("heliexplos", this);
someSound.start(0, 1);
}
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 2
stop();
Symbol 431 MovieClip Frame 3
stop();
Symbol 431 MovieClip Frame 4
stop();
Symbol 432 MovieClip Frame 1
stop();
Instance of Symbol 431 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) {
bob = random(4) + 1;
gotoAndStop(bob);
}
Symbol 432 MovieClip Frame 2
stop();
Symbol 436 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 2
stop();
Symbol 436 MovieClip Frame 3
stop();
Symbol 437 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 2
stop();
Symbol 437 MovieClip Frame 3
stop();
Symbol 444 MovieClip Frame 1
stop();
Instance of Symbol 445 MovieClip "egun" in Symbol 448 MovieClip Frame 1
onClipEvent (enterFrame) {
}
Instance of Symbol 445 MovieClip "egun" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
}
Symbol 451 MovieClip Frame 4
stop();
Symbol 454 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 4
stop();
Symbol 467 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 4
stop();
Symbol 477 MovieClip Frame 1
stop();
Instance of Symbol 445 MovieClip "egun" in Symbol 477 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_root.char._x - _parent._x) > (-_parent.range)) and (_root.heli._currentframe == 2)) {
Xd = _root.char._x - _parent._x;
if (_parent._xscale < 0) {
Xd = -Xd;
}
Yd = (_root.char._y - 6) - _parent._y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
if (_parent._xscale < 0) {
Xd = -Xd;
}
}
if (((_root.heli._x - _parent._x) > (-_parent.range)) and (_root.heli._currentframe == 1)) {
Xd = _root.heli._x - _parent._x;
if (_parent._xscale < 0) {
Xd = -Xd;
}
Yd = (_root.heli._y - 10) - _parent._y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
if (_parent._xscale < 0) {
Xd = -Xd;
}
}
}
Symbol 477 MovieClip Frame 2
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("scream1", this);
someSound.start(0, 1);
}
Symbol 477 MovieClip Frame 3
stop();
Instance of Symbol 454 MovieClip "egun" in Symbol 477 MovieClip Frame 3
onClipEvent (enterFrame) {
if (((_root.char._x - _parent._x) > (-_parent.range)) and (_root.heli._currentframe == 2)) {
Xd = _root.char._x - _parent._x;
if (_parent._xscale < 0) {
Xd = -Xd;
}
Yd = (_root.char._y - 6) - _parent._y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
if (_parent._xscale < 0) {
Xd = -Xd;
}
}
if (((_root.heli._x - _parent._x) > (-_parent.range)) and (_root.heli._currentframe == 1)) {
Xd = _root.heli._x - _parent._x;
if (_parent._xscale < 0) {
Xd = -Xd;
}
Yd = (_root.heli._y - 10) - _parent._y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
if (_parent._xscale < 0) {
Xd = -Xd;
}
}
}
Symbol 477 MovieClip Frame 4
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("scream2", this);
someSound.start(0, 1);
}
Symbol 477 MovieClip Frame 5
stop();
Symbol 477 MovieClip Frame 6
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("scream3", this);
someSound.start(0, 1);
}
Symbol 482 MovieClip Frame 1
stop();
Symbol 482 MovieClip Frame 2
stop();
Symbol 482 MovieClip Frame 3
stop();
Symbol 482 MovieClip Frame 4
stop();
Symbol 483 MovieClip Frame 1
stop();
Instance of Symbol 482 MovieClip in Symbol 483 MovieClip Frame 1
onClipEvent (load) {
bob = random(4) + 1;
gotoAndStop(bob);
}
Symbol 483 MovieClip Frame 2
stop();
Symbol 488 MovieClip Frame 1
stop();
Symbol 488 MovieClip Frame 2
stop();
Instance of Symbol 487 MovieClip in Symbol 488 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.endfade._currentframe != 1) {
stop();
}
}
Symbol 488 MovieClip Frame 3
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("bangbangsound", this);
someSound.start(0, 1);
}
Symbol 493 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 2
stop();
Symbol 493 MovieClip Frame 3
stop();
Symbol 493 MovieClip Frame 4
stop();
Symbol 494 MovieClip Frame 1
stop();
Instance of Symbol 493 MovieClip in Symbol 494 MovieClip Frame 1
onClipEvent (load) {
bob = random(4) + 1;
gotoAndStop(bob);
}
Symbol 494 MovieClip Frame 2
stop();
Symbol 495 MovieClip Frame 21
gotoAndPlay (2);
Symbol 498 MovieClip Frame 1
stop();
Instance of Symbol 495 MovieClip "idle" in Symbol 498 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.endfade._currentframe != 1) {
stop();
}
}
Symbol 498 MovieClip Frame 2
stop();
Symbol 503 MovieClip Frame 4
gotoAndPlay (2);
Instance of Symbol 503 MovieClip "flare" in Symbol 504 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.endfade._currentframe == 1) {
stop();
}
}
Symbol 505 MovieClip Frame 1
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("missound", this);
someSound.start(0, 1);
}
Symbol 505 MovieClip Frame 2
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("vehsound", this);
someSound.start(0, 1);
}
Instance of Symbol 266 MovieClip in Symbol 507 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.heli.hitTest(this) and (_root.heli._currentframe == 1)) and (_root.heli.shield._currentframe == 1)) {
_root.playeronehp = _root.playeronehp - 2;
}
if ((_root.char.hitTest(this) and (_root.heli._currentframe == 2)) and (_root.heli.shield._currentframe == 1)) {
_root.playeronehp = _root.playeronehp - 2;
}
}
Symbol 508 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 2
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("longexplos", this);
someSound.start(0, 1);
}
Instance of Symbol 507 MovieClip "bomb" in Symbol 508 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.endfade._currentframe != 1) {
stop();
}
}
Symbol 513 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 2
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("vehsound", this);
someSound.start(0, 1);
}
Symbol 517 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 524 MovieClip Frame 1
stop();
Instance of Symbol 515 MovieClip "shaft2" in Symbol 524 MovieClip Frame 1
onClipEvent (enterFrame) {
Xd = _root.heli._x - _parent._x;
Yd = _root.heli._y - _parent._y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) - 180);
updateAfterEvent();
}
Symbol 524 MovieClip Frame 2
stop();
Symbol 524 MovieClip Frame 3
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("bangbangsound", this);
someSound.start(0, 1);
}
Symbol 526 MovieClip Frame 1
stop();
Symbol 526 MovieClip Frame 2
stop();
Instance of Symbol 507 MovieClip "bomb" in Symbol 526 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.endfade._currentframe != 1) {
stop();
}
}
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 20
stop();
Symbol 591 MovieClip Frame 36
stop();
if ((_root.endfade._currentframe == 1) and (_root.playeronehp <= 0)) {
_root.endfade.gotoAndPlay(2);
}
Symbol 592 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 2
stop();
Symbol 592 MovieClip Frame 3
stop();
Symbol 592 MovieClip Frame 4
stop();
Symbol 592 MovieClip Frame 5
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("splatsound", this);
someSound.start(0, 1);
}
Instance of Symbol 595 MovieClip "mainhealth" in Symbol 596 MovieClip Frame 1
onClipEvent (enterFrame) {
Percent = Math.round((_root.mainhp / _root.mainmaxhp) * 100);
_xscale = Percent;
if ((_root.mainhp <= 0) and (_root.deathfade._currentframe == 1)) {
_root.deathfade.gotoAndPlay(2);
}
}
Symbol 603 MovieClip Frame 1
if (_root.sound == true) {
buzz = new Sound(this);
buzz.attachSound("buzzsound", this);
buzz.start(0, 1);
}
Symbol 607 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 60
stop();
Instance of Symbol 607 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pausedgame == true) {
gotoAndPlay (2);
}
}
Instance of Symbol 607 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pausedgame == true) {
gotoAndPlay (2);
}
}
Instance of Symbol 266 MovieClip in Symbol 611 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.heli.hitTest(this) and (_root.heli._currentframe == 1)) and (_root.heli.shield._currentframe == 1)) {
_root.playeronehp = _root.playeronehp - 2;
}
if ((_root.char.hitTest(this) and (_root.heli._currentframe == 2)) and (_root.heli.shield._currentframe == 1)) {
_root.playeronehp = _root.playeronehp - 2;
}
}
Symbol 612 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 2
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("smallbang", this);
someSound.start(0, 1);
}
Instance of Symbol 611 MovieClip "bomb" in Symbol 612 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.endfade._currentframe != 1) {
stop();
}
}
Instance of Symbol 620 MovieClip "bomb" in Symbol 621 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.endfade._currentframe != 1) {
stop();
}
}
Symbol 622 MovieClip Frame 1
stop();
Symbol 622 MovieClip Frame 2
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("smallbang", this);
someSound.start(0, 1);
}
Symbol 625 MovieClip Frame 1
stop();
Instance of Symbol 56 MovieClip "rocket" in Symbol 625 MovieClip Frame 1
onClipEvent (load) {
if (_name != "rocket") {
_y = (_root.heli._y + random(5));
dir = _root.heli.dir;
if (dir == false) {
_x = (_root.heli._x - 5);
_rotation = 0;
}
if (dir == true) {
_x = (_root.heli._x + 5);
_rotation = 180;
}
speed = 15;
ted = random(5);
yspeed = 0;
timer = 0;
once = true;
dietimer = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if ((_name != "rocket") and (_root.endfade._currentframe == 1)) {
if (_currentframe != 2) {
timer++;
if (up == true) {
_y = (_y - (_root.mainspeed + 2));
if (timer > 5) {
if (inside.flare._currentframe == 1) {
inside.flare.gotoAndPlay(2);
}
if ((_root.sound == true) and (once == true)) {
someSound = new Sound();
someSound.attachSound("launchsound", this);
someSound.start(0, 1);
once = false;
}
if (dir == true) {
_x = (_x + 10);
}
if (dir == false) {
_x = (_x - 10);
}
}
} else {
_y = (_y + (_root.mainspeed + 0.5));
if (timer > 5) {
if (inside.flare._currentframe == 1) {
inside.flare.gotoAndPlay(2);
}
if ((_root.sound == true) and (once == true)) {
someSound = new Sound();
someSound.attachSound("launchsound", this);
someSound.start(0, 1);
once = false;
}
if (dir == true) {
_x = (_x + 10);
}
if (dir == false) {
_x = (_x - 10);
}
}
}
}
}
if (dead.dead2._currentframe == 32) {
removeMovieClip(this);
}
if ((((_x > 565) or (_x < -15)) or (_y > 450)) or (_y < -50)) {
removeMovieClip(this);
}
if (_currentframe == 2) {
dietimer++;
_y = (_y + _root.mainspeed);
if (dietimer > 300) {
removeMovieClip(this);
}
}
}
Symbol 625 MovieClip Frame 2
stop();
Symbol 625 MovieClip Frame 3
stop();
Symbol 625 MovieClip Frame 4
stop();
Symbol 625 MovieClip Frame 5
stop();
Instance of Symbol 622 MovieClip "chargrenade" in Symbol 625 MovieClip Frame 5
onClipEvent (load) {
if (_name != "chargrenade") {
timer = 0;
gravity = -16;
_x = _root.heli._x;
_y = _root.heli._y;
}
}
onClipEvent (enterFrame) {
if (_root.flashbomb.hitTest(this)) {
removeMovieClip(this);
}
if (dd.bomb._currentframe == 20) {
removeMovieClip(this);
}
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if (_name != "chargrenade") {
if (_currentframe == 1) {
if (sider == false) {
_x = (_x - 5);
}
if (sider == true) {
_x = (_x + 5);
}
timer++;
_rotation = (_rotation + 5);
gravity++;
_y = (_y + gravity);
}
if ((timer > 20) and (_currentframe == 1)) {
gotoAndStop (2);
}
}
}
Symbol 625 MovieClip Frame 6
stop();
Instance of Symbol 624 MovieClip in Symbol 625 MovieClip Frame 6
onClipEvent (load) {
bob = _root.objectdepthcounter;
this.swapDepths(bob);
_root.objectdepthcounter = _root.objectdepthcounter + 1;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("heartbeatsound", this);
someSound.start(0, 1);
}
_root.mainhpbar.health = _root.mainhpbar.health - 20;
this.swapDepths(9999);
removeMovieClip(this);
}
}
Symbol 633 MovieClip Frame 1
stop();
Symbol 633 MovieClip Frame 2
stop();
Symbol 633 MovieClip Frame 3
stop();
Symbol 633 MovieClip Frame 4
stop();
Symbol 633 MovieClip Frame 5
stop();
Symbol 633 MovieClip Frame 6
stop();
Symbol 640 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 250
duplicateMovieClip (_root.upgrade, "newupgrade" + _root.g, _root.getNextHighestDepth());
_root.g = _root.g + 1;
gotoAndPlay (2);
Symbol 663 MovieClip Frame 1
stop();
Symbol 663 MovieClip Frame 2
stop();
Instance of Symbol 592 MovieClip "char" in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
comehere = false;
scale = _xscale;
gravity = 0;
timer = 0;
dir = false;
}
onClipEvent (enterFrame) {
if (_root.playeronehp <= 0) {
gotoAndStop (5);
}
if ((comehere == true) and (_currentframe != 5)) {
e = 52;
while (e <= 102) {
if (hit.hitTest(_root["newebullet" + e]._x, _root["newebullet" + e]._y, true) and (_root["newebullet" + e]._currentframe == 1)) {
_root["newebullet" + e].inside.gotoAndStop(2);
_root.playeronehp = _root.playeronehp - 5;
}
if (hit.hitTest(_root["neweturretbullet" + e]._x, _root["neweturretbullet" + e]._y, true) and (_root["neweturretbullet" + e]._currentframe == 1)) {
_root["neweturretbullet" + e].gotoAndStop(2);
_root.playeronehp = _root.playeronehp - 5;
}
if (hit.hitTest(_root["newehelibullet" + e]._x, _root["newehelibullet" + e]._y, true) and (_root["newehelibullet" + e]._currentframe == 1)) {
_root["newehelibullet" + e].gotoAndStop(2);
_root.playeronehp = _root.playeronehp - 5;
}
e++;
}
timer--;
if ((Key.isDown(65) and (timer <= 0)) and (idle._currentframe != 1)) {
duplicateMovieClip (_root.charbullet, "newcharbullet" + _root.i, _root.getNextHighestDepth());
_root["newcharbullet" + _root.i]._x = _x;
_root["newcharbullet" + _root.i]._y = _y;
timer = 10;
_root.i = _root.i + 1;
flare.gotoAndPlay(1);
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("gunsound", this);
someSound.start(0, 1);
}
}
if (_currentframe == 1) {
_y = (_y + gravity);
gravity++;
if (gravity > 2) {
gravity = 2;
}
}
if (_currentframe == 4) {
_y = (_y + gravity);
gravity++;
if (Key.isDown(39)) {
_x = (_x + 5);
_xscale = scale;
dir = false;
}
if (Key.isDown(37)) {
_x = (_x - 5);
_xscale = (-scale);
dir = true;
}
}
if (_currentframe == 1) {
if (Key.isDown(39)) {
_x = (_x + 5);
dir = false;
_xscale = scale;
}
if (Key.isDown(37)) {
_x = (_x - 5);
dir = true;
_xscale = (-scale);
}
}
if ((_currentframe != 1) and (_currentframe != 4)) {
_y = (_y + gravity);
gravity++;
_y = (_y + 2);
if ((!Key.isDown(39)) and (!Key.isDown(37))) {
gotoAndStop (2);
}
if (Key.isDown(39)) {
_x = (_x + 5);
_xscale = scale;
gotoAndStop (3);
dir = false;
}
if (Key.isDown(37)) {
_x = (_x - 5);
_xscale = (-scale);
gotoAndStop (3);
dir = true;
}
}
}
}
Instance of Symbol 515 MovieClip "shaft2" in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
Xd = _root.heli._x - _parent._x;
Yd = _root.heli._y - _parent._y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) - 180);
updateAfterEvent();
}
Instance of Symbol 624 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
bob = _root.objectdepthcounter;
this.swapDepths(bob);
_root.objectdepthcounter = _root.objectdepthcounter + 1;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("heartbeatsound", this);
someSound.start(0, 1);
}
_root.mainhpbar.health = _root.mainhpbar.health - 20;
this.swapDepths(9999);
removeMovieClip(this);
}
}
Instance of Symbol 56 MovieClip "rocket" in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
if (_name != "rocket") {
_y = (_root.heli._y + random(5));
dir = _root.heli.dir;
if (dir == false) {
_x = (_root.heli._x - 5);
_rotation = 0;
}
if (dir == true) {
_x = (_root.heli._x + 5);
_rotation = 180;
}
speed = 15;
ted = random(5);
yspeed = 0;
timer = 0;
once = true;
dietimer = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pausedgame == true) {
removeMovieClip(this);
}
if ((_name != "rocket") and (_root.endfade._currentframe == 1)) {
if (_currentframe != 2) {
timer++;
if (up == true) {
_y = (_y - (_root.mainspeed + 2));
if (timer > 5) {
if (inside.flare._currentframe == 1) {
inside.flare.gotoAndPlay(2);
}
if ((_root.sound == true) and (once == true)) {
someSound = new Sound();
someSound.attachSound("launchsound", this);
someSound.start(0, 1);
once = false;
}
if (dir == true) {
_x = (_x + 10);
}
if (dir == false) {
_x = (_x - 10);
}
}
} else {
_y = (_y + (_root.mainspeed + 0.5));
if (timer > 5) {
if (inside.flare._currentframe == 1) {
inside.flare.gotoAndPlay(2);
}
if ((_root.sound == true) and (once == true)) {
someSound = new Sound();
someSound.attachSound("launchsound", this);
someSound.start(0, 1);
once = false;
}
if (dir == true) {
_x = (_x + 10);
}
if (dir == false) {
_x = (_x - 10);
}
}
}
}
}
if (dead.dead2._currentframe == 32) {
removeMovieClip(this);
}
if ((((_x > 565) or (_x < -15)) or (_y > 450)) or (_y < -50)) {
removeMovieClip(this);
}
if (_currentframe == 2) {
dietimer++;
_y = (_y + _root.mainspeed);
if (dietimer > 300) {
removeMovieClip(this);
}
}
}
Symbol 694 MovieClip Frame 1
stop();
_root.music = true;
Symbol 694 MovieClip Frame 2
stop();
_root.music = false;
stopAllSounds();
Symbol 699 MovieClip Frame 34
stop();
Symbol 706 MovieClip Frame 1
stop();
Symbol 706 MovieClip Frame 20
stop();
if (_root.feet > highfeet) {
highfeet = _root.feet;
}
Symbol 706 MovieClip Frame 21
_root.resetgame();
Symbol 707 MovieClip Frame 1
stop();
Symbol 707 MovieClip Frame 10
_root.heli.timer = 0;