Frame 1
Loaded = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndStop (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
score = 0;
level = 0;
turning = 5;
lives = 3;
Instance of Symbol 25 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
gotoAndStop (2);
}
}
Instance of Symbol 43 MovieClip in Frame 3
onClipEvent (load) {
if (_root.MusicOn == false) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Frame 4
finished = false;
Instance of Symbol 57 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop(_root.level + 1);
}
Instance of Symbol 63 MovieClip "track" in Frame 4
onClipEvent (enterFrame) {
gotoAndStop(_root.level + 1);
}
onClipEvent (enterFrame) {
if (_root.car.hasmoved && (_root.lives > 0)) {
_root.timeleft = _root.timeleft - 1;
}
}
Instance of Symbol 69 MovieClip "car" in Frame 4
onClipEvent (enterFrame) {
sensitivity = 7;
if (((((_root.track.hittest(_root.car._x - sensitivity, _root.car._y - sensitivity, true) || (_root.track.hittest(_root.car._x + sensitivity, _root.car._y - sensitivity, true))) || (_root.track.hittest(_root.car._x - sensitivity, _root.car._y + sensitivity, true))) || (_root.track.hittest(_root.car._x + sensitivity, _root.car._y + sensitivity, true))) || (crashed)) && (hasmoved)) {
crashed = true;
if (speed != 0) {
gotoAndPlay (2);
}
speed = 0;
}
if (math.abs(speed) < 0.5) {
speed = 0;
} else {
speed = speed / 1.1;
}
if (crashed == false) {
xspeed = speed * Math.sin((this._rotation / 180) * Math.PI);
yspeed = speed * Math.cos((this._rotation / 180) * Math.PI);
setProperty(this, _y , this._y - yspeed);
setProperty(this, _x , this._x + xspeed);
if (Key.isDown(Key.Up)) {
hasmoved = true;
if (speed < sensitivity) {
speed = speed + 0.5;
}
}
if (Key.isDown(Key.Down)) {
hasmoved = true;
if (speed > -2) {
speed = speed - 0.5;
}
}
if (key.isdown(key.right) && (math.abs(speed) > 0.5)) {
if (speed > 0) {
setProperty(this, _rotation , this._rotation + _root.turning);
} else {
setProperty(this, _rotation , this._rotation - _root.turning);
}
}
if (key.isdown(key.left) && (math.abs(speed) > 0.5)) {
if (speed > 0) {
setProperty(this, _rotation , this._rotation - _root.turning);
} else {
setProperty(this, _rotation , this._rotation + _root.turning);
}
}
}
}
onClipEvent (load) {
crashed = false;
hasmoved = false;
origx = _x;
origy = _y;
}
Frame 5
if (_root.finished == true) {
level = level + 1;
score = score + _root.timeleft;
} else {
level = 1;
score = 0;
}
if (level > 4) {
gotoAndStop (7);
} else {
gotoAndStop (4);
}
if (level == 1) {
_root.Music = new Sound();
_root.Music.attachSound("Music");
if (_root.MusicOn) {
_root.Music.start(0, 9999);
}
}
Frame 6
gotoAndStop (1);
Frame 7
final = "Final Score: " + _root.score;
loadVariablesNum ("highscores.asp", 0, "POST");
_root.Music.stop();
Symbol 21 MovieClip Frame 20
gotoAndPlay (1);
Symbol 24 Button
on (release) {
_root.finished = true;
_root.timeleft = 0;
_root.gotoAndPlay("nextrace");
}
Symbol 25 MovieClip Frame 1
stop();
Instance of Symbol 29 MovieClip in Symbol 30 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(this, _width , (_root.timeleft / _root.totaltime) * 550);
if ((_root.timeleft < 1) && (_root.car.crashed == false)) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
Symbol 40 Button
on (release) {
stopAllSounds();
gotoAndStop (2);
}
Symbol 42 Button
on (release) {
stopAllSounds();
_root.Music.start(0, 9999);
gotoAndStop (1);
}
Symbol 43 MovieClip Frame 1
_root.MusicOn = true;
stop();
Symbol 43 MovieClip Frame 2
_root.MusicOn = false;
Symbol 46 MovieClip Frame 1
if (this.hitTest(_root.car) && (_root.car.crashed == false)) {
_root.finished = true;
_root.gotoAndPlay("nextrace");
}
Symbol 46 MovieClip Frame 2
gotoAndPlay (1);
Symbol 50 MovieClip Frame 1
closed = true;
Symbol 50 MovieClip Frame 3
closed = false;
Symbol 50 MovieClip Frame 80
closed = true;
Symbol 50 MovieClip Frame 115
gotoAndPlay (1);
Symbol 52 MovieClip Frame 1
setProperty(this, _rotation , this._rotation + 5);
if (this.hitTest(_root.car._x, _root.car._y, true)) {
setProperty(_root.car, _rotation , _root.car._rotation - 1);
}
Symbol 52 MovieClip Frame 2
gotoAndPlay (1);
Symbol 54 MovieClip Frame 1
setProperty(this, _rotation , this._rotation + turnspeed);
if (this.hitTest(_root.car)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
Symbol 54 MovieClip Frame 2
gotoAndPlay (1);
Symbol 56 MovieClip Frame 1
if (this.hitTest(_root.car)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
if (this._y < origpos) {
move = 0.5;
}
if (this._y > (origpos + 60)) {
move = -1;
}
setProperty(this, _y , this._y + move);
Symbol 56 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay (10);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && (closed)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
}
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay (5);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && (closed)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
}
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && (closed)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
}
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (10);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && (closed)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
}
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (8);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && (closed)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
}
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (6);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && (closed)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
}
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (4);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && (closed)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
}
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (2);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && (closed)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
}
Instance of Symbol 54 MovieClip in Symbol 57 MovieClip Frame 4
onClipEvent (load) {
turnspeed = 1;
}
Instance of Symbol 54 MovieClip in Symbol 57 MovieClip Frame 4
onClipEvent (load) {
turnspeed = 2;
}
Instance of Symbol 56 MovieClip in Symbol 57 MovieClip Frame 4
onClipEvent (load) {
origpos = this._y;
move = 0.5;
}
Instance of Symbol 56 MovieClip in Symbol 57 MovieClip Frame 4
onClipEvent (load) {
origpos = this._y;
move = 0.5;
}
Instance of Symbol 56 MovieClip in Symbol 57 MovieClip Frame 4
onClipEvent (load) {
origpos = this._y;
move = 0.5;
}
Instance of Symbol 56 MovieClip in Symbol 57 MovieClip Frame 4
onClipEvent (load) {
origpos = this._y;
move = 0.5;
}
Instance of Symbol 52 MovieClip in Symbol 57 MovieClip Frame 5
onClipEvent (load) {
setProperty(this, _rotation , random(360));
}
Instance of Symbol 52 MovieClip in Symbol 57 MovieClip Frame 5
onClipEvent (load) {
setProperty(this, _rotation , random(360));
}
Instance of Symbol 56 MovieClip in Symbol 57 MovieClip Frame 5
onClipEvent (load) {
origpos = this._y;
setProperty(this, _y , this._y + random(20));
move = 0.5;
}
Instance of Symbol 56 MovieClip in Symbol 57 MovieClip Frame 5
onClipEvent (load) {
origpos = this._y;
move = 0.5;
}
Instance of Symbol 56 MovieClip in Symbol 57 MovieClip Frame 5
onClipEvent (load) {
origpos = this._y;
move = 0.5;
}
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && (closed)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
}
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && (closed)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
}
onClipEvent (load) {
gotoAndPlay (20);
}
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && (closed)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
}
onClipEvent (load) {
gotoAndPlay (30);
}
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && (closed)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
}
onClipEvent (load) {
gotoAndPlay (30);
}
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.car) && (closed)) {
if (_root.car.crashed != true) {
_root.car.crashed = true;
_root.car.gotoAndPlay(2);
}
}
}
onClipEvent (load) {
gotoAndPlay (30);
}
Symbol 63 MovieClip Frame 2
_root.totaltime = 900;
_root.timeleft = _root.totaltime;
Symbol 63 MovieClip Frame 3
_root.totaltime = 1600;
_root.timeleft = _root.totaltime;
Symbol 63 MovieClip Frame 4
_root.totaltime = 1800;
_root.timeleft = _root.totaltime;
Symbol 63 MovieClip Frame 5
_root.totaltime = 3000;
_root.timeleft = _root.totaltime;
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
hasmoved = false;
Symbol 69 MovieClip Frame 21
_root.lives = _root.lives - 1;
_root.timeleft = _root.totaltime;
if (_root.lives > 0) {
setProperty(this, _rotation , 0);
setProperty(this, _x , origx);
setProperty(this, _y , origy);
crashed = false;
} else {
_root.gameover.gotoAndStop(2);
stop();
}
Symbol 75 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 79 Button
on (release) {
fscommand ("quit");
getURL ("javascript:(history.go(-1));");
}
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 2
final = "Final Score: " + _root.score;
score = _root.score;
loadVariablesNum ("highscores.asp", 0, "POST");
_root.Music.stop();
_root.Music.attachSound("evillaugh");
_root.Music.start(0, 1);