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();
};
}
}
}
Instance of Symbol 9 MovieClip in Frame 1
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 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
stop();
Instance of Symbol 94 MovieClip in Frame 243
onClipEvent (enterFrame) {
_rotation = (_rotation - 5);
_x = (_x - 5);
}
Instance of Symbol 97 MovieClip in Frame 243
onClipEvent (enterFrame) {
_rotation = (_rotation - 5);
_x = (_x - 5);
}
Instance of Symbol 100 MovieClip in Frame 243
onClipEvent (enterFrame) {
_rotation = (_rotation - 5);
_x = (_x - 5);
}
Instance of Symbol 102 MovieClip in Frame 243
onClipEvent (enterFrame) {
_rotation = (_rotation - 5);
_x = (_x - 5);
}
Instance of Symbol 5 MovieClip in Frame 314
onClipEvent (enterFrame) {
this._xscale = this._xscale + Math.round(this._xscale / 5);
this._yscale = this._xscale;
play();
}
Frame 338
gotoAndPlay (7);
Frame 339
pl1.useHandCursor = false;
pl2.useHandCursor = false;
options.useHandCursor = false;
pr.useHandCursor = false;
load.useHandCursor = false;
stop();
Instance of Symbol 9 MovieClip in Frame 339
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 340
pl1.useHandCursor = false;
pl2.useHandCursor = false;
load.useHandCursor = false;
mySharedObject = SharedObject.getLocal("savedObject");
Frame 341
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 159 MovieClip in Frame 341
onClipEvent (enterFrame) {
if (_root.days < 1) {
tellTarget ("_root") {
gotoAndPlay ("end1");
};
}
}
Instance of Symbol 159 MovieClip in Frame 341
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 343
stop();
Instance of Symbol 81 MovieClip "alien" in Frame 343
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 191 MovieClip "shield" in Frame 343
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 196 MovieClip "ship" in Frame 343
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 49 MovieClip "dollar" in Frame 343
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 61 MovieClip in Frame 343
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 58 MovieClip in Frame 343
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 55 MovieClip in Frame 343
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 343
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 191 MovieClip in Frame 343
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 223 MovieClip "visual" in Frame 343
onClipEvent (enterFrame) {
if (_currentframe > 1) {
this._alpha = random(30);
}
}
onClipEvent (enterFrame) {
tellTarget ("_root.gasbar1") {
_currentframe = Math.round((_root.gas / _root.gasmax) * 100);
gotoAndStop(Math.round((_root.gas / _root.gasmax) * 100));
};
if (_root.gas < 0) {
tellTarget ("_root") {
gotoAndStop ("shoppl1");
_root.txtbox = "You ran out of gas.";
_root.days = _root.days - 1;
};
}
tellTarget ("_root.lifebar1") {
_currentframe = Math.round((_root.life / _root.lifemax) * 100);
gotoAndStop(Math.round((_root.life / _root.lifemax) * 100));
};
tellTarget ("_root.astroface") {
_currentframe = Math.round((_root.life / _root.lifemax) * 100);
gotoAndStop(Math.round((_root.life / _root.lifemax) * 100));
};
}
onClipEvent (enterFrame) {
tellTarget ("_root.shieldbar1") {
_currentframe = Math.round((_root.shieldtime / _root.shieldtimemax) * 100);
gotoAndStop(Math.round((_root.shieldtime / _root.shieldtimemax) * 100));
};
if (_root.shieldexist == false) {
tellTarget ("_root.shieldbar1") {
gotoAndStop (100);
};
}
}
Instance of Symbol 226 MovieClip in Frame 344
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 191 MovieClip "shield" in Frame 344
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 196 MovieClip "ship" in Frame 344
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 49 MovieClip "dollar" in Frame 344
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 61 MovieClip in Frame 344
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 58 MovieClip in Frame 344
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 55 MovieClip in Frame 344
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 94 MovieClip in Frame 345
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 97 MovieClip in Frame 345
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 100 MovieClip in Frame 345
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 229 MovieClip in Frame 345
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 49 MovieClip "dollar" in Frame 345
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 9 MovieClip in Frame 346
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 81 MovieClip in Frame 346
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 9 MovieClip in Frame 346
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 81 MovieClip in Frame 346
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 231 MovieClip in Frame 347
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;
tellTarget ("_root.visual") {
play();
};
}
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 49 MovieClip "dollar" in Frame 347
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 231 MovieClip in Frame 348
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;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
}
Instance of Symbol 49 MovieClip "dollar" in Frame 348
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);
}
Instance of Symbol 226 MovieClip in Frame 349
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 94 MovieClip in Frame 349
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 97 MovieClip in Frame 349
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 100 MovieClip in Frame 349
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 229 MovieClip in Frame 349
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 9 MovieClip in Frame 349
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 81 MovieClip in Frame 349
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 9 MovieClip in Frame 349
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 81 MovieClip in Frame 349
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;
tellTarget ("_root.visual") {
play();
};
}
}
}
Frame 350
stop();
Instance of Symbol 81 MovieClip "alien" in Frame 350
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 81 MovieClip "alien" in Frame 350
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 81 MovieClip "alien" in Frame 350
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 81 MovieClip "alien" in Frame 350
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 239 MovieClip in Frame 350
onClipEvent (enterFrame) {
if (_root.totalmoney > _root.compmoney) {
plstatus = "You won!";
pl2status = "Computer lost!";
} else {
plstatus = "You lost!";
pl2status = "Computer won!";
}
}
Frame 351
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 267 MovieClip "pl1end" in Frame 351
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 159 MovieClip in Frame 351
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 352
stop();
Instance of Symbol 191 MovieClip "shield" in Frame 352
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 191 MovieClip "shield2" in Frame 352
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 196 MovieClip "ship" in Frame 352
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 49 MovieClip in Frame 352
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 270 MovieClip "ship2" in Frame 352
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 61 MovieClip in Frame 352
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 58 MovieClip in Frame 352
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 55 MovieClip in Frame 352
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 191 MovieClip in Frame 352
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 191 MovieClip in Frame 352
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 280 MovieClip in Frame 352
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;
}
}
}
Instance of Symbol 223 MovieClip "visual" in Frame 352
onClipEvent (enterFrame) {
if (_currentframe > 1) {
this._alpha = random(30);
}
}
onClipEvent (enterFrame) {
tellTarget ("_root.gasbar1") {
_currentframe = Math.round((_root.gas / _root.gasmax) * 100);
gotoAndStop(Math.round((_root.gas / _root.gasmax) * 100));
};
if (_root.gas < 0) {
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = "You ran out of gas.";
_root.days = _root.days - 1;
};
}
tellTarget ("_root.lifebar1") {
_currentframe = Math.round((_root.life / _root.lifemax) * 100);
gotoAndStop(Math.round((_root.life / _root.lifemax) * 100));
};
}
onClipEvent (enterFrame) {
tellTarget ("_root.shieldbar1") {
_currentframe = Math.round((_root.shieldtime / _root.shieldtimemax) * 100);
gotoAndStop(Math.round((_root.shieldtime / _root.shieldtimemax) * 100));
};
if (_root.shieldexist == false) {
tellTarget ("_root.shieldbar1") {
gotoAndStop (100);
};
}
}
onClipEvent (enterFrame) {
tellTarget ("_root.gasbar2") {
_currentframe = Math.round((_root.gas2 / _root.gasmax2) * 100);
gotoAndStop(Math.round((_root.gas2 / _root.gasmax2) * 100));
};
if (_root.gas2 < 0) {
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = "You ran out of gas.";
_root.days = _root.days - 1;
};
}
tellTarget ("_root.lifebar2") {
_currentframe = Math.round((_root.life2 / _root.lifemax2) * 100);
gotoAndStop(Math.round((_root.life2 / _root.lifemax2) * 100));
};
}
onClipEvent (enterFrame) {
tellTarget ("_root.shieldbar2") {
_currentframe = Math.round((_root.shieldtime2 / _root.shieldtimemax2) * 100);
gotoAndStop(Math.round((_root.shieldtime2 / _root.shieldtimemax2) * 100));
};
if (_root.shieldexist2 == false) {
tellTarget ("_root.shieldbar2") {
gotoAndStop (100);
};
}
}
Frame 353
stop();
Instance of Symbol 226 MovieClip in Frame 353
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;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 5 MovieClip in Frame 353
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 61 MovieClip in Frame 353
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 58 MovieClip in Frame 353
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 55 MovieClip in Frame 353
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 353
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 270 MovieClip "ship2" in Frame 353
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 49 MovieClip in Frame 353
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 354
stop();
Instance of Symbol 94 MovieClip in Frame 354
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;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 97 MovieClip in Frame 354
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;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 100 MovieClip in Frame 354
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;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 229 MovieClip in Frame 354
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;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 49 MovieClip in Frame 354
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 355
stop();
Instance of Symbol 9 MovieClip in Frame 355
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;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 81 MovieClip in Frame 355
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;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 9 MovieClip in Frame 355
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;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 81 MovieClip in Frame 355
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;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 49 MovieClip in Frame 355
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 356
stop();
Instance of Symbol 231 MovieClip in Frame 356
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;
tellTarget ("_root.visual") {
play();
};
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
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 49 MovieClip in Frame 356
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 357
stop();
Instance of Symbol 231 MovieClip in Frame 357
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;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 49 MovieClip in Frame 357
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 360
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 327 MovieClip "pl2end" in Frame 360
onClipEvent (load) {
_visible = false;
}
Frame 361
stop();
Instance of Symbol 191 MovieClip "shield" in Frame 361
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 191 MovieClip "shield2" in Frame 361
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 196 MovieClip "ship" in Frame 361
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 270 MovieClip "ship2" in Frame 361
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 329 MovieClip "pengameter" in Frame 361
onClipEvent (load) {
gotoAndStop (470);
}
Instance of Symbol 332 MovieClip in Frame 361
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
tellTarget ("_root.pengameter") {
_currentframe = (_currentframe + 1);
gotoAndStop(_currentframe + 1);
};
}
if (this.hittest(_root.ship2)) {
tellTarget ("_root.pengameter") {
_currentframe = (_currentframe - 1);
gotoAndStop(_currentframe - 1);
};
}
}
onClipEvent (load) {
tellTarget ("_root.pengameter") {
gotoAndStop (120);
};
}
Frame 362
stop();
Instance of Symbol 270 MovieClip "ship2" in Frame 362
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 336 MovieClip in Frame 362
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");
};
}
}
Frame 363
stop();
Instance of Symbol 196 MovieClip "ship" in Frame 363
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.pengameter") {
_currentframe = (_currentframe + 1);
gotoAndPlay(_currentframe + 1);
};
}
}
Instance of Symbol 270 MovieClip "ship2" in Frame 363
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.pengameter") {
_currentframe = (_currentframe - 2);
gotoAndPlay(_currentframe - 2);
};
}
}
Instance of Symbol 195 MovieClip "flag" in Frame 363
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;
}
}
onClipEvent (load) {
tellTarget ("_root.pengameter") {
gotoAndStop (500);
};
}
Instance of Symbol 337 MovieClip "pengameter" in Frame 363
onClipEvent (load) {
gotoAndStop (850);
}
onClipEvent (enterFrame) {
stop();
}
Frame 364
stop();
Instance of Symbol 61 MovieClip in Frame 364
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 58 MovieClip in Frame 364
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 55 MovieClip in Frame 364
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 49 MovieClip in Frame 364
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
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 49 MovieClip in Frame 364
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
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 49 MovieClip in Frame 364
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
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 49 MovieClip in Frame 364
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
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 49 MovieClip in Frame 364
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
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 49 MovieClip in Frame 364
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
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 49 MovieClip in Frame 364
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
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 49 MovieClip in Frame 364
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
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 49 MovieClip in Frame 364
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
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 49 MovieClip in Frame 364
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
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 196 MovieClip "ship" in Frame 364
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 270 MovieClip "ship2" in Frame 364
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 191 MovieClip in Frame 364
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 191 MovieClip in Frame 364
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 280 MovieClip in Frame 364
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;
}
}
}
Instance of Symbol 223 MovieClip "visual" in Frame 364
onClipEvent (enterFrame) {
if (_currentframe > 1) {
this._alpha = random(30);
}
}
onClipEvent (enterFrame) {
tellTarget ("_root.gasbar1") {
_currentframe = Math.round((_root.gas / _root.gasmax) * 100);
gotoAndStop(Math.round((_root.gas / _root.gasmax) * 100));
};
if (_root.gas < 0) {
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = "You ran out of gas.";
_root.days = _root.days - 1;
};
}
tellTarget ("_root.lifebar1") {
_currentframe = Math.round((_root.life / _root.lifemax) * 100);
gotoAndStop(Math.round((_root.life / _root.lifemax) * 100));
};
}
onClipEvent (enterFrame) {
tellTarget ("_root.shieldbar1") {
_currentframe = Math.round((_root.shieldtime / _root.shieldtimemax) * 100);
gotoAndStop(Math.round((_root.shieldtime / _root.shieldtimemax) * 100));
};
if (_root.shieldexist == false) {
tellTarget ("_root.shieldbar1") {
gotoAndStop (100);
};
}
}
onClipEvent (enterFrame) {
tellTarget ("_root.gasbar2") {
_currentframe = Math.round((_root.gas2 / _root.gasmax2) * 100);
gotoAndStop(Math.round((_root.gas2 / _root.gasmax2) * 100));
};
if (_root.gas2 < 0) {
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = "You ran out of gas.";
_root.days = _root.days - 1;
};
}
tellTarget ("_root.lifebar2") {
_currentframe = Math.round((_root.life2 / _root.lifemax2) * 100);
gotoAndStop(Math.round((_root.life2 / _root.lifemax2) * 100));
};
}
onClipEvent (enterFrame) {
tellTarget ("_root.shieldbar2") {
_currentframe = Math.round((_root.shieldtime2 / _root.shieldtimemax2) * 100);
gotoAndStop(Math.round((_root.shieldtime2 / _root.shieldtimemax2) * 100));
};
if (_root.shieldexist2 == false) {
tellTarget ("_root.shieldbar2") {
gotoAndStop (100);
};
}
}
Frame 365
stop();
Instance of Symbol 81 MovieClip "alien" in Frame 365
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 81 MovieClip "alien" in Frame 365
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 81 MovieClip "alien" in Frame 365
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 81 MovieClip "alien" in Frame 365
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 239 MovieClip in Frame 365
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!";
}
}
Frame 366
stop();
Instance of Symbol 196 MovieClip "ship" in Frame 366
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 = 635;
}
if (_x > 635) {
_x = 0;
}
}
Instance of Symbol 270 MovieClip "ship2" in Frame 366
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 = 635;
}
if (_x > 635) {
_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;
}
}
Symbol 5 MovieClip Frame 1
stop();
Symbol 12 Button
on (release) {
getURL ("http://www.flashbolt.com", "_blank");
}
Symbol 36 MovieClip Frame 48
_root.nextFrame();
Symbol 41 MovieClip Frame 1
numEnemy = 50;
i = 2;
while (i <= numEnemy) {
enemy1.duplicateMovieClip("enemy" + i, i + 100);
i++;
}
Instance of Symbol 40 MovieClip "enemy1" in Symbol 41 MovieClip Frame 1
onClipEvent (load) {
function reset() {
this._x = 600;
this._y = random(400) + 0;
enemySpeed = random(100) + 1;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - enemySpeed;
}
if (this._x < -10) {
reset();
}
}
Symbol 49 MovieClip Frame 1
stop();
place = false;
Symbol 49 MovieClip Frame 71
place = true;
Symbol 49 MovieClip Frame 72
place = true;
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 1
stop();
place = false;
Symbol 61 MovieClip Frame 2
stop();
Symbol 63 Button
on (release) {
nextFrame();
}
Symbol 65 Button
on (release) {
gotoAndStop (339);
}
Symbol 71 Button
on (release) {
prevFrame();
}
Symbol 78 Button
on (release) {
play();
}
Instance of Symbol 83 MovieClip in Symbol 85 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 108 Button
on (release) {
gotoAndStop (351);
}
Symbol 109 Button
on (release) {
gotoAndStop (341);
}
Symbol 110 Button
on (release) {
gotoAndStop (366);
}
Symbol 114 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 (351);
_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 115 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 (341);
}
Symbol 123 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 130 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 133 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 140 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 143 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 150 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 158 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 160 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 163 Button
on (release) {
gotoAndStop (339);
}
Symbol 165 MovieClip Frame 1
stop();
Symbol 167 Button
on (release) {
gotoAndPlay (341);
}
Symbol 171 Button
on (release) {
gotoAndStop (343);
}
on (rollOver) {
_root.description = "The first level, recommended for beginners.";
}
on (rollOut) {
_root.description = "";
}
Symbol 172 Button
on (release) {
gotoAndStop (344);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Still an easy level, just watch out for the moon.";
}
Symbol 173 Button
on (release) {
gotoAndStop (345);
}
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 174 Button
on (release) {
gotoAndStop (346);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Watch out for the aliens, they know where you are...";
}
Symbol 175 Button
on (release) {
gotoAndStop (347);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Hurry up before the Super Nova is too big!";
}
Symbol 176 Button
on (release) {
gotoAndStop (348);
}
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 177 Button
on (release) {
gotoAndStop (349);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Warning! Warning! Extremely dangerous level. Enter with caution!";
}
Symbol 223 MovieClip Frame 1
stop();
Symbol 236 Button
on (release) {
tellTarget ("_root") {
gotoAndPlay (1);
};
}
Symbol 239 MovieClip Frame 1081
stop();
Symbol 256 Button
on (press) {
gotoAndStop (360);
}
Symbol 257 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 259 Button
on (release) {
_root.pl1end._visible = true;
}
Symbol 265 Button
on (release) {
_root.pl1end._visible = false;
}
Symbol 266 Button
on (release) {
tellTarget ("_root") {
gotoAndPlay ("end2");
};
}
Symbol 280 MovieClip Frame 500
tellTarget ("_root") {
_root.txtbox = "Delaying time out.";
gotoAndPlay ("shop");
};
Symbol 282 Button
on (release) {
gotoAndPlay (351);
}
Symbol 286 Button
on (release) {
gotoAndStop (353);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Still an easy level, just watch out for the moon.";
}
Symbol 287 Button
on (release) {
gotoAndStop (354);
}
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 288 Button
on (release) {
gotoAndStop (355);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Watch out for the aliens, they know where you are...";
}
Symbol 289 Button
on (release) {
gotoAndStop (356);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Hurry up before the Super Nova is too big!";
}
Symbol 290 Button
on (release) {
gotoAndStop (357);
}
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 291 Button
on (release) {
gotoAndStop (352);
}
on (rollOver) {
_root.description = "The first level, recommended for beginners.";
}
on (rollOut) {
_root.description = "";
}
Symbol 295 Button
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!";
}
on (press) {
gotoAndStop (361);
}
Symbol 296 Button
on (press) {
gotoAndStop (363);
}
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 297 Button
on (release) {
gotoAndStop (362);
}
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 301 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 305 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 307 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 311 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 313 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 317 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 321 Button
on (release) {
_root.pl2end._visible = true;
}
Symbol 325 Button
on (release) {
_root.pl2end._visible = false;
}
Symbol 326 Button
on (release) {
tellTarget ("_root") {
gotoAndPlay ("end2");
};
}
Symbol 329 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 329 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 337 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 337 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) + "!";
};
Symbol 343 Button
on (release) {
gotoAndPlay (339);
}