Frame 1
stop();
Instance of Symbol 7 MovieClip in Frame 1
on (press) {
_root.gotoAndPlay(2);
}
Instance of Symbol 12 MovieClip in Frame 1
on (press) {
_root.gotoAndPlay(3);
}
Frame 2
stop();
Frame 3
numEnemy = 6;
i = 2;
while (i <= numEnemy) {
enemy1.duplicateMovieClip("enemy" + i, i + 100);
i++;
}
numEubank = 1;
i = 2;
while (i <= numEubank) {
eubank.duplicateMovieClip("eubank" + i, i + 100);
i++;
}
numNorman = 1;
i = 2;
while (i <= numNorman) {
norman.duplicateMovieClip("eubank" + i, i + 100);
i++;
}
score = 0;
health = 100;
Instance of Symbol 27 MovieClip "laser" in Frame 3
onClipEvent (load) {
laserMoveSpeed = 20;
this._y = _root.spaceship._y + 8;
this._x = _root.spaceship._x + 85;
}
onClipEvent (enterFrame) {
if (this._name != "laser") {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
_root.spaceship.laserCounter--;
this.removeMovieClip();
}
i = 1;
while (i <= _root.numEnemy) {
if (this.hitTest(_root["enemy" + i])) {
_root.score = _root.score + 20;
_root["enemy" + i].gotoAndPlay(4);
this.removeMovieClip();
}
if (this.hitTest(_root.enemy)) {
this.removeMovieClip();
_root.score = _root.score + 20;
_root.enemy.gotoAndPlay(4);
this.removeMovieClip();
}
i++;
}
i = 1;
while (i <= _root.numEubank) {
if (this.hitTest(_root["eubank" + i])) {
_root.health = _root.health - 5;
_root["eubank" + i].gotoAndPlay(2);
if (_root.health <= 0) {
_root.gotoAndStop("gameOver");
}
}
if (this.hitTest(_root.eubank)) {
_root.health = _root.health - 5;
_root.eubank.gotoAndPlay(2);
if (_root.health <= 0) {
_root.gotoAndStop("gameOver");
}
}
i = 1;
while (i <= _root.numNorman) {
if (this.hitTest(_root["norman" + i])) {
_root.health = _root.health - 5;
_root["norman" + i].gotoAndPlay(2);
if (_root.health <= 0) {
_root.gotoAndStop("gameOver");
}
}
if (this.hitTest(_root.norman)) {
_root.health = _root.health - 5;
_root.norman.gotoAndPlay(2);
if (_root.health <= 0) {
_root.gotoAndStop("gameOver");
}
}
i++;
}
i++;
}
}
}
Instance of Symbol 30 MovieClip "spaceship" in Frame 3
onClipEvent (load) {
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.laser.duplicateMovieClip("laser" + laserCounter, laserCounter);
}
_root["laser" + lasercounter]._visible = true;
lasercounter++;
if (Key.isDown(39) and (this._x < 500)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(37) and (this._x > 0)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(40) and (this._y < 330)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(38) and (this._y > 0)) {
this._y = this._y - moveSpeed;
}
}
Instance of Symbol 39 MovieClip "enemy1" in Frame 3
onClipEvent (load) {
function reset() {
this._x = 520;
this._y = random(200) + 100;
enemySpeed = random(10) + 1;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - enemySpeed;
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship)) {
gotoAndPlay (2);
_root.health = _root.health - 10;
if (_root.health <= 0) {
_root.health = 0;
_root.gotoAndStop("gameOver");
}
}
}
Instance of Symbol 45 MovieClip "eubank" in Frame 3
onClipEvent (load) {
function reset() {
this._x = 520;
this._y = random(350) + 50;
eubankSpeed = random(10) + 1;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - eubankSpeed;
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship)) {
_root.score = _root.score + 100;
reset();
}
}
Instance of Symbol 52 MovieClip "norman" in Frame 3
onClipEvent (load) {
function reset() {
this._x = 520;
this._y = random(200) + 100;
normanSpeed = random(10) + 1;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - normanSpeed;
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship)) {
_root.score = _root.score + 100;
reset();
}
}
Instance of Symbol 66 MovieClip in Frame 3
on (release) {
getURL ("http://www.adamtwycross.co.uk", "_blank");
}
Frame 4
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 3
stop();
Symbol 39 MovieClip Frame 8
stop();
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 6
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 6
stop();
Symbol 74 Button
on (release) {
gotoAndPlay (3);
}