Frame 1
stop();
xc = 0;
fader._alpha = 0;
fading = false;
_root.onEnterFrame = function () {
percent = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
_root.loadbar._xscale = percent;
_root.percdisp = ("LOADING...\n" + Math.round(percent)) + "%";
if (fading == true) {
fader._alpha = fader._alpha + 2;
if (fader._alpha >= 100) {
_root.gotoAndStop(2);
}
}
if (percent == 100) {
xc++;
if ((xc % 50) == 0) {
fading = true;
}
}
};
Frame 2
_root.stop();
marioSound = new Sound(this);
marioSound.attachSound("MARIO");
marioSound.start();
Instance of Symbol 17 MovieClip [TORNADO] in Frame 2
onClipEvent (enterFrame) {
_rotation = (_rotation - 20);
}
Frame 3
stop();
function buildMap() {
d = 0;
i = 1;
while (i < 200) {
_root.bg.attachMovie("BAR", "b_" + i, --d);
_root.bg["b_" + i]._x = 0;
_root.bg["b_" + i]._y = -500 * i;
i++;
}
i = 1;
while (i < 15) {
_root.bg.attachMovie("UP_TOKEN", "ut_" + i, --d);
_root.bg.attachMovie("DOWN_TOKEN", "dt_" + i, --d);
_root.bg["ut_" + i]._x = random(450) + 50;
_root.bg["dt_" + i]._x = random(450) + 50;
_root.bg["ut_" + i]._y = -500 * (i * i);
_root.bg["dt_" + i]._y = -1200 * (i * i);
i++;
}
i = 1;
while (i < 4) {
_root.bg.attachMovie("STOP", "stop_" + i, --d);
_root.bg["stop_" + i]._x = random(450) + 50;
_root.bg["stop_" + i]._y = -3000 * i;
_root.bg.attachMovie("TORNADO", "tor_" + i, --d);
_root.bg["tor_" + i]._x = random(450) + 50;
_root.bg["tor_" + i]._y = -1500 * (i * i);
i++;
}
}
function getMsg() {
if (totalFeet < 100) {
msg = "LOL";
}
if ((totalFeet >= 100) && (totalFeet < 150)) {
msg = "You suck. Sorry.";
}
if ((totalFeet >= 150) && (totalFeet < 250)) {
msg = "You didn't do so well, chief.";
}
if ((totalFeet >= 250) && (totalFeet < 350)) {
msg = "Yikes, tough break.";
}
if ((totalFeet >= 350) && (totalFeet < 450)) {
msg = "Ouch, that was almost good.";
}
if ((totalFeet >= 400) && (totalFeet < 475)) {
msg = "Hey, that's not so bad.";
}
if ((totalFeet >= 475) && (totalFeet < 550)) {
msg = "Nice.";
}
if ((totalFeet >= 550) && (totalFeet < 650)) {
msg = "Well done, Coolio.";
}
if ((totalFeet >= 650) && (totalFeet < 750)) {
msg = "Good job, keep it up!";
}
if ((totalFeet >= 750) && (totalFeet < 850)) {
msg = "Whoa, that was a really good jump!";
}
if ((totalFeet >= 850) && (totalFeet < 950)) {
msg = "Boo-ya! You're a jumping masta!";
}
if ((totalFeet >= 950) && (totalFeet < 1050)) {
msg = "Holy cow! I don't think anyone can jump as good as you!";
}
if ((totalFeet >= 1050) && (totalFeet < 1350)) {
msg = "Holy shit! You're freaking breaking world records!";
}
if (totalFeet >= 1350) {
msg = "Your jumping skills can only be described as \"God-like\"";
}
}
function launch() {
yVel = power - (Math.abs(Angle) / 5);
xVel = (Angle * 0.01) * power;
Launch = true;
}
function HITS() {
i = 1;
while (i < 15) {
if (_root.bg["ut_" + i].hitTest(ball) && (yVel > 0)) {
upSound.start();
yVel = yVel * 1.2;
}
if (_root.bg["dt_" + i].hitTest(ball) && (yVel > 0)) {
downSound.start();
yVel = yVel * 0.8;
}
i++;
}
i = 1;
while (i < 4) {
if (_root.bg["stop_" + i].hitTest(ball) && (yVel > 0)) {
stopSound.start();
yVel = yVel * 0.25;
}
if (_root.bg["tor_" + i].hitTest(ball) && (yVel > 0)) {
weeSound.start();
xVel = xVel * 1.5;
}
i++;
}
}
Angle = 0;
power = 100;
Height = 0;
disp = "";
totalHeight = 0;
totalDisp = "";
Launch = false;
_root.myData._alpha = 100;
msg = "";
x = 0;
weeSound = new Sound(this);
weeSound.attachSound("WEE");
boingSound = new Sound(this);
boingSound.attachSound("BOING");
upSound = new Sound(this);
upSound.attachSound("UP");
downSound = new Sound(this);
downSound.attachSound("DOWN");
stopSound = new Sound(this);
stopSound.attachSound("BRAKE");
woosh = new Sound(this);
woosh.attachSound("WOOSH");
woosh.start();
crash = new Sound(this);
crash.attachSound("CRASH");
buildMap();
_root.onEnterFrame = function () {
if ((_root.bg._y <= (_root.bg.endY + 100)) && (Launch == false)) {
_root._quality = "high";
arrowx._rotation = Angle;
myData.powBar._yscale = power;
myData.powDisp = ("JUMP POWER\n" + power) + "%";
myData.angDisp = ("JUMP ANGLE\n" + Angle) + "\u00B0";
if (Key.isDown(39) && (Angle < 60)) {
Angle = Angle + 5;
}
if (Key.isDown(37) && (Angle > -60)) {
Angle = Angle - 5;
}
if (Key.isDown(38) && (power < 100)) {
power = power + 2;
}
if (Key.isDown(40) && (power > 50)) {
power = power - 2;
}
if (Key.isDown(32) && (ball._y >= 340)) {
weeSound.start();
launch();
}
}
if (((ball._x < 0) || (ball._x > 550)) && (ball._y < 400)) {
boingSound.start();
if (Math.abs(xVel) > 10) {
xVel = xVel * -1;
} else {
xVel = xVel * -2;
}
}
if (Launch == true) {
_root.quality = "medium";
HITS();
if (_root.myData._x > -200) {
_root.myData._x = _root.myData._x - 10;
}
if (_root.arrowx._xscale > 0) {
_root.arrowx._xscale = _root.arrowx._xscale - 10;
_root.arrowx._yscale = _root.arrowx._yscale - 10;
if (Angle < 0) {
_root.arrowx._rotation = _root.arrowx._rotation - 10;
} else {
_root.arrowx._rotation = _root.arrowx._rotation + 10;
}
}
Height = Height + Math.round(yVel);
if (yVel > 0) {
disp = ("Height: " + Height) + " inches";
}
if ((ball._y < 150) && (yVel > 0)) {
_root.bg._y = _root.bg._y + yVel;
} else {
ball._y = ball._y - yVel;
}
yVel = yVel - 0.75;
ball._x = ball._x + xVel;
xVel = xVel * 0.985;
if ((yVel < 0.5) && (yVel > -0.5)) {
_root.quality = "high";
totalFeet = Math.round(Height / 12);
totalInches = Height % 12;
if (totalInches == 1) {
imsg = " inch";
} else {
imsg = " inches";
}
disp = "";
}
if (ball._y > 400) {
totalDisp = ((("Your total height:\n" + totalFeet) + " feet, ") + totalInches) + imsg;
x++;
if (((x % 40) == 0) && (ball._y < 4000)) {
crash.start();
getMsg();
}
if (_root.replay._y > 300) {
_root.replay._y = _root.replay._y - 5;
}
}
}
};
Instance of Symbol 79 MovieClip "bg" in Frame 3
onClipEvent (load) {
endY = _y;
_alpha = 0;
_y = 5000;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
if ((_y > endY) && (_root.Launch == false)) {
_root._quality = "low";
_y = (_y - 100);
}
}
Instance of Symbol 86 MovieClip "myData" in Frame 3
onClipEvent (load) {
endY = _y;
_y = 600;
}
onClipEvent (enterFrame) {
if ((_root.bg._y <= (_root.bg.endY + 100)) && (_y > endY)) {
_y = (_y - 25);
}
}
Instance of Symbol 17 MovieClip [TORNADO] in Frame 3
onClipEvent (enterFrame) {
_rotation = (_rotation - 20);
}
Instance of Symbol 53 MovieClip "ball" in Frame 3
onClipEvent (load) {
_root.arrowx._alpha = 0;
endY = _y;
_y = 600;
x = 0;
}
onClipEvent (enterFrame) {
x++;
if ((_root.bg._y <= (_root.bg.endY + 400)) && (_y > endY)) {
_y = (_y - 50);
} else if (((_root.arrowx._alpha < 50) && (x > 0)) && (_y <= endY)) {
_root.arrowx._alpha = _root.arrowx._alpha + 5;
}
}
Frame 4
stopAllSounds();
_root.prevFrame();
Symbol 40 Button
on (release) {
getURL ("http://www.clockcrew.net", "_blank");
}
Symbol 45 MovieClip Frame 1
mydate = new Date();
setProperty(this, _rotation , mydate.getMinutes() * "6");
Symbol 47 MovieClip Frame 1
rj = new Date();
setProperty(this, _rotation , rj.getHours() * "30");
gotoAndPlay (2);
Symbol 49 MovieClip Frame 1
mydate = new Date();
setProperty(this, _rotation , mydate.getSeconds() * "6");
Symbol 75 Button
on (rollOver) {
swish = new Sound(this);
swish.attachSound("SWISH");
swish.start();
}
on (press) {
boingSound = new Sound(this);
boingSound.attachSound("BOING");
boingSound.start();
}
on (release) {
_root.nextFrame();
}
Symbol 92 MovieClip Frame 19
gotoAndPlay (1);
Symbol 95 Button
on (rollOver) {
swish = new Sound(this);
swish.attachSound("SWISH");
swish.start();
}
on (press) {
_root.boingSound.start();
}
on (release) {
_root.nextFrame();
}