Frame 1
objTime = new Date();
varStartSeconds = objTime.getSeconds();
varStartMinutes = objTime.getMinutes();
varStartHours = objTime.getHours();
varStartDays = objTime.getDay();
Frame 2
objNewTime = new Date();
varBytes = _root.getBytesLoaded();
varKbytes = Math.round((_root.getBytesLoaded() / 1024) * 100) / 100;
varTotalBytes = Math.round((_root.getBytesTotal() / 1024) * 100) / 100;
if (1024 < varBytes) {
txtBytes = ((varKbytes add " KBs of ") add varTotalBytes) add " KBs";
} else {
txtBytes = ((varBytes add " Bytes of ") add varTotalBytes) add " KBs";
}
txtPercentage = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) add "%";
varElapsedSeconds = objNewTime.getSeconds() - varStartSeconds;
varElapsedMinutes = objNewTime.getMinutes() - varStartMinutes;
varElapsedHours = objNewTime.getHours() - varStartHours;
varElapsedDays = objNewTime.getDay() - varStartDays;
varElapsedTime = (((((varElapsedDays * 24) * 60) * 60) + ((varElapsedHours * 60) * 60)) + (varElapsedMinutes * 60)) + varElapsedSeconds;
if (1 < varElapsedTime) {
txtElapsed = varElapsedTime add " Seconds";
} else {
txtElapsed = varElapsedTime add " Second";
}
varSpeed = Math.round(((_root.getBytesLoaded() / varElapsedTime) / 1024) * 10) / 10;
txtSpeed = varSpeed add " Kbytes/Second";
varRemaining = Math.round((_root.getBytesTotal() - _root.getBytesLoaded()) / (varSpeed * 1024));
if (1 < varRemaining) {
txtRemaining = varRemaining add " Seconds";
} else {
txtRemaining = varRemaining add " Second";
}
varMove = Math.Round((_root.getBytesLoaded() / _root.getBytesTotal()) * 458.8);
setProperty("_root.mcLoad", _x , -59.4 + varMove);
Frame 3
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndStop (4);
} else {
gotoAndPlay (2);
}
Frame 4
_root.goodTime = 0;
_root.courseOff = 0;
_root.soundOn = 1;
stop();
Frame 9
_root.time = "0:00:0";
_root.charswap.gotoAndStop(_root.playerSelected);
_root.playme1.colour.gotoAndStop(_root.playerSelected);
stop();
function player(turn, turned, move, move2, accel, accelplus, accelrev, status1, status2, keyright, keyleft, keyforward, keybackward, bounce, stopbounce) {
this.turn = turn;
this.turned = turned;
this.move = move;
this.move2 = move2;
this.accel = accel;
this.accelplus = accelplus;
this.accelrev = accelrev;
this.status1 = status1;
this.status2 = status2;
this.keyright = keyright;
this.keyleft = keyleft;
this.keyforward = keyforward;
this.keybackward = keybackward;
this.bounce = bounce;
this.stopbounce = stopbounce;
}
("c" < (b >= undefined)) || (1());
player1 = new player(0, 0, _root.playme1._x, _root.playme1._y, 0, 0, 0, false, false, Key.RIGHT, Key.LEFT, Key.SPACE, Key.DOWN, 0, 0);
player2 = new player(0, 0, _root.playme2._x, _root.playme2._y, 0, 0, 0, false, false, 88, 90, Key.SHIFT, Key.CONTROL, 0, 0);
Instance of Symbol 155 MovieClip "start5" in Frame 9
onClipEvent (enterFrame) {
if (_root.noGo == 1) {
_root.time = int((getTimer() / 1000) - _root.lasttime);
_root.mili = int(getTimer() - _root.lasttime);
_root.courseTime = _root.mili;
_root.mili2 = _root.mili;
mili2 = new Object();
mili2.time = _root.mili;
mili2.time2 = mili2.time.toString();
mili2.length = mili2.time2.length;
_root.mili = mili2.time2.substring(mili2.length - 3, mili2.length - 2);
_root.secs = _root.time % 60;
_root.mins = int(_root.time / 60);
if (_root.secs < 10) {
_root.time = (((_root.mins add ":0") add _root.secs) add ":") add _root.mili;
} else {
_root.time = (((_root.mins add ":") add _root.secs) add ":") add _root.mili;
}
}
}
Instance of Symbol 157 MovieClip in Frame 9
onClipEvent (load) {
("c" < (b >= undefined)) || (1());
}
onClipEvent (enterFrame) {
function controlme(playernumber, playerdirection) {
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
bob = 1;
if ((eval (("_root.player" + playernumber) + ".accel") >= 0) && (eval (("_root.player" + playernumber) + ".status1") == false)) {
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
if (Key.isDown(eval (("_root.player" + playernumber) + ".keyright"))) {
Set(("_root.player" & playernumber) & ".turned", 0);
if (eval (("_root.player" + playernumber) + ".turn") < 20) {
Set(("_root.player" + playernumber) + ".turn", eval (("_root.player" + playernumber) + ".turn") + 2);
} else if ((_root.screech._currentframe == 1) && (_root.soundOn == 1)) {
var ranSound = random(4);
if (ranSound == 0) {
_root.screech.gotoAndPlay(2);
}
}
setProperty(eval (("_root.playme" + playernumber) + ".frontaxel"), _rotation , eval (("_root.player" + playernumber) + ".turn"));
setProperty(eval ("_root.playme" + playernumber), _rotation , (eval (("_root.playme" + playernumber) + "._rotation") + 8) % 360);
} else if (Key.isDown(eval (("_root.player" + playernumber) + ".keyleft"))) {
Set(("_root.player" & playernumber) & ".turned", 0);
if (-20 < eval (("_root.player" + playernumber) + ".turn")) {
Set(("_root.player" + playernumber) + ".turn", eval (("_root.player" + playernumber) + ".turn") - 2);
} else if ((_root.screech._currentframe == 1) && (_root.soundOn == 1)) {
var ranSound = random(4);
if (ranSound == 0) {
_root.screech.gotoAndPlay(2);
}
}
setProperty(eval (("_root.playme" + playernumber) + ".frontaxel"), _rotation , eval (("_root.player" + playernumber) + ".turn") + 360);
setProperty(eval ("_root.playme" + playernumber), _rotation , (eval (("_root.playme" + playernumber) + "._rotation") - 8) % 360);
} else {
Set(("_root.player" & playernumber) & ".turned", 1);
if (eval (("_root.player" + playernumber) + ".turn") < 0) {
Set(("_root.player" + playernumber) + ".turn", eval (("_root.player" + playernumber) + ".turn") + 2);
} else if (0 < eval (("_root.player" + playernumber) + ".turn")) {
Set(("_root.player" + playernumber) + ".turn", eval (("_root.player" + playernumber) + ".turn") - 2);
}
setProperty(eval (("_root.playme" + playernumber) + ".frontaxel"), _rotation , eval (("_root.player" + playernumber) + ".turn"));
}
}
if (_root.soundOn == 1) {
if (0 < eval (("_root.player" + playernumber) + ".accel")) {
if (eval (("_root.player" + playernumber) + ".accel") < 2) {
if (_root.accelSound._currentframe == 1) {
_root.accelSound.gotoAndStop(2);
}
}
if ((2 < eval (("_root.player" + playernumber) + ".accel")) && (eval (("_root.player" + playernumber) + ".accel") < 4)) {
if (_root.accelSound._currentframe == 2) {
_root.accelSound.gotoAndPlay(3);
}
}
if ((4 < eval (("_root.player" + playernumber) + ".accel")) && (eval (("_root.player" + playernumber) + ".accel") < 6)) {
if (_root.accelSound._currentframe == 4) {
_root.accelSound.gotoAndPlay(5);
}
}
if (6 < eval (("_root.player" + playernumber) + ".accel")) {
if (_root.accelSound._currentframe == 6) {
_root.accelSound.gotoAndPlay(7);
}
}
} else if (eval (("_root.player" + playernumber) + ".accel") == 0) {
if (_root.accelSound._currentframe == 2) {
_root.accelSound.gotoAndStop(3);
_root.accelSound.gotoAndStop(1);
}
if (_root.accelSound._currentframe == 4) {
_root.accelSound.gotoAndStop(5);
_root.accelSound.gotoAndStop(1);
}
if (_root.accelSound._currentframe == 6) {
_root.accelSound.gotoAndStop(7);
_root.accelSound.gotoAndStop(1);
}
if (_root.accelSound._currentframe == 8) {
_root.accelSound.gotoAndStop(9);
_root.accelSound.gotoAndStop(1);
}
}
}
if (Key.isDown(eval (("_root.player" + playernumber) + ".keyforward"))) {
}
if (Key.isDown(eval (("_root.player" + playernumber) + ".keyforward"))) {
var press = 1;
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
if (eval (("_root.player" + playernumber) + ".status1") == false) {
if (0 < eval (("_root.player" + playernumber) + ".accelrev")) {
Set(("_root.player" + playernumber) + ".accelrev", eval (("_root.player" + playernumber) + ".accelrev") - 0.25);
directrevme(playerdirection, "accelrev");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
}
if (eval (("_root.player" + playernumber) + ".accelrev") == 0) {
if (eval (("_root.player" + playernumber) + ".accel") < 6) {
Set(("_root.player" + playernumber) + ".accel", eval (("_root.player" + playernumber) + ".accel") + 1);
}
if (10 >= eval (("_root.player" + playernumber) + ".accel")) {
if (eval (("_root.player" + playernumber) + ".accel") >= 1) {
Set(("_root.player" + playernumber) + ".accelplus", eval (("_root.player" + playernumber) + ".accelplus") + 5);
} else {
Set(("_root.player" + playernumber) + ".accelplus", eval (("_root.player" + playernumber) + ".accelplus") + 3);
}
if (50 < eval (("_root.player" + playernumber) + ".accelplus")) {
Set(("_root.player" + playernumber) + ".accel", eval (("_root.player" + playernumber) + ".accel") + 0.25);
Set(("_root.player" + playernumber) + ".accelplus", 0);
}
}
directme(playerdirection, "accel");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
_root.status9 = _root.player1.status1;
_root.status10 = _root.player1.status2;
forrev = "0";
}
}
} else if (Key.isDown(eval (("_root.player" + playernumber) + ".keybackward"))) {
if (eval (("_root.player" + playernumber) + ".status1") == false) {
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
if (eval (("_root.player" + playernumber) + ".status2") == false) {
Set(("_root.player" + playernumber) + ".accelplus", 0);
if (0 < eval (("_root.player" + playernumber) + ".accel")) {
Set(("_root.player" + playernumber) + ".accel", eval (("_root.player" + playernumber) + ".accel") - 0.25);
directme(playerdirection, "accel");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
}
if (eval (("_root.player" + playernumber) + ".accel") == 0) {
if (eval (("_root.player" + playernumber) + ".accelrev") < 4) {
Set(("_root.player" + playernumber) + ".accelrev", eval (("_root.player" + playernumber) + ".accelrev") + 0.25);
}
directrevme(playerdirection, "accelrev");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
_root.status9 = _root.player1.status1;
_root.status10 = _root.player1.status2;
forrev = "1";
}
}
}
} else if ((eval (("_root.player" + playernumber) + ".status1") == false) && (eval (("_root.player" + playernumber) + ".status2") == false)) {
if (forrev == 0) {
Set(("_root.player" + playernumber) + ".accelplus", 0);
if (0 < eval (("_root.player" + playernumber) + ".accel")) {
Set(("_root.player" + playernumber) + ".accel", eval (("_root.player" + playernumber) + ".accel") - 0.25);
}
directme(playerdirection, "accel");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
} else if (forrev == 1) {
if (0 < eval (("_root.player" + playernumber) + ".accelrev")) {
Set(("_root.player" + playernumber) + ".accelrev", eval (("_root.player" + playernumber) + ".accelrev") - 0.25);
}
directrevme(playerdirection, "accelrev");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
_root.status9 = _root.player1.status1;
_root.status10 = _root.player1.status2;
}
} else if ((eval (("_root.player" + playernumber) + ".status1") == true) && (eval (("_root.player" + playernumber) + ".status2") == false)) {
Set(("_root.player" + playernumber) + ".accel", 0);
Set(("_root.player" + playernumber) + ".accelplus", 0);
Set(("_root.player" + playernumber) + ".accelrev", 0);
Set(("_root.player" + playernumber) + ".stopbounce", eval (("_root.player" + playernumber) + ".stopbounce") + 0.25);
if (eval (("_root.player" + playernumber) + ".stopbounce") >= 10) {
Set(("_root.player" + playernumber) + ".status1", false);
Set(("_root.player" + playernumber) + ".stopbounce", 0);
}
Set(("_root.player" + playernumber) + ".bounce", 10);
if (0 < eval (("_root.player" + playernumber) + ".bounce")) {
Set(("_root.player" + playernumber) + ".bounce", eval (("_root.player" + playernumber) + ".bounce") - 0.25);
} else {
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
}
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
if (eval (("_root.player" + playernumber) + ".status2") == false) {
directrevme(playerdirection, "bounce");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
} else {
Set(("_root.player" + playernumber) + ".stopbounce", 0);
}
} else if ((eval (("_root.player" + playernumber) + ".status2") == true) && (eval (("_root.player" + playernumber) + ".status1") == false)) {
Set(("_root.player" + playernumber) + ".accel", 0);
Set(("_root.player" + playernumber) + ".accelplus", 0);
Set(("_root.player" + playernumber) + ".accelrev", 0);
Set(("_root.player" + playernumber) + ".stopbounce", eval (("_root.player" + playernumber) + ".stopbounce") + 0.25);
if (eval (("_root.player" + playernumber) + ".stopbounce") >= 5) {
Set(("_root.player" + playernumber) + ".status2", false);
Set(("_root.player" + playernumber) + ".stopbounce", 0);
}
Set(("_root.player" + playernumber) + ".bounce", 6);
if (0 < eval (("_root.player" + playernumber) + ".bounce")) {
Set(("_root.player" + playernumber) + ".bounce", eval (("_root.player" + playernumber) + ".bounce") - 0.25);
} else {
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
}
hitTrack = 0;
if (_root.track.hitTest(_root.bottomright, _root.bottomright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.bottomleft, _root.bottomleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status2", true);
} else {
Set(("_root.player" + playernumber) + ".status2", false);
}
hitTrack = 0;
if (_root.track.hitTest(_root.topright, _root.topright1, true)) {
hitTrack = hitTrack + 1;
}
if (_root.track.hitTest(_root.topleft, _root.topleft1, true)) {
hitTrack = hitTrack + 1;
}
if (hitTrack == 2) {
Set(("_root.player" + playernumber) + ".status1", true);
} else {
Set(("_root.player" + playernumber) + ".status1", false);
}
if (eval (("_root.player" + playernumber) + ".status1") == false) {
directme(playerdirection, "bounce");
setProperty(eval ("_root.playme" + playernumber), _x , eval (("_root.player" + playernumber) + ".move"));
setProperty(eval ("_root.playme" + playernumber), _y , eval (("_root.player" + playernumber) + ".move2"));
} else {
Set(("_root.player" + playernumber) + ".stopbounce", 0);
}
} else if ((eval (("_root.player" + playernumber) + ".status2") == true) && (eval (("_root.player" + playernumber) + ".status1") == true)) {
}
}
function directme(playernumberdir, accel) {
if ((eval (("_root.playme" + playernumberdir) + "._rotation") >= 0) && (90 >= eval (("_root.playme" + playernumberdir) + "._rotation"))) {
Set(("_root.player" + playernumberdir) + ".move", eval (("_root.player" + playernumberdir) + ".move") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (90 - eval (("_root.playme" + playernumberdir) + "._rotation")))));
Set(("_root.player" + playernumberdir) + ".move2", eval (("_root.player" + playernumberdir) + ".move2") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * eval (("_root.playme" + playernumberdir) + "._rotation"))));
} else if ((90 < eval (("_root.playme" + playernumberdir) + "._rotation")) && (180 >= eval (("_root.playme" + playernumberdir) + "._rotation"))) {
Set(("_root.player" + playernumberdir) + ".move", eval (("_root.player" + playernumberdir) + ".move") - ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberdir) + "._rotation") - 90))));
Set(("_root.player" + playernumberdir) + ".move2", eval (("_root.player" + playernumberdir) + ".move2") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (180 - eval (("_root.playme" + playernumberdir) + "._rotation")))));
} else if ((eval (("_root.playme" + playernumberdir) + "._rotation") >= -180) && (-90 >= eval (("_root.playme" + playernumberdir) + "._rotation"))) {
Set(("_root.player" + playernumberdir) + ".move", eval (("_root.player" + playernumberdir) + ".move") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberdir) + "._rotation") + 90))));
Set(("_root.player" + playernumberdir) + ".move2", eval (("_root.player" + playernumberdir) + ".move2") - ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (180 + eval (("_root.playme" + playernumberdir) + "._rotation")))));
} else if ((-90 < eval (("_root.playme" + playernumberdir) + "._rotation")) && (-1 >= eval (("_root.playme" + playernumberdir) + "._rotation"))) {
Set(("_root.player" + playernumberdir) + ".move", eval (("_root.player" + playernumberdir) + ".move") + ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberdir) + "._rotation") + 90))));
Set(("_root.player" + playernumberdir) + ".move2", eval (("_root.player" + playernumberdir) + ".move2") - ((eval ((("_root.player" + playernumberdir) + ".") + accel) / 100) * (1.11111111111111 * (-eval (("_root.playme" + playernumberdir) + "._rotation")))));
}
}
function directrevme(playernumberrevdir, accelrev) {
if ((eval (("_root.playme" + playernumberrevdir) + "._rotation") >= 0) && (90 >= eval (("_root.playme" + playernumberrevdir) + "._rotation"))) {
Set(("_root.player" + playernumberrevdir) + ".move", eval (("_root.player" + playernumberrevdir) + ".move") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (90 - eval (("_root.playme" + playernumberrevdir) + "._rotation")))));
Set(("_root.player" + playernumberrevdir) + ".move2", eval (("_root.player" + playernumberrevdir) + ".move2") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * eval (("_root.playme" + playernumberrevdir) + "._rotation"))));
} else if ((90 < eval (("_root.playme" + playernumberrevdir) + "._rotation")) && (180 >= eval (("_root.playme" + playernumberrevdir) + "._rotation"))) {
Set(("_root.player" + playernumberrevdir) + ".move", eval (("_root.player" + playernumberrevdir) + ".move") + ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberrevdir) + "._rotation") - 90))));
Set(("_root.player" + playernumberrevdir) + ".move2", eval (("_root.player" + playernumberrevdir) + ".move2") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (180 - eval (("_root.playme" + playernumberrevdir) + "._rotation")))));
} else if ((eval (("_root.playme" + playernumberrevdir) + "._rotation") >= -180) && (-90 >= eval (("_root.playme" + playernumberrevdir) + "._rotation"))) {
Set(("_root.player" + playernumberrevdir) + ".move", eval (("_root.player" + playernumberrevdir) + ".move") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberrevdir) + "._rotation") + 90))));
Set(("_root.player" + playernumberrevdir) + ".move2", eval (("_root.player" + playernumberrevdir) + ".move2") + ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (180 + eval (("_root.playme" + playernumberrevdir) + "._rotation")))));
} else if ((-90 < eval (("_root.playme" + playernumberrevdir) + "._rotation")) && (-1 >= eval (("_root.playme" + playernumberrevdir) + "._rotation"))) {
Set(("_root.player" + playernumberrevdir) + ".move", eval (("_root.player" + playernumberrevdir) + ".move") - ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (eval (("_root.playme" + playernumberrevdir) + "._rotation") + 90))));
Set(("_root.player" + playernumberrevdir) + ".move2", eval (("_root.player" + playernumberrevdir) + ".move2") + ((eval ((("_root.player" + playernumberrevdir) + ".") + accelrev) / 100) * (1.11111111111111 * (-eval (("_root.playme" + playernumberrevdir) + "._rotation")))));
}
}
if (Key.isDown(_root.player1.keyforward) && (Key.isDown(_root.player1.keybackward))) {
} else if (_root.noGo == 1) {
controlme(1, 1);
}
}
Instance of Symbol 235 MovieClip "getOut" in Frame 9
onClipEvent (enterFrame) {
if (_root.compSec != _root.secNum) {
setProperty("_root.track.comp1", _visible , false);
} else {
setProperty("_root.track.comp1", _visible , true);
}
if (this.hitTest(_root.playme1._x, _root.playme1._y, true)) {
if (_root.secNum == 1) {
setProperty(_root.playme1, _x , _root.start2._x);
setProperty(_root.playme1, _y , _root.start2._y);
_root.player1.move = _root.start2._x;
_root.player1.move2 = _root.start2._y;
} else if (_root.secNum == 2) {
setProperty(_root.playme1, _x , _root.start3._x);
setProperty(_root.playme1, _y , _root.start3._y);
_root.player1.move = _root.start3._x;
_root.player1.move2 = _root.start3._y;
} else if (_root.secNum == 3) {
setProperty(_root.playme1, _x , _root.start4._x);
setProperty(_root.playme1, _y , _root.start4._y);
_root.player1.move = _root.start4._x;
_root.player1.move2 = _root.start4._y;
} else if (_root.secNum == 4) {
setProperty(_root.playme1, _x , _root.start5._x);
setProperty(_root.playme1, _y , _root.start5._y);
_root.player1.move = _root.start5._x;
_root.player1.move2 = _root.start5._y;
} else if (_root.secNum == 5) {
gotoAndStop (10);
if (_root.compFin == 1) {
_root.gotoAndStop("result1");
} else {
_root.gotoAndStop("result");
}
}
_root.sections.gotoAndStop(_currentframe + 1);
_root.track.gotoAndStop(_currentframe + 1);
_root.getOut.gotoAndStop(_currentframe + 1);
}
}
Frame 10
_root.charswap1.gotoAndStop(_root.playerSelected);
_root.mins2 = int(_root.time / 60);
if (_root.mins2 < 1) {
_root.goodTime = 1;
}
if (_root.mins2 < 1) {
_root.courseOff = 1;
}
if ((_root.mins2 == 1) && (30 >= _root.secs)) {
_root.courseOff = 1;
}
_root.accelSound.gotoAndStop(3);
_root.accelSound.gotoAndStop(5);
_root.accelSound.gotoAndStop(7);
_root.accelSound.gotoAndStop(9);
_root.accelSound.gotoAndStop(1);
Frame 11
_root.charswap1.gotoAndStop(_root.playerSelected);
_root.mins2 = int(_root.time / 60);
if (_root.mins2 < 1) {
_root.courseOff = 1;
}
if ((_root.mins2 == 1) && (30 >= _root.secs)) {
_root.courseOff = 1;
}
_root.accelSound.gotoAndStop(3);
_root.accelSound.gotoAndStop(5);
_root.accelSound.gotoAndStop(7);
_root.accelSound.gotoAndStop(9);
_root.accelSound.gotoAndStop(1);
Frame 13
_root.finalTime = _root.time;
Symbol 19 Button
on (release) {
nextFrame();
}
Symbol 21 Button
on (release) {
prevFrame();
}
Symbol 24 MovieClip Frame 1
_root.soundOn = 1;
stop();
Symbol 24 MovieClip Frame 2
_root.soundOn = 0;
stop();
Symbol 32 Button
on (release) {
_root.goodTime = 0;
_root.courseOff = 0;
nextFrame();
}
Symbol 35 Button
on (release) {
_root.goodTime = 0;
_root.courseOff = 1;
nextFrame();
}
Symbol 38 Button
on (release) {
_root.goodTime = 1;
_root.courseOff = 1;
nextFrame();
}
Symbol 42 Button
on (release) {
_root.gotoAndStop("instructions");
}
Symbol 46 Button
on (release) {
_root.gotoAndStop("charpick");
}
Symbol 47 MovieClip Frame 1
stop();
Symbol 60 Button
on (release) {
gotoAndStop (5);
}
Symbol 65 Button
on (release) {
gotoAndStop (4);
}
Symbol 69 Button
on (release) {
getURL ("javascript:window.close()");
}
Symbol 87 Button
on (release) {
gotoAndStop (7);
}
Symbol 107 Button
on (release) {
_root.playerSelected = 4;
gotoAndPlay (8);
}
Symbol 114 Button
on (release) {
_root.playerSelected = 3;
gotoAndPlay (8);
}
Symbol 123 Button
on (release) {
_root.playerSelected = 2;
gotoAndPlay (8);
}
Symbol 132 Button
on (release) {
_root.playerSelected = 1;
gotoAndPlay (8);
}
Symbol 136 Button
on (release) {
gotoAndStop (4);
}
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
stop();
Symbol 150 MovieClip Frame 4
stop();
Symbol 150 MovieClip Frame 6
stop();
Symbol 150 MovieClip Frame 8
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
newRandom = random(2);
if (newRandom == 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (31);
}
Symbol 154 MovieClip Frame 30
gotoAndStop (1);
Symbol 154 MovieClip Frame 61
gotoAndStop (1);
Symbol 180 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 1
_root.noGo = 0;
Symbol 190 MovieClip Frame 2
if (_root.soundOn == 1) {
_root.ignition.gotoAndPlay(2);
}
Symbol 190 MovieClip Frame 150
_root.lasttime = int(getTimer() / 1000);
_root.time = int(getTimer() / 1000);
_root.noGo = 1;
_root.track.comp1.gotoAndPlay(1);
stop();
Symbol 193 Button
on (release) {
_root.fromWinner = 2;
gotoAndStop (12);
}
Symbol 196 Button
on (release) {
gotoAndStop (7);
}
Symbol 197 Button
on (release) {
getURL ("http://www.little-chef.co.uk", "_blank");
}
Symbol 202 MovieClip Frame 1
_root.compFin = 0;
_root.compSec = 1;
stop();
Symbol 202 MovieClip Frame 2
if (_root.goodTime == 1) {
gotoAndPlay (1980);
}
Symbol 202 MovieClip Frame 471
_root.compSec = 2;
Symbol 202 MovieClip Frame 897
_root.compSec = 3;
Symbol 202 MovieClip Frame 1232
_root.compSec = 4;
Symbol 202 MovieClip Frame 1558
_root.compSec = 5;
Symbol 202 MovieClip Frame 1974
_root.compFin = 1;
Symbol 202 MovieClip Frame 1979
stop();
Symbol 202 MovieClip Frame 2355
_root.compSec = 2;
Symbol 202 MovieClip Frame 2667
_root.compSec = 3;
Symbol 202 MovieClip Frame 2878
_root.compSec = 4;
Symbol 202 MovieClip Frame 3183
_root.compSec = 5;
Symbol 202 MovieClip Frame 3515
_root.compFin = 1;
Symbol 202 MovieClip Frame 3520
stop();
Symbol 214 MovieClip Frame 1
stop();
Instance of Symbol 204 MovieClip in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _visible , false);
}
Instance of Symbol 206 MovieClip in Symbol 214 MovieClip Frame 2
onClipEvent (load) {
setProperty(this, _visible , false);
}
Instance of Symbol 208 MovieClip in Symbol 214 MovieClip Frame 3
onClipEvent (load) {
setProperty(this, _visible , false);
}
Instance of Symbol 210 MovieClip in Symbol 214 MovieClip Frame 4
onClipEvent (load) {
setProperty(this, _visible , false);
}
Instance of Symbol 212 MovieClip in Symbol 214 MovieClip Frame 5
onClipEvent (load) {
setProperty(this, _visible , false);
}
Symbol 217 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 1
stop();
Instance of Symbol 218 MovieClip "bumper4" in Symbol 231 MovieClip Frame 1
onClipEvent (enterFrame) {
point = new object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bottomleft = point.x;
_root.bottomleft1 = point.y;
updateAfterEvent();
}
Instance of Symbol 219 MovieClip "bumper3" in Symbol 231 MovieClip Frame 1
onClipEvent (enterFrame) {
point = new object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.topleft = point.x;
_root.topleft1 = point.y;
updateAfterEvent();
}
Instance of Symbol 220 MovieClip "bumper2" in Symbol 231 MovieClip Frame 1
onClipEvent (enterFrame) {
point = new object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bottomright = point.x;
_root.bottomright1 = point.y;
updateAfterEvent();
}
Instance of Symbol 221 MovieClip "bumper1" in Symbol 231 MovieClip Frame 1
onClipEvent (enterFrame) {
point = new object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.topright = point.x;
_root.topright1 = point.y;
updateAfterEvent();
}
Symbol 235 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 1
_root.secNum = 1;
stop();
if (_root.courseOff == 1) {
_root.sections.arr1._visible = false;
} else {
_root.sections.arr1._visible = true;
}
Symbol 257 MovieClip Frame 2
_root.secNum = 2;
if (_root.courseOff == 1) {
_root.sections.arr2._visible = false;
} else {
_root.sections.arr2._visible = true;
}
Symbol 257 MovieClip Frame 3
_root.secNum = 3;
_root.playme1.lights.gotoAndStop(2);
if (_root.courseOff == 1) {
_root.sections.arr3._visible = false;
} else {
_root.sections.arr3._visible = true;
}
Symbol 257 MovieClip Frame 4
_root.secNum = 4;
_root.playme1.lights.gotoAndStop(1);
if (_root.courseOff == 1) {
_root.sections.arr4._visible = false;
} else {
_root.sections.arr4._visible = true;
}
Symbol 257 MovieClip Frame 5
_root.secNum = 5;
if (_root.courseOff == 1) {
_root.sections.arr5._visible = false;
} else {
_root.sections.arr5._visible = true;
}
Symbol 258 Button
on (release) {
_root.fromWinner = 1;
gotoAndStop (12);
}
Symbol 270 Button
on (release) {
_root.fromWinner = 1;
gotoAndStop (13);
}
Symbol 273 Button
on (release) {
gotoAndStop (7);
}
Symbol 276 MovieClip Frame 1
stop();
Symbol 287 Button
on (release) {
_root.fromWinner = 0;
gotoAndStop (13);
}
Symbol 291 Button
on (release) {
if (_root.fromWinner == 1) {
_root.gotoAndStop("result");
} else if (_root.fromWinner == 2) {
_root.gotoAndStop("start");
} else {
_root.gotoAndStop("result1");
}
}
Symbol 298 Button
on (release) {
Set("/:received", 0);
loadVariablesNum ((((("http://www.little-chef.co.uk/html/brekkyraces/SendToFriend.asp?name=" add /:name) add "&friendName=") add /:friendName) add "&friendEmail=") add /:friendEmail, 0);
gotoAndPlay (2);
}
Symbol 309 MovieClip Frame 1
stop();
Instance of Symbol 292 MovieClip in Symbol 309 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.name = _parent.tempName;
_root.friendName = _parent.tempFriendName;
_root.friendEmail = _parent.tempFriendEmail;
}
Symbol 309 MovieClip Frame 2
if (_root.received == 1) {
gotoAndStop (5);
}
Symbol 309 MovieClip Frame 4
gotoAndPlay (2);
Symbol 315 Button
on (release) {
if (_root.fromWinner == 1) {
_root.gotoAndStop("result");
} else {
_root.gotoAndStop("result1");
}
}
Symbol 320 Button
on (release) {
Set("/:received", 0);
loadVariablesNum ((((("http://www.little-chef.co.uk/html/brekkyraces/submitscore.asp?name=" add /:name) add "&email=") add /:email) add "&finaltime=") add /:finalTime, 0);
gotoAndPlay (2);
}
Symbol 322 MovieClip Frame 1
displayTime = _root.finalTime;
stop();
Instance of Symbol 314 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.name = _root.submitScore.tempName;
_root.email = _root.submitScore.tempEmail;
}
Symbol 322 MovieClip Frame 2
if (_root.received == 1) {
gotoAndStop (5);
}
Symbol 322 MovieClip Frame 4
gotoAndPlay (2);