Frame 1
gameName = "roadcrisis";
debug = false;
stop();
fscommand ("showmenu", "false");
prel.onEnterFrame = function () {
prel.procent.text = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
prel.gotoAndStop(prel.procent.text);
if (Number(prel.procent.text) > 99) {
play();
delete this.onEnterFrame;
}
};
Frame 2
stop();
Frame 3
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "_mochibot_";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("99bc4c2d", this, 10301, true);
Frame 4
stop();
_quality = _global.qlty;
_global.PauseScore = 0;
_global.PauseQueue = 0;
_global.Lives = 3;
_global.Mins = 2;
_global.cross = 0;
_global.fxOn = 0;
_global.qlty = "low";
_global.bgMusic = true;
ambulanceSound = new Sound();
citySound = new Sound();
carCrash = new Sound();
buttonClick1 = new Sound();
buttonClick2 = new Sound();
trainCrossing = new Sound();
bgMusic = new Sound();
carHorns = new Sound();
trainHorn = new Sound();
beep = new Sound();
ambulanceSound.attachSound("ambulance");
bgMusic.attachSound("mainmusic");
citySound.attachSound("citysound");
carCrash.attachSound("carcrash");
buttonClick1.attachSound("click");
buttonClick2.attachSound("lightclick");
trainCrossing.attachSound("traincrossing");
trainHorn.attachSound("trainhorn");
carHorns.attachSound("carhorns");
beep.attachSound("beep");
bgMusic.start(0, 99999);
Frame 5
stop();
function carCollision() {
if (_global.pauseMe != 1) {
carsOnMap = arrCars.length;
ctr = 0;
while (ctr < carsOnMap) {
ctr2 = 0;
while (ctr2 < carsOnMap) {
if (ctr == ctr2) {
} else {
mycar1 = _root["car" + arrCars[ctr]];
mycar2 = _root["car" + arrCars[ctr2]];
if (((((((mycar1.c1.hitTest(mycar2.pp1.x, mycar2.pp1.y) || (mycar1.c1.hitTest(mycar2.pp2.x, mycar2.pp2.y))) || (mycar1.c1.hitTest(mycar2.pp3.x, mycar2.pp3.y))) || (mycar1.c1.hitTest(mycar2.pp4.x, mycar2.pp4.y))) || (mycar2.c1.hitTest(mycar1.pp1.x, mycar1.pp1.y))) || (mycar2.c1.hitTest(mycar1.pp2.x, mycar1.pp2.y))) || (mycar2.c1.hitTest(mycar1.pp3.x, mycar1.pp3.y))) || (mycar2.c1.hitTest(mycar1.pp4.x, mycar1.pp4.y))) {
if ((!mycar1.crash) || (!mycar2.crash)) {
if (_global.fxOn == 0) {
_root.carCrash.start(0, 1);
}
_global.pauseMe = 1;
_global.PauseScore = _root.score + pass_Score;
_global.PauseQueue = _root.queue + pass_Queue;
_global.Lives = _global.Lives - 1;
if (_global.Lives == 2) {
_root.lives.gotoAndPlay(2);
} else if (_global.Lives == 1) {
_root.lives.gotoAndPlay(21);
}
mycar1.crash = true;
mycar2.crash = true;
mycar1.mcCrashPrompt.play();
mycar2.mcCrashPrompt.play();
mycar1.speed = 0;
mycar2.speed = 0;
carsOnMap = arrCars.length;
ctr3 = 0;
while (ctr3 < carsOnMap) {
delete _root["car" + arrCars[ctr3]].onEnterFrame;
if ((_root["car" + arrCars[ctr3]] != mycar1) && (_root["car" + arrCars[ctr3]] != mycar2)) {
_root["car" + arrCars[ctr3]].removeMovieClip();
}
ctr3++;
}
arrCars = [];
clearInterval(trainID);
clearInterval(myID);
clearInterval(timerID);
clearInterval(hitID);
if (_global.Lives <= 0) {
_root.gameOver.finalscore = _root.score;
_root.gameOver.heading = "GAME OVER";
clearInterval(myID);
clearInterval(timerID);
clearInterval(hitID);
clearInterval(trainID);
_root.mycar1.removeMovieClip();
_root.mycar2.removeMovieClip();
_root.lives.gotoAndStop(1);
gameOver._visible = true;
gameOver.remarks.msg = "Oh Dear! You have made too many accidents. You're fired!";
gameOver.heading = "GAME OVER";
} else {
_root.queue = 0;
_root.pager.alert.gotoAndStop(1);
accidentPrompt._visible = true;
}
break;
}
} else if (mycar1.bumper_front.hitTest(mycar2.bumper_rear)) {
mycar1.hit = mycar2;
mycar1.speed = 0;
} else if (mycar1.hit == mycar2) {
mycar1.hit = "";
mycar1.speed = 3;
}
}
ctr2++;
}
if (mycar1.crash && (mycar2.crash)) {
break;
}
ctr++;
}
}
}
function makeCar() {
if (_global.pauseMe != 1) {
if (arrCars.length < 15) {
w = random(100);
if (w < 45) {
car = _root.attachMovie("car", "car" + carNo, carNo);
car.cacheAsBitmap = true;
car.id = carNo;
arrCars.push(carNo++);
car.gotoAndStop(random(15) + 1);
car.hit = "";
car.xspeed = 0;
car.yspeed = 0;
car.crash = false;
car.hitting = "";
car.exiting = "";
car.turnTo = "";
car.checkpoint = "";
car.nxtTurn = "";
car.other = "";
car.collision = "";
car.speed = 4;
car.parent = _root["e" + (random(8) + 1)];
car._rotation = car.parent.rot;
car.direction = car.parent.direction;
car._x = car.parent._x;
car._y = car.parent._y;
car.onEnterFrame = function () {
if (_global.pauseMe != 1) {
if (!this.crash) {
this.xspeed = Math.cos((Math.PI/180) * this._rotation) * this.speed;
this.yspeed = Math.sin((Math.PI/180) * this._rotation) * this.speed;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this.cp = 1;
while (this.cp <= 4) {
ob = new Object();
ob.x = this["p" + this.cp]._x;
ob.y = this["p" + this.cp]._y;
this.localToGlobal(ob);
this["pp" + this.cp] = new Object();
this["pp" + this.cp].x = ob.x;
this["pp" + this.cp].y = ob.y;
this.cp++;
}
if (this.c1.hitTest(_root.rail1) || (this.c1.hitTest(_root.rail2))) {
this.speed = 1;
} else if (this.hit == "") {
this.speed = 3;
}
qs = 1;
while (qs <= 26) {
if (this.hitTest(_root["q" + qs]) && (this.speed == 0)) {
if (this.bump != _root["q" + qs]) {
this.bump = _root["q" + qs];
_root.queue++;
if (_root.queue > 0) {
_root.pager.alert.gotoAndPlay(2);
} else {
_root.pager.alert.gotoAndStop(1);
}
}
} else if (this.bump == _root["q" + qs]) {
this.bump = "";
_root.queue--;
_root.pager.alert.gotoAndStop(1);
if (_root.queue < 0) {
_root.queue = 0;
}
}
qs++;
}
if (_root.queue >= 3) {
_root.gameOver.finalscore = _root.score;
clearInterval(myID);
clearInterval(timerID);
clearInterval(hitID);
clearInterval(trainID);
carsOnMap = arrCars.length;
ctr3 = 0;
while (ctr3 < carsOnMap) {
delete _root["car" + arrCars[ctr3]].onEnterFrame;
_root["car" + arrCars[ctr3]].removeMovieClip();
ctr3++;
}
arrCars = [];
_root.mycar1.removeMovieClip();
_root.mycar2.removeMovieClip();
_root.lives.gotoAndStop(1);
_root.pager.alert.gotoAndPlay(1);
gameOver._visible = true;
_root.gameOver.heading = "GAME OVER";
gameOver.remarks.msg = "You took too long to respond to the queue. People don't like waiting!";
}
if (this.c1.hitTest(_root.loco)) {
if (_global.fxOn == 0) {
_root.carCrash.start(0, 1);
}
_global.pauseMe = 1;
_global.PauseScore = _root.score + pass_Score;
_global.PauseQueue = _root.queue + pass_Queue;
_global.Lives = _global.Lives - 1;
if (_global.Lives == 2) {
_root.lives.gotoAndPlay(2);
} else if (_global.Lives == 1) {
_root.lives.gotoAndPlay(21);
}
carsOnMap = arrCars.length;
ctr3 = 0;
while (ctr3 < carsOnMap) {
delete _root["car" + arrCars[ctr3]].onEnterFrame;
if ((_root["car" + arrCars[ctr3]] != mycar1) && (_root["car" + arrCars[ctr3]] != mycar2)) {
_root["car" + arrCars[ctr3]].removeMovieClip();
}
ctr3++;
}
arrCars = [];
clearInterval(trainID);
clearInterval(myID);
clearInterval(timerID);
clearInterval(hitID);
clearInterval(gateID);
if (_global.Lives <= 0) {
_root.gameOver.finalscore = _root.score;
clearInterval(myID);
clearInterval(timerID);
clearInterval(hitID);
clearInterval(trainID);
_root.mycar1.removeMovieClip();
_root.mycar2.removeMovieClip();
_root.lives.gotoAndStop(1);
gameOver._visible = true;
gameOver.remarks.msg = "Oh Dear! You have made too many accidents. You're fired!";
} else {
_root.queue = 0;
_root.pager.alert.gotoAndStop(1);
accidentPrompt._visible = true;
}
}
if (this.c1.hitTest(_root.inter0.r1)) {
if (this.direction == "up") {
this.turnTo = "right";
} else {
this.turnTo = "straight";
}
}
z = 1;
while (z <= 6) {
if (this.c1.hitTest(_root["inter" + z].r1)) {
if (this.hitting != _root["inter" + z]) {
this.hitting = _root["inter" + z];
if (this.turnTo == "") {
if (this.direction == "up") {
this.turn = random(12);
if (this.turn <= 4) {
this.turnTo = "right";
} else if ((this.turn <= 8) && (this.turn >= 5)) {
this.turnTo = "left";
} else {
this.turnTo = "straight";
}
}
}
} else if ((this._rotation % 90) == 0) {
this.turnTo = "";
}
}
if (this.c1.hitTest(_root["inter" + z].r2)) {
if (this.hitting != _root["inter" + z]) {
this.hitting = _root["inter" + z];
if (this.turnTo == "") {
if (this.direction == "right") {
this.turn = random(12);
if (this.turn <= 4) {
this.turnTo = "right";
} else if ((this.turn <= 8) && (this.turn >= 5)) {
this.turnTo = "left";
} else {
this.turnTo = "straight";
}
}
}
} else if ((this._rotation % 90) == 0) {
this.turnTo = "";
}
}
if (this.c1.hitTest(_root["inter" + z].r3)) {
if (this.hitting != _root["inter" + z]) {
this.hitting = _root["inter" + z];
if (this.turnTo == "") {
if (this.direction == "down") {
this.turn = random(12);
if (this.turn <= 4) {
this.turnTo = "right";
} else if ((this.turn <= 8) && (this.turn >= 5)) {
this.turnTo = "left";
} else {
this.turnTo = "straight";
}
}
}
} else if ((this._rotation % 90) == 0) {
this.turnTo = "";
}
}
if (this.c1.hitTest(_root["inter" + z].r4)) {
if (this.hitting != _root["inter" + z]) {
this.hitting = _root["inter" + z];
if (this.turnTo == "") {
if (this.direction == "left") {
this.turn = random(12);
if (this.turn <= 4) {
this.turnTo = "right";
} else if ((this.turn <= 8) && (this.turn >= 5)) {
this.turnTo = "left";
} else {
this.turnTo = "straight";
}
}
}
} else if ((this._rotation % 90) == 0) {
this.turnTo = "";
}
}
z++;
}
if (this.turnTo != "") {
if (this.turnTo == "right") {
this.speed = 2;
this._rotation = this._rotation + 9;
if ((this._rotation % 90) == 0) {
if (this.direction == "right") {
this.direction = "down";
} else if (this.direction == "left") {
this.direction = "up";
} else if (this.direction == "down") {
this.direction = "left";
} else if (this.direction == "up") {
this.direction = "right";
}
}
}
}
if (this.turnTo != "") {
if (this.turnTo == "left") {
this.speed = 2;
this._rotation = this._rotation - 3;
if ((this._rotation % 90) == 0) {
if (this.direction == "left") {
this.direction = "down";
} else if (this.direction == "right") {
this.direction = "up";
} else if (this.direction == "up") {
this.direction = "left";
} else if (this.direction == "down") {
this.direction = "right";
}
}
}
}
if (this.c1.hitTest(_root.enter3.park)) {
if (this.direction != "left") {
this.direction = "left";
} else {
this.turnTo = "right";
}
}
if (this.c1.hitTest(_root.enter3.parked)) {
removeCar(this.id);
this.removeMovieClip();
_root.score = _root.score + 10;
}
if (this.c1.hitTest(_root.enter2.topark)) {
if (this.direction != "down") {
this.turnTo = "";
} else {
this.turnTo = "right";
}
}
pt = 1;
while (pt <= 8) {
if (this.c1.hitTest(_root["exit" + pt])) {
removeCar(this.id);
this.removeMovieClip();
_root.score = _root.score + 25;
}
pt++;
}
g = 1;
while (g <= 4) {
if (this.hitTest(_root.crossing["rc" + g])) {
this.speed = 0;
}
g++;
}
s = 1;
while (s <= 23) {
if (this.checkpoint != _root["tf" + s]) {
this.checkpoint = _root["tf" + s];
if (this.c1.hitTest(this.checkpoint.nogo)) {
this.speed = 0;
}
} else if (this.hit == "") {
this.speed = 3;
}
s++;
}
}
}
};
}
}
}
}
function removeCar(id) {
num = arrCars.length;
ctr = 0;
while (ctr < num) {
(arrCars[ctr] + "==") + id;
if (arrCars[ctr] == id) {
arrCars.splice(ctr, 1);
}
ctr++;
}
}
function startGame() {
if (_global.fxOn != 1) {
_root.citySound.start(0, 999);
}
myID = setInterval(makeCar, 1200);
timerID = setInterval(myTimer, 1000);
hitID = setInterval(carCollision, 50);
trainID = setInterval(goLoco, 800);
gateID = setInterval(rrOpenGates, 800);
}
function myTimer() {
if (_global.pauseMe != 1) {
_root.secs--;
if (_root.secs < 0) {
_root.secs = 59;
_root.mins--;
if (_root.mins < 0) {
stopAllSounds();
_root.anotherBGMusic.start(0, 99);
_root.anotherBGMusic.setVolume(50);
clearInterval(trainID);
clearInterval(timerID);
clearInterval(myID);
clearInterval(hitID);
clearInterval(carLoopID);
carsOnMap = arrCars.length;
ctr3 = 0;
while (ctr3 < carsOnMap) {
delete _root["car" + arrCars[ctr3]].onEnterFrame;
_root["car" + arrCars[ctr3]].removeMovieClip();
ctr3++;
}
arrCars = [];
_root.mins = _global.Mins;
_root.secs = "0";
_root.pager.alert.gotoAndStop(1);
_root.gameOver._visible = true;
_root.gameOver.finalscore = _root.score;
if (_root.gameOver.finalscore <= 800) {
_root.gameOver.remarks.msg = "Not too bad. Although you could have done a lot better.";
} else if ((_root.gameOver.finalscore > 800) && (_root.gameOver.finalscore <= 1500)) {
_root.gameOver.remarks.msg = "Well done! You have successfully managed the city's traffic.";
} else if (_root.gameOver.finalscore > 1500) {
_root.gameOver.remarks.msg = "Excellent! You have performed with flying colors! How about a fulltime job?";
}
}
}
if (_root.secs < 10) {
_root.secs = "0" + _root.secs;
} else {
_root.secs = _root.secs;
}
_root.mins.text = _root.mins;
}
}
function goLoco() {
if (_global.pauseMe != 1) {
if (_root.secs == 40) {
if (_global.fxOn != 1) {
_root.trainHorn.start(0, 1);
}
loco.cacheAsBitmap = true;
loco.hit = "";
loco.xspeed = 0;
loco.yspeed = 0;
loco.crash = false;
loco.speed = 5;
loco._rotation = 90;
loco.onEnterFrame = function () {
if (_global.pauseMe != 1) {
if (!this.crash) {
this.xspeed = Math.cos((Math.PI/180) * this._rotation) * this.speed;
this.yspeed = Math.sin((Math.PI/180) * this._rotation) * this.speed;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
}
if (this._y > 1000) {
_root.trainCrossing.stop();
_root.trainHorn.stop();
if (_global.bgTunes != 1) {
_root.bgMusic.start(0, 9999);
}
if (_global.fxOn != 1) {
_root.citySound.start(0, 9999);
}
rrCloseGates();
this._x = 87;
this._y = -825.8;
this.speed = 0;
}
}
};
}
}
if (_root.queue >= 3) {
_root.gameOver.finalscore = _root.score;
clearInterval(myID);
clearInterval(timerID);
clearInterval(hitID);
clearInterval(trainID);
clearInterval(carLoopID);
carsOnMap = arrCars.length;
ctr3 = 0;
while (ctr3 < carsOnMap) {
delete _root["car" + arrCars[ctr3]].onEnterFrame;
_root["car" + arrCars[ctr3]].removeMovieClip();
ctr3++;
}
arrCars = [];
_root.mycar1.removeMovieClip();
_root.mycar2.removeMovieClip();
_root.lives.gotoAndStop(1);
_root.pager.alert.gotoAndPlay(1);
gameOver._visible = true;
gameOver.remarks.msg = "You took too long to respond to the queue. People don't like waiting!";
}
}
function rrOpenGates() {
if (_root.secs == 45) {
if (_global.fxOn != 1) {
_root.trainCrossing.start();
}
a = 1;
while (a <= 2) {
_root.crossing["rc" + a]._rotation = 90;
a++;
}
b = 3;
while (b <= 4) {
_root.crossing["rc" + b]._rotation = -90;
b++;
}
}
}
function rrCloseGates() {
a = 1;
while (a <= 2) {
_root.crossing["rc" + a]._rotation = 180;
a++;
}
b = 3;
while (b <= 4) {
_root.crossing["rc" + b]._rotation = 0;
b++;
}
}
carNo = 0;
pass_Score = 0;
pass_Queue = 0;
pass_Life = 0;
pass_mins = 0;
pass_secs = 0;
queue = 0 + _global.PauseQueue;
score = 0 + _global.PauseScore;
penalty = 0 + _global.Lives;
arrCars = new Array();
var mycar1;
var mycar2;
startGame();
_root.mins = _global.Mins;
_root.secs = 0;
if (_global.fxOn != 1) {
citySound.start(0, 9999);
}
Instance of Symbol 252 MovieClip "e1" in Frame 5
onClipEvent (load) {
rot = 90;
direction = "down";
}
Instance of Symbol 252 MovieClip "e2" in Frame 5
onClipEvent (load) {
rot = 90;
direction = "down";
}
Instance of Symbol 252 MovieClip "e3" in Frame 5
onClipEvent (load) {
rot = 180;
direction = "left";
}
Instance of Symbol 252 MovieClip "e4" in Frame 5
onClipEvent (load) {
rot = 180;
direction = "left";
}
Instance of Symbol 252 MovieClip "e5" in Frame 5
onClipEvent (load) {
rot = -90;
direction = "up";
}
Instance of Symbol 252 MovieClip "e6" in Frame 5
onClipEvent (load) {
rot = -90;
direction = "up";
}
Instance of Symbol 252 MovieClip "e7" in Frame 5
onClipEvent (load) {
direction = "right";
rot = 0;
}
Instance of Symbol 252 MovieClip "e8" in Frame 5
onClipEvent (load) {
direction = "right";
rot = 0;
}
Instance of Symbol 327 MovieClip [accidentPrompt] "accidentPrompt" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 345 MovieClip "gameOver" in Frame 5
onClipEvent (load) {
_visible = false;
}
Frame 6
function updateScoreboard(sNum) {
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
_root["mcScoreboard" + sNum].mcLoading._visible = false;
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = _root["mcScoreboard" + sNum].sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.item = myPlayer.length;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.speedy = 0;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.desty = 0;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "up")) {
trace("up");
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
trace((this._parent.mcBlock._height + " - ") + (this.mcScore._height * this.item));
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) {
trace("down");
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
if (sNum == 1) {
updateScoreboard(2);
}
};
if (sNum == 1) {
xmlPlayer.load((((("http://" + _root.Dsource) + ".freeonlinegames.com/scoreboard/getTopPlayer.php?id=") + _root.gameID) + "&rand=") + random(999999));
} else if (sNum == 2) {
xmlPlayer.load(((((("http://" + _root.Dsource) + ".freeonlinegames.com/scoreboard/getTopPlayer.php?id=") + _root.gameID) + "&rand=") + random(999999)) + "&filt=1");
}
}
stop();
var scoreTune = new Sound();
scoreTune.attachSound("scoreSound");
scoreTune.setVolume(30);
scoreTune.start(0, 500);
var gameID = 18;
Dsource = "www";
mcScoreboard1.sboard.dir = "stop";
mcScoreboard2.sboard.dir = "stop";
mcScoreboard1.sboard.mcScoreHolder.mcScore._visible = false;
mcScoreboard2.sboard.mcScoreHolder.mcScore._visible = false;
updateScoreboard(1);
backfrhighs_btn.onRelease = function () {
gotoAndStop (4);
};
Instance of Symbol 197 MovieClip in Frame 6
on (release) {
_root.gotoAndStop(4);
}
Symbol 23 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 42
Symbol 43 MovieClip Frame 55
stop();
_parent.play();
Symbol 84 MovieClip Frame 1
stop();
l = 0;
Instance of Symbol 27 MovieClip "mcNotice" in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 84 MovieClip Frame 28
l++;
if (l < 6) {
gotoAndPlay ("loop");
} else if (_url.indexOf("") >= 0) {
_root.play();
stop();
} else if (_root.debug) {
_root.play();
stop();
} else {
mcNotice._visible = true;
l = -99999;
gotoAndPlay ("loop");
}
Symbol 86 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?" + _root.gameName, "_blank");
}
Instance of Symbol 84 MovieClip "logo" in Symbol 87 MovieClip Frame 1
on (release) {
getURL ("http://www.freeonlinegames.com/?battleofberlin", "_blank");
}
Symbol 138 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?RoadCrisis", "_blank");
}
Symbol 140 Button
on (release) {
if (_global.fxOn != 1) {
_root.buttonClick1.start(0, 1);
}
_root.gotoAndPlay(5);
_root.startGame();
}
Symbol 143 MovieClip Frame 1
stop();
Symbol 165 Button
on (release) {
_global.Mins = 2;
if (_global.fxOn != 1) {
_root.buttonClick1.start(0, 1);
}
gotoAndStop ("2mins");
}
Symbol 167 Button
on (release) {
_global.Mins = 3;
if (_global.fxOn != 1) {
_root.buttonClick1.start(0, 1);
}
gotoAndStop ("3mins");
}
Symbol 169 Button
on (release) {
_global.Mins = 4;
if (_global.fxOn != 1) {
_root.buttonClick1.start(0, 1);
}
gotoAndStop ("4mins");
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
stop();
Symbol 174 MovieClip Frame 3
stop();
Symbol 174 MovieClip Frame 4
stop();
Symbol 180 Button
on (release) {
_global.bgTunes = 1;
_root.bgMusic.stop();
if (_global.fxOn != 1) {
_root.buttonClick1.start(0, 1);
}
gotoAndPlay (2);
}
Symbol 182 Button
on (release) {
_global.bgTunes = 0;
_root.bgMusic.start(0, 9999);
if (_global.fxOn != 1) {
_root.buttonClick1.start(0, 1);
}
gotoAndPlay (22);
}
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 21
stop();
Symbol 185 Button
on (release) {
_global.fxOn = 1;
if (_global.fxOn != 1) {
_root.buttonClick1.start(0, 1);
}
gotoAndPlay (2);
}
Symbol 188 Button
on (release) {
_global.fxOn = 0;
if (_global.fxOn != 1) {
_root.buttonClick1.start(0, 1);
}
gotoAndPlay (22);
}
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 21
stop();
Symbol 192 Button
on (release) {
_quality = "high";
if (_global.fxOn != 1) {
_root.buttonClick1.start(0, 1);
}
gotoAndPlay (2);
}
Symbol 194 Button
on (release) {
_quality = "medium";
if (_global.fxOn != 1) {
_root.buttonClick1.start(0, 1);
}
gotoAndPlay (16);
}
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 16
stop();
Symbol 198 MovieClip Frame 1
stop();
Instance of Symbol 146 MovieClip in Symbol 198 MovieClip Frame 1
on (rollOver) {
_parent.gotoAndPlay("options");
}
on (rollOut) {
_parent.gotoAndStop(1);
}
on (release) {
_parent.gotoAndPlay("optionsMenu");
}
Instance of Symbol 148 MovieClip in Symbol 198 MovieClip Frame 1
on (rollOver) {
_parent.gotoAndPlay("playmore");
}
on (rollOut) {
_parent.gotoAndStop(1);
}
on (release) {
getURL ("http://www.freeonlinegames.com/?RoadCrisis", "_blank");
}
Instance of Symbol 150 MovieClip in Symbol 198 MovieClip Frame 1
on (rollOver) {
_parent.gotoAndPlay("playmore");
}
on (rollOut) {
_parent.gotoAndStop(1);
}
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?RoadCrisis", "_blank");
}
Instance of Symbol 152 MovieClip in Symbol 198 MovieClip Frame 1
on (rollOver) {
_parent.gotoAndPlay("viewhigh");
}
on (rollOut) {
_parent.gotoAndStop(1);
}
on (release) {
stopAllSounds();
_root.gotoAndStop(6);
}
Instance of Symbol 150 MovieClip in Symbol 198 MovieClip Frame 2
on (rollOver) {
_parent.gotoAndPlay("moregames");
}
on (rollOut) {
_parent.gotoAndStop(1);
}
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?RoadCrisis", "_blank");
}
Symbol 198 MovieClip Frame 20
stop();
Symbol 198 MovieClip Frame 40
stop();
Symbol 198 MovieClip Frame 60
stop();
Instance of Symbol 150 MovieClip in Symbol 198 MovieClip Frame 61
on (rollOver) {
_parent.gotoAndPlay("playmore");
}
on (rollOut) {
_parent.gotoAndStop(1);
}
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?RoadCrisis", "_blank");
}
Symbol 198 MovieClip Frame 80
stop();
Instance of Symbol 197 MovieClip in Symbol 198 MovieClip Frame 81
on (release) {
_parent.gotoAndStop(1);
}
Symbol 198 MovieClip Frame 90
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 61
gotoAndPlay (32);
Symbol 246 MovieClip Frame 1
if (_global.fxOn != 1) {
_root.ambulanceSound.start(0, 1);
} else {
_root.ambulanceSound.stop();
}
Symbol 247 MovieClip [car] Frame 1
stop();
stop();
Symbol 247 MovieClip [car] Frame 2
stop();
Symbol 247 MovieClip [car] Frame 3
stop();
Symbol 247 MovieClip [car] Frame 4
stop();
Symbol 247 MovieClip [car] Frame 5
stop();
Symbol 247 MovieClip [car] Frame 6
stop();
Symbol 247 MovieClip [car] Frame 7
stop();
Symbol 247 MovieClip [car] Frame 8
stop();
Symbol 247 MovieClip [car] Frame 9
stop();
Symbol 247 MovieClip [car] Frame 10
stop();
Symbol 247 MovieClip [car] Frame 11
stop();
Symbol 247 MovieClip [car] Frame 12
stop();
Symbol 247 MovieClip [car] Frame 13
stop();
Symbol 256 MovieClip Frame 1
_alpha = 0;
Symbol 258 MovieClip Frame 1
_alpha = 0;
Instance of Symbol 255 MovieClip "r1" in Symbol 258 MovieClip Frame 1
/* no clip actions */
Symbol 260 MovieClip Frame 1
_alpha = 0;
Symbol 262 MovieClip Frame 1
_alpha = 0;
Symbol 270 Button
on (release) {
if (_global.pauseMe != 1) {
gotoAndPlay ("go");
}
}
Symbol 273 Button
on (release) {
gotoAndPlay ("stop");
}
Symbol 274 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
if (_global.fxOn != 1) {
_root.beep.start();
} else {
_root.beep.stop();
}
Symbol 282 MovieClip Frame 30
gotoAndPlay (2);
Symbol 286 Button
on (release) {
_global.pauseMe = 1;
carsOnMap = _root.arrCars.length;
ctr4 = 0;
while (ctr4 < carsOnMap) {
_root["car" + _root.arrCars[ctr4]]._visible = false;
ctr4++;
}
if (_global.fxOn != 1) {
_root.buttonClick2.start(0, 1);
} else {
_root.buttonClick2.stop();
}
gotoAndStop (2);
}
Symbol 289 Button
on (release) {
_global.bgMusic = false;
_root.bgMusic.stop();
gotoAndStop (2);
}
Symbol 291 Button
on (release) {
_global.bgMusic = true;
_root.bgMusic.start(0, 99999);
gotoAndStop (1);
}
Symbol 292 MovieClip Frame 1
stop();
if ((_global.bgMusic = false)) {
gotoAndStop (2);
}
Symbol 292 MovieClip Frame 2
stop();
Symbol 301 Button
on (release) {
_global.bgTunes = 1;
_global.fxOn = 1;
_root.bgMusic.stop();
if (_global.fxOn != 1) {
_root.buttonClick1.start(0, 1);
}
gotoAndStop (2);
}
Symbol 303 Button
on (release) {
_global.bgTunes = 0;
_global.fxOn = 0;
_root.bgMusic.start(0, 9999);
if (_global.fxOn != 1) {
_root.buttonClick1.start(0, 1);
}
gotoAndStop (1);
}
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 2
stop();
Symbol 308 MovieClip Frame 15
stop();
Instance of Symbol 297 MovieClip in Symbol 308 MovieClip Frame 15
on (release) {
getURL ("http://www.freeonlinegames.com/?RoadCrisis", "_blank");
}
Instance of Symbol 299 MovieClip in Symbol 308 MovieClip Frame 15
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?RoadCrisis", "_blank");
}
Instance of Symbol 306 MovieClip in Symbol 308 MovieClip Frame 15
on (release) {
stopAllSounds();
clearInterval(_root.trainID);
clearInterval(_root.timerID);
clearInterval(_root.myID);
clearInterval(_root.hitID);
clearInterval(_root.carLoopID);
carsOnMap = _root.arrCars.length;
ctr5 = 0;
while (ctr5 < carsOnMap) {
delete _root["car" + _root.arrCars[ctr5]].onEnterFrame;
_root["car" + _root.arrCars[ctr5]].removeMovieClip();
ctr5++;
}
_root.arrCars = [];
_root.mycar1.removeMovieClip();
_root.mycar2.removeMovieClip();
_root.pass_Score = 0;
_root.score = 0;
_root.queue = 0;
_global.pauseMe = 0;
_global.Lives = 3;
_root.mins = _global.Mins;
_root.secs = 0;
_root.gotoAndStop(4);
}
Symbol 309 Button
on (release) {
_global.pauseMe = 0;
carsOnMap = _root.arrCars.length;
ctr4 = 0;
while (ctr4 < carsOnMap) {
_root["car" + _root.arrCars[ctr4]]._visible = true;
ctr4++;
}
if (_global.fxOn != 1) {
_root.buttonClick2.start(0, 1);
} else {
_root.buttonClick2.stop();
}
gotoAndStop (1);
}
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 2
stop();
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 20
stop();
Symbol 318 MovieClip Frame 41
stop();
Symbol 326 Button
on (release) {
_root.mycar1.removeMovieClip();
_root.mycar2.removeMovieClip();
_global.pauseMe = 0;
_visible = false;
_root.startGame();
}
Symbol 334 Button
on (release) {
var myVar = new LoadVars();
myVar.onLoad = function () {
getURL ("http://www.freeonlinegames.com/scoreboard.php?", "_blank");
};
myVar.score = _root.score;
myVar.gamer = 18;
myVar.id = random(9999999);
myVar.toString();
myVar.sendAndLoad("http://www.freeonlinegames.com/scoreboard/score_c.php", myVar, "POST");
gotoAndStop (2);
}
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 2
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 1
finalscore = _root.score;
Instance of Symbol 338 MovieClip in Symbol 345 MovieClip Frame 1
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?RoadCrisis", "_blank");
}
Instance of Symbol 340 MovieClip in Symbol 345 MovieClip Frame 1
on (release) {
getURL ("http://www.freeonlinegames.com/?RoadCrisis", "_blank");
}
Instance of Symbol 342 MovieClip in Symbol 345 MovieClip Frame 1
on (release) {
if (_global.fxOn != 1) {
_root.buttonClick1.start(0, 1);
} else {
_root.buttonClick1.stop();
}
_root.mycar1.removeMovieClip();
_root.mycar2.removeMovieClip();
_global.pauseMe = 0;
stopAllSounds();
_root.gotoAndStop(4);
}
Symbol 355 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 2
stop();
Symbol 366 Button
on (press) {
sboard.dir = "up";
}
on (release) {
sboard.dir = "stop";
}
Symbol 367 Button
on (press) {
sboard.dir = "down";
}
on (release) {
sboard.dir = "stop";
}