Frame 1
stop();
flyborg = function () {
getURL ("http://www.flyborg.net", _blank);
};
download = function () {
getURL ("http://www.flyborg.net/download_destroy-the-world.html", _blank);
};
newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
newMenu.builtInItems.quality = true;
visitFlyborg = new ContextMenuItem("Visit my site, Flyborg.net!", flyborg);
downloadGame = new ContextMenuItem("Put this game on your site or download the desktop version!", download);
newMenu.customItems.push(visitFlyborg);
newMenu.customItems.push(downloadGame);
_root.menu = newMenu;
Instance of Symbol 88 MovieClip in Frame 2
on (release) {
getURL ("http://www.galactigames.com/ref.php?id=26", "_blank");
}
Frame 62
function __com_mochibot__(swfid, mc, lv) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = ((((((((((("http://" + mbc) + "/my/core.swf?mv=5&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("33bba917", this, 10301);
Instance of Symbol 193 MovieClip "ufo" in Frame 193
onClipEvent (load) {
maxXright = 15;
maxXleft = -15;
maxYup = -15;
maxYdown = 15;
moveSpeed = 1.7;
var speedx = 0;
var speedy = 0;
var maxDistance = 100;
thisObject = new Object();
theSunObject = new Object();
var rotationSpeed = 6;
}
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
if (_root.game.ufo._rotation > 1) {
if (_root.game.ufo._rotation > 3) {
_root.game.ufo._rotation = _root.game.ufo._rotation - 2;
} else {
_root.game.ufo._rotation = _root.game.ufo._rotation - 0.8;
}
}
if (_root.game.ufo._rotation < -1) {
if (_root.game.ufo._rotation < -3) {
_root.game.ufo._rotation = _root.game.ufo._rotation + 2;
} else {
_root.game.ufo._rotation = _root.game.ufo._rotation + 0.8;
}
}
if (Key.isDown(39)) {
if (speedx < maxXright) {
speedx = speedx + moveSpeed;
_root.game.ufo._rotation = _root.game.ufo._rotation + rotationSpeed;
}
}
if (Key.isDown(37)) {
if (speedx > maxXleft) {
speedx = speedx - moveSpeed;
_root.game.ufo._rotation = _root.game.ufo._rotation - rotationSpeed;
}
}
if (Key.isDown(38)) {
if (speedy > maxYup) {
speedy = speedy - moveSpeed;
}
}
if (Key.isDown(40)) {
if (speedy < maxYdown) {
speedy = speedy + moveSpeed;
}
}
if (Key.isDown(32)) {
tellTarget ("_root.game.ufo.laser") {
play();
};
}
_root.game.ufo._x = _root.game.ufo._x + speedx;
_root.game.ufo._y = _root.game.ufo._y + speedy;
}
thisObject.x = this._x;
thisObject.y = this._y;
theSunObject.x = _root.game.sun._x;
theSunObject.y = _root.game.sun._y;
this.localToGlobal(thisObject);
this.localToGlobal(theSunObject);
myX = thisObject.x;
myY = thisObject.y;
myDistanceX = myX - theSunObject.x;
if (myDistanceX < 0) {
myDistanceX = myDistanceX * -1;
}
myDistanceY = myY - theSunObject.y;
if (myDistanceY < 0) {
myDistanceY = myDistanceY * -1;
}
totalDistance = Math.sqrt((myDistanceY * myDistanceY) + (myDistanceX * myDistanceX));
if (totalDistance > maxDistance) {
_root.game.ufo.sunGlare._alpha = 0;
} else {
_root.game.ufo.sunGlare._alpha = 100 - totalDistance;
_root.game.ufo.sunGlare._rotation = _root.game.ufo.sunGlare._rotation + (-speedx);
}
}
Frame 1160
stop();
_global.damage = 5;
startDrag ("_root.target", true);
var startGame = false;
_global.menuMusic.stop();
_global.gameMusic.stop();
_global.menuMusic = new Sound(_root.alien);
_global.menuMusic.attachSound("theMenuMusic");
_global.menuMusic.setVolume(60);
_global.menuMusic.start(0, 999);
_root.newGame.onRelease = function () {
tellTarget ("_root.startGame") {
play();
};
};
_root.levelSelectBtn.onRelease = function () {
tellTarget ("_root.mask") {
play();
tellTarget ("_root.levelSelect") {
play();
};
};
};
_root.flyborgNet.onRelease = function () {
tellTarget ("_root.mask") {
play();
getURL ("http://www.flyborg.net/", _blank);
};
};
_root.creditsAbout.onRelease = function () {
tellTarget ("_root.mask") {
play();
tellTarget ("_root.creditsAndAbout") {
play();
};
};
};
_root.downloadIt.onRelease = function () {
tellTarget ("_root.mask") {
play();
getURL ("http://www.flyborg.net/download_destroy-the-world.html", _blank);
};
};
Frame 1161
stop();
startDrag ("_root.target", true);
Frame 1162
stop();
startDrag ("_root.target", true);
_global.menuMusic.stop();
_global.gameMusic.stop();
_global.menuMusic = new Sound();
_global.menuMusic.attachSound("theMenuMusic");
_global.menuMusic.setVolume(50);
_global.menuMusic.start(6.85, 999);
Frame 1163
stop();
Mouse.show();
_global.menuMusic.stop();
_global.gameMusic.stop();
var multiKill = 0;
var laserArray = new Array();
laserArray[1] = "_root.game.ufo.laser.laser1";
laserArray[2] = "_root.game.ufo.laser.laser2";
laserArray[3] = "_root.game.ufo.laser.laser3";
laserArray[4] = "_root.game.ufo.laser.laser4";
laserArray[5] = "_root.game.ufo.laser.laser5";
laserArray[6] = "_root.game.ufo.laser.laser6";
laserArray[7] = "_root.game.ufo.laser.laser7";
laserArray[8] = "_root.game.ufo.laser.laser8";
laserArray[9] = "_root.game.ufo.laser.laser9";
laserArray[0] = "_root.game.ufo.laser.laser0";
var gamePlaying = true;
_root.game.ufo.swapDepths(500);
var shields = 100;
var laser = 100;
_root.game.ufo.sunGlare._alpha = 0;
var musicVolume = "default";
_global.menuMusic.stop();
_global.gameMusic = new Sound(_root.theMusic);
_global.gameMusic.attachSound("theGameMusic");
_global.gameMusic.setVolume(65);
_global.gameMusic.start(0, 999);
var currentlyShooting = false;
_global.spawnKilled = function () {
_root.game.ufo.spawnsDown = _root.game.ufo.spawnsDown + 1;
trace("Spawns Left: " + _root.game.ufo.spawnsLeft);
trace("Spawns Down: " + _root.game.ufo.spawnsDown);
};
tellTarget ("_root.game.hayBail") {
gotoAndStop (3);
};
tellTarget ("_root.game.smallShrub") {
gotoAndStop (3);
};
tellTarget ("_root.game.tree") {
gotoAndStop (3);
};
tellTarget ("_root.game.shieldRepairs") {
gotoAndStop (3);
};
tellTarget ("_root.game.laserCharger") {
gotoAndStop (3);
};
tellTarget ("_root.game.farmerWithShotgun") {
gotoAndStop ("nil");
};
tellTarget ("_root.game.farmerWithRocketLauncher") {
gotoAndStop ("nil");
};
tellTarget ("_root.game.rocket") {
gotoAndStop (4);
};
tellTarget ("_root.game.tractor") {
gotoAndStop ("nil");
};
Frame 1165
stop();
startDrag ("_root.target", true);
_global.menuMusic.stop();
_global.gameMusic.stop();
_global.menuMusic = new Sound();
_global.menuMusic.attachSound("theMenuMusic");
_global.menuMusic.setVolume(50);
_global.menuMusic.start(6.85, 999);
Frame 1166
stop();
Mouse.show();
_global.menuMusic.stop();
_global.gameMusic.stop();
var multiKill = 0;
var laserArray = new Array();
laserArray[1] = "_root.game.ufo.laser.laser1";
laserArray[2] = "_root.game.ufo.laser.laser2";
laserArray[3] = "_root.game.ufo.laser.laser3";
laserArray[4] = "_root.game.ufo.laser.laser4";
laserArray[5] = "_root.game.ufo.laser.laser5";
laserArray[6] = "_root.game.ufo.laser.laser6";
laserArray[7] = "_root.game.ufo.laser.laser7";
laserArray[8] = "_root.game.ufo.laser.laser8";
laserArray[9] = "_root.game.ufo.laser.laser9";
laserArray[0] = "_root.game.ufo.laser.laser0";
var gamePlaying = true;
_root.game.ufo.swapDepths(500);
_root.game.trees.swapDepths(501);
var shields = 100;
var laser = 100;
_root.game.ufo.sunGlare._alpha = 0;
var musicVolume = "default";
_global.menuMusic.stop();
_global.gameMusic = new Sound(_root.theMusic);
_global.gameMusic.attachSound("theGameMusic");
_global.gameMusic.setVolume(65);
_global.gameMusic.start(0, 999);
var currentlyShooting = false;
_global.spawnKilled = function () {
trace("Spawns Left: " + _root.game.ufo.spawnsLeft);
trace("Spawns Down: " + _root.game.ufo.spawnsDown);
};
tellTarget ("_root.game.hayBail") {
gotoAndStop ("nil");
};
tellTarget ("_root.game.smallShrub") {
gotoAndStop ("nil");
};
tellTarget ("_root.game.tree") {
gotoAndStop ("nil");
};
tellTarget ("_root.game.shieldRepairs") {
gotoAndStop (3);
};
tellTarget ("_root.game.laserCharger") {
gotoAndStop (3);
};
tellTarget ("_root.game.farmerWithShotgun") {
gotoAndStop ("nil");
};
tellTarget ("_root.game.farmerWithRocketLauncher") {
gotoAndStop ("nil");
};
tellTarget ("_root.game.rocket") {
gotoAndStop (4);
};
tellTarget ("_root.game.tractor") {
gotoAndStop ("nil");
};
Frame 1169
stop();
startDrag ("_root.target", true);
_global.menuMusic.stop();
_global.gameMusic.stop();
_global.menuMusic = new Sound();
_global.menuMusic.attachSound("theMenuMusic");
_global.menuMusic.setVolume(50);
_global.menuMusic.start(6.85, 999);
Frame 1170
stop();
Mouse.show();
_global.menuMusic.stop();
_global.gameMusic.stop();
var multiKill = 0;
var laserArray = new Array();
laserArray[1] = "_root.game.ufo.laser.laser1";
laserArray[2] = "_root.game.ufo.laser.laser2";
laserArray[3] = "_root.game.ufo.laser.laser3";
laserArray[4] = "_root.game.ufo.laser.laser4";
laserArray[5] = "_root.game.ufo.laser.laser5";
laserArray[6] = "_root.game.ufo.laser.laser6";
laserArray[7] = "_root.game.ufo.laser.laser7";
laserArray[8] = "_root.game.ufo.laser.laser8";
laserArray[9] = "_root.game.ufo.laser.laser9";
laserArray[0] = "_root.game.ufo.laser.laser0";
var gamePlaying = true;
_root.game.ufo.swapDepths(500);
var shields = 100;
var laser = 100;
_root.game.ufo.sunGlare._alpha = 0;
var musicVolume = "default";
_global.menuMusic.stop();
_global.gameMusic = new Sound(_root.theMusic);
_global.gameMusic.attachSound("theGameMusic");
_global.gameMusic.setVolume(65);
_global.gameMusic.start(0, 999);
var currentlyShooting = false;
_global.spawnKilled = function () {
_root.game.ufo.spawnsDown = _root.game.ufo.spawnsDown + 1;
trace("Spawns Left: " + _root.game.ufo.spawnsLeft);
trace("Spawns Down: " + _root.game.ufo.spawnsDown);
};
tellTarget ("_root.game.hayBail") {
gotoAndStop (3);
};
tellTarget ("_root.game.smallShrub") {
gotoAndStop (4);
};
tellTarget ("_root.game.tree") {
gotoAndStop (4);
};
tellTarget ("_root.game.shieldRepairs") {
gotoAndStop (3);
};
tellTarget ("_root.game.laserCharger") {
gotoAndStop (3);
};
tellTarget ("_root.game.farmerWithShotgun") {
gotoAndStop ("nil");
};
tellTarget ("_root.game.farmerWithRocketLauncher") {
gotoAndStop ("nil");
};
tellTarget ("_root.game.rocket") {
gotoAndStop (4);
};
tellTarget ("_root.game.tractor") {
gotoAndStop (4);
};
Frame 1172
stop();
startDrag ("_root.target", true);
_global.menuMusic.stop();
_global.gameMusic.stop();
_global.menuMusic = new Sound();
_global.menuMusic.attachSound("theMenuMusic");
_global.menuMusic.setVolume(50);
_global.menuMusic.start(6.85, 999);
Frame 1173
stop();
Mouse.show();
_global.menuMusic.stop();
_global.gameMusic.stop();
var multiKill = 0;
var laserArray = new Array();
laserArray[1] = "_root.game.ufo.laser.laser1";
laserArray[2] = "_root.game.ufo.laser.laser2";
laserArray[3] = "_root.game.ufo.laser.laser3";
laserArray[4] = "_root.game.ufo.laser.laser4";
laserArray[5] = "_root.game.ufo.laser.laser5";
laserArray[6] = "_root.game.ufo.laser.laser6";
laserArray[7] = "_root.game.ufo.laser.laser7";
laserArray[8] = "_root.game.ufo.laser.laser8";
laserArray[9] = "_root.game.ufo.laser.laser9";
laserArray[0] = "_root.game.ufo.laser.laser0";
var gamePlaying = true;
_root.game.ufo.swapDepths(500);
var shields = 100;
var laser = 100;
_root.game.ufo.sunGlare._alpha = 0;
var musicVolume = "default";
_global.menuMusic.stop();
_global.gameMusic = new Sound(_root.theMusic);
_global.gameMusic.attachSound("theGameMusic");
_global.gameMusic.setVolume(65);
_global.gameMusic.start(0, 999);
var currentlyShooting = false;
_global.spawnKilled = function () {
trace("Spawns Left: " + _root.game.ufo.spawnsLeft);
trace("Spawns Down: " + _root.game.ufo.spawnsDown);
};
tellTarget ("_root.game.hayBail") {
gotoAndStop (3);
};
tellTarget ("_root.game.smallShrub") {
gotoAndStop (3);
};
tellTarget ("_root.game.tree") {
gotoAndStop (3);
};
tellTarget ("_root.game.shieldRepairs") {
gotoAndStop (3);
};
tellTarget ("_root.game.laserCharger") {
gotoAndStop (3);
};
tellTarget ("_root.game.farmerWithShotgun") {
gotoAndStop ("nil");
};
tellTarget ("_root.game.farmerWithRocketLauncher") {
gotoAndStop ("nil");
};
tellTarget ("_root.game.rocket") {
gotoAndStop (4);
};
tellTarget ("_root.game.tractor") {
gotoAndStop (3);
};
Frame 1175
stop();
startDrag ("_root.target", true);
_global.menuMusic.stop();
_global.gameMusic.stop();
_global.menuMusic = new Sound();
_global.menuMusic.attachSound("theMenuMusic");
_global.menuMusic.setVolume(50);
_global.menuMusic.start(0, 999);
Symbol 10 Button
on (release) {
play();
}
Instance of Symbol 24 MovieClip in Symbol 25 MovieClip Frame 1
onClipEvent (enterFrame) {
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
PercentLoaded = Math.round(PercentLoaded);
if (PercentLoaded < 100) {
_root.loader.number = PercentLoaded + "%";
} else {
_root.loader.number = "100%";
tellTarget ("_root.go") {
gotoAndStop (2);
};
}
}
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 26
stop();
Symbol 30 MovieClip Frame 59
if (_root.cdInDrive == "yes") {
gotoAndPlay ("cdIsInDrive");
} else {
gotoAndPlay (1);
}
Symbol 30 MovieClip Frame 60
if (_root.cdInDrive == "yes") {
gotoAndPlay ("cdIsInDrive");
} else {
gotoAndPlay (1);
}
Symbol 30 MovieClip Frame 61
if (_root.cdInDrive == "yes") {
gotoAndPlay ("cdIsInDrive");
} else {
gotoAndPlay (1);
}
Symbol 30 MovieClip Frame 62
if (_root.cdInDrive == "yes") {
gotoAndPlay ("cdIsInDrive");
} else {
gotoAndPlay (1);
}
Symbol 30 MovieClip Frame 63
if (_root.cdInDrive == "yes") {
gotoAndPlay ("cdIsInDrive");
} else {
gotoAndPlay (1);
}
Symbol 30 MovieClip Frame 64
if (_root.cdInDrive == "yes") {
gotoAndPlay ("cdIsInDrive");
} else {
gotoAndPlay (1);
}
Symbol 30 MovieClip Frame 65
if (_root.cdInDrive == "yes") {
gotoAndPlay ("cdIsInDrive");
} else {
gotoAndPlay (1);
}
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 6
_parent._parent._parent.damaged = true;
_parent._parent.damaged = true;
_parent._parent._parent._parent.damaged = true;
Symbol 61 MovieClip Frame 17
_parent._parent._parent.damaged = true;
_parent._parent.damaged = true;
_parent._parent._parent._parent.damaged = true;
stop();
Symbol 74 Button
on (release) {
tellTarget ("_root") {
play();
};
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 82 Button
on (release) {
getURL ("http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash", _blank);
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
tellTarget ("_root.blocker") {
gotoAndStop (2);
};
Symbol 112 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 11
stop();
Symbol 197 Button
on (release) {
gotoAndPlay ("end");
}
Symbol 283 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 19
gotoAndPlay ("loopFrame");
Symbol 377 Button
on (release) {
tellTarget ("_root.creditsAndAbout") {
play();
};
tellTarget ("_root.mask") {
play();
};
}
Symbol 387 Button
on (release) {
getURL ("http://www.newgrounds.com/audio/view.php?id=982090&sub=32567", _blank);
}
Symbol 390 Button
on (release) {
getURL ("http://www.newgrounds.com/audio/view.php?id=1502826&sub=49722", _blank);
}
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 16
stop();
Symbol 397 Button
on (release) {
tellTarget ("_root.levelSelect") {
play();
};
tellTarget ("_root.mask") {
play();
};
}
Instance of Symbol 407 MovieClip "hitTester" in Symbol 408 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x - _root.game.ufo.mainSpeed;
if ((((((((((hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) {
if (hitTest(_root.game.hitGround.hit)) {
_root.multiKill = _root.multiKill + 1;
if (_root.multiKill < 2) {
tellTarget (_root.pwnage) {
gotoAndPlay (2);
};
} else {
tellTarget (_root.uberPwnage) {
gotoAndPlay (2);
};
tellTarget (_root.pwnage) {
gotoAndStop (1);
};
}
}
_parent._parent.destroyed = true;
_global.spawnKilled();
tellTarget (_parent._parent) {
gotoAndPlay ("dead");
};
}
if (_parent._parent._x < -100) {
if (_parent._parent.destroyed != true) {
_global.spawnKilled();
}
this._parent._parent.removeMovieClip();
}
} else {
_parent._parent.stop();
tellTarget (_parent._parent.paused) {
gotoAndStop (2);
};
}
}
Instance of Symbol 420 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
tellTarget (_parent._parent._parent) {
play();
};
tellTarget (_parent._parent) {
gotoAndStop (1);
};
}
}
Symbol 422 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 6
_parent._parent._parent.damaged = true;
_parent._parent.damaged = true;
_parent._parent._parent._parent.damaged = true;
Symbol 434 MovieClip Frame 17
_parent._parent._parent.damaged = true;
_parent._parent.damaged = true;
_parent._parent._parent._parent.damaged = true;
stop();
Symbol 469 MovieClip Frame 16
stop();
_parent._parent._parent.removeMovieClip();
this._parent.removeMovieClip();
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 74
_root.gotoAndStop("level3");
Symbol 477 MovieClip Frame 75
_root.gotoAndStop("level3");
Symbol 477 MovieClip Frame 76
_root.gotoAndStop("level3");
Symbol 477 MovieClip Frame 77
_root.gotoAndStop("level3");
Symbol 477 MovieClip Frame 78
_root.gotoAndStop("level3");
Symbol 477 MovieClip Frame 79
_root.gotoAndStop("level3");
Instance of Symbol 407 MovieClip "hitTester" in Symbol 483 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x - _root.game.ufo.mainSpeed;
if (((((((((((hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) | hitTest(_root.game.hitGround.hit)) {
if (_parent._parent.damaged == true) {
if (hitTest(_root.game.hitGround.hit)) {
_root.multiKill = _root.multiKill + 1;
if (_root.multiKill < 2) {
tellTarget (_root.pwnage) {
gotoAndPlay (2);
};
} else {
tellTarget (_root.uberPwnage) {
gotoAndPlay (2);
};
tellTarget (_root.pwnage) {
gotoAndStop (1);
};
}
}
tellTarget (_parent._parent) {
gotoAndPlay ("dead");
};
_parent._parent.destroyed = true;
} else {
tellTarget (_parent._parent.tractorMain.inner) {
gotoAndPlay (2);
};
}
}
if (_parent._parent._x < -100) {
if (_parent._parent.destroyed != true) {
_global.spawnKilled();
}
this._parent._parent.removeMovieClip();
}
} else {
_parent._parent.stop();
tellTarget (_parent._parent.paused) {
gotoAndStop (2);
};
}
}
Symbol 493 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 6
_parent._parent._parent.damaged = true;
_parent._parent.damaged = true;
_parent._parent._parent._parent.damaged = true;
Symbol 493 MovieClip Frame 17
_parent._parent._parent.damaged = true;
_parent._parent.damaged = true;
_parent._parent._parent._parent.damaged = true;
stop();
Symbol 506 MovieClip Frame 1
stop();
Instance of Symbol 505 MovieClip in Symbol 506 MovieClip Frame 4
onClipEvent (load) {
stop();
}
Symbol 514 Button
on (release) {
_global.menuMusic.stop();
_global.gameMusic.stop();
tellTarget ("_root") {
gotoAndStop ("level1");
};
}
on (rollOver) {
tellTarget ("previewBox") {
gotoAndStop (2);
};
}
on (rollOut) {
tellTarget ("previewBox") {
gotoAndStop (1);
};
}
on (dragOut) {
tellTarget ("previewBox") {
gotoAndStop (1);
};
}
Symbol 516 Button
on (release) {
_global.menuMusic.stop();
_global.gameMusic.stop();
tellTarget ("_root") {
gotoAndStop ("level2");
};
}
on (rollOver) {
tellTarget ("previewBox") {
gotoAndStop (3);
};
}
on (rollOut) {
tellTarget ("previewBox") {
gotoAndStop (1);
};
}
on (dragOut) {
tellTarget ("previewBox") {
gotoAndStop (1);
};
}
Symbol 518 Button
on (release) {
_global.menuMusic.stop();
_global.gameMusic.stop();
tellTarget ("_root") {
gotoAndStop ("level3");
};
}
on (rollOver) {
tellTarget ("previewBox") {
gotoAndStop (4);
};
}
on (rollOut) {
tellTarget ("previewBox") {
gotoAndStop (1);
};
}
on (dragOut) {
tellTarget ("previewBox") {
gotoAndStop (1);
};
}
Symbol 520 Button
on (release) {
_global.menuMusic.stop();
_global.gameMusic.stop();
tellTarget ("_root") {
gotoAndStop ("level4");
};
}
on (rollOver) {
tellTarget ("previewBox") {
gotoAndStop (5);
};
}
on (rollOut) {
tellTarget ("previewBox") {
gotoAndStop (1);
};
}
on (dragOut) {
tellTarget ("previewBox") {
gotoAndStop (1);
};
}
Symbol 522 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 16
stop();
Symbol 531 Button
on (release) {
_global.damage = 14;
trace("DAMAGE: " + _global.damage);
tellTarget ("_root") {
play();
};
_global.menuMusic.stop();
_global.gameMusic.stop();
_global.menuMusic = new Sound();
_global.menuMusic.attachSound("theMenuMusic");
_global.menuMusic.setVolume(30);
_global.menuMusic.start(0, 999);
}
Symbol 534 Button
on (release) {
_global.damage = 21;
trace("DAMAGE: " + _global.damage);
tellTarget ("_root") {
play();
};
_global.menuMusic.stop();
_global.gameMusic.stop();
_global.menuMusic = new Sound();
_global.menuMusic.attachSound("theMenuMusic");
_global.menuMusic.setVolume(30);
_global.menuMusic.start(0, 999);
}
Symbol 537 Button
on (release) {
_global.damage = 49;
trace("DAMAGE: " + _global.damage);
tellTarget ("_root") {
play();
};
_global.menuMusic.stop();
_global.gameMusic.stop();
_global.menuMusic = new Sound();
_global.menuMusic.attachSound("theMenuMusic");
_global.menuMusic.setVolume(30);
_global.menuMusic.start(0, 999);
}
Symbol 540 Button
on (release) {
_global.damage = 5;
trace("DAMAGE: " + _global.damage);
tellTarget ("_root") {
play();
};
_global.menuMusic.stop();
_global.gameMusic.stop();
_global.menuMusic = new Sound();
_global.menuMusic.attachSound("theMenuMusic");
_global.menuMusic.setVolume(30);
_global.menuMusic.start(0, 999);
}
Symbol 542 Button
on (release) {
tellTarget ("_root.startGame") {
play();
};
tellTarget ("_root.mask") {
play();
};
}
Symbol 544 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 16
stop();
Instance of Symbol 545 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (enterFrame) {
Mouse.hide();
}
Symbol 557 Button
on (release) {
getURL ("http://www.flyborg.net", _blank);
}
Symbol 562 Button
on (release) {
tellTarget ("_root") {
gotoAndStop ("level1");
};
}
Symbol 578 Button
on (release) {
tellTarget ("_parent") {
play();
};
}
Symbol 581 MovieClip Frame 16
stop();
Symbol 581 MovieClip Frame 30
_root.play();
Symbol 581 MovieClip Frame 31
_root.play();
Symbol 581 MovieClip Frame 32
_root.play();
Symbol 581 MovieClip Frame 33
_root.play();
Symbol 581 MovieClip Frame 34
_root.play();
Symbol 581 MovieClip Frame 35
_root.play();
Instance of Symbol 592 MovieClip in Symbol 593 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x - _root.game.ufo.mainSpeed;
if ((((((((((hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) {
if (destroyed != true) {
_parent._parent.nextFrame();
var destroyed = true;
}
}
if (_parent._parent._x < -200) {
this._parent._parent.removeMovieClip();
}
}
}
Symbol 605 MovieClip Frame 10
stop();
Symbol 606 MovieClip Frame 1
stop();
Instance of Symbol 608 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x - _root.game.ufo.mainSpeed;
if ((((((((((hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) {
_parent._parent.gotoAndStop(2);
}
if (_parent._parent._x < -200) {
this._parent._parent.removeMovieClip();
}
}
}
Symbol 617 MovieClip Frame 13
stop();
Symbol 619 MovieClip Frame 1
stop();
Instance of Symbol 622 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x - _root.game.ufo.mainSpeed;
if ((((((((((hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) {
_parent._parent.gotoAndStop(2);
}
if (_parent._parent._x < -250) {
this._parent._parent.removeMovieClip();
}
}
}
Symbol 625 MovieClip Frame 1
stop();
Instance of Symbol 628 MovieClip in Symbol 629 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x + (_root.game.ufo.mainSpeed * 3.2);
if (hitTest(_root.game.ufo.hitZone)) {
if (destroyed != true) {
_parent._parent.nextFrame();
var destroyed = true;
tellTarget (_root.shieldRepairs) {
gotoAndPlay (2);
};
_root.game.ufo.shieldCharge = _root.game.ufo.shieldCharge + 30;
if (_root.game.ufo.shieldCharge > 100) {
_root.game.ufo.shieldCharge = 100;
}
}
}
if (_parent._parent._x > 650) {
this._parent._parent.removeMovieClip();
}
}
}
Symbol 630 MovieClip Frame 15
stop();
Symbol 631 MovieClip Frame 1
stop();
Instance of Symbol 634 MovieClip in Symbol 635 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x + (_root.game.ufo.mainSpeed * 3.2);
if (hitTest(_root.game.ufo.hitZone)) {
if (destroyed != true) {
_parent._parent.nextFrame();
var destroyed = true;
tellTarget (_root.laserCharge) {
gotoAndPlay (2);
};
tellTarget (_root.hudLaser.superCharge) {
gotoAndPlay (2);
};
}
}
if (_parent._parent._x > 650) {
this._parent._parent.removeMovieClip();
}
}
}
Symbol 636 MovieClip Frame 15
stop();
Symbol 637 MovieClip Frame 1
stop();
Instance of Symbol 648 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.game.ufo.hitZone.hurt)) {
tellTarget (_root.game.ufo.hitZone) {
play();
_root.game.ufo.speedy = _root.game.ufo.speedy - 5;
};
}
}
Instance of Symbol 407 MovieClip "hitTester" in Symbol 653 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x - _root.game.ufo.mainSpeed;
if (_parent._parent._x < -100) {
if (_parent._parent.destroyed != true) {
_global.spawnKilled();
trace("COUNTED AS DESTROYED");
}
this._parent._parent.removeMovieClip();
}
}
}
Symbol 662 MovieClip Frame 57
gotoAndPlay ("start");
Symbol 662 MovieClip Frame 62
_root.multiKill = _root.multiKill - 1;
Symbol 662 MovieClip Frame 78
stop();
Symbol 688 MovieClip Frame 34
_global.newDepth = _global.newDepth + 1;
newName = "rocket" + _global.newDepth;
duplicateMovieClip ("_root.game.rocket", newName, _global.newDepth);
setProperty("_root.game." + newName, _x , this._x - 15);
setProperty("_root.game." + newName, _y , this._y - 45);
Symbol 688 MovieClip Frame 67
gotoAndPlay ("start");
Symbol 688 MovieClip Frame 72
_root.multiKill = _root.multiKill - 1;
Symbol 688 MovieClip Frame 88
stop();
Instance of Symbol 505 MovieClip in Symbol 690 MovieClip Frame 1
onClipEvent (load) {
var thisPosition = new Object();
var speedPlus = 0.032;
var speedX = 0;
var speedY = 12;
var speedMax = 12;
var rotated = 0;
var newTimer = (getTimer() + 4000);
}
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
thisPosition.x = _parent._parent.xyForRocket._x;
thisPosition.y = _parent._parent.xyForRocket._x;
localToGlobal(thisPosition);
myX = thisPosition.x;
myY = thisPosition.y;
ufoX = _root.game.ufo.myX + 70;
ufoY = _root.game.ufo.myY + 100;
lineX = ufoX - myX;
lineY = (ufoY - myY) * -1;
angle = Math.atan(lineY / lineX) / (Math.PI/180);
if (lineX < 0) {
angle = angle + 180;
}
if ((lineX > 0) && (lineY < 0)) {
angle = angle + 360;
}
_parent._parent._rotation = angle * -1;
if (angle > 0) {
if (angle < 90) {
if (speedY < speedMax) {
speedY = speedY + (angle * speedPlus);
}
if (speedX < speedMax) {
speedX = speedX + ((90 - angle) * speedPlus);
}
}
}
if (angle > 90) {
if (angle < 180) {
if (speedY < speedMax) {
speedY = speedY + (angle * speedPlus);
}
if (speedX > (-speedMax)) {
speedX = speedX - ((angle - 90) * speedPlus);
}
}
}
if (angle > 180) {
if (angle < 270) {
if (speedY > (-speedMax)) {
speedY = speedY - ((angle - 180) * speedPlus);
}
if (speedX > (-speedMax)) {
speedX = speedX - ((270 - angle) * speedPlus);
}
}
}
if (angle > 270) {
if (angle < 360) {
if (speedY > (-speedMax)) {
speedY = speedY - ((360 - angle) * speedPlus);
}
if (speedX < speedMax) {
speedX = speedX + ((angle - 270) * speedPlus);
}
}
}
_parent._parent._x = _parent._parent._x + speedX;
_parent._parent._y = _parent._parent._y - speedY;
if (_parent.hitObject.hitTest("_root.game.ufo.hitZone.hurt")) {
tellTarget ("_root.game.ufo.hitZone") {
play();
};
_root.game.ufo.speedy = _root.game.ufo.speedy - (speedY / 2);
_root.game.ufo.speedx = _root.game.ufo.speedx - (speedX / 2);
tellTarget ("_parent._parent") {
gotoAndStop (2);
};
}
if (newTimer < getTimer()) {
tellTarget ("_parent._parent") {
gotoAndStop (3);
};
}
if (this.hitTest("_root.game.earth")) {
tellTarget ("_root.game.hitGround") {
gotoAndPlay (2);
};
_root.game.hitGround._x = this._parent._parent._x;
tellTarget ("_parent._parent") {
gotoAndStop (3);
};
}
if (((((((((((this.hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) | hitTest(_root.game.hitGround.hit)) {
tellTarget ("_parent._parent") {
gotoAndStop (3);
};
}
} else {
newTimer = getTimer() + 2000;
}
}
Symbol 692 MovieClip Frame 12
stop();
_parent._parent._parent.removeMovieClip();
this._parent.removeMovieClip();
Symbol 693 MovieClip Frame 1
stop();
Instance of Symbol 407 MovieClip "hitTester" in Symbol 694 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x + _root.game.ufo.mainSpeed;
if (((((((((((hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) | hitTest(_root.game.hitGround.hit)) {
if (_parent._parent.damaged == true) {
if (hitTest(_root.game.hitGround.hit)) {
_root.multiKill = _root.multiKill + 1;
if (_root.multiKill < 2) {
tellTarget (_root.pwnage) {
gotoAndPlay (2);
};
} else {
tellTarget (_root.uberPwnage) {
gotoAndPlay (2);
};
tellTarget (_root.pwnage) {
gotoAndStop (1);
};
}
}
tellTarget (_parent._parent) {
gotoAndPlay ("dead");
};
_parent._parent.destroyed = true;
} else {
tellTarget (_parent._parent.tractorMain.inner) {
gotoAndPlay (2);
};
}
}
if (_parent._parent._x > 600) {
if (_parent._parent.destroyed != true) {
_global.spawnKilled();
}
this._parent._parent.removeMovieClip();
}
} else {
_parent._parent.stop();
tellTarget (_parent._parent.paused) {
gotoAndStop (2);
};
}
}
Instance of Symbol 407 MovieClip "hitTester" in Symbol 698 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x - _root.game.ufo.mainSpeed;
if (_parent._parent._x < -110) {
if (_parent._parent.destroyed != true) {
_global.spawnKilled();
}
this._parent._parent.removeMovieClip();
trace(this._parent._parent + " NOT DELETED WTF");
}
}
}
Symbol 701 MovieClip Frame 41
_global.newDepth = _global.newDepth + 1;
newName = "rocket" + _global.newDepth;
duplicateMovieClip ("_root.game.rocket", newName, _global.newDepth);
setProperty("_root.game." + newName, _x , this._x - 25);
setProperty("_root.game." + newName, _y , this._y - 65);
Symbol 701 MovieClip Frame 43
_global.newDepth = _global.newDepth + 1;
newName = "rocket" + _global.newDepth;
duplicateMovieClip ("_root.game.rocket", newName, _global.newDepth);
setProperty("_root.game." + newName, _x , this._x - 18);
setProperty("_root.game." + newName, _y , this._y - 65);
Symbol 701 MovieClip Frame 77
gotoAndPlay ("start");
Symbol 701 MovieClip Frame 82
_root.multiKill = _root.multiKill - 1;
Symbol 701 MovieClip Frame 98
stop();
Symbol 712 MovieClip Frame 1
stop();
Symbol 712 MovieClip Frame 2
play();
Symbol 712 MovieClip Frame 3
play();
Symbol 712 MovieClip Frame 4
play();
Symbol 712 MovieClip Frame 5
play();
Symbol 712 MovieClip Frame 6
play();
Symbol 712 MovieClip Frame 7
play();
Symbol 712 MovieClip Frame 8
play();
Symbol 712 MovieClip Frame 9
play();
Symbol 712 MovieClip Frame 10
play();
Symbol 725 MovieClip Frame 1
stop();
Symbol 725 MovieClip Frame 2
_root.game._x = _root.game._x - 3;
laser = new Sound();
laser.attachSound("laser");
laser.start(0, 1);
laser.onSoundComplete();
Symbol 725 MovieClip Frame 3
_root.game._x = _root.game._x + 3;
Symbol 725 MovieClip Frame 4
_root.game._x = _root.game._x + 5;
_root.game._y = _root.game._y - 2;
Symbol 725 MovieClip Frame 5
_root.game._x = _root.game._x - 7;
_root.game._y = _root.game._y + 6;
Symbol 725 MovieClip Frame 6
_root.game._x = _root.game._x + 2;
_root.game._y = _root.game._y - 9;
Symbol 725 MovieClip Frame 7
_root.game._y = _root.game._y + 5;
Symbol 725 MovieClip Frame 8
_root.currentlyShooting = false;
Symbol 727 MovieClip Frame 1
stop();
Symbol 727 MovieClip Frame 2
play();
_root.game._y = _root.game._y - 5;
_root.game.ufo.shieldCharge = _root.game.ufo.shieldCharge - _global.damage;
tellTarget ("_root.damage") {
gotoAndPlay (2);
};
Symbol 727 MovieClip Frame 3
play();
_root.game._x = _root.game._x - 7;
Symbol 727 MovieClip Frame 4
play();
_root.game._y = _root.game._y + 7;
Symbol 727 MovieClip Frame 5
play();
_root.game._x = _root.game._x + 7;
Symbol 727 MovieClip Frame 6
play();
_root.game._y = _root.game._y - 3;
Symbol 727 MovieClip Frame 7
play();
Symbol 727 MovieClip Frame 8
play();
_root.game._y = _root.game._y + 4;
Symbol 727 MovieClip Frame 9
play();
Symbol 727 MovieClip Frame 10
play();
_root.game._y = _root.game._y - 3;
Symbol 727 MovieClip Frame 11
play();
Symbol 727 MovieClip Frame 12
play();
Symbol 727 MovieClip Frame 13
play();
Symbol 727 MovieClip Frame 14
play();
Symbol 727 MovieClip Frame 15
play();
Symbol 727 MovieClip Frame 16
play();
Symbol 727 MovieClip Frame 17
play();
Symbol 729 MovieClip Frame 1
stop();
Symbol 729 MovieClip Frame 2
play();
Instance of Symbol 728 MovieClip in Symbol 729 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.game.ufo._rotation = _root.game.ufo._rotation + 6;
_root.game.ufo.speedy = 3;
}
Symbol 729 MovieClip Frame 3
play();
Symbol 729 MovieClip Frame 4
play();
Symbol 729 MovieClip Frame 5
play();
Symbol 729 MovieClip Frame 6
play();
Symbol 729 MovieClip Frame 7
play();
Symbol 729 MovieClip Frame 8
play();
Symbol 729 MovieClip Frame 9
play();
Symbol 729 MovieClip Frame 10
play();
Symbol 729 MovieClip Frame 11
play();
Symbol 729 MovieClip Frame 12
play();
Symbol 729 MovieClip Frame 13
play();
Symbol 729 MovieClip Frame 14
play();
Symbol 729 MovieClip Frame 15
play();
Symbol 729 MovieClip Frame 16
play();
Symbol 729 MovieClip Frame 17
play();
Symbol 729 MovieClip Frame 18
play();
Symbol 729 MovieClip Frame 19
play();
Symbol 729 MovieClip Frame 20
play();
Symbol 729 MovieClip Frame 21
play();
Symbol 729 MovieClip Frame 22
play();
Symbol 729 MovieClip Frame 23
play();
Symbol 729 MovieClip Frame 24
play();
Symbol 729 MovieClip Frame 25
play();
Symbol 729 MovieClip Frame 26
play();
Symbol 729 MovieClip Frame 27
play();
Symbol 729 MovieClip Frame 28
play();
Symbol 729 MovieClip Frame 29
play();
Symbol 729 MovieClip Frame 30
play();
Symbol 729 MovieClip Frame 31
play();
Symbol 729 MovieClip Frame 32
play();
Symbol 729 MovieClip Frame 33
play();
Symbol 729 MovieClip Frame 34
play();
Symbol 729 MovieClip Frame 35
play();
Symbol 729 MovieClip Frame 36
play();
Symbol 729 MovieClip Frame 37
stop();
trace("YOU LOOSE");
Symbol 729 MovieClip Frame 38
stop();
Symbol 729 MovieClip Frame 39
tellTarget (_root) {
nextFrame();
};
Symbol 729 MovieClip Frame 40
tellTarget (_root) {
nextFrame();
};
Symbol 729 MovieClip Frame 41
tellTarget (_root) {
nextFrame();
};
Instance of Symbol 735 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest("_root.game.ufo.hitZone")) {
_root.game.ufo.speedy = 4;
}
}
Instance of Symbol 735 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest("_root.game.ufo.hitZone")) {
if (_root.game.ufo.speedx < 0) {
_root.game.ufo.speedx = -((_root.game.ufo.speedx / 2) - 2);
}
}
}
Instance of Symbol 735 MovieClip in Symbol 738 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest("_root.game.ufo.hitZone")) {
if (_root.game.ufo.speedx > 0) {
_root.game.ufo.speedx = -((_root.game.ufo.speedx / 2) + 2);
}
}
}
Instance of Symbol 735 MovieClip in Symbol 739 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest("_root.game.ufo.hitZone")) {
_root.game.ufo.speedy = -4;
}
}
Instance of Symbol 662 MovieClip "farmerWithShotgun" in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
var destroyed = false;
}
Instance of Symbol 688 MovieClip "farmerWithRocketLauncher" in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
var destroyed = false;
}
Instance of Symbol 701 MovieClip "tractor" in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
var damaged = false;
var destroyed = false;
}
Instance of Symbol 734 MovieClip "ufo" in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
maxXright = 15;
maxXleft = -15;
maxYup = -15;
maxYdown = 15;
var moveSpeed = 1.7;
var speedx = 0;
var speedy = 0;
var mainSpeed = 3;
var maxDistance = 100;
thisObject = new Object();
theSunObject = new Object();
var rotationSpeed = 6;
var mainLandStartX = _root.game.mainLand._x;
var mainLand2StartX = _root.game.mainLand2._x;
var weaponCharge = 100;
var shieldCharge = 100;
var timeSinceStart = getTimer();
var spawnsLeft = 50;
var spawnsDown = 0;
var maxBonus = 5;
_global.newDepth = 24;
duplicate = function (movieClip) {
if (((movieclip == "tractor") | (movieClip == "farmerWithShotgun")) | (movieClip == "farmerWithRocketLauncher")) {
spawnsLeft = spawnsLeft - 1;
}
if (spawnsLeft > 0) {
_global.newDepth = _global.newDepth + 1;
if (movieClip == "tractor") {
duplicateMovieClip ("_root.game." + movieClip, movieClip + _global.newDepth, _global.newDepth - 10);
} else {
duplicateMovieClip ("_root.game." + movieClip, movieClip + _global.newDepth, _global.newDepth);
}
trace("Spawn: " + movieClip);
}
};
spawnSomething = function () {
var _local1 = Math.round(Math.random() * 100);
if ((_local1 > 0) & (_local1 < 36)) {
duplicate("farmerWithShotgun");
}
if ((_local1 > 35) & (_local1 < 61)) {
duplicate("farmerWithRocketLauncher");
}
if ((_local1 > 60) & (_local1 < 76)) {
duplicate("tractor");
}
if ((_local1 > 75) & (_local1 < 85)) {
duplicate("hayBail");
}
if ((_local1 > 84) & (_local1 < 90)) {
duplicate("smallShrub");
}
if ((_local1 > 89) & (_local1 < 94)) {
duplicate("tree");
}
if ((_local1 > 93) & (_local1 < 97)) {
if (maxBonus > 0) {
maxBonus = maxBonus - 1;
duplicate("shieldRepairs");
}
}
if ((_local1 > 96) & (_local1 < 101)) {
if (maxBonus > 0) {
maxBonus = maxBonus - 1;
duplicate("laserCharger");
}
}
};
}
onClipEvent (enterFrame) {
if (spawnsLeft > 0) {
_root.farmers = spawnsLeft;
} else {
_root.farmers = 0;
}
if (_root.multiKill < 0) {
_root.multiKill = 0;
}
if (_root.gamePlaying == true) {
newTimer = getTimer() - timeSinceStart;
if (newTimer > 2000) {
spawnSomething();
timeSinceStart = getTimer();
}
if (_root.game.ufo._rotation > 1) {
if (_root.game.ufo._rotation > 3) {
_root.game.ufo._rotation = _root.game.ufo._rotation - 2;
} else {
_root.game.ufo._rotation = _root.game.ufo._rotation - 0.8;
}
}
if (_root.game.ufo._rotation < -1) {
if (_root.game.ufo._rotation < -3) {
_root.game.ufo._rotation = _root.game.ufo._rotation + 2;
} else {
_root.game.ufo._rotation = _root.game.ufo._rotation + 0.8;
}
}
if (Key.isDown(39)) {
if (speedx < maxXright) {
speedx = speedx + moveSpeed;
}
if (_root.game.ufo._rotation < 60) {
_root.game.ufo._rotation = _root.game.ufo._rotation + rotationSpeed;
}
}
if (Key.isDown(37)) {
if (speedx > maxXleft) {
speedx = speedx - moveSpeed;
}
if (_root.game.ufo._rotation > -60) {
_root.game.ufo._rotation = _root.game.ufo._rotation - rotationSpeed;
}
}
if (Key.isDown(38)) {
if (speedy > maxYup) {
speedy = speedy - moveSpeed;
}
}
if (Key.isDown(40)) {
if (speedy < maxYdown) {
speedy = speedy + moveSpeed;
}
}
if (Key.isDown(32)) {
if (_root.currentlyShooting == false) {
if (weaponCharge < 15) {
tellTarget ("_root.hudLaser.noCharge") {
gotoAndPlay (2);
};
}
if (weaponCharge >= 15) {
_root.currentlyShooting = true;
weaponCharge = weaponCharge - 15;
tellTarget ("_root.game.ufo.laser") {
gotoAndPlay (2);
};
}
}
}
_root.game.ufo._x = _root.game.ufo._x + speedx;
_root.game.ufo._y = _root.game.ufo._y + speedy;
thisObject.x = this._x;
thisObject.y = this._y;
theSunObject.x = _root.game.sun._x;
theSunObject.y = _root.game.sun._y;
_parent._parent._root.localToGlobal(thisObject);
_parent._parent._root._parent.localToGlobal(theSunObject);
myX = thisObject.x;
myY = thisObject.y;
myDistanceX = myX - theSunObject.x;
if (myDistanceX < 0) {
myDistanceX = myDistanceX * -1;
}
myDistanceY = myY - theSunObject.y;
if (myDistanceY < 0) {
myDistanceY = myDistanceY * -1;
}
totalDistance = Math.sqrt((myDistanceY * myDistanceY) + (myDistanceX * myDistanceX));
if (totalDistance > maxDistance) {
_root.game.ufo.sunGlare._alpha = 0;
} else {
_root.game.ufo.sunGlare._alpha = 100 - totalDistance;
_root.game.ufo.sunGlare._rotation = _root.game.ufo.sunGlare._rotation - speedx;
}
_root.game.mainLand._x = _root.game.mainLand._x - mainSpeed;
if (_root.game.mainLand._x < -690) {
_root.game.mainLand._x = mainLandStartX;
}
_root.game.mainLand2._x = _root.game.mainLand2._x - (mainSpeed / 2);
if (_root.game.mainLand2._x < -690) {
_root.game.mainLand2._x = mainLand2StartX;
}
_root.game.clouds._x = _root.game.clouds._x - 0.5;
_root.game.sun._x = _root.game.sun._x - 0.15;
if (weaponCharge <= 99.4) {
weaponCharge = weaponCharge + 0.7;
}
_root.hudLaser.laserCharge._xscale = weaponCharge;
if (shieldCharge <= 99.9) {
shieldCharge = shieldCharge + 0.05;
}
_root.hudShield.shieldCharge._xscale = shieldCharge;
if (shieldCharge < 0) {
tellTarget (_root.game.ufo.death) {
play();
};
tellTarget (_root.dead) {
play();
};
shieldCharge = -200;
}
if (spawnsLeft <= -1) {
trace(spawnsLeft);
tellTarget (_root.youWin) {
play();
};
}
}
}
Symbol 745 Button
on (release) {
tellTarget ("_root.theMusic") {
gotoAndStop (1);
};
tellTarget ("_root.theControls") {
gotoAndStop (1);
};
_root.gamePlaying = false;
nextFrame();
tellTarget ("_root.game.ufo") {
stop();
};
tellTarget ("_root.game.ufo.light") {
stop();
};
}
Symbol 755 Button
on (release) {
_root.gamePlaying = true;
prevFrame();
tellTarget ("_root.game.ufo") {
play();
};
tellTarget ("_root.game.ufo.light") {
play();
};
}
Symbol 765 Button
on (release) {
tellTarget ("_root") {
gotoAndStop ("start");
};
}
Symbol 768 Button
on (release) {
tellTarget ("_root") {
prevFrame();
};
}
Symbol 773 Button
on (release) {
getURL ("http://www.flyborg.net", _blank);
}
Symbol 776 Button
on (release) {
getURL ("http://www.flyborg.net/download_destroy-the-world.html", _blank);
}
Symbol 780 MovieClip Frame 1
stop();
Instance of Symbol 746 MovieClip in Symbol 780 MovieClip Frame 1
onClipEvent (keyDown) {
if (Key.isDown(80)) {
_root.gamePlaying = false;
tellTarget ("_root.game.ufo") {
stop();
};
tellTarget ("_root.game.ufo.light") {
stop();
};
tellTarget ("_root.theMusic") {
gotoAndStop (1);
};
tellTarget ("_root.theControls") {
gotoAndStop (1);
};
tellTarget ("_root.theMenu") {
gotoAndStop (2);
};
}
}
Instance of Symbol 762 MovieClip "difficulty" in Symbol 780 MovieClip Frame 2
onClipEvent (load) {
if (_global.damage == 5) {
tellTarget ("_root.theMenu.difficulty") {
gotoAndStop (4);
};
}
if (_global.damage == 14) {
tellTarget ("_root.theMenu.difficulty") {
gotoAndStop (1);
};
}
if (_global.damage == 21) {
tellTarget ("_root.theMenu.difficulty") {
gotoAndStop (2);
};
}
if (_global.damage == 49) {
tellTarget ("_root.theMenu.difficulty") {
gotoAndStop (3);
};
}
}
Instance of Symbol 746 MovieClip in Symbol 780 MovieClip Frame 2
onClipEvent (keyDown) {
if (Key.isDown(80)) {
_root.gamePlaying = true;
tellTarget ("_root.game.ufo") {
play();
};
tellTarget ("_root.game.ufo.light") {
play();
};
tellTarget ("_root.theMenu") {
gotoAndStop (1);
};
}
}
Instance of Symbol 88 MovieClip in Symbol 780 MovieClip Frame 2
on (release) {
getURL ("http://www.galactigames.com/ref.php?id=26", "_blank");
}
Symbol 785 Button
on (release) {
tellTarget ("_root.theMenu") {
gotoAndStop (1);
};
tellTarget ("_root.theControls") {
gotoAndStop (1);
};
_root.gamePlaying = false;
tellTarget ("_root.game.ufo") {
stop();
};
tellTarget ("_root.game.ufo.light") {
stop();
};
nextFrame();
if (_root.musicVolume == "off") {
tellTarget ("musicPointer") {
gotoAndStop ("off");
};
}
if (_root.musicVolume == "low") {
tellTarget ("musicPointer") {
gotoAndStop ("low");
};
}
if (_root.musicVolume == "medium") {
tellTarget ("musicPointer") {
gotoAndStop ("medium");
};
}
if (_root.musicVolume == "default") {
tellTarget ("musicPointer") {
gotoAndStop ("default");
};
}
if (_root.musicVolume == "high") {
tellTarget ("musicPointer") {
gotoAndStop ("high");
};
}
}
Symbol 788 Button
on (release) {
_root.gamePlaying = true;
tellTarget ("_root.game.ufo") {
play();
};
tellTarget ("_root.game.ufo.light") {
play();
};
prevFrame();
}
Symbol 793 Button
on (release) {
_global.gameMusic.setVolume(0);
tellTarget ("musicPointer") {
gotoAndStop ("off");
};
_root.musicVolume = "off";
}
Symbol 797 Button
on (release) {
_global.gameMusic.setVolume(25);
tellTarget ("musicPointer") {
gotoAndStop ("low");
};
_root.musicVolume = "low";
}
Symbol 801 Button
on (release) {
_global.gameMusic.setVolume(45);
tellTarget ("musicPointer") {
gotoAndStop ("medium");
};
_root.musicVolume = "medium";
}
Symbol 805 Button
on (release) {
_global.gameMusic.setVolume(70);
tellTarget ("musicPointer") {
gotoAndStop ("default");
};
_root.musicVolume = "default";
}
Symbol 809 Button
on (release) {
_global.gameMusic.setVolume(100);
tellTarget ("musicPointer") {
gotoAndStop ("high");
};
_root.musicVolume = "high";
}
Symbol 815 MovieClip Frame 1
stop();
Symbol 817 MovieClip Frame 1
stop();
Instance of Symbol 746 MovieClip in Symbol 817 MovieClip Frame 1
onClipEvent (keyDown) {
if (Key.isDown(77)) {
_root.gamePlaying = false;
tellTarget ("_root.game.ufo") {
stop();
};
tellTarget ("_root.game.ufo.light") {
stop();
};
tellTarget ("_root.theControls") {
gotoAndStop (1);
};
tellTarget ("_root.theMenu") {
gotoAndStop (1);
};
tellTarget ("_root.theMusic") {
gotoAndStop (2);
};
}
}
Instance of Symbol 746 MovieClip in Symbol 817 MovieClip Frame 2
onClipEvent (keyDown) {
if (Key.isDown(77)) {
_root.gamePlaying = true;
tellTarget ("_root.game.ufo") {
play();
};
tellTarget ("_root.game.ufo.light") {
play();
};
tellTarget ("_root.theMusic") {
gotoAndStop (1);
};
}
}
Symbol 822 Button
on (release) {
tellTarget ("_root.theMenu") {
gotoAndStop (1);
};
tellTarget ("_root.theMusic") {
gotoAndStop (1);
};
_root.buttonSelection = "controls";
_root.gamePlaying = false;
nextFrame();
tellTarget ("_root.game.ufo") {
stop();
};
tellTarget ("_root.game.ufo.light") {
stop();
};
}
Symbol 831 MovieClip Frame 1
stop();
Instance of Symbol 746 MovieClip in Symbol 831 MovieClip Frame 1
onClipEvent (keyDown) {
if (Key.isDown(67)) {
_root.gamePlaying = false;
tellTarget ("_root.game.ufo") {
stop();
};
tellTarget ("_root.game.ufo.light") {
stop();
};
tellTarget ("_root.theMusic") {
gotoAndStop (1);
};
tellTarget ("_root.theMenu") {
gotoAndStop (1);
};
tellTarget ("_root.theControls") {
gotoAndStop (2);
};
}
}
Instance of Symbol 628 MovieClip in Symbol 831 MovieClip Frame 2
onClipEvent (load) {
tellTarget (this) {
gotoAndStop (3);
};
}
Instance of Symbol 634 MovieClip in Symbol 831 MovieClip Frame 2
onClipEvent (load) {
tellTarget (this) {
gotoAndStop (3);
};
}
Instance of Symbol 505 MovieClip in Symbol 831 MovieClip Frame 2
onClipEvent (load) {
tellTarget (this) {
gotoAndStop (2);
};
}
Instance of Symbol 746 MovieClip in Symbol 831 MovieClip Frame 2
onClipEvent (keyDown) {
if (Key.isDown(67)) {
_root.gamePlaying = true;
tellTarget ("_root.game.ufo") {
play();
};
tellTarget ("_root.game.ufo.light") {
play();
};
tellTarget ("_root.theControls") {
gotoAndStop (1);
};
}
}
Symbol 839 MovieClip Frame 1
stop();
Symbol 839 MovieClip Frame 2
play();
Symbol 839 MovieClip Frame 3
play();
Symbol 839 MovieClip Frame 4
play();
Symbol 839 MovieClip Frame 5
play();
Symbol 839 MovieClip Frame 6
play();
Symbol 839 MovieClip Frame 7
play();
Symbol 839 MovieClip Frame 8
play();
Symbol 839 MovieClip Frame 9
play();
Symbol 839 MovieClip Frame 10
play();
Symbol 839 MovieClip Frame 11
play();
Symbol 839 MovieClip Frame 12
play();
Symbol 839 MovieClip Frame 13
play();
Symbol 839 MovieClip Frame 14
play();
Symbol 839 MovieClip Frame 15
play();
Symbol 839 MovieClip Frame 16
play();
Symbol 839 MovieClip Frame 17
play();
Symbol 839 MovieClip Frame 18
play();
Symbol 839 MovieClip Frame 19
play();
Symbol 839 MovieClip Frame 20
play();
Symbol 839 MovieClip Frame 21
play();
Symbol 839 MovieClip Frame 22
play();
Symbol 839 MovieClip Frame 23
play();
Symbol 839 MovieClip Frame 24
play();
Symbol 839 MovieClip Frame 25
play();
Symbol 839 MovieClip Frame 26
play();
Symbol 839 MovieClip Frame 27
play();
Symbol 839 MovieClip Frame 28
play();
Symbol 839 MovieClip Frame 29
play();
Symbol 839 MovieClip Frame 30
play();
Symbol 839 MovieClip Frame 31
play();
Symbol 839 MovieClip Frame 32
play();
Symbol 839 MovieClip Frame 33
play();
Symbol 839 MovieClip Frame 34
play();
Symbol 839 MovieClip Frame 35
play();
Symbol 848 MovieClip Frame 1
stop();
Symbol 848 MovieClip Frame 2
play();
Symbol 848 MovieClip Frame 3
play();
Symbol 848 MovieClip Frame 4
play();
Symbol 848 MovieClip Frame 5
play();
Symbol 848 MovieClip Frame 6
play();
Symbol 848 MovieClip Frame 7
play();
Symbol 848 MovieClip Frame 8
play();
Symbol 848 MovieClip Frame 9
play();
Symbol 848 MovieClip Frame 10
play();
Symbol 848 MovieClip Frame 11
play();
Symbol 848 MovieClip Frame 12
play();
Symbol 848 MovieClip Frame 13
play();
Symbol 848 MovieClip Frame 14
play();
Symbol 848 MovieClip Frame 15
play();
Symbol 848 MovieClip Frame 16
play();
Symbol 848 MovieClip Frame 17
play();
Symbol 848 MovieClip Frame 18
play();
Symbol 848 MovieClip Frame 19
play();
Symbol 848 MovieClip Frame 20
play();
Symbol 848 MovieClip Frame 21
play();
Symbol 848 MovieClip Frame 22
play();
Symbol 848 MovieClip Frame 23
play();
Symbol 848 MovieClip Frame 24
play();
Symbol 848 MovieClip Frame 25
play();
Symbol 848 MovieClip Frame 26
play();
Symbol 848 MovieClip Frame 27
play();
Symbol 848 MovieClip Frame 28
play();
Symbol 848 MovieClip Frame 29
play();
Symbol 848 MovieClip Frame 30
play();
Symbol 848 MovieClip Frame 31
play();
Symbol 848 MovieClip Frame 32
play();
Symbol 848 MovieClip Frame 33
play();
Symbol 848 MovieClip Frame 34
play();
Symbol 848 MovieClip Frame 35
play();
Symbol 858 MovieClip Frame 1
stop();
Symbol 858 MovieClip Frame 2
play();
Symbol 858 MovieClip Frame 3
play();
Symbol 858 MovieClip Frame 4
play();
Symbol 858 MovieClip Frame 5
play();
Symbol 858 MovieClip Frame 6
play();
Symbol 858 MovieClip Frame 7
play();
Symbol 858 MovieClip Frame 8
play();
Symbol 858 MovieClip Frame 9
play();
Symbol 858 MovieClip Frame 10
play();
Symbol 858 MovieClip Frame 11
play();
Symbol 858 MovieClip Frame 12
play();
Symbol 858 MovieClip Frame 13
play();
Symbol 858 MovieClip Frame 14
play();
Symbol 858 MovieClip Frame 15
play();
Symbol 858 MovieClip Frame 16
play();
Symbol 858 MovieClip Frame 17
play();
Symbol 858 MovieClip Frame 18
play();
Symbol 858 MovieClip Frame 19
play();
Symbol 858 MovieClip Frame 20
play();
Symbol 858 MovieClip Frame 21
play();
Symbol 858 MovieClip Frame 22
play();
Symbol 858 MovieClip Frame 23
play();
Symbol 858 MovieClip Frame 24
play();
Symbol 858 MovieClip Frame 25
play();
Symbol 858 MovieClip Frame 26
play();
Symbol 858 MovieClip Frame 27
play();
Symbol 858 MovieClip Frame 28
play();
Symbol 858 MovieClip Frame 29
play();
Symbol 865 MovieClip Frame 1
stop();
Symbol 865 MovieClip Frame 2
play();
Symbol 865 MovieClip Frame 3
play();
Symbol 865 MovieClip Frame 4
play();
Symbol 865 MovieClip Frame 5
play();
Symbol 865 MovieClip Frame 6
play();
Symbol 865 MovieClip Frame 7
play();
Symbol 865 MovieClip Frame 8
play();
Symbol 865 MovieClip Frame 9
play();
Symbol 865 MovieClip Frame 10
play();
Symbol 865 MovieClip Frame 11
play();
Symbol 865 MovieClip Frame 12
play();
Symbol 865 MovieClip Frame 13
play();
Symbol 865 MovieClip Frame 14
play();
Symbol 865 MovieClip Frame 15
play();
Symbol 865 MovieClip Frame 16
play();
Symbol 865 MovieClip Frame 17
play();
Symbol 865 MovieClip Frame 18
play();
Symbol 865 MovieClip Frame 19
play();
Symbol 865 MovieClip Frame 20
play();
Symbol 865 MovieClip Frame 21
play();
Symbol 865 MovieClip Frame 22
play();
Symbol 865 MovieClip Frame 23
play();
Symbol 865 MovieClip Frame 24
play();
Symbol 865 MovieClip Frame 25
play();
Symbol 865 MovieClip Frame 26
play();
Symbol 865 MovieClip Frame 27
play();
Symbol 865 MovieClip Frame 28
play();
Symbol 865 MovieClip Frame 29
play();
Symbol 865 MovieClip Frame 30
play();
Symbol 865 MovieClip Frame 31
play();
Symbol 865 MovieClip Frame 32
play();
Symbol 865 MovieClip Frame 33
play();
Symbol 865 MovieClip Frame 34
play();
Symbol 865 MovieClip Frame 35
play();
Symbol 865 MovieClip Frame 36
play();
Symbol 865 MovieClip Frame 37
play();
Symbol 865 MovieClip Frame 38
play();
Symbol 865 MovieClip Frame 39
play();
Symbol 865 MovieClip Frame 40
play();
Symbol 865 MovieClip Frame 41
play();
Symbol 865 MovieClip Frame 42
play();
Symbol 865 MovieClip Frame 43
play();
Symbol 865 MovieClip Frame 44
play();
Symbol 865 MovieClip Frame 45
play();
Symbol 865 MovieClip Frame 46
play();
Symbol 865 MovieClip Frame 47
play();
Symbol 865 MovieClip Frame 48
play();
Symbol 865 MovieClip Frame 49
play();
Symbol 865 MovieClip Frame 50
play();
Symbol 865 MovieClip Frame 51
play();
Symbol 865 MovieClip Frame 52
play();
Symbol 865 MovieClip Frame 53
play();
Symbol 865 MovieClip Frame 54
play();
Symbol 865 MovieClip Frame 55
play();
Symbol 865 MovieClip Frame 56
play();
Symbol 865 MovieClip Frame 57
play();
Symbol 870 MovieClip Frame 1
stop();
Symbol 870 MovieClip Frame 2
play();
Symbol 870 MovieClip Frame 3
play();
Symbol 870 MovieClip Frame 4
play();
Symbol 870 MovieClip Frame 5
play();
Symbol 870 MovieClip Frame 6
play();
Symbol 870 MovieClip Frame 7
play();
Symbol 870 MovieClip Frame 8
play();
Symbol 870 MovieClip Frame 9
play();
Symbol 870 MovieClip Frame 10
play();
Symbol 870 MovieClip Frame 11
play();
Symbol 870 MovieClip Frame 12
play();
Symbol 870 MovieClip Frame 13
play();
Symbol 870 MovieClip Frame 14
play();
Symbol 870 MovieClip Frame 15
play();
Symbol 870 MovieClip Frame 16
play();
Symbol 870 MovieClip Frame 17
play();
Symbol 870 MovieClip Frame 18
play();
Symbol 870 MovieClip Frame 19
play();
Symbol 870 MovieClip Frame 20
play();
Symbol 870 MovieClip Frame 21
play();
Symbol 870 MovieClip Frame 22
play();
Symbol 870 MovieClip Frame 23
play();
Symbol 870 MovieClip Frame 24
play();
Symbol 870 MovieClip Frame 25
play();
Symbol 870 MovieClip Frame 26
play();
Symbol 875 MovieClip Frame 1
stop();
Symbol 875 MovieClip Frame 2
play();
if (_root.multiKill > 0) {
_root.multiKill = 0;
}
Symbol 875 MovieClip Frame 3
play();
Symbol 875 MovieClip Frame 4
play();
Symbol 875 MovieClip Frame 5
play();
Symbol 875 MovieClip Frame 6
play();
Symbol 875 MovieClip Frame 7
play();
Symbol 875 MovieClip Frame 8
play();
Symbol 875 MovieClip Frame 9
play();
Symbol 875 MovieClip Frame 10
play();
Symbol 875 MovieClip Frame 11
play();
Symbol 875 MovieClip Frame 12
play();
Symbol 875 MovieClip Frame 13
play();
Symbol 875 MovieClip Frame 14
play();
Symbol 875 MovieClip Frame 15
play();
Symbol 875 MovieClip Frame 16
play();
Symbol 875 MovieClip Frame 17
play();
Symbol 875 MovieClip Frame 18
play();
Symbol 875 MovieClip Frame 19
play();
Symbol 875 MovieClip Frame 20
play();
Symbol 875 MovieClip Frame 21
play();
Symbol 875 MovieClip Frame 22
play();
Symbol 875 MovieClip Frame 23
play();
Symbol 875 MovieClip Frame 24
play();
Symbol 875 MovieClip Frame 25
play();
Symbol 875 MovieClip Frame 26
play();
Symbol 875 MovieClip Frame 27
play();
Symbol 875 MovieClip Frame 28
play();
Symbol 875 MovieClip Frame 29
play();
Symbol 875 MovieClip Frame 30
play();
Symbol 875 MovieClip Frame 31
play();
Symbol 875 MovieClip Frame 32
play();
Symbol 875 MovieClip Frame 33
play();
Symbol 894 MovieClip Frame 1
stop();
Symbol 894 MovieClip Frame 35
tellTarget (_root) {
gotoAndStop ("level2");
};
Symbol 898 MovieClip Frame 1
stop();
Instance of Symbol 919 MovieClip in Symbol 920 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.game.ufo.weaponCharge <= 96) {
_root.game.ufo.weaponCharge = _root.game.ufo.weaponCharge + 4;
}
}
Symbol 923 MovieClip Frame 1
stop();
Instance of Symbol 918 MovieClip in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.game.ufo.weaponCharge <= 96) {
_root.game.ufo.weaponCharge = _root.game.ufo.weaponCharge + 4;
}
}
Symbol 939 MovieClip Frame 9
stop();
Symbol 943 Button
on (release) {
gotoAndStop ("level1");
}
Symbol 946 Button
on (release) {
gotoAndStop (1160);
}
Symbol 950 MovieClip Frame 16
stop();
Symbol 950 MovieClip Frame 30
_root.play();
Symbol 950 MovieClip Frame 31
_root.play();
Symbol 950 MovieClip Frame 32
_root.play();
Symbol 950 MovieClip Frame 33
_root.play();
Symbol 950 MovieClip Frame 34
_root.play();
Symbol 950 MovieClip Frame 35
_root.play();
Symbol 960 MovieClip Frame 1
stop();
Symbol 960 MovieClip Frame 74
_root.gotoAndStop("level3");
Symbol 960 MovieClip Frame 75
_root.gotoAndStop("level3");
Symbol 960 MovieClip Frame 76
_root.gotoAndStop("level3");
Symbol 960 MovieClip Frame 77
_root.gotoAndStop("level3");
Symbol 960 MovieClip Frame 78
_root.gotoAndStop("level3");
Symbol 960 MovieClip Frame 79
_root.gotoAndStop("level3");
Instance of Symbol 505 MovieClip in Symbol 962 MovieClip Frame 1
onClipEvent (load) {
var thisPosition = new Object();
var speedPlus = 0.032;
var speedX = 0;
var speedY = 12;
var speedMax = 12;
var rotated = 0;
var newTimer = (getTimer() + 4000);
}
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
thisPosition.x = _parent._parent.xyForRocket._x;
thisPosition.y = _parent._parent.xyForRocket._x;
localToGlobal(thisPosition);
myX = thisPosition.x;
myY = thisPosition.y;
ufoX = _root.game.theShip._x + 70;
ufoY = _root.game.theShip._y + 100;
lineX = ufoX - myX;
lineY = (ufoY - myY) * -1;
angle = Math.atan(lineY / lineX) / (Math.PI/180);
if (lineX < 0) {
angle = angle + 180;
}
if ((lineX > 0) && (lineY < 0)) {
angle = angle + 360;
}
_parent._parent._rotation = angle * -1;
if (angle > 0) {
if (angle < 90) {
if (speedY < speedMax) {
speedY = speedY + (angle * speedPlus);
}
if (speedX < speedMax) {
speedX = speedX + ((90 - angle) * speedPlus);
}
}
}
if (angle > 90) {
if (angle < 180) {
if (speedY < speedMax) {
speedY = speedY + (angle * speedPlus);
}
if (speedX > (-speedMax)) {
speedX = speedX - ((angle - 90) * speedPlus);
}
}
}
if (angle > 180) {
if (angle < 270) {
if (speedY > (-speedMax)) {
speedY = speedY - ((angle - 180) * speedPlus);
}
if (speedX > (-speedMax)) {
speedX = speedX - ((270 - angle) * speedPlus);
}
}
}
if (angle > 270) {
if (angle < 360) {
if (speedY > (-speedMax)) {
speedY = speedY - ((360 - angle) * speedPlus);
}
if (speedX < speedMax) {
speedX = speedX + ((angle - 270) * speedPlus);
}
}
}
_parent._parent._x = _parent._parent._x + speedX;
_parent._parent._y = _parent._parent._y - speedY;
if (_parent.hitObject.hitTest("_root.game.ufo.hitZone.hurt")) {
tellTarget ("_root.game.ufo.hitZone") {
play();
};
_root.game.ufo.speedy = _root.game.ufo.speedy - (speedY / 2);
_root.game.ufo.speedx = _root.game.ufo.speedx - (speedX / 2);
tellTarget ("_parent._parent") {
gotoAndStop (2);
};
}
if (_parent.hitObject.hitTest("_root.game.theShip")) {
_root.game.ufo.mothershipShields = _root.game.ufo.mothershipShields - 8;
tellTarget ("_parent._parent") {
gotoAndStop (2);
};
if (_root.game.ufo.mothershipShields < 0) {
_root.gotoAndStop("loose2mothership");
}
}
if (newTimer < getTimer()) {
tellTarget ("_parent._parent") {
gotoAndStop (3);
};
}
if (this.hitTest("_root.game.earth")) {
tellTarget ("_root.game.hitGround") {
gotoAndPlay (2);
};
_root.game.hitGround._x = this._parent._parent._x;
tellTarget ("_parent._parent") {
gotoAndStop (3);
};
}
if (((((((((((this.hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) | hitTest(_root.game.hitGround.hit)) {
tellTarget ("_parent._parent") {
gotoAndStop (3);
};
}
} else {
newTimer = getTimer() + 2000;
}
}
Symbol 963 MovieClip Frame 1
stop();
Symbol 966 MovieClip Frame 1
stop();
Symbol 966 MovieClip Frame 6
_parent._parent._parent.damaged = true;
_parent._parent.damaged = true;
_parent._parent._parent._parent.damaged = true;
Symbol 966 MovieClip Frame 17
_parent._parent._parent.damaged = true;
_parent._parent.damaged = true;
_parent._parent._parent._parent.damaged = true;
stop();
Symbol 970 MovieClip Frame 12
stop();
_parent._parent._parent.removeMovieClip();
this._parent.removeMovieClip();
Instance of Symbol 407 MovieClip "hitTester" in Symbol 977 MovieClip Frame 1
onClipEvent (enterFrame) {
this._parent._parent.removeMovieClip();
}
Symbol 978 MovieClip Frame 42
_global.newDepth = _global.newDepth + 1;
newName = "rocket" + _global.newDepth;
duplicateMovieClip ("_root.game.rocket", newName, _global.newDepth);
setProperty("_root.game." + newName, _x , this._x - 25);
setProperty("_root.game." + newName, _y , this._y - 65);
Symbol 978 MovieClip Frame 78
gotoAndPlay ("start");
Symbol 978 MovieClip Frame 83
_root.multiKill = _root.multiKill - 1;
Symbol 978 MovieClip Frame 99
stop();
Symbol 989 MovieClip Frame 49
_global.newDepth = _global.newDepth + 1;
newName = "rocket" + _global.newDepth;
duplicateMovieClip ("_root.game.rocket", newName, _global.newDepth);
setProperty("_root.game." + newName, _x , this._x - 25);
setProperty("_root.game." + newName, _y , this._y - 65);
Symbol 989 MovieClip Frame 85
gotoAndPlay ("start");
Symbol 989 MovieClip Frame 90
_root.multiKill = _root.multiKill - 1;
Symbol 989 MovieClip Frame 106
stop();
Instance of Symbol 978 MovieClip "tractor" in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
var damaged = false;
var destroyed = false;
}
Instance of Symbol 989 MovieClip "farmerWithShotgun" in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
var damaged = false;
var destroyed = false;
}
Instance of Symbol 978 MovieClip "tree" in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
var damaged = false;
var destroyed = false;
}
Instance of Symbol 978 MovieClip "smallShrub" in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
var damaged = false;
var destroyed = false;
}
Instance of Symbol 734 MovieClip "ufo" in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
maxXright = 15;
maxXleft = -15;
maxYup = -15;
maxYdown = 15;
var mothershipShields = 100;
var megaLaser = 0;
var moveSpeed = 1.7;
var speedx = 0;
var speedy = 0;
var mainSpeed = 3;
var maxDistance = 100;
thisObject = new Object();
theSunObject = new Object();
var rotationSpeed = 6;
var mainLandStartX = _root.game.mainLand._x;
var mainLand2StartX = _root.game.mainLand2._x;
var weaponCharge = 100;
var shieldCharge = 100;
var timeSinceStart = getTimer();
var spawnsLeft = 50;
var spawnsDown = 0;
var maxBonus = 5;
_global.newDepth = 24;
duplicate = function (movieClip) {
if (spawnsLeft > 0) {
_global.newDepth = _global.newDepth + 1;
if (movieClip == "tractor") {
duplicateMovieClip ("_root.game." + movieClip, movieClip + _global.newDepth, _global.newDepth - 10);
} else {
duplicateMovieClip ("_root.game." + movieClip, movieClip + _global.newDepth, _global.newDepth);
}
trace("Spawn: " + movieClip);
}
};
spawnSomething = function () {
var _local1 = Math.round(Math.random() * 100);
if ((_local1 > 0) & (_local1 < 36)) {
duplicate("farmerWithShotgun");
}
if ((_local1 > 35) & (_local1 < 61)) {
duplicate("farmerWithShotgun");
}
if ((_local1 > 60) & (_local1 < 76)) {
duplicate("tractor");
}
if ((_local1 > 75) & (_local1 < 85)) {
duplicate("nil");
}
if ((_local1 > 84) & (_local1 < 90)) {
duplicate("tractor");
}
if ((_local1 > 89) & (_local1 < 94)) {
duplicate("shieldRepairs");
}
if ((_local1 > 93) & (_local1 < 97)) {
if (maxBonus > 0) {
maxBonus = maxBonus - 1;
duplicate("shieldRepairs");
}
}
if ((_local1 > 96) & (_local1 < 101)) {
if (maxBonus > 0) {
maxBonus = maxBonus - 1;
duplicate("laserCharger");
}
}
};
}
onClipEvent (enterFrame) {
if (_root.multiKill < 0) {
_root.multiKill = 0;
}
if (_root.gamePlaying == true) {
newTimer = getTimer() - timeSinceStart;
if (newTimer > 2000) {
spawnSomething();
timeSinceStart = getTimer();
}
if (_root.game.ufo._rotation > 1) {
if (_root.game.ufo._rotation > 3) {
_root.game.ufo._rotation = _root.game.ufo._rotation - 2;
} else {
_root.game.ufo._rotation = _root.game.ufo._rotation - 0.8;
}
}
if (_root.game.ufo._rotation < -1) {
if (_root.game.ufo._rotation < -3) {
_root.game.ufo._rotation = _root.game.ufo._rotation + 2;
} else {
_root.game.ufo._rotation = _root.game.ufo._rotation + 0.8;
}
}
if (Key.isDown(39)) {
if (speedx < maxXright) {
speedx = speedx + moveSpeed;
}
if (_root.game.ufo._rotation < 60) {
_root.game.ufo._rotation = _root.game.ufo._rotation + rotationSpeed;
}
}
if (Key.isDown(37)) {
if (speedx > maxXleft) {
speedx = speedx - moveSpeed;
}
if (_root.game.ufo._rotation > -60) {
_root.game.ufo._rotation = _root.game.ufo._rotation - rotationSpeed;
}
}
if (Key.isDown(38)) {
if (speedy > maxYup) {
speedy = speedy - moveSpeed;
}
}
if (Key.isDown(40)) {
if (speedy < maxYdown) {
speedy = speedy + moveSpeed;
}
}
if (Key.isDown(32)) {
if (_root.currentlyShooting == false) {
if (weaponCharge < 15) {
tellTarget ("_root.hudLaser.noCharge") {
gotoAndPlay (2);
};
}
if (weaponCharge >= 15) {
_root.currentlyShooting = true;
weaponCharge = weaponCharge - 15;
tellTarget ("_root.game.ufo.laser") {
gotoAndPlay (2);
};
}
}
}
_root.game.ufo._x = _root.game.ufo._x + speedx;
_root.game.ufo._y = _root.game.ufo._y + speedy;
thisObject.x = this._x;
thisObject.y = this._y;
theSunObject.x = _root.game.sun._x;
theSunObject.y = _root.game.sun._y;
_parent._parent._root.localToGlobal(thisObject);
_parent._parent._root._parent.localToGlobal(theSunObject);
myX = thisObject.x;
myY = thisObject.y;
myDistanceX = myX - theSunObject.x;
if (myDistanceX < 0) {
myDistanceX = myDistanceX * -1;
}
myDistanceY = myY - theSunObject.y;
if (myDistanceY < 0) {
myDistanceY = myDistanceY * -1;
}
totalDistance = Math.sqrt((myDistanceY * myDistanceY) + (myDistanceX * myDistanceX));
if (totalDistance > maxDistance) {
_root.game.ufo.sunGlare._alpha = 0;
} else {
_root.game.ufo.sunGlare._alpha = 100 - totalDistance;
_root.game.ufo.sunGlare._rotation = _root.game.ufo.sunGlare._rotation - speedx;
}
_root.game.clouds._x = _root.game.clouds._x - 0.5;
if (weaponCharge <= 99.4) {
weaponCharge = weaponCharge + 0.7;
}
_root.hudLaser.laserCharge._xscale = weaponCharge;
if (shieldCharge <= 99.9) {
shieldCharge = shieldCharge + 0.065;
}
_root.hudShield.shieldCharge._xscale = shieldCharge;
_root.hudShield2.shieldCharge._xscale = mothershipShields;
megaLaser = megaLaser + 0.065;
_root.hudLaser2.laserCharge._xscale = megaLaser;
_root.game.laserThingy._alpha = megaLaser;
if (shieldCharge < 0) {
tellTarget (_root.game.ufo.death) {
play();
};
tellTarget (_root.dead) {
play();
};
shieldCharge = -200;
}
if (megaLaser >= 100) {
trace("MEGA LASER, FIRE!!!!!!");
tellTarget (_root.game.mainLand) {
play();
};
_root.game.ufo._y = _root.game.ufo._y - 24;
mothershipShields = mothershipShields + 1;
shieldCharge = shieldCharge + 1;
}
}
}
Symbol 1001 Button
on (release) {
gotoAndStop ("level2");
}
Symbol 1008 MovieClip Frame 16
stop();
Symbol 1008 MovieClip Frame 30
_root.play();
Symbol 1008 MovieClip Frame 31
_root.play();
Symbol 1008 MovieClip Frame 32
_root.play();
Symbol 1008 MovieClip Frame 33
_root.play();
Symbol 1008 MovieClip Frame 34
_root.play();
Symbol 1008 MovieClip Frame 35
_root.play();
Instance of Symbol 505 MovieClip in Symbol 1017 MovieClip Frame 1
onClipEvent (load) {
var thisPosition = new Object();
var speedPlus = 0.032;
var speedX = 0;
var speedY = 0;
var speedMax = 12;
var rotated = 0;
var newTimer = (getTimer() + 4000);
}
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
thisPosition.x = _parent._parent.xyForRocket._x;
thisPosition.y = _parent._parent.xyForRocket._x;
localToGlobal(thisPosition);
myX = thisPosition.x;
myY = thisPosition.y;
ufoX = _root.game.ufo.myX + 70;
ufoY = _root.game.ufo.myY + 100;
lineX = ufoX - myX;
lineY = (ufoY - myY) * -1;
angle = Math.atan(lineY / lineX) / (Math.PI/180);
if (lineX < 0) {
angle = angle + 180;
}
if ((lineX > 0) && (lineY < 0)) {
angle = angle + 360;
}
_parent._parent._rotation = angle * -1;
if (angle > 0) {
if (angle < 90) {
if (speedY < speedMax) {
speedY = speedY + (angle * speedPlus);
}
if (speedX < speedMax) {
speedX = speedX + ((90 - angle) * speedPlus);
}
}
}
if (angle > 90) {
if (angle < 180) {
if (speedY < speedMax) {
speedY = speedY + (angle * speedPlus);
}
if (speedX > (-speedMax)) {
speedX = speedX - ((angle - 90) * speedPlus);
}
}
}
if (angle > 180) {
if (angle < 270) {
if (speedY > (-speedMax)) {
speedY = speedY - ((angle - 180) * speedPlus);
}
if (speedX > (-speedMax)) {
speedX = speedX - ((270 - angle) * speedPlus);
}
}
}
if (angle > 270) {
if (angle < 360) {
if (speedY > (-speedMax)) {
speedY = speedY - ((360 - angle) * speedPlus);
}
if (speedX < speedMax) {
speedX = speedX + ((angle - 270) * speedPlus);
}
}
}
_parent._parent._x = _parent._parent._x + speedX;
_parent._parent._y = _parent._parent._y - speedY;
if (_parent.hitObject.hitTest("_root.game.ufo.hitZone.hurt")) {
tellTarget ("_root.game.ufo.hitZone") {
play();
};
_root.game.ufo.speedy = _root.game.ufo.speedy - (speedY / 2);
_root.game.ufo.speedx = _root.game.ufo.speedx - (speedX / 2);
tellTarget ("_parent._parent") {
gotoAndStop (2);
};
}
if (newTimer < getTimer()) {
tellTarget ("_parent._parent") {
gotoAndStop (3);
};
}
if (this.hitTest("_root.game.earth")) {
tellTarget ("_root.game.hitGround") {
gotoAndPlay (2);
};
_root.game.hitGround._x = this._parent._parent._x;
tellTarget ("_parent._parent") {
gotoAndStop (3);
};
}
if (((((((((((this.hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) | hitTest(_root.game.hitGround.hit)) {
tellTarget ("_parent._parent") {
gotoAndStop (3);
};
}
} else {
newTimer = getTimer() + 2000;
}
}
Symbol 1018 MovieClip Frame 1
stop();
Instance of Symbol 407 MovieClip "hitTester" in Symbol 1019 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x - (_root.game.ufo.mainSpeed / 1.4);
if (((((((((((hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) | hitTest(_root.game.hitGround.hit)) {
if (_parent._parent.damaged == true) {
if (hitTest(_root.game.hitGround.hit)) {
_root.multiKill = _root.multiKill + 1;
if (_root.multiKill < 2) {
tellTarget (_root.pwnage) {
gotoAndPlay (2);
};
} else {
tellTarget (_root.uberPwnage) {
gotoAndPlay (2);
};
tellTarget (_root.pwnage) {
gotoAndStop (1);
};
}
}
tellTarget (_parent._parent) {
gotoAndPlay ("dead");
};
_parent._parent.destroyed = true;
} else {
tellTarget (_parent._parent.tractorMain.inner) {
gotoAndPlay (2);
};
}
}
if (_parent._parent._x < -200) {
if (_parent._parent.destroyed != true) {
_global.spawnKilled();
}
this._parent._parent.removeMovieClip();
}
} else {
_parent._parent.stop();
tellTarget (_parent._parent.paused) {
gotoAndStop (2);
};
}
}
Symbol 1027 MovieClip Frame 1
stop();
Symbol 1027 MovieClip Frame 6
_parent._parent._parent.damaged = true;
_parent._parent.damaged = true;
_parent._parent._parent._parent.damaged = true;
Symbol 1027 MovieClip Frame 17
_parent._parent._parent.damaged = true;
_parent._parent.damaged = true;
_parent._parent._parent._parent.damaged = true;
stop();
Symbol 1033 MovieClip Frame 34
_global.newDepth = _global.newDepth + 1;
newName = "rocket" + _global.newDepth;
duplicateMovieClip ("_root.game.rocket", newName, _global.newDepth);
setProperty("_root.game." + newName, _x , this._x + 50);
setProperty("_root.game." + newName, _y , this._y);
Symbol 1033 MovieClip Frame 70
gotoAndPlay ("start");
Symbol 1033 MovieClip Frame 75
_root.multiKill = _root.multiKill - 1;
Symbol 1033 MovieClip Frame 104
stop();
Instance of Symbol 1037 MovieClip in Symbol 1038 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x + 12;
if (_parent.hitObject.hitTest("_root.game.ufo.hitZone.hurt")) {
tellTarget ("_root.game.ufo.hitZone") {
play();
};
tellTarget ("_parent._parent") {
gotoAndStop (2);
};
}
if (((((((((((this.hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) | hitTest(_root.game.hitGround.hit)) {
tellTarget ("_parent._parent") {
gotoAndStop (3);
};
}
if (_parent._parent._parent._x > 400) {
_parent._parent._parent.removeMovieClip();
}
}
}
Symbol 1041 MovieClip Frame 13
stop();
Symbol 1048 MovieClip Frame 12
stop();
_parent._parent._parent.removeMovieClip();
this._parent.removeMovieClip();
Symbol 1049 MovieClip Frame 1
stop();
Instance of Symbol 407 MovieClip "hitTester" in Symbol 1050 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x + 8;
if (((((((((((hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) | hitTest(_root.game.hitGround.hit)) {
if (_parent._parent.damaged == true) {
if (hitTest(_root.game.hitGround.hit)) {
_root.multiKill = _root.multiKill + 1;
if (_root.multiKill < 2) {
tellTarget (_root.pwnage) {
gotoAndPlay (2);
};
} else {
tellTarget (_root.uberPwnage) {
gotoAndPlay (2);
};
tellTarget (_root.pwnage) {
gotoAndStop (1);
};
}
}
tellTarget (_parent._parent) {
gotoAndPlay ("dead");
};
_parent._parent.destroyed = true;
} else {
tellTarget (_parent._parent.tractorMain.inner) {
gotoAndPlay (2);
};
}
}
if (_parent._parent._x > 650) {
if (_parent._parent.destroyed != true) {
_global.spawnKilled();
}
this._parent._parent.removeMovieClip();
}
} else {
_parent._parent.stop();
tellTarget (_parent._parent.paused) {
gotoAndStop (2);
};
}
}
Symbol 1055 MovieClip Frame 1
stop();
Symbol 1055 MovieClip Frame 6
_parent._parent._parent.damaged = true;
_parent._parent.damaged = true;
_parent._parent._parent._parent.damaged = true;
Symbol 1055 MovieClip Frame 17
_parent._parent._parent.damaged = true;
_parent._parent.damaged = true;
_parent._parent._parent._parent.damaged = true;
stop();
Instance of Symbol 407 MovieClip "hitTester" in Symbol 1057 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x + 8;
}
}
Symbol 1058 MovieClip Frame 31
_global.newDepth = _global.newDepth + 1;
newName = "rocket" + _global.newDepth;
duplicateMovieClip ("_root.game.rocket", newName, _global.newDepth);
setProperty("_root.game." + newName, _x , this._x);
setProperty("_root.game." + newName, _y , this._y - 20);
Symbol 1058 MovieClip Frame 64
gotoAndPlay ("start");
Symbol 1058 MovieClip Frame 69
_root.multiKill = _root.multiKill - 1;
Symbol 1058 MovieClip Frame 107
stop();
Instance of Symbol 1033 MovieClip "farmerWithShotgun" in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
var damaged = false;
var destroyed = false;
}
Instance of Symbol 1058 MovieClip "farmerWithRocketLauncher" in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
var damaged = false;
var destroyed = false;
}
Instance of Symbol 734 MovieClip "ufo" in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
var arcticDistance = 250;
maxXright = 15;
maxXleft = -15;
maxYup = -15;
maxYdown = 15;
var moveSpeed = 1.7;
var speedx = 0;
var speedy = 0;
var mainSpeed = 6;
var maxDistance = 100;
thisObject = new Object();
theSunObject = new Object();
var rotationSpeed = 6;
var mainLandStartX = _root.game.mainLand._x;
var mainLand2StartX = _root.game.mainLand2._x;
var weaponCharge = 100;
var shieldCharge = 100;
var timeSinceStart = getTimer();
var spawnsLeft = 50;
var spawnsDown = 0;
var maxBonus = 5;
_global.newDepth = 24;
duplicate = function (movieClip) {
if (((movieclip == "tractor") | (movieClip == "farmerWithShotgun")) | (movieClip == "farmerWithRocketLauncher")) {
spawnsLeft = spawnsLeft - 1;
}
if (spawnsLeft > 0) {
_global.newDepth = _global.newDepth + 1;
if (movieClip == "tractor") {
duplicateMovieClip ("_root.game." + movieClip, movieClip + _global.newDepth, _global.newDepth - 10);
} else {
duplicateMovieClip ("_root.game." + movieClip, movieClip + _global.newDepth, _global.newDepth);
}
trace("Spawn: " + movieClip);
}
};
spawnSomething = function () {
var _local1 = Math.round(Math.random() * 100);
if ((_local1 > 0) & (_local1 < 36)) {
duplicate("farmerWithShotgun");
}
if ((_local1 > 35) & (_local1 < 61)) {
duplicate("farmerWithRocketLauncher");
}
if ((_local1 > 60) & (_local1 < 76)) {
duplicate("tractor");
}
if ((_local1 > 75) & (_local1 < 85)) {
duplicate("hayBail");
}
if ((_local1 > 84) & (_local1 < 90)) {
duplicate("smallShrub");
}
if ((_local1 > 89) & (_local1 < 94)) {
duplicate("tree");
}
if ((_local1 > 93) & (_local1 < 97)) {
if (maxBonus > 0) {
maxBonus = maxBonus - 1;
duplicate("shieldRepairs");
}
}
if ((_local1 > 96) & (_local1 < 101)) {
if (maxBonus > 0) {
maxBonus = maxBonus - 1;
duplicate("laserCharger");
}
}
};
}
onClipEvent (enterFrame) {
if (_root.multiKill < 0) {
_root.multiKill = 0;
}
if (_root.gamePlaying == true) {
if (arcticDistance <= 0) {
arcticDistance = 0;
tellTarget ("_root.youWin") {
play();
};
}
arcticDistance = arcticDistance - 0.1;
_root.distance = Math.round(arcticDistance);
newTimer = getTimer() - timeSinceStart;
if (newTimer > 2000) {
spawnSomething();
timeSinceStart = getTimer();
}
if (_root.game.ufo._rotation > 1) {
if (_root.game.ufo._rotation > 3) {
_root.game.ufo._rotation = _root.game.ufo._rotation - 2;
} else {
_root.game.ufo._rotation = _root.game.ufo._rotation - 0.8;
}
}
if (_root.game.ufo._rotation < -1) {
if (_root.game.ufo._rotation < -3) {
_root.game.ufo._rotation = _root.game.ufo._rotation + 2;
} else {
_root.game.ufo._rotation = _root.game.ufo._rotation + 0.8;
}
}
if (Key.isDown(39)) {
if (speedx < maxXright) {
speedx = speedx + moveSpeed;
}
if (_root.game.ufo._rotation < 60) {
_root.game.ufo._rotation = _root.game.ufo._rotation + rotationSpeed;
}
}
if (Key.isDown(37)) {
if (speedx > maxXleft) {
speedx = speedx - moveSpeed;
}
if (_root.game.ufo._rotation > -60) {
_root.game.ufo._rotation = _root.game.ufo._rotation - rotationSpeed;
}
}
if (Key.isDown(38)) {
if (speedy > maxYup) {
speedy = speedy - moveSpeed;
}
}
if (Key.isDown(40)) {
if (speedy < maxYdown) {
speedy = speedy + moveSpeed;
}
}
if (Key.isDown(32)) {
if (_root.currentlyShooting == false) {
if (weaponCharge < 15) {
tellTarget ("_root.hudLaser.noCharge") {
gotoAndPlay (2);
};
}
if (weaponCharge >= 15) {
_root.currentlyShooting = true;
weaponCharge = weaponCharge - 15;
tellTarget ("_root.game.ufo.laser") {
gotoAndPlay (2);
};
}
}
}
_root.game.ufo._x = _root.game.ufo._x + speedx;
_root.game.ufo._y = _root.game.ufo._y + speedy;
thisObject.x = this._x;
thisObject.y = this._y;
theSunObject.x = _root.game.sun._x;
theSunObject.y = _root.game.sun._y;
_parent._parent._root.localToGlobal(thisObject);
_parent._parent._root._parent.localToGlobal(theSunObject);
myX = thisObject.x;
myY = thisObject.y;
myDistanceX = myX - theSunObject.x;
if (myDistanceX < 0) {
myDistanceX = myDistanceX * -1;
}
myDistanceY = myY - theSunObject.y;
if (myDistanceY < 0) {
myDistanceY = myDistanceY * -1;
}
totalDistance = Math.sqrt((myDistanceY * myDistanceY) + (myDistanceX * myDistanceX));
if (totalDistance > maxDistance) {
_root.game.ufo.sunGlare._alpha = 0;
} else {
_root.game.ufo.sunGlare._alpha = 100 - totalDistance;
_root.game.ufo.sunGlare._rotation = _root.game.ufo.sunGlare._rotation - speedx;
}
_root.game.mainLand._x = _root.game.mainLand._x - mainSpeed;
if (_root.game.mainLand._x < -690) {
_root.game.mainLand._x = mainLandStartX;
}
_root.game.mainLand2._x = _root.game.mainLand2._x - (mainSpeed / 2);
if (_root.game.mainLand2._x < -690) {
_root.game.mainLand2._x = mainLand2StartX;
}
_root.game.sun._x = _root.game.sun._x - 0.7;
_root.game.clouds._x = _root.game.clouds._x - 1.3;
if (weaponCharge <= 99.4) {
weaponCharge = weaponCharge + 0.7;
}
_root.hudLaser.laserCharge._xscale = weaponCharge;
if (shieldCharge <= 99.9) {
shieldCharge = shieldCharge + 0.05;
}
_root.hudShield.shieldCharge._xscale = shieldCharge;
if (shieldCharge < 0) {
tellTarget (_root.game.ufo.death) {
play();
};
tellTarget (_root.dead) {
play();
};
shieldCharge = -200;
}
if (spawnsLeft <= -1) {
trace(spawnsLeft);
tellTarget (_root.youWin) {
play();
};
}
}
}
Symbol 1061 MovieClip Frame 1
stop();
Symbol 1061 MovieClip Frame 35
tellTarget (_root) {
gotoAndStop ("level4");
};
Symbol 1067 Button
on (release) {
gotoAndStop ("level3");
}
Symbol 1075 MovieClip Frame 16
stop();
Symbol 1075 MovieClip Frame 30
_root.play();
Symbol 1075 MovieClip Frame 31
_root.play();
Symbol 1075 MovieClip Frame 32
_root.play();
Symbol 1075 MovieClip Frame 33
_root.play();
Symbol 1075 MovieClip Frame 34
_root.play();
Symbol 1075 MovieClip Frame 35
_root.play();
Instance of Symbol 1084 MovieClip in Symbol 1085 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x - _root.game.ufo.mainSpeed;
if ((((((((((hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) {
if (destroyed != true) {
_parent._parent.nextFrame();
var destroyed = true;
}
}
if (_parent._parent._x < -200) {
this._parent._parent.removeMovieClip();
}
}
}
Symbol 1089 MovieClip Frame 11
stop();
Symbol 1090 MovieClip Frame 1
stop();
Instance of Symbol 1092 MovieClip in Symbol 1093 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x - _root.game.ufo.mainSpeed;
if ((((((((((hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) {
if (destroyed != true) {
_parent._parent.nextFrame();
var destroyed = true;
}
}
if (_parent._parent._x < -200) {
this._parent._parent.removeMovieClip();
}
}
}
Symbol 1104 MovieClip Frame 7
_root.game.ufo.wmds = _root.game.ufo.wmds - 1;
Symbol 1104 MovieClip Frame 18
stop();
Symbol 1105 MovieClip Frame 1
stop();
Instance of Symbol 1107 MovieClip in Symbol 1108 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePlaying == true) {
_parent._parent._x = _parent._parent._x - _root.game.ufo.mainSpeed;
if ((((((((((hitTest(_root.laserArray[1]) | hitTest(_root.laserArray[2])) | hitTest(_root.laserArray[3])) | hitTest(_root.laserArray[4])) | hitTest(_root.laserArray[5])) | hitTest(_root.laserArray[6])) | hitTest(_root.laserArray[7])) | hitTest(_root.laserArray[8])) | hitTest(_root.laserArray[9])) | hitTest(_root.laserArray[0])) | hitTest(_root.game.hitGround.hit)) {
if (destroyed != true) {
_parent._parent.nextFrame();
var destroyed = true;
}
}
if (_parent._parent._x < -250) {
this._parent._parent.removeMovieClip();
}
}
}
Symbol 1110 MovieClip Frame 14
stop();
Symbol 1112 MovieClip Frame 1
stop();
Symbol 1119 MovieClip Frame 34
_global.newDepth = _global.newDepth + 1;
newName = "rocket" + _global.newDepth;
duplicateMovieClip ("_root.game.rocket", newName, _global.newDepth);
setProperty("_root.game." + newName, _x , this._x - 15);
setProperty("_root.game." + newName, _y , this._y - 45);
Symbol 1119 MovieClip Frame 67
gotoAndPlay ("start");
Symbol 1119 MovieClip Frame 72
_root.multiKill = _root.multiKill - 1;
Symbol 1119 MovieClip Frame 83
stop();
Symbol 1131 MovieClip Frame 34
_global.newDepth = _global.newDepth + 1;
newName = "rocket" + _global.newDepth;
duplicateMovieClip ("_root.game.rocket", newName, _global.newDepth);
setProperty("_root.game." + newName, _x , this._x + 10);
setProperty("_root.game." + newName, _y , this._y - 85);
Symbol 1131 MovieClip Frame 70
gotoAndPlay ("start");
Symbol 1131 MovieClip Frame 75
_root.multiKill = _root.multiKill - 1;
Symbol 1131 MovieClip Frame 91
stop();
Instance of Symbol 1119 MovieClip "farmerWithRocketLauncher" in Symbol 1132 MovieClip Frame 1
onClipEvent (load) {
var destroyed = false;
}
Instance of Symbol 1131 MovieClip "farmerWithShotgun" in Symbol 1132 MovieClip Frame 1
onClipEvent (load) {
var damaged = false;
var destroyed = false;
}
Instance of Symbol 734 MovieClip "ufo" in Symbol 1132 MovieClip Frame 1
onClipEvent (load) {
var wmds = 10;
maxXright = 15;
maxXleft = -15;
maxYup = -15;
maxYdown = 15;
var moveSpeed = 1.7;
var speedx = 0;
var speedy = 0;
var mainSpeed = 3;
var maxDistance = 100;
thisObject = new Object();
theSunObject = new Object();
var rotationSpeed = 6;
var mainLandStartX = _root.game.mainLand._x;
var mainLand2StartX = _root.game.mainLand2._x;
var weaponCharge = 100;
var shieldCharge = 100;
var timeSinceStart = getTimer();
var spawnsLeft = 50;
var spawnsDown = 0;
var maxBonus = 5;
_global.newDepth = 24;
duplicate = function (movieClip) {
if (((movieclip == "tractor") | (movieClip == "farmerWithShotgun")) | (movieClip == "farmerWithRocketLauncher")) {
}
if (spawnsLeft > 0) {
_global.newDepth = _global.newDepth + 1;
if (movieClip == "tractor") {
duplicateMovieClip ("_root.game." + movieClip, movieClip + _global.newDepth, _global.newDepth - 10);
} else {
duplicateMovieClip ("_root.game." + movieClip, movieClip + _global.newDepth, _global.newDepth);
}
trace("Spawn: " + movieClip);
}
};
spawnSomething = function () {
var _local1 = Math.round(Math.random() * 100);
if ((_local1 > 0) & (_local1 < 36)) {
duplicate("farmerWithShotgun");
}
if ((_local1 > 35) & (_local1 < 61)) {
duplicate("farmerWithRocketLauncher");
}
if ((_local1 > 60) & (_local1 < 76)) {
duplicate("tractor");
}
if ((_local1 > 75) & (_local1 < 85)) {
duplicate("hayBail");
}
if ((_local1 > 84) & (_local1 < 90)) {
duplicate("smallShrub");
}
if ((_local1 > 89) & (_local1 < 94)) {
duplicate("tree");
}
if ((_local1 > 93) & (_local1 < 97)) {
if (maxBonus > 0) {
maxBonus = maxBonus - 1;
duplicate("shieldRepairs");
}
}
if ((_local1 > 96) & (_local1 < 101)) {
if (maxBonus > 0) {
maxBonus = maxBonus - 1;
duplicate("laserCharger");
}
}
};
}
onClipEvent (enterFrame) {
_root.theWmds = wmds;
if (_root.multiKill < 0) {
_root.multiKill = 0;
}
if (_root.gamePlaying == true) {
newTimer = getTimer() - timeSinceStart;
if (newTimer > 2000) {
spawnSomething();
timeSinceStart = getTimer();
}
if (_root.game.ufo._rotation > 1) {
if (_root.game.ufo._rotation > 3) {
_root.game.ufo._rotation = _root.game.ufo._rotation - 2;
} else {
_root.game.ufo._rotation = _root.game.ufo._rotation - 0.8;
}
}
if (_root.game.ufo._rotation < -1) {
if (_root.game.ufo._rotation < -3) {
_root.game.ufo._rotation = _root.game.ufo._rotation + 2;
} else {
_root.game.ufo._rotation = _root.game.ufo._rotation + 0.8;
}
}
if (Key.isDown(39)) {
if (speedx < maxXright) {
speedx = speedx + moveSpeed;
}
if (_root.game.ufo._rotation < 60) {
_root.game.ufo._rotation = _root.game.ufo._rotation + rotationSpeed;
}
}
if (Key.isDown(37)) {
if (speedx > maxXleft) {
speedx = speedx - moveSpeed;
}
if (_root.game.ufo._rotation > -60) {
_root.game.ufo._rotation = _root.game.ufo._rotation - rotationSpeed;
}
}
if (Key.isDown(38)) {
if (speedy > maxYup) {
speedy = speedy - moveSpeed;
}
}
if (Key.isDown(40)) {
if (speedy < maxYdown) {
speedy = speedy + moveSpeed;
}
}
if (Key.isDown(32)) {
if (_root.currentlyShooting == false) {
if (weaponCharge < 15) {
tellTarget ("_root.hudLaser.noCharge") {
gotoAndPlay (2);
};
}
if (weaponCharge >= 15) {
_root.currentlyShooting = true;
weaponCharge = weaponCharge - 15;
tellTarget ("_root.game.ufo.laser") {
gotoAndPlay (2);
};
}
}
}
_root.game.ufo._x = _root.game.ufo._x + speedx;
_root.game.ufo._y = _root.game.ufo._y + speedy;
thisObject.x = this._x;
thisObject.y = this._y;
theSunObject.x = _root.game.sun._x;
theSunObject.y = _root.game.sun._y;
_parent._parent._root.localToGlobal(thisObject);
_parent._parent._root._parent.localToGlobal(theSunObject);
myX = thisObject.x;
myY = thisObject.y;
myDistanceX = myX - theSunObject.x;
if (myDistanceX < 0) {
myDistanceX = myDistanceX * -1;
}
myDistanceY = myY - theSunObject.y;
if (myDistanceY < 0) {
myDistanceY = myDistanceY * -1;
}
totalDistance = Math.sqrt((myDistanceY * myDistanceY) + (myDistanceX * myDistanceX));
if (totalDistance > maxDistance) {
_root.game.ufo.sunGlare._alpha = 0;
} else {
_root.game.ufo.sunGlare._alpha = 100 - totalDistance;
_root.game.ufo.sunGlare._rotation = _root.game.ufo.sunGlare._rotation - speedx;
}
_root.game.mainLand._x = _root.game.mainLand._x - mainSpeed;
if (_root.game.mainLand._x < -690) {
_root.game.mainLand._x = mainLandStartX;
}
_root.game.mainLand2._x = _root.game.mainLand2._x - (mainSpeed / 2);
if (_root.game.mainLand2._x < -690) {
_root.game.mainLand2._x = mainLand2StartX;
}
_root.game.clouds._x = _root.game.clouds._x - 0.5;
_root.game.sun._x = _root.game.sun._x - 0.15;
if (weaponCharge <= 99.4) {
weaponCharge = weaponCharge + 0.7;
}
_root.hudLaser.laserCharge._xscale = weaponCharge;
if (shieldCharge <= 99.9) {
shieldCharge = shieldCharge + 0.05;
}
_root.hudShield.shieldCharge._xscale = shieldCharge;
if (shieldCharge < 0) {
tellTarget (_root.game.ufo.death) {
play();
};
tellTarget (_root.dead) {
play();
};
shieldCharge = -200;
}
if (wmds <= 0) {
trace(wmds);
tellTarget (_root.youWin) {
play();
};
}
}
}
Symbol 1134 MovieClip Frame 1
stop();
Symbol 1134 MovieClip Frame 35
tellTarget (_root) {
gotoAndStop ("winAll");
};
Symbol 1142 Button
on (release) {
gotoAndStop ("level4");
}
Symbol 1146 MovieClip Frame 16
stop();
Symbol 1146 MovieClip Frame 30
tellTarget ("_root") {
gotoAndStop ("start");
};
Symbol 1146 MovieClip Frame 31
tellTarget ("_root") {
gotoAndStop ("start");
};
Symbol 1146 MovieClip Frame 32
tellTarget ("_root") {
gotoAndStop ("start");
};
Symbol 1146 MovieClip Frame 33
tellTarget ("_root") {
gotoAndStop ("start");
};
Symbol 1146 MovieClip Frame 34
tellTarget ("_root") {
gotoAndStop ("start");
};
Symbol 1146 MovieClip Frame 35
tellTarget ("_root") {
gotoAndStop ("start");
};