Frame 1
total = getBytesTotal();
loaded = getBytesLoaded();
if ((loaded = total)) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 4
stop();
Instance of Symbol 13 MovieClip "car" in Frame 4
onClipEvent (load) {
function move(x, y) {
var _loc1 = _root;
var _loc2 = y;
var _loc3 = x;
h = false;
if (!_loc1.map.hitTest((_x + _loc3) + b.xmin, (_y + _loc2) + b.ymin, true)) {
if (!_loc1.map.hitTest((_x + _loc3) + b.xmax, (_y + _loc2) + b.ymin, true)) {
if (!_loc1.map.hitTest((_x + _loc3) + b.xmin, (_y + _loc2) + b.ymax, true)) {
if (!_loc1.map.hitTest((_x + _loc3) + b.xmax, (_y + _loc2) + b.ymax, true)) {
h = true;
}
}
}
}
return(h);
}
b = this.getBounds(this);
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
speed = speed + 1;
}
if (Key.isDown(40)) {
speed = speed - 1;
}
if (Key.isDown(37)) {
_rotation = (_rotation - 10);
}
if (Key.isDown(39)) {
_rotation = (_rotation + 10);
}
speed = speed * 0.9;
x = Math.sin(_rotation * 0.01745329) * speed;
y = (Math.cos(_rotation * 0.01745329) * speed) * -1;
h = move(x, y);
if (h == true) {
_root.checkPoints._x = (_root.map._x = (_root.circuit._x = _root.circuit._x - x));
_root.checkPoints._y = (_root.map._y = (_root.circuit._y = _root.circuit._y - y));
} else {
speed = -speed;
_root.crashSound.gotoAndPlay(2);
}
}
Instance of Symbol 10 MovieClip in Symbol 11 MovieClip Frame 1
onClipEvent (load) {
_root.lastc = 3;
_root.bestlap = 11.4;
_root.laptime = "0.0";
start = false;
}
onClipEvent (enterFrame) {
if (start) {
_root.laptime = Math.round((getTimer() - start) / 100) / 10;
}
if (this.hitTest(_root.car)) {
if (_root.lastc == 3) {
_root.lastc = 0;
if (start) {
if (_root.laptime < _root.bestlap) {
_root.bestlap = _root.laptime;
}
}
start = getTimer();
}
}
}
Instance of Symbol 10 MovieClip in Symbol 11 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
if (_root.lastc == 0) {
_root.lastc = 1;
}
if (_root.lastc > 1) {
_root.lastc = 1;
}
}
}
Instance of Symbol 10 MovieClip in Symbol 11 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
if (_root.lastc == 2) {
_root.lastc = 3;
}
}
}
Instance of Symbol 10 MovieClip in Symbol 11 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
if (_root.lastc == 1) {
_root.lastc = 2;
}
if (_root.lastc > 2) {
_root.lastc = 2;
}
}
}
Symbol 15 MovieClip Frame 1
stop();