Frame 2
gotoAndPlay (1);
Frame 484
Mouse.show();
stop();
bgSound1 = new Sound(this);
bgSound1.attachSound("song1");
bgSound2 = new Sound(this);
bgSound2.attachSound("song2");
bgSound3 = new Sound(this);
bgSound3.attachSound("song3");
bgSound4 = new Sound(this);
bgSound4.attachSound("song4");
function itemHandler1(obj, item) {
_root._quality = "high";
}
function itemHandler2(obj, item) {
_root._quality = "medium";
}
function itemHandler3(obj, item) {
_root._quality = "low";
}
function itemHandler4(obj, item) {
stopAllSounds();
_root.music.attachSound("sound2");
bgSound2.start(0, 99);
}
function itemHandler5(obj, item) {
stopAllSounds();
_root.music.attachSound("sound1");
bgSound1.start(0, 99);
}
function itemHandler6(obj, item) {
stopAllSounds();
_root.music.attachSound("sound3");
_root.bgSound3.start(0, 99);
}
function itemHandler7(obj, item) {
stopAllSounds();
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
item1 = new ContextMenuItem("High Quality", itemHandler1);
myMenu.customItems.push(item1);
item2 = new ContextMenuItem("Medium Quality", itemHandler2);
myMenu.customItems.push(item2);
item3 = new ContextMenuItem("Low Quality", itemHandler3);
myMenu.customItems.push(item3);
item4 = new ContextMenuItem("Background music 1", itemHandler4, true);
myMenu.customItems.push(item4);
item5 = new ContextMenuItem("Background music 2", itemHandler5);
myMenu.customItems.push(item5);
item6 = new ContextMenuItem("Background music 3", itemHandler6);
myMenu.customItems.push(item6);
item7 = new ContextMenuItem("No Music", itemHandler7);
myMenu.customItems.push(item7);
_root.menu = myMenu;
Frame 485
_root.lives = 3;
var bc = 1000;
_root.onMouseDown = function () {
bc++;
if (bc > 1100) {
bc = 1000;
}
duplicateMovieClip ("bullet", "b" + bc, bc);
};
stop();
Instance of Symbol 67 MovieClip "spaceship" in Frame 485
onClipEvent (enterFrame) {
if (_root.lives == 0) {
_root.gotoAndStop("lose");
}
}
onClipEvent (load) {
_root.spacelives = 10;
_root.spaceSpeed = 2;
}
onClipEvent (enterFrame) {
if (_root.spacelives == 0) {
_root.gotoAndStop("win");
}
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Instance of Symbol 69 MovieClip "bullet" in Frame 485
onClipEvent (load) {
spd = 20;
_x = _root.gun._x;
_y = _root.gun._y;
_rotation = _root.gun._rotation;
}
onClipEvent (enterFrame) {
if (_name == "bullet") {
_x = -1000;
} else {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if (hitTest(_root.spaceship)) {
_root.spaceship._x = random(550);
_root.spaceship._y = 0;
_root.spacelives = _root.spacelives - 1;
this.removeMovieClip();
}
if (hitTest(_root.spaceship2)) {
_root.spaceship2._x = random(550);
_root.spaceship2._y = 0;
_root.spacelives = _root.spacelives - 1;
this.removeMovieClip();
}
if (hitTest(_root.spaceship3)) {
_root.spaceship3._x = random(550);
_root.spaceship3._y = 0;
_root.spacelives = _root.spacelives - 1;
this.removeMovieClip();
}
}
if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > Stage.height)) {
this.removeMovieClip();
}
}
Instance of Symbol 71 MovieClip "gun" in Frame 485
onClipEvent (load) {
this.swapDepths(99997);
}
onClipEvent (mouseMove) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
}
Instance of Symbol 73 MovieClip "shine" in Frame 485
onClipEvent (load) {
this.swapDepths(99998);
}
onClipEvent (mouseMove) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
}
Instance of Symbol 75 MovieClip "turret" in Frame 485
onClipEvent (load) {
this.swapDepths(99999);
}
Instance of Symbol 83 MovieClip in Frame 485
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
Mouse.hide();
}
Frame 486
_root.lives = 3;
var bc = 1000;
_root.onMouseDown = function () {
bc++;
if (bc > 1100) {
bc = 1000;
}
duplicateMovieClip ("bullet", "b" + bc, bc);
};
stop();
Instance of Symbol 67 MovieClip "spaceship2" in Frame 486
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Instance of Symbol 67 MovieClip "spaceship" in Frame 486
onClipEvent (enterFrame) {
if (_root.lives == 0) {
_root.gotoAndStop("lose");
}
}
onClipEvent (load) {
_root.spacelives = 25;
_root.spaceSpeed = 5;
}
onClipEvent (enterFrame) {
if (_root.spacelives == 0) {
_root.gotoAndStop("win");
}
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Frame 487
_root.lives = 3;
Instance of Symbol 67 MovieClip "spaceship" in Frame 487
onClipEvent (enterFrame) {
if (_root.lives == 0) {
_root.gotoAndStop("lose");
}
}
onClipEvent (load) {
_root.spacelives = 50;
_root.spaceSpeed = 5;
}
onClipEvent (enterFrame) {
if (_root.spacelives == 0) {
_root.gotoAndStop("win");
}
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Instance of Symbol 67 MovieClip "spaceship3" in Frame 487
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Frame 488
_root.lives = 3;
var bc = 1000;
_root.onMouseDown = function () {
bc++;
if (bc > 1100) {
bc = 1000;
}
duplicateMovieClip ("bullet", "b" + bc, bc);
};
stop();
Instance of Symbol 69 MovieClip "bullet" in Frame 488
onClipEvent (load) {
spd = 20;
_x = _root.gun._x;
_y = _root.gun._y;
_rotation = _root.gun._rotation;
}
onClipEvent (enterFrame) {
if (_name == "bullet") {
_x = -1000;
} else {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if (hitTest(_root.spaceship)) {
_root.spaceship._x = random(550);
_root.spaceship._y = 0;
_root.spacelives = _root.spacelives - 1;
this.removeMovieClip();
}
if (hitTest(_root.spaceship2)) {
_root.spaceship2._x = random(550);
_root.spaceship2._y = 0;
_root.spacelives = _root.spacelives - 1;
this.removeMovieClip();
}
if (hitTest(_root.spaceship3)) {
_root.spaceship3._x = random(550);
_root.spaceship3._y = 0;
_root.spacelives = _root.spacelives - 1;
this.removeMovieClip();
}
}
if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > Stage.height)) {
this.removeMovieClip();
}
}
Instance of Symbol 71 MovieClip "gun" in Frame 488
onClipEvent (load) {
this.swapDepths(99997);
}
onClipEvent (mouseMove) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
}
Instance of Symbol 73 MovieClip "shine" in Frame 488
onClipEvent (load) {
this.swapDepths(99998);
}
onClipEvent (mouseMove) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
}
Instance of Symbol 75 MovieClip "turret" in Frame 488
onClipEvent (load) {
this.swapDepths(99999);
}
Instance of Symbol 67 MovieClip "spaceship" in Frame 488
onClipEvent (enterFrame) {
if (_root.lives == 0) {
_root.gotoAndStop("lose");
}
}
onClipEvent (load) {
_root.spacelives = 70;
_root.spaceSpeed = 7;
}
onClipEvent (enterFrame) {
if (_root.spacelives == 0) {
_root.gotoAndStop("win");
}
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Instance of Symbol 67 MovieClip "spaceship4" in Frame 488
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Frame 489
_root.lives = 3;
var bc = 1000;
_root.onMouseDown = function () {
bc++;
if (bc > 1100) {
bc = 1000;
}
duplicateMovieClip ("bullet", "b" + bc, bc);
};
stop();
Instance of Symbol 67 MovieClip "spaceship" in Frame 489
onClipEvent (enterFrame) {
if (_root.lives == 0) {
_root.gotoAndStop("lose");
}
}
onClipEvent (load) {
_root.spacelives = 100;
_root.spaceSpeed = 10;
}
onClipEvent (enterFrame) {
if (_root.spacelives == 0) {
_root.gotoAndStop("win");
}
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Instance of Symbol 67 MovieClip "spaceship5" in Frame 489
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Frame 490
Mouse.show();
removeMovieClip(_root.turret);
removeMovieClip(_root.gun);
removeMovieClip(_root.shine);
Frame 491
Mouse.show();
removeMovieClip(_root.turret);
removeMovieClip(_root.gun);
removeMovieClip(_root.shine);
Frame 492
_root.lives = 10;
var bc = 1000;
_root.onMouseDown = function () {
bc++;
if (bc > 1100) {
bc = 1000;
}
duplicateMovieClip ("bullet", "b" + bc, bc);
};
stop();
Mouse.hide();
Instance of Symbol 69 MovieClip "bullet" in Frame 492
onClipEvent (load) {
spd = 20;
_x = _root.gun._x;
_y = _root.gun._y;
_rotation = _root.gun._rotation;
}
onClipEvent (enterFrame) {
if (_name == "bullet") {
_x = -1000;
} else {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if (hitTest(_root.spaceship)) {
_root.spaceship._x = random(550);
_root.spaceship._y = 0;
_root.spacelives = _root.spacelives + 1;
this.removeMovieClip();
}
if (hitTest(_root.spaceship2)) {
_root.spaceship2._x = random(550);
_root.spaceship2._y = 0;
_root.spacelives = _root.spacelives + 1;
this.removeMovieClip();
}
if (hitTest(_root.spaceship3)) {
_root.spaceship3._x = random(550);
_root.spaceship3._y = 0;
_root.spacelives = _root.spacelives + 1;
this.removeMovieClip();
}
if (hitTest(_root.spaceship4)) {
_root.spaceship4._x = random(550);
_root.spaceship4._y = 0;
_root.spacelives = _root.spacelives + 1;
this.removeMovieClip();
}
if (hitTest(_root.spaceship5)) {
_root.spaceship5._x = random(550);
_root.spaceship5._y = 0;
_root.spacelives = _root.spacelives + 1;
this.removeMovieClip();
}
if (hitTest(_root.spaceship6)) {
_root.spaceship6._x = random(550);
_root.spaceship6._y = 0;
_root.spacelives = _root.spacelives + 1;
this.removeMovieClip();
}
if (hitTest(_root.spaceship7)) {
_root.spaceship7._x = random(550);
_root.spaceship7._y = 0;
_root.spacelives = _root.spacelives + 1;
this.removeMovieClip();
}
if (hitTest(_root.spaceship8)) {
_root.spaceship8._x = random(550);
_root.spaceship8._y = 0;
_root.spacelives = _root.spacelives + 1;
this.removeMovieClip();
}
if (hitTest(_root.spaceship9)) {
_root.spaceship9._x = random(550);
_root.spaceship9._y = 0;
_root.spacelives = _root.spacelives + 1;
this.removeMovieClip();
}
if (hitTest(_root.spaceship10)) {
_root.spaceship10._x = random(550);
_root.spaceship10._y = 0;
_root.spacelives = _root.spacelives + 1;
this.removeMovieClip();
}
}
if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > Stage.height)) {
this.removeMovieClip();
}
}
Instance of Symbol 71 MovieClip "gun" in Frame 492
onClipEvent (load) {
this.swapDepths(99997);
}
onClipEvent (mouseMove) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
}
Instance of Symbol 73 MovieClip "shine" in Frame 492
onClipEvent (load) {
this.swapDepths(99998);
}
onClipEvent (mouseMove) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
}
Instance of Symbol 75 MovieClip "turret" in Frame 492
onClipEvent (load) {
this.swapDepths(99999);
}
Instance of Symbol 67 MovieClip "spaceship" in Frame 492
onClipEvent (enterFrame) {
if (_root.lives == 0) {
_root.gotoAndStop("endurscore");
}
}
onClipEvent (load) {
_root.spacelives = 0;
_root.spaceSpeed = 5;
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Instance of Symbol 67 MovieClip "spaceship3" in Frame 492
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Instance of Symbol 67 MovieClip "spaceship5" in Frame 492
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Instance of Symbol 67 MovieClip "spaceship4" in Frame 492
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Instance of Symbol 67 MovieClip "spaceship2" in Frame 492
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Instance of Symbol 67 MovieClip "spaceship6" in Frame 492
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Instance of Symbol 67 MovieClip "spaceship7" in Frame 492
onClipEvent (enterFrame) {
if (!this.hitTest(_root.ground)) {
_y = (_y + _root.spaceSpeed);
} else {
this._y = 0;
this._x = random(550);
_root.lives = _root.lives - 1;
}
}
Instance of Symbol 83 MovieClip in Frame 492
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
Mouse.hide();
}
Frame 493
removeMovieClip(_root.turret);
removeMovieClip(_root.gun);
removeMovieClip(_root.shine);
Mouse.show();
if (_root.spacelives < 10) {
_root.total = "thats discraseful you should be ashamed of yourself";
}
if ((_root.spacelives < 50) && (_root.spacelives > 10)) {
_root.total = "the world was destroyed but we didnt go down easy";
}
if ((_root.spacelives < 100) && (_root.spacelives > 50)) {
_root.total = "we only just lost the war but you did well as a defender";
}
if ((_root.spacelives < 200) && (_root.spacelives > 100)) {
_root.total = "you only just saved the planet. but at least we're alive";
}
if ((_root.spacelives < 500) && (_root.spacelives > 200)) {
_root.total = "You saved the planet and got a medal for you excellent work";
}
if ((_root.spacelives < 1000) && (_root.spacelives > 500)) {
_root.total = "you saved the planet all by yourself. great work";
}
if ((_root.spacelives < 2000) && (_root.spacelives > 1000)) {
_root.total = "wholly crap, you anhillated those aliens";
}
if (_root.spacelives > 2000) {
_root.total = "JESUS CHRIST, YOU COULD HAVE COMPLETED THAT WITH YOUR EYES CLOSED";
}
Symbol 23 Button
on (release, keyPress "<Enter>") {
_root.gotoAndPlay(3);
}
Symbol 25 Button
on (release) {
getURL ("http://www.flashtopia.tk", "blank");
}
Symbol 27 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
KB_out = (int(_root.getBytesLoaded() / 1000) + "/") + int(_root.getBytesTotal() / 1000);
if (PercentLoaded != 100) {
setProperty(barmask.bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 27 MovieClip Frame 2
gotoAndPlay (1);
Symbol 53 Button
on (release) {
gotoAndStop ("n00b");
}
Symbol 54 Button
on (release) {
gotoAndStop ("easy");
}
Symbol 55 Button
on (release) {
gotoAndStop ("medium");
}
Symbol 56 Button
on (release) {
gotoAndStop ("hard");
}
Symbol 57 Button
on (release) {
gotoAndStop ("pro");
}
Symbol 58 Button
on (release) {
gotoAndStop ("endurance");
}
Symbol 94 Button
on (release) {
gotoAndStop (484);
}