Frame 1
Stage.showMenu = false;
Planes = new Sound();
Planes.attachSound("plane");
ArcadeMusic = new Sound();
ArcadeMusic.attachSound("arcademusic");
TimeMusic = new Sound();
TimeMusic.attachSound("timemusic");
Rocket = new Sound();
Rocket.attachSound("rocket");
Bullet = new Sound();
Bullet.attachSound("bullet");
Planes.stop();
ArcadeMusic.stop();
TimeMusic.stop();
Frame 2
stop();
_root.weapon = "gun";
_root.score = 0;
Planes.setVolume(0);
ArcadeMusic.setVolume(0);
TimeMusic.setVolume(0);
Planes.stop();
ArcadeMusic.stop();
TimeMusic.stop();
Frame 3
stop();
Planes.setVolume(0);
ArcadeMusic.setVolume(0);
TimeMusic.setVolume(0);
Planes.stop();
ArcadeMusic.stop();
TimeMusic.stop();
Instance of Symbol 85 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.weapon == "gun") {
this.gotoAndStop(2);
} else if (_root.weapon == "cannon") {
this.gotoAndStop(1);
}
this.flames._alpha = 0;
}
Instance of Symbol 101 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.weapon == "gun") {
this.gotoAndStop(1);
} else if (_root.weapon == "cannon") {
this.gotoAndStop(2);
}
}
Frame 4
stop();
Planes.setVolume(0);
ArcadeMusic.setVolume(0);
TimeMusic.setVolume(0);
Planes.stop();
ArcadeMusic.stop();
TimeMusic.stop();
Frame 5
stop();
Planes.setVolume(0);
ArcadeMusic.setVolume(0);
TimeMusic.setVolume(0);
Planes.stop();
ArcadeMusic.stop();
TimeMusic.stop();
Frame 6
stop();
Planes.setVolume(0);
ArcadeMusic.setVolume(0);
TimeMusic.setVolume(0);
Planes.stop();
ArcadeMusic.stop();
TimeMusic.stop();
Frame 7
_root.scoretable.filename = "scores/highscores.sco";
_root.scoretable.scoresize = 5;
_root.scoretable.action = "VIEW";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = name;
_root.scoretable.winscore = score;
_root.scoretable.loadVariables("http://atomoxic.byethost2.com/scores.php", "GET");
stop();
Planes.setVolume(0);
ArcadeMusic.setVolume(0);
TimeMusic.setVolume(0);
Planes.stop();
ArcadeMusic.stop();
TimeMusic.stop();
Frame 8
_root.score = 0;
_root.shootnum = "a";
_root.enemysleft = 16;
_root.level = 1;
_root.boss = 0;
ArcadeMusic.setVolume(100);
Planes.setVolume(30);
Planes.start(0, 5000);
ArcadeMusic.start(0, 5000);
Instance of Symbol 167 MovieClip "bullet1" in Frame 8
onClipEvent (load) {
shot = false;
_root.bulleta = "false";
}
onClipEvent (enterFrame) {
if (((this._x > 200) && (_root.weapon == "cannon")) && (_root.shootnum == "a")) {
_root.shootnum = "b";
} else if (((this._x > 150) && (_root.weapon == "gun")) && (_root.shootnum == "a")) {
_root.shootnum = "b";
}
if (_root.weapon == "cannon") {
if (Key.isDown(32) && (_root.shootnum == "a")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulleta = "true";
this._rotation = _root.plane._rotation;
this._visible = true;
}
if (((this._x > 98) && (this._x < 109)) && (this._y < 200)) {
_root.Rocket.start(0, 1);
}
this._x = this._x + (10 * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - (10 * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(1);
} else if (_root.weapon == "gun") {
if (Key.isDown(32) && (_root.shootnum == "a")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulleta = "true";
this._rotation = _root.plane._rotation;
this._visible = true;
}
if (((this._x > 145) && (this._x < 180)) && (this._y < 200)) {
_root.Bullet.start(0, 1);
}
this._x = this._x + ((25 + random(5)) * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - ((25 + random(5)) * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(2);
}
if (this._x > 550) {
shot = false;
_root.bulleta = "false";
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
}
Instance of Symbol 167 MovieClip "bullet2" in Frame 8
onClipEvent (load) {
shot = false;
_root.bulletb = "false";
}
onClipEvent (enterFrame) {
if (((this._x > 200) && (_root.weapon == "cannon")) && (_root.shootnum == "b")) {
_root.shootnum = "c";
} else if (((this._x > 150) && (_root.weapon == "gun")) && (_root.shootnum == "b")) {
_root.shootnum = "c";
}
if (_root.weapon == "cannon") {
if (Key.isDown(32) && (_root.shootnum == "b")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulletb = "true";
this._rotation = _root.plane._rotation;
}
if (((this._x > 98) && (this._x < 109)) && (this._y < 200)) {
_root.Rocket.start(0, 1);
}
this._x = this._x + (10 * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - (10 * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(1);
} else if (_root.weapon == "gun") {
if (Key.isDown(32) && (_root.shootnum == "b")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulletb = "true";
this._rotation = _root.plane._rotation;
}
if (((this._x > 145) && (this._x < 180)) && (this._y < 200)) {
_root.Bullet.start(0, 1);
}
this._x = this._x + ((25 + random(5)) * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - ((25 + random(5)) * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(2);
}
if (this._x > 550) {
shot = false;
_root.bulletb = "false";
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
}
Instance of Symbol 173 MovieClip "rocket" in Frame 8
onClipEvent (load) {
shot = false;
}
onClipEvent (enterFrame) {
if (_root.boss == 1) {
if (shot == false) {
this._y = _root.boss_A._y + 20.7;
this._x = _root.boss_A._x;
}
randomise = random(50);
if (randomise == 7) {
shot = true;
}
if (this._x < -100) {
shot = false;
this._x = _root.boss_A._x;
this._y = _root.boss_A._y + 20.7;
}
if (shot == true) {
this._x = this._x - 5;
}
if (this.hitTest(_root.plane)) {
shot = false;
this._x = _root.boss_A._x;
this._y = _root.boss_A._y + 20.7;
}
}
}
Instance of Symbol 175 MovieClip "medium_rocket" in Frame 8
onClipEvent (load) {
shot = false;
}
onClipEvent (enterFrame) {
if (_root.boss == 2) {
if (shot == false) {
this._y = _root.boss_B._y + 29.7;
this._x = _root.boss_B._x;
}
randomise = random(50);
if (randomise == 45) {
shot = true;
}
if (this._x < -100) {
shot = false;
this._x = _root.boss_B._x;
this._y = _root.boss_B._y + 29.7;
}
if (shot == true) {
this._x = this._x - 5;
}
if (this.hitTest(_root.plane)) {
shot = false;
this._x = _root.boss_B._x;
this._y = _root.boss_B._y + 29.7;
}
}
}
Instance of Symbol 177 MovieClip "big_rocket" in Frame 8
onClipEvent (load) {
shot = false;
}
onClipEvent (enterFrame) {
if (_root.boss == 3) {
if (shot == false) {
this._y = _root.boss_C._y;
this._x = _root.boss_C._x;
}
randomise = random(50);
if (randomise == 37) {
shot = true;
}
if (this._x < -100) {
shot = false;
this._x = _root.boss_C._x;
this._y = _root.boss_C._y;
}
if (shot == true) {
this._x = this._x - 5;
}
if (this.hitTest(_root.plane)) {
shot = false;
this._x = _root.boss_C._x;
this._y = _root.boss_C._y;
}
}
}
Instance of Symbol 167 MovieClip "bullet3" in Frame 8
onClipEvent (load) {
shot = false;
_root.bulletc = "false";
}
onClipEvent (enterFrame) {
if (((this._x > 200) && (_root.weapon == "cannon")) && (_root.shootnum == "c")) {
_root.shootnum = "d";
} else if (((this._x > 150) && (_root.weapon == "gun")) && (_root.shootnum == "c")) {
_root.shootnum = "d";
}
if (_root.weapon == "cannon") {
if (Key.isDown(32) && (_root.shootnum == "c")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulletc = "true";
this._rotation = _root.plane._rotation;
this._visible = true;
}
if (((this._x > 98) && (this._x < 109)) && (this._y < 200)) {
_root.Rocket.start(0, 1);
}
this._x = this._x + (10 * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - (10 * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(1);
} else if (_root.weapon == "gun") {
if (Key.isDown(32) && (_root.shootnum == "c")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulletc = "true";
this._rotation = _root.plane._rotation;
this._visible = true;
}
if (((this._x > 145) && (this._x < 180)) && (this._y < 200)) {
_root.Bullet.start(0, 1);
}
this._x = this._x + ((25 + random(5)) * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - ((25 + random(5)) * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(2);
}
if (this._x > 550) {
shot = false;
_root.bulletc = "false";
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
}
Instance of Symbol 167 MovieClip "bullet4" in Frame 8
onClipEvent (load) {
shot = false;
_root.bulletd = "false";
}
onClipEvent (enterFrame) {
if (((this._x > 200) && (_root.weapon == "cannon")) && (_root.shootnum == "d")) {
_root.shootnum = "e";
} else if (((this._x > 150) && (_root.weapon == "gun")) && (_root.shootnum == "d")) {
_root.shootnum = "e";
}
if (_root.weapon == "cannon") {
if (Key.isDown(32) && (_root.shootnum == "d")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulletd = "true";
this._rotation = _root.plane._rotation;
}
if (((this._x > 98) && (this._x < 109)) && (this._y < 200)) {
_root.Rocket.start(0, 1);
}
this._x = this._x + (10 * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - (10 * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(1);
} else if (_root.weapon == "gun") {
if (Key.isDown(32) && (_root.shootnum == "d")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulletd = "true";
this._rotation = _root.plane._rotation;
}
if (((this._x > 145) && (this._x < 180)) && (this._y < 200)) {
_root.Bullet.start(0, 1);
}
this._x = this._x + ((25 + random(5)) * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - ((25 + random(5)) * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(2);
}
if (this._x > 550) {
shot = false;
_root.bulletd = "false";
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
}
Instance of Symbol 167 MovieClip "bullet5" in Frame 8
onClipEvent (load) {
shot = false;
_root.bullete = "false";
}
onClipEvent (enterFrame) {
if (((this._x > 200) && (_root.weapon == "cannon")) && (_root.shootnum == "e")) {
_root.shootnum = "a";
} else if (((this._x > 150) && (_root.weapon == "gun")) && (_root.shootnum == "e")) {
_root.shootnum = "f";
}
if (_root.weapon == "cannon") {
if (Key.isDown(32) && (_root.shootnum == "e")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulletd = "true";
this._rotation = _root.plane._rotation;
}
if (((this._x > 98) && (this._x < 109)) && (this._y < 200)) {
_root.Rocket.start(0, 1);
}
this._x = this._x + (10 * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - (10 * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(1);
} else if (_root.weapon == "gun") {
if (Key.isDown(32) && (_root.shootnum == "e")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulletd = "true";
this._rotation = _root.plane._rotation;
}
if (((this._x > 145) && (this._x < 180)) && (this._y < 200)) {
_root.Bullet.start(0, 1);
}
this._x = this._x + ((25 + random(5)) * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - ((25 + random(5)) * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(2);
}
if (this._x > 550) {
shot = false;
_root.bulletd = "false";
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
}
Instance of Symbol 167 MovieClip "bullet6" in Frame 8
onClipEvent (load) {
shot = false;
_root.bulletf = "false";
}
onClipEvent (enterFrame) {
if (((this._x > 200) && (_root.weapon == "cannon")) && (_root.shootnum == "f")) {
_root.shootnum = "g";
} else if (((this._x > 150) && (_root.weapon == "gun")) && (_root.shootnum == "f")) {
_root.shootnum = "g";
}
if (_root.weapon == "cannon") {
if (Key.isDown(32) && (_root.shootnum == "f")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulletf = "true";
this._rotation = _root.plane._rotation;
}
if (((this._x > 98) && (this._x < 109)) && (this._y < 200)) {
_root.Rocket.start(0, 1);
}
this._x = this._x + (10 * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - (10 * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(1);
} else if (_root.weapon == "gun") {
if (Key.isDown(32) && (_root.shootnum == "f")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulletf = "true";
this._rotation = _root.plane._rotation;
}
if (((this._x > 145) && (this._x < 180)) && (this._y < 200)) {
_root.Bullet.start(0, 1);
}
this._x = this._x + ((25 + random(5)) * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - ((25 + random(5)) * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(2);
}
if (this._x > 550) {
shot = false;
_root.bulletf = "false";
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
}
Instance of Symbol 167 MovieClip "bullet7" in Frame 8
onClipEvent (load) {
shot = false;
_root.bulletg = "false";
}
onClipEvent (enterFrame) {
if (((this._x > 200) && (_root.weapon == "cannon")) && (_root.shootnum == "g")) {
_root.shootnum = "a";
} else if (((this._x > 150) && (_root.weapon == "gun")) && (_root.shootnum == "g")) {
_root.shootnum = "h";
}
if (_root.weapon == "cannon") {
if (Key.isDown(32) && (_root.shootnum == "g")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulletg = "true";
this._rotation = _root.plane._rotation;
}
if (((this._x > 98) && (this._x < 109)) && (this._y < 200)) {
_root.Rocket.start(0, 1);
}
this._x = this._x + (10 * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - (10 * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(1);
} else if (_root.weapon == "gun") {
if (Key.isDown(32) && (_root.shootnum == "g")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulletg = "true";
this._rotation = _root.plane._rotation;
}
if (((this._x > 145) && (this._x < 180)) && (this._y < 200)) {
_root.Bullet.start(0, 1);
}
this._x = this._x + ((25 + random(5)) * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - ((25 + random(5)) * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(2);
}
if (this._x > 550) {
shot = false;
_root.bulletg = "false";
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
}
Instance of Symbol 167 MovieClip "bullet8" in Frame 8
onClipEvent (load) {
shot = false;
_root.bulleth = "false";
}
onClipEvent (enterFrame) {
if (((this._x > 150) && (_root.weapon == "gun")) && (_root.shootnum == "h")) {
_root.shootnum = "i";
}
if (_root.weapon == "gun") {
if (Key.isDown(32) && (_root.shootnum == "h")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulleth = "true";
this._rotation = _root.plane._rotation;
}
this._x = this._x + ((25 + random(5)) * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - ((25 + random(5)) * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(2);
}
if (this._x > 550) {
shot = false;
_root.bulleth = "false";
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
if (((this._x > 145) && (this._x < 180)) && (this._y < 200)) {
_root.Bullet.start(0, 1);
}
}
Instance of Symbol 167 MovieClip "bullet9" in Frame 8
onClipEvent (load) {
shot = false;
_root.bulleti = "false";
}
onClipEvent (enterFrame) {
if (((this._x > 150) && (_root.weapon == "gun")) && (_root.shootnum == "i")) {
_root.shootnum = "j";
}
if (_root.weapon == "gun") {
if (Key.isDown(32) && (_root.shootnum == "i")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulleti = "true";
this._rotation = _root.plane._rotation;
this._visible = true;
}
this._x = this._x + ((25 + random(5)) * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - ((25 + random(5)) * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(2);
}
if (this._x > 550) {
shot = false;
_root.bulleti = "false";
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
if (((this._x > 145) && (this._x < 180)) && (this._y < 200)) {
_root.Bullet.start(0, 1);
}
}
Instance of Symbol 167 MovieClip "bullet10" in Frame 8
onClipEvent (load) {
shot = false;
_root.bulletj = "false";
}
onClipEvent (enterFrame) {
if (((this._x > 150) && (_root.weapon == "gun")) && (_root.shootnum == "j")) {
_root.shootnum = "a";
}
if (_root.weapon == "gun") {
if (Key.isDown(32) && (_root.shootnum == "j")) {
rotation = _root.plane._rotation + 90;
shot = true;
_root.bulletj = "true";
this._rotation = _root.plane._rotation;
}
this._x = this._x + ((25 + random(5)) * Math.sin((rotation * Math.PI) / 180));
this._y = this._y - ((25 + random(5)) * Math.cos((rotation * Math.PI) / 180));
if (shot == false) {
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
this.gotoAndStop(2);
}
if (this._x > 550) {
shot = false;
_root.bulletj = "false";
this._x = _root.plane._x;
if (Key.isDown(38)) {
this._y = _root.plane._y;
} else if (Key.isDown(40)) {
this._y = _root.plane._y + 10;
} else {
this._y = _root.plane._y + 5;
}
}
if (((this._x > 145) && (this._x < 180)) && (this._y < 200)) {
_root.Bullet.start(0, 1);
}
}
Instance of Symbol 179 MovieClip "enemy11" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 200;
this._y = 125;
}
onClipEvent (enterFrame) {
if (_root.level == 4) {
if (_root.enemysleft > 0) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
this._x = random(100) + 700;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if (this._y > 280) {
_root.score = _root.score + 10;
speed = 3 + random(2);
dead = false;
this._rotation = 0;
this._y = 125;
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
}
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._x = 700;
}
}
}
Instance of Symbol 179 MovieClip "enemy10" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 200;
this._y = 75;
}
onClipEvent (enterFrame) {
if (_root.level == 4) {
if (_root.enemysleft > 0) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
this._x = random(100) + 700;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if (this._y > 280) {
_root.score = _root.score + 10;
speed = 3 + random(2);
dead = false;
this._rotation = 0;
this._y = 75;
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
}
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._x = 700;
}
}
}
Instance of Symbol 179 MovieClip "enemy13" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 200;
this._y = 100;
}
onClipEvent (enterFrame) {
if (_root.level == 4) {
if (_root.enemysleft > 0) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
this._x = random(100) + 700;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if (this._y > 280) {
_root.score = _root.score + 10;
speed = 3 + random(2);
dead = false;
this._rotation = 0;
this._y = 100;
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
}
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._x = 700;
}
}
}
Instance of Symbol 179 MovieClip "enemy15" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 200;
this._y = 50;
}
onClipEvent (enterFrame) {
if (_root.level == 4) {
if (_root.enemysleft > 0) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
this._x = random(100) + 700;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if (this._y > 280) {
_root.score = _root.score + 10;
speed = 3 + random(2);
dead = false;
this._rotation = 0;
this._y = 50;
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
}
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._x = 700;
}
}
}
Instance of Symbol 179 MovieClip "enemy12" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 200;
this._y = 150;
}
onClipEvent (enterFrame) {
if (_root.level == 4) {
if (_root.enemysleft > 0) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
this._x = random(100) + 700;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if (this._y > 280) {
_root.score = _root.score + 10;
speed = 3 + random(2);
dead = false;
this._rotation = 0;
this._y = 150;
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
}
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._x = 700;
}
}
}
Instance of Symbol 179 MovieClip "enemy7" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 175;
this._y = 150 + random(25);
}
onClipEvent (enterFrame) {
if (_root.level == 3) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
dead = true;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if ((this._y > 280) && (this._x >= 0)) {
_root.score = _root.score + 10;
speed = 3 + random(2);
dead = false;
this._rotation = 0;
this._y = 150 + random(25);
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
}
if ((this._y > 280) && (this._x < 0)) {
dead = false;
this._rotation = 0;
this._y = 150 + random(25);
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._y = this._y - 10;
this._rotation = this._rotation + 5;
}
}
}
Instance of Symbol 179 MovieClip "enemy6" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 175;
this._y = 100 + random(50);
}
onClipEvent (enterFrame) {
if (_root.level == 3) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
dead = true;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if ((this._y > 280) && (this._x >= 0)) {
_root.score = _root.score + 10;
speed = 3 + random(2);
dead = false;
this._rotation = 0;
this._y = 100 + random(50);
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
}
if ((this._y > 280) && (this._x < 0)) {
dead = false;
this._rotation = 0;
this._y = 100 + random(50);
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._y = this._y - 10;
this._rotation = this._rotation + 5;
}
}
}
Instance of Symbol 179 MovieClip "enemy8" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 175;
this._y = 50 + random(50);
}
onClipEvent (enterFrame) {
if (_root.level == 3) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
dead = true;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if ((this._y > 280) && (this._x >= 0)) {
_root.score = _root.score + 10;
speed = 3 + random(2);
dead = false;
this._rotation = 0;
this._y = 50 + random(50);
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
}
if ((this._y > 280) && (this._x < 0)) {
dead = false;
this._rotation = 0;
this._y = 50 + random(50);
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
}
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._y = this._y - 10;
this._rotation = this._rotation + 5;
}
}
Instance of Symbol 179 MovieClip "enemy9" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 175;
this._y = 75 + random(25);
}
onClipEvent (enterFrame) {
if (_root.level == 3) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
dead = true;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if ((this._y > 280) && (this._x >= 0)) {
_root.score = _root.score + 10;
speed = 3 + random(2);
dead = false;
this._rotation = 0;
this._y = 75 + random(25);
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
}
if ((this._y > 280) && (this._x < 0)) {
dead = false;
this._rotation = 0;
this._y = 75 + random(25);
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._y = this._y - 10;
this._rotation = this._rotation + 5;
}
}
}
Instance of Symbol 181 MovieClip "boss_C" in Frame 8
onClipEvent (load) {
life = 5000;
dead = false;
X = 3;
}
onClipEvent (enterFrame) {
if (_root.level == 3) {
if (life < 0) {
dead = true;
}
if (dead == true) {
this._y = this._y + 10;
this._x = this._x - 3;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
if (_root.enemysleft == 0) {
this._x = this._x - 3;
}
if (this._x < 412) {
this._x = this._x + 3;
this._y = this._y + X;
if (this._y > 150) {
X = -3;
} else if (this._y < 50) {
X = 3;
}
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 6;
}
}
i++;
}
if (this._y > 280) {
_root.score = _root.score + 10000;
this._y = -1000000000000;
_root.level = 4;
_root.enemysleft = 100000000000;
}
}
if (((dead == false) && (_root.enemysleft == 0)) && (_root.level == 3)) {
_root.boss = 3;
}
}
Instance of Symbol 179 MovieClip "enemy4" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 150;
this._y = 25 + random(50);
}
onClipEvent (enterFrame) {
if (_root.level == 2) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
dead = true;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if ((this._y > 280) && (this._x >= 0)) {
_root.score = _root.score + 10;
speed = 3 + random(2);
dead = false;
this._rotation = 0;
this._y = 25 + random(50);
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
}
if ((this._y > 280) && (this._x < 0)) {
dead = false;
this._rotation = 0;
this._y = 25 + random(50);
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._y = this._y - 10;
this._rotation = this._rotation + 5;
}
}
}
Instance of Symbol 179 MovieClip "enemy3" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 150;
this._y = 75 + random(25);
}
onClipEvent (enterFrame) {
if (_root.level == 2) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
dead = true;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if ((this._y > 280) && (this._x >= 0)) {
_root.score = _root.score + 10;
speed = 3 + random(2);
dead = false;
this._rotation = 0;
this._y = 75 + random(25);
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
}
if ((this._y > 280) && (this._x < 0)) {
dead = false;
this._rotation = 0;
this._y = 75 + random(25);
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._y = this._y - 10;
this._rotation = this._rotation + 5;
}
}
}
Instance of Symbol 179 MovieClip "enemy5" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 150;
this._y = 125 + random(50);
}
onClipEvent (enterFrame) {
if (_root.level == 2) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
dead = true;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if ((this._y > 280) && (this._x >= 0)) {
_root.score = _root.score + 10;
speed = 3 + random(2);
dead = false;
this._rotation = 0;
this._y = 125 + random(50);
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
}
if ((this._y > 280) && (this._x < 0)) {
dead = false;
this._rotation = 0;
this._y = 125 + random(50);
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._y = this._y - 10;
this._rotation = this._rotation + 5;
}
}
}
Instance of Symbol 183 MovieClip "boss_B" in Frame 8
onClipEvent (load) {
life = 2000;
dead = false;
X = 3;
}
onClipEvent (enterFrame) {
if (_root.level == 2) {
if (life < 0) {
dead = true;
}
if (dead == true) {
this._y = this._y + 10;
this._x = this._x - 3;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
if (_root.enemysleft == 0) {
this._x = this._x - 3;
}
if (this._x < 412) {
this._x = this._x + 3;
this._y = this._y + X;
if (this._y > 150) {
X = -3;
} else if (this._y < 50) {
X = 3;
}
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 6;
}
}
i++;
}
if (this._y > 280) {
_root.score = _root.score + 2000;
this._y = -1000000000000;
_root.level = 3;
_root.enemysleft = 32;
}
}
if (((dead == false) && (_root.enemysleft == 0)) && (_root.level == 2)) {
_root.boss = 2;
}
}
Instance of Symbol 185 MovieClip "boss_A" in Frame 8
onClipEvent (load) {
life = 1000;
dead = false;
X = 3;
}
onClipEvent (enterFrame) {
if (_root.level == 1) {
if (life < 0) {
dead = true;
}
if (dead == true) {
this._y = this._y + 10;
this._x = this._x - 3;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
if (_root.enemysleft == 0) {
this._x = this._x - 3;
}
if (this._x < 412) {
this._x = this._x + 3;
this._y = this._y + X;
if (this._y > 150) {
X = -3;
} else if (this._y < 50) {
X = 3;
}
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 6;
}
}
i++;
}
if (this._y > 280) {
_root.score = _root.score + 500;
this._y = -1000000000000;
_root.level = 2;
_root.enemysleft = 21;
}
if (this._y < -100) {
this._x = -200;
}
}
if (((dead == false) && (_root.enemysleft == 0)) && (_root.level == 1)) {
_root.boss = 1;
}
}
Instance of Symbol 179 MovieClip "enemy1" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 100;
this._y = 100 + random(50);
}
onClipEvent (enterFrame) {
if (_root.level == 1) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
dead = true;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if ((this._y > 280) && (this._x >= 0)) {
_root.score = _root.score + 10;
dead = false;
this._rotation = 0;
this._y = 100 + random(50);
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
speed = 3 + random(2);
}
if ((this._y > 280) && (this._x < 0)) {
dead = false;
this._rotation = 0;
this._y = 100 + random(50);
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._y = this._y - 10;
this._rotation = this._rotation + 5;
}
}
}
Instance of Symbol 179 MovieClip "enemy2" in Frame 8
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 100;
this._y = 50 + random(50);
}
onClipEvent (enterFrame) {
if (_root.level == 1) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
dead = true;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 10;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if ((this._y > 280) && (this._x >= 0)) {
_root.score = _root.score + 10;
dead = false;
this._rotation = 0;
this._y = 50 + random(50);
this._x = 800 + random(200);
_root.enemysleft = _root.enemysleft - 1;
life = 100;
this.fire._alpha = 0;
speed = 3 + random(2);
}
if ((this._y > 280) && (this._x < 0)) {
dead = false;
this._rotation = 0;
this._y = 50 + random(50);
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
}
if ((_root.enemysleft <= 0) && (dead == false)) {
this._y = this._y - 10;
this._rotation = this._rotation + 5;
}
}
}
Instance of Symbol 85 MovieClip "plane" in Frame 8
onClipEvent (load) {
rotation = 0;
speed = 6;
dead = false;
life = 100;
}
onClipEvent (enterFrame) {
if (dead == false) {
if (Key.isDown(40)) {
this._y = this._y + speed;
rotation = rotation + 1;
} else if (Key.isDown(38)) {
this._y = this._y - speed;
rotation = rotation - 1;
} else if (rotation > 0) {
rotation = rotation - 1;
} else if (rotation < 0) {
rotation = rotation + 1;
} else if (rotation == 0) {
rotation = 0;
}
this._rotation = rotation;
if (_root.weapon == "gun") {
this.gotoAndStop(2);
} else if (_root.weapon == "cannon") {
this.gotoAndStop(1);
}
if (this.hitTest(_root.bounda)) {
this._y = this._y - 6;
rotation = rotation - 1;
} else if (this.hitTest(_root.boundb)) {
this._y = this._y + 6;
rotation = rotation + 1;
}
} else if (dead == true) {
this._rotation = this._rotation + 2;
this._y = this._y + 8;
this._x = this._x + 3;
this.flames._alpha = 100;
this.flames.gotoAndPlay(2);
}
_root.lifes = life + " %";
if (_root.enemybullet.hitTest(this)) {
life = life - (20 + random(10));
}
if (life <= 0) {
life = 0;
dead = true;
}
i = 1;
while (i < 99) {
if (this.hitTest(_root["enemy" + i])) {
life = life - 2;
}
i++;
}
if (this._y > 300) {
_root.gotoAndStop(10);
}
if (this.hitTest(_root.rocket)) {
life = life - 5;
} else if (this.hitTest(_root.medium_rocket)) {
life = life - 10;
} else if (this.hitTest(_root.big_rocket)) {
life = life - 25;
}
}
Frame 9
_root.score = 0;
_root.shootnum = "a";
TimeMusic.setVolume(100);
Planes.setVolume(30);
Planes.start(0, 5000);
TimeMusic.start(0, 5000);
Instance of Symbol 179 MovieClip "enemy17" in Frame 9
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 200;
this._y = 125;
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
this._x = random(100) + 700;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 6;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if (this._y > 280) {
_root.score = _root.score + 10;
dead = false;
this._rotation = 0;
this._y = 125;
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
speed = 3 + random(2);
}
}
Instance of Symbol 179 MovieClip "enemy16" in Frame 9
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 200;
this._y = 75;
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
this._x = random(100) + 700;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 6;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if (this._y > 280) {
_root.score = _root.score + 10;
dead = false;
this._rotation = 0;
this._y = 75;
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
speed = 3 + random(2);
}
}
Instance of Symbol 179 MovieClip "enemy19" in Frame 9
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 200;
this._y = 100;
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
this._x = random(100) + 700;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 6;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if (this._y > 280) {
_root.score = _root.score + 10;
dead = false;
this._rotation = 0;
this._y = 100;
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
speed = 3 + random(2);
}
}
Instance of Symbol 179 MovieClip "enemy20" in Frame 9
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 200;
this._y = 50;
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
this._x = random(100) + 700;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 6;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if (this._y > 280) {
_root.score = _root.score + 10;
dead = false;
this._rotation = 0;
this._y = 50;
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
speed = 3 + random(2);
}
}
Instance of Symbol 179 MovieClip "enemy18" in Frame 9
onClipEvent (load) {
dead = false;
speed = 3 + random(2);
life = 200;
this._y = 150;
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
if (life < 0) {
dead = true;
}
if (this._x < -100) {
this._x = random(100) + 700;
}
if (dead == true) {
this._y = this._y + 10;
this._rotation = this._rotation - 3;
this.fire._alpha = 100;
}
i = 1;
while (i < 99) {
if (_root["bullet" + i].hitTest(this)) {
if (((_root.weapon == "gun") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "gun"))) {
life = life - 8;
} else if (((_root.weapon == "cannon") && (_root.bulleta == "true")) || ((_root.bulletb == "true") && (_root.weapon == "cannon"))) {
life = life - 6;
}
}
i++;
}
if (_root.plane.hitTest(this)) {
dead = true;
}
if (this._y > 280) {
_root.score = _root.score + 10;
dead = false;
this._rotation = 0;
this._y = 150;
this._x = 800 + random(200);
life = 100;
this.fire._alpha = 0;
speed = 3 + random(2);
}
}
Instance of Symbol 85 MovieClip "plane" in Frame 9
onClipEvent (load) {
rotation = 0;
speed = 6;
dead = false;
life = 100;
}
onClipEvent (enterFrame) {
if (dead == false) {
if (Key.isDown(40)) {
this._y = this._y + speed;
rotation = rotation + 1;
} else if (Key.isDown(38)) {
this._y = this._y - speed;
rotation = rotation - 1;
} else if (rotation > 0) {
rotation = rotation - 1;
} else if (rotation < 0) {
rotation = rotation + 1;
} else if (rotation == 0) {
rotation = 0;
}
this._rotation = rotation;
if (_root.weapon == "gun") {
this.gotoAndStop(2);
} else if (_root.weapon == "cannon") {
this.gotoAndStop(1);
}
if (this.hitTest(_root.bounda)) {
this._y = this._y - 6;
rotation = rotation - 1;
} else if (this.hitTest(_root.boundb)) {
this._y = this._y + 6;
rotation = rotation + 1;
}
} else if (dead == true) {
this._rotation = this._rotation + 2;
this._y = this._y + 8;
this._x = this._x + 3;
this.flames._alpha = 100;
}
_root.lifes = life + " %";
if (life <= 0) {
life = 0;
dead = true;
}
i = 1;
while (i < 99) {
if (this.hitTest(_root["enemy" + i])) {
life = life - 2;
}
i++;
}
if (this._y > 300) {
_root.gotoAndStop(13);
}
}
Frame 10
Planes.setVolume(0);
ArcadeMusic.setVolume(0);
TimeMusic.setVolume(0);
Planes.stop();
ArcadeMusic.stop();
TimeMusic.stop();
Frame 11
_root.scoretable.filename = "scores/highscores.sco";
_root.scoretable.scoresize = 10;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = name;
_root.scoretable.winscore = score;
_root.scoretable.loadVariables("http://atomoxic.byethost2.com/scores.php", "GET");
Planes.setVolume(0);
ArcadeMusic.setVolume(0);
TimeMusic.setVolume(0);
Planes.stop();
ArcadeMusic.stop();
TimeMusic.stop();
Frame 12
stop();
Planes.setVolume(0);
ArcadeMusic.setVolume(0);
TimeMusic.setVolume(0);
Planes.stop();
ArcadeMusic.stop();
TimeMusic.stop();
Frame 13
Planes.setVolume(0);
ArcadeMusic.setVolume(0);
TimeMusic.setVolume(0);
Planes.stop();
ArcadeMusic.stop();
TimeMusic.stop();
Frame 14
_root.scoretable.filename = "scores/highscorestime.sco";
_root.scoretable.scoresize = 10;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = name;
_root.scoretable.winscore = score;
_root.scoretable.loadVariables("http://atomoxic.byethost2.com/scores.php", "GET");
Planes.setVolume(0);
ArcadeMusic.setVolume(0);
TimeMusic.setVolume(0);
Planes.stop();
ArcadeMusic.stop();
TimeMusic.stop();
Symbol 37 Button
on (release) {
_root.play();
}
Symbol 38 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 38 MovieClip Frame 2
gotoAndPlay (1);
Symbol 49 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 54 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 59 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 64 Button
on (release) {
_root.gotoAndStop(6);
}
Symbol 69 Button
on (release) {
_root.gotoAndStop(7);
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
stop();
Instance of Symbol 83 MovieClip "flames" in Symbol 85 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Symbol 85 MovieClip Frame 2
stop();
Symbol 97 Button
on (release) {
if (_root.weapon == "gun") {
_root.weapon_.gotoAndStop(2);
_root.weapon = "cannon";
} else if (_root.weapon == "cannon") {
_root.weapon_.gotoAndStop(1);
_root.weapon = "gun";
}
}
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 2
stop();
Symbol 106 Button
on (release) {
_root.gotoAndStop(8);
}
Symbol 109 Button
on (release) {
if (_root.weapon == "gun") {
_root.weapon = "cannon";
} else if (_root.weapon == "cannon") {
_root.weapon = "gun";
}
}
Symbol 111 Button
on (release) {
_root.gotoAndStop(9);
}
Symbol 115 Button
on (release) {
gotoAndStop (2);
}
Symbol 120 Button
on (release) {
_quality = "LOW";
}
Symbol 123 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 126 Button
on (release) {
_quality = "HIGH";
}
Symbol 147 Button
on (release) {
_root.scoretable.filename = "scores/highscores.sco";
_root.scoretable.scoresize = 5;
_root.scoretable.action = "VIEW";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = name;
_root.scoretable.winscore = score;
_root.scoretable.loadVariables("http://atomoxic.byethost2.com/scores.php", "GET");
}
Symbol 150 Button
on (release) {
_root.scoretable.filename = "scores/highscorestime.sco";
_root.scoretable.scoresize = 10;
_root.scoretable.action = "VIEW";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = name;
_root.scoretable.winscore = score;
_root.scoretable.loadVariables("http://atomoxic.byethost2.com/scores.php", "GET");
}
Instance of Symbol 83 MovieClip "fire" in Symbol 179 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 83 MovieClip "fire" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 83 MovieClip "fire" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 83 MovieClip "fire" in Symbol 185 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Symbol 326 MovieClip Frame 2882
_root.gotoAndStop(13);
Symbol 341 Button
on (release) {
_root.gotoAndStop(12);
}
Symbol 351 Button
on (release) {
gotoAndStop (11);
}
Symbol 358 Button
on (release) {
gotoAndStop (12);
}
Symbol 360 Button
on (release) {
_root.gotoAndStop(2);
}