Frame 1
Stage.showMenu = false;
framesLoaded = _framesloaded;
totalFrames = _totalframes;
percentLoaded = Math.round((framesLoaded / totalFrames) * 100);
bar._xscale = percentLoaded;
bytes = Math.round(this.getBytesLoaded() / 1000);
bytesTot = Math.round(this.getBytesTotal() / 1000);
Frame 2
if (framesLoaded == totalFrames) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Mouse.show();
Frame 4
stop();
Frame 5
screenTop = 20;
screenBot = 500;
screenLeft = 20;
screenRight = 405;
accel = 300;
score = 0;
level = 1;
speed = 7.5;
playerSpeed = 7.5;
Mouse.hide();
stopAllSounds();
Frame 10
if ((level * 2000) < score) {
accel = accel - 40;
if (accel < 100) {
accel = 105;
}
}
if ((level * 2000) < score) {
level = ++level;
levelMov.gotoAndPlay(2);
}
gotoAndPlay (8);
Frame 11
playerDead == false;
Frame 14
Mouse.show();
player.gotoAndPlay("crash");
stop();
Symbol 14 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "crazycars";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 25 Button
on (release) {
gotoAndStop (4);
}
Symbol 27 Button
on (release) {
gotoAndPlay (5);
}
Symbol 32 Button
on (release) {
gotoAndStop (4);
}
Symbol 46 MovieClip Frame 1
oldX = _parent._x;
oldY = _parent._y;
startX = 210;
startY = -50;
Symbol 46 MovieClip Frame 2
_parent._X = startX;
_parent._Y = startY;
speed = _root.speed - 2;
Symbol 46 MovieClip Frame 3
distY = 2400 - oldY;
oldY = oldY + speed;
_parent._y = oldY;
Symbol 46 MovieClip Frame 4
if (oldY >= 750) {
_parent._X = startX;
_parent._Y = startY;
gotoAndPlay(carloop);
} else {
gotoAndPlay (3);
}
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 2
play();
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 2
play();
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
play();
Symbol 55 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
play();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 2
money.gotoAndPlay(2);
Symbol 48 MovieClip Frame 3
stop();
Symbol 48 MovieClip Frame 4
glass.gotoAndPlay(2);
Symbol 48 MovieClip Frame 5
stop();
Symbol 48 MovieClip Frame 6
skid.gotoAndPlay(2);
Symbol 48 MovieClip Frame 7
stop();
Symbol 48 MovieClip Frame 8
crash.gotoAndPlay(2);
Symbol 48 MovieClip Frame 9
stop();
Symbol 48 MovieClip Frame 10
turbo.gotoAndStop(2);
Symbol 48 MovieClip Frame 11
Symbol 60 MovieClip Frame 1
oldX = _parent._x;
oldY = _parent._y;
startX = random(350) + 10;
startY = random(800) * -1;
speed = _root.speed - 2;
Symbol 60 MovieClip Frame 2
oldY = oldY + speed;
_parent._y = oldY;
Symbol 60 MovieClip Frame 3
if (_parent.hitTest(_root.player.hitArea)) {
_root.sounds.gotoAndPlay("money");
_root.score = _root.score + 250;
_parent._X = startX;
_parent._Y = startY;
gotoAndPlay(roadLoop);
} else if (oldY >= 750) {
_parent._X = startX;
_parent._Y = startY;
gotoAndPlay(roadLoop);
} else {
gotoAndPlay (2);
}
Symbol 63 MovieClip Frame 1
oldX = _parent._x;
oldY = _parent._y;
startX = random(350) + 10;
startY = (random(800) * -1) - 25;
speed = _root.speed - 2;
_root.player._x = playerX;
_root.player._Y = playerY;
ran = Math.round((Math.random() * 100) - 50) + 75;
_parent._xscale = ran;
_parent._yscale = ran;
Symbol 63 MovieClip Frame 2
oldY = oldY + speed;
_parent._y = oldY;
Symbol 63 MovieClip Frame 3
if (_parent.hitTest(_root.player.hitArea)) {
_parent.gotoAndPlay("slip");
_root.sounds.gotoAndPlay("skid");
_root.player.car.gotoAndStop(1);
}
if (oldY >= 750) {
_parent._X = startX;
_parent._Y = startY;
_parent._xscale = ran;
_parent._yscale = ran;
gotoAndPlay(roadLoop);
} else {
gotoAndPlay (2);
}
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
_root.player.behav.playerSpeed = 0;
_parent.gotoAndPlay("norm");
Symbol 61 MovieClip Frame 20
_root.player.behav.playerSpeed = 7.5;
Symbol 68 MovieClip Frame 1
oldY = _parent._y;
startY = _parent._Y;
accel = _root.accel;
ranCar = random(7) + 1;
_parent.gotoAndPlay(ranCar);
speed = accel + ((Math.random() * 50) - 25);
_parent.gotoAndStop(ranCar) + 1;
Symbol 68 MovieClip Frame 2
distY = 2400 - oldY;
oldY = oldY + (distY / speed);
_parent._y = oldY;
Symbol 68 MovieClip Frame 3
if (_parent.hitArea.hitTest(_root.player.hitArea)) {
_root.bang.nextFrame();
_root.player.car.gotoAndStop(1);
_root.player.behav.playerspeed = 7.5;
}
if (680 < _parent._Y) {
_parent._Y = startY;
_parent.gotoAndStop(ranCar);
gotoAndPlay(carLoop);
} else {
gotoAndPlay (2);
}
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 3
stop();
Symbol 64 MovieClip Frame 4
stop();
Symbol 64 MovieClip Frame 5
stop();
Symbol 74 MovieClip Frame 1
oldX = _parent._x;
oldY = _parent._y;
startX = random(350) + 10;
startY = (random(800) * -1) - 2000;
speed = _root.speed - 2;
Symbol 74 MovieClip Frame 2
oldY = oldY + speed;
_parent._y = oldY;
Symbol 74 MovieClip Frame 3
if (_parent.hitTest(_root.player.hitArea)) {
_parent._X = startX;
_parent._Y = startY;
_parent.gotoAndPlay("turbo");
_root.sounds.gotoAndPlay("turbo");
gotoAndPlay(roadLoop);
} else if (oldY >= 750) {
_parent._X = startX;
_parent._Y = startY;
gotoAndPlay(roadLoop);
} else {
gotoAndPlay (2);
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
_root.player.behav.playerSpeed = 15;
_root.player.car.gotoAndStop(2);
_parent.gotoAndPlay("norm");
Symbol 73 MovieClip Frame 150
_root.player.behav.playerSpeed = 7.5;
_root.player.car.gotoAndStop(1);
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 80 MovieClip Frame 1
leftArrow = 37;
rightArrow = 39;
upArrow = 38;
downArrow = 40;
space = 32;
playerX = (_root.screenRight - _root.screenLeft) / 2;
playerY = _root.screenBot - 50;
_parent._x = playerX;
_parent._Y = playerY;
playerSpeed = 7.5;
Symbol 80 MovieClip Frame 2
if (Key.isDown(leftArrow) && (_root.screenLeft < playerX)) {
playerX = playerX - playerSpeed;
_parent.gotoAndStop("left");
} else if (Key.isDown(rightArrow) && (playerX < _root.screenRight)) {
playerX = playerX + playerSpeed;
_parent.gotoAndStop("right");
} else {
(_parent.gotoAndStop("foreward"));// not popped
}
if (Key.isDown(upArrow) && (playerY >= (_root.screenTop + 20))) {
playerY = playerY - playerSpeed;
}
if (Key.isDown(downArrow) && (playerY < _root.screenBot)) {
playerY = playerY + playerSpeed;
}
_parent._x = playerX;
_parent._y = playerY;
Symbol 80 MovieClip Frame 3
gotoAndPlay (2);
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
stop();
Symbol 75 MovieClip Frame 3
stop();
Symbol 75 MovieClip Frame 4
_root.gotoAndStop("end");
play();
Symbol 75 MovieClip Frame 20
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
play();
_root.sounds.gotoAndPlay("glass");
Symbol 82 MovieClip Frame 10
stop();
Symbol 82 MovieClip Frame 11
play();
_root.sounds.gotoAndPlay("glass");
Symbol 82 MovieClip Frame 20
stop();
Symbol 82 MovieClip Frame 21
_root.gotoAndPlay("end");
play();
_root.sounds.gotoAndPlay("crash");
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
Symbol 92 MovieClip Frame 20
gotoAndStop (1);
Symbol 104 Button
on (release) {
gotoAndPlay (5);
}
Symbol 107 Button
on (release) {
_root.gameover = 1;
}
Symbol 108 Button
on (release) {
gotoAndPlay (5);
}
Symbol 109 Button
on (release) {
_root.gameover = 1;
}
Symbol 110 Button
on (release) {
gotoAndPlay (5);
}
Symbol 111 Button
on (release) {
_root.gameover = 1;
}
Symbol 112 Button
on (release) {
gotoAndPlay (5);
}
Symbol 113 Button
on (release) {
_root.gameover = 1;
}
Symbol 114 Button
on (release) {
gotoAndStop (4);
}