Frame 1
stop();
Instance of Symbol 22 MovieClip in Frame 1
onClipEvent (enterFrame) {
alpha = _root.getBytesLoaded();
beta = _root.getBytesTotal();
line._x = (((alpha * 100) / beta) * 1.6) - 80;
bar._xscale = (alpha * 100) / beta;
if (alpha >= beta) {
trace("done");
_root.gotoAndStop(2);
}
}
Frame 2
_root.levelnumber = 0;
_root.lives = 5;
if (_root.musicenabled == undefined) {
_root.musicenabled = true;
}
stop();
Instance of Symbol 34 MovieClip "dumbtext" in Frame 2
on (keyPress "<Enter>") {
_root.gotoAndStop(3);
}
Instance of Symbol 36 MovieClip "ob1" in Frame 2
on (press) {
_root.musicbox.musicy.stop("song2");
_root.musicbox.musicy.setVolume(100);
_root.gotoAndStop(5);
}
onClipEvent (enterFrame) {
_alpha = 0;
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.select.gotoAndStop(2);
_root.flashy.gotoAndStop(4);
_root.flashy2.gotoAndStop(4);
_root.dumbtext._visible = false;
} else if ((!_root.ob2.hitTest(_root._xmouse, _root._ymouse, true)) && (!_root.ob3.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.select.gotoAndStop(1);
_root.flashy.gotoAndStop(1);
_root.flashy2.gotoAndStop(1);
}
}
Instance of Symbol 38 MovieClip "ob3" in Frame 2
on (press) {
_root.musicbox.musicy.stop("song2");
_root.musicbox.musicy.setVolume(100);
_root.gotoAndStop(4);
}
onClipEvent (enterFrame) {
_alpha = 0;
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.select.gotoAndStop(4);
_root.flashy.gotoAndStop(3);
_root.flashy2.gotoAndStop(3);
_root.dumbtext._visible = false;
} else if ((!_root.ob2.hitTest(_root._xmouse, _root._ymouse, true)) && (!_root.ob1.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.select.gotoAndStop(1);
_root.flashy.gotoAndStop(1);
_root.flashy2.gotoAndStop(1);
}
}
Instance of Symbol 40 MovieClip "ob2" in Frame 2
on (press) {
_root.musicbox.musicy.stop("song2");
_root.musicbox.musicy.setVolume(100);
_root.gotoAndStop(3);
}
onClipEvent (enterFrame) {
_alpha = 0;
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.select.gotoAndStop(3);
_root.flashy.gotoAndStop(2);
_root.flashy2.gotoAndStop(2);
_root.dumbtext._visible = false;
} else if ((!_root.ob3.hitTest(_root._xmouse, _root._ymouse, true)) && (!_root.ob1.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.select.gotoAndStop(1);
_root.flashy.gotoAndStop(1);
_root.flashy2.gotoAndStop(1);
}
}
Instance of Symbol 44 MovieClip "flashy2" in Frame 2
onClipEvent (load) {
nx = _x;
ny = _y;
_alpha = 25;
}
onClipEvent (enterFrame) {
_x = ((nx + random(16)) - 8);
_y = ((ny + random(16)) - 8);
}
Instance of Symbol 44 MovieClip "flashy" in Frame 2
onClipEvent (load) {
nx = _x;
ny = _y;
}
onClipEvent (enterFrame) {
_x = ((nx + random(4)) - 2);
_y = ((ny + random(4)) - 2);
}
Instance of Symbol 46 MovieClip "musicbox" in Frame 2
onClipEvent (load) {
musicy = new Sound();
musicy.attachSound("song2");
if (_root.musicenabled == true) {
musicy.start(0, 99999);
musicy.setVolume(25);
}
}
Frame 3
stop();
Instance of Symbol 79 MovieClip "startpad" in Frame 3
onClipEvent (load) {
stop();
}
Instance of Symbol 82 MovieClip "endpad" in Frame 3
onClipEvent (load) {
stop();
}
Instance of Symbol 85 MovieClip "fuelpad" in Frame 3
onClipEvent (load) {
stop();
}
Instance of Symbol 46 MovieClip "musicbox" in Frame 3
onClipEvent (load) {
soundy = new Sound();
musicy = new Sound();
musicy.attachSound("song");
if (_root.musicenabled == true) {
musicy.start(0, 99999);
}
}
Instance of Symbol 100 MovieClip "ship" in Frame 3
onClipEvent (enterFrame) {
if ((alive == true) && (disabled == false)) {
botglow._alpha = downvis;
rigglow._alpha = lefvis;
lefglow._alpha = rigvis;
if ((((_x > (_root.startpad._x - 10)) && (_x < (_root.startpad._x + 10))) && (_y > (_root.startpad._y - 25))) && (_y < _root.startpad._y)) {
_root.startpad.play();
if ((_y < _root.startpad._y) && (_y <= (_root.startpad._y - 10))) {
thrust = thrust - ((((_root.startpad._y - _y) - 25) / 10) + (thrust / 25));
}
if (_x > (_root.startpad._x + 2)) {
turn = turn - (0.3 + (turn / 5));
}
if (_x < (_root.startpad._x - 2)) {
turn = turn + (0.3 - (turn / 5));
}
} else {
_root.startpad.gotoAndStop(1);
}
if ((((_x > (_root.endpad._x - 10)) && (_x < (_root.endpad._x + 10))) && (_y > (_root.endpad._y - 25))) && (_y < _root.endpad._y)) {
_root.endpad.play();
if ((thrust > 2) && (thrust < 7)) {
end++;
} else {
end--;
}
if (end > 15) {
if (_root.levelnumber <= 8) {
_root.winner._visible = true;
} else {
_root.gamewin._visible = true;
_root.musicbox.soundy.attachSound("cheer");
_root.musicbox.soundy.start(0, 0);
}
_root.musicbox.soundy.attachSound("win");
_root.musicbox.soundy.start(0, 0);
spin.gotoAndStop(spin._currentframe);
_root.endpad.gotoAndStop(_root.endpad._currentframe);
disabled = true;
thrust = gravity / 20;
turn = 0;
botglow._alpha = 0;
rigglow._alpha = 0;
lefglow._alpha = 0;
}
if ((_y < _root.endpad._y) && (_y <= (_root.endpad._y - 10))) {
thrust = thrust - ((((_root.endpad._y - _y) - 25) / 10) + (thrust / 25));
}
if (_x > (_root.endpad._x + 2)) {
turn = turn - (0.3 + (turn / 5));
}
if (_x < (_root.endpad._x - 2)) {
turn = turn + (0.3 - (turn / 5));
}
} else {
_root.endpad.gotoAndStop(1);
}
if ((((_x > (_root.fuelpad._x - 10)) && (_x < (_root.fuelpad._x + 10))) && (_y > (_root.fuelpad._y - 25))) && (_y < _root.fuelpad._y)) {
_root.fuelpad.play();
if (_root.fuelleft <= 990) {
_root.fuelleft = _root.fuelleft + 10;
}
if ((_y < _root.fuelpad._y) && (_y <= (_root.fuelpad._y - 10))) {
thrust = thrust - ((((_root.fuelpad._y - _y) - 25) / 10) + (thrust / 25));
}
if (_x > (_root.fuelpad._x + 2)) {
turn = turn - (0.3 + (turn / 5));
}
if (_x < (_root.fuelpad._x - 2)) {
turn = turn + (0.3 - (turn / 5));
}
} else {
_root.fuelpad.gotoAndStop(1);
}
if (((((((((_root.landscape.hitTest(_x - 5, _y - 6.25, true) || (_root.landscape.hitTest(_x + 5, _y - 6.25, true))) || (_root.landscape.hitTest(_x - 5, _y + 6.25, true))) || (_root.landscape.hitTest(_x + 5, _y + 6.25, true))) || (_root.landscape.hitTest(_x + 13.5, _y + 2.5, true))) || (_root.landscape.hitTest(_x - 13.5, _y + 2.5, true))) || (_root.landscape.hitTest(_x + 13.5, _y - 2.5, true))) || (_root.landscape.hitTest(_x - 13.5, _y - 2.5, true))) && (alive == true)) && (shipcollideinvalid == false)) {
trace(_root.landscape.hitTest(_x - 5, _y - 6.25, true));
trace(_root.landscape.hitTest(_x + 5, _y - 6.25, true));
trace(_root.landscape.hitTest(_x - 5, _y + 6.25, true));
trace((("Player hit landscape " + _x) + ", ") + _y);
gotoAndPlay (2);
alive = false;
_root.lives--;
_root.musicbox.soundy.attachSound("die");
_root.musicbox.soundy.start(0, 0);
_root.musicbox.soundy.attachSound("splode");
_root.musicbox.soundy.start(0, 0);
}
vertf = (gravity / 20) - thrust;
_y = (_y + (((gravity / 20) - thrust) / 2));
_x = (_x + (turn / 2));
shipcollideinvalid = false;
if ((!(Key.isDown(37) && (Key.isDown(39)))) && (alive == true)) {
if (turn > 0.05) {
turn = turn - 0.02;
}
if (turn < -0.05) {
turn = turn + 0.02;
}
}
if ((Key.isDown(37) && (_root.fuelleft > 0)) && (alive == true)) {
if (turn > -10) {
if (lefvis < 100) {
lefvis = lefvis + 8;
}
turn = turn - 0.2;
_root.fuelleft--;
}
} else if (lefvis > 8) {
lefvis = lefvis - 8;
}
if ((Key.isDown(39) && (_root.fuelleft > 0)) && (alive == true)) {
if (turn < 10) {
if (rigvis < 100) {
rigvis = rigvis + 8;
}
turn = turn + 0.2;
_root.fuelleft--;
}
} else if (rigvis > 8) {
rigvis = rigvis - 8;
}
if ((Key.isDown(38) && (_root.fuelleft > 0)) && (alive == true)) {
if (thrust < 20) {
thrust = thrust + 0.2;
_root.fuelleft--;
if (downvis < 100) {
downvis = downvis + 8;
}
}
} else if (thrust > -10) {
thrust = thrust - (gravity / 500);
if (downvis > 8) {
downvis = downvis - 8;
}
}
if (_x > 600) {
turn = turn - 3;
}
if (_x < 0) {
turn = turn + 3;
}
if (_y > 400) {
thrust = thrust + 6;
}
if (_y < 0) {
thrust = thrust - 3;
}
}
}
onClipEvent (load) {
function loadmap() {
_root.musicbox.soundy.attachSound("spawn");
_root.musicbox.soundy.start(1, 0);
spin.gotoAndPlay(1);
_root.endpad.gotoAndStop(1);
trace("loadmap: " + _root.levelnumber);
_root.landscape.gotoAndStop(_root.levelnumber + 1);
_root.startpad._x = _root.landscape.startpos._x + 300;
_root.startpad._y = _root.landscape.startpos._y + 200;
_root.endpad._x = _root.landscape.endpos._x + 300;
_root.endpad._y = _root.landscape.endpos._y + 200;
_x = _root.startpad._x;
_y = (_root.startpad._y - 25);
disabled = false;
end = 0;
alive = true;
_root.fuelleft = 1000;
_root.fuelmax = 1000;
gravity = 100;
thrust = gravity / 20;
turn = 0;
downvis = 0;
lefvis = 0;
rigvis = 0;
}
loadmap();
}
Instance of Symbol 105 MovieClip in Frame 3
onClipEvent (enterFrame) {
gotoAndStop(_root.lives);
}
Instance of Symbol 109 MovieClip in Frame 3
onClipEvent (load) {
if (_root.musicenabled == false) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.musicenabled = !_root.musicenabled;
if (_root.musicenabled == false) {
_root.musicbox.musicy.stop("song");
gotoAndStop (2);
} else {
_root.musicbox.musicy.start(0, 9999);
gotoAndStop (1);
}
}
Instance of Symbol 113 MovieClip "winner" in Frame 3
onClipEvent (enterFrame) {
if (_visible == true) {
winamount++;
if (winamount > 90) {
_root.ship.shipcollideinvalid = true;
winamount = 0;
_root.levelnumber++;
_root.ship._x = -1000;
_root.ship._y = -1000;
_root.ship.loadmap();
_visible = false;
winamount = 0;
}
}
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 115 MovieClip "looser" in Frame 3
onClipEvent (enterFrame) {
if (_visible == true) {
winamount++;
if (winamount > 90) {
_root.musicbox.musicy.setVolume(25);
_root.musicbox.musicy.stop("song");
_root.gotoAndStop(2);
}
}
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 118 MovieClip "gamewin" in Frame 3
onClipEvent (enterFrame) {
if (_visible == true) {
winamount++;
if (winamount > 90) {
_root.musicbox.musicy.setVolume(25);
_root.musicbox.musicy.stop("song");
_root.gotoAndStop(2);
}
}
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 129 MovieClip in Frame 4
onClipEvent (load) {
if (_root._quality == "HIGH") {
gotoAndStop (1);
} else if (_root._quality == "MEDIUM") {
gotoAndStop (2);
} else if (_root._quality == "LOW") {
gotoAndStop (3);
}
}
on (press) {
if (_root._quality == "HIGH") {
gotoAndStop (2);
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
gotoAndStop (3);
_root._quality = "LOW";
} else if (_root._quality == "LOW") {
gotoAndStop (1);
_root._quality = "HIGH";
}
}
on (rollOver) {
area.gotoAndStop(2);
}
on (rollOut) {
area.gotoAndStop(1);
}
Instance of Symbol 132 MovieClip in Frame 4
onClipEvent (load) {
if (_root.musicenabled == false) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.musicenabled = !_root.musicenabled;
if (_root.musicenabled == false) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (rollOver) {
area.gotoAndStop(2);
}
on (rollOut) {
area.gotoAndStop(1);
}
Instance of Symbol 134 MovieClip in Frame 4
on (press) {
_root.gotoAndStop(2);
}
on (rollOver) {
area.gotoAndStop(2);
}
on (rollOut) {
area.gotoAndStop(1);
}
Instance of Symbol 181 MovieClip "screen" in Frame 5
onClipEvent (load) {
img = 1;
darker._alpha = 0;
}
onClipEvent (enterFrame) {
if (_currentframe != img) {
if (darker._alpha <= 100) {
darker._alpha = darker._alpha + 5;
} else {
gotoAndStop(img);
}
} else if (darker._alpha > 0) {
darker._alpha = darker._alpha - 5;
}
}
Instance of Symbol 183 MovieClip in Frame 5
onClipEvent (load) {
_alpha = 0;
}
on (press) {
if (((_root.screen.img == _root.screen._currentframe) && (_root.screen.darker._alpha <= 0)) && (_root.screen._currentframe < 20)) {
_root.screen.img++;
}
}
Instance of Symbol 183 MovieClip in Frame 5
onClipEvent (load) {
_alpha = 0;
}
on (press) {
_root.musicbox.musicy.stop("song3");
_root.musicbox.musicy.setVolume(25);
_root.gotoAndPlay(2);
}
Instance of Symbol 46 MovieClip "musicbox" in Frame 5
onClipEvent (load) {
musicy = new Sound();
musicy.attachSound("song3");
if (_root.musicenabled == true) {
musicy.start(0, 99999);
musicy.setVolume(100);
}
}
Symbol 29 MovieClip Frame 1
stop();
Instance of Symbol 53 MovieClip "startpos" in Symbol 75 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 54 MovieClip "endpos" in Symbol 75 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 87 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.fuelleft * 100) / _root.fuelmax);
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 39
if (_root.lives >= 1) {
_root.musicbox.soundy.attachSound("spawn");
_root.musicbox.soundy.start(1, 0);
alive = true;
_root.fuelleft = 1000;
_root.fuelmax = 1000;
gravity = 100;
thrust = gravity / 20;
turn = 0;
downvis = 0;
lefvis = 0;
rigvis = 0;
_x = _root.startpad._x;
_y = (_root.startpad._y - 25);
} else {
_visible = false;
stop();
_root.looser._visible = true;
_root.musicbox.soundy.attachSound("gameover");
_root.musicbox.soundy.start(0, 0);
}
Symbol 109 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
stop();