Frame 2
if (Number(loaded) == "100") {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (2);
Frame 15
stop();
Frame 51
hspeed = 0;
vspeed = 0;
thrust = 2;
crash = 1;
turn = 0;
again = 0;
minutes = -1;
seconds = 0;
slomo = 1;
clipn = "1";
clockchange = 0;
medal = 0;
tellTarget ("frame1") {
game = "1";
gotoAndPlay (1);
};
myDate.setSeconds(10);
g = "1";
clipping = "1";
setProperty("bg", _x , "-163.1");
setProperty("bg", _y , "-2133.6");
Frame 52
if (Key.isDown(38)) {
if (Number(slomo) == "2") {
thrust = Number(thrust) + 0.2;
} else {
thrust = Number(thrust) + 1;
}
}
if (Key.isDown(40)) {
thrust = Number(thrust) - 0.5;
}
if (Number(thrust) < "0") {
thrust = 0;
}
if ("4" < Number(thrust)) {
thrust = 4;
}
if (Number(thrust) >= "1") {
tellTarget ("boat.legs") {
play();
};
} else {
tellTarget ("boat.legs") {
stop();
};
}
if (Number(again) == "0") {
origx = getProperty(boat, _x);
origy = getProperty(boat, _y);
again = "20";
}
hspeed = Number(hspeed) + (Math.sin((Math.PI/180) * getProperty(_root.boat, _rotation)) * Number(thrust));
vspeed = Number(vspeed) - (Math.cos((Math.PI/180) * getProperty(_root.boat, _rotation)) * Number(thrust));
speed = Math.sqrt((Number(vspeed) * Number(vspeed)) + (Number(hspeed) * Number(hspeed)));
if (Key.isDown(39)) {
if (getProperty(boat, _rotation) < "90") {
if (Number(thrust) >= 0) {
turn = Number(turn) + 1.5;
}
}
}
if (Key.isDown(37)) {
if ("-90" < getProperty(boat, _rotation)) {
if (Number(thrust) >= 0) {
turn = Number(turn) - 1.25;
}
}
}
rot = (Number(turn) * Number(speed)) / 10;
if (Number(clipping) == "1") {
if (0 < Number(turn)) {
if (((Number(speed) * 2) - 0.25) < Number(turn)) {
gotoAndPlay (54);
}
} else if (((Number(speed) * 2) - 0.25) < (-Number(turn))) {
gotoAndPlay (54);
}
} else if (0 < Number(turn)) {
if (((Number(speed) * 2) - 0.25) < (Number(turn) * 3)) {
gotoAndPlay (54);
}
} else if (((Number(speed) * 2) - 0.25) < (-(Number(turn) * 3))) {
gotoAndPlay (54);
}
setProperty("_root.boat.wheel", _rotation , Number(turn) * 5);
if (getProperty(boat, _rotation) < "-89") {
setProperty("boat", _rotation , "-89");
}
if ("89" < getProperty(boat, _rotation)) {
setProperty("boat", _rotation , "89");
}
vc = Math.sqrt(((Math.sin((Math.PI/180) * (90 - getProperty(_root.boat, _rotation))) * Math.tan((Math.PI/180) * getProperty(_root.boat, _rotation))) * 62) * ((Math.sin((Math.PI/180) * (90 - getProperty(_root.boat, _rotation))) * Math.tan((Math.PI/180) * getProperty(_root.boat, _rotation))) * 62));
hc = Math.sqrt((Number(62) * Number(62)) - (Number(vc) * Number(vc)));
hitfronty = (-Number(hc)) + 328;
if (getProperty(_root.boat, _rotation) < "0") {
hitfrontx = (-Number(vc)) + 275;
} else {
hitfrontx = Number(vc) + 275;
}
myDate = new Date();
if (Number(g) == "1") {
thing = Number(myDate.getSeconds());
}
if (Number(myDate.getSeconds()) >= Number(thing)) {
timetil12 = (59 - Number(myDate.getSeconds())) + Number(thing);
} else {
timetil12 = ((-Number(myDate.getSeconds())) + Number(thing)) - 1;
}
tellTarget ("_root.frame1.timer") {
gotoAndStop(60 - Number(_root.timetil12));
};
g = "2";
seconds = 59 - Number(_root.timetil12);
if (Number(seconds) < "10") {
seconds = "0" + seconds;
}
if (Number(clockchange) == "0") {
if (seconds == "00") {
clockchange = 1;
minutes = Number(minutes) + 1;
} else {
clockchange = 0;
}
}
medal = Number(minutes);
if (seconds ne "00") {
clockchange = 0;
}
if (Number(crash) == "2") {
gotoAndPlay (54);
} else if (Number(crash) == "3") {
gotoAndPlay (57);
}
if (Number(clipping) == "2") {
clipn = Number(clipn) + 1;
if (Number(clipn) >= "24") {
clipn = "1";
clipping = "1";
}
}
Frame 53
if ((_root.bg.objects.hitTest(getProperty(_root.boat, _x) + hspeed, getProperty(_root.boat, _y) + vspeed, true) ne true) and (_root.bg.objects.hitTest(Number(hitfrontx) + hspeed, Number(hitfronty) + vspeed, true) ne true)) {
setProperty("_root.bg", _y , getProperty(_root.bg, _y) - vspeed);
} else if ((_root.bg.objects.hitTest(getProperty(_root.boat, _x) + hspeed, getProperty(_root.boat, _y) + (vspeed / 2), true) ne true) and (_root.bg.objects.hitTest(Number(hitfrontx) + hspeed, Number(hitfronty) + (vspeed / 2), true) ne true)) {
setProperty("_root.bg", _y , getProperty(_root.bg, _y) - (vspeed / 2));
vspeed = vspeed / 2;
} else if ((_root.bg.objects.hitTest(getProperty(_root.boat, _x) + hspeed, getProperty(_root.boat, _y) + (vspeed / 4), true) ne true) and (_root.bg.objects.hitTest(Number(hitfrontx) + hspeed, Number(hitfronty) + (vspeed / 4), true) ne true)) {
setProperty("_root.bg", _y , getProperty(_root.bg, _y) - (vspeed / 4));
vspeed = vspeed / 4;
} else if ((_root.bg.objects.hitTest(getProperty(_root.boat, _x) + hspeed, getProperty(_root.boat, _y) + (vspeed / 8), true) ne true) and (_root.bg.objects.hitTest(Number(hitfrontx) + hspeed, Number(hitfronty) + (vspeed / 8), true) ne true)) {
setProperty("_root.bg", _y , getProperty(_root.bg, _y) - (vspeed / 8));
vspeed = vspeed / 8;
} else if ((_root.bg.objects.hitTest(getProperty(_root.boat, _x) + hspeed, getProperty(_root.boat, _y) + (vspeed / 16), true) ne true) and (_root.bg.objects.hitTest(Number(hitfrontx) + hspeed, Number(hitfronty) + (vspeed / 16), true) ne true)) {
setProperty("_root.bg", _y , getProperty(_root.bg, _y) - (vspeed / 16));
vspeed = vspeed / 16;
} else if ((_root.bg.objects.hitTest(getProperty(_root.boat, _x) + hspeed, getProperty(_root.boat, _y) + (vspeed / 32), true) ne true) and (_root.bg.objects.hitTest(Number(hitfrontx) + hspeed, Number(hitfronty) + (vspeed / 32), true) ne true)) {
setProperty("_root.bg", _y , getProperty(_root.bg, _y) - (vspeed / 32));
vspeed = vspeed / 32;
} else {
if ("0" < Number(hspeed)) {
hspeed = hspeed - 1;
} else {
hspeed = hspeed + 1;
}
if ("0" < Number(vspeed)) {
vspeed = vspeed - 3;
} else {
vspeed = vspeed + 3;
}
}
if ((_root.bg.objects.hitTest(getProperty(_root.boat, _x) + hspeed, getProperty(_root.boat, _y) + vspeed, true) ne true) and (_root.bg.objects.hitTest(Number(hitfrontx) + (hspeed / 2), Number(hitfronty) + vspeed, true) ne true)) {
setProperty("_root.bg", _x , getProperty(_root.bg, _x) - hspeed);
} else if ((_root.bg.objects.hitTest(getProperty(_root.boat, _x) + (hspeed / 2), getProperty(_root.boat, _y) + vspeed, true) ne true) and (_root.bg.objects.hitTest(Number(hitfrontx) + (hspeed / 4), Number(hitfronty) + vspeed, true) ne true)) {
setProperty("_root.bg", _x , getProperty(_root.bg, _x) - (hspeed / 2));
hspeed = hspeed / 2;
} else if ((_root.bg.objects.hitTest(getProperty(_root.boat, _x) + (hspeed / 4), getProperty(_root.boat, _y) + vspeed, true) ne true) and (_root.bg.objects.hitTest(Number(hitfrontx) + (hspeed / 8), Number(hitfronty) + vspeed, true) ne true)) {
setProperty("_root.bg", _x , getProperty(_root.bg, _x) - (hspeed / 4));
hspeed = hspeed / 4;
} else if ((_root.bg.objects.hitTest(getProperty(_root.boat, _x) + (hspeed / 8), getProperty(_root.boat, _y) + vspeed, true) ne true) and (_root.bg.objects.hitTest(Number(hitfrontx) + (hspeed / 16), Number(hitfronty) + vspeed, true) ne true)) {
setProperty("_root.bg", _x , getProperty(_root.bg, _x) - (hspeed / 8));
hspeed = hspeed / 8;
} else if ((_root.bg.objects.hitTest(getProperty(_root.boat, _x) + (hspeed / 16), getProperty(_root.boat, _y) + vspeed, true) ne true) and (_root.bg.objects.hitTest(Number(hitfrontx) + (hspeed / 16), Number(hitfronty) + vspeed, true) ne true)) {
setProperty("_root.bg", _x , getProperty(_root.bg, _x) - (hspeed / 16));
hspeed = hspeed / 16;
} else if ((_root.bg.objects.hitTest(getProperty(_root.boat, _x) + (hspeed / 32), getProperty(_root.boat, _y) + vspeed, true) ne true) and (_root.bg.objects.hitTest(Number(hitfrontx) + (hspeed / 32), Number(hitfronty) + vspeed, true) ne true)) {
setProperty("_root.bg", _x , getProperty(_root.bg, _x) - (hspeed / 32));
hspeed = hspeed / 32;
} else {
if ("0" < Number(vspeed)) {
vspeed = vspeed - 1;
} else {
vspeed = vspeed + 1;
}
if ("0" < Number(hspeed)) {
hspeed = hspeed - 3;
} else {
hspeed = hspeed + 3;
}
}
setProperty("_root.boat", _rotation , getProperty(_root.boat, _rotation) + Number(rot));
gotoAndPlay (52);
thrust = Number(thrust) / 1.075;
if (Number(rot) < "-25") {
rot = "-25";
}
if ("25" < Number(rot)) {
rot = "25";
}
turn = Number(turn) / 1.25;
vc = Math.sqrt(((Math.sin((Math.PI/180) * (90 - getProperty(_root.boat, _rotation))) * Math.tan((Math.PI/180) * getProperty(_root.boat, _rotation))) * speed) * ((Math.sin((Math.PI/180) * (90 - getProperty(_root.boat, _rotation))) * Math.tan((Math.PI/180) * getProperty(_root.boat, _rotation))) * speed));
hc = Math.sqrt((Number(speed) * Number(speed)) - (Number(vc) * Number(vc)));
if (0 < Number(vspeed)) {
vspeed = (Number(vspeed) / 1.2) - (vc / 8);
} else {
vspeed = (Number(vspeed) / 1.2) + (vc / 8);
}
if (0 < Number(hspeed)) {
hspeed = (Number(hspeed) / 1.2) - (hc / 8);
} else {
hspeed = (Number(hspeed) / 1.2) + (hc / 8);
}
Frame 54
score = (Number(minutes) * 60) + Number(seconds);
Frame 55
tellTarget ("frame1") {
game = "2";
};
play();
Frame 56
if (Number(again) == "2") {
gotoAndPlay (51);
} else {
gotoAndPlay (55);
}
Frame 57
tellTarget ("frame1") {
game = "2";
};
if ((Number(minutes) == "0") and ("30" >= Number(seconds))) {
result = ("Red-hot riding! You completed the course in " + seconds) + " seconds, but you should slow down and work on your balance!";
} else if ((Number(minutes) == "0") and ("30" < Number(seconds))) {
result = ("Red-hot riding! You completed the course in " + seconds) + " seconds, and you're starting to look good!";
} else if (Number(minutes) == "1") {
result = ((("Red-hot riding! You completed the course in " + minutes) + " minute and ") + seconds) + " seconds, and you don't get much slower than that. You rule!";
} else if ("1" < Number(minutes)) {
result = ((("Red-hot riding! You completed the course in " + minutes) + " minutes and ") + seconds) + " seconds, and you don't get much slower than that. You rule!";
}
score = (Number(minutes) * 60) + Number(seconds);
Frame 58
if (Number(again) == "2") {
gotoAndPlay (51);
} else {
gotoAndPlay (57);
}
Symbol 2 MovieClip Frame 15
stop();
Symbol 14 MovieClip Frame 1
xtastic = getProperty(loader, _x);
Symbol 14 MovieClip Frame 2
setProperty("loader", _x , Number(xtastic) + ((_root.getBytesLoaded() / _root.getBytesTotal()) * getProperty(loader, _width)));
_root.loaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
Symbol 14 MovieClip Frame 3
gotoAndPlay (2);
Symbol 16 MovieClip Frame 21
stop();
Symbol 22 Button
on (release) {
tellTarget ("_root") {
play();
};
}
Symbol 49 MovieClip Frame 1
if (this.hitTest(_root.boat.hitback) or this.hitTest(_root.boat.hitfront)) {
_root.crash = "3";
}
Symbol 49 MovieClip Frame 2
if (this.hitTest(_root.boat.hitback) or this.hitTest(_root.boat.hitfront)) {
_root.crash = "3";
}
Symbol 51 MovieClip Frame 1
if (this.hitTest(getProperty(_root.boat, _x), getProperty(_root.boat, _y), true)) {
_root.slomo = "2";
} else {
_root.slomo = "3";
}
Symbol 51 MovieClip Frame 2
if (this.hitTest(getProperty(_root.boat, _x), getProperty(_root.boat, _y), true)) {
_root.slomo = "2";
} else {
_root.slomo = "3";
}
Symbol 56 MovieClip Frame 1
if (this.hitTest(_root.boat.hitfront)) {
_root.crash = "2";
}
if (this.hitTest(_root.boat.hitback)) {
_root.clipping = "2";
}
Symbol 56 MovieClip Frame 2
if (this.hitTest(_root.boat.hitfront)) {
_root.crash = "2";
}
if (this.hitTest(_root.boat.hitback)) {
_root.clipping = "2";
}
Symbol 59 MovieClip Frame 1
if (this.hitTest(_root.boat.hitfront)) {
_root.crash = "2";
}
if (this.hitTest(_root.boat.hitback)) {
_root.clipping = "2";
}
Symbol 59 MovieClip Frame 2
if (this.hitTest(_root.boat.hitfront)) {
_root.crash = "2";
}
if (this.hitTest(_root.boat.hitback)) {
_root.clipping = "2";
}
Symbol 63 MovieClip Frame 1
if (this.hitTest(_root.boat.hitfront)) {
_root.crash = "2";
}
if (this.hitTest(_root.boat.hitback)) {
_root.clipping = "2";
}
Symbol 63 MovieClip Frame 2
if (this.hitTest(_root.boat.hitfront)) {
_root.crash = "2";
}
if (this.hitTest(_root.boat.hitback)) {
_root.clipping = "2";
}
Symbol 67 MovieClip Frame 1
if (this.hitTest(_root.boat.hitfront)) {
_root.crash = "2";
}
if (this.hitTest(_root.boat.hitback)) {
_root.clipping = "2";
}
Symbol 67 MovieClip Frame 2
if (this.hitTest(_root.boat.hitfront)) {
_root.crash = "2";
}
if (this.hitTest(_root.boat.hitback)) {
_root.clipping = "2";
}
Symbol 70 MovieClip Frame 1
if (this.hitTest(_root.boat.hitfront)) {
_root.crash = "2";
}
if (this.hitTest(_root.boat.hitback)) {
_root.clipping = "2";
}
Symbol 70 MovieClip Frame 2
if (this.hitTest(_root.boat.hitfront)) {
_root.crash = "2";
}
if (this.hitTest(_root.boat.hitback)) {
_root.clipping = "2";
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
xtastic = getProperty(wobble, _x);
Symbol 83 MovieClip Frame 2
if (Number(_root.clipping) == "1") {
if ("0" < Number(_root.turn)) {
setProperty("wobble", _x , Number(xtastic) + (Number(_root.turn) * 8));
} else {
setProperty("wobble", _x , Number(xtastic) - (Number(_root.turn) * 8));
}
} else if (Number(_root.clipping) == "2") {
if ("0" < Number(_root.turn)) {
setProperty("wobble", _x , Number(xtastic) + (Number(_root.turn) * 16));
} else {
setProperty("wobble", _x , Number(xtastic) - (Number(_root.turn) * 16));
}
}
if (getProperty(wobble, _width) >= (Number(_root.speed) * 4)) {
setProperty("speed", _x , Number(xtastic) + (Number(_root.speed) * 4));
}
if (Number(getProperty(wobble, _x)) >= Number(getProperty(speed, _x))) {
tellTarget ("speedup") {
play();
};
} else if (Number(_root.speed) < "1.5") {
tellTarget ("speedup") {
play();
};
} else if (11 < Number(_root.speed)) {
tellTarget ("slowdown") {
play();
};
}
Symbol 83 MovieClip Frame 3
gotoAndPlay (2);
Symbol 91 MovieClip Frame 1
tellTarget ("_root.frame1.timer.clockback") {
gotoAndStop(Number(_root.minutes) + 1);
};
Symbol 97 MovieClip Frame 1
tellTarget ("_root.frame1.timer.clockright") {
gotoAndStop(Number(_root.medal) + 1);
};
Symbol 99 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 1
tellTarget ("_root.frame1.timer.clockleft") {
gotoAndStop(Number(_root.medal) + 1);
};
Symbol 104 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 1
game = "1";
Symbol 108 MovieClip Frame 2
if (Number(game) == "2") {
gotoAndStop (4);
}
Symbol 108 MovieClip Frame 3
gotoAndPlay (2);
Symbol 127 MovieClip Frame 1
_root.hitfront = getProperty(hitfront, _x);
Symbol 127 MovieClip Frame 2
gotoAndPlay (1);
Symbol 128 MovieClip Frame 1
stopAllSounds();
Symbol 128 MovieClip Frame 18
stop();
stopAllSounds();
Symbol 134 MovieClip Frame 20
stop();
Symbol 140 Button
on (release) {
nextFrame();
getURL (("javascript:track_me(" + _root.score) + ");");
}
Symbol 142 Button
on (release) {
gotoAndPlay (18);
}
Symbol 147 Button
on (release) {
nextFrame();
}
Symbol 154 Button
on (release) {
prevFrame();
}
Symbol 155 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 1
score = _root.score;
Symbol 157 MovieClip Frame 16
stop();
Symbol 157 MovieClip Frame 52
tellTarget ("_root") {
again = "2";
};
Symbol 159 MovieClip Frame 13
stop();
Symbol 160 MovieClip Frame 8
stop();
Symbol 164 MovieClip Frame 1
stop();
Symbol 165 Button
on (release) {
gotoAndPlay (30);
}
Symbol 167 MovieClip Frame 1
score = _root.score;
Symbol 167 MovieClip Frame 28
stop();
Symbol 167 MovieClip Frame 64
tellTarget ("_root") {
again = "2";
};