Frame 1
function showScores() {
highScores0 = highScores[0];
highScores1 = highScores[1];
highScores2 = highScores[2];
highScores3 = highScores[3];
highScores4 = highScores[4];
highScores5 = highScores[5];
highScores6 = highScores[6];
highScores7 = highScores[7];
highScores8 = highScores[8];
highScores9 = highScores[9];
highScores10 = highScores[10];
highScores11 = highScores[11];
highScores12 = highScores[12];
highScores13 = highScores[13];
highScores14 = highScores[14];
highScores15 = highScores[15];
highScores16 = highScores[16];
highScores17 = highScores[17];
highScores18 = highScores[18];
highScores19 = highScores[19];
highScores20 = highScores[20];
highScores21 = highScores[21];
highScores22 = highScores[22];
highScores23 = highScores[23];
highScores24 = highScores[24];
}
function SetupAcc() {
maxSpeed = 85 + (topSpeed * 5);
accSpeed[0] = 0;
accSpeed[1] = 0.072 * maxSpeed;
accSpeed[2] = 0.16 * maxSpeed;
accSpeed[3] = 0.28 * maxSpeed;
accSpeed[4] = 0.44 * maxSpeed;
accSpeed[5] = 0.64 * maxSpeed;
accSpeed[6] = maxSpeed;
maxAcc = (15 + (acc * 3)) * fpsFactor;
i = 1;
while (i < 6) {
accAmount[i] = maxAcc - ((i * maxAcc) / 8);
i++;
}
accAmount[0] = maxAcc / 50;
accAmount[6] = maxAcc / 8;
}
function RoadObject(ix, iy, iz, iw, ih, id, iAxis) {
this.bx = ix;
this.by = iy;
this.bw = iw;
this.bh = ih;
this.d = id;
this.z = iz;
this.x = ix / iz;
this.y = iy / iz;
this.w = iw / iz;
this.h = ih / iz;
this.axis = iAxis;
}
function project() {
var iz = (1 / this.z);
var jz = 0;
this.x = this.bx * iz;
this.y = this.by * iz;
if (this.axis != 0) {
jz = 1 / (this.z + this.d);
if (this.axis != "y") {
this.w = Math.abs(this.x - (this.bx * jz));
this.h = this.bh * iz;
} else {
this.h = this.y - (this.by * jz);
this.w = this.bw * iz;
}
} else {
this.w = this.bw * iz;
this.h = this.bh * iz;
}
this.x = this.x + Xoffset;
this.y = this.y + Yoffset;
}
function moveRoad() {
speedIncrement = speed * fpsFactor;
i = 0;
while (i < numDashes) {
Dashes[i].z = Dashes[i].z - speedIncrement;
if (Dashes[i].z < 5) {
Dashes[i].z = Dashes[i].z + back;
}
Dashes[i].project();
setProperty("_root.leftDashClip" + i, _x , Dashes[i].x);
setProperty("_root.leftDashClip" + i, _y , Dashes[i].y);
setProperty("_root.leftDashClip" + i, _width , Dashes[i].w);
setProperty("_root.leftDashClip" + i, _height , Dashes[i].h);
setProperty("_root.rightDashClip" + i, _x , (Xoffset - Dashes[i].x) + Xoffset);
setProperty("_root.rightDashClip" + i, _y , Dashes[i].y);
setProperty("_root.rightDashClip" + i, _width , Dashes[i].w);
setProperty("_root.rightDashClip" + i, _height , Dashes[i].h);
i++;
}
i = 0;
while (i < numWindows) {
Windows[i].z = Windows[i].z - speedIncrement;
if (Windows[i].z < 8) {
Windows[i].z = Windows[i].z + (back + Math.random(10));
}
Windows[i].project();
setProperty("_root.windowClip" + i, _x , Windows[i].x);
setProperty("_root.windowClip" + i, _y , Windows[i].y);
setProperty("_root.windowClip" + i, _width , Windows[i].w);
setProperty("_root.windowClip" + i, _height , Windows[i].h);
i++;
}
finishLine.z = finishLine.z - speedIncrement;
if (finishLine.z < 10) {
finishLine.z = 10;
finishLine.project();
setProperty("_root.FinishLine", _x , finishLine.x);
setProperty("_root.FinishLine", _y , finishLine.y);
setProperty("_root.FinishLine", _width , finishLine.w);
setProperty("_root.FinishLine", _height , finishLine.h);
gotoAndPlay (130);
}
finishLine.project();
setProperty("_root.FinishLine", _x , finishLine.x);
setProperty("_root.FinishLine", _y , finishLine.y);
setProperty("_root.FinishLine", _width , finishLine.w);
setProperty("_root.FinishLine", _height , finishLine.h);
}
function moveCarBack() {
speedIncrement = speed * fpsFactor;
carBack.z = carBack.z - ((speedIncrement - carSpeed) - (10 * fpsFactor));
if (carBack.z < 7) {
carBack.bx = 400;
if (finishLine.z < 300) {
carBack.z = 10000;
} else {
carBack.z = (70 + (10 * (elapsedTime % 5))) - (10 * difficulty);
}
setProperty("_root.CarBack" + carBackID, _visible , false);
carBackID = elapsedTime % (carBackMax + 1);
if (carBackID == carBack2ID) {
if (carBackID == 0) {
carBackID = 1;
} else {
carBackID--;
}
}
setProperty("_root.CarBack" + carBackID, _visible , true);
}
if (carBack.z < 13) {
if (Math.abs((carBack.bx / 11.75) - carX) < 50) {
crashedCar = 1;
carBack.z = 13;
gotoAndPlay (54);
}
}
carBack.project();
setProperty("_root.CarBack" + carBackID, _x , carBack.x);
setProperty("_root.CarBack" + carBackID, _y , carBack.y);
setProperty("_root.CarBack" + carBackID, _width , carBack.w);
setProperty("_root.CarBack" + carBackID, _height , carBack.h);
}
function moveCarBack2() {
speedIncrement = speed * fpsFactor;
carBack2.z = carBack2.z - (speedIncrement - carSpeed);
if (carBack2.z < 7) {
carBack2.bx = 1100;
if (finishLine.z < 200) {
carBack2.z = 10000;
} else {
carBack2.z = (75 + (7 * (elapsedTime % 5))) - (10 * difficulty);
}
setProperty("_root.CarBack" + carBack2ID, _visible , false);
carBack2ID = elapsedTime % (carBackMax + 1);
if (carBackID == carBack2ID) {
if (carBack2ID == 0) {
carBack2ID = 1;
} else {
carBack2ID--;
}
}
setProperty("_root.CarBack" + carBack2ID, _visible , true);
}
if (carBack2.z < 13) {
if (Math.abs((carBack2.bx / 11.75) - carX) < 50) {
crashedCar = 2;
carBack2.z = 13;
gotoAndPlay (54);
}
}
carBack2.project();
setProperty("_root.CarBack" + carBack2ID, _x , carBack2.x);
setProperty("_root.CarBack" + carBack2ID, _y , carBack2.y);
setProperty("_root.CarBack" + carBack2ID, _width , carBack2.w);
setProperty("_root.CarBack" + carBack2ID, _height , carBack2.h);
}
function moveCarFront() {
speedIncrement = speed * fpsFactor;
carFront.z = carFront.z - ((speedIncrement + carSpeed) + ((carSpeed / 2) * difficulty));
if (carFront.z < 13) {
if (Math.abs((carFront.bx / 11.75) - carX) < 50) {
crashedCar = 3;
carFront.z = 13;
gotoAndPlay (54);
}
}
if (carFront.z < 7) {
carFront.bx = -400 - (700 * (elapsedTime % 2));
if (finishLine.z < 100) {
carFront.z = 10000;
} else {
carFront.z = (100 + (5 * (elapsedTime % 5))) - (15 * difficulty);
}
setProperty("_root.CarFront" + carFrontID, _visible , false);
carFrontID = elapsedTime % (carFrontMax + 1);
setProperty("_root.CarFront" + carFrontID, _visible , true);
}
carFront.project();
setProperty("_root.CarFront" + carFrontID, _x , carFront.x);
setProperty("_root.CarFront" + carFrontID, _y , carFront.y);
setProperty("_root.CarFront" + carFrontID, _width , carFront.w);
setProperty("_root.CarFront" + carFrontID, _height , carFront.h);
}
function moveCar() {
car.project();
setProperty("_root.car" + carID, _x , car.x);
setProperty("_root.car" + carID, _y , car.y);
setProperty("_root.car" + carID, _rotation , 0);
setProperty("_root.car" + carID, _width , car.w);
setProperty("_root.car" + carID, _height , car.h);
setProperty("_root.wheels", _x , car.x);
setProperty("_root.wheels", _y , car.y);
setProperty("_root.wheels", _width , car.w);
setProperty("_root.wheels", _height , car.h / 2);
carX = car.x - Xoffset;
}
function moveSideWalk() {
speedIncrement = speed * fpsFactor;
sideWalk.z = sideWalk.z - speedIncrement;
if (sideWalk.z < 7) {
sideWalk.z = 50 + (9 * (elapsedTime % 3));
setProperty("_root.sideWalk" + sideWalkID, _visible , false);
sideWalkID = (elapsedTime % sideWalkMax) + 1;
setProperty("_root.sideWalk" + sideWalkID, _visible , true);
}
sideWalk.project();
setProperty("_root.sideWalk" + sideWalkID, _x , sideWalk.x);
setProperty("_root.sideWalk" + sideWalkID, _y , sideWalk.y);
setProperty("_root.sideWalk" + sideWalkID, _width , sideWalk.w);
setProperty("_root.sideWalk" + sideWalkID, _height , sideWalk.h);
sideWalk2.z = sideWalk2.z - speedIncrement;
if (sideWalk2.z < 7) {
sideWalk2.z = 50 + (9.5 * (elapsedTime % 4));
setProperty("_root.sideWalkRight" + sideWalk2ID, _visible , false);
sideWalk2ID = (elapsedTime % sideWalkMax) + 1;
setProperty("_root.sideWalkRight" + sideWalk2ID, _visible , true);
sideWalk2.bw = 800;
sideWalk2.bh = 700;
}
sideWalk2.project();
setProperty("_root.sideWalkRight" + sideWalk2ID, _x , sideWalk2.x);
setProperty("_root.sideWalkRight" + sideWalk2ID, _y , sideWalk2.y);
setProperty("_root.sideWalkRight" + sideWalk2ID, _width , sideWalk2.w);
setProperty("_root.sideWalkRight" + sideWalk2ID, _height , sideWalk2.h);
}
function moveCars() {
moveCarBack();
moveCarBack2();
moveCarFront();
}
function updateDials() {
_root.RPMdial._rotation = (RPM * 2.7) - 135;
_root.MPHdial._rotation = (speed * 2.7) - 129;
}
function updateTime() {
elapsedTime++;
distance = distance + (speedIncrement * 2);
timeSeconds = int(elapsedTime * fpsFactor);
timeTenths = int(elapsedTime / (fps / 10)) % 10;
speedInt = int(Math.abs((carFront.bx / 11.75) - carX));
distanceFeet = int(distance);
}
var Xoffset = 180;
var Yoffset = 117;
var speed = 0;
var speedIncrement = 0;
var RPM = 0;
var maxRPM = 100;
var overheating = 0;
var back = 40;
var dashedLineDepth = 6.5;
var windowDepth = 1;
var numDashes = 4;
var numWindows = 4;
var carX = 0;
var carDrift = 0;
var driftMax = 50;
var driftChange = 2;
var elapsedTime = 0;
var timeSeconds = 0;
var timeTenths = 0;
var distance = 0;
var distanceFeet = 0;
var raceDistance = 2640;
var fps = 20;
var fpsFactor = (1 / fps);
var acc = 3;
var handling = 3;
var topSpeed = 3;
var accInc = ((acc * 10) * fpsFactor);
var accAmount = new Array();
var accSpeed = new Array();
var gear = 1;
var carID = 0;
var computerSpeed = 1;
var difficulty = 0;
var carSpeed = (20 * fpsFactor);
var crashedCar = 0;
var carBackID = 3;
var carBack2ID = 2;
var carBackMax = 4;
var carFrontID = 2;
var carFrontMax = 3;
var sideWalkID = 1;
var sideWalk2ID = 5;
var sideWalkMax = 3;
var oldX;
var engineSound1 = new Sound();
engineSound1.attachSound("engine2");
var yourScore;
var highScores = new Array();
highScores[0] = "21.2 - Rob";
highScores[1] = "21.7 - Todd";
highScores[2] = "22.5 - Rich";
highScores[3] = "24.1 - Jerry T.";
highScores[4] = "27.3 - Larry";
highScores[5] = "28.2 - Billy";
highScores[6] = "30.7 - Sarah";
highScores[7] = "31.5 - Mike Lee";
highScores[8] = "33.1 - Sally";
highScores[9] = "34.3 - Martin";
highScores[10] = "35.2 - Rob";
highScores[11] = "36.7 - Todd";
highScores[12] = "37.5 - Rich";
highScores[13] = "38.1 - Sissy Boy";
highScores[14] = "38.3 - Larry";
highScores[15] = "39.2 - Billy";
highScores[16] = "39.7 - Sarah";
highScores[17] = "40.5 - Mike";
highScores[18] = "42.1 - Sally";
highScores[19] = "42.3 - Martin ";
highScores[20] = "45.2 - Rob";
highScores[21] = "46.7 - Todd";
highScores[22] = "47.5 - Rich";
highScores[23] = "48.1 - Jerry";
highScores[24] = "48.3 - Larry";
RoadObject.prototype.project = project;
var Dashes = new Array();
i = 0;
while (i < numDashes) {
Dashes[i] = new RoadObject(-667, 800, back - (10 * i), 350, 300, dashedLineDepth, 0);
i++;
}
var Windows = new Array();
i = 0;
while (i < numWindows) {
Windows[i] = new RoadObject(-1500, -590, (back - Math.random(30)) - (i * 10), 150, 400, windowDepth, 0);
i++;
}
Windows[1].bx = 1500;
Windows[2].by = 0;
Windows[3].bx = 1500;
Windows[3].by = 0;
car = new RoadObject(0, 800, 10.5, 500, 350, 0, 0);
carFront = new RoadObject(-1100, 800, 150, 500, 300, 0, 0);
carBack = new RoadObject(400, 800, 50, 500, 300, 0, 0);
carBack2 = new RoadObject(1100, 800, 100, 500, 300, 0, 0);
sideWalk = new RoadObject(-1500, 750, 53, 800, 700, 0, 0);
sideWalk2 = new RoadObject(1500, 750, 15, 700, 700, 0, 0);
finishLine = new RoadObject(0, 800, raceDistance / 2, 2800, 100, 2, 0);
Frame 2
_quality = "HIGH";
engineSound1.stop();
Mouse.show();
car.bx = 0;
car.z = 10.5;
carFront.z = 150;
carBack.z = 50;
carBack2.z = 100;
finishLine.z = raceDistance / 2;
gear = 1;
speed = 0;
RPM = 0;
elapsedTime = 0;
distance = 0;
if (carID == 0) {
_root.selectionBox._x = 104;
} else if (carID == 1) {
_root.selectionBox._x = 174;
} else if (carID == 2) {
_root.selectionBox._x = 244;
} else if (carID == 3) {
_root.selectionBox._x = 314;
}
Frame 3
stop();
Frame 10
function moveComputerSpeed(compSpeed) {
_root.computerSpeedSelection._y = 107 + (40 * compSpeed);
}
function moveDifficulty(diff) {
_root.difficultySelection._y = 108 + (36 * diff);
}
moveComputerSpeed(computerSpeed);
moveDifficulty(difficulty);
Frame 11
stop();
Frame 21
_quality = "HIGH";
yourTime = (String(timeSeconds) + ".") + String(timeTenths);
stop();
Frame 22
yourScore = (yourTime + " - ") + yourName;
if (timeSeconds < 100) {
highScores.push(yourScore);
highScores.sort();
}
Frame 25
showScores();
if (yourScore < highScores[24]) {
message = "Awesome!";
} else {
message = "Keep Trying!";
}
stop();
Frame 36
stop();
Frame 46
fpsFactor = 1 / fps;
if (Key.isDown(123)) {
gotoAndPlay (2);
}
if (Key.isDown(Key.UP)) {
if (speed >= accSpeed[gear + 1]) {
speed = speed - (2 * fpsFactor);
} else if (speed >= accSpeed[gear - 2]) {
a1 = accSpeed[gear];
a2 = accSpeed[gear + 1];
b1 = accAmount[gear];
b2 = 0;
accInc = (((speed - a1) / (a2 - a1)) * (b2 - b1)) + b1;
speed = speed + accInc;
} else if (speed >= accSpeed[gear - 1]) {
speed = speed + accAmount[gear];
} else if (speed >= accSpeed[gear - 2]) {
a1 = accSpeed[gear - 2];
a2 = accSpeed[gear - 1];
b1 = accAmount[6];
b2 = accAmount[gear];
accInc = (((speed - a1) / (a2 - a1)) * (b2 - b1)) + b1;
speed = speed + accInc;
} else if (speed >= 0) {
a1 = 0;
a2 = accSpeed[gear - 2];
b1 = accAmount[0];
b2 = accAmount[6];
accInc = (((speed - a1) / (a2 - a1)) * (b2 - b1)) + b1;
speed = speed + accInc;
}
} else {
speed = speed - (10 * fpsFactor);
if (speed < 0) {
speed = 0;
}
overheating = overheating - 5;
if (overheating < 0) {
overheating = 0;
}
}
RPM = (speed / accSpeed[gear + 1]) * 100;
if (RPM < 3) {
RPM = 5;
}
if (95 < RPM) {
overheating = overheating + (2 / gear);
} else {
overheating = overheating - 2;
if (overheating < 0) {
overheating = 0;
}
}
if (20 < overheating) {
setProperty("_root.smoke", _visible , true);
_root.ShiftMessage._visible = true;
} else {
setProperty("_root.smoke", _visible , false);
}
if (100 < overheating) {
setProperty("_root.smoke", _visible , false);
setProperty("_root.smokeDark", _visible , true);
} else {
setProperty("_root.smokeDark", _visible , false);
}
if (200 < overheating) {
overheating = 0;
setProperty("_root.smoke", _visible , false);
setProperty("_root.smokeDark", _visible , false);
setProperty("_root.ShiftMessage", _visible , false);
gotoAndPlay (54);
}
if (Key.isDown(Key.DOWN)) {
speed = speed - (accInc * handling);
if (speed < 0) {
speed = 0;
}
}
if (Key.isDown(Key.LEFT)) {
if ((-driftMax) < carDrift) {
carDrift = carDrift - ((speed * fpsFactor) * 2);
speed = speed * (1 - (0.004 * gear));
}
}
if (Key.isDown(Key.RIGHT)) {
if (carDrift < driftMax) {
carDrift = carDrift + ((speed * fpsFactor) * 2);
speed = speed * (1 - (0.004 * gear));
}
}
if ((!Key.isDown(Key.SPACE)) && (!Key.isDown(Key.CONTROL))) {
shift = false;
}
if (!Key.isDown(Key.UP)) {
if (Key.isDown(Key.SPACE)) {
_root.ShiftMessage._visible = false;
_root.ShiftMessage2._visible = false;
overheating = 0;
if (shift == false) {
shift = true;
if (gear < 5) {
gear++;
_root.GearKnob.gotoAndPlay("Shift" + gear);
}
}
} else if (Key.isDown(Key.CONTROL)) {
_root.ShiftMessage._visible = false;
_root.ShiftMessage2._visible = false;
if (shift == false) {
shift = true;
if (1 < gear) {
gear--;
_root.GearKnob.gotoAndPlay("Back" + gear);
}
}
} else {
shift = false;
}
}
car.bx = car.bx + (carDrift * 11.75);
if (1350 < car.bx) {
car.bx = 1350;
}
if (car.bx < -1350) {
car.bx = -1350;
}
carDrift = carDrift * (fps / 42);
moveRoad();
moveCar();
moveCars();
setProperty("_root.car" + carID, _rotation , -carDrift);
setProperty("_root.smoke", _x , car.x);
setProperty("_root.smokeDark", _x , car.x);
moveSideWalk();
engineSound1.setVolume(RPM);
updateDials();
updateTime();
Frame 47
gotoAndPlay (46);
Frame 54
setProperty("_root.Crash", _x , Xoffset + carX);
engineSound1.stop();
engineSound1.attachSound("crash");
engineSound1.setVolume(100);
engineSound1.start();
Frame 55
speed = speed * 0.75;
RPM = RPM * 0.75;
moveRoad();
moveSideWalk();
setProperty("_root.Crash", _x , Xoffset + carX);
if (crashedCar == 1) {
moveCarBack2();
moveCarFront();
carBack.project();
setProperty("_root.carBack" + carBackID, _x , carBack.x);
setProperty("_root.carBack" + carBackID, _y , carBack.y);
setProperty("_root.carBack" + carBackID, _width , carBack.w);
setProperty("_root.carBack" + carBackID, _height , carBack.h);
} else if (crashedCar == 2) {
moveCarBack();
moveCarFront();
carBack2.project();
setProperty("_root.carBack" + carBack2ID, _x , carBack2.x);
setProperty("_root.carBack" + carBack2ID, _y , carBack2.y);
setProperty("_root.carBack" + carBack2ID, _width , carBack2.w);
setProperty("_root.carBack" + carBack2ID, _height , carBack2.h);
} else if (crashedCar == 3) {
moveCarBack();
moveCarBack2();
carFront.project();
setProperty("_root.CarFront0", _x , carFront.x);
setProperty("_root.CarFront0", _y , carFront.y);
setProperty("_root.CarFront0", _width , carFront.w);
setProperty("_root.CarFront0", _height , carFront.h);
}
updateDials();
updateTime();
Frame 56
if (speed < 0.5) {
if (crashedCar == 1) {
carBack.bx = 400;
carBack.z = 70 + (10 * (elapsedTime % 5));
moveCarBack();
} else if (crashedCar == 2) {
carBack2.bx = 1100;
carBack2.z = 75 + (10 * (elapsedTime % 5));
moveCarBack2();
} else if (crashedCar == 3) {
carFront.bx = -400 - (700 * (elapsedTime % 2));
carFront.z = 100 + (10 * (elapsedTime % 5));
moveCarFront();
}
_root.car._alpha = 0;
_root.GearKnob.gotoAndStop("Gear1");
engineSound1.stop();
engineSound1.attachSound("engine2");
engineSound1.setVolume(RPM);
engineSound1.start(0, 100);
gotoAndPlay (59);
} else {
gotoAndPlay (55);
}
Frame 59
carX = 0;
carDrift = 0;
gear = 1;
_root.car._x = Xoffset + carX;
_root.car._alpha = _root.car._alpha + (100 / fps);
if (_root.car._alpha >= 70) {
_root.car._alpha = 100;
gotoAndPlay (46);
}
updateTime();
Frame 60
gotoAndPlay (59);
Frame 65
sideWalk2.bw = 650;
sideWalk2.bh = 850;
sideWalk2.z = 10;
sideWalk2ID = 5;
i = 0;
while (carBackMax >= i) {
setProperty("_root.CarBack" + i, _visible , false);
i++;
}
setProperty("_root.CarBack" + carBackID, _visible , true);
setProperty("_root.CarBack" + carBack2ID, _visible , true);
i = 0;
while (carFrontMax >= i) {
setProperty("_root.CarFront" + i, _visible , false);
i++;
}
setProperty("_root.CarFront" + carFrontID, _visible , true);
i = 0;
while (3 >= i) {
setProperty("_root.car" + i, _visible , false);
i++;
}
setProperty("_root.car" + carID, _visible , true);
setProperty("_root.smoke", _visible , false);
setProperty("_root.smokeDark", _visible , false);
_root.ShiftMessage._visible = false;
_root.ShiftMessage2._visible = false;
if (computerSpeed >= 2) {
i = 0;
while (i < numWindows) {
Windows[i].axis = "x";
i++;
}
}
if (computerSpeed >= 1) {
i = 0;
while (i < numDashes) {
Dashes[i].axis = "y";
i++;
}
}
RPM = 10;
engineSound1.attachSound("engine2");
engineSound1.setVolume(5);
engineSound1.start(0, 100);
setupAcc();
moveRoad();
moveCars();
moveCar();
moveSideWalk();
updateDials();
updateTime();
Frame 66
moveCars();
Frame 120
_root.sideWalkRight5.gotoAndPlay("Start");
Frame 125
gotoAndPlay (46);
Frame 130
speed = speed * 0.8;
RPM = RPM * 0.8;
car.bx = car.bx * 0.85;
speedIncrement = speed * fpsFactor;
car.z = car.z + speedIncrement;
engineSound1.setVolume(RPM);
moveCar();
updateDials();
FinishText = "That's right";
Frame 131
if (0.05 < speed) {
gotoAndPlay (130);
}
Frame 145
Mouse.show();
gotoAndPlay (21);
Symbol 12 Button
on (release) {
gotoAndPlay (10);
}
Symbol 22 Button
on (release) {
carID = 0;
handling = 1;
topSpeed = 3;
acc = 5;
car.bw = 500;
car.bh = 350;
oldX = _root.selectionBox._x;
}
on (rollOver) {
oldX = _root.selectionBox._x;
_root.selectionBox._x = 104;
}
on (rollOut) {
_root.selectionBox._x = oldX;
}
Symbol 25 Button
on (release) {
carID = 1;
handling = 1;
topSpeed = 5;
acc = 1;
car.bw = 600;
car.bh = 380;
oldX = _root.selectionBox._x;
}
on (rollOver) {
oldX = _root.selectionBox._x;
_root.selectionBox._x = 174;
}
on (rollOut) {
_root.selectionBox._x = oldX;
}
Symbol 28 Button
on (release) {
carID = 2;
handling = 5;
topSpeed = 4;
acc = 5;
car.bw = 500;
car.bh = 350;
oldX = _root.selectionBox._x;
}
on (rollOver) {
oldX = _root.selectionBox._x;
_root.selectionBox._x = 244;
}
on (rollOut) {
_root.selectionBox._x = oldX;
}
Symbol 31 Button
on (release) {
carID = 3;
handling = 5;
topSpeed = 3;
acc = 3;
car.bw = 500;
car.bh = 400;
oldX = _root.selectionBox._x;
}
on (rollOver) {
oldX = _root.selectionBox._x;
_root.selectionBox._x = 314;
}
on (rollOut) {
_root.selectionBox._x = oldX;
}
Symbol 40 Button
on (release) {
gotoAndPlay (2);
}
Symbol 44 Button
on (release) {
computerSpeed = 0;
}
on (rollOver) {
moveComputerSpeed(0);
}
on (rollOut) {
moveComputerSpeed(computerSpeed);
}
Symbol 48 Button
on (release) {
computerSpeed = 1;
}
on (rollOver) {
moveComputerSpeed(1);
}
on (rollOut) {
moveComputerSpeed(computerSpeed);
}
Symbol 52 Button
on (release) {
computerSpeed = 2;
}
on (rollOver) {
moveComputerSpeed(2);
}
on (rollOut) {
moveComputerSpeed(computerSpeed);
}
Symbol 56 Button
on (release) {
difficulty = 0;
}
on (rollOver) {
moveDifficulty(0);
}
on (rollOut) {
moveDifficulty(difficulty);
}
Symbol 60 Button
on (release) {
difficulty = 1;
}
on (rollOver) {
moveDifficulty(1);
}
on (rollOut) {
moveDifficulty(difficulty);
}
Symbol 64 Button
on (release) {
difficulty = 2;
}
on (rollOver) {
moveDifficulty(2);
}
on (rollOut) {
moveDifficulty(difficulty);
}
Symbol 69 Button
on (release) {
Mouse.hide();
if (computerSpeed == 0) {
_quality = "LOW";
} else if (computerSpeed == 1) {
_quality = "MEDIUM";
} else if (computerSpeed == 2) {
_quality = "HIGH";
}
gotoAndPlay (65);
}
Symbol 78 Button
on (release) {
play();
}
Symbol 112 Button
on (release) {
gotoAndPlay (2);
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 32
stop();
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 6
stop();
Symbol 178 MovieClip Frame 14
stop();
Symbol 178 MovieClip Frame 19
stop();
Symbol 178 MovieClip Frame 27
stop();
Symbol 178 MovieClip Frame 38
stop();
Symbol 178 MovieClip Frame 43
stop();
Symbol 178 MovieClip Frame 51
stop();
Symbol 178 MovieClip Frame 56
stop();
Symbol 192 MovieClip Frame 20
stop();