Frame 1
function itemHandler1(obj, item) {
getURL ("http://computerturret.tk");
}
function itemHandler2(obj2, item2) {
getURL ("");
}
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
item1 = new ContextMenuItem("Visit Computer Turret for more flash fun.", itemHandler1);
myMenu.customItems.push(item1);
item2 = new ContextMenuItem("Copyright by Matthew Thomas and Computer Turret", itemHandler2);
myMenu.customItems.push(item2);
_root.menu = myMenu;
Instance of Symbol 3 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._rotation++;
}
Instance of Symbol 7 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._xscale = (_root.sloaded / _root.total) * 100;
_root.sloaded = _root.getBytesLoaded();
_root.total = _root.getBytesTotal();
_root.percentloaded = int((_root.sloaded / _root.total) * 100) + "%";
if (_root.sloaded >= _root.total) {
_root.gotoAndStop(2);
}
}
Frame 2
function saveGame() {
_root.info = "Game Saved";
myLSO = SharedObject.getLocal("hero");
if (myLSO.data.myObj == undefined) {
trace("Saved Game");
} else {
trace("Overwrote Saved Game");
}
myObj = {};
myObj.objArray = new Array();
myObj.objArray[0] = username;
myObj.objArray[2] = beam;
myObj.objArray[3] = wave;
myObj.objArray[4] = speed;
myObj.objArray[5] = score;
myObj.objArray[6] = money;
myObj.objArray[7] = mines;
myObj.objArray[8] = shieldlvl;
myObj.objArray[9] = lx;
myObj.objArray[10] = ly;
myLSO.data.myObj = myObj;
}
function loadGame() {
_root.info = "Game Loaded";
myLSO = SharedObject.getLocal("hero");
if (myLSO.data.myObj == undefined) {
trace("No Saved Game");
_root.info = "No Saved Game";
} else {
trace("Loaded Game");
_root.info = "Game Loaded " + _root.username;
username = myLSO.data.myObj.objArray[0];
beam = myLSO.data.myObj.objArray[2];
wave = myLSO.data.myObj.objArray[3];
speed = myLSO.data.myObj.objArray[4];
score = myLSO.data.myObj.objArray[5];
money = myLSO.data.myObj.objArray[6];
mines = myLSO.data.myObj.objArray[7];
shieldlvl = myLSO.data.myObj.objArray[8];
lx = myLSO.data.myObj.objArray[9];
ly = myLSO.data.myObj.objArray[10];
Obj.objArray[13];
}
}
stop();
_root.restart = false;
speed = 60;
money = 0;
wave = false;
score = 0;
beam = false;
mines = false;
_root.shieldlvl = 1;
pausee = false;
music = "on";
maxtime = 300;
thetime = 0;
Instance of Symbol 23 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.music == "off") {
stopAllSounds();
}
}
Instance of Symbol 25 MovieClip "aimer" in Frame 2
onClipEvent (enterFrame) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
stop();
thetime = 0;
pausee = false;
_root.restart = false;
Instance of Symbol 57 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == false) {
this._x = this._x + ((_root.ball._x - _x) / _root.speed);
this._y = this._y + ((_root.ball._y - _y) / _root.speed);
}
if (this.hitTest(_root.ball)) {
_root.ball._xscale = _root.ball._xscale + 10;
this._y = random(600) - 600;
this._x = random(600);
}
if (_root.ball._xscale > 199) {
_root.gotoAndStop("gameover");
}
if (this.hitTest(_root.shield)) {
_root.shield.nextFrame();
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (this.hitTest(_root.laser)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.m1.hitTest(this)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m1.gotoAndStop(140);
}
if (_root.m2.hitTest(this)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m2.gotoAndStop(140);
}
if (_root.m3.hitTest(this)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m3.gotoAndStop(140);
}
if (_root.m4.hitTest(this)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m4.gotoAndStop(140);
}
if (_root.b.hitTest(_x, _y, true)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.w.hitTest(_x, _y, true)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.restart == true) {
this._x = 700;
this._y = -700;
}
}
Instance of Symbol 57 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == false) {
this._x = this._x + ((_root.ball._x - _x) / _root.speed);
this._y = this._y + ((_root.ball._y - _y) / _root.speed);
}
if (this.hitTest(_root.ball)) {
_root.ball._xscale = _root.ball._xscale + 10;
this._x = random(600) - 600;
this._y = random(600);
}
if (_root.ball._xscale > 199) {
_root.gotoAndStop("gameover");
}
if (this.hitTest(_root.shield)) {
_root.shield.nextFrame();
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (this.hitTest(_root.laser)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.m1.hitTest(this)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m1.gotoAndStop(140);
}
if (_root.m2.hitTest(this)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m2.gotoAndStop(140);
}
if (_root.m3.hitTest(this)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m3.gotoAndStop(140);
}
if (_root.m4.hitTest(this)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m4.gotoAndStop(140);
}
if (_root.b.hitTest(_x, _y, true)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.w.hitTest(_x, _y, true)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.restart == true) {
this._x = -700;
this._y = 500;
}
}
Instance of Symbol 57 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == false) {
this._x = this._x + ((_root.ball._x - _x) / _root.speed);
this._y = this._y + ((_root.ball._y - _y) / _root.speed);
}
if (this.hitTest(_root.ball)) {
_root.ball._xscale = _root.ball._xscale + 10;
this._x = random(600) + 600;
this._y = random(600);
}
if (_root.ball._xscale > 199) {
_root.gotoAndStop("gameover");
}
if (this.hitTest(_root.shield)) {
_root.shield.nextFrame();
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (this.hitTest(_root.laser)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.m1.hitTest(this)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m1.gotoAndStop(140);
}
if (_root.m2.hitTest(this)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m2.gotoAndStop(140);
}
if (_root.m3.hitTest(this)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m3.gotoAndStop(140);
}
if (_root.m4.hitTest(this)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m4.gotoAndStop(140);
}
if (_root.b.hitTest(_x, _y, true)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.w.hitTest(_x, _y, true)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.restart == true) {
this._x = 700;
this._y = 200;
}
}
Instance of Symbol 57 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == false) {
this._x = this._x + ((_root.ball._x - _x) / _root.speed);
this._y = this._y + ((_root.ball._y - _y) / _root.speed);
}
if (this.hitTest(_root.ball)) {
_root.ball._xscale = _root.ball._xscale + 10;
this._x = random(600) - 600;
this._y = random(600);
}
if (_root.ball._xscale > 199) {
_root.gotoAndStop("gameover");
}
if (this.hitTest(_root.shield)) {
_root.shield.nextFrame();
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (this.hitTest(_root.laser)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.m1.hitTest(this)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m1.gotoAndStop(140);
}
if (_root.m2.hitTest(this)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m2.gotoAndStop(140);
}
if (_root.m3.hitTest(this)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m3.gotoAndStop(140);
}
if (_root.m4.hitTest(this)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m4.gotoAndStop(140);
}
if (_root.b.hitTest(_x, _y, true)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.w.hitTest(_x, _y, true)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.restart == true) {
this._x = -700;
this._y = 300;
}
}
Instance of Symbol 57 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == false) {
this._x = this._x + ((_root.ball._x - _x) / _root.speed);
this._y = this._y + ((_root.ball._y - _y) / _root.speed);
}
if (this.hitTest(_root.ball)) {
_root.ball._xscale = _root.ball._xscale + 10;
this._x = random(600) - 600;
this._y = random(600);
}
if (_root.ball._xscale > 199) {
_root.gotoAndStop("gameover");
}
if (this.hitTest(_root.shield)) {
_root.shield.nextFrame();
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (this.hitTest(_root.laser)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.m1.hitTest(this)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m1.gotoAndStop(140);
}
if (_root.m2.hitTest(this)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m2.gotoAndStop(140);
}
if (_root.m3.hitTest(this)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m3.gotoAndStop(140);
}
if (_root.m4.hitTest(this)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m4.gotoAndStop(140);
}
if (_root.b.hitTest(_x, _y, true)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.w.hitTest(_x, _y, true)) {
this._x = random(600) - 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.restart == true) {
this._x = -700;
this._y = 200;
}
}
Instance of Symbol 57 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == false) {
this._x = this._x + ((_root.ball._x - _x) / _root.speed);
this._y = this._y + ((_root.ball._y - _y) / _root.speed);
}
if (this.hitTest(_root.ball)) {
_root.ball._xscale = _root.ball._xscale + 10;
this._y = random(600) + 600;
this._x = random(600);
}
if (_root.ball._xscale > 199) {
_root.gotoAndStop("gameover");
}
if (this.hitTest(_root.shield)) {
_root.shield.nextFrame();
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (this.hitTest(_root.laser)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.m1.hitTest(this)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m1.gotoAndStop(140);
}
if (_root.m2.hitTest(this)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m2.gotoAndStop(140);
}
if (_root.m3.hitTest(this)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m3.gotoAndStop(140);
}
if (_root.m4.hitTest(this)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m4.gotoAndStop(140);
}
if (_root.b.hitTest(_x, _y, true)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.w.hitTest(_x, _y, true)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.restart == true) {
this._x = 700;
this._y = 700;
}
}
Instance of Symbol 57 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == false) {
this._x = this._x + ((_root.ball._x - _x) / _root.speed);
this._y = this._y + ((_root.ball._y - _y) / _root.speed);
}
if (this.hitTest(_root.ball)) {
_root.ball._xscale = _root.ball._xscale + 10;
this._x = random(600) + 600;
this._y = random(600);
}
if (_root.ball._xscale > 199) {
_root.gotoAndStop("gameover");
}
if (this.hitTest(_root.shield)) {
_root.shield.nextFrame();
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (this.hitTest(_root.laser)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.m1.hitTest(this)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m1.gotoAndStop(140);
}
if (_root.m2.hitTest(this)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m2.gotoAndStop(140);
}
if (_root.m3.hitTest(this)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m3.gotoAndStop(140);
}
if (_root.m4.hitTest(this)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m4.gotoAndStop(140);
}
if (_root.b.hitTest(_x, _y, true)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.w.hitTest(_x, _y, true)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.restart == true) {
this._x = 700;
this._y = 100;
}
}
Instance of Symbol 57 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == false) {
this._x = this._x + ((_root.ball._x - _x) / _root.speed);
this._y = this._y + ((_root.ball._y - _y) / _root.speed);
}
if (this.hitTest(_root.ball)) {
_root.ball._xscale = _root.ball._xscale + 10;
this._x = random(600) + 600;
this._y = random(600);
}
if (_root.ball._xscale > 199) {
_root.gotoAndStop("gameover");
}
if (this.hitTest(_root.shield)) {
_root.shield.nextFrame();
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (this.hitTest(_root.laser)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.m1.hitTest(this)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m1.gotoAndStop(140);
}
if (_root.m2.hitTest(this)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m2.gotoAndStop(140);
}
if (_root.m3.hitTest(this)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m3.gotoAndStop(140);
}
if (_root.m4.hitTest(this)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
_root.m4.gotoAndStop(140);
}
if (_root.b.hitTest(_x, _y, true)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.w.hitTest(_x, _y, true)) {
this._x = random(600) + 600;
this._y = random(600);
_root.score = _root.score + 2;
}
if (_root.restart == true) {
this._x = 700;
this._y = 300;
}
}
Instance of Symbol 57 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == false) {
this._x = this._x + ((_root.ball._x - _x) / _root.speed);
this._y = this._y + ((_root.ball._y - _y) / _root.speed);
}
if (this.hitTest(_root.ball)) {
_root.ball._xscale = _root.ball._xscale + 10;
this._y = random(600) - 600;
this._x = random(600);
}
if (_root.ball._xscale > 199) {
_root.gotoAndStop("gameover");
}
if (this.hitTest(_root.shield)) {
_root.shield.nextFrame();
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (this.hitTest(_root.laser)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.m1.hitTest(this)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m1.gotoAndStop(140);
}
if (_root.m2.hitTest(this)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m2.gotoAndStop(140);
}
if (_root.m3.hitTest(this)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m3.gotoAndStop(140);
}
if (_root.m4.hitTest(this)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m4.gotoAndStop(140);
}
if (_root.b.hitTest(_x, _y, true)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.w.hitTest(_x, _y, true)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.restart == true) {
this._x = 600;
this._y = -700;
}
}
Instance of Symbol 57 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == false) {
this._x = this._x + ((_root.ball._x - _x) / _root.speed);
this._y = this._y + ((_root.ball._y - _y) / _root.speed);
}
if (this.hitTest(_root.ball)) {
_root.ball._xscale = _root.ball._xscale + 10;
this._y = random(600) - 600;
this._x = random(600);
}
if (_root.ball._xscale > 199) {
_root.gotoAndStop("gameover");
}
if (this.hitTest(_root.shield)) {
_root.shield.nextFrame();
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (this.hitTest(_root.laser)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.m1.hitTest(this)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m1.gotoAndStop(140);
}
if (_root.m2.hitTest(this)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m2.gotoAndStop(140);
}
if (_root.m3.hitTest(this)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m3.gotoAndStop(140);
}
if (_root.m4.hitTest(this)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m4.gotoAndStop(140);
}
if (_root.b.hitTest(_x, _y, true)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.w.hitTest(_x, _y, true)) {
this._y = random(600) - 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.restart == true) {
this._x = 300;
this._y = -700;
}
}
Instance of Symbol 57 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == false) {
this._x = this._x + ((_root.ball._x - _x) / _root.speed);
this._y = this._y + ((_root.ball._y - _y) / _root.speed);
}
if (this.hitTest(_root.ball)) {
_root.ball._xscale = _root.ball._xscale + 10;
this._y = random(600) + 600;
this._x = random(600);
}
if (_root.ball._xscale > 199) {
_root.gotoAndStop("gameover");
}
if (this.hitTest(_root.shield)) {
_root.shield.nextFrame();
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (this.hitTest(_root.laser)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.m1.hitTest(this)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m1.gotoAndStop(140);
}
if (_root.m2.hitTest(this)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m2.gotoAndStop(140);
}
if (_root.m3.hitTest(this)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m3.gotoAndStop(140);
}
if (_root.m4.hitTest(this)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m4.gotoAndStop(140);
}
if (_root.b.hitTest(_x, _y, true)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.w.hitTest(_x, _y, true)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.restart == true) {
this._x = 700;
this._y = 700;
}
}
Instance of Symbol 57 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == false) {
this._x = this._x + ((_root.ball._x - _x) / _root.speed);
this._y = this._y + ((_root.ball._y - _y) / _root.speed);
}
if (this.hitTest(_root.ball)) {
_root.ball._xscale = _root.ball._xscale + 10;
this._y = random(600) + 600;
this._x = random(600);
}
if (_root.ball._xscale > 199) {
_root.gotoAndStop("gameover");
}
if (this.hitTest(_root.shield)) {
_root.shield.nextFrame();
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (this.hitTest(_root.laser)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.m1.hitTest(this)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m1.gotoAndStop(140);
}
if (_root.m2.hitTest(this)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m2.gotoAndStop(140);
}
if (_root.m3.hitTest(this)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m3.gotoAndStop(140);
}
if (_root.m4.hitTest(this)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
_root.m4.gotoAndStop(140);
}
if (_root.b.hitTest(_x, _y, true)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.w.hitTest(_x, _y, true)) {
this._y = random(600) + 600;
this._x = random(600);
_root.score = _root.score + 2;
}
if (_root.restart == true) {
this._x = 700;
this._y = 700;
}
}
Instance of Symbol 60 MovieClip "laser" in Frame 7
onClipEvent (enterFrame) {
this.b._xscale = _root.lx;
this.b._yscale = _root.ly;
if (this.b._xscale > 300) {
this.b._xscale = 300;
this.b._yscale = 300;
}
}
onClipEvent (mouseDown) {
if (_root.pausee == false) {
if (_root._currentframe == 7) {
this.gotoAndPlay(2);
this._x = _root._xmouse;
this._y = _root._ymouse;
}
}
}
Instance of Symbol 63 MovieClip "w" in Frame 7
onClipEvent (load) {
if (_root.wave == false) {
this.gotoAndStop(31);
}
}
onClipEvent (mouseDown) {
if ((_root.pausee == false) && (_root.wave == true)) {
this.play();
}
}
Instance of Symbol 65 MovieClip "b" in Frame 7
onClipEvent (load) {
if (_root.beam == false) {
this.gotoAndStop(6);
}
}
onClipEvent (mouseDown) {
if ((_root.pausee == false) && (_root.beam == true)) {
this.gotoAndPlay(1);
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
}
}
Instance of Symbol 67 MovieClip "ball" in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == false) {
_root.thetime++;
}
this._yscale = this._xscale;
if (Key.isDown(32)) {
_root.pausee = true;
}
if (Key.isDown(13)) {
_root.pausee = false;
}
if (_root.thetime > _root.maxtime) {
_root.gotoAndStop("store");
}
}
Instance of Symbol 110 MovieClip "m1" in Frame 7
onClipEvent (load) {
if (_root.mines == false) {
this._visible = false;
this.gotoAndStop(140);
this.e.gotoAndStop(11);
}
if (_root.mines == true) {
this._visible = true;
this.gotoAndPlay(2);
}
}
Instance of Symbol 110 MovieClip "m3" in Frame 7
onClipEvent (load) {
if (_root.mines == false) {
this._visible = false;
this.gotoAndStop(140);
this.e.gotoAndStop(11);
}
if (_root.mines == true) {
this._visible = true;
this.gotoAndPlay(2);
}
}
Instance of Symbol 110 MovieClip "m2" in Frame 7
onClipEvent (load) {
if (_root.mines == false) {
this._visible = false;
this.gotoAndStop(140);
this.e.gotoAndStop(11);
}
if (_root.mines == true) {
this._visible = true;
this.gotoAndPlay(2);
}
}
Instance of Symbol 110 MovieClip "m4" in Frame 7
onClipEvent (load) {
if (_root.mines == false) {
this._visible = false;
this.gotoAndStop(140);
this.e.gotoAndStop(11);
}
if (_root.mines == true) {
this._visible = true;
this.gotoAndPlay(2);
}
}
Instance of Symbol 112 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.pausee == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Frame 8
stop();
_root.restart = true;
Frame 9
stop();
ab20_09 = new LoadVars();
ab20_09.z = username;
ab20_09.x = score;
ab20_09.c = 395;
ab20_09.v = "QCKEIR";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
Symbol 17 Button
on (release) {
if (_root.username != "Name") {
_root.gotoAndStop("menu");
}
if (_root.username == "Name") {
_root.info = "Enter your name/username. If you don't want to enter a name make something up.";
}
}
Symbol 20 Button
on (release) {
loadGame();
}
Symbol 27 Button
on (release) {
_root.gotoAndStop("info");
}
Symbol 29 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 31 Button
on (release) {
_root.gotoAndStop("options");
}
Symbol 35 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 44 Button
on (release) {
_root.music = "on";
}
Symbol 46 Button
on (release) {
_root.music = "off";
}
Symbol 48 Button
on (release) {
_root.speed = 70;
}
Symbol 50 Button
on (release) {
_root.speed = 60;
}
Symbol 52 Button
on (release) {
_root.speed = 40;
}
Symbol 60 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 31
stop();
Symbol 65 MovieClip Frame 5
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
stop();
Symbol 104 MovieClip Frame 3
stop();
Symbol 104 MovieClip Frame 4
stop();
Symbol 104 MovieClip Frame 5
stop();
Symbol 104 MovieClip Frame 6
stop();
Symbol 104 MovieClip Frame 7
stop();
Symbol 104 MovieClip Frame 8
stop();
Symbol 104 MovieClip Frame 9
stop();
Symbol 104 MovieClip Frame 10
stop();
Symbol 104 MovieClip Frame 11
stop();
Symbol 104 MovieClip Frame 12
stop();
Symbol 104 MovieClip Frame 13
stop();
if (_root.shieldlvl < 2) {
stop();
}
if (_root.shieldlvl > 1) {
play();
}
Symbol 104 MovieClip Frame 14
stop();
Symbol 104 MovieClip Frame 15
stop();
Symbol 104 MovieClip Frame 16
stop();
Symbol 104 MovieClip Frame 17
stop();
Symbol 104 MovieClip Frame 18
stop();
Symbol 104 MovieClip Frame 19
stop();
Symbol 104 MovieClip Frame 20
stop();
Symbol 104 MovieClip Frame 21
stop();
Symbol 104 MovieClip Frame 22
stop();
Symbol 104 MovieClip Frame 23
stop();
Symbol 104 MovieClip Frame 24
stop();
Symbol 104 MovieClip Frame 25
stop();
Symbol 104 MovieClip Frame 26
stop();
if (_root.shieldlvl < 3) {
stop();
}
if (_root.shieldlvl > 2) {
play();
}
Symbol 104 MovieClip Frame 27
stop();
Symbol 104 MovieClip Frame 28
stop();
Symbol 104 MovieClip Frame 29
stop();
Symbol 104 MovieClip Frame 30
stop();
Symbol 104 MovieClip Frame 31
stop();
Symbol 104 MovieClip Frame 32
stop();
Symbol 104 MovieClip Frame 33
stop();
Symbol 104 MovieClip Frame 34
stop();
Symbol 104 MovieClip Frame 35
stop();
Symbol 104 MovieClip Frame 36
stop();
Symbol 104 MovieClip Frame 37
stop();
Symbol 104 MovieClip Frame 38
stop();
Symbol 104 MovieClip Frame 39
stop();
Symbol 109 MovieClip Frame 11
stop();
Symbol 110 MovieClip Frame 139
gotoAndPlay (1);
Symbol 110 MovieClip Frame 140
stop();
Symbol 114 Button
on (release) {
_root.speed = _root.speed - 1;
_root.maxtime = _root.maxtime + 100;
_root.gotoAndStop("game");
}
Symbol 127 Button
on (release) {
if (_root.money > 99) {
_root.laser._xscale = _root.laser._xscale + 10;
_root.laser._yscale = _root.laser._yscale + 10;
_root.money = _root.money - 100;
}
}
Symbol 130 Button
on (release) {
if (_root.money > 149) {
_root.laser._xscale = _root.laser._xscale + 17;
_root.laser._yscale = _root.laser._yscale + 17;
_root.money = _root.money - 150;
}
}
Symbol 134 Button
on (release) {
if (_root.score > 0) {
_root.score = _root.score - 1;
_root.money++;
}
}
Symbol 136 Button
on (release) {
if (_root.score > 4) {
_root.score = _root.score - 5;
_root.money = _root.money + 5;
}
}
Symbol 138 Button
on (release) {
if (_root.score > 9) {
_root.score = _root.score - 10;
_root.money = _root.money + 10;
}
}
Symbol 140 Button
on (release) {
if (_root.score > 49) {
_root.score = _root.score - 50;
_root.money = _root.money + 50;
}
}
Symbol 142 Button
on (release) {
_root.money = _root.money + _root.score;
_root.score = _root.score - _root.score;
}
Symbol 145 Button
on (release) {
_root.store.play();
}
Symbol 156 Button
on (release) {
if (_root.money > 49) {
_root.saveGame();
_root.money = _root.money - 50;
}
}
Symbol 160 MovieClip Frame 1
stop();
Instance of Symbol 120 MovieClip "b1" in Symbol 160 MovieClip Frame 1
on (release) {
if (_root.money > 199) {
_root.shieldlvl = 2;
_root.money = _root.money - 200;
}
}
onClipEvent (enterFrame) {
this.gotoAndStop(1);
if (_root.shieldlvl > 1) {
_root.store.b1._visible = false;
}
}
Instance of Symbol 120 MovieClip "b2" in Symbol 160 MovieClip Frame 1
on (release) {
if (_root.money > 374) {
_root.shieldlvl = 3;
_root.money = _root.money - 375;
}
}
onClipEvent (enterFrame) {
this.gotoAndStop(1);
if (_root.shieldlvl == 3) {
_root.store.b2._visible = false;
}
}
Symbol 160 MovieClip Frame 2
stop();
Instance of Symbol 120 MovieClip "b3" in Symbol 160 MovieClip Frame 2
on (release) {
if (_root.money > 499) {
_root.mines = true;
_root.money = _root.money - 500;
}
}
onClipEvent (enterFrame) {
this.gotoAndStop(1);
if (_root.mines == true) {
_root.store.b3._visible = false;
}
}
Instance of Symbol 120 MovieClip "b4" in Symbol 160 MovieClip Frame 2
on (release) {
if (_root.money > 599) {
_root.beam = true;
_root.money = _root.money - 600;
}
}
onClipEvent (enterFrame) {
this.gotoAndStop(1);
if (_root.beam == true) {
_root.store.b4._visible = false;
}
}
Instance of Symbol 120 MovieClip "b5" in Symbol 160 MovieClip Frame 2
on (release) {
if (_root.money > 1199) {
_root.wave = true;
_root.money = _root.money - 1200;
}
}
onClipEvent (enterFrame) {
this.gotoAndStop(1);
if (_root.wave == true) {
_root.store.b5._visible = false;
}
}
Symbol 162 MovieClip Frame 107
stop();
Symbol 166 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=395", "_blank");
}