Frame 1
function updateTimer() {
buttonPressTime = (getTimer() / 1000) - pauseLength;
pause();
}
function restartTimer() {
hours = "00";
minutes = "00";
seconds = "00";
buttonPressTime = (getTimer() / 1000) - pauseLength;
pause();
}
function pause() {
pauseTime = getTimer() / 1000;
timing = false;
}
function finish() {
if (_root.seconds >= 30) {
_root.pause();
_root.restartTimer();
nextFrame();
}
}
function unpause() {
unpauseTime = getTimer() / 1000;
pauseLength = (unpauseTime - pauseTime) + pauseLength;
timing = true;
}
_root.onEnterFrame = function () {
totalTime = (getTimer() / 1000) - pauseLength;
goTime = totalTime - buttonPressTime;
if (timing) {
hours = Math.floor(goTime / 3600);
minutes = Math.floor(((goTime / 3600) - hours) * 60);
seconds = Math.floor(((((goTime / 3600) - hours) * 60) - minutes) * 60);
if (seconds < 10) {
seconds = "0" + seconds;
}
if (minutes < 10) {
minutes = "0" + minutes;
}
if (hours < 10) {
hours = "0" + hours;
}
}
};
stop();
stop();
Frame 2
keying = 2;
unpause();
stop();
function getdistance(x, y, x1, y1) {
var run;
var rise;
run = x1 - x;
rise = y1 - y;
return(_root.hyp(run, rise));
}
function hyp(a, b) {
return(Math.sqrt((a * a) + (b * b)));
}
MovieClip.prototype.reset = function () {
width = 457;
height = 325;
var dist;
var norm;
this.x = this._x;
this.y = this._y;
this.speed = (Math.random() * 4) + 2;
this.targx = Math.random() * width;
this.targy = Math.random() * height;
dist = _root.getdistance(this.x, this.y, this.targx, this.targy);
norm = this.speed / dist;
this.diffx = (this.targx - this.x) * norm;
this.diffy = (this.targy - this.y) * norm;
};
MovieClip.prototype.move = function () {
if (_root.getdistance(this.x, this.y, this.targx, this.targy) > this.speed) {
this.x = this.x + this.diffx;
this.y = this.y + this.diffy;
} else {
this.x = this.targx;
this.y = this.targy;
if (!this.t) {
this.t = getTimer();
}
if ((getTimer() - this.t) > 1000) {
this.reset();
this.t = 0;
}
}
this._x = this.x;
this._y = this.y;
};
Instance of Symbol 25 MovieClip in Frame 2
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 2
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 2
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 2
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 2
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 2
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 33 MovieClip "Nave" in Frame 2
onClipEvent (load) {
speed = 5;
}
onClipEvent (enterFrame) {
_root.finish();
if (_root.keying == 2) {
if (Key.isDown(37) && (!Key.isDown(39))) {
_x = (_x - speed);
_rotation = 270;
}
if (Key.isDown(39) && (!Key.isDown(37))) {
_x = (_x + speed);
_rotation = 90;
}
if (Key.isDown(38) && (!Key.isDown(40))) {
_y = (_y - speed);
_rotation = 0;
}
if (Key.isDown(40) && (!Key.isDown(38))) {
_y = (_y + speed);
_rotation = 180;
}
if (((Key.isDown(37) && (Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(40))) {
_rotation = 315;
}
if (((Key.isDown(39) && (Key.isDown(38))) && (!Key.isDown(37))) && (!Key.isDown(40))) {
_rotation = 45;
}
if (((Key.isDown(37) && (Key.isDown(40))) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_rotation = 225;
}
if (((Key.isDown(39) && (Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(38))) {
_rotation = 135;
}
}
if (_y < 0) {
_y = 285;
}
if (_y > 285) {
_y = 0;
}
if (_x < 0) {
_x = 510;
}
if (_x > 510) {
_x = 0;
}
}
Frame 3
_root.pause();
stop();
Frame 4
_root.unpause();
stop();
Instance of Symbol 25 MovieClip in Frame 4
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 4
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 4
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 4
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 4
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 4
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 4
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 4
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 33 MovieClip "Nave" in Frame 4
onClipEvent (load) {
speed = 4;
}
onClipEvent (enterFrame) {
_root.finish();
if (_root.keying == 2) {
if (Key.isDown(37) && (!Key.isDown(39))) {
_x = (_x - speed);
_rotation = 270;
}
if (Key.isDown(39) && (!Key.isDown(37))) {
_x = (_x + speed);
_rotation = 90;
}
if (Key.isDown(38) && (!Key.isDown(40))) {
_y = (_y - speed);
_rotation = 0;
}
if (Key.isDown(40) && (!Key.isDown(38))) {
_y = (_y + speed);
_rotation = 180;
}
if (((Key.isDown(37) && (Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(40))) {
_rotation = 315;
}
if (((Key.isDown(39) && (Key.isDown(38))) && (!Key.isDown(37))) && (!Key.isDown(40))) {
_rotation = 45;
}
if (((Key.isDown(37) && (Key.isDown(40))) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_rotation = 225;
}
if (((Key.isDown(39) && (Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(38))) {
_rotation = 135;
}
}
if (_y < 0) {
_y = 285;
}
if (_y > 285) {
_y = 0;
}
if (_x < 0) {
_x = 510;
}
if (_x > 510) {
_x = 0;
}
}
Frame 5
_root.pause();
stop();
Frame 6
_root.unpause();
stop();
Instance of Symbol 25 MovieClip in Frame 6
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 6
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 6
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 6
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 6
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 6
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 6
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 6
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 6
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 6
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 33 MovieClip "Nave" in Frame 6
onClipEvent (load) {
speed = 3;
}
onClipEvent (enterFrame) {
_root.finish();
if (_root.keying == 2) {
if (Key.isDown(37) && (!Key.isDown(39))) {
_x = (_x - speed);
_rotation = 270;
}
if (Key.isDown(39) && (!Key.isDown(37))) {
_x = (_x + speed);
_rotation = 90;
}
if (Key.isDown(38) && (!Key.isDown(40))) {
_y = (_y - speed);
_rotation = 0;
}
if (Key.isDown(40) && (!Key.isDown(38))) {
_y = (_y + speed);
_rotation = 180;
}
if (((Key.isDown(37) && (Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(40))) {
_rotation = 315;
}
if (((Key.isDown(39) && (Key.isDown(38))) && (!Key.isDown(37))) && (!Key.isDown(40))) {
_rotation = 45;
}
if (((Key.isDown(37) && (Key.isDown(40))) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_rotation = 225;
}
if (((Key.isDown(39) && (Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(38))) {
_rotation = 135;
}
}
if (_y < 0) {
_y = 285;
}
if (_y > 285) {
_y = 0;
}
if (_x < 0) {
_x = 510;
}
if (_x > 510) {
_x = 0;
}
}
Frame 7
_root.pause();
stop();
Frame 8
_root.unpause();
stop();
Instance of Symbol 25 MovieClip in Frame 8
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 8
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 8
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 8
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 8
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 8
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 8
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 8
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 8
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 8
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 8
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 8
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 33 MovieClip "Nave" in Frame 8
onClipEvent (load) {
speed = 3;
}
onClipEvent (enterFrame) {
_root.finish();
if (_root.keying == 2) {
if (Key.isDown(37) && (!Key.isDown(39))) {
_x = (_x - speed);
_rotation = 270;
}
if (Key.isDown(39) && (!Key.isDown(37))) {
_x = (_x + speed);
_rotation = 90;
}
if (Key.isDown(38) && (!Key.isDown(40))) {
_y = (_y - speed);
_rotation = 0;
}
if (Key.isDown(40) && (!Key.isDown(38))) {
_y = (_y + speed);
_rotation = 180;
}
if (((Key.isDown(37) && (Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(40))) {
_rotation = 315;
}
if (((Key.isDown(39) && (Key.isDown(38))) && (!Key.isDown(37))) && (!Key.isDown(40))) {
_rotation = 45;
}
if (((Key.isDown(37) && (Key.isDown(40))) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_rotation = 225;
}
if (((Key.isDown(39) && (Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(38))) {
_rotation = 135;
}
}
if (_y < 0) {
_y = 285;
}
if (_y > 285) {
_y = 0;
}
if (_x < 0) {
_x = 510;
}
if (_x > 510) {
_x = 0;
}
}
Frame 9
_root.pause();
stop();
Frame 10
_root.unpause();
stop();
Instance of Symbol 25 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 10
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.gotoAndStop("gameover");
_root.pause();
}
}
Instance of Symbol 33 MovieClip "Nave" in Frame 10
onClipEvent (load) {
speed = 2;
}
onClipEvent (enterFrame) {
_root.finish();
if (_root.keying == 2) {
if (Key.isDown(37) && (!Key.isDown(39))) {
_x = (_x - speed);
_rotation = 270;
}
if (Key.isDown(39) && (!Key.isDown(37))) {
_x = (_x + speed);
_rotation = 90;
}
if (Key.isDown(38) && (!Key.isDown(40))) {
_y = (_y - speed);
_rotation = 0;
}
if (Key.isDown(40) && (!Key.isDown(38))) {
_y = (_y + speed);
_rotation = 180;
}
if (((Key.isDown(37) && (Key.isDown(38))) && (!Key.isDown(39))) && (!Key.isDown(40))) {
_rotation = 315;
}
if (((Key.isDown(39) && (Key.isDown(38))) && (!Key.isDown(37))) && (!Key.isDown(40))) {
_rotation = 45;
}
if (((Key.isDown(37) && (Key.isDown(40))) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_rotation = 225;
}
if (((Key.isDown(39) && (Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(38))) {
_rotation = 135;
}
}
if (_y < 0) {
_y = 285;
}
if (_y > 285) {
_y = 0;
}
if (_x < 0) {
_x = 510;
}
if (_x > 510) {
_x = 0;
}
}
Frame 11
stop();
_root.pause();
stop();
Frame 12
stop();
_root.pause();
stop();
Instance of Symbol 25 MovieClip in Frame 12
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 12
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 12
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 12
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 12
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 12
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 12
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 12
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.pause();
}
}
Instance of Symbol 25 MovieClip in Frame 12
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.pause();
}
}
Instance of Symbol 27 MovieClip in Frame 12
onClipEvent (enterFrame) {
move();
if (this.hitTest(_root.NAVE)) {
_root.NAVE.play();
_root.pause();
}
}
Symbol 5 Button
on (release) {
getURL ("http://www.2flashgames.com", "_blank");
}
Symbol 20 Button
on (release) {
gotoAndStop (2);
}
Symbol 41 MovieClip Frame 36
tellTarget ("../") {
play();
};
stop();
Symbol 49 MovieClip Frame 36
tellTarget ("../") {
play();
};
stop();
Symbol 57 MovieClip Frame 36
tellTarget ("../") {
play();
};
stop();
Symbol 65 MovieClip Frame 36
tellTarget ("../") {
play();
};
stop();
Symbol 79 Button
on (release) {
restartTimer();
gotoAndStop (2);
}