Instance of Symbol 3 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.toi = Math.floor((100 * _root.getBytesLoaded()) / _root.getBytesTotal());
this.gotoAndStop(_root.toi);
if (_root.toi == 100) {
_root.gotoandstop(2);
}
}
Frame 2
_root.speed = 0;
_root.lappings = 0;
stop();
Instance of Symbol 21 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (key.isdown(key.up)) {
if (_root.speed < 20) {
_root.speed = _root.speed + 0.25;
}
this._y = this._y + (_root.maincar.yval * _root.speed);
this._x = this._x + (_root.maincar.xval * _root.speed);
} else {
if (_root.speed > 0) {
_root.speed = _root.speed - 0.25;
}
this._y = this._y + (_root.maincar.yval * _root.speed);
this._x = this._x + (_root.maincar.xval * _root.speed);
}
if (key.isdown(key.down)) {
}
}
Frame 3
stop();
Instance of Symbol 21 MovieClip "ground" in Frame 3
onClipEvent (load) {
_root.starttime = getTimer();
_root.lap = 0;
}
onClipEvent (enterFrame) {
if (key.isdown(key.up)) {
jeff = 1;
if (_root.speed < 20) {
_root.speed = _root.speed + 0.25;
}
} else {
jeff = 0;
}
if (key.isdown(key.space) or _root.bumpy) {
slowit = 1;
} else {
slowit = 0;
}
if (slowit) {
_root.bumpy = 0;
if (key.isdown(key.space)) {
if ((_root.speed - 1) > 0) {
_root.speed = _root.speed - 1;
} else {
_root.speed = 0;
}
} else if ((_root.speed - 1) > 5) {
_root.speed = _root.speed - 1;
} else {
_root.speed = 5;
}
} else if (jeff == 0) {
if (_root.speed > 0) {
_root.speed = _root.speed - 0.25;
}
}
this._y = this._y + (_root.maincar.yval * _root.speed);
this._x = this._x + (_root.maincar.xval * _root.speed);
}
Instance of Symbol 47 MovieClip in Frame 3
onClipEvent (enterFrame) {
this._rotation = _root.maincar._rotation;
}
Instance of Symbol 47 MovieClip "maincar" in Frame 3
onClipEvent (enterFrame) {
if (_root.reset) {
_root.tagcount = 0;
_root.reset = 0;
_root.ground.t1.c1.gotoandstop(1);
_root.ground.t1.c2.gotoandstop(1);
_root.ground.t2.c1.gotoandstop(1);
_root.ground.t2.c2.gotoandstop(1);
_root.ground.t3.c1.gotoandstop(1);
_root.ground.t3.c2.gotoandstop(1);
_root.ground.t4.c1.gotoandstop(1);
_root.ground.t4.c2.gotoandstop(1);
_root.ground.t5.c1.gotoandstop(1);
_root.ground.t5.c2.gotoandstop(1);
_root.ground.t6.c1.gotoandstop(1);
_root.ground.t6.c2.gotoandstop(1);
_root.ground.t7.c1.gotoandstop(1);
_root.ground.t7.c2.gotoandstop(1);
_root.ground.t8.c1.gotoandstop(1);
_root.ground.t8.c2.gotoandstop(1);
}
if ((this._rotation == 0) or (this._rotation == 0)) {
xval = -1;
yval = 0;
} else if (this._rotation == 90) {
xval = 0;
yval = -1;
} else if (this._rotation == -90) {
xval = 0;
yval = 1;
} else if ((this._rotation == 180) or (this._rotation == -180)) {
xval = 1;
yval = 0;
} else if ((this._rotation > 0) && (this._rotation < 90)) {
if (this._rotation > 45) {
xval = -math.abs(math.sin((Math.PI/180) * (90 - this._rotation)));
yval = -math.abs(math.cos((Math.PI/180) * (90 - this._rotation)));
} else {
xval = -math.abs(math.cos((Math.PI/180) * this._rotation));
yval = -math.abs(math.sin((Math.PI/180) * this._rotation));
}
} else if ((this._rotation > 90) && (this._rotation < 180)) {
if (this._rotation > 135) {
xval = math.abs(math.sin((Math.PI/180) * (this._rotation - 90)));
yval = -math.abs(math.cos((Math.PI/180) * (this._rotation - 90)));
} else {
xval = math.abs(math.cos((Math.PI/180) * (180 - this._rotation)));
yval = -math.abs(math.sin((Math.PI/180) * (180 - this._rotation)));
}
} else if ((this._rotation < 0) && (this._rotation > -90)) {
if (this._rotation > -45) {
yval = math.abs(math.sin((Math.PI/180) * (-this._rotation)));
xval = -math.abs(math.cos((Math.PI/180) * (-this._rotation)));
} else {
yval = math.abs(math.cos((Math.PI/180) * (90 - (-this._rotation))));
xval = -math.abs(math.sin((Math.PI/180) * (90 - (-this._rotation))));
}
} else if ((this._rotation > -180) && (this._rotation < -90)) {
if (this._rotation > -135) {
xval = math.abs(math.sin((Math.PI/180) * ((-this._rotation) - 90)));
yval = math.abs(math.cos((Math.PI/180) * ((-this._rotation) - 90)));
} else {
yval = math.abs(math.cos((Math.PI/180) * (180 - ((-this._rotation) - 90))));
xval = math.abs(math.sin((Math.PI/180) * (180 - ((-this._rotation) - 90))));
}
}
if (key.isdown(key.left)) {
if (_root.speed > 1) {
this._rotation = this._rotation - 5;
aill = 0;
} else if (_root.speed < -1) {
this._rotation = this._rotation + 5;
aill = 0;
}
chassis.wheels.prevFrame();
} else if (aill) {
} else {
aill = 1;
lefyt = 1;
}
if (key.isdown(key.right)) {
if (_root.speed > 1) {
this._rotation = this._rotation + 5;
ailr = 0;
} else if (_root.speed < -1) {
this._rotation = this._rotation - 5;
ailr = 0;
}
chassis.wheels.nextFrame();
} else if (ailr) {
} else {
ailr = 1;
lefyt = 2;
}
if (lefyt == 1) {
if (chassis.wheels._currentframe != 4) {
chassis.wheels.nextFrame();
} else {
lefyt = 0;
}
} else if (lefyt == 2) {
if (chassis.wheels._currentframe != 4) {
chassis.wheels.prevFrame();
} else {
lefyt = 0;
}
}
}
Instance of Symbol 49 MovieClip "car" in Frame 3
/* no clip actions */
Symbol 3 MovieClip Frame 1
stop();
Instance of Symbol 8 MovieClip in Symbol 9 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.bumpy = 1;
}
}
Symbol 16 MovieClip Frame 1
stop();
Instance of Symbol 18 MovieClip in Symbol 19 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.maincar)) {
if (secyn) {
} else {
secyn = 1;
_root.tagcount = _root.tagcount + 1;
_parent.c1.gotoandstop(2);
_parent.c2.gotoandstop(2);
}
} else {
secyn = 0;
}
}
Instance of Symbol 18 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.maincar)) {
if (_root.tagcount == 7) {
if (ailit) {
} else {
timenow = getTimer();
if (_root.lap == 0) {
_root.lap1 = (timenow - _root.starttime) / 1000;
} else if (_root.lap == 1) {
_root.lap2 = (timenow - _root.starttime) / 1000;
} else if (_root.lap == 2) {
_root.lap3 = (timenow - _root.starttime) / 1000;
_root.lapf = (_root.lap1 + _root.lap2) + _root.lap3;
}
_root.starttime = getTimer();
ailit = 1;
_root.reset = 1;
_root.lap++;
}
}
} else {
ailit = 0;
}
}
Symbol 26 Button
on (press) {
gotoAndStop (3);
}
Symbol 27 Button
on (press) {
getURL ("http://www.haveyouseenthat.com", "_blank");
}
Symbol 44 MovieClip Frame 4
stop();