Frame 1
function displayText(label, points) {
if ((points == 0) || (timer.time == 0)) {
return(undefined);
}
textDisplay.label = label;
textDisplay.points = points;
textDisplay.gotoAndPlay(2);
}
Frame 4
bytesLoaded = getBytesLoaded();
bytesTotal = getBytesTotal();
bytesLeft = Math.floor((bytesTotal - bytesLoaded) / 1000) + " K";
Frame 5
if ((bytesLoaded < bytesTotal) || (bytesTotal < 5)) {
gotoAndPlay ("loading");
} else {
commHit.loadVariables("/kids/games/bmx/bmx-load.html", "GET");
}
Frame 6
score = 0;
stop();
Frame 11
stop();
Instance of Symbol 160 MovieClip "main" in Frame 16
onClipEvent (load) {
this.attachMovie("depth6", "depth6", 6);
}
onClipEvent (enterFrame) {
this._x = (-rider._x) + rider.cellSize;
}
Instance of Symbol 164 MovieClip "textDisplay" in Frame 16
onClipEvent (load) {
cameraSound = new Sound();
cameraSound.attachSound("camera.wav");
}
Instance of Symbol 170 MovieClip "timer" in Frame 16
onClipEvent (load) {
totalTime = 120;
time = totalTime;
}
Frame 21
main.rider.game = true;
timer.gotoAndPlay(2);
stop();
Frame 26
commHit.loadVariables("/kids/games/bmx/bmx-play.html", "GET");
main.rider.game = false;
stop();
Frame 36
commPost.action = "submitscore";
commPost.gameid = 101;
commPost.clientid = 1;
commPost.loadVariables("/kids/games/submitscore.jsp", "POST");
Frame 46
gotoAndPlay ("title");
Symbol 10 MovieClip [turn] Frame 1
with (_parent) {
if ((((onGround && (1 < Math.abs(Vx))) && (Math.abs(Vz + Az) < Vzmax)) && (!grinding)) && (!onFace)) {
Vz = Vz + Az;
} else {
this.removeMovieClip();
}
}
Symbol 11 MovieClip [brake] Frame 1
with (_parent) {
if (onGround && (!grinding)) {
if (angle == 0) {
Vx = Vx * brakeForce;
} else {
Vplane = Vplane * brakeForce;
}
}
}
Symbol 12 MovieClip [pedal] Frame 1
with (_parent) {
if (onGround) {
if (angle == 0) {
Vx = Math.min(Vx + Ax, Vxmax);
} else if (_rotation < 0) {
Vplane = Math.max(Vplane - Ax, -Vxmax);
} else {
Vplane = Math.min(Vplane + Ax, Vxmax);
}
}
}
Symbol 13 MovieClip [jump] Frame 1
with (_parent) {
Vy = Vy + (g * Ay);
if (Math.abs(Vy) < (g * Ay)) {
this.removeMovieClip();
}
}
Symbol 13 MovieClip [jump] Frame 2
with (_parent) {
Vy = Vy + (g * Ay);
if (Math.abs(Vy) < (g * Ay)) {
this.removeMovieClip();
}
}
gotoAndPlay (1);
Symbol 14 MovieClip [rotate] Frame 1
with (_parent) {
if (!onGround) {
_rotation = _rotation + Vw;
currentRotations = currentRotations + Vw;
}
}
Symbol 14 MovieClip [rotate] Frame 2
with (_parent) {
if (!onGround) {
_rotation = _rotation + Vw;
currentRotations = currentRotations + Vw;
}
}
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 2
squirtSound.setVolume(40);
squirtSound.start(0, 1);
stop();
Symbol 21 MovieClip [depth6] Frame 1
stop();
Instance of Symbol 19 MovieClip "hotdogstand" in Symbol 21 MovieClip [depth6] Frame 3
onClipEvent (load) {
squirtSound = new Sound();
squirtSound.attachSound("mailbox.wav");
}
Symbol 33 Button
on (release) {
gotoAndStop ("keys");
}
Symbol 35 Button
on (release) {
gotoAndPlay ("main");
}
Symbol 38 Button
on (release) {
getURL ("http://www.cbc.ca/kids/games", "_blank");
}
Symbol 53 Button
on (release) {
gotoAndPlay ("main");
}
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
mailboxSound.setVolume(50);
mailboxSound.start(0, 1);
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
splashSound.setVolume(30);
splashSound.start(0, 1);
Symbol 92 MovieClip Frame 1
stop();
Instance of Symbol 76 MovieClip "mailbox" in Symbol 92 MovieClip Frame 2
onClipEvent (load) {
mailboxSound = new Sound();
mailboxSound.attachSound("mailbox.wav");
}
Instance of Symbol 90 MovieClip "splash" in Symbol 92 MovieClip Frame 2
onClipEvent (load) {
splashSound = new Sound();
splashSound.attachSound("splash.wav");
}
Instance of Symbol 19 MovieClip "hotdogstand" in Symbol 92 MovieClip Frame 3
onClipEvent (load) {
squirtSound = new Sound();
squirtSound.attachSound("mailbox.wav");
}
Symbol 94 MovieClip Frame 1
function shiftSpace() {
_x = x;
_y = (y - (z / 2));
}
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
stop();
Symbol 122 MovieClip Frame 3
stop();
Symbol 122 MovieClip Frame 4
stop();
Symbol 141 MovieClip Frame 21
gotoAndPlay ("slow");
Symbol 141 MovieClip Frame 34
gotoAndPlay ("fast");
Symbol 141 MovieClip Frame 40
stop();
Symbol 141 MovieClip Frame 46
stop();
Symbol 141 MovieClip Frame 47
_parent.Vz = 0;
Symbol 141 MovieClip Frame 52
if (_parent.grinding) {
stop();
}
Symbol 141 MovieClip Frame 60
if (Key.isDown(70)) {
gotoAndPlay ("slow");
} else {
stop();
}
Symbol 141 MovieClip Frame 61
hold = true;
Instance of Symbol 22 MovieClip [blank] in Symbol 141 MovieClip Frame 61
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
_parent.hold = false;
_parent.play();
}
}
Symbol 141 MovieClip Frame 69
if (hold) {
stop();
}
Symbol 141 MovieClip Frame 77
_parent.tricking = false;
stop();
Symbol 141 MovieClip Frame 94
_parent.tricking = false;
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
_visible = true;
with (_parent) {
body._visible = false;
onFace = true;
}
Symbol 143 MovieClip Frame 10
with (_parent) {
slam2.setVolume(30);
slam2.start(0, 1);
}
Instance of Symbol 22 MovieClip [blank] in Symbol 143 MovieClip Frame 10
onClipEvent (enterFrame) {
_parent._parent.Vx = _parent._parent.Vx * 0.9;
}
Symbol 143 MovieClip Frame 40
_visible = false;
with (_parent) {
body._visible = true;
tricking = false;
onFace = false;
}
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
if (_parent.onFace) {
gotoAndStop (1);
}
if (((Math.abs(_parent.Vx) + Math.abs(_parent.Vy)) < 5) && (_parent.angle == 0)) {
_parent.y = _parent.y + 10;
_parent.z = _parent.z - (cellSize / 2);
gotoAndStop (1);
} else if (!_parent.onFace) {
_parent.setPoints(40);
with (_parent) {
grind.stop("grind.wav");
grind.setVolume(50);
grind.start(0, 1);
}
}
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 2
with (_parent) {
if (grinding) {
clank.start(0, 1);
currentRotations = 0;
if (currentTrick == "") {
currentTrick = "GRIND";
} else {
currentTrick = currentTrick + " + GRIND";
}
} else {
thud.start(0, 1);
if (currentTrick != "") {
_parent._parent.displayText(currentTrick, currentPoints);
currentTrick = "";
currentPoints = 0;
currentRotations = 0;
}
}
}
Symbol 159 MovieClip Frame 1
thud = new Sound();
thud.attachSound("thud.wav");
slam1 = new Sound();
slam1.attachSound("slam1.wav");
slam2 = new Sound();
slam2.attachSound("slam2.wav");
clank = new Sound();
clank.attachSound("clank.wav");
grind = new Sound();
grind.attachSound("grind.wav");
function plane0(y0) {
ground = -y0;
angle = 0;
Vy = Vy + Ay;
y = y + Vy;
if (ground < y) {
if (!onGround) {
checkLanding(0);
}
setOnGround();
prevAngle = 0;
Vy = 0;
_rotation = 0;
} else {
onGround = false;
}
z = z + Vz;
x = x + Vx;
updateShadow(0);
}
function plane1(x0) {
ground = (x0 - x) / 2;
if ((angle != -27) && (ground < y)) {
checkLanding(-27);
setOnGround();
angle = (prevAngle = -27);
Vplane = (Vy * sin27) - (Vx * cos27);
Aplane = Ay * sin27;
_rotation = -27;
}
if (angle == -27) {
Vplane = Vplane + Aplane;
Vx = (-Vplane) * cos27;
Vy = Vplane * sin27;
} else {
onGround = false;
Vy = Vy + Ay;
}
z = z + Vz;
x = x + Vx;
y = y + Vy;
updateShadow(-27);
}
function plane2(x0) {
ground = (x - x0) / 2;
if ((angle != 27) && (ground < y)) {
checkLanding(27);
setOnGround();
angle = (prevAngle = 27);
Vplane = (Vy * sin27) + (Vx * cos27);
Aplane = Ay * sin27;
_rotation = 27;
}
if (angle == 27) {
Vplane = Vplane + Aplane;
Vx = Vplane * cos27;
Vy = Vplane * sin27;
} else {
onGround = false;
Vy = Vy + Ay;
}
z = z + Vz;
x = x + Vx;
y = y + Vy;
updateShadow(27);
}
function plane3(x0) {
ground = (x0 - x) / 4;
if ((angle != -14) && (ground < y)) {
checkLanding(-14);
setOnGround();
angle = (prevAngle = -14);
Vplane = (Vy * sin14) - (Vx * cos14);
Aplane = Ay * sin14;
_rotation = -14;
}
if (angle == -14) {
Vplane = Vplane + Aplane;
Vx = (-Vplane) * cos14;
Vy = Vplane * sin14;
} else {
onGround = false;
Vy = Vy + Ay;
}
z = z + Vz;
x = x + Vx;
y = y + Vy;
updateShadow(-14);
}
function plane4(x0) {
ground = (x - x0) / 4;
if ((angle != 14) && (ground < y)) {
checkLanding(14);
setOnGround();
angle = (prevAngle = 14);
Vplane = (Vy * sin14) + (Vx * cos14);
Aplane = Ay * sin14;
_rotation = 14;
}
if (angle == 14) {
Vplane = Vplane + Aplane;
Vx = Vplane * cos14;
Vy = Vplane * sin14;
} else {
onGround = false;
Vy = Vy + Ay;
}
z = z + Vz;
x = x + Vx;
y = y + Vy;
updateShadow(14);
}
function plane101() {
if (0 < Vx) {
currentTrack++;
if (3 < currentTrack) {
currentTrack = 1;
}
this["setMap" + currentTrack]();
x = cellSize + Vx;
updateShadow(0);
} else {
plane0(0);
}
}
function plane99() {
if (Vx < 0) {
currentTrack--;
if (currentTrack < 1) {
currentTrack = 3;
}
this["setMap" + currentTrack]();
x = ((currentTrack + 30) * cellSize) + Vx;
updateShadow(0);
} else {
plane0(0);
}
}
function object14() {
var rail = (((2.5 * cellSize) - x) / 4);
if ((rail >= y) && ((3.25 * cellSize) < z)) {
plane3(2 * cellSize);
_parent.dropShadow._visible = false;
if (onGround && (5 < Vx)) {
z = zmax;
grinding = true;
sparks.play();
} else {
grind.stop("grind.wav");
}
return(1);
}
}
function object18() {
if (((3.25 * cellSize) < z) && (y < -100)) {
z = zmax;
plane0(105);
_parent.dropShadow._visible = false;
if (onGround) {
grinding = true;
sparks.play();
} else {
grind.stop("grind.wav");
}
return(1);
}
}
function object111() {
var rail = ((x - (16.5 * cellSize)) / 4);
if ((rail >= y) && ((3.25 * cellSize) < z)) {
plane4(17 * cellSize);
_parent.dropShadow._visible = false;
if (onGround) {
z = zmax;
grinding = true;
sparks.play();
} else {
grind.stop("grind.wav");
}
return(1);
}
}
function object123() {
if (-15 < y) {
if (z < (2 * cellSize)) {
zmax = 1.9 * cellSize;
} else if (z >= (2 * cellSize)) {
zmin = 2.1 * cellSize;
}
} else if (((1.8 * cellSize) < z) && (z < (2.2 * cellSize))) {
z = 2 * cellSize;
plane0(17);
_parent.dropShadow._visible = false;
if (onGround) {
grinding = true;
sparks.play();
} else {
grind.stop("grind.wav");
}
return(1);
}
}
function object25() {
if ((3 * cellSize) < z) {
plane1(5 * cellSize);
return(1);
}
zmax = 2.9 * cellSize;
}
function object28() {
if (((3.25 * cellSize) < z) && (y < -40)) {
z = zmax;
plane0(45);
_parent.dropShadow._visible = false;
if (onGround) {
grinding = true;
sparks.play();
}
return(1);
}
}
function object210() {
if (((3.25 * cellSize) < z) && (y < -40)) {
z = zmax;
plane0(45);
_parent.dropShadow._visible = false;
if (onGround) {
grinding = true;
sparks.play();
} else {
grind.stop("grind.wav");
}
return(1);
}
if (z < (2 * cellSize)) {
plane1(10 * cellSize);
return(1);
}
zmin = 2.1 * cellSize;
}
function object211() {
var rail = ((x - (11.75 * cellSize)) / 2);
if ((rail >= y) && (z == zmax)) {
plane2(12.35 * cellSize);
_parent.dropShadow._visible = false;
if (onGround) {
grinding = true;
sparks.play();
} else {
grind.stop("grind.wav");
}
return(1);
}
}
function object221() {
if ((cellSize < z) && (z < (2 * cellSize))) {
plane1(21 * cellSize);
return(1);
}
if (z < cellSize) {
zmax = 0.9 * cellSize;
} else if ((2 * cellSize) < z) {
zmin = 2.1 * cellSize;
}
}
function object225() {
if ((2 * cellSize) < z) {
zmin = 2.1 * cellSize;
} else if (z < cellSize) {
zmax = 0.9 * cellSize;
} else {
plane1(25 * cellSize);
return(1);
}
}
function object226() {
if ((2 * cellSize) < z) {
zmin = 2.1 * cellSize;
} else if (z < cellSize) {
zmax = 0.9 * cellSize;
} else {
plane0(cellSize / 2);
return(1);
}
}
function object227() {
if ((2 * cellSize) < z) {
zmin = 2.1 * cellSize;
} else if (z < cellSize) {
zmax = 0.9 * cellSize;
} else {
if (((1.5 * cellSize) < z) && (y < -53)) {
plane0(57);
_parent.dropShadow._visible = false;
if (onGround) {
z = 2 * cellSize;
grinding = true;
sparks.play();
} else {
grind.stop("grind.wav");
}
} else {
zmax = 1.9 * cellSize;
plane0(cellSize / 2);
}
return(1);
}
}
function object229() {
if (y < -53) {
if ((z < (2.5 * cellSize)) && ((1.5 * cellSize) < z)) {
plane0(57);
_parent.dropShadow._visible = false;
if (onGround) {
z = 2 * cellSize;
grinding = true;
sparks.play();
} else {
grind.stop("grind.wav");
}
return(1);
}
} else if (z < (2 * cellSize)) {
zmax = 1.9 * cellSize;
} else {
zmin = 2.1 * cellSize;
}
}
function object323() {
if ((-cellSize) < y) {
if (z < (3 * cellSize)) {
zmax = 2.9 * cellSize;
} else {
x = 23 * cellSize;
Vx = Vx * -0.6;
_parent.track.hotdogstand.gotoAndStop(2);
hotdogstand1 = 3;
}
} else if (z >= (3 * cellSize)) {
plane0(cellSize);
if (onGround) {
_parent.track.hotdogstand.gotoAndStop(2);
hotdogstand1 = 3;
}
return(1);
}
}
function object325() {
if ((-cellSize) < y) {
if ((2 * cellSize) < z) {
zmin = 2.1 * cellSize;
} else if (z < cellSize) {
zmax = 0.9 * cellSize;
} else {
x = 25 * cellSize;
Vx = Vx * -0.6;
_parent.depth6.hotdogstand.gotoAndStop(2);
hotdogstand2 = 3;
}
} else if (((2 * cellSize) >= z) && (z >= cellSize)) {
plane0(cellSize);
if (onGround) {
_parent.depth6.hotdogstand.gotoAndStop(2);
hotdogstand2 = 3;
}
return(1);
}
}
function object220() {
if (-20 < y) {
if (z < (3 * cellSize)) {
zmax = 2.9 * cellSize;
} else {
x = 20 * cellSize;
Vx = Vx * -0.6;
_parent.track.mailbox.gotoAndStop(2);
mailbox = 3;
}
} else if (z >= (3 * cellSize)) {
_parent.dropShadow._visible = false;
plane0(20);
if (onGround) {
_parent.track.mailbox.gotoAndStop(2);
mailbox = 3;
}
return(1);
}
}
function object223() {
if (onGround) {
_parent.track.splash._y = _y + 35;
_parent.track.splash.play();
}
}
object15 = (object16 = (object17 = object14));
object19 = (object110 = object18);
object112 = (object113 = (object114 = (object115 = object111)));
object124 = (object125 = (object126 = (object127 = object123)));
object29 = object28;
object212 = object211;
object228 = object227;
object324 = object323;
object326 = object325;
function crouch() {
if (((body._currentframe < 35) || (40 < body._currentframe)) && (onGround)) {
body.gotoAndPlay("crouch");
}
}
function jump() {
if (onFace || (!game)) {
return(undefined);
}
if (onGround) {
y = y - Py;
angle = 0;
onGround = false;
Vy = Vy - Py;
body.gotoAndPlay("jump");
}
}
function pedal() {
if (((onFace || (grinding)) || (manualing)) || (tricking)) {
pedalClip.removeMovieClip();
return(undefined);
}
if (pedalClip._name == undefined) {
this.attachMovie("pedal", "pedalClip", 1);
if (body._currentframe < 35) {
body.play();
} else {
body.gotoAndPlay("slow");
}
}
}
function unPedal() {
if (!tricking) {
body.stop();
}
pedalClip.removeMovieClip();
}
function brake() {
if (((onFace || (grinding)) || (manualing)) || (tricking)) {
return(undefined);
}
body.stop();
this.attachMovie("brake", "brakeClip", 1);
}
function unBrake() {
brakeClip.removeMovieClip();
}
function turnUp() {
if (((onFace || (grinding)) || (manualing)) || (tricking)) {
return(undefined);
}
if (turnClip._name == undefined) {
Az = 2;
this.attachMovie("turn", "turnClip", 2);
}
}
function unTurn() {
turnClip.removeMovieClip();
if (onGround) {
Vz = 0;
}
}
function turnDown() {
if (turnClip._name == undefined) {
Az = -2;
this.attachMovie("turn", "turnClip", 2);
}
}
function rotateCW() {
Vw = 0.7 * Vx;
this.attachMovie("rotate", "rotateClip", 3);
}
function unRotate() {
rotateClip.removeMovieClip();
}
function rotateCCW() {
Vw = -0.7 * Vx;
this.attachMovie("rotate", "rotateClip", 3);
}
keyDown70 = pedal;
keyUp70 = unPedal;
keyDown65 = brake;
keyUp65 = unBrake;
keyDown32 = crouch;
keyUp32 = jump;
keyDown38 = turnUp;
keyUp38 = unTurn;
keyDown40 = turnDown;
keyUp40 = unTurn;
keyDown37 = rotateCCW;
keyUp37 = unRotate;
keyDown39 = rotateCW;
keyUp39 = unRotate;
function shiftSpace() {
var z1;
z1 = Math.max(zmin, z);
z1 = Math.min(zmax, z1);
if (z != z1) {
Vz = 0;
z = z1;
}
_x = x;
_y = ((y - yOffset) - (z / 2));
nextDepth = 11 - (3 * Math.floor(z / cellSize));
if (nextDepth != currentDepth) {
currentDepth = nextDepth;
this.swapDepths(nextDepth);
_parent.dropShadow.swapDepths(nextDepth - 1);
}
}
function setOnGround() {
onGround = true;
y = ground;
}
function checkLanding(incline) {
if (onGround) {
return(undefined);
}
var amp = Math.min((Vy * Vy) / 5, 90);
var dw = (_rotation - incline);
if (((50 < dw) || (dw < -70)) || (tricking)) {
body.gotoAndStop("slow");
fall.play();
if (onFace) {
slam2.setVolume(30);
slam2.start(0, 1);
} else {
slam1.setVolume(0.8 * amp);
slam1.start(0, 1);
onFace = true;
}
currentTrick = "";
currentPoints = 0;
currentRotations = 0;
} else {
thud.setVolume(amp);
checkInvert(currentRotations);
checkSmoove(incline);
checkGrind.gotoAndPlay(2);
body.gotoAndPlay("land");
}
}
function checkInvert(w) {
if (180 < Math.abs(w)) {
if (currentTrick == "") {
currentTrick = "INVERT";
} else {
currentTrick = currentTrick + " + INVERT";
}
setPoints(150);
}
}
function checkSmoove(incline) {
if ((0 < incline) && (prevAngle < 0)) {
if (Math.abs(_rotation - incline) < 20) {
if (currentTrick == "") {
currentTrick = "SMOOTH LANDING";
} else {
currentTrick = currentTrick + " + SMOOTH LANDING";
}
setPoints(50);
}
}
}
function zReset(z0, z1) {
zmin = z0;
zmax = z1;
}
function updateShadow(angle) {
var dropShadow = _parent.dropShadow;
dropShadow._rotation = angle;
dropShadow.x = x;
dropShadow.z = z;
dropShadow.y = ground;
dropShadow._xscale = (dropShadow._yscale = -100 / (((y - ground) / 200) - 1));
}
function setPoints(points) {
if (0 < currentPoints) {
currentPoints = (currentPoints + points) * 2;
} else {
currentPoints = currentPoints + points;
}
}
function checkTricks() {
if (onGround || (tricking)) {
return(undefined);
}
if (Key.isDown(83)) {
superman();
} else if (Key.isDown(68)) {
tailwhip();
}
}
function superman() {
tricking = true;
body.gotoAndPlay("superman");
if (currentTrick == "") {
currentTrick = "SUPERMAN";
} else {
currentTrick = currentTrick + " + SUPERMAN";
}
setPoints(100);
}
function tailwhip() {
tricking = true;
body.gotoAndPlay("tailwhip");
if (currentTrick == "") {
currentTrick = "TAILWHIP";
} else {
currentTrick = currentTrick + " + TAILWHIP";
}
setPoints(80);
}
function setMap1() {
planes = new Array();
planes[1] = 99;
planes[4] = (planes[5] = (planes[6] = (planes[7] = 3)));
planes[11] = (planes[12] = (planes[13] = (planes[14] = 4)));
planes[17] = 1;
planes[20] = 2;
planes[30] = 101;
intercepts = new Array();
i = 4;
while (i < 8) {
intercepts[i] = 4 * cellSize;
i++;
}
intercepts[8] = (intercepts[9] = (intercepts[10] = cellSize));
i = 11;
while (i < 15) {
intercepts[i] = 15 * cellSize;
i++;
}
intercepts[17] = 17 * cellSize;
intercepts[18] = (intercepts[19] = cellSize / 2);
intercepts[20] = 21 * cellSize;
with (_parent) {
gotoAndStop(2);
track.gotoAndStop(1);
depth6.gotoAndStop(1);
}
}
function setMap2() {
planes = new Array();
intercepts = new Array();
planes[1] = 99;
planes[11] = (planes[12] = 2);
intercepts[11] = (intercepts[12] = 11 * cellSize);
intercepts[13] = (intercepts[14] = -70);
planes[15] = (planes[16] = 1);
intercepts[15] = (intercepts[16] = 17 * cellSize);
planes[22] = 2;
intercepts[22] = 22 * cellSize;
intercepts[23] = -35;
planes[24] = 1;
intercepts[24] = 25 * cellSize;
planes[30] = 101;
with (_parent) {
gotoAndStop(3);
track.gotoAndStop(2);
depth6.gotoAndStop(2);
track.mailbox.gotoAndStop(mailbox);
}
}
function setMap3() {
planes = new Array();
planes[1] = 99;
planes[9] = 1;
planes[10] = 1;
planes[15] = 2;
planes[16] = 2;
planes[21] = 1;
planes[28] = 2;
planes[32] = 101;
intercepts = new Array();
intercepts[9] = (intercepts[10] = 9 * cellSize);
i = 11;
while (i < 15) {
intercepts[i] = cellSize;
i++;
}
intercepts[15] = (intercepts[16] = 17 * cellSize);
intercepts[21] = 21 * cellSize;
i = 22;
while (i < 28) {
intercepts[i] = cellSize / 2;
i++;
}
intercepts[28] = 29 * cellSize;
with (_parent) {
gotoAndStop(4);
track.gotoAndStop(3);
depth6.gotoAndStop(3);
track.hotdogstand.gotoAndStop(hotdogstand1);
depth6.hotdogstand.gotoAndStop(hotdogstand2);
}
}
Instance of Symbol 141 MovieClip "body" in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 143 MovieClip "fall" in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 159 MovieClip Frame 6
setMap1();
stop();
Symbol 160 MovieClip Frame 1
stop();
Instance of Symbol 159 MovieClip "rider" in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
x = 630;
y = -300;
z = 140;
Vx = (Vy = (Vz = 0));
Ax = 3;
Ay = 1;
zmin = 35;
zmax = 245;
Py = 7;
Vxmax = 20;
Vzmax = 15;
ground = -70;
onGround = true;
onFace = false;
tricking = false;
grinding = false;
manualing = false;
angle = 0;
brakeForce = 0.6;
cos0 = 1;
sin0 = 0;
cos14 = 0.97;
sin14 = 0.242;
cos27 = 0.895;
sin27 = 0.446;
cos45 = 0.707;
sin45 = 0.707;
cellSize = 70;
yOffset = 35;
currentTrack = 1;
currentDepth = 0;
currentTrick = "";
currentPoints = 0;
currentRotations = 0;
currentObstacle = 0;
game = true;
}
onClipEvent (keyDown) {
if (game) {
eval ("keyDown" + Key.getCode())();
checkTricks();
}
}
onClipEvent (keyUp) {
eval ("keyUp" + Key.getCode())();
}
onClipEvent (enterFrame) {
_parent.dropShadow._visible = true;
index = Math.floor(x / cellSize);
if (this[("object" + currentTrack) + index]() != 1) {
incline = Math.max(0, planes[index]);
intercept = intercepts[index];
this["plane" + incline](intercept);
grinding = false;
grind.stop("grind.wav");
currentObstacle = 0;
}
shiftSpace();
_parent.dropShadow.shiftSpace();
zReset(35, 245);
}
Symbol 164 MovieClip Frame 1
label = "";
points = "";
stop();
Symbol 164 MovieClip Frame 2
with (_parent) {
score = Math.max(score + points, 0);
powerMeter.gotoAndStop(ollieLevelOf(powerMeter._currentFrame, score - scoreMarker));
}
cameraSound.setVolume(50);
cameraSound.start(0, 1);
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 2
t0 = getTimer();
Symbol 170 MovieClip Frame 6
t1 = getTimer();
time = totalTime - Math.floor((t1 - t0) / 1000);
if (0 >= time) {
_parent.gotoAndPlay("gameOver");
stop();
} else {
gotoAndPlay ("loop");
}
Symbol 174 Button
on (release) {
commPost.level = 0;
commPost.score = score;
commPost.username = txt_username;
play();
}
Symbol 178 Button
on (release) {
gotoAndPlay ("title");
}