Frame 1
stop();
Instance of Symbol 2 MovieClip in Frame 1
onClipEvent (enterFrame) {
stop();
_root.PercentLoaded = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this._rotation = this._rotation + _root.PercentLoaded;
}
Instance of Symbol 5 MovieClip in Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.PercentLoaded == 100) {
play();
this._visible = true;
this._xscale = this._xscale + Math.round(this._xscale / 5);
this._yscale = this._xscale;
if (this._xscale > 1000) {
tellTarget ("_root") {
play();
};
}
}
}
Frame 2
stop();
_root.days = 100;
_root.compmoney = 0;
_root.money = 0;
_root.gas = 100;
_root.gasmax = 100;
_root.maxspeed = 5;
_root.life = 100;
_root.lifemax = 100;
_root.shieldtime = 100;
_root.shieldtimemax = 100;
_root.shieldnr = 3;
_root.speedbonus = 0;
_root._quality = "MEDIUM";
_root.money2 = 0;
_root.gas2 = 100;
_root.gasmax2 = 100;
_root.maxspeed2 = 5;
_root.life2 = 100;
_root.lifemax2 = 100;
_root.shieldtime2 = 100;
_root.shieldtimemax2 = 100;
_root.shieldnr2 = 3;
_root.speedbonus2 = 0;
Frame 3
pl1.useHandCursor = false;
pl2.useHandCursor = false;
options.useHandCursor = false;
load.useHandCursor = false;
stop();
Instance of Symbol 15 MovieClip in Frame 3
onClipEvent (load) {
_x = 0;
_y = 0;
speed = 30;
_root.count = 1;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Frame 4
pl1.useHandCursor = false;
pl2.useHandCursor = false;
load.useHandCursor = false;
mySharedObject = SharedObject.getLocal("savedObject");
Frame 5
stop();
mySharedObject = SharedObject.getLocal("savedObject");
_root.gas = _root.gasmax;
_root.lifeupg = Math.round(_root.lifemax + 10);
_root.lifeprice = Math.round(_root.lifemax * 10);
_root.shieldupg = Math.round(_root.shieldtimemax + 10);
_root.shieldprice = Math.round(_root.shieldtimemax * 9);
_root.gasupg = Math.round(_root.gasmax + 10);
_root.gasprice = Math.round(_root.gasmax * 20);
_root.maxspeedupg = _root.maxspeed + 0.5;
_root.maxspeedprice = _root.maxspeed * 1000;
_root.pl1move = true;
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.days < 1) {
tellTarget ("_root") {
gotoAndPlay ("end1");
};
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (Key.isDown(70)) {
if (Key.isDown(85)) {
if (Key.isDown(83)) {
if (Key.isDown(75)) {
_root.money = _root.money * 2;
_root.money2 = _root.money2 * 2;
}
}
}
}
}
Frame 7
stop();
Instance of Symbol 106 MovieClip "alien" in Frame 7
onClipEvent (load) {
speed = 40;
}
onClipEvent (enterFrame) {
this._x = this._x + ((endx - this._x) / speed);
this._y = this._y + ((endy - this._y) / speed);
if (_root.dollar.place == false) {
endx = _root.dollar._x;
endy = _root.dollar._y;
}
}
Instance of Symbol 108 MovieClip "shield" in Frame 7
onClipEvent (enterFrame) {
this._xscale = random(10) + 90;
this._yscale = this._xscale;
this._y = (_root.ship._y + random(5)) - 5;
this._x = (_root.ship._x + random(5)) - 5;
if (Key.isDown(96)) {
if (_root.shieldexist == false) {
if (_root.shieldnr > 0) {
_root.shieldnr = _root.shieldnr - 1;
_root.shieldtime = _root.shieldtimemax;
_root.shield._visible = true;
_root.shieldexist = true;
}
}
}
if (_root.shieldexist == false) {
_root.shield._visible = false;
} else if (_root.shieldtime < 0) {
_root.shield._visible = false;
_root.shieldexist = false;
}
if (_root.shieldexist == true) {
_root.shieldtime = _root.shieldtime - 1;
}
}
onClipEvent (load) {
_root.shieldexist = false;
_root.shield._visible = false;
_root.shieldtime = 100;
}
Instance of Symbol 115 MovieClip "ship" in Frame 7
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 10);
}
if (_root.pl1move == true) {
if (Key.isDown(38)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = 1;
_root.gas = _root.gas - (_root.maxspeed / 10);
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed) {
xSpeed = xSpeed * (_root.maxspeed / speed);
ySpeed = ySpeed * (_root.maxspeed / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
if (_root.pl1move == true) {
_y = 400;
}
}
if (_y > 400) {
if (_root.pl1move == true) {
_y = 0;
}
}
if (_x < 0) {
if (_root.pl1move == true) {
_x = 550;
}
}
if (_x > 550) {
if (_root.pl1move == true) {
_x = 0;
}
}
if (_root.pl1move == false) {
this._x = this._x + 3;
}
}
Instance of Symbol 118 MovieClip "dollar" in Frame 7
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 400;
_root.totalmoney = _root.totalmoney + 400;
_root.alien.endx = 260;
_root.alien.endy = 200;
}
if (this.hittest(_root.alien)) {
play();
_root.alien.endx = 260;
_root.alien.endy = 200;
_root.compmoney = _root.compmoney + 200;
}
if (place == true) {
this._y = random(400);
this._x = random(550);
}
if (this._currentframe > 2) {
_root.alien.endx = 260;
_root.alien.endy = 200;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 121 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.shieldnr = _root.shieldnr + 1;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 124 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.life = _root.lifemax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 129 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.gas = _root.gasmax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(2000);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 5 MovieClip in Frame 7
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.life < 1) {
this._x = _root.ship._x;
this._y = _root.ship._y;
this._visible = true;
_root.ship._visible = false;
this._xscale = this._xscale + Math.round(this._xscale / 5);
this._yscale = this._xscale;
play();
}
if (this._xscale > 1000) {
tellTarget ("_root") {
gotoAndPlay ("shoppl1");
_root.txtbox = "You died. All your money went to repairing your ship.";
_root.life = _root.lifemax;
_root.money = 0;
_root.days = _root.days - 1;
};
}
}
Instance of Symbol 139 MovieClip in Frame 7
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.gas / _root.gasmax) * 100);
gotoAndStop(Math.round((_root.gas / _root.gasmax) * 100) +4);
stop();
if (_root.gas < 0) {
tellTarget ("_root") {
gotoAndStop ("shoppl1");
_root.txtbox = "You ran out of gas.";
_root.days = _root.days - 1;
};
}
}
Instance of Symbol 139 MovieClip in Frame 7
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.life / _root.lifemax) * 100);
gotoAndStop(Math.round((_root.life / _root.lifemax) * 100) +4);
stop();
}
Instance of Symbol 139 MovieClip in Frame 7
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.shieldtime / _root.shieldtimemax) * 100);
gotoAndStop(Math.round((_root.shieldtime / _root.shieldtimemax) * 100) +4);
stop();
if (_root.shieldexist == false) {
gotoAndStop (104);
}
}
Instance of Symbol 108 MovieClip in Frame 7
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 156 MovieClip in Frame 7
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.life / _root.lifemax) * 100);
gotoAndStop(Math.round((_root.life / _root.lifemax) * 100) +4);
stop();
}
Instance of Symbol 159 MovieClip in Frame 8
onClipEvent (load) {
this._x = random(450) + 100;
this._y = 50;
}
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
}
}
Instance of Symbol 108 MovieClip "shield" in Frame 8
onClipEvent (enterFrame) {
this._xscale = random(10) + 90;
this._yscale = this._xscale;
this._y = (_root.ship._y + random(5)) - 5;
this._x = (_root.ship._x + random(5)) - 5;
if (Key.isDown(96)) {
if (_root.shieldexist == false) {
if (_root.shieldnr > 0) {
_root.shieldnr = _root.shieldnr - 1;
_root.shieldtime = _root.shieldtimemax;
_root.shield._visible = true;
_root.shieldexist = true;
}
}
}
if (_root.shieldexist == false) {
_root.shield._visible = false;
} else if (_root.shieldtime < 0) {
_root.shield._visible = false;
_root.shieldexist = false;
}
if (_root.shieldexist == true) {
_root.shieldtime = _root.shieldtime - 1;
}
}
onClipEvent (load) {
_root.shieldexist = false;
_root.shield._visible = false;
_root.shieldtime = 100;
}
Instance of Symbol 115 MovieClip "ship" in Frame 8
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 10);
}
if (_root.pl1move == true) {
if (Key.isDown(38)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = 1;
_root.gas = _root.gas - (_root.maxspeed / 10);
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed) {
xSpeed = xSpeed * (_root.maxspeed / speed);
ySpeed = ySpeed * (_root.maxspeed / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
if (_root.pl1move == true) {
_y = 400;
}
}
if (_y > 400) {
if (_root.pl1move == true) {
_y = 0;
}
}
if (_x < 0) {
if (_root.pl1move == true) {
_x = 550;
}
}
if (_x > 550) {
if (_root.pl1move == true) {
_x = 0;
}
}
if (_root.pl1move == false) {
this._x = this._x + 3;
}
}
Instance of Symbol 118 MovieClip "dollar" in Frame 8
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 500;
_root.totalmoney = _root.totalmoney + 500;
_root.alien.endx = 260;
_root.alien.endy = 200;
}
if (this.hittest(_root.alien)) {
play();
_root.alien.endx = 260;
_root.alien.endy = 200;
_root.compmoney = _root.compmoney + 200;
}
if (place == true) {
this._y = random(400);
this._x = random(550);
}
if (this._currentframe > 2) {
_root.alien.endx = 260;
_root.alien.endy = 200;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 121 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.shieldnr = _root.shieldnr + 1;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 124 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.life = _root.lifemax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 129 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.gas = _root.gasmax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(2000);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 164 MovieClip in Frame 9
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 167 MovieClip in Frame 9
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 170 MovieClip in Frame 9
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 173 MovieClip in Frame 9
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 118 MovieClip "dollar" in Frame 9
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 700;
_root.totalmoney = _root.totalmoney + 350;
_root.alien.endx = 260;
_root.alien.endy = 200;
}
if (this.hittest(_root.alien)) {
play();
_root.alien.endx = 260;
_root.alien.endy = 200;
_root.compmoney = _root.compmoney + 200;
}
if (place == true) {
this._y = random(400);
this._x = random(550);
}
if (this._currentframe > 2) {
_root.alien.endx = 260;
_root.alien.endy = 200;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 15 MovieClip in Frame 10
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
}
Instance of Symbol 106 MovieClip in Frame 10
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
}
Instance of Symbol 15 MovieClip in Frame 10
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship2._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship2._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
}
Instance of Symbol 106 MovieClip in Frame 10
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship2._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship2._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
}
Instance of Symbol 177 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.ship._y > 200) {
_root.ship.yspeed = _root.ship.yspeed + 0.05;
} else {
_root.ship.yspeed = _root.ship.yspeed - 0.05;
}
if (_root.ship._x > 275) {
_root.ship.xspeed = _root.ship.xspeed - 0.05;
} else {
_root.ship.xspeed = _root.ship.xspeed + 0.05;
}
this._xscale = this._xscale + 0.25;
this._yscale = this._xscale;
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
if (_root.ship2._x > 275) {
_root.ship2.xspeed = _root.ship2.xspeed - 0.05;
} else {
_root.ship2.xspeed = _root.ship2.xspeed + 0.05;
}
}
if (_root.ship2._y > 200) {
_root.ship2.yspeed = _root.ship2.yspeed + 0.05;
} else {
_root.ship2.yspeed = _root.ship2.yspeed - 0.05;
}
}
Instance of Symbol 118 MovieClip "dollar" in Frame 11
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 900;
_root.totalmoney = _root.totalmoney + 450;
_root.alien.endx = 260;
_root.alien.endy = 200;
}
if (this.hittest(_root.alien)) {
play();
_root.alien.endx = 260;
_root.alien.endy = 200;
_root.compmoney = _root.compmoney + 200;
}
if (place == true) {
this._y = random(400);
this._x = random(550);
}
if (this._currentframe > 2) {
_root.alien.endx = 260;
_root.alien.endy = 200;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 177 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.ship2._x > 275) {
_root.ship2.xspeed = _root.ship2.xspeed - 0.2;
} else {
_root.ship2.xspeed = _root.ship2.xspeed + 0.2;
}
if (_root.ship2._y > 200) {
_root.ship2.yspeed = _root.ship2.yspeed + 0.2;
} else {
_root.ship2.yspeed = _root.ship2.yspeed - 0.2;
}
if (_root.ship._y > 200) {
_root.ship.yspeed = _root.ship.yspeed + 0.2;
} else {
_root.ship.yspeed = _root.ship.yspeed - 0.2;
}
if (_root.ship._x > 275) {
_root.ship.xspeed = _root.ship.xspeed - 0.2;
} else {
_root.ship.xspeed = _root.ship.xspeed + 0.2;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
}
Instance of Symbol 118 MovieClip "dollar" in Frame 12
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 1000;
_root.totalmoney = _root.totalmoney + 500;
_root.alien.endx = 260;
_root.alien.endy = 200;
}
if (this.hittest(_root.alien)) {
play();
_root.alien.endx = 260;
_root.alien.endy = 200;
_root.compmoney = _root.compmoney + 200;
}
if (place == true) {
this._y = random(400);
this._x = random(550);
}
if (this._currentframe > 2) {
_root.alien.endx = 260;
_root.alien.endy = 200;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Frame 13
stop();
Instance of Symbol 106 MovieClip "alien" in Frame 13
onClipEvent (load) {
speed = 30;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Instance of Symbol 106 MovieClip "alien" in Frame 13
onClipEvent (load) {
speed = 40;
}
onClipEvent (enterFrame) {
undX = _root._xmouse;
undY = _root._ymouse;
_x = (_x + ((undX - _x) / speed));
_y = (_y + ((undY - _y) / speed));
}
Instance of Symbol 106 MovieClip "alien" in Frame 13
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Instance of Symbol 106 MovieClip "alien" in Frame 13
onClipEvent (load) {
speed = 50;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Instance of Symbol 187 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.totalmoney > _root.compmoney) {
plstatus = "You won!";
pl2status = "Computer lost!";
} else {
plstatus = "You lost!";
pl2status = "Computer won!";
}
}
Frame 14
stop();
mySharedObject = SharedObject.getLocal("savedObject");
_root.gas = _root.gasmax;
_root.lifeupg = Math.round(_root.lifemax + 10);
_root.lifeprice = Math.round(_root.lifemax * 10);
_root.shieldupg = Math.round(_root.shieldtimemax + 10);
_root.shieldprice = Math.round(_root.shieldtimemax * 9);
_root.gasupg = Math.round(_root.gasmax + 10);
_root.gasprice = Math.round(_root.gasmax * 20);
_root.maxspeedupg = _root.maxspeed + 0.5;
_root.maxspeedprice = _root.maxspeed * 1000;
_root.pl1move = true;
_root.pl2move = true;
Instance of Symbol 217 MovieClip "pl1end" in Frame 14
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 79 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (Key.isDown(70)) {
if (Key.isDown(85)) {
if (Key.isDown(83)) {
if (Key.isDown(75)) {
_root.money = _root.money * 2;
_root.money2 = _root.money2 * 2;
}
}
}
}
}
Frame 15
stop();
Instance of Symbol 108 MovieClip "shield" in Frame 15
onClipEvent (enterFrame) {
this._xscale = random(10) + 90;
this._yscale = this._xscale;
this._y = (_root.ship._y + random(5)) - 5;
this._x = (_root.ship._x + random(5)) - 5;
if (Key.isDown(96)) {
if (_root.shieldexist == false) {
if (_root.shieldnr > 0) {
_root.shieldnr = _root.shieldnr - 1;
_root.shieldtime = _root.shieldtimemax;
_root.shield._visible = true;
_root.shieldexist = true;
}
}
}
if (_root.shieldexist == false) {
_root.shield._visible = false;
} else if (_root.shieldtime < 0) {
_root.shield._visible = false;
_root.shieldexist = false;
}
if (_root.shieldexist == true) {
_root.shieldtime = _root.shieldtime - 1;
}
}
onClipEvent (load) {
_root.shieldexist = false;
_root.shield._visible = false;
_root.shieldtime = 100;
}
Instance of Symbol 108 MovieClip "shield2" in Frame 15
onClipEvent (enterFrame) {
this._xscale = random(10) + 90;
this._yscale = this._xscale;
this._y = (_root.ship2._y + random(5)) - 5;
this._x = (_root.ship2._x + random(5)) - 5;
if (Key.isDown(32)) {
if (_root.shieldexist2 == false) {
if (_root.shieldnr2 > 0) {
_root.shieldnr2 = _root.shieldnr2 - 1;
_root.shieldtime2 = _root.shieldtimemax2;
_root.shield2._visible = true;
_root.shieldexist2 = true;
}
}
}
if (_root.shieldexist2 == false) {
_root.shield2._visible = false;
} else if (_root.shieldtime2 < 0) {
_root.shield2._visible = false;
_root.shieldexist2 = false;
}
if (_root.shieldexist2 == true) {
_root.shieldtime2 = _root.shieldtime2 - 1;
}
}
onClipEvent (load) {
_root.shieldexist2 = false;
_root.shield2._visible = false;
_root.shieldtime2 = 100;
}
Instance of Symbol 115 MovieClip "ship" in Frame 15
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 10);
}
if (_root.pl1move == true) {
if (Key.isDown(38)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = 1;
_root.gas = _root.gas - (_root.maxspeed / 10);
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed) {
xSpeed = xSpeed * (_root.maxspeed / speed);
ySpeed = ySpeed * (_root.maxspeed / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
if (_root.pl1move == true) {
_y = 400;
}
}
if (_y > 400) {
if (_root.pl1move == true) {
_y = 0;
}
}
if (_x < 0) {
if (_root.pl1move == true) {
_x = 550;
}
}
if (_x > 550) {
if (_root.pl1move == true) {
_x = 0;
}
}
if (_root.pl1move == false) {
this._x = this._x + 3;
}
}
Instance of Symbol 118 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 400;
_root.totalmoney2 = _root.totalmoney2 + 400;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 400;
_root.totalmoney = _root.totalmoney + 400;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 220 MovieClip "ship2" in Frame 15
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(65)) {
_rotation = (_rotation - 10);
}
if (_root.pl2move == true) {
if (Key.isDown(87)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = true;
_root.gas2 = _root.gas2 - (_root.maxspeed2 / 10);
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed2) {
xSpeed = xSpeed * (_root.maxspeed2 / speed);
ySpeed = ySpeed * (_root.maxspeed2 / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
if (_root.pl2move == true) {
_y = 400;
}
}
if (_y > 400) {
if (_root.pl2move == true) {
_y = 0;
}
}
if (_x < 0) {
if (_root.pl2move == true) {
_x = 550;
}
}
if (_x > 550) {
if (_root.pl2move == true) {
_x = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.ship2.ship.hitTest(_root.ship.ship)) {
yknock = ySpeed;
xknock = xSpeed;
ySpeed = _root.ship.ySpeed * 5;
xSpeed = _root.ship.xSpeed * 5;
_root.ship.ySpeed = yknock * 5;
_root.ship.xSpeed = xknock * 5;
}
if (_root.pl2move == false) {
this._x = this._x + 3;
}
}
Instance of Symbol 121 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.shieldnr2 = _root.shieldnr2 + 1;
}
if (this.hittest(_root.ship)) {
play();
_root.shieldnr = _root.shieldnr + 1;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 124 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.life2 = _root.lifemax2;
}
if (this.hittest(_root.ship)) {
play();
_root.life = _root.lifemax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 129 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.gas2 = _root.gasmax2;
}
if (this.hittest(_root.ship)) {
play();
_root.gas = _root.gasmax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(2000);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 139 MovieClip in Frame 15
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.gas / _root.gasmax) * 100);
gotoAndStop(Math.round((_root.gas / _root.gasmax) * 100) +13);
stop();
if (_root.gas < 0) {
_root.pl1move = false;
if (_root.gas2 < 0) {
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = "You ran out of gas.";
};
}
} else {
_root.pl1move = true;
}
}
Instance of Symbol 139 MovieClip in Frame 15
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.life / _root.lifemax) * 100);
gotoAndStop(Math.round((_root.life / _root.lifemax) * 100) +13);
stop();
}
Instance of Symbol 139 MovieClip in Frame 15
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.shieldtime / _root.shieldtimemax) * 100);
gotoAndStop(Math.round((_root.shieldtime / _root.shieldtimemax) * 100) +13);
stop();
if (_root.shieldexist == false) {
gotoAndStop (113);
}
}
Instance of Symbol 108 MovieClip in Frame 15
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 139 MovieClip in Frame 15
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.gas2 / _root.gasmax2) * 100);
gotoAndStop(Math.round((_root.gas2 / _root.gasmax2) * 100) +13);
stop();
if (_root.gas2 < 0) {
_root.pl2move = false;
if (_root.gas < 0) {
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = "You ran out of gas.";
};
}
} else {
_root.pl2move = true;
}
}
Instance of Symbol 139 MovieClip in Frame 15
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.life2 / _root.lifemax2) * 100);
gotoAndStop(Math.round((_root.life2 / _root.lifemax2) * 100) +13);
stop();
}
Instance of Symbol 139 MovieClip in Frame 15
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.shieldtime2 / _root.shieldtimemax2) * 100);
gotoAndStop(Math.round((_root.shieldtime2 / _root.shieldtimemax2) * 100) +13);
stop();
if (_root.shieldexist2 == false) {
gotoAndStop (113);
}
}
Instance of Symbol 108 MovieClip in Frame 15
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 231 MovieClip in Frame 15
onClipEvent (load) {
stop();
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gas < 0) {
if (Key.isDown(87)) {
stop();
} else {
play();
this._visible = true;
}
} else if (_root.gas2 < 0) {
if (Key.isDown(38)) {
stop();
} else {
play();
this._visible = true;
}
}
}
Frame 16
stop();
Instance of Symbol 159 MovieClip in Frame 16
onClipEvent (load) {
this._x = random(450) + 100;
this._y = 50;
}
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
}
Instance of Symbol 5 MovieClip in Frame 16
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.life < 1) {
this._x = _root.ship._x;
this._y = _root.ship._y;
this._visible = true;
_root.ship._visible = false;
this._xscale = this._xscale + Math.round(this._xscale / 5);
this._yscale = this._xscale;
play();
}
if (this._xscale > 1000) {
tellTarget ("_root") {
gotoAndPlay ("shop");
_root.txtbox = "You died. All your money went to repairing your ship.";
_root.life = _root.lifemax;
_root.money = 0;
};
}
}
Instance of Symbol 121 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.shieldnr2 = _root.shieldnr2 + 1;
}
if (this.hittest(_root.ship)) {
play();
_root.shieldnr = _root.shieldnr + 1;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 124 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.life2 = _root.lifemax2;
}
if (this.hittest(_root.ship)) {
play();
_root.life = _root.lifemax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 129 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.gas2 = _root.gasmax2;
}
if (this.hittest(_root.ship)) {
play();
_root.gas = _root.gasmax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(2000);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 5 MovieClip in Frame 16
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.life2 < 1) {
this._x = _root.ship2._x;
this._y = _root.ship2._y;
this._visible = true;
_root.ship2._visible = false;
this._xscale = this._xscale + Math.round(this._xscale / 5);
this._yscale = this._xscale;
play();
}
if (this._xscale > 1000) {
tellTarget ("_root") {
gotoAndPlay ("shop");
_root.txtbox = "Player 2 died. All your money went to repairing your ship.";
_root.life2 = _root.lifemax2;
_root.money2 = 0;
};
}
}
Instance of Symbol 220 MovieClip "ship2" in Frame 16
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(65)) {
_rotation = (_rotation - 10);
}
if (_root.pl2move == true) {
if (Key.isDown(87)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = true;
_root.gas2 = _root.gas2 - (_root.maxspeed2 / 10);
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed2) {
xSpeed = xSpeed * (_root.maxspeed2 / speed);
ySpeed = ySpeed * (_root.maxspeed2 / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
if (_root.pl2move == true) {
_y = 400;
}
}
if (_y > 400) {
if (_root.pl2move == true) {
_y = 0;
}
}
if (_x < 0) {
if (_root.pl2move == true) {
_x = 550;
}
}
if (_x > 550) {
if (_root.pl2move == true) {
_x = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.ship2.ship.hitTest(_root.ship.ship)) {
yknock = ySpeed;
xknock = xSpeed;
ySpeed = _root.ship.ySpeed * 5;
xSpeed = _root.ship.xSpeed * 5;
_root.ship.ySpeed = yknock * 5;
_root.ship.xSpeed = xknock * 5;
}
if (_root.pl2move == false) {
this._x = this._x + 3;
}
}
Instance of Symbol 118 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 500;
_root.totalmoney2 = _root.totalmoney2 + 500;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 500;
_root.totalmoney = _root.totalmoney + 500;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Frame 17
stop();
Instance of Symbol 164 MovieClip in Frame 17
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 167 MovieClip in Frame 17
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 170 MovieClip in Frame 17
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 173 MovieClip in Frame 17
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 118 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 800;
_root.totalmoney2 = _root.totalmoney2 + 800;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 800;
_root.totalmoney = _root.totalmoney + 800;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Frame 18
stop();
Instance of Symbol 15 MovieClip in Frame 18
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
}
Instance of Symbol 106 MovieClip in Frame 18
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
}
Instance of Symbol 15 MovieClip in Frame 18
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship2._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship2._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
}
Instance of Symbol 106 MovieClip in Frame 18
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship2._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship2._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
}
Instance of Symbol 118 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 600;
_root.totalmoney2 = _root.totalmoney2 + 600;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 600;
_root.totalmoney = _root.totalmoney + 600;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Frame 19
stop();
Instance of Symbol 177 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_root.ship._y > 200) {
_root.ship.yspeed = _root.ship.yspeed + 0.05;
} else {
_root.ship.yspeed = _root.ship.yspeed - 0.05;
}
if (_root.ship._x > 275) {
_root.ship.xspeed = _root.ship.xspeed - 0.05;
} else {
_root.ship.xspeed = _root.ship.xspeed + 0.05;
}
this._xscale = this._xscale + 0.25;
this._yscale = this._xscale;
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
if (_root.ship2._x > 275) {
_root.ship2.xspeed = _root.ship2.xspeed - 0.05;
} else {
_root.ship2.xspeed = _root.ship2.xspeed + 0.05;
}
}
if (_root.ship2._y > 200) {
_root.ship2.yspeed = _root.ship2.yspeed + 0.05;
} else {
_root.ship2.yspeed = _root.ship2.yspeed - 0.05;
}
}
Instance of Symbol 118 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 900;
_root.totalmoney2 = _root.totalmoney2 + 900;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 900;
_root.totalmoney = _root.totalmoney + 900;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Frame 20
stop();
Instance of Symbol 177 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.ship2._x > 275) {
_root.ship2.xspeed = _root.ship2.xspeed - 0.2;
} else {
_root.ship2.xspeed = _root.ship2.xspeed + 0.2;
}
if (_root.ship2._y > 200) {
_root.ship2.yspeed = _root.ship2.yspeed + 0.2;
} else {
_root.ship2.yspeed = _root.ship2.yspeed - 0.2;
}
if (_root.ship._y > 200) {
_root.ship.yspeed = _root.ship.yspeed + 0.2;
} else {
_root.ship.yspeed = _root.ship.yspeed - 0.2;
}
if (_root.ship._x > 275) {
_root.ship.xspeed = _root.ship.xspeed - 0.2;
} else {
_root.ship.xspeed = _root.ship.xspeed + 0.2;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
}
Instance of Symbol 118 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 1000;
_root.totalmoney2 = _root.totalmoney2 + 1000;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 1000;
_root.totalmoney = _root.totalmoney + 1000;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Frame 23
stop();
_root.gas2 = _root.gasmax2;
_root.lifeupg2 = Math.round(_root.lifemax2 + 10);
_root.lifeprice2 = Math.round(_root.lifemax2 * 10);
_root.shieldupg2 = Math.round(_root.shieldtimemax2 + 10);
_root.shieldprice2 = Math.round(_root.shieldtimemax2 * 9);
_root.gasupg2 = Math.round(_root.gasmax2 + 10);
_root.gasprice2 = Math.round(_root.gasmax2 * 20);
_root.maxspeedupg2 = _root.maxspeed2 + 0.5;
_root.maxspeedprice2 = _root.maxspeed2 * 1000;
Instance of Symbol 273 MovieClip "pl2end" in Frame 23
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 108 MovieClip "shield" in Frame 24
onClipEvent (enterFrame) {
this._xscale = random(10) + 90;
this._yscale = this._xscale;
this._y = (_root.ship._y + random(5)) - 5;
this._x = (_root.ship._x + random(5)) - 5;
if (Key.isDown(96)) {
if (_root.shieldexist == false) {
if (_root.shieldnr > 0) {
_root.shieldnr = _root.shieldnr - 1;
_root.shieldtime = _root.shieldtimemax;
_root.shield._visible = true;
_root.shieldexist = true;
}
}
}
if (_root.shieldexist == false) {
_root.shield._visible = false;
} else if (_root.shieldtime < 0) {
_root.shield._visible = false;
_root.shieldexist = false;
}
if (_root.shieldexist == true) {
_root.shieldtime = _root.shieldtime - 1;
}
}
onClipEvent (load) {
_root.shieldexist = false;
_root.shield._visible = false;
_root.shieldtime = 100;
}
Instance of Symbol 108 MovieClip "shield2" in Frame 24
onClipEvent (enterFrame) {
this._xscale = random(10) + 90;
this._yscale = this._xscale;
this._y = (_root.ship2._y + random(5)) - 5;
this._x = (_root.ship2._x + random(5)) - 5;
if (Key.isDown(32)) {
if (_root.shieldexist2 == false) {
if (_root.shieldnr2 > 0) {
_root.shieldnr2 = _root.shieldnr2 - 1;
_root.shieldtime2 = _root.shieldtimemax2;
_root.shield2._visible = true;
_root.shieldexist2 = true;
}
}
}
if (_root.shieldexist2 == false) {
_root.shield2._visible = false;
} else if (_root.shieldtime2 < 0) {
_root.shield2._visible = false;
_root.shieldexist2 = false;
}
if (_root.shieldexist2 == true) {
_root.shieldtime2 = _root.shieldtime2 - 1;
}
}
onClipEvent (load) {
_root.shieldexist2 = false;
_root.shield2._visible = false;
_root.shieldtime2 = 100;
}
Instance of Symbol 115 MovieClip "ship" in Frame 24
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 10);
}
if (Key.isDown(38)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = 1;
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed) {
xSpeed = xSpeed * (_root.maxspeed / speed);
ySpeed = ySpeed * (_root.maxspeed / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
_y = 400;
}
if (_y > 400) {
_y = 0;
}
if (_x < 0) {
_x = 550;
}
if (_x > 550) {
_x = 0;
}
}
Instance of Symbol 220 MovieClip "ship2" in Frame 24
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(65)) {
_rotation = (_rotation - 10);
}
if (Key.isDown(87)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = true;
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed2) {
xSpeed = xSpeed * (_root.maxspeed2 / speed);
ySpeed = ySpeed * (_root.maxspeed2 / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
_y = 400;
}
if (_y > 400) {
_y = 0;
}
if (_x < 0) {
_x = 550;
}
if (_x > 550) {
_x = 0;
}
}
onClipEvent (enterFrame) {
if (_root.ship2.ship.hitTest(_root.ship.ship)) {
yknock = ySpeed;
xknock = xSpeed;
ySpeed = _root.ship.ySpeed * 5;
xSpeed = _root.ship.xSpeed * 5;
_root.ship.ySpeed = yknock * 5;
_root.ship.xSpeed = xknock * 5;
}
}
Instance of Symbol 276 MovieClip "money" in Frame 24
onClipEvent (load) {
gotoAndStop (133);
}
Instance of Symbol 279 MovieClip in Frame 24
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
tellTarget ("_root.money") {
_currentframe = (_currentframe + 1);
gotoAndStop(_currentframe + 1);
};
}
if (this.hittest(_root.ship2)) {
tellTarget ("_root.money") {
_currentframe = (_currentframe - 1);
gotoAndStop(_currentframe - 1);
};
}
}
Instance of Symbol 139 MovieClip in Frame 24
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.life / _root.lifemax) * 100);
gotoAndStop(Math.round((_root.life / _root.lifemax) * 100) +13);
stop();
}
Instance of Symbol 139 MovieClip in Frame 24
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.shieldtime / _root.shieldtimemax) * 100);
gotoAndStop(Math.round((_root.shieldtime / _root.shieldtimemax) * 100) +13);
stop();
if (_root.shieldexist == false) {
gotoAndStop (113);
}
}
Instance of Symbol 108 MovieClip in Frame 24
onClipEvent (enterFrame) {
if (Key.isDown(46)) {
_root.money = _root.money + 1000;
}
}
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 139 MovieClip in Frame 24
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.life2 / _root.lifemax2) * 100);
gotoAndStop(Math.round((_root.life2 / _root.lifemax2) * 100) +13);
stop();
}
Instance of Symbol 139 MovieClip in Frame 24
onClipEvent (enterFrame) {
_currentframe = Math.round((_root.shieldtime2 / _root.shieldtimemax2) * 100);
gotoAndStop(Math.round((_root.shieldtime2 / _root.shieldtimemax2) * 100) +13);
stop();
if (_root.shieldexist2 == false) {
gotoAndStop (113);
}
}
Instance of Symbol 108 MovieClip in Frame 24
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 220 MovieClip "ship2" in Frame 25
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(65)) {
_rotation = (_rotation - 10);
}
if (Key.isDown(87)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = true;
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed2) {
xSpeed = xSpeed * (_root.maxspeed2 / speed);
ySpeed = ySpeed * (_root.maxspeed2 / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
_y = 400;
}
if (_y > 400) {
_y = 0;
}
if (_x < 0) {
_x = 550;
}
if (_x > 550) {
_x = 0;
}
}
onClipEvent (enterFrame) {
if (_root.ship2.ship.hitTest(_root.ship.ship)) {
yknock = ySpeed;
xknock = xSpeed;
ySpeed = _root.ship.ySpeed;
xSpeed = _root.ship.xSpeed;
_root.ship.ySpeed = yknock;
_root.ship.xSpeed = xknock;
}
}
Instance of Symbol 286 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2.ship)) {
} else {
_root.money2 = _root.money2 - Math.round(_root.money2 / 2);
_root.money = _root.money + _root.money2;
_root.totalmoney = _root.totalmoney + _root.money2;
_root.txtbox = ("Player 1 won! You got " + _root.money2) + "!";
tellTarget ("_root") {
gotoAndStop ("shop");
};
}
if (this.hittest(_root.ship.ship)) {
} else {
_root.money = _root.money - Math.round(_root.money / 2);
_root.money2 = _root.money2 + _root.money;
_root.totalmoney2 = _root.totalmoney2 + _root.money;
_root.txtbox = ("Player 2 won! You got " + _root.money) + "!";
tellTarget ("_root") {
gotoAndStop ("shop");
};
}
}
Instance of Symbol 115 MovieClip "ship" in Frame 26
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 10);
}
if (Key.isDown(38)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = 1;
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed) {
xSpeed = xSpeed * (_root.maxspeed / speed);
ySpeed = ySpeed * (_root.maxspeed / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
_y = 400;
}
if (_y > 400) {
_y = 0;
}
if (_x < 0) {
_x = 550;
}
if (_x > 550) {
_x = 0;
}
if (flag._visible == true) {
tellTarget ("_root.moneymover") {
_currentframe = (_currentframe + 1);
gotoAndPlay(_currentframe + 1);
};
}
}
Instance of Symbol 220 MovieClip "ship2" in Frame 26
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(65)) {
_rotation = (_rotation - 10);
}
if (Key.isDown(87)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = true;
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed2) {
xSpeed = xSpeed * (_root.maxspeed2 / speed);
ySpeed = ySpeed * (_root.maxspeed2 / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
_y = 400;
}
if (_y > 400) {
_y = 0;
}
if (_x < 0) {
_x = 550;
}
if (_x > 550) {
_x = 0;
}
}
onClipEvent (enterFrame) {
if (_root.ship2.ship.hitTest(_root.ship.ship)) {
yknock = ySpeed;
xknock = xSpeed;
ySpeed = _root.ship.ySpeed;
xSpeed = _root.ship.xSpeed;
_root.ship.ySpeed = yknock;
_root.ship.xSpeed = xknock;
if (_root.ship.flag._visible == true) {
_root.ship.flag._visible = false;
flag._visible = true;
} else {
flag._visible = false;
_root.ship.flag._visible = true;
}
}
if (flag._visible == true) {
tellTarget ("_root.moneymover") {
_currentframe = (_currentframe - 2);
gotoAndPlay(_currentframe - 2);
};
}
}
Instance of Symbol 114 MovieClip "flag" in Frame 26
onClipEvent (enterFrame) {
if (this.hittest(_root.ship.ship)) {
this._visible = false;
_root.ship.flag._visible = true;
this._x = 15000;
} else if (this.hittest(_root.ship2.ship)) {
this._visible = false;
this._x = 15000;
_root.ship2.flag._visible = true;
}
}
Instance of Symbol 287 MovieClip "moneymover" in Frame 26
onClipEvent (load) {
gotoAndStop (513);
}
onClipEvent (enterFrame) {
stop();
}
Frame 27
stop();
Instance of Symbol 106 MovieClip "alien" in Frame 27
onClipEvent (load) {
speed = 30;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Instance of Symbol 106 MovieClip "alien" in Frame 27
onClipEvent (load) {
speed = 40;
}
onClipEvent (enterFrame) {
undX = _root._xmouse;
undY = _root._ymouse;
_x = (_x + ((undX - _x) / speed));
_y = (_y + ((undY - _y) / speed));
}
Instance of Symbol 106 MovieClip "alien" in Frame 27
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Instance of Symbol 106 MovieClip "alien" in Frame 27
onClipEvent (load) {
speed = 50;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Instance of Symbol 187 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (_root.totalmoney > _root.totalmoney2) {
plstatus = "Player 1 won!";
pl2status = "Player 2 lost!";
} else if (_root.totalmoney == _root.totalmoney2) {
plstatus = "IT'S A TIE!";
pl2status = "IT'S A TIE!";
} else {
plstatus = "Player 1 lost!";
pl2status = "Player 2 won!";
}
}
Symbol 5 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 180
tellTarget ("_root") {
play();
};
Symbol 13 Button
on (release) {
getURL ("http://aa.1asphost.com/asvegren", "_blank");
}
Symbol 22 Button
on (release) {
nextFrame();
}
Symbol 23 Button
on (release) {
gotoAndStop (14);
}
Symbol 24 Button
on (release) {
gotoAndStop (5);
}
Symbol 28 Button
on (release) {
prevFrame();
}
Symbol 29 Button
on (release) {
_root.maxspeed = mySharedObject.data.maxspeed;
_root.money = mySharedObject.data.money;
_root.life = mySharedObject.data.life;
_root.lifemax = mySharedObject.data.lifemax;
_root.shieldtime = mySharedObject.data.shieldtime;
_root.shieldtimemax = mySharedObject.data.shieldtimemax;
_root.gas = mySharedObject.data.gas;
_root.gasmax = mySharedObject.data.gasmax;
_root.shieldnr = mySharedObject.data.shieldnr;
gotoAndStop (14);
_root.maxspeed2 = mySharedObject.data.maxspeed2;
_root.money2 = mySharedObject.data.money2;
_root.life2 = mySharedObject.data.life2;
_root.lifemax2 = mySharedObject.data.lifemax2;
_root.shieldtime2 = mySharedObject.data.shieldtime2;
_root.shieldtimemax2 = mySharedObject.data.shieldtimemax2;
_root.gas2 = mySharedObject.data.gas2;
_root.gasmax2 = mySharedObject.data.gasmax2;
_root.shieldnr2 = mySharedObject.data.shieldnr2;
}
Symbol 30 Button
on (release) {
_root.days = mySharedObject.data.days;
_root.totalmoney = mySharedObject.data.totalmoney;
_root.compmoney = mySharedObject.data.compmoney;
_root.maxspeed = mySharedObject.data.maxspeed;
_root.money = mySharedObject.data.money;
_root.life = mySharedObject.data.life;
_root.lifemax = mySharedObject.data.lifemax;
_root.shieldtime = mySharedObject.data.shieldtime;
_root.shieldtimemax = mySharedObject.data.shieldtimemax;
_root.gas = mySharedObject.data.gas;
_root.gasmax = mySharedObject.data.gasmax;
_root.shieldnr = mySharedObject.data.shieldnr;
gotoAndStop (5);
}
Symbol 40 Button
on (release) {
if (_root.money >= _root.lifeprice) {
_root.money = _root.money - _root.lifeprice;
_root.lifemax = _root.lifemax + 10;
_root.life = _root.lifemax;
_root.lifeupg = _root.lifemax + 10;
_root.lifeprice = _root.lifemax * 10;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 47 Button
on (release) {
if (_root.money >= _root.shieldprice) {
_root.money = _root.money - _root.shieldprice;
_root.shieldtimemax = _root.shieldtimemax + 10;
_root.shieldtime = _root.shieldtime + 10;
_root.shieldtime = _root.shieldtimemax;
_root.shieldupg = _root.shieldtimemax + 10;
_root.shieldprice = _root.shieldtimemax * 10;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 50 Button
on (release) {
if (_root.money >= 1000) {
_root.money = _root.money - 1000;
_root.life = _root.lifemax;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 57 Button
on (release) {
if (_root.money >= _root.gasprice) {
_root.money = _root.money - _root.gasprice;
_root.gasmax = _root.gasmax + 10;
_root.gas = _root.gas + 10;
_root.gas = _root.gasmax;
_root.gasupg = _root.gasmax + 10;
_root.gasprice = _root.gasmax * 10;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 60 Button
on (release) {
if (_root.money >= 1000) {
_root.money = _root.money - 1000;
_root.shieldnr = _root.shieldnr + 1;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 67 Button
on (release) {
if (_root.money >= _root.maxspeedprice) {
_root.money = _root.money - _root.maxspeedprice;
_root.maxspeed = _root.maxspeed + 0.5;
_root.maxspeedupg = _root.maxspeed + 0.5;
_root.maxspeedprice = _root.maxspeed * 1000;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 78 Button
on (release) {
if (_root.days > 25) {
_root.days = _root.days - 10;
_root.txtbox = "You have moved 10 days forward.";
} else {
_root.txtbox = "The computer won't accept your offer.";
}
}
Symbol 80 Button
on (release) {
mySharedObject.data.days = _root.days;
mySharedObject.data.compmoney = _root.compmoney;
mySharedObject.data.maxspeed = _root.maxspeed;
mySharedObject.data.money = _root.money;
mySharedObject.data.totalmoney = _root.totalmoney;
mySharedObject.data.life = _root.life;
mySharedObject.data.lifemax = _root.lifemax;
mySharedObject.data.shieldtime = _root.shieldtime;
mySharedObject.data.shieldtimemax = _root.shieldtimemax;
mySharedObject.data.gas = _root.gas;
mySharedObject.data.gasmax = _root.gasmax;
mySharedObject.data.shieldnr = _root.shieldnr;
mySharedObject.flush();
}
Symbol 83 Button
on (press) {
getURL ("http://www.posterdreams.com/int/nyh/nyh.asp?refer_id=332", "_blank");
}
Symbol 85 Button
on (press) {
getURL ("http://www.posterdreams.com/int/ax/affiliate.asp?refer_id=332", "_blank");
}
on (rollOver) {
_root.caption._visible = true;
_root.caption.txt = "Sell posters and earn cash!";
}
on (rollOut) {
_root.caption.txt = "";
_root.caption._visible = false;
}
Symbol 86 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 91 Button
on (release) {
gotoAndPlay (5);
}
Symbol 95 Button
on (release) {
gotoAndStop (7);
}
on (rollOver) {
_root.description = "The first level, recommended for beginners.";
}
on (rollOut) {
_root.description = "";
}
Symbol 96 Button
on (release) {
gotoAndStop (8);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Still an easy level, just watch out for the moon.";
}
Symbol 97 Button
on (release) {
gotoAndStop (9);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Be ready to dodge a lot, because if you're slow you'll not live long in the asteroid belt!";
}
Symbol 98 Button
on (release) {
gotoAndStop (10);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Watch out for the aliens, they know where you are...";
}
Symbol 99 Button
on (release) {
gotoAndStop (11);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Hurry up before the Super Nova is too big!";
}
Symbol 100 Button
on (release) {
gotoAndStop (12);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "You'd better have a strong engine or you will be sucked into the Black hole in no time!";
}
Symbol 118 MovieClip Frame 1
stop();
place = false;
Symbol 118 MovieClip Frame 71
place = true;
Symbol 118 MovieClip Frame 72
place = true;
Symbol 121 MovieClip Frame 1
stop();
place = false;
Symbol 121 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
stop();
Instance of Symbol 131 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.ship)) {
_root.ship.ySpeed = (-_root.ship.ySpeed) * 5;
_root.ship.xSpeed = (-_root.ship.xSpeed) * 5;
}
}
Symbol 184 Button
on (release) {
tellTarget ("_root") {
gotoAndPlay (1);
};
}
Symbol 187 MovieClip Frame 1081
stop();
Symbol 206 Button
on (release) {
gotoAndStop (23);
}
Symbol 207 Button
on (release) {
mySharedObject.data.maxspeed = _root.maxspeed;
mySharedObject.data.money = _root.money;
mySharedObject.data.life = _root.life;
mySharedObject.data.lifemax = _root.lifemax;
mySharedObject.data.shieldtime = _root.shieldtime;
mySharedObject.data.shieldtimemax = _root.shieldtimemax;
mySharedObject.data.gas = _root.gas;
mySharedObject.data.gasmax = _root.gasmax;
mySharedObject.data.shieldnr = _root.shieldnr;
mySharedObject.data.maxspeed2 = _root.maxspeed2;
mySharedObject.data.money2 = _root.money2;
mySharedObject.data.life2 = _root.life2;
mySharedObject.data.lifemax2 = _root.lifemax2;
mySharedObject.data.shieldtime2 = _root.shieldtime2;
mySharedObject.data.shieldtimemax2 = _root.shieldtimemax2;
mySharedObject.data.gas2 = _root.gas2;
mySharedObject.data.gasmax2 = _root.gasmax2;
mySharedObject.data.shieldnr2 = _root.shieldnr2;
mySharedObject.flush();
}
Symbol 209 Button
on (release) {
_root.pl1end._visible = true;
}
Symbol 215 Button
on (release) {
_root.pl1end._visible = false;
}
Symbol 216 Button
on (release) {
tellTarget ("_root") {
gotoAndPlay ("end2");
};
}
Symbol 231 MovieClip Frame 500
tellTarget ("_root") {
_root.txtbox = "Delaying time out.";
gotoAndPlay ("shop");
};
Symbol 232 Button
on (release) {
gotoAndPlay (14);
}
Symbol 236 Button
on (release) {
gotoAndStop (15);
}
on (rollOver) {
_root.description = "The first level, recommended for beginners.";
}
on (rollOut) {
_root.description = "";
}
Symbol 237 Button
on (release) {
gotoAndStop (16);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Still an easy level, just watch out for the moon.";
}
Symbol 238 Button
on (release) {
gotoAndStop (17);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Be ready to dodge a lot, because if you're slow you'll not live long in the asteroid belt!";
}
Symbol 239 Button
on (release) {
gotoAndStop (18);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Watch out for the aliens, they know where you are...";
}
Symbol 240 Button
on (release) {
gotoAndStop (19);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Hurry up before the Super Nova is too big!";
}
Symbol 241 Button
on (release) {
gotoAndStop (20);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "You'd better have a strong engine or you will be sucked into the Black hole in no time!";
}
Symbol 243 Button
on (release) {
gotoAndStop (24);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Try to stay on the pad in the middle, if you do you get the other player's money!";
}
Symbol 244 Button
on (release) {
gotoAndStop (26);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Hold the flag and get the other players money! Don't get caught, simply avoid being knocked.";
}
Symbol 245 Button
on (release) {
gotoAndStop (25);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Shove the other player off the pad, but watch out so you don't fall off yourself!";
}
Symbol 249 Button
on (release) {
if (_root.money2 >= _root.lifeprice2) {
_root.money2 = _root.money2 - _root.lifeprice2;
_root.lifemax2 = _root.lifemax2 + 10;
_root.life2 = _root.lifemax2;
_root.lifeupg2 = _root.lifemax2 + 10;
_root.lifeprice2 = _root.lifemax2 * 10;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 253 Button
on (release) {
if (_root.money2 >= _root.shieldprice2) {
_root.money2 = _root.money2 - _root.shieldprice2;
_root.shieldtimemax2 = _root.shieldtimemax2 + 10;
_root.shieldtime2 = _root.shieldtime2 + 10;
_root.shieldtime2 = _root.shieldtimemax2;
_root.shieldupg2 = _root.shieldtimemax2 + 10;
_root.shieldprice2 = _root.shieldtimemax2 * 10;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 255 Button
on (release) {
if (_root.money2 >= 1000) {
_root.money2 = _root.money2 - 1000;
_root.life2 = _root.lifemax2;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 259 Button
on (release) {
if (_root.money2 >= _root.gasprice2) {
_root.money2 = _root.money2 - _root.gasprice2;
_root.gasmax2 = _root.gasmax2 + 10;
_root.gas2 = _root.gas2 + 10;
_root.gas2 = _root.gasmax2;
_root.gasupg2 = _root.gasmax2 + 10;
_root.gasprice2 = _root.gasmax2 * 10;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 261 Button
on (release) {
if (_root.money2 >= 1000) {
_root.money2 = _root.money2 - 1000;
_root.shieldnr2 = _root.shieldnr2 + 1;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 265 Button
on (release) {
if (_root.money2 >= _root.maxspeedprice2) {
_root.money2 = _root.money2 - _root.maxspeedprice2;
_root.maxspeed2 = _root.maxspeed2 + 0.5;
_root.maxspeedupg2 = _root.maxspeed2 + 0.5;
_root.maxspeedprice2 = _root.maxspeed2 * 1000;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 271 Button
on (release) {
_root.pl2end._visible = false;
}
Symbol 272 Button
on (release) {
tellTarget ("_root") {
gotoAndPlay ("end2");
};
}
Symbol 274 Button
on (release) {
_root.pl2end._visible = true;
}
Symbol 276 MovieClip Frame 2
_root.money = _root.money - Math.round(_root.money / 2);
_root.money2 = _root.money2 + _root.money;
_root.totalmoney2 = _root.totalmoney2 + _root.money;
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = ("Player 2 won! You got " + _root.money) + "!";
};
Symbol 276 MovieClip Frame 240
_root.money2 = _root.money2 - Math.round(_root.money2 / 2);
_root.money = _root.money + _root.money2;
_root.totalmoney = _root.totalmoney + _root.money2;
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = ("Player 1 won! You got " + _root.money2) + "!";
};
Symbol 287 MovieClip Frame 2
_root.money = _root.money - Math.round(_root.money / 2);
_root.money2 = _root.money2 + _root.money;
_root.totalmoney2 = _root.totalmoney2 + _root.money;
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = ("Player 2 won! You got " + _root.money) + "!";
};
Symbol 287 MovieClip Frame 1000
_root.money2 = _root.money2 - Math.round(_root.money2 / 2);
_root.money = _root.money + _root.money2;
_root.totalmoney = _root.totalmoney + _root.money2;
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = ("Player 1 won! You got " + _root.money2) + "!";
};