Combined Code
frame 1 {
c1 = _url.indexOf('://') + 3;
c2 = _url.indexOf('/', c1);
domain = _url.substring(c1, c2);
if (domain == '70.84.129.52' || domain == 'www.ultimatearcade.com') {
url = 'yes';
} else {
url = 'no';
}
}
frame 1 {
stop();
fscommand('fullscreen', 'false');
fscommand('allowscale', 'false');
fscommand('showmenu', 'false');
}
movieClip 8 {
}
movieClip 9 {
frame 1 {
play();
}
frame 75 {
_root.gotoAndStop('loading');
stop();
}
}
frame 2 {
stop();
}
movieClip 14 {
}
movieClip 15 {
}
movieClip 16 {
}
movieClip 20 {
}
instance of movieClip 20 {
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
text = 'Loaded ' + percent + '%';
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndStop('welcomeScreen');
} else {
stop();
}
}
}
movieClip 22 {
}
frame 3 {
stop();
}
movieClip 25 {
}
movieClip 30 {
}
movieClip 36 {
}
button 43 {
on (release) {
play();
}
}
button 47 {
on (release) {
if (_root.url != 'yes') {
getURL('http://www.ultimatearcade.com/sports/games/extremeracing2.html', '_blank');
} else {
_root.view_scores = 1;
loadMovieNum('scores.xml', 25);
}
}
}
button 51 {
on (release) {
loadMovieNum('http://www.ultimatearcade.com/00games/sports/set1/extremeracing2/tell.swf', 4);
}
}
button 54 {
on (release) {
getURL('http://www.ultimatearcade.com', '_blank');
}
}
movieClip 58 {
}
movieClip 61 {
}
button 64 {
on (release) {
_root.carSelection = 3;
}
}
button 65 {
on (release) {
_root.carSelection = 2;
}
}
button 66 {
on (release) {
_root.carSelection = 1;
}
}
movieClip 67 {
frame 20 {
stop();
}
}
movieClip 72 {
}
movieClip 73 {
frame 1 {
stop();
}
}
instance of movieClip 73 {
onClipEvent (load) {
x = Math.round(Math.random() * 3);
_root.carSelection = x;
}
onClipEvent (enterFrame) {
if (_root.carSelection == 0) {
this.gotoAndStop(1);
}
if (_root.carSelection == 3) {
this.gotoAndStop(1);
}
if (_root.carSelection == 2) {
this.gotoAndStop(2);
}
if (_root.carSelection == 1) {
this.gotoAndStop(3);
}
}
}
button 76 {
on (release) {
getURL('http://www.ultimatearcade.com', '_blank');
}
}
movieClip 78 {
}
frame 4 {
var timing = false;
var paused = false;
var remaining;
var elapsedTime;
var elapsedHours;
var elapsedM;
var elapsedS;
var elapsedH;
var startTime;
var remaining;
var hours;
var minutes;
var seconds;
var hundredths;
if (!_root.timing) {
_root.startTime = getTimer();
_root.paused = false;
_root.timing = true;
}
_root.gameOverWindow.stop_btn.onPress = function () {
_root.timing = false;
_root.paused = false;
_root.timer_txt = '00:00:00';
};
_root.pause_btn.onPress = function () {
if (_root.timing) {
_root.timing = false;
_root.paused = true;
}
};
_root.onEnterFrame = function () {
if (elapsedM == 1 and elapsedS > 29) {
_root.congratulations = 'yes';
_root.health.gotoAndStop(51);
}
if (timing) {
elapsedTime = getTimer() - startTime;
elapsedHours = Math.floor(elapsedTime / 3600000);
remaining = elapsedTime - elapsedHours * 3600000;
elapsedM = Math.floor(remaining / 60000);
remaining -= elapsedM * 60000;
elapsedS = Math.floor(remaining / 1000);
remaining -= elapsedS * 1000;
elapsedH = Math.floor(remaining / 10);
if (elapsedHours < 10) {
hours = '0' + elapsedHours.toString();
} else {
hours = elapsedHours.toString();
}
if (elapsedM < 10) {
minutes = '0' + elapsedM.toString();
} else {
minutes = elapsedM.toString();
}
if (elapsedS < 10) {
seconds = '0' + elapsedS.toString();
} else {
seconds = elapsedS.toString();
}
if (elapsedH < 10) {
hundredths = '0' + elapsedH.toString();
} else {
hundredths = elapsedH.toString();
}
_root.timer_txt = minutes + ':' + seconds + ':' + hundredths;
}
};
}
frame 4 {
gameOver = 'no';
_root.finalScore = 0;
_root.bonusPoints = 0;
distance = 0;
_root.music.gotoAndStop(1);
stop();
_root.timer_txt = '00:00:00';
_root.congratulations = 'no';
}
movieClip 81 {
}
movieClip 82 {
instance of movieClip 81 {
onClipEvent (load) {
this._visible = 0;
}
}
}
instance of movieClip 82 {
onClipEvent (enterFrame) {
if (_root.car.shape.hitTest(this)) {
_root.carLocation = 'farleft';
}
}
}
instance of movieClip 82 {
onClipEvent (enterFrame) {
if (_root.car.shape.hitTest(this)) {
_root.carLocation = 'left';
}
}
}
instance of movieClip 82 {
onClipEvent (enterFrame) {
if (_root.car.shape.hitTest(this)) {
_root.carLocation = 'farright';
}
}
}
instance of movieClip 82 {
onClipEvent (enterFrame) {
if (_root.car.shape.hitTest(this)) {
_root.carLocation = 'right';
}
}
}
instance of movieClip 82 {
onClipEvent (enterFrame) {
if (_root.car.shape.hitTest(this)) {
_root.car._x += 20;
}
}
}
instance of movieClip 82 {
onClipEvent (enterFrame) {
if (_root.car.shape.hitTest(this)) {
_root.car._x -= 20;
}
}
}
instance of movieClip 82 {
onClipEvent (enterFrame) {
if (_root.car.shape.hitTest(this)) {
_root.carLocation = 'center';
}
}
}
movieClip 86 {
}
movieClip 87 {
}
movieClip 90 {
}
movieClip 91 {
frame 1 {
rnd = Math.floor(Math.random() * 90);
gotoAndPlay(rnd);
}
frame 76 {
gotoAndPlay(5);
}
}
movieClip 92 {
frame 26 {
stop();
}
frame 33 {
gotoAndStop(1);
}
frame 40 {
stop();
}
frame 47 {
gotoAndStop(1);
}
}
movieClip 97 {
frame 1 {
rnd = Math.floor(Math.random() * 20);
gotoAndPlay(rnd);
}
}
movieClip 100 {
frame 1 {
if (_root.gameOver == 'yes') {
stop();
}
}
}
movieClip 102 {
}
movieClip 103 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 104 {
instance of movieClip 103 {
onClipEvent (load) {
this.gotoAndStop(Math.ceil(Math.random() * 2));
}
}
}
movieClip 105 {
frame 1 {
stop();
oil = Math.round(Math.random() * 3);
}
frame 87 {
gotoAndStop(1);
}
frame 176 {
gotoAndStop(1);
}
frame 264 {
gotoAndStop(1);
}
}
movieClip 110 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 112 {
}
movieClip 117 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 118 {
frame 1 {
rnd = Math.floor(Math.random() * 6);
gotoAndStop(rnd);
stop();
}
instance of movieClip 110 {
onClipEvent (load) {
this.gotoAndStop(Math.ceil(Math.random() * 2));
}
}
instance of movieClip 112 {
onClipEvent (load) {
this._visible = 0;
rnd = Math.round(Math.random() * 2);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car.shapeCollision)) {
_root.car.gotoAndPlay('damage');
if (rnd == 1) {
_root.car._x -= 100;
} else {
_root.car._x += 100;
}
_root.health.nextFrame();
}
}
}
frame 2 {
stop();
}
instance of movieClip 117 {
onClipEvent (load) {
this.gotoAndStop(Math.ceil(Math.random() * 2));
}
}
instance of movieClip 112 {
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car.shapeCollision)) {
_root.car.gotoAndPlay('damage');
_root.car._x += 100;
_root.health.nextFrame();
}
}
}
frame 3 {
stop();
}
instance of movieClip 112 {
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car.shapeCollision)) {
_root.car.gotoAndPlay('damage');
_root.car._x -= 100;
_root.health.nextFrame();
}
}
}
frame 4 {
stop();
}
frame 5 {
stop();
}
instance of movieClip 112 {
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car.shapeCollision)) {
_root.car.gotoAndPlay('damage');
_root.car._x += 100;
_root.health.nextFrame();
}
}
}
frame 6 {
stop();
}
instance of movieClip 112 {
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car.shapeCollision)) {
_root.car.gotoAndPlay('damage');
_root.car._x -= 100;
_root.health.nextFrame();
}
}
}
}
movieClip 119 {
frame 1 {
x = Math.round(Math.random() * 10);
onEnterFrame = function () {
if (_root.gameOver == 'no' and _root.distance > 2) {
++x;
if (x > 5) {
play();
} else {
stop();
}
}
};
stop();
}
frame 31 {
if (_root.distance < 2) {
rnd = Math.floor(Math.random() * 100);
gotoAndPlay(36 + rnd);
} else {
gotoAndPlay(140);
}
}
}
movieClip 121 {
}
movieClip 132 {
frame 5 {
_root.road.gotoAndStop('right');
}
}
movieClip 137 {
}
movieClip 140 {
frame 1 {
if (_root.gameOver == 'yes') {
stop();
}
}
}
movieClip 141 {
frame 1 {
stop();
oil = Math.round(Math.random() * 3);
}
frame 98 {
gotoAndStop(1);
}
frame 198 {
gotoAndStop(1);
}
frame 297 {
gotoAndStop(1);
}
}
movieClip 142 {
frame 1 {
x = Math.round(Math.random() * 10);
onEnterFrame = function () {
if (_root.gameOver == 'no') {
++x;
if (x > 2) {
play();
} else {
stop();
}
}
};
stop();
}
frame 31 {
if (_root.distance < 2) {
rnd = Math.floor(Math.random() * 100);
gotoAndPlay(36 + rnd);
} else {
gotoAndPlay(135);
}
}
}
movieClip 143 {
frame 5 {
_root.road.gotoAndStop('straight');
}
}
movieClip 144 {
frame 5 {
_root.road.gotoAndStop('left');
}
}
movieClip 145 {
frame 1 {
x = Math.round(Math.random() * 10);
onEnterFrame = function () {
if (_root.gameOver == 'no') {
++x;
if (x > 2) {
play();
} else {
stop();
}
}
};
stop();
}
frame 31 {
if (_root.distance < 2) {
rnd = Math.floor(Math.random() * 100);
gotoAndPlay(36 + rnd);
} else {
gotoAndPlay(135);
}
}
}
movieClip 146 {
frame 5 {
_root.road.gotoAndStop('straight');
}
}
movieClip 147 {
frame 1 {
_root.skyline.gotoAndStop(1);
}
frame 1 {
stop();
_root.currentDirection = 'straight';
}
instance oil of movieClip 105 {
onClipEvent (enterFrame) {
if (_root.gameOver == 'no') {
if (this._currentframe == 1) {
if (this.oil == 1) {
this.gotoAndPlay('leftLane');
}
if (this.oil == 2) {
this.gotoAndPlay('centerLane');
}
if (this.oil == 3) {
this.gotoAndPlay('rightLane');
}
}
}
}
}
frame 12 {
_root.skyline.gotoAndPlay('right');
}
frame 12 {
stop();
_root.currentDirection = 'straight_right';
}
frame 25 {
stop();
_root.currentDirection = 'right';
}
instance oil of movieClip 141 {
onClipEvent (enterFrame) {
if (_root.gameOver == 'no') {
if (this._currentframe == 1) {
if (this.oil == 1) {
this.gotoAndPlay('leftLane');
}
if (this.oil == 2) {
this.gotoAndPlay('centerLane');
}
if (this.oil == 3) {
this.gotoAndPlay('rightLane');
}
}
}
}
}
frame 33 {
_root.skyline.gotoAndPlay('rightBack');
}
frame 33 {
stop();
_root.currentDirection = 'right_straight';
}
frame 46 {
_root.skyline.gotoAndPlay('left');
}
frame 46 {
stop();
_root.currentDirection = 'straight_left';
}
frame 58 {
stop();
_root.currentDirection = 'left';
}
instance oil of movieClip 141 {
onClipEvent (enterFrame) {
if (_root.gameOver == 'no') {
if (this._currentframe == 1) {
if (this.oil == 1) {
this.gotoAndPlay('leftLane');
}
if (this.oil == 2) {
this.gotoAndPlay('centerLane');
}
if (this.oil == 3) {
this.gotoAndPlay('rightLane');
}
}
}
}
}
frame 66 {
_root.skyline.gotoAndPlay('leftBack');
}
frame 66 {
stop();
_root.currentDirection = 'left_straight';
}
}
movieClip 151 {
}
movieClip 152 {
frame 1 {
stop();
}
}
movieClip 153 {
frame 1 {
stop();
}
}
movieClip 154 {
frame 1 {
stop();
}
}
movieClip 155 {
instance of movieClip 154 {
onClipEvent (load) {
this.gotoAndStop(Math.ceil(Math.random() * 7));
}
}
}
movieClip 156 {
frame 1 {
if (_root.road._currentframe == 1 and _root.gameOver == 'no') {
play();
} else {
gotoAndPlay(35);
}
}
frame 45 {
gotoAndPlay(1);
}
}
movieClip 158 {
}
movieClip 161 {
}
movieClip 164 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 167 {
}
movieClip 172 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 179 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 180 {
}
movieClip 205 {
frame 2 {
_root.health.nextFrame();
}
frame 7 {
_root.health.nextFrame();
}
frame 13 {
_root.health.nextFrame();
}
frame 16 {
_root.oilSpinOut = 'no';
_root.distanceTimer = 0;
_root.distanceController = 5;
_root.distanceSpeedTimer = 0;
if (_root.gameOver == 'yes') {
stop();
} else {
_parent._parent._parent.gotoAndStop(1);
}
}
}
movieClip 231 {
frame 1 {
_root.health.nextFrame();
}
frame 7 {
_root.health.nextFrame();
}
frame 13 {
_root.health.nextFrame();
}
frame 16 {
_root.oilSpinOut = 'no';
_root.distanceTimer = 0;
_root.distanceController = 5;
_root.distanceSpeedTimer = 0;
if (_root.gameOver == 'yes') {
stop();
} else {
_parent._parent._parent.gotoAndStop(1);
}
}
}
movieClip 259 {
frame 1 {
_root.health.nextFrame();
}
frame 7 {
_root.health.nextFrame();
}
frame 13 {
_root.health.nextFrame();
}
frame 16 {
_root.oilSpinOut = 'no';
_root.distanceTimer = 0;
_root.distanceController = 5;
_root.distanceSpeedTimer = 0;
if (_root.gameOver == 'yes') {
stop();
} else {
_parent._parent._parent.gotoAndStop(1);
}
}
}
movieClip 260 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 263 {
}
movieClip 265 {
}
movieClip 266 {
}
movieClip 267 {
}
movieClip 268 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 271 {
}
movieClip 273 {
}
movieClip 274 {
}
movieClip 275 {
}
movieClip 276 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 277 {
frame 1 {
stop();
}
instance of movieClip 164 {
onClipEvent (load) {
if (_root.carSelection == 1) {
this.gotoAndStop('carSelection1');
}
if (_root.carSelection == 2) {
this.gotoAndStop('carSelection2');
}
if (_root.carSelection == 3) {
this.gotoAndStop('carSelection3');
}
}
}
frame 2 {
stop();
}
instance of movieClip 172 {
onClipEvent (load) {
if (_root.carSelection == 1) {
this.gotoAndStop('carSelection1');
}
if (_root.carSelection == 2) {
this.gotoAndStop('carSelection2');
}
if (_root.carSelection == 3) {
this.gotoAndStop('carSelection3');
}
}
}
frame 3 {
stop();
}
instance of movieClip 179 {
onClipEvent (load) {
if (_root.carSelection == 1) {
this.gotoAndStop('carSelection1');
}
if (_root.carSelection == 2) {
this.gotoAndStop('carSelection2');
}
if (_root.carSelection == 3) {
this.gotoAndStop('carSelection3');
}
}
}
frame 4 {
stop();
}
instance spinout of movieClip 260 {
onClipEvent (load) {
if (_root.carSelection == 1) {
this.gotoAndStop('carSelection1');
}
if (_root.carSelection == 2) {
this.gotoAndStop('carSelection2');
}
if (_root.carSelection == 3) {
this.gotoAndStop('carSelection3');
}
}
}
frame 5 {
stop();
}
instance of movieClip 268 {
onClipEvent (load) {
if (_root.carSelection == 1) {
this.gotoAndStop('carSelection1');
}
if (_root.carSelection == 2) {
this.gotoAndStop('carSelection2');
}
if (_root.carSelection == 3) {
this.gotoAndStop('carSelection3');
}
}
}
frame 6 {
stop();
}
instance of movieClip 276 {
onClipEvent (load) {
if (_root.carSelection == 1) {
this.gotoAndStop('carSelection1');
}
if (_root.carSelection == 2) {
this.gotoAndStop('carSelection2');
}
if (_root.carSelection == 3) {
this.gotoAndStop('carSelection3');
}
}
}
}
movieClip 278 {
instance car of movieClip 277 {
onClipEvent (load) {
_root.oilSpinOut = 'no';
}
onClipEvent (enterFrame) {
if (_root.gameOver == 'no') {
if (_root.car.shape.hitTest(_root.road.oil) and _root.oilSpinOut != 'yes') {
this.gotoAndStop(4);
_root.oilSpinOut = 'yes';
}
if (_root.oilSpinOut == 'no') {
if (_root.currentDirection == 'straight' and _root.carLocation == 'center') {
this.gotoAndStop(1);
}
if (_root.currentDirection == 'left' and _root.carLocation == 'center') {
this.gotoAndStop(2);
}
if (_root.currentDirection == 'right' and _root.carLocation == 'center') {
this.gotoAndStop(3);
}
if (_root.carLocation == 'left') {
this.gotoAndStop(3);
}
if (_root.carLocation == 'farleft') {
this.gotoAndStop(6);
}
if (_root.carLocation == 'right') {
this.gotoAndStop(2);
}
if (_root.carLocation == 'farright') {
this.gotoAndStop(5);
}
}
}
}
}
}
movieClip 279 {
frame 1 {
if (_root.gameOver == 'no') {
play();
} else {
stop();
}
}
instance shape of movieClip 82 {
onClipEvent (load) {
this._visible = 0;
}
}
instance shapeCollision of movieClip 158 {
onClipEvent (load) {
this._visible = 0;
}
}
frame 7 {
gotoAndPlay(1);
}
frame 8 {
play();
_root.distanceTimer = 0;
_root.distanceController = 5;
_root.distanceSpeedTimer = 0;
}
}
instance car of movieClip 279 {
onClipEvent (load) {
_root.distanceTimer = 0;
_root.distanceController = 5;
_root.distanceSpeedTimer = 0;
}
onClipEvent (enterFrame) {
if (_root.gameOver == 'yes') {
this.gotoAndStop(1);
}
_root.carX = _root.car._x;
if (_root.gameOver == 'no') {
if (_root.distanceSpeedTimer > 100) {
_root.distanceController = 4;
}
if (_root.distanceSpeedTimer > 200) {
_root.distanceController = 3;
}
if (_root.distanceSpeedTimer > 300) {
_root.distanceController = 2;
}
if (_root.distanceSpeedTimer > 400) {
_root.distanceController = 1;
}
++_root.distanceTimer;
++_root.distanceSpeedTimer;
if (_root.oilSpinOut == 'no' and _root.distanceTimer > _root.distanceController) {
_root.distance += 10;
_root.distanceTimer = 0;
}
if (Key.isDown(38)) {
} else {
if (Key.isDown(40)) {
} else {
if (Key.isDown(39)) {
this._x += 20;
} else {
if (Key.isDown(37)) {
this._x -= 20;
} else {}
}
}
}
}
}
}
movieClip 285 {
}
movieClip 290 {
frame 20 {
stop();
}
}
movieClip 293 {
}
movieClip 294 {
frame 20 {
stop();
}
}
movieClip 297 {
}
movieClip 298 {
frame 20 {
stop();
}
}
movieClip 301 {
}
movieClip 302 {
frame 20 {
stop();
}
}
movieClip 305 {
}
movieClip 306 {
frame 20 {
stop();
}
}
movieClip 307 {
}
instance of movieClip 307 {
onClipEvent (enterFrame) {
if (_root.gameOver != 'yes') {
if (_root.distanceController == 5) {
this.gotoAndStop(1);
}
if (_root.distanceController == 4) {
this.gotoAndStop(2);
}
if (_root.distanceController == 3) {
this.gotoAndStop(3);
_root.bonusPoints += 1;
}
if (_root.distanceController == 2) {
this.gotoAndStop(4);
_root.bonusPoints += 5;
}
if (_root.distanceController == 1) {
this.gotoAndStop(5);
_root.bonusPoints += 10;
}
}
}
}
movieClip 314 {
frame 1 {
stop();
}
frame 51 {
_root.gameOver = 'yes';
if (_root.timing) {
_root.timing = false;
_root.paused = true;
}
_root.music.gotoAndStop(2);
_root.gameOverWindow.gotoAndPlay(2);
}
}
movieClip 323 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance of movieClip 323 {
onClipEvent (load) {
this.directionTimer = 0;
this.done = 'no';
}
onClipEvent (enterFrame) {
if (_root.gameOver == 'no') {
if (this.done == 'no') {
if ((this._currentframe == 1 or this._currentframe == 4) and _root.currentDirection == 'straight') {
_root.road.gotoAndStop('straight');
this.done = 'yes';
}
if ((this._currentframe == 1 or this._currentframe == 4) and _root.currentDirection == 'left') {
_root.road.gotoAndStop('left_straight');
this.done = 'yes';
}
if ((this._currentframe == 1 or this._currentframe == 4) and _root.currentDirection == 'right') {
_root.road.gotoAndStop('right_straight');
this.done = 'yes';
}
if (this._currentframe == 2 and _root.currentDirection == 'straight') {
_root.road.gotoAndStop('straight_left');
this.done = 'yes';
}
if (this._currentframe == 2 and _root.currentDirection == 'left') {
_root.road.gotoAndStop('left');
this.done = 'yes';
}
if (this._currentframe == 2 and _root.currentDirection == 'right') {
_root.road.gotoAndStop('right_straight');
this.done = 'yes';
}
if (this._currentframe == 3 and _root.currentDirection == 'straight') {
_root.road.gotoAndStop('straight_right');
this.done = 'yes';
}
if (this._currentframe == 3 and _root.currentDirection == 'left') {
_root.road.gotoAndStop('left_straight');
this.done = 'yes';
}
if (this._currentframe == 3 and _root.currentDirection == 'right') {
_root.road.gotoAndStop('right');
this.done = 'yes';
}
}
if (_root.currentDirection == 'straight' or _root.currentDirection == 'left' or _root.currentDirection == 'right') {
++this.directionTimer;
if (_root.road.oil._currentframe == 1 and _root.road.opponent._currentframe == 1) {
if (this.directionTimer > 50) {
this.gotoAndStop(Math.ceil(Math.random() * 4));
this.directionTimer = 0;
this.done = 'no';
}
}
}
}
}
}
movieClip 326 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance of movieClip 326 {
onClipEvent (enterFrame) {
if (_root.gameOver == 'yes') {
this.gotoAndStop(2);
}
}
}
button 328 {
on (release) {
gotoAndStop(2);
}
}
button 331 {
on (release) {
gotoAndStop(1);
}
}
movieClip 332 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 336 {
}
movieClip 342 {
}
movieClip 343 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 344 {
on (release) {
_root.gotoAndStop('welcome');
}
}
button 353 {
on (release) {
if (_root.url != 'yes') {
getURL('http://www.ultimatearcade.com/sports/games/extremeracing2.html', '_top');
} else {
_root.view_scores = 2;
loadMovieNum('scores.xml', 25);
gotoAndStop(2);
}
}
}
movieClip 355 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 357 {
frame 1 {
stop();
}
frame 2 {
_root.finalScore = _root.distance + _root.bonusPoints;
_root.bgSound.stop();
_root.car.gotoAndStop(1);
}
frame 6 {
_root.timer_txt = '01:30:00';
_root.elapsedM = 0;
_root.elapsedS = 0;
}
frame 6 {
stop();
}
instance of movieClip 343 {
onClipEvent (load) {
if (_root.congratulations == 'yes') {
this.gotoAndStop(2);
}
}
}
}