Frame 1
stop();
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
Instance of Symbol 16 MovieClip in Frame 1
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (((_root._framesloaded / _root._totalframes) * 100) < 100) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Frame 367
function createskid() {
if (((car.accelerate > 15) && (Key.isDown(38))) || ((car.accelerate < -5) && (Key.isDown(40)))) {
duplicateMovieClip (skid, ["skid" + i], i);
setProperty(["skid" + i], _x , car._x);
setProperty(["skid" + i], _y , car._y);
setProperty(["skid" + i], _rotation , car.realrotate);
i++;
}
}
function clearskid() {
["skid" + k];
while (k < i) {
setProperty(["skid" + k], _visible , 0);
setProperty(["skid" + k], _x , -300);
setProperty(["skid" + k], _y , -300);
k++;
}
}
function createcrate() {
crateno = random(6) - 3;
if (crateno > 0) {
cratelimit = cratetotal;
["crate" + cratetotal];
while (cratetotal < (crateno + cratelimit)) {
duplicateMovieClip (crate, ["crate" + cratetotal], cratetotal);
setProperty(["crate" + cratetotal], _x , random(520) + 60);
setProperty(["crate" + cratetotal], _y , random(360) + 60);
randomscale = random(50) + 50;
setProperty(["crate" + cratetotal], _xscale , randomscale);
setProperty(["crate" + cratetotal], _yscale , randomscale);
cratetotal++;
}
}
}
function createmine() {
mineno = random(12) - 9;
if (mineno > 0) {
minelimit = minetotal;
["mine" + minetotal];
while (minetotal < (mineno + minelimit)) {
duplicateMovieClip (mine, ["mine" + minetotal], minetotal);
setProperty(["mine" + minetotal], _x , random(520) + 60);
setProperty(["mine" + minetotal], _y , random(360) + 60);
minetotal++;
}
}
}
function clearmine() {
["mine" + mineh];
while (mineh < minetotal) {
setProperty(["mine" + mineh], _visible , 0);
setProperty(["mine" + mineh], _x , -300);
setProperty(["mine" + mineh], _y , -300);
mineh++;
}
}
function createboost() {
var _local1 = _root;
if (random(10) == 1) {
_local1.boost._x = random(520) + 60;
_local1.boost._y = random(360) + 60;
} else {
_local1.boost._x = -1000;
_local1.boost._y = -1000;
}
}
function clearcrate() {
["crate" + h];
while (h < cratetotal) {
setProperty(["crate" + h], _visible , 0);
setProperty(["crate" + h], _x , -300);
setProperty(["crate" + h], _y , -300);
h++;
}
}
function createscene() {
grass.movegrass();
welcome._visible = 0;
clearskid();
clearcrate();
clearmine();
createboost();
createcrate();
createmine();
}
stop();
Instance of Symbol 29 MovieClip "grass" in Frame 367
onClipEvent (load) {
function movegrass() {
_x = (random(300) - 300);
_y = (random(300) - 300);
}
}
Instance of Symbol 31 MovieClip "carshadow" in Frame 367
onClipEvent (enterFrame) {
_x = (_root.car.xpos + 3);
_y = (_root.car.ypos + 3);
_rotation = _root.car._rotation;
}
Instance of Symbol 39 MovieClip "car" in Frame 367
onClipEvent (load) {
engineSound = new Sound(engine);
engineSound.attachSound("engine.WAV");
engineSound.setVolume(0);
engineSound.start(0, 10000);
tyreSound = new Sound(tyre);
tyreSound.attachSound("break.WAV");
tyreSound.setVolume(0);
tyreSound.start(0, 10000);
boostSound = new Sound(boost);
boostSound.attachSound("boost.WAV");
boostSound.setVolume(0);
boostSound.start(0, 10000);
boosttime = 0;
xpos = 320;
ypos = 440;
jump = 0;
i = 0;
}
onClipEvent (enterFrame) {
if (jump > 0) {
jump = jump + jumpoffset;
jumpoffset = jumpoffset - 0.5;
tyreSound.setVolume(0);
} else {
jump = 0;
jumpoffset = 0;
if (Key.isDown(38)) {
if (booston == 1) {
if (accelerate < 60) {
accelerate = accelerate + 10;
boostSound.setVolume(accelerate);
tyreSound.setVolume(accelerate);
_root.createskid();
blur._alpha = accelerate * 3;
}
} else if (accelerate < 20) {
accelerate = accelerate + 2;
engineSound.setVolume(accelerate * 2);
boostSound.setVolume(boostSound.volume / 2);
blur._alpha = accelerate * 4;
} else {
accelerate = accelerate - 5;
}
} else if (Key.isDown(40)) {
if (booston == 1) {
if (accelerate > -30) {
accelerate = accelerate - 8;
boostSound.setVolume(accelerate);
tyreSound.setVolume(accelerate);
_root.createskid();
blur._alpha = accelerate * 4;
}
} else if (accelerate > -10) {
accelerate = accelerate - 3;
engineSound.setVolume(accelerate * 2);
blur._alpha = accelerate * 4;
} else {
accelerate = accelerate + 5;
}
} else {
accelerate = accelerate / 1.1;
engineSound.setVolume(accelerate * 2);
blur._alpha = accelerate * 4;
}
}
if (jump < 0.5) {
if (Key.isDown(37)) {
if ((accelerate > 1) || (accelerate < -5)) {
realrotate = (realrotate - 6) + (random(2) - 1);
tyreSound.setVolume(80);
_root.createskid();
drift = drift - (accelerate / 40);
}
} else if (Key.isDown(39)) {
if ((accelerate > 1) || (accelerate < -5)) {
realrotate = (realrotate + 6) + (random(2) - 1);
tyreSound.setVolume(80);
_root.createskid();
drift = drift + (accelerate / 40);
}
} else {
if ((drift > 2) || (drift < -2)) {
drift = drift * 0.4;
} else if ((drift > 0) || (drift < 0)) {
drift = 0;
}
tyreSound.setVolume(0);
}
realrotate = realrotate + (drift / 10);
_rotation = (realrotate + drift);
}
rotationrad = (realrotate / 180) * Math.PI;
xpos = xpos + (accelerate * Math.sin(rotationrad));
ypos = ypos + (accelerate * (Math.cos(rotationrad) * -1));
if (boosttime > 0) {
boosttime--;
booston = 1;
} else {
boosttime = 0;
booston = 0;
}
if (this.xpos < -50) {
this.xpos = this.xpos + 740;
_root.createscene();
} else if (this.xpos > 690) {
this.xpos = this.xpos - 740;
_root.createscene();
}
if (this.ypos < -50) {
this.ypos = this.ypos + 540;
_root.createscene();
} else if (this.ypos > 520) {
this.ypos = this.ypos - 540;
_root.createscene();
}
_x = (xpos - jump);
_y = (ypos - jump);
_xscale = (100 + jump);
_yscale = (100 + jump);
}
Instance of Symbol 100 MovieClip "crate" in Frame 367
onClipEvent (load) {
crashSound = new Sound(this);
crashSound.attachSound("crash.WAV");
crunchSound = new Sound(boxcrunch);
crunchSound.attachSound("boxsmash.WAV");
stop();
}
onClipEvent (enterFrame) {
if (_root.car.jump < 3) {
if (this.hit.hitTest(_root.car.hit)) {
if (this._xscale > (((4 * _root.car.accelerate) / 5) + 48)) {
setProperty(_root.crash, _x , _root.car._x);
setProperty(_root.crash, _y , _root.car._y);
if (_root.car.accelerate > 0) {
setProperty(_root.crash, _rotation , _root.car._rotation);
} else {
setProperty(_root.crash, _rotation , _root.car._rotation + 180);
}
_root.crash.play();
if (_root.car.accelerate > 0) {
_root.car.accelerate = _root.car.accelerate * -1.5;
} else {
_root.car.accelerate = _root.car.accelerate * -2;
}
crashSound.start(0, 1);
} else {
if (_root.car.jump == 0) {
_root.car.jump = 1;
}
_root.car.jumpoffset = (((_root.car.accelerate / 10) * this._xscale) * 0.01) * _root.car.jump;
crunchSound.start(0, 1);
crashSound.start(0, 1);
_root.car.boosttime = _root.car.boosttime + (this._xscale / 3);
gotoAndStop (743);
}
}
}
}
Instance of Symbol 59 MovieClip "boost" in Frame 367
onClipEvent (load) {
powerSound = new Sound(this);
powerSound.attachSound("powerup.WAV");
}
onClipEvent (enterFrame) {
if (_root.car.jump == 0) {
if (this.hit.hitTest(_root.car.hit)) {
_root.car.boosttime = 300;
_x = -1000;
_y = -1000;
powerSound.start(0, 1);
}
}
}
Instance of Symbol 63 MovieClip "mine" in Frame 367
onClipEvent (load) {
explodeSound = new Sound(this);
explodeSound.attachSound("boxsmash.WAV");
}
onClipEvent (enterFrame) {
if (_root.car.jump < 3) {
if (this.hit.hitTest(_root.car.hit)) {
_x = -1000;
_y = -1000;
if (_root.car.jump == 0) {
_root.car.jump = 1;
}
_root.car.jumpoffset = (_root.car.accelerate / 1.8) * _root.car.jump;
explodeSound.start(0, 1);
}
}
}
Instance of Symbol 103 MovieClip in Frame 367
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (_root.car._y < 10) {
_x = _root.car._x;
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 103 MovieClip in Frame 367
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (_root.car._y > 470) {
_x = _root.car._x;
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 103 MovieClip in Frame 367
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (_root.car._x < 10) {
_y = _root.car._y;
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 103 MovieClip in Frame 367
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (_root.car._x > 630) {
_y = _root.car._y;
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 138 MovieClip "overlay" in Frame 367
onClipEvent (enterFrame) {
this.swapDepths(_root.i + 4);
_root.welcome.swapDepths(_root.i + 3);
_root.car.swapDepths(_root.i + 2);
_root.carshadow.swapDepths(_root.i + 1);
}
Symbol 15 Button
on (release) {
_root.play();
}
Symbol 16 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 31
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 112 Button
on (release) {
play();
}
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 2
stop();
Symbol 132 MovieClip Frame 3
stop();
Symbol 132 MovieClip Frame 4
stop();
Symbol 132 MovieClip Frame 5
stop();
Symbol 132 MovieClip Frame 6
stop();
Symbol 132 MovieClip Frame 7
stop();
Symbol 132 MovieClip Frame 8
stop();
Symbol 137 MovieClip Frame 566
stop();