Frame 1
stop();
Instance of Symbol 18 MovieClip "loader" in Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100));
}
Frame 2
stop();
Frame 3
_root.specialcount = 0;
_root.nextlife = 10;
_root.score = 0;
_root.lasercount = 0;
_root.hit = 0;
_root.ratiotemp = 1;
_root.ratio = "100%";
_root.lasers = 0;
_root.gameover = false;
_root.lives = 5;
_root.turret1.stop();
_root.turret2.stop();
_root.turret3.stop();
_root.turret4.stop();
_root.turret5.stop();
Instance of Symbol 61 MovieClip "turret1" in Frame 3
onClipEvent (enterFrame) {
if (_root.a2._currentframe > 13) {
this.play();
if ((_currentframe > 32) and (!_root.slomo)) {
_gotoAndPlay(_currentframe - 32);
}
_root.dist_x = _root.char._x - _x;
_root.dist_y = _root.char._y - _y;
if (_root.dist_x < 0) {
normalise = -1 * _root.dist_x;
} else {
normalise = _root.dist_x;
}
if (_root.dist_y < 0) {
normalise = normalise + (-1 * _root.dist_y);
} else {
normalise = normalise + _root.dist_y;
}
if ((_root.dist_x >= 0) and (_root.dist_y >= 0)) {
direction = 90 * (_root.dist_y / normalise);
} else if ((_root.dist_x <= 0) and (_root.dist_y >= 0)) {
direction = (-90 * (_root.dist_x / normalise)) + 90;
} else if ((_root.dist_x <= 0) and (_root.dist_y <= 0)) {
direction = (-90 * (_root.dist_y / normalise)) + 180;
} else {
direction = (90 * (_root.dist_x / normalise)) + 270;
}
_rotation = (direction + 90);
}
}
Instance of Symbol 61 MovieClip "turret3" in Frame 3
onClipEvent (enterFrame) {
if (_root.d5._currentframe > 13) {
this.play();
if ((_currentframe > 32) and (!_root.slomo)) {
_gotoAndPlay(_currentframe - 32);
}
_root.dist_x = _root.char._x - _x;
_root.dist_y = _root.char._y - _y;
if (_root.dist_x < 0) {
normalise = -1 * _root.dist_x;
} else {
normalise = _root.dist_x;
}
if (_root.dist_y < 0) {
normalise = normalise + (-1 * _root.dist_y);
} else {
normalise = normalise + _root.dist_y;
}
if ((_root.dist_x >= 0) and (_root.dist_y >= 0)) {
direction = 90 * (_root.dist_y / normalise);
} else if ((_root.dist_x <= 0) and (_root.dist_y >= 0)) {
direction = (-90 * (_root.dist_x / normalise)) + 90;
} else if ((_root.dist_x <= 0) and (_root.dist_y <= 0)) {
direction = (-90 * (_root.dist_y / normalise)) + 180;
} else {
direction = (90 * (_root.dist_x / normalise)) + 270;
}
_rotation = (direction + 90);
}
}
Instance of Symbol 61 MovieClip "turret4" in Frame 3
onClipEvent (enterFrame) {
if (_root.e2._currentframe > 13) {
this.play();
if ((_currentframe > 32) and (!_root.slomo)) {
_gotoAndPlay(_currentframe - 32);
}
_root.dist_x = _root.char._x - _x;
_root.dist_y = _root.char._y - _y;
if (_root.dist_x < 0) {
normalise = -1 * _root.dist_x;
} else {
normalise = _root.dist_x;
}
if (_root.dist_y < 0) {
normalise = normalise + (-1 * _root.dist_y);
} else {
normalise = normalise + _root.dist_y;
}
if ((_root.dist_x >= 0) and (_root.dist_y >= 0)) {
direction = 90 * (_root.dist_y / normalise);
} else if ((_root.dist_x <= 0) and (_root.dist_y >= 0)) {
direction = (-90 * (_root.dist_x / normalise)) + 90;
} else if ((_root.dist_x <= 0) and (_root.dist_y <= 0)) {
direction = (-90 * (_root.dist_y / normalise)) + 180;
} else {
direction = (90 * (_root.dist_x / normalise)) + 270;
}
_rotation = (direction + 90);
}
}
Instance of Symbol 61 MovieClip "turret5" in Frame 3
onClipEvent (enterFrame) {
if (_root.c1._currentframe > 13) {
this.play();
if ((_currentframe > 32) and (!_root.slomo)) {
_gotoAndPlay(_currentframe - 32);
}
_root.dist_x = _root.char._x - _x;
_root.dist_y = _root.char._y - _y;
if (_root.dist_x < 0) {
normalise = -1 * _root.dist_x;
} else {
normalise = _root.dist_x;
}
if (_root.dist_y < 0) {
normalise = normalise + (-1 * _root.dist_y);
} else {
normalise = normalise + _root.dist_y;
}
if ((_root.dist_x >= 0) and (_root.dist_y >= 0)) {
direction = 90 * (_root.dist_y / normalise);
} else if ((_root.dist_x <= 0) and (_root.dist_y >= 0)) {
direction = (-90 * (_root.dist_x / normalise)) + 90;
} else if ((_root.dist_x <= 0) and (_root.dist_y <= 0)) {
direction = (-90 * (_root.dist_y / normalise)) + 180;
} else {
direction = (90 * (_root.dist_x / normalise)) + 270;
}
_rotation = (direction + 90);
}
}
Instance of Symbol 61 MovieClip "turret2" in Frame 3
onClipEvent (enterFrame) {
if (_root.b5._currentframe > 13) {
this.play();
if ((_currentframe > 32) and (!_root.slomo)) {
_gotoAndPlay(_currentframe - 32);
}
_root.dist_x = _root.char._x - _x;
_root.dist_y = _root.char._y - _y;
if (_root.dist_x < 0) {
normalise = -1 * _root.dist_x;
} else {
normalise = _root.dist_x;
}
if (_root.dist_y < 0) {
normalise = normalise + (-1 * _root.dist_y);
} else {
normalise = normalise + _root.dist_y;
}
if ((_root.dist_x >= 0) and (_root.dist_y >= 0)) {
direction = 90 * (_root.dist_y / normalise);
} else if ((_root.dist_x <= 0) and (_root.dist_y >= 0)) {
direction = (-90 * (_root.dist_x / normalise)) + 90;
} else if ((_root.dist_x <= 0) and (_root.dist_y <= 0)) {
direction = (-90 * (_root.dist_y / normalise)) + 180;
} else {
direction = (90 * (_root.dist_x / normalise)) + 270;
}
_rotation = (direction + 90);
}
}
Instance of Symbol 68 MovieClip "line0" in Frame 3
onClipEvent (enterFrame) {
if (this._name != "line0") {
if ((((_x > 700) or (_x < -300)) or (_y < -300)) or (_y > 700)) {
removeMovieClip(this);
}
}
angle = _rotation;
if (angle < 0) {
angle = Math.abs(angle) + 180;
}
if (angle >= 270) {
angle = 90 - (angle - 270);
xthing = -5;
ything = 5;
} else if ((angle <= 271) && (angle > 180)) {
angle = angle - 180;
xthing = -5;
ything = -5;
} else if ((angle <= 181) && (angle > 90)) {
angle = 90 - (angle - 90);
xthing = 5;
ything = 5;
} else if ((angle >= 0) && (angle < 90)) {
xthing = 5;
ything = -5;
}
if (_root.slomo) {
_root.slower = 0.5;
} else {
_root.slower = 1;
}
_x = (_x + (((_root.slower * 2) * xthing) * Math.sin((Math.PI/180) * angle)));
_y = (_y + (((_root.slower * 2) * ything) * Math.cos((Math.PI/180) * angle)));
}
Instance of Symbol 97 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (hitTest(_root.char)) {
_root.score++;
_y = (random(253) + 87);
_x = (random(180) + 169);
_root.flysound.gotoAndPlay(2);
}
}
Instance of Symbol 100 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.slomo) {
if (_root.specialcount >= 1) {
_root.specialcount = _root.specialcount - 1;
}
} else if (_root.specialcount <= 99.5) {
_root.specialcount = _root.specialcount + 0.5;
}
if (_root.specialcount < 2) {
_root.slomo = false;
_root.bluezone.gotoAndStop(1);
}
if (this.bar._yscale > 100) {
this.bar._yscale = 100;
}
this.bar._yscale = _root.specialcount;
this.bar._y = (_root.bar._yscale / 2) + 100;
}
Instance of Symbol 111 MovieClip "health" in Frame 3
onClipEvent (enterFrame) {
_root.flycounter = (_root.score + "/") + _root.nextlife;
if (_root.score >= _root.nextlife) {
_root.nextlife = _root.nextlife + 10;
this.play();
if (_root.score == 10) {
_root.a2.play();
} else if (_root.score == 20) {
_root.d5.play();
} else if (_root.score == 30) {
_root.e2.play();
} else if (_root.score == 40) {
_root.c1.play();
} else if (_root.score == 50) {
_root.b5.play();
}
}
}
Instance of Symbol 118 MovieClip "gameover" in Frame 3
onClipEvent (enterFrame) {
if (_root.gameover) {
if (_root.gameoverplay) {
this.gotoAndPlay(2);
_root.gameoverplay = false;
}
_x = 220;
_y = 170;
}
}
Frame 4
stop();
Instance of Symbol 68 MovieClip "line0" in Frame 4
onClipEvent (load) {
hitter = true;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.char.box) and hitter) and _root.allowhit) {
_root.hit++;
hitter = false;
if (_root.lives > 0) {
_root.lives--;
_root.hitclip.play();
} else {
_root.allowhit = false;
_root.hitclip.gotoAndStop(1);
_root.char._alpha = 100;
_root.gameover = true;
}
}
angle = _rotation;
if (angle < 0) {
angle = Math.abs(angle) + 180;
}
if (angle >= 270) {
angle = 90 - (angle - 270);
xthing = -5;
ything = 5;
} else if ((angle <= 271) && (angle > 180)) {
angle = angle - 180;
xthing = -5;
ything = -5;
} else if ((angle <= 181) && (angle > 90)) {
angle = 90 - (angle - 90);
xthing = 5;
ything = 5;
} else if ((angle >= 0) && (angle < 90)) {
xthing = 5;
ything = -5;
}
if (_root.slomo) {
_root.slower = 0.5;
} else {
_root.slower = 1;
}
_x = (_x + (((_root.slower * 2) * xthing) * Math.sin((Math.PI/180) * angle)));
_y = (_y + (((_root.slower * 2) * ything) * Math.cos((Math.PI/180) * angle)));
}
Instance of Symbol 49 MovieClip "char" in Frame 4
onClipEvent (enterFrame) {
if (!_root.gameover) {
_root.ratiotemp = 1 - (_root.hit / _root.lasers);
_root.ratiotemp = _root.ratiotemp * 1000;
_root.ratiotemp = Math.floor(_root.ratiotemp);
_root.ratiotemp = _root.ratiotemp * 0.001;
if (_root.lasers > 1) {
_root.ratio = (_root.ratiotemp * 100) + "%";
}
if (Key.isDown(38)) {
y = -1;
if (_y > 10) {
_y = (_y - 5);
}
} else if (Key.isDown(40)) {
y = 1;
if (_y < 390) {
_y = (_y + 5);
}
} else if ((!Key.isDown(38)) and (!Key.isDown(40))) {
y = 0;
}
if (Key.isDown(37)) {
x = -1;
if (_x > 10) {
_x = (_x - 5);
}
} else if (Key.isDown(39)) {
x = 1;
if (_x < 390) {
_x = (_x + 5);
}
} else if ((!Key.isDown(37)) and (!Key.isDown(39))) {
x = 0;
}
if (x == 1) {
if (y == 1) {
_rotation = 135;
} else if (y == -1) {
_rotation = 45;
} else {
_rotation = 90;
}
} else if (x == -1) {
if (y == 1) {
_rotation = 225;
} else if (y == -1) {
_rotation = 315;
} else {
_rotation = 270;
}
} else if (y == 1) {
_rotation = 180;
} else if (y == -1) {
_rotation = 0;
}
if ((x == 0) and (y == 0)) {
this.legs.gotoAndStop(1);
} else {
this.legs.play();
}
} else {
this.play();
_root.slomo = false;
}
}
Instance of Symbol 125 MovieClip "bluezone" in Frame 4
onClipEvent (enterFrame) {
if (Key.isDown(32) and _root.freekey) {
if (!_root.slomo) {
_root.slomo = true;
_root.freekey = false;
this.play();
} else {
_root.slomo = false;
_root.freekey = false;
this.gotoAndStop(1);
}
}
if (!Key.isDown(32)) {
_root.freekey = true;
}
if (_root.slomo) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 131 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.slomo and (this._currentframe < 457)) {
this.gotoAndPlay((_currentframe * 2) + 455);
} else if ((!_root.slomo) and (this._currentframe > 456)) {
this.gotoAndPlay((_currentframe - 455) / 2);
}
}
Symbol 17 Button
on (release) {
_root.play();
}
Symbol 18 MovieClip Frame 1
stop();
Instance of Symbol 8 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.loader._currentframe);
}
Symbol 18 MovieClip Frame 100
stop();
Symbol 25 Button
on (release) {
_root.play();
}
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 31
stop();
Symbol 49 MovieClip Frame 32
gotoAndStop(_currentframe - 1);
Symbol 61 MovieClip Frame 1
if (_root.lasercount > 20) {
_root.lasercount = 1;
}
Symbol 61 MovieClip Frame 36
if ((!_root.slomo) and (!_root.gameover)) {
if ((random(2) + 1) > 1) {
_root.lasercount++;
_root.lasers++;
duplicateMovieClip (_root.line0, "line" + _root.lasercount, _root.lasercount);
eval ("_root.line" + _root.lasercount)._x = _x;
eval ("_root.line" + _root.lasercount)._y = _y;
eval ("_root.line" + _root.lasercount)._rotation = _rotation;
}
}
Symbol 61 MovieClip Frame 72
if ((random(2) + 1) > 1) {
if (!_root.gameover) {
_root.lasercount++;
_root.lasers++;
duplicateMovieClip (_root.line0, "line" + _root.lasercount, _root.lasercount);
eval ("_root.line" + _root.lasercount)._x = _x;
eval ("_root.line" + _root.lasercount)._y = _y;
eval ("_root.line" + _root.lasercount)._rotation = _rotation;
}
}
Symbol 68 MovieClip Frame 1
if (this._name == "line0") {
stop();
} else if (_root.slomo) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 68 MovieClip Frame 2
stop();
Symbol 68 MovieClip Frame 3
stop();
Instance of Symbol 49 MovieClip in Symbol 71 MovieClip Frame 171
onClipEvent (enterFrame) {
this.legs.stop();
}
Instance of Symbol 49 MovieClip in Symbol 71 MovieClip Frame 205
onClipEvent (enterFrame) {
this.legs.play();
}
Instance of Symbol 49 MovieClip in Symbol 71 MovieClip Frame 359
onClipEvent (enterFrame) {
this.legs.stop();
}
Instance of Symbol 49 MovieClip in Symbol 71 MovieClip Frame 414
onClipEvent (enterFrame) {
this.legs.play();
}
Instance of Symbol 61 MovieClip in Symbol 71 MovieClip Frame 414
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 61 MovieClip in Symbol 71 MovieClip Frame 420
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 61 MovieClip in Symbol 71 MovieClip Frame 420
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 61 MovieClip in Symbol 71 MovieClip Frame 420
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 61 MovieClip in Symbol 71 MovieClip Frame 420
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 49 MovieClip in Symbol 71 MovieClip Frame 420
onClipEvent (enterFrame) {
this.legs.stop();
}
Instance of Symbol 49 MovieClip in Symbol 71 MovieClip Frame 442
onClipEvent (enterFrame) {
this.legs.play();
}
Instance of Symbol 49 MovieClip in Symbol 71 MovieClip Frame 450
onClipEvent (enterFrame) {
this.legs.stop();
}
Instance of Symbol 61 MovieClip in Symbol 71 MovieClip Frame 450
onClipEvent (enterFrame) {
stop();
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 14
stop();
Symbol 85 MovieClip Frame 15
stop();
gotoAndStop(_currentframe - 1);
Symbol 85 MovieClip Frame 16
stop();
gotoAndStop(_currentframe - 1);
Symbol 94 MovieClip Frame 30
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
_root.lives++;
Symbol 116 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 118 MovieClip Frame 1
stop();
_root.gameoverplay = true;
Symbol 118 MovieClip Frame 194
stop();
_root.gameoverplay = false;
Symbol 120 MovieClip Frame 130
stop();
Symbol 122 MovieClip Frame 1
stop();
_root.allowhit = true;
Symbol 122 MovieClip Frame 2
_root.allowhit = false;
Symbol 122 MovieClip Frame 4
_root.char._alpha = 10;
Symbol 122 MovieClip Frame 8
_root.char._alpha = 100;
Symbol 122 MovieClip Frame 12
_root.char._alpha = 10;
Symbol 122 MovieClip Frame 16
_root.char._alpha = 100;
Symbol 122 MovieClip Frame 20
_root.char._alpha = 10;
Symbol 122 MovieClip Frame 24
_root.char._alpha = 100;
Symbol 122 MovieClip Frame 28
_root.char._alpha = 10;
Symbol 122 MovieClip Frame 32
_root.char._alpha = 100;
Symbol 122 MovieClip Frame 36
_root.char._alpha = 10;
Symbol 122 MovieClip Frame 40
_root.char._alpha = 100;
Symbol 122 MovieClip Frame 44
_root.char._alpha = 10;
Symbol 122 MovieClip Frame 48
_root.char._alpha = 100;
Symbol 122 MovieClip Frame 52
gotoAndStop (1);
_root.allowhit = true;
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
stop();
Symbol 125 MovieClip Frame 27
gotoAndPlay (2);
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 35
gotoAndStop (1);
Symbol 131 MovieClip Frame 456
gotoAndPlay (1);
Symbol 131 MovieClip Frame 1369
gotoAndPlay (457);