Frame 1
stop();
THIS.onEnterFrame = function () {
loading = _root.getBytesLoaded();
total = _root.getBytesTotal();
percent = percent - ((percent - ((loading / total) * 100)) * 0.25);
per = int(percent);
percentage = per + "%";
if (percent > 99) {
_root.gotoAndStop("start");
}
};
Frame 9
stop();
Frame 16
function LOCATION() {
if (xpos > 320) {
xposdiff = Math.round(xpos - shooter._x);
yposdiff = Math.round(shooter._y - ypos);
direction = "positive";
} else if (xpos < 320) {
xposdiff = Math.round(shooter._x - xpos);
yposdiff = Math.round(shooter._y - ypos);
direction = "negative";
} else if (xpos == 320) {
xposdiff = 0;
yposdiff = Math.round(shooter._y - ypos);
}
}
function RANDOMNUMBER(A, B) {
return((Math.random() * A) + B);
}
function BUILDINGS1() {
i = 1;
while (i < 8) {
setProperty(buildingarray[i], _x , 0 + (i * 40));
setProperty(buildingarray[i], _y , 440);
XA = _root.RANDOMNUMBER(2, 1);
random = Math.round(xa);
if (random == 1) {
buildingarray[i].gotoAndStop("B1");
} else if (random == 2) {
buildingarray[i].gotoAndStop("B2");
} else if (random == 3) {
buildingarray[i].gotoAndStop("B3");
}
i++;
}
}
function BUILDINGS2() {
i = 8;
while (i < 15) {
setProperty(buildingarray[i], _x , (300 + (i * 40)) - 260);
setProperty(buildingarray[i], _y , 440);
XB = _root.RANDOMNUMBER(2, 1);
random = Math.round(xb);
if (random == 1) {
buildingarray[i].gotoAndStop("B1");
} else if (random == 2) {
buildingarray[i].gotoAndStop("B2");
} else if (random == 3) {
buildingarray[i].gotoAndStop("B3");
}
i++;
}
}
stop();
Mouse.show();
_root._focusRect = false;
SAVEINFO = sharedobject.getlocal("HELLFIRE", "/");
_root.highscore1 = SAVEINFO.data.highscore1;
_root.highscore2 = SAVEINFO.data.highscore2;
_root.highscore3 = SAVEINFO.data.highscore3;
_root.name1 = SAVEINFO.data.name1;
_root.name2 = SAVEINFO.data.name2;
_root.name3 = SAVEINFO.data.name3;
_root.gameover.removeMovieClip();
_root.cloud1.removeMovieClip();
_root.cloud2.removeMovieClip();
_root.MOUNTAIN.removeMovieClip();
raidno = 0;
bombtotal = 0;
missiletotal = 0;
totalscore = 0;
_root.LIGHTS.swapDepths(2750);
_root.SCOREBOARD.swapDepths(9995);
_root.BOMBTOT.swapDepths(9996);
_root.HINGE.swapDepths(9998);
_root.FRAME.swapDepths(100000);
_root.attachMovie("targetid", "target", 9999);
setProperty("target", _x , 320);
setProperty("target", _y , 240);
_root.attachMovie("shooterid", "shooter", 9997);
setProperty("shooter", _x , 320);
setProperty("shooter", _y , 360);
degrees = 45;
_root.attachMovie("darknessid", "darkness", 2500);
setProperty("darkness", _x , 320);
setProperty("darkness", _y , 240);
_root.attachMovie("darknessid2", "darkness2", 0);
setProperty("darkness2", _x , 320);
setProperty("darkness2", _y , 240);
_root.createEmptyMovieClip("explode", 905);
explodesound = new Sound(explode);
explodesound.attachSound("explodewavid");
_root.createEmptyMovieClip("missile", 950);
MISSILESOUND = new Sound(missile);
MISSILESOUND.attachSound("missilewavid");
_root.createEmptyMovieClip("airraid", 3000);
RAIDSOUND = new Sound(airraid);
RAIDSOUND.attachSound("airraidwavid");
_root.createEmptyMovieClip("whistle", 3050);
WHISTLESOUND = new Sound(whistle);
WHISTLESOUND.attachSound("dropbombwavid");
_root.createEmptyMovieClip("CRASH", 3100);
CRASHSOUND = new Sound(CRASH);
CRASHSOUND.attachSound("crashwavid");
_root.createEmptyMovieClip("COPTER", 3200);
COPTERSOUND = new Sound(COPTER);
COPTERSOUND.attachSound("heliwavid");
_root.DETECT.onPress = function () {
_root.gotoAndStop("PLAY");
};
_root.onEnterFrame = function () {
xpos = 320;
ypos = 240;
degrees = 45;
};
buildingarray = new Array();
i = 1;
while (i < 15) {
_root.attachMovie("BUILDINGID", "BUILDING", 1);
duplicateMovieClip (_root.BUILDING, "building" + i, i + 2500);
buildingarray[i] = _root["building" + i];
BUILDING.removeMovieClip();
i++;
}
bombarray = new Array();
bombarray[1] = 40;
bombarray[2] = 80;
bombarray[3] = 120;
bombarray[4] = 160;
bombarray[5] = 200;
bombarray[6] = 240;
bombarray[7] = 280;
bombarray[8] = 360;
bombarray[9] = 400;
bombarray[10] = 440;
bombarray[11] = 480;
bombarray[12] = 520;
bombarray[13] = 560;
bombarray[14] = 600;
droparray = new Array();
droparray[1] = false;
droparray[2] = false;
droparray[3] = false;
droparray[4] = false;
droparray[5] = false;
droparray[6] = false;
droparray[7] = false;
droparray[8] = false;
droparray[9] = false;
droparray[10] = false;
droparray[11] = false;
droparray[12] = false;
droparray[13] = false;
droparray[14] = false;
Frame 22
function READYTOFIRE() {
if ((travelbullet == false) && (_root.TARGET.fire == true)) {
LOCATION();
degreelock = degrees;
FIREBULLET();
}
}
function FIREBULLET() {
if (((_root.missiletotal > 0) && (_root.bombsdead > 0)) && (_root.buildtotal > 0)) {
_root.attachMovie("bulletid", "bullet", 15000);
travelbullet = true;
with (bullet) {
_x = _root.shooter._x;
_y = _root.shooter._y;
_visible = false;
_rotation = _root.degreelock - 90;
}
_root.shooter.gotoAndPlay("EMPTY");
_root.missiletotal = _root.missiletotal - 1;
}
}
function SCORECALC() {
if (_root.bombsdead > 1) {
_root.bombsdead = _root.bombsdead - 1;
} else {
_root.bombsdead = 0;
_root.attachMovie("SCOREENDID", "SCOREEND", 9990);
setProperty("SCOREEND", _x , 320);
setProperty("SCOREEND", _y , 220);
}
}
function ALLBUILDINGSDEAD() {
if (_root.buildtotal > 1) {
_root.buildtotal = _root.buildtotal - 1;
} else {
_root.buildtotal = 0;
_root.attachMovie("GAMEOVERID", "GAMEOVER", 9990);
setProperty("GAMEOVER", _x , 320);
setProperty("GAMEOVER", _y , 220);
}
}
function LOCATION() {
if (xpos > 320) {
direction = "positive";
xposdiff = Math.round(xpos - shooter._x);
yposdiff = Math.round(shooter._y - ypos);
} else if (xpos < 320) {
direction = "negative";
xposdiff = Math.round(shooter._x - xpos);
yposdiff = Math.round(shooter._y - ypos);
} else if (xpos == 320) {
xposdiff = 0;
yposdiff = Math.round(shooter._y - ypos);
}
}
function AIM() {
if ((yposdiff > xposdiff) && (direction == "positive")) {
fractiony = xposdiff / yposdiff;
yspeed = speed;
xspeed = fractiony * speed;
} else if ((xposdiff > yposdiff) && (direction == "positive")) {
fractionx = yposdiff / xposdiff;
xspeed = speed;
yspeed = fractionx * speed;
} else if ((xposdiff == yposdiff) && (direction == "positive")) {
fractionx = yposdiff / xposdiff;
xspeed = speed;
yspeed = fractionx * speed;
} else if ((yposdiff > xposdiff) && (direction == "negative")) {
fractiony = xposdiff / yposdiff;
yspeed = speed;
xspeed = fractiony * (-speed);
} else if ((xposdiff > yposdiff) && (direction == "negative")) {
fractionx = yposdiff / xposdiff;
xspeed = -speed;
yspeed = fractionx * speed;
} else if ((xposdiff == yposdiff) && (direction == "negative")) {
} else if (xposdiff == 0) {
fractionx = yposdiff / xposdiff;
xspeed = 0;
yspeed = 20;
}
}
function BUILDINGS1() {
i = 1;
while (i < 8) {
setProperty(_root.buildingarray[i], _x , 0 + (i * 40));
setProperty(_root.buildingarray[i], _y , 440);
XA = _root.RANDOMNUMBER(2, 1);
random = Math.round(xa);
if (random == 1) {
_root.buildingarray[i].gotoAndStop("B1");
} else if (random == 2) {
_root.buildingarray[i].gotoAndStop("B2");
} else if (random == 3) {
_root.buildingarray[i].gotoAndStop("B3");
}
i++;
}
}
function BUILDINGS2() {
i = 8;
while (i < 15) {
setProperty(_root.buildingarray[i], _x , (300 + (i * 40)) - 260);
setProperty(_root.buildingarray[i], _y , 440);
XB = _root.RANDOMNUMBER(2, 1);
random = Math.round(xb);
if (random == 1) {
_root.buildingarray[i].gotoAndStop("B1");
} else if (random == 2) {
_root.buildingarray[i].gotoAndStop("B2");
} else if (random == 3) {
_root.buildingarray[i].gotoAndStop("B3");
}
i++;
}
}
function BOMBDROP() {
if (((timer == dropbombat) && (bombtotal > 0)) && (_root.bombsonscreen < 2)) {
X = _root.RANDOMNUMBER(13, 1);
_root.dropzone = Math.round(x);
DROP();
} else if (timer > dropbombat) {
timer = 0;
}
}
function DROP() {
if (_root.droparray[_root.dropzone] == false) {
_root.droparray[_root.dropzone] = true;
_root.attachMovie("bombid", "bomb" + dropzone, dropzone + 500);
setProperty("bomb" + dropzone, _x , _root.bombarray[dropzone]);
_root.bombtotal = _root.bombtotal - 1;
} else if (_root.droparray[_root.dropzone] == true) {
_root.timer = _root.dropbombat - 1;
}
}
function CLOUDSETUP() {
_root.attachMovie("CLOUDID1", "CLOUD1", 300);
_root.attachMovie("CLOUDID2", "CLOUD2", 700);
i = 1;
while (i < 3) {
x = _root.RANDOMNUMBER(140, 260);
CLOUDX = Math.round(x);
setProperty("_root.CLOUD" + i, _x , cloudx);
y = _root.RANDOMNUMBER(20, 195);
CLOUDY = Math.round(Y);
setProperty("_root.CLOUD" + i, _y , cloudy);
i++;
}
}
function HELICOPTER() {
Y = _root.RANDOMNUMBER(30, 70);
HEIGHT = Math.round(Y);
X = _root.RANDOMNUMBER(1, 1);
HORIZ = Math.round(X);
Z = _root.RANDOMNUMBER(100, 701);
random = Math.round(z);
if ((((_root.buildtotal < 7) && (_root.buildtotal > 0)) && (HORIZ == 1)) && (_root.heli == false)) {
_root.attachMovie("heliid", ["heli" + random], random);
_root["heli" + random].gotoAndStop("L2R");
setProperty(["heli" + random], _y , HEIGHT);
setProperty(["heli" + random], _x , -30);
} else if ((((_root.buildtotal < 7) && (_root.buildtotal > 0)) && (HORIZ == 2)) && (_root.heli == false)) {
_root.attachMovie("heliid", ["heli" + random], random);
_root["heli" + random].gotoAndStop("R2L");
setProperty(["heli" + random], _y , HEIGHT);
setProperty(["heli" + random], _x , 670);
}
}
stop();
_root.bombsonscreen = 0;
speed = 20;
raidno = raidno + 1;
bombtotal = 7 + (raidno * 7);
bombsdead = bombtotal;
bombshot = 0;
bombpoints = 5;
missiletotal = (7 + (raidno * 7)) + 7;
missilescore = 10;
buildtotal = 14;
buildscore = 50;
bombspeed = 2.9 + (raidno * 0.1);
travelbullet = false;
timer = -20;
dropbombat = 14;
shooterisdead = false;
totalscore = totalscore;
_root.heli = false;
_root.helibombno = 0;
whydie = 1;
_root.DARKNESS.nextFrame();
_root.DARKNESS2.nextFrame();
_root.MOUNTAIN.swapDepths(499);
_root.LIGHTS.swapDepths(2550);
CLOUDSETUP();
RAIDSOUND.start();
_root.DETECT.onPress = function () {
if (_root.shooterisdead == false) {
READYTOFIRE();
}
};
BUILDINGS1();
BUILDINGS2();
Mouse.hide();
_root.TARGET.startDrag(true, 20, 20, 620, 460);
_root.onEnterFrame = function () {
xpos = Math.round(_xmouse);
ypos = Math.round(_ymouse);
angle = Math.atan2(shooter._y - ypos, shooter._x - xpos);
degrees = (angle * 180) / Math.PI;
timer = timer + 1;
missilescoretotal = missiletotal * missilescore;
buildscoretotal = buildtotal * buildscore;
totalbonus = buildscoretotal + missilescoretotal;
BOMBDROP();
};
Frame 29
_root.SCOREEND.removeMovieClip();
i = 1;
while (i < 15) {
_root.droparray[i] = false;
i++;
}
gotoAndStop (22);
Symbol 24 MovieClip [shooterid] Frame 1
stop();
_root.SHOOTERISDEAD = false;
this.onEnterFrame = function () {
setProperty(this, _rotation , _root.degrees - 90);
};
Symbol 24 MovieClip [shooterid] Frame 10
stop();
_root.SHOOTERISDEAD = false;
Symbol 24 MovieClip [shooterid] Frame 20
_root.SHOOTERISDEAD = true;
i = 1;
while (i < 15) {
_root.droparray[i] = true;
stopAllSounds();
_root.explodesound.setVolume(50);
_root.explodesound.setPan(0);
_root.explodesound.start();
i++;
}
Symbol 24 MovieClip [shooterid] Frame 29
stop();
_root.buildtotal = 0;
_root.whydie = 2;
_root.ALLBUILDINGSDEAD();
this.removeMovieClip();
Symbol 32 MovieClip [DARKNESSID] Frame 1
stop();
Symbol 32 MovieClip [DARKNESSID] Frame 4
_root.LIGHTS.gotoAndStop("on");
Symbol 32 MovieClip [DARKNESSID] Frame 5
_root.LIGHTS.gotoAndStop("on");
Symbol 32 MovieClip [DARKNESSID] Frame 6
_root.LIGHTS.gotoAndStop("on");
Symbol 32 MovieClip [DARKNESSID] Frame 7
_root.LIGHTS.gotoAndStop("on");
Symbol 32 MovieClip [DARKNESSID] Frame 8
_root.LIGHTS.gotoAndStop("on");
Symbol 32 MovieClip [DARKNESSID] Frame 9
_root.LIGHTS.gotoAndStop("on");
Symbol 32 MovieClip [DARKNESSID] Frame 10
_root.LIGHTS.gotoAndStop("on");
Symbol 32 MovieClip [DARKNESSID] Frame 12
gotoAndStop (1);
Symbol 36 MovieClip [TARGETID] Frame 1
stop();
this.onEnterFrame = function () {
if (((_root.travelbullet == false) && (_root.degrees >= 0)) && (_root.DETECTAREA.hitTest(this._x, this._y, true) == false)) {
this.gotoAndStop("yes");
fire = true;
} else if (((_root.travelbullet == true) && (_root.degrees >= 0)) && (_root.DETECTAREA.hitTest(this._x, this._y, true) == false)) {
this.gotoAndStop("no");
fire = false;
} else if ((_root.degrees < 0) || (_root.DETECTAREA.hitTest(this._x, this._y, true) == true)) {
this.gotoAndStop("nofire");
fire = false;
}
};
Symbol 85 MovieClip [GAMEOVERID] Frame 22
stop();
setProperty(builddead, _visible , false);
setProperty(itsahighscore, _visible , false);
setProperty(samdead, _visible , false);
setProperty(yourname, _visible , false);
setProperty(restartit, _visible , false);
setProperty(saveit, _visible , false);
this._focusRect = false;
this.onEnterFrame = function () {
_root.target.gotoAndStop("yes");
_root.nameentry = _root.nameentry.toUpperCase();
if (rank == 1) {
_root.name1 = _root.nameentry;
} else if (rank == 2) {
_root.name2 = _root.nameentry;
} else if (rank == 3) {
_root.name3 = _root.nameentry;
}
if (_root.whydie == 1) {
setProperty(builddead, _visible , true);
} else if (_root.whydie == 2) {
setProperty(samdead, _visible , true);
}
if (_root.totalscore >= _root.highscore3) {
setProperty(itsahighscore, _visible , true);
setProperty(yourname, _visible , true);
setProperty(saveit, _visible , true);
}
if (_root.totalscore < _root.highscore3) {
setProperty(restartit, _visible , true);
}
if (Key.isDown(13)) {
_root.SAVEINFO.data.highscore1 = _root.highscore1;
_root.SAVEINFO.data.highscore2 = _root.highscore2;
_root.SAVEINFO.data.highscore3 = _root.highscore3;
_root.SAVEINFO.data.name1 = _root.name1;
_root.SAVEINFO.data.name2 = _root.name2;
_root.SAVEINFO.data.name3 = _root.name3;
_root.SAVEINFO.flush();
stopAllSounds();
_root.gotoAndStop("INTRO");
}
};
if (_root.totalscore >= _root.highscore1) {
rank = 1;
_root.highscore3 = _root.highscore2;
_root.highscore2 = _root.highscore1;
_root.highscore1 = _root.totalscore;
_root.name3 = _root.name2;
_root.name2 = _root.name1;
_root.nameentry = "";
Selection.setFocus(yourname);
} else if ((_root.totalscore >= _root.highscore2) && (_root.totalscore < _root.highscore1)) {
rank = 2;
_root.highscore3 = _root.highscore2;
_root.highscore2 = _root.totalscore;
_root.name3 = _root.name2;
_root.nameentry = "";
Selection.setFocus(yourname);
} else if ((_root.totalscore >= _root.highscore3) && (_root.totalscore < _root.highscore2)) {
rank = 3;
_root.highscore3 = _root.totalscore;
_root.nameentry = "";
Selection.setFocus(yourname);
}
saveit.onPress = function () {
_root.SAVEINFO.data.highscore1 = _root.highscore1;
_root.SAVEINFO.data.highscore2 = _root.highscore2;
_root.SAVEINFO.data.highscore3 = _root.highscore3;
_root.SAVEINFO.data.name1 = _root.name1;
_root.SAVEINFO.data.name2 = _root.name2;
_root.SAVEINFO.data.name3 = _root.name3;
_root.SAVEINFO.flush();
stopAllSounds();
_root.gotoAndStop("INTRO");
};
restartit.onPress = function () {
stopAllSounds();
_root.gotoAndStop("INTRO");
};
Symbol 98 MovieClip [BUILDINGID] Frame 1
stop();
Symbol 98 MovieClip [BUILDINGID] Frame 5
_root.crashsound.start();
_root.crashsound.setVolume(75);
Symbol 98 MovieClip [BUILDINGID] Frame 10
stop();
Symbol 98 MovieClip [BUILDINGID] Frame 18
_root.crashsound.start();
_root.crashsound.setVolume(50);
Symbol 98 MovieClip [BUILDINGID] Frame 23
stop();
Symbol 98 MovieClip [BUILDINGID] Frame 31
_root.crashsound.start();
_root.crashsound.setVolume(25);
Symbol 98 MovieClip [BUILDINGID] Frame 36
stop();
Symbol 104 MovieClip [bulletid] Frame 1
_root.AIM();
this.onEnterFrame = function () {
if ((((this._x > -10) && (this._x < 650)) && (this._y > -10)) && (_root.shooterisdead == false)) {
setProperty(this, _x , this._x + _root.xspeed);
setProperty(this, _y , this._y - _root.yspeed);
} else if (_root.shooterisdead == false) {
_root.shooter.gotoAndStop("FULL");
_root.travelbullet = false;
this.removeMovieClip();
} else if (_root.shooterisdead == true) {
this.removeMovieClip();
}
};
Symbol 104 MovieClip [bulletid] Frame 2
x = _root.RANDOMNUMBER(25, 75);
RANDOMPAN = Math.round(x);
y = _root.RANDOMNUMBER(1, 1);
POSNEG = Math.round(y);
if (POSNEG == 1) {
RANDOMPAN = RANDOMPAN;
} else if (POSNEG == 2) {
RANDOMPAN = -RANDOMPAN;
}
_root.missilesound.setVolume(RANDOMPAN);
_root.missilesound.setPan(RANDOMPAN);
_root.MISSILESOUND.stop();
_root.missilesound.start();
setProperty(bullet, _visible , true);
Symbol 104 MovieClip [bulletid] Frame 8
stop();
Symbol 108 MovieClip [DARKNESSID2] Frame 1
stop();
Symbol 108 MovieClip [DARKNESSID2] Frame 12
gotoAndStop (1);
Symbol 120 MovieClip [BOMBID] Frame 1
stop();
_root.HELICOPTER();
_root.bombsonscreen = _root.bombsonscreen + 1;
x = _root.RANDOMNUMBER(25);
RANDOMPAN = Math.round(x);
y = _root.RANDOMNUMBER(1, 1);
POSNEG = Math.round(y);
if (POSNEG == 1) {
RANDOMPAN = RANDOMPAN;
} else if (POSNEG == 2) {
RANDOMPAN = -RANDOMPAN;
}
_root.whistlesound.setVolume(RANDOMPAN);
_root.whistlesound.setPan(RANDOMPAN);
_root.whistlesound.start();
bombno = _root.dropzone;
this.onEnterFrame = function () {
setProperty(this, _y , this._y + _root.bombspeed);
if (this.hitTest(_root.bullet._x, _root.bullet._y, true) == true) {
_root.bombshot = _root.bombshot + 1;
_root.bombspeed = _root.bombspeed + 0.1;
this.gotoAndPlay("deadbomb");
}
if (this.hitTest(_root["building" + bombno]) == true) {
_root.droparray[bombno] = true;
setProperty(this, _y , this._y);
this.gotoAndPlay("deadbuild");
_root.dropbombat = _root.dropbombat - 1;
}
if (_root.shooterisdead == true) {
this.removeMovieClip();
}
};
Symbol 120 MovieClip [BOMBID] Frame 10
x = _root.RANDOMNUMBER(75, 25);
RANDOMPAN = Math.round(x);
y = _root.RANDOMNUMBER(1, 1);
POSNEG = Math.round(y);
if (POSNEG == 1) {
RANDOMPAN = RANDOMPAN;
} else if (POSNEG == 2) {
RANDOMPAN = -RANDOMPAN;
}
_root.missilesound.stop();
_root.explodesound.setVolume(RANDOMPAN);
_root.explodesound.setPan(RANDOMPAN);
_root.explodesound.start();
if (_root.shooterisdead == false) {
_root.shooter.gotoAndStop("FULL");
}
_root.travelbullet = false;
_root.bullet.removeMovieClip();
this.onEnterFrame = function () {
setProperty(this, _y , this._y);
};
Symbol 120 MovieClip [BOMBID] Frame 11
this.swapDepths(3000 + BOMBNO);
Symbol 120 MovieClip [BOMBID] Frame 16
_root.bombsonscreen = _root.bombsonscreen - 1;
_root.droparray[bombno] = false;
_root.SCORECALC();
_root.totalscore = _root.totalscore + _root.bombpoints;
this.removeMovieClip();
Symbol 120 MovieClip [BOMBID] Frame 24
_root.bombsonscreen = _root.bombsonscreen - 1;
if (_root.shooterisdead == false) {
_root.shooter.gotoAndStop("FULL");
}
_root.SCORECALC();
_root["building" + bombno].play();
_root.ALLBUILDINGSDEAD();
this.removeMovieClip();
Symbol 123 MovieClip [BOMBHELIID] Frame 1
stop();
x = _root.RANDOMNUMBER(25);
RANDOMPAN = Math.round(x);
y = _root.RANDOMNUMBER(1, 1);
POSNEG = Math.round(y);
if (POSNEG == 1) {
RANDOMPAN = RANDOMPAN;
} else if (POSNEG == 2) {
RANDOMPAN = -RANDOMPAN;
}
_root.whistlesound.setVolume(RANDOMPAN);
_root.whistlesound.setPan(RANDOMPAN);
_root.whistlesound.start();
this.onEnterFrame = function () {
if (((this.hitTest(_root.shooter) == false) && (this.hitTest(_root.bullet._x, _root.bullet._y, true) == false)) && (_root.buildtotal >= 1)) {
setProperty(this, _y , this._y + 2);
} else if ((this.hitTest(_root.bullet._x, _root.bullet._y, true) == false) && (this.hitTest(_root.shooter) == true)) {
_root.shooter.gotoAndPlay("dead");
this.removeMovieClip();
} else if (this.hitTest(_root.bullet._x, _root.bullet._y, true) == true) {
gotoAndPlay (10);
} else if (_root.buildtotal == 0) {
this.removeMovieClip();
}
if (_root.bombsdead == 0) {
this.removeMovieClip();
}
};
Symbol 123 MovieClip [BOMBHELIID] Frame 10
x = _root.RANDOMNUMBER(75, 25);
RANDOMPAN = Math.round(x);
y = _root.RANDOMNUMBER(1, 1);
POSNEG = Math.round(y);
if (POSNEG == 1) {
RANDOMPAN = RANDOMPAN;
} else if (POSNEG == 2) {
RANDOMPAN = -RANDOMPAN;
}
_root.missilesound.stop();
_root.explodesound.setVolume(RANDOMPAN);
_root.explodesound.setPan(RANDOMPAN);
_root.explodesound.start();
if (_root.shooterisdead == false) {
_root.shooter.gotoAndStop("FULL");
}
_root.travelbullet = false;
_root.bullet.removeMovieClip();
this.onEnterFrame = function () {
setProperty(this, _y , this._y);
};
Symbol 123 MovieClip [BOMBHELIID] Frame 11
this.swapDepths(3000 + BOMBNO);
Symbol 123 MovieClip [BOMBHELIID] Frame 16
_root.totalscore = _root.totalscore + 20;
this.removeMovieClip();
Symbol 157 MovieClip [SCOREENDID] Frame 22
stop();
_root.target.gotoAndStop("yes");
_root.totalscore = _root.totalscore + _root.totalbonus;
_root.DETECT.onPress = function () {
stopAllSounds();
_root.gotoAndStop("LEVELUP");
};
this.onEnterFrame = function () {
_root.target.gotoAndStop("yes");
};
Symbol 175 MovieClip [HELIID] Frame 1
_root.coptersound.stop();
_root.coptersound.start(0, 2);
_root.coptersound.setPan(50);
_root.coptersound.setVolume(15);
_root.heli = true;
_root.helibombno = _root.helibombno + 1;
helino = _root.helibombno;
height = 0.5;
this.onEnterFrame = function () {
if ((((((this._x > -25) && (this._x != 320)) && (_root.buildtotal > 0)) && (_root.bombsdead > 0)) && (this.hitTest(_root.bullet._x, _root.bullet._y, true) == false)) && (_root.shooterisdead == false)) {
setProperty(this, _x , this._x - 5);
setProperty(this, _y , this._y + height);
} else if (((((this._x == 320) && (_root.buildtotal > 0)) && (_root.bombsdead > 0)) && (this.hitTest(_root.bullet._x, _root.bullet._y, true) == false)) && (_root.shooterisdead == false)) {
_root.attachMovie("bombheliid", "helibomb" + helino, 11500 + helino);
setProperty(_root["helibomb" + helino], _x , 320);
setProperty(_root["helibomb" + helino], _y , this._y);
setProperty(this, _x , this._x - 10);
height = 2.5;
} else if (this.hitTest(_root.bullet._x, _root.bullet._y, true) == true) {
_root.heli = false;
gotoAndPlay (20);
} else if (_root.shooterisdead == true) {
_root.heli = false;
this.removeMovieClip();
} else {
_root.heli = false;
this.removeMovieClip();
}
};
Symbol 175 MovieClip [HELIID] Frame 10
_root.coptersound.stop();
_root.coptersound.start(0, 2);
_root.coptersound.setPan(-50);
_root.coptersound.setVolume(15);
_root.heli = true;
_root.helibombno = _root.helibombno + 1;
helino = _root.helibombno;
height = 0.25;
this.onEnterFrame = function () {
if (((((this._x < 665) && (this._x != 320)) && (_root.buildtotal > 0)) && (_root.bombsdead > 0)) && (this.hitTest(_root.bullet._x, _root.bullet._y, true) == false)) {
setProperty(this, _x , this._x + 5);
setProperty(this, _y , this._y + height);
} else if ((((this._x == 320) && (_root.buildtotal > 0)) && (_root.bombsdead > 0)) && (this.hitTest(_root.bullet._x, _root.bullet._y, true) == false)) {
_root.attachMovie("bombheliid", "helibomb" + helino, 11500 + helino);
setProperty(_root["helibomb" + helino], _x , 320);
setProperty(_root["helibomb" + helino], _y , this._y);
setProperty(this, _x , this._x + 10);
height = 2.5;
} else if (this.hitTest(_root.bullet._x, _root.bullet._y, true) == true) {
_root.heli = false;
gotoAndPlay (20);
} else {
_root.heli = false;
this.removeMovieClip();
}
};
Symbol 175 MovieClip [HELIID] Frame 20
x = _root.RANDOMNUMBER(75, 25);
RANDOMPAN = Math.round(x);
y = _root.RANDOMNUMBER(1, 1);
POSNEG = Math.round(y);
if (POSNEG == 1) {
RANDOMPAN = RANDOMPAN;
} else if (POSNEG == 2) {
RANDOMPAN = -RANDOMPAN;
}
_root.coptersound.stop();
_root.missilesound.stop();
_root.explodesound.setVolume(100);
_root.explodesound.setPan(RANDOMPAN);
_root.explodesound.start();
_root.travelbullet = false;
if (_root.shooterisdead == false) {
_root.shooter.gotoAndStop("FULL");
}
_root.bullet.removeMovieClip();
this.onEnterFrame = function () {
setProperty(this, _y , this._y);
};
Symbol 175 MovieClip [HELIID] Frame 21
this.swapDepths(3750 + helino);
Symbol 175 MovieClip [HELIID] Frame 25
_root.totalscore = _root.totalscore + 15;
_root.missiletotal = _root.missiletotal + 2;
this.removeMovieClip();
Symbol 242 MovieClip Frame 53
stop();
ENTER.onRelease = function () {
_root.gotoAndStop("INTRO");
};
Symbol 247 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 10
stop();