Instance of Symbol 5 MovieClip in Frame 1
onClipEvent (load) {
_root.stop();
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.play();
}
}
Frame 19
stop();
Frame 20
THE_FRAME_WITH_THE_GAME_ON_IT = _currentframe;
planecount = 0;
bombcount = 50;
seconds = 30;
score = 0;
MISSILEcount = 10;
onEnterFrame = function () {
if (_currentframe == THE_FRAME_WITH_THE_GAME_ON_IT) {
seconds--;
if ((seconds <= 0) && (bomber._x <= (-bomber._width))) {
seconds = 30;
planecount++;
if (Math.random() >= 0.5) {
duplicateMovieClip (plane, "plane" + planecount, planecount);
_root["plane" + planecount]._y = plane._y + (Math.round(Math.random() * 3) * 50);
} else {
duplicateMovieClip (helicopter, "plane" + planecount, planecount);
_root["plane" + planecount]._y = plane._y + (Math.round(Math.random() * 3) * 50);
}
}
}
if (score <= 9999999999) {
SCORE = score;
}
if (score <= 999999999) {
SCORE = "0" + score;
}
if (score <= 99999999) {
SCORE = "00" + score;
}
if (score <= 9999999) {
SCORE = "000" + score;
}
if (score <= 999999) {
SCORE = "0000" + score;
}
if (score <= 99999) {
SCORE = "00000" + score;
}
if (score <= 9999) {
SCORE = "000000" + score;
}
if (score <= 999) {
SCORE = "0000000" + score;
}
if (score <= 99) {
SCORE = "00000000" + score;
}
if (score <= 9) {
SCORE = "000000000" + score;
}
if (gun.shotcount >= 150) {
gun.shotcount = 100;
}
if (bombcount >= 99) {
bombcount = 50;
}
if (planecount >= 49) {
planecount = 0;
}
if (((MISSILEcount <= 0) || (_root.cannon.health <= 0)) && (_root._currentframe == 20)) {
_root.cannon.play();
}
};
stop();
Instance of Symbol 44 MovieClip "helicopter" in Frame 20
onClipEvent (load) {
if (_name != "helicopter") {
RANDOM = Math.random();
if (RANDOM <= 0.5) {
_x = -200;
_xscale = 100;
} else {
_x = 600;
_xscale = -100;
}
speed = 2 + (Math.random() * 5);
}
health = 1;
}
onClipEvent (enterFrame) {
if (_name != "helicopter") {
if (!dead) {
_x = (_x + (speed * (_xscale / 100)));
i = 100;
while (i <= 150) {
if (_root["BULLET" + i].hitTest(this)) {
play();
health--;
_root.score = _root.score + 50;
_root["BULLET" + i].removeMovieClip();
}
i++;
}
if (Math.random() >= 0.98) {
_root.bombcount++;
duplicateMovieClip (_root.bomb, "bomb" + _root.bombcount, _root.bombcount);
_root["bomb" + _root.bombcount]._x = _x + (((_width / 2) * _xscale) / 100);
_root["bomb" + _root.bombcount]._y = _y + _height;
}
}
}
if ((_x >= 600) || (_x <= -100)) {
this.removeMovieClip();
}
if (_root._currentframe != _root.THE_FRAME_WITH_THE_GAME_ON_IT) {
this.removeMovieClip();
}
}
Instance of Symbol 51 MovieClip "bomber" in Frame 20
onClipEvent (load) {
speed = 0;
reload = 10;
open = false;
WAITING = 500;
}
onClipEvent (enterFrame) {
if (WAITING <= 0) {
speed = 3;
} else {
WAITING--;
}
_x = (_x + (speed * (_xscale / 100)));
if (((_x + (_width / 2)) >= 100) && ((_x + (_width / 2)) <= 400)) {
play();
} else {
open = false;
}
i = 50;
while (i <= 80) {
if (_root["BULLET" + i].hitTest(this)) {
play();
dead = true;
}
i++;
}
reload--;
if ((reload <= 0) && (open == true)) {
reload = 20;
_root.bombcount++;
duplicateMovieClip (_root.BIGbomb, "bomb" + _root.bombcount, _root.bombcount);
_root["bomb" + _root.bombcount]._x = _x + 95;
_root["bomb" + _root.bombcount]._y = _y + _height;
}
if (_x >= 440) {
_x = -300;
WAITING = 500;
speed = 0;
}
}
Instance of Symbol 58 MovieClip "bomb" in Frame 20
onClipEvent (load) {
speed = 3;
}
onClipEvent (enterFrame) {
if (_name != "bomb") {
_y = (_y + speed);
i = 1;
while (i <= 10) {
if (_root["MISSILE" + i].hitTest(_x + 5, _y + 5, true)) {
_root["MISSILE" + i].dead = true;
play();
speed = 0;
}
i++;
}
if (_y >= (390 - _height)) {
play();
speed = 0;
}
if (_root.cannon.hitTest(this) && (_currentframe == 1)) {
_root.cannon.health = _root.cannon.health - 10;
play();
speed = 0;
}
}
if (((_root._currentframe != _root.THE_FRAME_WITH_THE_GAME_ON_IT) || (this._x < -10)) || (this._x > 415)) {
this.removeMovieClip();
}
}
Instance of Symbol 68 MovieClip "BIGbomb" in Frame 20
onClipEvent (load) {
speed = 3;
}
onClipEvent (enterFrame) {
if (_name != "BIGbomb") {
_y = (_y + speed);
i = 1;
while (i <= 10) {
if (_root["MISSILE" + i].hitTest(this)) {
_root["MISSILE" + i].dead = true;
play();
speed = 0;
}
i++;
}
if (_y >= (390 - _height)) {
play();
speed = 0;
}
if (_root.cannon.hitTest(this) && (_currentframe == 1)) {
_root.cannon.health = _root.cannon.health - 20;
play();
speed = 0;
}
}
if (_root._currentframe != _root.THE_FRAME_WITH_THE_GAME_ON_IT) {
this.removeMovieClip();
}
}
Instance of Symbol 84 MovieClip "plane" in Frame 20
onClipEvent (load) {
if (_name != "plane") {
RANDOM = Math.random();
if (RANDOM <= 0.5) {
_x = -200;
_xscale = 100;
} else {
_x = 600;
_xscale = -100;
}
speed = 2 + (Math.random() * 5);
}
health = 2;
}
onClipEvent (enterFrame) {
if (_name != "plane") {
if (!dead) {
_x = (_x + (speed * (_xscale / 100)));
i = 100;
while (i <= 150) {
if (_root["BULLET" + i].hitTest(this)) {
play();
health--;
_root.score = _root.score + 50;
_root["BULLET" + i].removeMovieClip();
}
i++;
}
if (Math.random() >= 0.98) {
_root.bombcount++;
duplicateMovieClip (_root.bomb, "bomb" + _root.bombcount, _root.bombcount);
_root["bomb" + _root.bombcount]._x = _x + (((_width / 2) * _xscale) / 100);
_root["bomb" + _root.bombcount]._y = _y + _height;
}
}
}
if ((_x >= 600) || (_x <= -100)) {
this.removeMovieClip();
}
if (_root._currentframe != _root.THE_FRAME_WITH_THE_GAME_ON_IT) {
this.removeMovieClip();
}
}
Instance of Symbol 85 MovieClip "gun" in Frame 20
onClipEvent (load) {
_root.shot = 0;
shotcount = 100;
}
onClipEvent (mouseMove) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
_rotation = (((-Math.atan2(Xd, Yd)) / (Math.PI/180)) + 180);
}
onClipEvent (mouseDown) {
if (_root.shot == 0) {
shotcount++;
duplicateMovieClip (_root.BULLET, "BULLET" + shotcount, shotcount);
_root["BULLET" + shotcount]._x = _x;
_root["BULLET" + shotcount]._y = _y;
_root["BULLET" + shotcount].ANGLE = _rotation;
_root.shot = 6;
}
}
onClipEvent (enterFrame) {
if (_root.shot > 0) {
_root.shot--;
}
if ((_root.cannon.health <= 0) || (_root.MISSILEcount <= 0)) {
this._visible = false;
}
}
Instance of Symbol 98 MovieClip "cannon" in Frame 20
onClipEvent (load) {
health = 100;
}
on (keyPress "<Space>") {
health = 0;
}
Instance of Symbol 99 MovieClip "BULLET" in Frame 20
onClipEvent (load) {
speed = 10;
Xspeed = Math.sin(ANGLE * (Math.PI/180)) * speed;
Yspeed = Math.cos(ANGLE * (Math.PI/180)) * speed;
}
onClipEvent (enterFrame) {
_x = (_x + Xspeed);
_y = (_y - Yspeed);
i = 50;
while (i <= 99) {
if (this.hitTest(_root["bomb" + i]) && (_root["bomb" + i]._currentframe == 1)) {
_root["bomb" + i].speed = 0;
_root["bomb" + i].play();
_root.score = _root.score + 50;
this.removeMovieClip();
}
i++;
}
if ((((_x >= 440) || (_x <= 0)) || (_y >= 405)) || (_y <= 0)) {
this.removeMovieClip();
}
if (_root._currentframe != _root.THE_FRAME_WITH_THE_GAME_ON_IT) {
this.removeMovieClip();
}
}
Instance of Symbol 115 MovieClip "MISSILE8" in Frame 20
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
play();
}
}
Instance of Symbol 115 MovieClip "MISSILE5" in Frame 20
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
play();
}
}
Instance of Symbol 115 MovieClip "MISSILE6" in Frame 20
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
play();
}
}
Instance of Symbol 115 MovieClip "MISSILE7" in Frame 20
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
play();
}
}
Instance of Symbol 115 MovieClip "MISSILE9" in Frame 20
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
play();
}
}
Instance of Symbol 115 MovieClip "MISSILE10" in Frame 20
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
play();
}
}
Instance of Symbol 115 MovieClip "MISSILE1" in Frame 20
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
play();
}
}
Instance of Symbol 115 MovieClip "MISSILE2" in Frame 20
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
play();
}
}
Instance of Symbol 115 MovieClip "MISSILE3" in Frame 20
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
play();
}
}
Instance of Symbol 115 MovieClip "MISSILE4" in Frame 20
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (dead) {
play();
}
}
Frame 21
stopAllSounds();
Frame 48
stop();
Symbol 12 MovieClip Frame 1
blip1 = new Sound(this);
blip1.attachSound("blip1");
blip1.start(0, 0);
Symbol 14 Button
on (release) {
gotoAndStop (15);
}
Symbol 19 MovieClip Frame 1
blip1 = new Sound(this);
blip1.attachSound("blip1");
blip1.start(0, 0);
Symbol 25 Button
on (release) {
gotoAndStop (20);
}
Symbol 26 Button
on (release) {
gotoAndStop (49);
}
Symbol 44 MovieClip Frame 3
if (health > 0) {
gotoAndStop (1);
} else {
dead = true;
}
Symbol 44 MovieClip Frame 16
removeMovieClip(this);
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 7
open = true;
Symbol 51 MovieClip Frame 8
if ((_x + (_width / 2)) <= 400) {
gotoAndPlay (7);
} else {
open = false;
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 15
this.removeMovieClip();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 10
this.removeMovieClip();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 3
if (health > 0) {
gotoAndStop (1);
} else {
dead = true;
}
Symbol 84 MovieClip Frame 16
removeMovieClip(this);
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 52
_root.gotoAndPlay("end");
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 30
_root.MISSILEcount--;
this.swapDepths(999);
this.removeMovieClip();
Symbol 133 MovieClip Frame 1
blip1 = new Sound(this);
blip1.attachSound("blip1");
blip1.start(0, 0);
Symbol 134 Button
on (release) {
gotoAndStop (20);
}
Symbol 137 MovieClip Frame 1
blip1 = new Sound(this);
blip1.attachSound("blip1");
blip1.start(0, 0);
Symbol 138 Button
on (release) {
gotoAndStop (19);
}
Symbol 142 MovieClip Frame 1
blip1 = new Sound(this);
blip1.attachSound("blip1");
blip1.start(0, 0);
Symbol 143 Button
on (release) {
gotoAndStop (20);
}