Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("b5c70256", this, 10301, true);
stop();
Instance of Symbol 18 MovieClip "Lbar" in Frame 1
onClipEvent (enterFrame) {
_level0.temoin = ("Chargement en cours... " + Math.round((_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100)) + "%";
_level0.K = Math.round(_level0.getBytesLoaded() / 1000) + " K";
setProperty(this, _xscale , Number((_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100));
if (Number(_level0.getBytesLoaded()) >= Number(_level0.getBytesTotal())) {
tellTarget ("_level0") {
_root.gotoAndStop(2);
};
}
}
Frame 2
stop();
Frame 5
Stage.showMenu = false;
Instance of Symbol 33 MovieClip in Frame 5
onClipEvent (enterFrame) {
_rotation = (_rotation + 0.08);
}
Frame 6
if (!Name) {
Name = "Guest";
}
i = 1;
while (i <= 20) {
removeMovieClip(_root["Scan" + i]);
i++;
}
Frame 24
Ship_Teleport = new Sound();
Ship_Teleport.attachSound("Ship_Teleport");
Man_Teleport = new Sound();
Man_Teleport.attachSound("Man_Teleport");
Fire = new Sound();
Fire.attachSound("Fire");
Explode = new Sound();
Explode.attachSound("Explode");
ForceField = new Sound();
ForceField.attachSound("ForceField");
Saved1 = new Sound();
Saved1.attachSound("Saved1");
Saved2 = new Sound();
Saved2.attachSound("Saved2");
Saved3 = new Sound();
Saved3.attachSound("Saved3");
Saved4 = new Sound();
Saved4.attachSound("Saved4");
Saved5 = new Sound();
Saved5.attachSound("Saved5");
Saved6 = new Sound();
Saved6.attachSound("Saved6");
Saved7 = new Sound();
Saved7.attachSound("Saved7");
stop();
Frame 25
fuel = 2000;
gravity = 0.03;
totalmen = 4;
menleft = 4;
stop();
Instance of Symbol 105 MovieClip "ship" in Frame 25
onClipEvent (load) {
function fire() {
_root.Bullet._x = this._x;
_root.Bullet._y = this._y;
_root.Bullet.xspeed = Math.sin(_rotation * (Math.PI/180)) * 6;
_root.Bullet.yspeed = (-Math.cos(_rotation * (Math.PI/180))) * 6;
fired = true;
}
function explo() {
rot = -(_rotation + 90);
_root.thrustfx.gotoAndStop(1);
i = 1;
while (i < 180) {
duplicateMovieClip (_root.explo, "explo" + i, 2 + i);
_root["explo" + i]._x = _x;
_root["explo" + i]._y = _y;
_root["explo" + i]._rotation = rot;
_root["explo" + i].xspeed = Math.sin(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
_root["explo" + i].yspeed = Math.cos(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
rot = rot + 1.5;
i++;
}
}
function smoke() {
duplicateMovieClip (_root.smoke, "smoke" + t, 2 + t);
_root["smoke" + t]._x = _x;
_root["smoke" + t]._y = _y;
_root["smoke" + t]._rotation = (rotate - 5) + random(10);
_root["smoke" + t].xspeed = (-Math.sin(_root["smoke" + t]._rotation * (Math.PI/180))) * 3;
_root["smoke" + t].yspeed = Math.cos(_root["smoke" + t]._rotation * (Math.PI/180)) * 3;
t++;
if (t >= 20) {
t = 1;
}
}
StartGame = false;
t = 1;
leveled = true;
topspeed = 10;
rotate = 0;
keydownright = false;
keydownleft = false;
keydownup = false;
keydowndown = false;
keydownfire = false;
momentumx = 0;
momentumy = 0;
fired = false;
dead = false;
radians = 0.0174532925199433 /* Math.PI/180 */;
}
onClipEvent (keyDown) {
if ((dead == false) && (StartGame == true)) {
if ((Key.getCode() == 39) && (leveled == false)) {
keydownright = true;
}
if ((Key.getCode() == 37) && (leveled == false)) {
keydownleft = true;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(2);
keydownup = true;
}
if (Key.getCode() == 40) {
keydowndown = true;
}
}
}
onClipEvent (keyUp) {
if ((dead == false) && (StartGame == true)) {
if (Key.getCode() == 39) {
keydownright = false;
}
if (Key.getCode() == 37) {
keydownleft = false;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(1);
keydownup = false;
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (Key.isDown(32) && (fired == false)) {
this.gotoAndStop(3);
fired = true;
}
if (momentumy < -5) {
momentumy = -5;
}
this._x = this._x + momentumx;
this._y = this._y - momentumy;
this._rotation = rotate;
if (keydownright) {
rotate = rotate + 4;
if (rotate > 360) {
rotate = rotate - 360;
}
}
if (keydownleft) {
rotate = rotate - 4;
if (rotate < -360) {
rotate = rotate + 360;
}
}
if (keydownup) {
smoke();
_root.fuel = _root.fuel - 1;
if (_root.fuel <= 0) {
_root.fuel = 0;
}
momentumx = momentumx + (Math.sin(rotate * radians) / 12);
momentumy = momentumy + (Math.cos(rotate * radians) / 12);
if (momentumx > topspeed) {
momentumx = topspeed;
}
if (momentumx < (-topspeed)) {
momentumx = -topspeed;
}
if (momentumy > topspeed) {
momentumy = topspeed;
}
if (momentumy < (-topspeed)) {
momentumy = -topspeed;
}
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (_root.level.hitTest(_x + (7 + momentumx), _y + (3 + momentumy), true) || (_root.level.hitTest(_x - (7 + momentumx), _y - (3 + momentumy), true))) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
}
if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
}
leveled = true;
} else if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (leveled == false)) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
} else if ((!_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true)) && (!_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true))) {
momentumy = momentumy - _root.gravity;
leveled = false;
}
if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
if (_root.menleft <= 0) {
rotate = 0;
momentumx = 0;
momentumy = 0;
this.gotoAndStop(5);
} else if (_root.menleft > 0) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
leveled = true;
}
}
} else if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (dead == false)) {
dead = true;
momentumx = 0;
explo();
momentumy = 0;
this.gotoAndStop(4);
}
}
}
Instance of Symbol 112 MovieClip "explo" in Frame 25
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 10;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 115 MovieClip "smoke" in Frame 25
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 3;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 116 MovieClip "Bullet" in Frame 25
onClipEvent (load) {
function resetbullet() {
_x = xpos;
_y = ypos;
xspeed = 0;
yspeed = 0;
_root.ship.fired = false;
}
xpos = _x;
ypos = _y;
resetbullet();
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_root.level.hitTest(_x, _y, true)) {
resetbullet();
}
}
Instance of Symbol 135 MovieClip in Frame 25
onClipEvent (enterFrame) {
this._xscale = _root.fuel / 20;
}
Instance of Symbol 152 MovieClip in Frame 25
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 25
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 25
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 25
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Frame 34
Lives = Lives - 1;
gotoAndStop ("Level1");
Frame 35
fuel = 2000;
gravity = 0.03;
totalmen = 4;
menleft = 4;
stop();
Instance of Symbol 105 MovieClip "ship" in Frame 35
onClipEvent (load) {
function fire() {
_root.Bullet._x = this._x;
_root.Bullet._y = this._y;
_root.Bullet.xspeed = Math.sin(_rotation * (Math.PI/180)) * 6;
_root.Bullet.yspeed = (-Math.cos(_rotation * (Math.PI/180))) * 6;
fired = true;
}
function explo() {
rot = -(_rotation + 90);
_root.thrustfx.gotoAndStop(1);
i = 1;
while (i < 180) {
duplicateMovieClip (_root.explo, "explo" + i, 2 + i);
_root["explo" + i]._x = _x;
_root["explo" + i]._y = _y;
_root["explo" + i]._rotation = rot;
_root["explo" + i].xspeed = Math.sin(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
_root["explo" + i].yspeed = Math.cos(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
rot = rot + 1.5;
i++;
}
}
function smoke() {
duplicateMovieClip (_root.smoke, "smoke" + t, 2 + t);
_root["smoke" + t]._x = _x;
_root["smoke" + t]._y = _y;
_root["smoke" + t]._rotation = (rotate - 5) + random(10);
_root["smoke" + t].xspeed = (-Math.sin(_root["smoke" + t]._rotation * (Math.PI/180))) * 3;
_root["smoke" + t].yspeed = Math.cos(_root["smoke" + t]._rotation * (Math.PI/180)) * 3;
t++;
if (t >= 20) {
t = 1;
}
}
StartGame = false;
t = 1;
leveled = true;
topspeed = 10;
rotate = 0;
keydownright = false;
keydownleft = false;
keydownup = false;
keydowndown = false;
keydownfire = false;
momentumx = 0;
momentumy = 0;
fired = false;
dead = false;
radians = 0.0174532925199433 /* Math.PI/180 */;
}
onClipEvent (keyDown) {
if ((dead == false) && (StartGame == true)) {
if ((Key.getCode() == 39) && (leveled == false)) {
keydownright = true;
}
if ((Key.getCode() == 37) && (leveled == false)) {
keydownleft = true;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(2);
keydownup = true;
}
if (Key.getCode() == 40) {
keydowndown = true;
}
}
}
onClipEvent (keyUp) {
if ((dead == false) && (StartGame == true)) {
if (Key.getCode() == 39) {
keydownright = false;
}
if (Key.getCode() == 37) {
keydownleft = false;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(1);
keydownup = false;
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (Key.isDown(32) && (fired == false)) {
this.gotoAndStop(3);
fired = true;
}
if (momentumy < -5) {
momentumy = -5;
}
this._x = this._x + momentumx;
this._y = this._y - momentumy;
this._rotation = rotate;
if (keydownright) {
rotate = rotate + 4;
if (rotate > 360) {
rotate = rotate - 360;
}
}
if (keydownleft) {
rotate = rotate - 4;
if (rotate < -360) {
rotate = rotate + 360;
}
}
if (keydownup) {
smoke();
_root.fuel = _root.fuel - 1;
if (_root.fuel <= 0) {
_root.fuel = 0;
}
momentumx = momentumx + (Math.sin(rotate * radians) / 12);
momentumy = momentumy + (Math.cos(rotate * radians) / 12);
if (momentumx > topspeed) {
momentumx = topspeed;
}
if (momentumx < (-topspeed)) {
momentumx = -topspeed;
}
if (momentumy > topspeed) {
momentumy = topspeed;
}
if (momentumy < (-topspeed)) {
momentumy = -topspeed;
}
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (_root.level.hitTest(_x + (7 + momentumx), _y + (3 + momentumy), true) || (_root.level.hitTest(_x - (7 + momentumx), _y - (3 + momentumy), true))) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
}
if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
}
leveled = true;
} else if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (leveled == false)) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
} else if ((!_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true)) && (!_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true))) {
momentumy = momentumy - _root.gravity;
leveled = false;
}
if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
if (_root.menleft <= 0) {
rotate = 0;
momentumx = 0;
momentumy = 0;
this.gotoAndStop(5);
} else if (_root.menleft > 0) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
leveled = true;
}
}
} else if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (dead == false)) {
dead = true;
momentumx = 0;
explo();
momentumy = 0;
this.gotoAndStop(4);
}
}
}
Instance of Symbol 112 MovieClip "explo" in Frame 35
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 10;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 115 MovieClip "smoke" in Frame 35
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 3;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 116 MovieClip "Bullet" in Frame 35
onClipEvent (load) {
function resetbullet() {
_x = xpos;
_y = ypos;
xspeed = 0;
yspeed = 0;
_root.ship.fired = false;
}
xpos = _x;
ypos = _y;
resetbullet();
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_root.level.hitTest(_x, _y, true)) {
resetbullet();
}
}
Instance of Symbol 152 MovieClip in Frame 35
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 35
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 35
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 35
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Frame 44
Lives = Lives - 1;
gotoAndStop ("Level2");
Frame 45
fuel = 2000;
gravity = 0.03;
totalmen = 5;
menleft = 5;
stop();
Instance of Symbol 105 MovieClip "ship" in Frame 45
onClipEvent (load) {
function fire() {
_root.Bullet._x = this._x;
_root.Bullet._y = this._y;
_root.Bullet.xspeed = Math.sin(_rotation * (Math.PI/180)) * 6;
_root.Bullet.yspeed = (-Math.cos(_rotation * (Math.PI/180))) * 6;
fired = true;
}
function explo() {
rot = -(_rotation + 90);
_root.thrustfx.gotoAndStop(1);
i = 1;
while (i < 180) {
duplicateMovieClip (_root.explo, "explo" + i, 2 + i);
_root["explo" + i]._x = _x;
_root["explo" + i]._y = _y;
_root["explo" + i]._rotation = rot;
_root["explo" + i].xspeed = Math.sin(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
_root["explo" + i].yspeed = Math.cos(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
rot = rot + 1.5;
i++;
}
}
function smoke() {
duplicateMovieClip (_root.smoke, "smoke" + t, 2 + t);
_root["smoke" + t]._x = _x;
_root["smoke" + t]._y = _y;
_root["smoke" + t]._rotation = (rotate - 5) + random(10);
_root["smoke" + t].xspeed = (-Math.sin(_root["smoke" + t]._rotation * (Math.PI/180))) * 3;
_root["smoke" + t].yspeed = Math.cos(_root["smoke" + t]._rotation * (Math.PI/180)) * 3;
t++;
if (t >= 20) {
t = 1;
}
}
StartGame = false;
t = 1;
leveled = true;
topspeed = 10;
rotate = 0;
keydownright = false;
keydownleft = false;
keydownup = false;
keydowndown = false;
keydownfire = false;
momentumx = 0;
momentumy = 0;
fired = false;
dead = false;
radians = 0.0174532925199433 /* Math.PI/180 */;
}
onClipEvent (keyDown) {
if ((dead == false) && (StartGame == true)) {
if ((Key.getCode() == 39) && (leveled == false)) {
keydownright = true;
}
if ((Key.getCode() == 37) && (leveled == false)) {
keydownleft = true;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(2);
keydownup = true;
}
if (Key.getCode() == 40) {
keydowndown = true;
}
}
}
onClipEvent (keyUp) {
if ((dead == false) && (StartGame == true)) {
if (Key.getCode() == 39) {
keydownright = false;
}
if (Key.getCode() == 37) {
keydownleft = false;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(1);
keydownup = false;
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (Key.isDown(32) && (fired == false)) {
this.gotoAndStop(3);
fired = true;
}
if (momentumy < -5) {
momentumy = -5;
}
this._x = this._x + momentumx;
this._y = this._y - momentumy;
this._rotation = rotate;
if (keydownright) {
rotate = rotate + 4;
if (rotate > 360) {
rotate = rotate - 360;
}
}
if (keydownleft) {
rotate = rotate - 4;
if (rotate < -360) {
rotate = rotate + 360;
}
}
if (keydownup) {
smoke();
_root.fuel = _root.fuel - 1;
if (_root.fuel <= 0) {
_root.fuel = 0;
}
momentumx = momentumx + (Math.sin(rotate * radians) / 12);
momentumy = momentumy + (Math.cos(rotate * radians) / 12);
if (momentumx > topspeed) {
momentumx = topspeed;
}
if (momentumx < (-topspeed)) {
momentumx = -topspeed;
}
if (momentumy > topspeed) {
momentumy = topspeed;
}
if (momentumy < (-topspeed)) {
momentumy = -topspeed;
}
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (_root.level.hitTest(_x + (7 + momentumx), _y + (3 + momentumy), true) || (_root.level.hitTest(_x - (7 + momentumx), _y - (3 + momentumy), true))) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
}
if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
}
leveled = true;
} else if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (leveled == false)) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
} else if ((!_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true)) && (!_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true))) {
momentumy = momentumy - _root.gravity;
leveled = false;
}
if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
if (_root.menleft <= 0) {
rotate = 0;
momentumx = 0;
momentumy = 0;
this.gotoAndStop(5);
} else if (_root.menleft > 0) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
leveled = true;
}
}
} else if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (dead == false)) {
dead = true;
momentumx = 0;
explo();
momentumy = 0;
this.gotoAndStop(4);
}
}
}
Instance of Symbol 112 MovieClip "explo" in Frame 45
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 10;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 115 MovieClip "smoke" in Frame 45
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 3;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 116 MovieClip "Bullet" in Frame 45
onClipEvent (load) {
function resetbullet() {
_x = xpos;
_y = ypos;
xspeed = 0;
yspeed = 0;
_root.ship.fired = false;
}
xpos = _x;
ypos = _y;
resetbullet();
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_root.level.hitTest(_x, _y, true)) {
resetbullet();
}
}
Instance of Symbol 152 MovieClip in Frame 45
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 45
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 45
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 45
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 45
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Frame 54
Lives = Lives - 1;
gotoAndStop ("Level3");
Frame 55
fuel = 2000;
gravity = 0.03;
totalmen = 6;
menleft = 6;
stop();
Instance of Symbol 105 MovieClip "ship" in Frame 55
onClipEvent (load) {
function fire() {
_root.Bullet._x = this._x;
_root.Bullet._y = this._y;
_root.Bullet.xspeed = Math.sin(_rotation * (Math.PI/180)) * 6;
_root.Bullet.yspeed = (-Math.cos(_rotation * (Math.PI/180))) * 6;
fired = true;
}
function explo() {
rot = -(_rotation + 90);
_root.thrustfx.gotoAndStop(1);
i = 1;
while (i < 180) {
duplicateMovieClip (_root.explo, "explo" + i, 2 + i);
_root["explo" + i]._x = _x;
_root["explo" + i]._y = _y;
_root["explo" + i]._rotation = rot;
_root["explo" + i].xspeed = Math.sin(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
_root["explo" + i].yspeed = Math.cos(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
rot = rot + 1.5;
i++;
}
}
function smoke() {
duplicateMovieClip (_root.smoke, "smoke" + t, 2 + t);
_root["smoke" + t]._x = _x;
_root["smoke" + t]._y = _y;
_root["smoke" + t]._rotation = (rotate - 5) + random(10);
_root["smoke" + t].xspeed = (-Math.sin(_root["smoke" + t]._rotation * (Math.PI/180))) * 3;
_root["smoke" + t].yspeed = Math.cos(_root["smoke" + t]._rotation * (Math.PI/180)) * 3;
t++;
if (t >= 20) {
t = 1;
}
}
StartGame = false;
t = 1;
leveled = true;
topspeed = 10;
rotate = 0;
keydownright = false;
keydownleft = false;
keydownup = false;
keydowndown = false;
keydownfire = false;
momentumx = 0;
momentumy = 0;
fired = false;
dead = false;
radians = 0.0174532925199433 /* Math.PI/180 */;
}
onClipEvent (keyDown) {
if ((dead == false) && (StartGame == true)) {
if ((Key.getCode() == 39) && (leveled == false)) {
keydownright = true;
}
if ((Key.getCode() == 37) && (leveled == false)) {
keydownleft = true;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(2);
keydownup = true;
}
if (Key.getCode() == 40) {
keydowndown = true;
}
}
}
onClipEvent (keyUp) {
if ((dead == false) && (StartGame == true)) {
if (Key.getCode() == 39) {
keydownright = false;
}
if (Key.getCode() == 37) {
keydownleft = false;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(1);
keydownup = false;
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (Key.isDown(32) && (fired == false)) {
this.gotoAndStop(3);
fired = true;
}
if (momentumy < -5) {
momentumy = -5;
}
this._x = this._x + momentumx;
this._y = this._y - momentumy;
this._rotation = rotate;
if (keydownright) {
rotate = rotate + 4;
if (rotate > 360) {
rotate = rotate - 360;
}
}
if (keydownleft) {
rotate = rotate - 4;
if (rotate < -360) {
rotate = rotate + 360;
}
}
if (keydownup) {
smoke();
_root.fuel = _root.fuel - 1;
if (_root.fuel <= 0) {
_root.fuel = 0;
}
momentumx = momentumx + (Math.sin(rotate * radians) / 12);
momentumy = momentumy + (Math.cos(rotate * radians) / 12);
if (momentumx > topspeed) {
momentumx = topspeed;
}
if (momentumx < (-topspeed)) {
momentumx = -topspeed;
}
if (momentumy > topspeed) {
momentumy = topspeed;
}
if (momentumy < (-topspeed)) {
momentumy = -topspeed;
}
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (_root.level.hitTest(_x + (7 + momentumx), _y + (3 + momentumy), true) || (_root.level.hitTest(_x - (7 + momentumx), _y - (3 + momentumy), true))) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
}
if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
}
leveled = true;
} else if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (leveled == false)) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
} else if ((!_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true)) && (!_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true))) {
momentumy = momentumy - _root.gravity;
leveled = false;
}
if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
if (_root.menleft <= 0) {
rotate = 0;
momentumx = 0;
momentumy = 0;
this.gotoAndStop(5);
} else if (_root.menleft > 0) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
leveled = true;
}
}
} else if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (dead == false)) {
dead = true;
momentumx = 0;
explo();
momentumy = 0;
this.gotoAndStop(4);
}
}
}
Instance of Symbol 112 MovieClip "explo" in Frame 55
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 10;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 115 MovieClip "smoke" in Frame 55
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 3;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 116 MovieClip "Bullet" in Frame 55
onClipEvent (load) {
function resetbullet() {
_x = xpos;
_y = ypos;
xspeed = 0;
yspeed = 0;
_root.ship.fired = false;
}
xpos = _x;
ypos = _y;
resetbullet();
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_root.level.hitTest(_x, _y, true)) {
resetbullet();
}
}
Instance of Symbol 152 MovieClip in Frame 55
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 55
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 55
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 55
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 55
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 55
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Frame 64
Lives = Lives - 1;
gotoAndStop ("Level4");
Frame 65
fuel = 2000;
gravity = 0.03;
totalmen = 6;
menleft = 6;
stop();
Instance of Symbol 105 MovieClip "ship" in Frame 65
onClipEvent (load) {
function fire() {
_root.Bullet._x = this._x;
_root.Bullet._y = this._y;
_root.Bullet.xspeed = Math.sin(_rotation * (Math.PI/180)) * 6;
_root.Bullet.yspeed = (-Math.cos(_rotation * (Math.PI/180))) * 6;
fired = true;
}
function explo() {
rot = -(_rotation + 90);
_root.thrustfx.gotoAndStop(1);
i = 1;
while (i < 180) {
duplicateMovieClip (_root.explo, "explo" + i, 2 + i);
_root["explo" + i]._x = _x;
_root["explo" + i]._y = _y;
_root["explo" + i]._rotation = rot;
_root["explo" + i].xspeed = Math.sin(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
_root["explo" + i].yspeed = Math.cos(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
rot = rot + 1.5;
i++;
}
}
function smoke() {
duplicateMovieClip (_root.smoke, "smoke" + t, 2 + t);
_root["smoke" + t]._x = _x;
_root["smoke" + t]._y = _y;
_root["smoke" + t]._rotation = (rotate - 5) + random(10);
_root["smoke" + t].xspeed = (-Math.sin(_root["smoke" + t]._rotation * (Math.PI/180))) * 3;
_root["smoke" + t].yspeed = Math.cos(_root["smoke" + t]._rotation * (Math.PI/180)) * 3;
t++;
if (t >= 20) {
t = 1;
}
}
StartGame = false;
t = 1;
leveled = true;
topspeed = 10;
rotate = 0;
keydownright = false;
keydownleft = false;
keydownup = false;
keydowndown = false;
keydownfire = false;
momentumx = 0;
momentumy = 0;
fired = false;
dead = false;
radians = 0.0174532925199433 /* Math.PI/180 */;
}
onClipEvent (keyDown) {
if ((dead == false) && (StartGame == true)) {
if ((Key.getCode() == 39) && (leveled == false)) {
keydownright = true;
}
if ((Key.getCode() == 37) && (leveled == false)) {
keydownleft = true;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(2);
keydownup = true;
}
if (Key.getCode() == 40) {
keydowndown = true;
}
}
}
onClipEvent (keyUp) {
if ((dead == false) && (StartGame == true)) {
if (Key.getCode() == 39) {
keydownright = false;
}
if (Key.getCode() == 37) {
keydownleft = false;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(1);
keydownup = false;
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (Key.isDown(32) && (fired == false)) {
this.gotoAndStop(3);
fired = true;
}
if (momentumy < -5) {
momentumy = -5;
}
this._x = this._x + momentumx;
this._y = this._y - momentumy;
this._rotation = rotate;
if (keydownright) {
rotate = rotate + 4;
if (rotate > 360) {
rotate = rotate - 360;
}
}
if (keydownleft) {
rotate = rotate - 4;
if (rotate < -360) {
rotate = rotate + 360;
}
}
if (keydownup) {
smoke();
_root.fuel = _root.fuel - 1;
if (_root.fuel <= 0) {
_root.fuel = 0;
}
momentumx = momentumx + (Math.sin(rotate * radians) / 12);
momentumy = momentumy + (Math.cos(rotate * radians) / 12);
if (momentumx > topspeed) {
momentumx = topspeed;
}
if (momentumx < (-topspeed)) {
momentumx = -topspeed;
}
if (momentumy > topspeed) {
momentumy = topspeed;
}
if (momentumy < (-topspeed)) {
momentumy = -topspeed;
}
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (_root.level.hitTest(_x + (7 + momentumx), _y + (3 + momentumy), true) || (_root.level.hitTest(_x - (7 + momentumx), _y - (3 + momentumy), true))) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
}
if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
}
leveled = true;
} else if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (leveled == false)) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
} else if ((!_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true)) && (!_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true))) {
momentumy = momentumy - _root.gravity;
leveled = false;
}
if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
if (_root.menleft <= 0) {
rotate = 0;
momentumx = 0;
momentumy = 0;
this.gotoAndStop(5);
} else if (_root.menleft > 0) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
leveled = true;
}
}
} else if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (dead == false)) {
dead = true;
momentumx = 0;
explo();
momentumy = 0;
this.gotoAndStop(4);
}
}
}
Instance of Symbol 112 MovieClip "explo" in Frame 65
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 10;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 115 MovieClip "smoke" in Frame 65
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 3;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 116 MovieClip "Bullet" in Frame 65
onClipEvent (load) {
function resetbullet() {
_x = xpos;
_y = ypos;
xspeed = 0;
yspeed = 0;
_root.ship.fired = false;
}
xpos = _x;
ypos = _y;
resetbullet();
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_root.level.hitTest(_x, _y, true)) {
resetbullet();
}
}
Instance of Symbol 152 MovieClip in Frame 65
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
_root.level.door1.gotoAndStop(2);
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 65
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 65
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 65
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 65
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 65
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Frame 74
Lives = Lives - 1;
gotoAndStop ("Level5");
Frame 75
fuel = 2000;
gravity = 0.03;
totalmen = 5;
menleft = 5;
stop();
Instance of Symbol 105 MovieClip "ship" in Frame 75
onClipEvent (load) {
function fire() {
_root.Bullet._x = this._x;
_root.Bullet._y = this._y;
_root.Bullet.xspeed = Math.sin(_rotation * (Math.PI/180)) * 6;
_root.Bullet.yspeed = (-Math.cos(_rotation * (Math.PI/180))) * 6;
fired = true;
}
function explo() {
rot = -(_rotation + 90);
_root.thrustfx.gotoAndStop(1);
i = 1;
while (i < 180) {
duplicateMovieClip (_root.explo, "explo" + i, 2 + i);
_root["explo" + i]._x = _x;
_root["explo" + i]._y = _y;
_root["explo" + i]._rotation = rot;
_root["explo" + i].xspeed = Math.sin(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
_root["explo" + i].yspeed = Math.cos(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
rot = rot + 1.5;
i++;
}
}
function smoke() {
duplicateMovieClip (_root.smoke, "smoke" + t, 2 + t);
_root["smoke" + t]._x = _x;
_root["smoke" + t]._y = _y;
_root["smoke" + t]._rotation = (rotate - 5) + random(10);
_root["smoke" + t].xspeed = (-Math.sin(_root["smoke" + t]._rotation * (Math.PI/180))) * 3;
_root["smoke" + t].yspeed = Math.cos(_root["smoke" + t]._rotation * (Math.PI/180)) * 3;
t++;
if (t >= 20) {
t = 1;
}
}
StartGame = false;
t = 1;
leveled = true;
topspeed = 10;
rotate = 0;
keydownright = false;
keydownleft = false;
keydownup = false;
keydowndown = false;
keydownfire = false;
momentumx = 0;
momentumy = 0;
fired = false;
dead = false;
radians = 0.0174532925199433 /* Math.PI/180 */;
}
onClipEvent (keyDown) {
if ((dead == false) && (StartGame == true)) {
if ((Key.getCode() == 39) && (leveled == false)) {
keydownright = true;
}
if ((Key.getCode() == 37) && (leveled == false)) {
keydownleft = true;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(2);
keydownup = true;
}
if (Key.getCode() == 40) {
keydowndown = true;
}
}
}
onClipEvent (keyUp) {
if ((dead == false) && (StartGame == true)) {
if (Key.getCode() == 39) {
keydownright = false;
}
if (Key.getCode() == 37) {
keydownleft = false;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(1);
keydownup = false;
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (Key.isDown(32) && (fired == false)) {
this.gotoAndStop(3);
fired = true;
}
if (momentumy < -5) {
momentumy = -5;
}
this._x = this._x + momentumx;
this._y = this._y - momentumy;
this._rotation = rotate;
if (keydownright) {
rotate = rotate + 4;
if (rotate > 360) {
rotate = rotate - 360;
}
}
if (keydownleft) {
rotate = rotate - 4;
if (rotate < -360) {
rotate = rotate + 360;
}
}
if (keydownup) {
smoke();
_root.fuel = _root.fuel - 1;
if (_root.fuel <= 0) {
_root.fuel = 0;
}
momentumx = momentumx + (Math.sin(rotate * radians) / 12);
momentumy = momentumy + (Math.cos(rotate * radians) / 12);
if (momentumx > topspeed) {
momentumx = topspeed;
}
if (momentumx < (-topspeed)) {
momentumx = -topspeed;
}
if (momentumy > topspeed) {
momentumy = topspeed;
}
if (momentumy < (-topspeed)) {
momentumy = -topspeed;
}
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (_root.level.hitTest(_x + (7 + momentumx), _y + (3 + momentumy), true) || (_root.level.hitTest(_x - (7 + momentumx), _y - (3 + momentumy), true))) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
}
if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
}
leveled = true;
} else if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (leveled == false)) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
} else if ((!_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true)) && (!_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true))) {
momentumy = momentumy - _root.gravity;
leveled = false;
}
if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
if (_root.menleft <= 0) {
rotate = 0;
momentumx = 0;
momentumy = 0;
this.gotoAndStop(5);
} else if (_root.menleft > 0) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
leveled = true;
}
}
} else if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (dead == false)) {
dead = true;
momentumx = 0;
explo();
momentumy = 0;
this.gotoAndStop(4);
}
}
}
Instance of Symbol 112 MovieClip "explo" in Frame 75
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 10;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 115 MovieClip "smoke" in Frame 75
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 3;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 116 MovieClip "Bullet" in Frame 75
onClipEvent (load) {
function resetbullet() {
_x = xpos;
_y = ypos;
xspeed = 0;
yspeed = 0;
_root.ship.fired = false;
}
xpos = _x;
ypos = _y;
resetbullet();
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_root.level.hitTest(_x, _y, true)) {
resetbullet();
}
}
Instance of Symbol 152 MovieClip in Frame 75
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 75
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 75
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 75
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 75
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Frame 84
Lives = Lives - 1;
gotoAndStop ("Level6");
Frame 85
fuel = 2000;
gravity = 0.03;
totalmen = 5;
menleft = 5;
stop();
Instance of Symbol 105 MovieClip "ship" in Frame 85
onClipEvent (load) {
function fire() {
_root.Bullet._x = this._x;
_root.Bullet._y = this._y;
_root.Bullet.xspeed = Math.sin(_rotation * (Math.PI/180)) * 6;
_root.Bullet.yspeed = (-Math.cos(_rotation * (Math.PI/180))) * 6;
fired = true;
}
function explo() {
rot = -(_rotation + 90);
_root.thrustfx.gotoAndStop(1);
i = 1;
while (i < 180) {
duplicateMovieClip (_root.explo, "explo" + i, 2 + i);
_root["explo" + i]._x = _x;
_root["explo" + i]._y = _y;
_root["explo" + i]._rotation = rot;
_root["explo" + i].xspeed = Math.sin(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
_root["explo" + i].yspeed = Math.cos(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
rot = rot + 1.5;
i++;
}
}
function smoke() {
duplicateMovieClip (_root.smoke, "smoke" + t, 2 + t);
_root["smoke" + t]._x = _x;
_root["smoke" + t]._y = _y;
_root["smoke" + t]._rotation = (rotate - 5) + random(10);
_root["smoke" + t].xspeed = (-Math.sin(_root["smoke" + t]._rotation * (Math.PI/180))) * 3;
_root["smoke" + t].yspeed = Math.cos(_root["smoke" + t]._rotation * (Math.PI/180)) * 3;
t++;
if (t >= 20) {
t = 1;
}
}
StartGame = false;
t = 1;
leveled = true;
topspeed = 10;
rotate = 0;
keydownright = false;
keydownleft = false;
keydownup = false;
keydowndown = false;
keydownfire = false;
momentumx = 0;
momentumy = 0;
fired = false;
dead = false;
radians = 0.0174532925199433 /* Math.PI/180 */;
}
onClipEvent (keyDown) {
if ((dead == false) && (StartGame == true)) {
if ((Key.getCode() == 39) && (leveled == false)) {
keydownright = true;
}
if ((Key.getCode() == 37) && (leveled == false)) {
keydownleft = true;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(2);
keydownup = true;
}
if (Key.getCode() == 40) {
keydowndown = true;
}
}
}
onClipEvent (keyUp) {
if ((dead == false) && (StartGame == true)) {
if (Key.getCode() == 39) {
keydownright = false;
}
if (Key.getCode() == 37) {
keydownleft = false;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(1);
keydownup = false;
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (Key.isDown(32) && (fired == false)) {
this.gotoAndStop(3);
fired = true;
}
if (momentumy < -5) {
momentumy = -5;
}
this._x = this._x + momentumx;
this._y = this._y - momentumy;
this._rotation = rotate;
if (keydownright) {
rotate = rotate + 4;
if (rotate > 360) {
rotate = rotate - 360;
}
}
if (keydownleft) {
rotate = rotate - 4;
if (rotate < -360) {
rotate = rotate + 360;
}
}
if (keydownup) {
smoke();
_root.fuel = _root.fuel - 1;
if (_root.fuel <= 0) {
_root.fuel = 0;
}
momentumx = momentumx + (Math.sin(rotate * radians) / 12);
momentumy = momentumy + (Math.cos(rotate * radians) / 12);
if (momentumx > topspeed) {
momentumx = topspeed;
}
if (momentumx < (-topspeed)) {
momentumx = -topspeed;
}
if (momentumy > topspeed) {
momentumy = topspeed;
}
if (momentumy < (-topspeed)) {
momentumy = -topspeed;
}
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (_root.level.hitTest(_x + (7 + momentumx), _y + (3 + momentumy), true) || (_root.level.hitTest(_x - (7 + momentumx), _y - (3 + momentumy), true))) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
}
if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
}
leveled = true;
} else if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (leveled == false)) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
} else if ((!_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true)) && (!_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true))) {
momentumy = momentumy - _root.gravity;
leveled = false;
}
if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
if (_root.menleft <= 0) {
rotate = 0;
momentumx = 0;
momentumy = 0;
this.gotoAndStop(5);
} else if (_root.menleft > 0) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
leveled = true;
}
}
} else if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (dead == false)) {
dead = true;
momentumx = 0;
explo();
momentumy = 0;
this.gotoAndStop(4);
}
}
}
Instance of Symbol 112 MovieClip "explo" in Frame 85
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 10;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 115 MovieClip "smoke" in Frame 85
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 3;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 116 MovieClip "Bullet" in Frame 85
onClipEvent (load) {
function resetbullet() {
_x = xpos;
_y = ypos;
xspeed = 0;
yspeed = 0;
_root.ship.fired = false;
}
xpos = _x;
ypos = _y;
resetbullet();
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_root.level.hitTest(_x, _y, true)) {
resetbullet();
}
}
Instance of Symbol 152 MovieClip in Frame 85
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 85
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 85
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 85
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 85
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Frame 94
Lives = Lives - 1;
gotoAndStop ("Level7");
Frame 95
fuel = 2000;
gravity = 0.03;
totalmen = 6;
menleft = 6;
stop();
Instance of Symbol 105 MovieClip "ship" in Frame 95
onClipEvent (load) {
function fire() {
_root.Bullet._x = this._x;
_root.Bullet._y = this._y;
_root.Bullet.xspeed = Math.sin(_rotation * (Math.PI/180)) * 6;
_root.Bullet.yspeed = (-Math.cos(_rotation * (Math.PI/180))) * 6;
fired = true;
}
function explo() {
rot = -(_rotation + 90);
_root.thrustfx.gotoAndStop(1);
i = 1;
while (i < 180) {
duplicateMovieClip (_root.explo, "explo" + i, 2 + i);
_root["explo" + i]._x = _x;
_root["explo" + i]._y = _y;
_root["explo" + i]._rotation = rot;
_root["explo" + i].xspeed = Math.sin(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
_root["explo" + i].yspeed = Math.cos(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
rot = rot + 1.5;
i++;
}
}
function smoke() {
duplicateMovieClip (_root.smoke, "smoke" + t, 2 + t);
_root["smoke" + t]._x = _x;
_root["smoke" + t]._y = _y;
_root["smoke" + t]._rotation = (rotate - 5) + random(10);
_root["smoke" + t].xspeed = (-Math.sin(_root["smoke" + t]._rotation * (Math.PI/180))) * 3;
_root["smoke" + t].yspeed = Math.cos(_root["smoke" + t]._rotation * (Math.PI/180)) * 3;
t++;
if (t >= 20) {
t = 1;
}
}
StartGame = false;
t = 1;
leveled = true;
topspeed = 10;
rotate = 0;
keydownright = false;
keydownleft = false;
keydownup = false;
keydowndown = false;
keydownfire = false;
momentumx = 0;
momentumy = 0;
fired = false;
dead = false;
radians = 0.0174532925199433 /* Math.PI/180 */;
}
onClipEvent (keyDown) {
if ((dead == false) && (StartGame == true)) {
if ((Key.getCode() == 39) && (leveled == false)) {
keydownright = true;
}
if ((Key.getCode() == 37) && (leveled == false)) {
keydownleft = true;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(2);
keydownup = true;
}
if (Key.getCode() == 40) {
keydowndown = true;
}
}
}
onClipEvent (keyUp) {
if ((dead == false) && (StartGame == true)) {
if (Key.getCode() == 39) {
keydownright = false;
}
if (Key.getCode() == 37) {
keydownleft = false;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(1);
keydownup = false;
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (Key.isDown(32) && (fired == false)) {
this.gotoAndStop(3);
fired = true;
}
if (momentumy < -5) {
momentumy = -5;
}
this._x = this._x + momentumx;
this._y = this._y - momentumy;
this._rotation = rotate;
if (keydownright) {
rotate = rotate + 4;
if (rotate > 360) {
rotate = rotate - 360;
}
}
if (keydownleft) {
rotate = rotate - 4;
if (rotate < -360) {
rotate = rotate + 360;
}
}
if (keydownup) {
smoke();
_root.fuel = _root.fuel - 1;
if (_root.fuel <= 0) {
_root.fuel = 0;
}
momentumx = momentumx + (Math.sin(rotate * radians) / 12);
momentumy = momentumy + (Math.cos(rotate * radians) / 12);
if (momentumx > topspeed) {
momentumx = topspeed;
}
if (momentumx < (-topspeed)) {
momentumx = -topspeed;
}
if (momentumy > topspeed) {
momentumy = topspeed;
}
if (momentumy < (-topspeed)) {
momentumy = -topspeed;
}
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (_root.level.hitTest(_x + (7 + momentumx), _y + (3 + momentumy), true) || (_root.level.hitTest(_x - (7 + momentumx), _y - (3 + momentumy), true))) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
}
if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
}
leveled = true;
} else if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (leveled == false)) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
} else if ((!_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true)) && (!_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true))) {
momentumy = momentumy - _root.gravity;
leveled = false;
}
if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
if (_root.menleft <= 0) {
rotate = 0;
momentumx = 0;
momentumy = 0;
this.gotoAndStop(5);
} else if (_root.menleft > 0) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
leveled = true;
}
}
} else if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (dead == false)) {
dead = true;
momentumx = 0;
explo();
momentumy = 0;
this.gotoAndStop(4);
}
}
}
Instance of Symbol 112 MovieClip "explo" in Frame 95
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 10;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 115 MovieClip "smoke" in Frame 95
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 3;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 116 MovieClip "Bullet" in Frame 95
onClipEvent (load) {
function resetbullet() {
_x = xpos;
_y = ypos;
xspeed = 0;
yspeed = 0;
_root.ship.fired = false;
}
xpos = _x;
ypos = _y;
resetbullet();
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_root.level.hitTest(_x, _y, true)) {
resetbullet();
}
}
Instance of Symbol 152 MovieClip in Frame 95
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 95
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 95
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 95
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 95
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 95
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Frame 104
Lives = Lives - 1;
gotoAndStop ("Level8");
Frame 105
fuel = 2000;
gravity = 0.02;
totalmen = 5;
menleft = 5;
stop();
Instance of Symbol 105 MovieClip "ship" in Frame 105
onClipEvent (load) {
function fire() {
_root.Bullet._x = this._x;
_root.Bullet._y = this._y;
_root.Bullet.xspeed = Math.sin(_rotation * (Math.PI/180)) * 6;
_root.Bullet.yspeed = (-Math.cos(_rotation * (Math.PI/180))) * 6;
fired = true;
}
function explo() {
rot = -(_rotation + 90);
_root.thrustfx.gotoAndStop(1);
i = 1;
while (i < 180) {
duplicateMovieClip (_root.explo, "explo" + i, 2 + i);
_root["explo" + i]._x = _x;
_root["explo" + i]._y = _y;
_root["explo" + i]._rotation = rot;
_root["explo" + i].xspeed = Math.sin(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
_root["explo" + i].yspeed = Math.cos(_root["explo" + i]._rotation * (Math.PI/180)) * (random(10) + 1);
rot = rot + 1.5;
i++;
}
}
function smoke() {
duplicateMovieClip (_root.smoke, "smoke" + t, 2 + t);
_root["smoke" + t]._x = _x;
_root["smoke" + t]._y = _y;
_root["smoke" + t]._rotation = (rotate - 5) + random(10);
_root["smoke" + t].xspeed = (-Math.sin(_root["smoke" + t]._rotation * (Math.PI/180))) * 3;
_root["smoke" + t].yspeed = Math.cos(_root["smoke" + t]._rotation * (Math.PI/180)) * 3;
t++;
if (t >= 20) {
t = 1;
}
}
StartGame = false;
t = 1;
leveled = true;
topspeed = 10;
rotate = 0;
keydownright = false;
keydownleft = false;
keydownup = false;
keydowndown = false;
keydownfire = false;
momentumx = 0;
momentumy = 0;
fired = false;
dead = false;
radians = 0.0174532925199433 /* Math.PI/180 */;
}
onClipEvent (keyDown) {
if ((dead == false) && (StartGame == true)) {
if ((Key.getCode() == 39) && (leveled == false)) {
keydownright = true;
}
if ((Key.getCode() == 37) && (leveled == false)) {
keydownleft = true;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(2);
keydownup = true;
}
if (Key.getCode() == 40) {
keydowndown = true;
}
}
}
onClipEvent (keyUp) {
if ((dead == false) && (StartGame == true)) {
if (Key.getCode() == 39) {
keydownright = false;
}
if (Key.getCode() == 37) {
keydownleft = false;
}
if (Key.getCode() == 38) {
_root.thrustfx.gotoAndStop(1);
keydownup = false;
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (Key.isDown(32) && (fired == false)) {
this.gotoAndStop(3);
fired = true;
}
if (momentumy < -5) {
momentumy = -5;
}
this._x = this._x + momentumx;
this._y = this._y - momentumy;
this._rotation = rotate;
if (keydownright) {
rotate = rotate + 4;
if (rotate > 360) {
rotate = rotate - 360;
}
}
if (keydownleft) {
rotate = rotate - 4;
if (rotate < -360) {
rotate = rotate + 360;
}
}
if (keydownup) {
smoke();
_root.fuel = _root.fuel - 1;
if (_root.fuel <= 0) {
_root.fuel = 0;
}
momentumx = momentumx + (Math.sin(rotate * radians) / 12);
momentumy = momentumy + (Math.cos(rotate * radians) / 12);
if (momentumx > topspeed) {
momentumx = topspeed;
}
if (momentumx < (-topspeed)) {
momentumx = -topspeed;
}
if (momentumy > topspeed) {
momentumy = topspeed;
}
if (momentumy < (-topspeed)) {
momentumy = -topspeed;
}
}
}
}
onClipEvent (enterFrame) {
if ((dead == false) && (StartGame == true)) {
if (_root.level.hitTest(_x + (7 + momentumx), _y + (3 + momentumy), true) || (_root.level.hitTest(_x - (7 + momentumx), _y - (3 + momentumy), true))) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
}
if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
}
leveled = true;
} else if ((((_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (leveled == false)) {
dead = true;
explo();
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
} else if ((!_root.level.startpad.hitTest(_x, _y + (7 + momentumy), true)) && (!_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true))) {
momentumy = momentumy - _root.gravity;
leveled = false;
}
if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (leveled == false)) {
if (_root.menleft <= 0) {
rotate = 0;
momentumx = 0;
momentumy = 0;
this.gotoAndStop(5);
} else if (_root.menleft > 0) {
rotate = 0;
momentumx = 0;
if (leveled == false) {
momentumy = 0;
leveled = true;
}
}
} else if ((((_root.level.endpad.hitTest(_x, _y + (7 + momentumy), true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (dead == false)) {
dead = true;
momentumx = 0;
explo();
momentumy = 0;
this.gotoAndStop(4);
}
}
}
Instance of Symbol 112 MovieClip "explo" in Frame 105
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 10;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 115 MovieClip "smoke" in Frame 105
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_root.level.hitTest(_x + xspeed, _y + yspeed, true)) {
xspeed = (-xspeed) / 3;
yspeed = (-yspeed) / 10;
}
}
Instance of Symbol 116 MovieClip "Bullet" in Frame 105
onClipEvent (load) {
function resetbullet() {
_x = xpos;
_y = ypos;
xspeed = 0;
yspeed = 0;
_root.ship.fired = false;
}
xpos = _x;
ypos = _y;
resetbullet();
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_root.level.hitTest(_x - xspeed, _y - yspeed, true)) {
resetbullet();
}
}
Instance of Symbol 152 MovieClip in Frame 105
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 105
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 105
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 105
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Instance of Symbol 152 MovieClip in Frame 105
onClipEvent (load) {
this.anim.gotoAndPlay(random(250));
saved = false;
}
onClipEvent (enterFrame) {
if (saved == false) {
if (this.hitTest(_root.ship.beam)) {
this.gotoAndPlay("Saved");
_root.menleft = _root.menleft - 1;
saved = true;
}
}
}
Frame 114
Lives = Lives - 1;
gotoAndStop ("Level9");
Frame 115
stopAllSounds();
TotalScore = _root.Score + " Points";
Mentext = ("You Saved " + _root.MenSaved) + " Men";
Ending = (_root.EndText + " ") + _root.Name;
i = 1;
while (i <= 20) {
duplicateMovieClip (Scanline, "Scan" + i, 10 + i);
i++;
}
Instance of Symbol 33 MovieClip in Frame 115
onClipEvent (enterFrame) {
_rotation = (_rotation + 0.08);
}
Frame 124
if ((_root.Level >= 3) && (_root.Level < 5)) {
TotalInfo = "Level " + _root.Level;
GameMedal = "b";
} else if ((_root.Level >= 5) && (_root.Level < 10)) {
TotalInfo = "Level " + _root.Level;
GameMedal = "s";
} else if (_root.Level >= 10) {
TotalInfo = "Completed Game";
GameMedal = "g";
}
Frame 144
stop();
Symbol 26 Button
on (release) {
getURL ("http://www.benz.be", "_blank");
}
Symbol 31 MovieClip Frame 132
stop();
_root.play(5);
Symbol 66 Button
on (release) {
stopAllSounds();
_root.MenSaved = 0;
_root.Score = 0;
_root.Lives = 3;
_root.Level = 1;
_root.gotoAndStop("Level1");
}
Symbol 76 Button
on (release) {
getURL ("http://www.benz.be", "_blank");
}
Symbol 80 Button
on (release) {
getURL ("http://www.benz.be/webmaster.php", "_blank");
}
Symbol 92 MovieClip Frame 2
_root.Ship_Teleport.start();
Symbol 92 MovieClip Frame 22
_parent.gotoAndStop(2);
Symbol 102 MovieClip Frame 2
_root.Fire.start();
Symbol 102 MovieClip Frame 11
_parent.fire();
_parent.gotoAndStop(2);
Symbol 103 MovieClip Frame 1
_root.Explode.start();
Symbol 103 MovieClip Frame 50
if (_root.Lives <= 0) {
_root.EndText = "GameOver";
_root.GameOver.gotoAndPlay(2);
} else if (_root.Lives > 0) {
_root.play();
}
stop();
Symbol 104 MovieClip Frame 10
_root.Ship_Teleport.start();
Symbol 104 MovieClip Frame 60
_root.ScoreTally.gotoAndPlay(2);
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
StartGame = true;
Symbol 105 MovieClip Frame 5
StartGame = false;
Instance of Symbol 111 MovieClip in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(5) + 1);
}
Symbol 112 MovieClip Frame 61
removeMovieClip(this);
stop();
Instance of Symbol 114 MovieClip in Symbol 115 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(random(5) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 115 MovieClip Frame 20
/* no clip actions */
Symbol 115 MovieClip Frame 21
removeMovieClip(this);
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 21
_root.ForceField.start();
Symbol 131 MovieClip Frame 48
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
stopAllSounds();
TallyLevel = _root.Level * 1000;
TallyMen = _root.totalmen * 500;
TallyBonus = _root.fuel;
Total = 0;
Symbol 151 MovieClip Frame 40
if (TallyLevel <= 0) {
gotoAndPlay (41);
} else {
_root.Pop.start();
TallyLevel = TallyLevel - 100;
Total = Total + 100;
gotoAndPlay (38);
}
Symbol 151 MovieClip Frame 50
if (TallyMen <= 0) {
gotoAndPlay (51);
} else {
_root.Pop.start();
TallyMen = TallyMen - 100;
Total = Total + 100;
gotoAndPlay (48);
}
Symbol 151 MovieClip Frame 60
if (TallyBonus <= 0) {
gotoAndPlay (61);
} else if (TallyBonus >= 100) {
_root.Pop.start();
TallyBonus = TallyBonus - 100;
Total = Total + 100;
gotoAndPlay (58);
} else if (TallyBonus >= 10) {
_root.Pop.start();
TallyBonus = TallyBonus - 10;
Total = Total + 10;
gotoAndPlay (58);
} else {
_root.Pop.start();
TallyBonus = TallyBonus - 1;
Total = Total + 1;
gotoAndPlay (58);
}
Symbol 151 MovieClip Frame 61
_root.Score = _root.Score + Total;
Symbol 151 MovieClip Frame 90
_root.MenSaved = _root.MenSaved + _root.totalmen;
_root.Level = _root.Level + 1;
if (_root.Level >= 10) {
_root.EndText = "WellDone";
_root.gotoAndPlay("GameOver");
} else {
_root.gotoAndStop("Level" + _root.Level);
}
gotoAndStop (1);
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 2
_root["Saved" + Number(random(7) + 1)].start();
Symbol 152 MovieClip Frame 20
_root.Man_Teleport.start();
Symbol 152 MovieClip Frame 48
_root.Score = _root.Score + 10;
if (_root.menleft <= 0) {
_root.level.sphere.gotoAndPlay(2);
}
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 70
_root.gotoAndPlay("GameOver");
stop();
Symbol 200 MovieClip Frame 1
stop();
Instance of Symbol 213 MovieClip in Symbol 214 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 1);
}
Instance of Symbol 213 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 0.4);
}
Symbol 224 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 41
stop();
Instance of Symbol 224 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Bullet) && (hit == false)) {
this.gotoAndStop(2);
hit = true;
}
}
Instance of Symbol 224 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Bullet) && (hit == false)) {
this.gotoAndStop(2);
hit = true;
}
}
Instance of Symbol 224 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Bullet) && (hit == false)) {
this.gotoAndStop(2);
hit = true;
}
}
Instance of Symbol 224 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Bullet) && (hit == false)) {
this.gotoAndStop(2);
hit = true;
}
}
Instance of Symbol 224 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Bullet) && (hit == false)) {
this.gotoAndStop(2);
hit = true;
}
}
Instance of Symbol 224 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Bullet) && (hit == false)) {
this.gotoAndStop(2);
hit = true;
}
}
Instance of Symbol 227 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
flipped = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Bullet) && (flipped == false)) {
this.gotoAndStop(2);
_parent.Door1.gotoAndPlay(2);
flipped = true;
}
}
Symbol 242 Button
on (release) {
_root.enabled = false;
sendscore = new LoadVars();
sendscore.score = _root.Score;
sendscore.game_name = "lastmission";
sendscore.flashgametime = int(getTimer() / 1000);
sendscore.gamesessid = _level0.gamesessid;
sendscore.gameid = _level0.gid;
sendscore.send("http://www.benz.be/newscore.php", "_blank", "POST");
}
Symbol 244 Button
on (release) {
_root.gotoAndPlay("Preloader");
}
Symbol 246 Button
on (release) {
getURL ("http://www.benz.be", "_blank");
}