Frame 1
_quality = "medium";
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
_root.createEmptyMovieClip("l1", 1);
_root.createEmptyMovieClip("l2", 2);
perc = "0%";
p1 = 0;
_root.stop();
}
onClipEvent (enterFrame) {
den = _root.getBytesTotal();
num = _root.getBytesLoaded();
p1 = (num / den) * 100;
p2 = Math.round(p1);
perc = ("" + p2) + "%";
_root.l1.clear();
_root.l1.moveTo(275, 200);
_root.l1.lineStyle(2, 11491056, 100);
_root.l1.lineTo(_root._xmouse, _root._ymouse);
_root.l2.clear();
_root.l2.moveTo(275, 200);
_root.l2.lineStyle(15, 11491056, 100);
xd = _root._xmouse - 275;
yd = _root._ymouse - 200;
x = ((xd * p1) / 100) + 275;
y = ((yd * p1) / 100) + 200;
_root.l2.lineTo(x, y);
if (p1 >= 100) {
removeMovieClip(_root.l1);
removeMovieClip(_root.l2);
_root.play();
}
}
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 63 MovieClip in Frame 3
on (keyPress "<Space>") {
_root.play();
}
Frame 4
function rem() {
removeMovieClip(hud);
nmbr = 1;
i = 250;
while (i > 0) {
removeMovieClip(_root["c" + nmbr]);
nmbr++;
i--;
}
}
function endGame(res) {
if (res == "time") {
tx = "Time Up";
dis = Math.round(_root.vec._x / 10);
((dis < 0) ? ((dis = 0)) : null);
tim = 0;
cb = 0;
tb = 0;
db = dis;
}
if (res == "die") {
tx = "Crashed";
dis = 0;
tim = 0;
cb = 0;
tb = 0;
db = 0;
}
if (res == "win") {
tx = "Course Completed";
dis = 10000;
tim = Math.round(atime / 24);
cb = 10000;
tb = Math.round(atime * 20);
db = 10000;
}
score = (db + tb) + cb;
hud.box.play();
}
atime = 1440;
stop();
time = Math.round(atime / 24);
tx = "";
dis = 0;
tim = 0;
cb = 0;
tb = 0;
db = 0;
score = 0;
Instance of Symbol 68 MovieClip "land" in Frame 4
onClipEvent (load) {
xp = 0;
yp = 0;
nmbr = 1;
beginFill(11491056, 100);
i = 250;
while (i > 0) {
xp = xp + 400;
yp = yp + (random(400) - 200);
if (random(2) == 0) {
curveTo(xp - (random(100) + 150), (yp + random(800)) - 400, xp, yp);
} else {
lineTo(xp, yp);
}
duplicateMovieClip (_root.clock, "c" + nmbr, nmbr);
_root["c" + nmbr]._x = xp;
_root["c" + nmbr]._y = yp + 100;
nmbr++;
i--;
}
lineTo(100000, 100000);
lineTo(0, 100000);
lineTo(0, 0);
endFill();
}
Instance of Symbol 110 MovieClip "vec" in Frame 4
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
_x = _root.bd._x;
_y = _root.bd._y;
speed = 0;
_root.grounded = false;
c = new Sound(this);
c.attachSound("clo");
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_rotation = ((Math.atan2(_root.bd._y - _root.fd._y, _root.bd._x - _root.fd._x) / (Math.PI/180)) + 180);
(Key.isDown(37) ? (speed--) : null);
(Key.isDown(39) ? (speed++) : ((speed = speed * 0.97)));
((speed > 40) ? ((speed = 40)) : null);
((speed < -40) ? ((speed = -40)) : null);
if (_root.grounded) {
speed = speed * 0.97;
speed = speed + ((_root.fd._y - _root.bd._y) / 20);
xspeed = speed * Math.sin((_rotation + 90) * (Math.PI/180));
yspeed = speed * Math.cos((_rotation + 90) * (Math.PI/180));
if (Key.isDown(38)) {
xspeed = xspeed + (20 * Math.sin(_rotation * (Math.PI/180)));
yspeed = yspeed + (20 * Math.cos(_rotation * (Math.PI/180)));
_root.thrust._x = _x;
_root.thrust._y = _y;
_root.thrust._rotation = _rotation;
_root.thrust.gotoAndPlay(2);
}
}
_x = _root.bd._x;
_y = _root.bd._y;
_root.fd._x = _x + (33 * Math.sin((_rotation + 90) * (Math.PI/180)));
_root.fd._y = _y - (33 * Math.cos((_rotation + 90) * (Math.PI/180)));
((_root.fd._x < (_root.bd._x + 5)) ? ((_root.fd._x = _root.bd._x + 5)) : null);
_root._y = (-1 * _y) + (Stage.height / 2);
_root._x = (-1 * _x) + (Stage.width / 2);
_root.hud._x = _x;
_root.hud._y = _y;
_root.grounded = false;
_root.atime = _root.atime - 1;
_root.timer = Math.round(_root.atime / 24);
val = Math.round(_x / 400);
if (hitTest(_root["c" + val])) {
_root.atime = _root.atime + 60;
removeMovieClip(_root["c" + val]);
c.start();
}
if (_root.atime > 0) {
} else {
(this.gotoAndStop(2));// not popped
}
if (!((_y >= 400) && (_x <= 0))) {
} else {
(this.gotoAndStop(3));// not popped
}
if (_x < 100000) {
} else {
(this.gotoAndStop(4));// not popped
}
}
}
Instance of Symbol 136 MovieClip "hud" in Frame 4
onClipEvent (load) {
swapDepths(999999);
}
Instance of Symbol 138 MovieClip "bd" in Frame 4
onClipEvent (load) {
grav = 0.9;
gspeed = 0;
_visible = false;
}
onClipEvent (enterFrame) {
_y = (_y + (gspeed - _root.vec.yspeed));
_x = (_x + _root.vec.xspeed);
if (_root.land.hitTest(_x, _y, true)) {
while (_root.land.hitTest(_x, _y, true)) {
_y = (_y - 0.1);
}
gspeed = 0;
_root.grounded = true;
}
gspeed = gspeed + grav;
}
Instance of Symbol 138 MovieClip "fd" in Frame 4
onClipEvent (load) {
grav = 0.9;
gspeed = 0;
_visible = false;
}
onClipEvent (enterFrame) {
_y = (_y + (gspeed - _root.vec.yspeed));
_x = (_x + _root.vec.xspeed);
if (_root.land.hitTest(_x, _y, true)) {
while (_root.land.hitTest(_x, _y, true)) {
_y = (_y - 0.1);
}
gspeed = 0;
_root.grounded = true;
}
gspeed = gspeed + grav;
}
Frame 5
_root._x = 0;
_root._y = 0;
_root.gotoAndPlay("title");
Symbol 48 Button
on (release) {
_root.play();
}
Symbol 49 MovieClip Frame 143
_root.play();
stop();
Symbol 73 MovieClip Frame 1
stop();
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Instance of Symbol 71 MovieClip in Symbol 73 MovieClip Frame 2
onClipEvent (load) {
_xscale = (random(130) + 20);
_yscale = _xscale;
_rotation = (random(40) - 20);
}
Symbol 102 MovieClip Frame 34
stop();
_root.endGame("time");
Symbol 106 MovieClip Frame 24
stop();
_root.endGame("die");
Symbol 109 MovieClip Frame 20
stop();
_root.endGame("win");
Symbol 110 MovieClip Frame 1
stop();
Instance of Symbol 76 MovieClip in Symbol 110 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + (_parent.speed * 10));
}
Instance of Symbol 76 MovieClip in Symbol 110 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + (_parent.speed * 10));
}
Symbol 110 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 3
stop();
Symbol 110 MovieClip Frame 4
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 26
stop();
Instance of Symbol 133 MovieClip in Symbol 134 MovieClip Frame 26
on (keyPress "<Space>") {
_root.hud.box.play();
}
Instance of Symbol 133 MovieClip in Symbol 134 MovieClip Frame 27
/* no clip actions */
Symbol 134 MovieClip Frame 51
_root.play();
_root.rem();
Instance of Symbol 113 MovieClip in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
w = _width;
_xscale = 0;
}
onClipEvent (enterFrame) {
perc = (_root.vec._x / 100000) * 100;
_xscale = perc;
((_xscale < 0) ? (_xscale = 00) : null);
((_xscale > 100) ? (_xscale = 100100) : null);
_parent.t._x = _x + _width;
}