Frame 1
stop();
Stage.showMenu = false;
Instance of Symbol 57 MovieClip in Frame 1
onClipEvent (load) {
this._x = Stage.width / 2;
}
Frame 2
_root.percen = int(100 / (_root.getBytesTotal() / _root.getBytesLoaded()));
if (_root.getBytesTotal() == _root.getBytesLoaded()) {
gotoAndPlay (4);
} else {
play();
}
Instance of Symbol 68 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.percen < 1) {
gotoAndStop (2);
} else {
gotoAndStop(_root.percen +1);
}
}
Frame 3
prevFrame();
Frame 4
_root.allmute = false;
Instance of Symbol 92 MovieClip "bgmusic" in Frame 4
onClipEvent (enterFrame) {
if (_root.allmute == false) {
_root.ss.play();
} else {
_root.ss.stop();
}
}
Frame 6
function getGameTime() {
d = new Date();
mm = (((d.getUTCMonth() + 1) < 10) ? ("0" + (d.getUTCMonth() + 1)) : (d.getUTCMonth() + 1));
dd = ((d.getUTCDate() < 10) ? ("0" + d.getUTCDate()) : (d.getUTCDate()));
hh = ((d.getUTCHours() < 10) ? ("0" + d.getUTCHours()) : (d.getUTCHours()));
ii = ((d.getUTCMinutes() < 10) ? ("0" + d.getUTCMinutes()) : (d.getUTCMinutes()));
ss = ((d.getUTCSeconds() < 10) ? ("0" + d.getUTCSeconds()) : (d.getUTCSeconds()));
utcdate = ((((((((((d.getUTCFullYear() + "-") + mm) + "-") + dd) + "T") + hh) + ":") + ii) + ":") + ss) + "Z";
trace("utcmore:" + utcdate);
}
stop();
var gameId = 1013;
var score;
var utcdate;
_root.car1.swapDepths(800);
trace("depth of car : " + _root.car1.getDepth());
_root.level = 1;
_root.lifecounter = 0;
_root.lifes = 3;
_root.hud.lifeco.gotoAndStop(1);
_root.policeman.gotoAndStop(1);
_root.car1._x = 325.1;
_root.car1._rotation = 0;
add_items = new Array();
aa = 0;
_root.sumodir = "";
_root.sumocoll = false;
Mouse.show();
gamestart = false;
gamepause = false;
gameState = "";
_root.car1._visible = false;
_root.hud._visible = false;
_root.distance._visible = false;
_root.nextcar1._visible = false;
_root.nextcar2._visible = false;
_root.nextcar3._visible = false;
_root.nextcar4._visible = false;
_root.nextcar5._visible = false;
_root.nextcar6._visible = false;
_root.displymess.gotoAndStop(1);
_root.intro.swapDepths(this.getNextHighestDepth());
_root.hud.swapDepths(this.getNextHighestDepth());
_root.distance.swapDepths(this.getNextHighestDepth());
_root.displaymess.swapDepths(this.getNextHighestDepth());
_root.policemv.swapDepths(this.getNextHighestDepth());
_root.policeman.swapDepths(this.getNextHighestDepth());
_root.nextcar1.swapDepths(this.getNextHighestDepth());
_root.nextcar2.swapDepths(this.getNextHighestDepth());
_root.nextcar3.swapDepths(this.getNextHighestDepth());
_root.nextcar4.swapDepths(this.getNextHighestDepth());
_root.nextcar5.swapDepths(this.getNextHighestDepth());
_root.nextcar6.swapDepths(this.getNextHighestDepth());
_root.nextcar1._x = _root.carynextx1;
_root.nextcar2._x = _root.carynextx2;
_root.nextcar2._x = _root.carynextx3;
_root.nextcar4._x = _root.carynextx4;
_root.nextcar5._x = _root.carynextx5;
_root.nextcar6._x = _root.carynextx6;
_root.nextcar1._y = _root.carynext1;
_root.nextcar2._y = _root.carynext2;
_root.nextcar2._y = _root.carynext3;
_root.nextcar4._y = _root.carynext4;
_root.nextcar5._y = _root.carynext5;
_root.nextcar6._y = _root.carynext6;
_root.car1.swapDepths(this.getNextHighestDepth());
_root.displaystarting.swapDepths(this.getNextHighestDepth());
_root.levelup.swapDepths(this.getNextHighestDepth() + 1);
add_items = new Array();
aa = 0;
ss = new Sound();
ss.attachSound("bgmusic");
ss.start(0, 99999);
Frame 7
stop();
_root.car1.swapDepths(800);
trace("depth of car : " + _root.car1.getDepth());
_root.level = 1;
_root.hud.lifeco.gotoAndStop(1);
_root.policeman.gotoAndStop(1);
_root.car1._x = 325.1;
_root.car1._rotation = 0;
add_items = new Array();
aa = 0;
Mouse.show();
gamestart = false;
gamepause = false;
gameState = "";
_root.sumodir = "";
_root.sumocoll = false;
_root.car1._visible = false;
_root.hud._visible = false;
_root.distance._visible = false;
_root.nextcar1._visible = false;
_root.nextcar2._visible = false;
_root.nextcar3._visible = false;
_root.nextcar4._visible = false;
_root.nextcar5._visible = false;
_root.nextcar6._visible = false;
_root.displymess.gotoAndStop(1);
_root.hud.swapDepths(this.getNextHighestDepth());
_root.distance.swapDepths(this.getNextHighestDepth());
_root.displaymess.swapDepths(this.getNextHighestDepth());
_root.policemv.swapDepths(this.getNextHighestDepth());
_root.policeman.swapDepths(this.getNextHighestDepth());
_root.nextcar1.swapDepths(this.getNextHighestDepth());
_root.nextcar2.swapDepths(this.getNextHighestDepth());
_root.nextcar3.swapDepths(this.getNextHighestDepth());
_root.nextcar4.swapDepths(this.getNextHighestDepth());
_root.nextcar5.swapDepths(this.getNextHighestDepth());
_root.nextcar6.swapDepths(this.getNextHighestDepth());
_root.nextcar1._x = _root.carynextx1;
_root.nextcar2._x = _root.carynextx2;
_root.nextcar2._x = _root.carynextx3;
_root.nextcar4._x = _root.carynextx4;
_root.nextcar5._x = _root.carynextx5;
_root.nextcar6._x = _root.carynextx6;
_root.nextcar1._y = _root.carynext1;
_root.nextcar2._y = _root.carynext2;
_root.nextcar2._y = _root.carynext3;
_root.nextcar4._y = _root.carynext4;
_root.nextcar5._y = _root.carynext5;
_root.nextcar6._y = _root.carynext6;
_root.car1.swapDepths(this.getNextHighestDepth());
_root.displaystarting.swapDepths(this.getNextHighestDepth());
_root.levelup.swapDepths(this.getNextHighestDepth() + 1);
add_items = new Array();
aa = 0;
Frame 10
trace("frame1");
_root.points = 0;
_root.sumodir = "";
_root.sumocoll = false;
add_items = new Array();
if (_root.level == 1) {
_root.sec2 = 30;
total_items = new Array(1, 2, 3, 2, 4, 53, 6, 61, 612, 7, 61, 6, 8, 9, 2, 3, 2, 3, 10, 11, 2, 3, 2, 10, 11, 2, 3, 2, 3, 2, 4, 5, 6, 61, 71, 6, 61, 8, 9, 2, 3, 2, 3, 10, 11, 2, 3, 2, 3, 2, 10, 11, 2, 3, 2, 3, 2, 4, 5, 6, 61, 7, 6, 61, 612, 84, 9, 2, 3, 2, 3);
trace("level 1 : " + total_items.length);
} else if (_root.level == 2) {
_root.sec2 = 30;
total_items = new Array(1, 2, 3, 22, 4, 52, 6, 61, 612, 72, 61, 6, 71, 621, 64, 84, 92, 222, 3, 2, 3, 102, 112, 2, 3, 222, 102, 11, 22, 3, 2, 3, 2, 42, 53, 61, 64, 7, 63, 612, 85, 9, 2, 3, 222, 3, 10, 11, 2, 3, 2, 32, 2, 102, 11, 2, 32, 22, 3, 2, 42, 52, 61, 61, 7, 61, 612, 61, 85, 9, 22, 3, 2, 32);
trace("level 2 : " + total_items.length);
} else if (_root.level == 3) {
_root.sec2 = 30;
total_items = new Array(1, 2, 3, 2, 43, 53, 6, 61, 64, 72, 61, 6, 83, 9, 2, 3, 22, 3, 10, 11, 2, 3, 2, 103, 11, 222, 3, 2, 3, 2, 43, 5, 6, 63, 6, 7, 6, 61, 82, 9, 2, 3, 2, 3, 10, 11, 2, 33, 222, 32, 2, 102, 11, 2, 3, 2, 33, 22, 42, 52, 6, 61, 7, 6, 621, 61, 612, 8, 9, 2, 3, 222, 3);
trace("level 3 : " + total_items.lengths);
}
_root.totallen = total_items.length;
Instance of Symbol 282 MovieClip "obj1" in Frame 10
onClipEvent (enterFrame) {
_root.objx1 = this._x;
_root.objy1 = this._y;
}
Instance of Symbol 305 MovieClip "hud" in Frame 10
onClipEvent (enterFrame) {
this.swapDepths(806);
}
Instance of Symbol 340 MovieClip "displaymess" in Frame 10
onClipEvent (enterFrame) {
this.swapDepths(804);
}
Instance of Symbol 342 MovieClip in Frame 10
onClipEvent (enterFrame) {
if ((_root.gamestart == true) and (_root.upkeypressed == true)) {
if (_root.gamepause == false) {
if (_root.sec2 <= 0) {
_root.gameState = "GAMEOVER";
} else {
play();
}
} else {
stop();
}
} else {
stop();
}
}
Instance of Symbol 343 MovieClip "speedincrease" in Frame 10
onClipEvent (enterFrame) {
if ((_root.gamestart == true) and (_root.upkeypressed == true)) {
if (_root.gamepause == false) {
if (_root.timergain == true) {
if (_root.tuspeed == 3) {
stop();
_root.maxSpeed = 13;
_root.tuspeed = 0;
_root.timergain = false;
} else {
_root.maxSpeed = 18;
play();
}
} else {
stop();
}
} else {
stop();
}
} else {
stop();
}
}
Instance of Symbol 355 MovieClip "displaystarting" in Frame 10
onClipEvent (enterFrame) {
this.swapDepths(1011);
}
Instance of Symbol 357 MovieClip in Frame 10
onClipEvent (load) {
_root.totaldis = _width;
_root.totalx = _x;
}
Instance of Symbol 360 MovieClip "distance" in Frame 10
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
this._x = _root.xx + ((_root.currentele / _root.totallen) * _root.totaldis);
}
}
onClipEvent (load) {
_root.xx = _x;
}
Instance of Symbol 301 MovieClip "car1" in Frame 10
onClipEvent (load) {
_root.speed1 = 0;
_root.car_orgx = _x;
_root.car_orgr = _rotation;
trace("car rotation : " + _rotation);
}
onClipEvent (enterFrame) {
_root.cardepth = this.swapDepths(800);
}
Instance of Symbol 413 MovieClip "levelup" in Frame 10
onClipEvent (enterFrame) {
this.swapDepths(813);
}
Instance of Symbol 420 MovieClip "policeman" in Frame 10
onClipEvent (enterFrame) {
this.swapDepths(801);
}
Instance of Symbol 422 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
if (_root.gameState == "GAMEOVER") {
stop();
} else if (_root.gameState == "PLAYING") {
play();
}
} else {
stop();
}
}
Instance of Symbol 423 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
if (_root.gameState == "GAMEOVER") {
stop();
} else if (_root.gameState == "PLAYING") {
play();
}
}
}
Instance of Symbol 424 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
if (_root.gameState == "GAMEOVER") {
stop();
} else if (_root.gameState == "PLAYING") {
play();
}
} else {
stop();
}
}
Instance of Symbol 425 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
if (_root.gameState == "GAMEOVER") {
stop();
} else if (_root.gameState == "PLAYING") {
play();
}
} else {
stop();
}
}
Instance of Symbol 426 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
if (_root.gameState == "GAMEOVER") {
stop();
} else if (_root.gameState == "PLAYING") {
play();
}
} else {
stop();
}
}
Instance of Symbol 427 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
if (_root.gameState == "GAMEOVER") {
stop();
} else if (_root.gameState == "PLAYING") {
play();
}
} else {
stop();
}
}
Instance of Symbol 127 MovieClip "nextcar1" in Frame 10
onClipEvent (load) {
_root.carynext1 = _y;
_root.carynextx1 = _x;
}
onClipEvent (enterFrame) {
this.swapDepths(699);
if (_root.gamepause == false) {
_root.carleftcollision(this, _root.car1);
_root.carrightcollision(this, _root.car1);
_root.carupcollision(this, _root.car1);
_root.cardowncollision(this, _root.car1);
if (_root.carstop1 == false) {
if (_root.playlevel == true) {
if (_root.secnext1 < 15) {
_y = (_y - 2);
} else {
_root.secnext1 = 0;
_root.nextcar1._x = _root.carynextx1;
_root.nextcar1._y = _root.carynext1;
}
}
}
}
}
Instance of Symbol 136 MovieClip "nextcar3" in Frame 10
onClipEvent (load) {
_root.carynext3 = _y;
_root.carynextx3 = _x;
}
onClipEvent (enterFrame) {
this.swapDepths(697);
if (_root.gamepause == false) {
_root.carleftcollision(this, _root.car1);
_root.carrightcollision(this, _root.car1);
_root.carupcollision(this, _root.car1);
_root.cardowncollision(this, _root.car1);
if (_root.carstop3 == false) {
if (_root.playlevel == true) {
if (_root.secnext3 < 30) {
_y = (_y - 2);
} else {
_root.secnext3 = 0;
_root.nextcar3._x = _root.carynextx3;
_root.nextcar3._y = _root.carynext3;
}
}
}
}
}
Instance of Symbol 434 MovieClip "nextcar4" in Frame 10
onClipEvent (load) {
_root.carynext4 = _y;
_root.carynextx4 = _x;
}
onClipEvent (enterFrame) {
this.swapDepths(696);
if (_root.gamepause == false) {
_root.carleftcollision(this, _root.car1);
_root.carrightcollision(this, _root.car1);
_root.carupcollision(this, _root.car1);
_root.cardowncollision(this, _root.car1);
if (_root.carstop4 == false) {
if (_root.playlevel == true) {
if (_root.secnext4 < 40) {
_y = (_y - 2);
} else {
_root.secnext4 = 0;
_root.nextcar4._x = _root.carynextx4;
_root.nextcar4._y = _root.carynext4;
}
}
}
}
}
Instance of Symbol 441 MovieClip "nextcar6" in Frame 10
onClipEvent (load) {
_root.carynext6 = _y;
_root.carynextx6 = _x;
}
onClipEvent (enterFrame) {
this.swapDepths(694);
if (_root.gamepause == false) {
_root.carleftcollision(this, _root.car1);
_root.carrightcollision(this, _root.car1);
_root.carupcollision(this, _root.car1);
_root.cardowncollision(this, _root.car1);
if (_root.carstop6 == false) {
if (_root.playlevel == true) {
if (_root.secnext6 < 25) {
_y = (_y - 2);
} else {
_root.secnext6 = 0;
_root.nextcar6._x = _root.carynextx6;
_root.nextcar6._y = _root.carynext6;
}
}
}
}
}
Instance of Symbol 446 MovieClip "policemv" in Frame 10
onClipEvent (enterFrame) {
this.swapDepths(802);
}
Instance of Symbol 448 MovieClip in Frame 10
onClipEvent (load) {
}
onClipEvent (enterFrame) {
}
Frame 11
function gamep() {
if (_root.gamepause == true) {
gameState = "";
} else {
gameState = "PLAYING";
}
}
function carleftcollision(othercar, maincar) {
while (othercar.hitTest(maincar)) {
_root.carplaying = false;
_root.speed1 = 0;
_root.speedy1 = 0;
_root.car1._x = _root.car1._x + 2;
othercar._x = othercar._x - 2;
}
}
function carrightcollision(othercar, maincar) {
while (othercar.hitTest(maincar)) {
_root.carplaying = false;
_root.speed1 = 0;
_root.speedy1 = 0;
_root.car1._x = _root.car1._x - 2;
othercar._x = othercar._x + 2;
}
}
function carupcollision(othercar, maincar) {
while (othercar.hitTest(maincar)) {
_root.carplaying = false;
_root.speed1 = 0;
_root.speedy1 = 0;
_root.car1._x = _root.car1._x - 2;
othercar._x = othercar._x + 2;
othercar._y = othercar._y + 2;
}
}
function cardowncollision(othercar, maincar) {
while (othercar.hitTest(maincar)) {
_root.car1._x = _root.car1._x - 2;
othercar._x = othercar._x + 2;
othercar.addy = 0;
othercar._y = othercar._y - 2;
}
}
function leftroadcollision(othercar, leftsides) {
while (othercar.hitTest(leftsides)) {
othercar._x = othercar._x + 2;
}
}
function rightroadcollision(othercar, rightsides) {
while (othercar.hitTest(rightsides)) {
othercar._x = othercar._x - 2;
}
}
function leftroad(othercar, roadname) {
if (othercar.hitTest(roadname)) {
othercar._x = othercar._x + 2;
}
}
function chksignal1(othercar, stops) {
trace("othercar._x : " + othercar._x);
trace("others.x : " + others.x);
if (othercar.hitTest(stops.x, stops.y, true)) {
trace("car speed 0");
if (_root.signal == "red") {
trace(" signal is red ");
}
}
}
function sumocollision() {
trace(" Sumo Wrestlers ");
if (_root.speed1 > 0) {
trace(" _root.speed1> 0");
_root.speed1 = _root.speed1 - 1;
} else {
trace(" else _root.speed1 ");
_root.speed1 = 0;
}
}
function pathholecollision() {
trace(" collision with pathholes ");
_root.speed1 = 0;
_root.speedy1 = 0;
_root.carplaying = false;
_root.lifecounter = _root.lifecounter + 1;
}
function looselife() {
_root.displaymess.gotoAndStop(4);
_root.hud.lifeco.nextFrame();
_root.lifes = _root.lifes - 1;
_root.lifecounter = 0;
_root.carplaying = false;
if (_root.lifes == 0) {
_root.lifes = 0;
_root.lifecounter = 0;
_root.gamestart = false;
_root.upkeypressed = false;
_root.gameState = "GAMEOVER";
}
}
function slowdowncar() {
_root.car_hit.gotoAndPlay(2);
if (_root.speed1 > 0.3) {
_root.speed1 = _root.speed1 * _root.speedDecay;
_root.carplaying = false;
_root.carpause = true;
} else if (_root.speed1 <= 0.3) {
_root.speed1 = 0;
_root.carpause = false;
_root.carplaying = true;
}
}
function withothercar() {
_root.car_hit.gotoAndPlay(2);
if (_root.speed1 > 0.3) {
_root.speed1 = _root.speed1 * _root.speedDecay;
_root.carplaying = false;
} else if (_root.speed1 <= 0.3) {
_root.speed1 = 0;
_root.carplaying = true;
}
}
function speedup() {
trace(" speedup ");
_root.tuspeed = 0;
_root.timergain = true;
_root.speedincrease.play();
}
trace("frame2");
startg = false;
add_items = new Array();
othercarsarray = new Array();
othercarname = new Array();
k = 0;
aa = 0;
gameState = "INIT";
found = false;
found1 = false;
cnt = 0;
_root.lifecounter = 0;
_root.lifes = 3;
_root.car1._visible = false;
_root.hud._visible = false;
_root.distance._visible = false;
_root.nextcar1._visible = false;
_root.nextcar2._visible = false;
_root.nextcar3._visible = false;
_root.nextcar4._visible = false;
_root.nextcar5._visible = false;
_root.nextcar6._visible = false;
_root.hud.lifeco.gotoAndStop(1);
sumomess = new Array(22, 222, 52, 621, 63, 82);
_root.car1._x = 325.1;
_root.car1._rotation = 0;
allotherl = new Array("left1", "left2");
allotherr = new Array("right1", "right2");
al = _root.getNextHighestDepth();
ar = 4000;
_root.carstop1 = false;
_root.carstop2 = false;
_root.carstop3 = false;
_root.carstop4 = false;
_root.carstop5 = false;
_root.carstop6 = false;
_root.secnext1 = 13;
_root.secnext2 = 0;
_root.secnext3 = 7;
_root.secnext4 = 15;
_root.secnext5 = 0;
_root.secnext6 = 20;
carleftsec = 0;
carleftsec1 = 0;
carleftsec2 = 0;
carleftsec3 = 0;
leftinit = getTimer();
leftinit1 = getTimer();
leftinit2 = getTimer();
leftinit3 = getTimer();
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.getCode() == 80) {
keypress = true;
} else {
keypress = false;
}
};
Key.addListener(keyListener);
_root.onEnterFrame = function () {
if (keypress == true) {
if (_root.gamepause == false) {
trace(" in gamepause false");
_root.gamepause = true;
_root.gameState = "";
keypress = false;
trace("in keypress : " + keypress);
} else if (_root.gamepause == true) {
trace(" in gamepause true");
_root.gamepause = false;
_root.gameState = "PLAYING";
keypress = false;
trace("in keypress : " + keypress);
}
}
switch (gameState) {
case "INIT" :
trace("case : INIT");
othercarsarray = new Array();
_root.othercarsno = 0;
depth = 200;
add_items = new Array();
aa = 0;
_root.signal = "";
_root.carplaying = false;
_root.divfactor = 97;
_root.diffx = 0;
_root.diffy = 0;
sec = 0;
_root.sec2 = 0;
init = getTimer();
sec1 = 0;
_root.car_startvo = false;
_root.sumodir = "";
_root.sumocoll = false;
sec3 = 0;
mmm3 = 0;
_root.sumodir = "";
_root.sumocoll = false;
carleftsec1 = 0;
carleftsec2 = 0;
carleftsec3 = 0;
_root.carstop1 = false;
_root.carstop2 = false;
_root.carstop3 = false;
_root.carstop4 = false;
_root.carstop5 = false;
_root.carstop6 = false;
_root.secnext1 = 3;
_root.secnext2 = 0;
_root.secnext3 = 7;
_root.secnext4 = 20;
_root.secnext5 = 0;
_root.secnext6 = 5;
leftinit = getTimer();
leftinit1 = getTimer();
leftinit2 = getTimer();
leftinit3 = getTimer();
init1 = getTimer();
gamestart = false;
gamepause = false;
_root.diffy = (_root.objy1 - Stage.height) / _root.divfactor;
addnew = true;
_root.collision = false;
car1.code = "player";
acceleration = 1;
speedDecay = 0.96;
rotationStep = 10;
maxSpeed = 13;
backSpeed = 1;
rota = 2;
_root.car1._x = 325.1;
_root.car1._rotation = 0;
_root.distance._x = _root.totalx - (_root.totaldis / 2);
_root.car1._visible = false;
_root.hud._visible = false;
_root.distance._visible = false;
_root.nextcar1._visible = false;
_root.nextcar2._visible = false;
_root.nextcar3._visible = false;
_root.nextcar4._visible = false;
_root.nextcar5._visible = false;
_root.nextcar6._visible = false;
_root.hud.swapDepths(this.getNextHighestDepth());
_root.distance.swapDepths(this.getNextHighestDepth());
_root.displaymess.swapDepths(this.getNextHighestDepth());
_root.policemv.swapDepths(this.getNextHighestDepth());
_root.policeman.swapDepths(this.getNextHighestDepth());
_root.nextcar1.swapDepths(this.getNextHighestDepth());
_root.nextcar2.swapDepths(this.getNextHighestDepth());
_root.nextcar3.swapDepths(this.getNextHighestDepth());
_root.nextcar4.swapDepths(this.getNextHighestDepth());
_root.nextcar5.swapDepths(this.getNextHighestDepth());
_root.nextcar6.swapDepths(this.getNextHighestDepth());
_root.nextcar1._x = _root.carynextx1;
_root.nextcar2._x = _root.carynextx2;
_root.nextcar2._x = _root.carynextx3;
_root.nextcar4._x = _root.carynextx4;
_root.nextcar5._x = _root.carynextx5;
_root.nextcar6._x = _root.carynextx6;
_root.nextcar1._y = _root.carynext1;
_root.nextcar2._y = _root.carynext2;
_root.nextcar2._y = _root.carynext3;
_root.nextcar4._y = _root.carynext4;
_root.nextcar5._y = _root.carynext5;
_root.nextcar6._y = _root.carynext6;
_root.car1.swapDepths(this.getNextHighestDepth());
_root.displaystarting.swapDepths(this.getNextHighestDepth());
_root.levelup.swapDepths(this.getNextHighestDepth() + 1);
_root.mute.swapDepths(this.getNextHighestDepth() + 2);
_root.mute._x = 505;
_root.displaystarting.gotoAndStop(_root.level + 1);
_root.upkeypressed = false;
_root.sumodisplay = false;
_root.playlevel = false;
_root.signaldisplay = false;
_root.tuspeed = 0;
if (_root.level == 1) {
_root.sec2 = 30;
total_items = new Array(1, 2, 3, 2, 4, 5, 6, 61, 612, 7, 61, 6, 8, 9, 2, 3, 2, 3, 10, 11, 2, 3, 2, 10, 11, 2, 3, 2, 3, 2, 4, 5, 6, 61, 7, 6, 61, 8, 9, 2, 3, 2, 3, 10, 11, 2, 3, 2, 3, 2, 10, 11, 2, 3, 2, 3, 2, 4, 5, 6, 61, 7, 6, 61, 612, 8, 9, 2, 3, 2, 3);
trace("level 1 : " + total_items.length);
} else if (_root.level == 2) {
_root.sec2 = 30;
total_items = new Array(1, 2, 3, 22, 4, 52, 6, 61, 612, 7, 61, 6, 7, 621, 6, 82, 92, 222, 3, 2, 3, 102, 112, 2, 3, 222, 102, 11, 22, 3, 2, 3, 2, 42, 52, 612, 6, 7, 621, 612, 82, 9, 2, 3, 222, 3, 10, 11, 2, 3, 2, 32, 2, 102, 11, 2, 32, 22, 3, 2, 42, 52, 61, 61, 7, 61, 612, 61, 83, 9, 22, 3, 2, 32);
trace("level 2 : " + total_items.length);
} else if (_root.level == 3) {
_root.sec2 = 30;
total_items = new Array(1, 2, 3, 2, 42, 53, 6, 61, 64, 61, 612, 7, 61, 6, 83, 9, 2, 3, 22, 3, 10, 11, 2, 3, 2, 102, 11, 222, 3, 2, 3, 2, 43, 5, 6, 63, 6, 72, 6, 61, 82, 9, 2, 3, 2, 3, 10, 11, 2, 33, 222, 32, 2, 102, 11, 2, 3, 2, 33, 22, 42, 52, 6, 61, 7, 6, 621, 61, 612, 8, 9, 2, 3, 222, 3);
trace("level 3 : " + total_items.lengths);
}
_root.totallen = total_items.length;
trace("_root.totallen : " + _root.totallen);
trace(" initially aa : " + aa);
_root.attachMovie("path" + total_items[aa], "item" + aa, aa, {_x:_root.objx1, _y:_y + _root.objy1});
add_items[aa] = "item" + aa;
trace("case INIT aa " + aa);
addnew = false;
maincarname = _root.car1;
keypress = false;
_root.carpause = false;
_root.messcouis = 0;
gameState = "PLAYING";
break;
case "PLAYING" :
if (gamestart == false) {
} else {
_root.displaystarting.gotoAndStop(1);
}
if (_root.speed1 > 0.3) {
_root.speed1 = _root.speed1 * _root.speedDecay;
_root.car_wroom.gotoAndStop(1);
_root.car_startvo = false;
} else if (_root.speed1 <= 0.3) {
_root.speed1 = 0;
_root.car_startvo = true;
}
if (Key.isDown(38) && (_root.speed1 < _root.maxSpeed)) {
if (((_root.gamestart == true) and (_root.gamepause == false)) and (_root.carpause == false)) {
_root.policeman.gotoAndStop(1);
_root.policemv.gotoAndStop(1);
_root.upkeypressed = true;
_root.carplaying = true;
_root.speed1 = _root.speed1 + _root.acceleration;
}
}
if (Key.isDown(40)) {
if (_root.speed1 > 0) {
if (_root.allmute == false) {
_root.car_brake.gotoAndPlay(2);
}
_root.speed1 = _root.speed1 - 0.95;
}
}
if (Key.isDown(37)) {
if (_root.upkeypressed == true) {
_root.car1._x = _root.car1._x - 1;
_root.carpause = false;
_root.carplaying = true;
if (_root.car1._rotation > -20) {
_root.car1._rotation = _root.car1._rotation - rota;
}
}
}
if (Key.isDown(39)) {
if (_root.upkeypressed == true) {
_root.car1._x = _root.car1._x + 1;
_root.carpause = false;
_root.carplaying = true;
if (_root.car1._rotation < 20) {
_root.car1._rotation = _root.car1._rotation + rota;
}
}
}
_root.rotation1 = _root.car1._rotation;
_root.speedx1 = Math.sin(_root.rotation1 * (Math.PI/180)) * _root.speed1;
_root.speedy1 = (Math.cos(_root.rotation1 * (Math.PI/180)) * _root.speed1) * -1;
_root.car1._x = _root.car1._x + _root.speedx1;
_root["item" + aa].onEnterFrame = function () {
newback = _root["item" + aa]._name;
this._x = Stage.width / 2;
if (gamepause == false) {
this._y = this._y - _root.speedy1;
}
trace("before _y : " + _root["item" + aa]._y);
if (_root["item" + aa]._y >= 240) {
addnew = true;
if (addnew == true) {
trace("in addnew ");
aa++;
addfound = false;
_root.currentele = aa + 1;
_root.attachMovie("path" + total_items[aa], "item" + aa, aa, {_x:_root.objx1, _y:_y + _root.objy1});
trace("path" + total_items[aa]);
trace("aa : " + aa);
trace("total_item[aa] : " + total_items[aa]);
trace("new _y : " + _root["item" + aa]._y);
d = 0;
while (d < add_items.length) {
if ((add_items[d] == "") or (add_items[d] == null)) {
addfound = true;
}
d++;
}
if (addfound == false) {
add_items[d] = "item" + aa;
newitem = "item" + aa;
addnew = false;
}
if (((((_root[nameb].hitTest(_root["item" + aa].wrongside) or _root[nameb].hitTest(_root["item" + aa].wrongside1)) or _root[nameb].hitTest(_root["item" + aa].wrongside2)) or _root[nameb].hitTest(_root["item" + aa].wrongside3)) or _root[nameb].hitTest(_root["item" + aa].wrongside4)) or _root[nameb].hitTest(_root["item" + aa].wrongside5)) {
trace("othercar + allwrongsides");
_root[nameb]._x = _root[nameb]._x + 2;
}
}
}
if (this._y > (Stage.height + this._height)) {
removeMovieClip(this._name);
add_items.shift();
}
};
if (_root.lifecounter == 2) {
looselife();
}
if (_root.sumocoll == true) {
_root.displaymess.gotoAndStop(6);
}
mmm = getTimer() - init;
if (mmm > 1500) {
sec = Math.round(mmm / 1000);
if (sec == 2) {
sec = 0;
init = getTimer();
mmm = 0;
al++;
}
}
if (aa == (total_items.length - 1)) {
trace("level 1 is completed");
gameState = "LEVELUP";
}
break;
case "CARSTOP" :
trace("car is stopped");
break;
case "LEVELUP" :
trace("case : LEVELUP");
Mouse.show();
_root.mute._x = 505;
gamestart = false;
_root.car1._visible = false;
_root.hud._visible = false;
_root.distance._visible = false;
_root.nextcar1._visible = false;
_root.nextcar2._visible = false;
_root.nextcar3._visible = false;
_root.nextcar4._visible = false;
_root.nextcar5._visible = false;
_root.nextcar6._visible = false;
_root.displaymess.gotoAndStop(1);
_root.level = _root.level + 1;
trace("_root.level : " + _root.level);
aa = 100;
h = 100;
while (h >= 0) {
trace("h : " + h);
trace(add_items[0]);
trace(_root[add_items[0]]);
_root[add_items[0]]._visible = false;
removeMovieClip(_root[add_items[0]]);
removeMovieClip(_root[path[0]]);
removeMovieClip(_root[add_items[aa]]);
aa = aa - 1;
h--;
}
if (_root.level == 4) {
_root.levelup.gotoAndStop(3);
} else {
_root.levelup.gotoAndStop(2);
}
gameState = "";
break;
case "GAMEOVER" :
trace("GAMEOVER");
Mouse.show();
_root.mute._x = 505;
trace("add_items : " + add_items);
gamestart = false;
_root.playlevel = false;
_root.carstop1 = true;
_root.carstop2 = true;
_root.carstop3 = true;
_root.carstop4 = true;
_root.carstop5 = true;
_root.carstop6 = true;
_root.distance._visible = false;
_root.nextcar1._x = _root.carynextx1;
_root.nextcar2._x = _root.carynextx2;
_root.nextcar2._x = _root.carynextx3;
_root.nextcar4._x = _root.carynextx4;
_root.nextcar5._x = _root.carynextx5;
_root.nextcar6._x = _root.carynextx6;
_root.nextcar1._y = _root.carynext1;
_root.nextcar2._y = _root.carynext2;
_root.nextcar2._y = _root.carynext3;
_root.nextcar4._y = _root.carynext4;
_root.nextcar5._y = _root.carynext5;
_root.nextcar6._y = _root.carynext6;
_root.sec2 = 0;
aa = 100;
_root.levelup.gotoAndStop(4);
h = 100;
while (h >= 0) {
trace("h : " + h);
trace(add_items[0]);
trace(_root[add_items[0]]);
_root[add_items[0]]._visible = false;
removeMovieClip(_root[add_items[0]]);
removeMovieClip(_root[path[0]]);
removeMovieClip(_root[add_items[aa]]);
aa = aa - 1;
h--;
}
h = add_items.length;
if (h < 0) {
break;
}
trace("h : " + h);
trace(add_items[0]);
trace(_root[add_items[0]]);
removeMovieClip(_root[add_items[0]]);
if (add_items.length == 0) {
} else {
removeMovieClip(_root[add_items[0]]);
gameState = "";
}
}
};
stop();
Frame 16
stop();
_root.level = _root.level + 1;
Frame 18
stop();
trace("gamescreen ");
Mouse.show();
total_items = new Array(1, 2, 3, 2, 4, 5, 6, 61, 612, 7, 61, 6, 8, 9, 2, 3, 2, 3, 10, 11, 2, 3, 2, 10, 11, 2, 3, 2, 3, 2, 4, 5, 6, 61, 7, 6, 61, 8, 9, 2, 3, 2, 3, 10, 11, 2, 3, 2, 3, 2, 10, 11, 2, 3, 2, 3, 2, 4, 5, 6, 61, 7, 6, 61, 612, 8, 9, 2, 3, 2, 3, 10, 11, 2, 3, 2, 10, 11, 2, 3, 2, 3, 2, 3);
_root.totallen = total_items.length;
trace("frame1");
_root.level = 1;
_root.points = 0;
_root.lifecounter = 0;
_root.lifes = 3;
startg = false;
add_items = new Array();
aa = 0;
gameState = "INIT";
found = false;
found1 = false;
cnt = 0;
sumomess = new Array(22, 222, 52, 621, 63, 82);
othercarsarray = new Array();
add_items = new Array();
depth = 3000;
aa = 0;
_root.signal = "";
_root.carplaying = false;
_root.divfactor = 97;
_root.diffx = 0;
_root.diffy = 0;
sec = 0;
_root.sec2 = 0;
sec1 = 0;
sec3 = 0;
mmm3 = 0;
gamestart = false;
gamepause = false;
_root.car1._visible = false;
_root.hud._visible = false;
_root.distance._visible = false;
_root.nextcar1._visible = false;
_root.nextcar2._visible = false;
_root.nextcar3._visible = false;
_root.nextcar4._visible = false;
_root.nextcar5._visible = false;
_root.nextcar6._visible = false;
addnew = false;
_root.diffy = (_root.objy1 - Stage.height) / _root.divfactor;
addnew = true;
car1.code = "player";
acceleration = 1;
speedDecay = 0.96;
rotationStep = 10;
maxSpeed = 13;
backSpeed = 1;
rota = 2;
_root.displaystarting.gotoAndStop(_root.level + 1);
_root.upkeypressed = false;
_root.sumodisplay = false;
_root.signaldisplay = false;
_root.distance._x = _root.totalx - (_root.totaldis / 2);
Instance of Symbol 455 MovieClip in Frame 18
onClipEvent (enterFrame) {
Mouse.show();
this.swapDepths(900);
}
Frame 20
stop();
Symbol 53 MovieClip Frame 11
stop();
Symbol 57 MovieClip Frame 100
stop();
_root.nextFrame();
Instance of Symbol 67 MovieClip in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
_root.indicator = _rotation;
totalr = 200;
}
onClipEvent (enterFrame) {
_root.indicator = _rotation;
_rotation = (-60 - ((totalr * _root.speedy1) / _root.maxSpeed));
}
Symbol 75 Button
on (release) {
_root.gameState = "";
_root.gotoAndPlay("gameplay");
}
Symbol 76 Button
on (release) {
_root.gotoAndStop("instructions");
}
Symbol 77 MovieClip Frame 1
stop();
Symbol 84 Button
on (release) {
_root.allmute = true;
nextFrame();
}
Symbol 86 Button
on (release) {
_root.allmute = false;
_root.ss.start(0, 99999);
prevFrame();
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 119 Button
on (release) {
_root.gotoAndPlay("gameplay");
_root.getGameTime();
}
Symbol 123 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.lefts)) {
_root.nextcar2._x = _root.nextcar2._x + 2;
}
if (this.hitTest(_root.nextcar3.lefts)) {
_root.nextcar3._x = _root.nextcar3._x + 2;
}
if (this.hitTest(_root.nextcar4.lefts)) {
_root.nextcar4._x = _root.nextcar4._x + 2;
}
if (this.hitTest(_root.nextcar5.lefts)) {
_root.nextcar5._x = _root.nextcar5._x + 2;
}
if (this.hitTest(_root.nextcar6.lefts)) {
_root.nextcar6._x = _root.nextcar6._x + 2;
}
};
Symbol 124 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.rights)) {
_root.nextcar2._x = _root.nextcar2._x - 2;
}
if (this.hitTest(_root.nextcar3.rights)) {
_root.nextcar3._x = _root.nextcar3._x - 2;
}
if (this.hitTest(_root.nextcar4.rights)) {
_root.nextcar4._x = _root.nextcar4._x - 2;
}
if (this.hitTest(_root.nextcar5.rights)) {
_root.nextcar5._x = _root.nextcar5._x - 2;
}
if (this.hitTest(_root.nextcar6.rights)) {
_root.nextcar6._x = _root.nextcar6._x - 2;
}
};
Symbol 125 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.downs)) {
_root.nextcar2._y = _root.nextcar2._y + 2;
}
if (this.hitTest(_root.nextcar3.downs)) {
_root.nextcar3._y = _root.nextcar3._y + 2;
}
if (this.hitTest(_root.nextcar4.downs)) {
_root.nextcar4._y = _root.nextcar4._y + 2;
}
if (this.hitTest(_root.nextcar5.downs)) {
_root.nextcar5._y = _root.nextcar5._y + 2;
}
if (this.hitTest(_root.nextcar6.downs)) {
_root.nextcar6._y = _root.nextcar6._y + 2;
}
};
Symbol 126 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.ups)) {
_root.nextcar2._y = _root.nextcar2._y - 2;
}
if (this.hitTest(_root.nextcar3.ups)) {
_root.nextcar3._y = _root.nextcar3._y - 2;
}
if (this.hitTest(_root.nextcar4.ups)) {
_root.nextcar4._y = _root.nextcar4._y - 2;
}
if (this.hitTest(_root.nextcar5.ups)) {
_root.nextcar5._y = _root.nextcar5._y - 2;
}
if (this.hitTest(_root.nextcar6.ups)) {
_root.nextcar6._y = _root.nextcar6._y - 2;
}
};
Symbol 127 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.nextcar1._x = _root.nextcar1._x + 2;
_root.car1._x = _root.car1._x - 2;
}
};
Symbol 129 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.nextcar1._x = _root.nextcar1._x + 2;
_root.car1._x = _root.car1._x - 2;
}
};
Symbol 131 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.lefts)) {
_root.nextcar2._x = _root.nextcar2._x + 2;
}
if (this.hitTest(_root.nextcar1.lefts)) {
_root.nextcar1._x = _root.nextcar1._x + 2;
}
if (this.hitTest(_root.nextcar4.lefts)) {
_root.nextcar4._x = _root.nextcar4._x + 2;
}
if (this.hitTest(_root.nextcar5.lefts)) {
_root.nextcar5._x = _root.nextcar5._x + 2;
}
if (this.hitTest(_root.nextcar6.lefts)) {
_root.nextcar6._x = _root.nextcar6._x + 2;
}
};
Symbol 132 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.rights)) {
_root.nextcar2._x = _root.nextcar2._x - 2;
}
if (this.hitTest(_root.nextcar3.rights)) {
_root.nextcar3._x = _root.nextcar3._x - 2;
}
if (this.hitTest(_root.nextcar4.rights)) {
_root.nextcar4._x = _root.nextcar4._x - 2;
}
};
Symbol 133 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.downs)) {
_root.nextcar2._y = _root.nextcar2._y + 2;
}
if (this.hitTest(_root.nextcar1.downs)) {
_root.nextcar1._y = _root.nextcar1._y + 2;
}
if (this.hitTest(_root.nextcar4.downs)) {
_root.nextcar4._y = _root.nextcar4._y + 2;
}
if (this.hitTest(_root.nextcar5.downs)) {
_root.nextcar5._y = _root.nextcar5._y + 2;
}
if (this.hitTest(_root.nextcar6.downs)) {
_root.nextcar6._y = _root.nextcar6._y + 2;
}
};
Symbol 134 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.ups)) {
_root.nextcar2._y = _root.nextcar2._y - 2;
}
if (this.hitTest(_root.nextcar1.ups)) {
_root.nextcar1._y = _root.nextcar1._y - 2;
}
if (this.hitTest(_root.nextcar4.ups)) {
_root.nextcar4._y = _root.nextcar4._y - 2;
}
if (this.hitTest(_root.nextcar5.ups)) {
_root.nextcar5._y = _root.nextcar5._y - 2;
}
if (this.hitTest(_root.nextcar6.ups)) {
_root.nextcar6._y = _root.nextcar6._y - 2;
}
};
Symbol 136 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.nextcar1._x = _root.nextcar1._x + 2;
_root.car1._x = _root.car1._x - 2;
}
};
Symbol 141 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.car_hit.gotoAndPlay(2);
_root.car1._x = _root.car1._x + 2;
_root.slowdowncar();
}
if (this.hitTest(_root.nextcar1)) {
_root.nextcar1._x = _root.nextcar1._x + 5;
}
if (this.hitTest(_root.nextcar2)) {
_root.nextcar2._x = _root.nextcar2._x + 5;
}
if (this.hitTest(_root.nextcar3)) {
_root.nextcar3._x = _root.nextcar3._x + 5;
}
if (this.hitTest(_root.nextcar4)) {
_root.nextcar4._x = _root.nextcar4._x + 5;
}
if (this.hitTest(_root.nextcar5)) {
_root.nextcar5._x = _root.nextcar5._x + 5;
}
if (this.hitTest(_root.nextcar6)) {
_root.nextcar6._x = _root.nextcar6._x + 5;
}
};
Symbol 142 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.car1._x = _root.car1._x - 5;
_root.slowdowncar();
}
if (this.hitTest(_root.nextcar1)) {
_root.nextcar1._x = _root.nextcar1._x - 5;
}
if (this.hitTest(_root.nextcar2)) {
_root.nextcar2._x = _root.nextcar2._x - 5;
}
if (this.hitTest(_root.nextcar3)) {
_root.nextcar3._x = _root.nextcar3._x - 5;
}
if (this.hitTest(_root.nextcar4)) {
_root.nextcar4._x = _root.nextcar4._x - 5;
}
if (this.hitTest(_root.nextcar5)) {
_root.nextcar5._x = _root.nextcar5._x - 5;
}
if (this.hitTest(_root.nextcar6)) {
_root.nextcar6._x = _root.nextcar6._x - 5;
}
};
Instance of Symbol 141 MovieClip "wrongsidel" in Symbol 143 MovieClip [path1] Frame 1
onClipEvent (load) {
this.addx = 0;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 142 MovieClip "wrongsider" in Symbol 143 MovieClip [path1] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Symbol 146 MovieClip [path2] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Instance of Symbol 141 MovieClip "wrongsidel" in Symbol 146 MovieClip [path2] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Instance of Symbol 142 MovieClip "wrongsider" in Symbol 146 MovieClip [path2] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Symbol 149 MovieClip [path3] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Instance of Symbol 141 MovieClip "wrongsidel" in Symbol 149 MovieClip [path3] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Instance of Symbol 142 MovieClip "wrongsider" in Symbol 149 MovieClip [path3] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Symbol 153 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.slowdowncar();
_root.car1._x = _root.car1._x + 2;
}
};
Symbol 155 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.slowdowncar();
_root.car1._x = _root.car1._x + 2;
}
};
Symbol 157 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.slowdowncar();
_root.car1._x = _root.car1._x + 2;
}
};
Symbol 158 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.slowdowncar();
_root.car1._x = _root.car1._x + 2;
}
};
Symbol 160 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.slowdowncar();
_root.car1._x = _root.car1._x + 2;
}
};
Symbol 161 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.slowdowncar();
_root.car1._x = _root.car1._x - 2;
}
};
Symbol 162 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.slowdowncar();
_root.car1._x = _root.car1._x - 2;
}
};
Symbol 163 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.slowdowncar();
_root.car1._x = _root.car1._x - 2;
}
};
Symbol 164 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.slowdowncar();
_root.car1._x = _root.car1._x - 2;
}
};
Symbol 165 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.slowdowncar();
_root.car1._x = _root.car1._x - 2;
}
};
Symbol 182 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
trace("timing increase");
_root.sec2 = _root.sec2 + 10;
_root.points = _root.points + 100;
if (_root.messcouis == 3) {
_root.displaymess.gotoAndStop(7);
_root.messcouis = 0;
}
_root.speedup();
if (_root.allmute == false) {
gotoAndPlay (2);
} else {
gotoAndStop (3);
}
}
};
Instance of Symbol 180 MovieClip in Symbol 182 MovieClip Frame 1
/* no clip actions */
Symbol 182 MovieClip Frame 2
stop();
Symbol 182 MovieClip Frame 3
stop();
Symbol 183 MovieClip [path4] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 186 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.car1._x = _root.car1._x - 5;
_root.slowdowncar();
}
if (this.hitTest(_root.nextcar1)) {
_root.nextcar1._x = _root.nextcar1._x - 5;
}
if (this.hitTest(_root.nextcar2)) {
_root.nextcar2._x = _root.nextcar2._x - 5;
}
if (this.hitTest(_root.nextcar3)) {
_root.nextcar3._x = _root.nextcar3._x - 5;
}
if (this.hitTest(_root.nextcar4)) {
_root.nextcar4._x = _root.nextcar4._x - 5;
}
if (this.hitTest(_root.nextcar5)) {
_root.nextcar5._x = _root.nextcar5._x - 5;
}
if (this.hitTest(_root.nextcar6)) {
_root.nextcar6._x = _root.nextcar6._x - 5;
}
};
Symbol 187 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.car1._x = _root.car1._x + 5;
_root.slowdowncar();
}
if (this.hitTest(_root.nextcar1)) {
_root.nextcar1._x = _root.nextcar1._x + 5;
}
if (this.hitTest(_root.nextcar2)) {
_root.nextcar2._x = _root.nextcar2._x + 5;
}
if (this.hitTest(_root.nextcar3)) {
_root.nextcar3._x = _root.nextcar3._x + 5;
}
if (this.hitTest(_root.nextcar4)) {
_root.nextcar4._x = _root.nextcar4._x + 5;
}
if (this.hitTest(_root.nextcar5)) {
_root.nextcar5._x = _root.nextcar5._x + 5;
}
if (this.hitTest(_root.nextcar6)) {
_root.nextcar6._x = _root.nextcar6._x + 5;
}
};
Symbol 188 MovieClip [path5] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 191 MovieClip [path6] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Instance of Symbol 141 MovieClip "wrongsidel" in Symbol 191 MovieClip [path6] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Instance of Symbol 142 MovieClip "wrongsider" in Symbol 191 MovieClip [path6] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Symbol 203 MovieClip Frame 1
_root.signal = "red";
Symbol 203 MovieClip Frame 92
_root.signal = "green";
_root.carstop1 = false;
_root.carstop2 = false;
_root.carstop3 = false;
_root.carstop4 = false;
_root.carstop5 = false;
_root.carstop6 = false;
Symbol 205 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.signal == "red") {
if (this.hitTest(_root.car1)) {
_root.lifecounter = _root.lifecounter + 1;
_root.slowdowncar();
_root.speed1 = 0;
_root.signaldisplay = false;
_root.policeman._x = _root.car1._x;
_root.policeman.gotoAndPlay(2);
nextFrame();
}
} else if (_root.signal == "green") {
} else {
_root.policeman.gotoAndStop(1);
}
};
Symbol 205 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar1) and (_root.signal == "red")) {
_root.carstop1 = true;
} else {
_root.carstop1 = false;
}
if (this.hitTest(_root.nextcar2) and (_root.signal == "red")) {
_root.carstop2 = true;
} else {
_root.carstop2 = false;
}
if (this.hitTest(_root.nextcar3) and (_root.signal == "red")) {
_root.carstop3 = true;
} else {
_root.carstop3 = false;
}
if (this.hitTest(_root.nextcar4) and (_root.signal == "red")) {
_root.carstop4 = true;
} else {
_root.carstop4 = false;
}
if (this.hitTest(_root.nextcar5) and (_root.signal == "red")) {
_root.carstop5 = true;
} else {
_root.carstop5 = false;
}
if (this.hitTest(_root.nextcar6) and (_root.signal == "red")) {
_root.carstop6 = true;
}
if (this.hitTest(_root.nextcar6) and (_root.signal == "red")) {
_root.carstop6 = true;
} else {
_root.carstop6 = false;
}
};
Symbol 206 MovieClip Frame 2
stop();
Symbol 207 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar1) and (_root.signal == "red")) {
_root.carstop1 = true;
}
if (this.hitTest(_root.nextcar2) and (_root.signal == "red")) {
_root.carstop2 = true;
}
if (this.hitTest(_root.nextcar3) and (_root.signal == "red")) {
_root.carstop3 = true;
}
if (this.hitTest(_root.nextcar4) and (_root.signal == "red")) {
_root.carstop4 = true;
}
if (this.hitTest(_root.nextcar5) and (_root.signal == "red")) {
_root.carstop5 = true;
}
if (this.hitTest(_root.nextcar6) and (_root.signal == "red")) {
_root.carstop6 = true;
}
};
Symbol 207 MovieClip Frame 2
stop();
Symbol 208 MovieClip [path7] Frame 1
_root.sumodisplay = false;
_root.signaldisplay = true;
_root.displaymess.gotoAndStop(2);
Instance of Symbol 203 MovieClip "signal" in Symbol 208 MovieClip [path7] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
play();
} else {
stop();
}
}
Symbol 212 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.car1._x = _root.car1._x - 5;
_root.slowdowncar();
}
};
Symbol 214 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.car1._x = _root.car1._x + 5;
_root.slowdowncar();
}
};
Symbol 215 MovieClip [path8] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 218 MovieClip [path9] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 221 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar1)) {
trace(" left hit ");
_root.nextcar1._x = _root.nextcar1._x + 5;
}
if (this.hitTest(_root.nextcar2)) {
trace(" left hit ");
_root.nextcar2._x = _root.nextcar2._x + 5;
}
if (this.hitTest(_root.nextcar3)) {
trace(" left hit ");
_root.nextcar3._x = _root.nextcar3._x + 5;
}
if (this.hitTest(_root.nextcar4)) {
trace(" left hit ");
_root.nextcar4._x = _root.nextcar4._x + 5;
}
if (this.hitTest(_root.nextcar5)) {
trace(" left hit ");
_root.nextcar5._x = _root.nextcar5._x + 5;
}
if (this.hitTest(_root.nextcar6)) {
trace(" left hit ");
_root.nextcar6._x = _root.nextcar6._x + 5;
}
};
Symbol 222 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar4)) {
trace(" left hit ");
_root.nextcar4._x = _root.nextcar4._x + 5;
}
if (this.hitTest(_root.nextcar5)) {
trace(" left hit ");
_root.nextcar5._x = _root.nextcar5._x + 5;
}
if (this.hitTest(_root.nextcar6)) {
trace(" left hit ");
_root.nextcar6._x = _root.nextcar6._x + 5;
}
if (this.hitTest(_root.nextcar1)) {
trace(" left hit ");
_root.nextcar1._x = _root.nextcar1._x + 5;
}
if (this.hitTest(_root.nextcar2)) {
trace(" left hit ");
_root.nextcar2._x = _root.nextcar2._x + 5;
}
if (this.hitTest(_root.nextcar3)) {
trace(" left hit ");
_root.nextcar3._x = _root.nextcar3._x + 5;
}
};
Symbol 223 MovieClip [path10] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 227 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar1)) {
trace(" left hit ");
_root.nextcar1._x = _root.nextcar1._x - 5;
}
if (this.hitTest(_root.nextcar2)) {
trace(" left hit ");
_root.nextcar2._x = _root.nextcar2._x - 5;
}
if (this.hitTest(_root.nextcar3)) {
trace(" left hit ");
_root.nextcar3._x = _root.nextcar3._x - 5;
}
if (this.hitTest(_root.nextcar4)) {
trace(" left hit ");
_root.nextcar4._x = _root.nextcar4._x - 5;
}
if (this.hitTest(_root.nextcar5)) {
trace(" left hit ");
_root.nextcar5._x = _root.nextcar5._x - 5;
}
if (this.hitTest(_root.nextcar6)) {
trace(" left hit ");
_root.nextcar6._x = _root.nextcar6._x - 5;
}
};
Symbol 228 MovieClip [path11] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 242 MovieClip Frame 10
_root.sumocoll = true;
Symbol 242 MovieClip Frame 21
_root.car1.gotoAndStop(1);
_root.carplaying = true;
_root.gamepause = false;
_root.sumocoll = false;
stop();
Symbol 243 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this.redblock.hitTest(_root.car1.car_center)) {
trace("timing increase");
_root.points = _root.points + 100;
_root.speed1 = 0;
_root.sumodisplay = false;
if (_root.sumodir == "left") {
_root.car1.gotoAndStop(2);
} else if (_root.sumodir == "right") {
_root.car1.gotoAndStop(3);
}
_root.carplaying = false;
_root.sumocollision();
this.gotoAndStop(2);
}
};
Symbol 243 MovieClip Frame 2
stop();
Symbol 244 MovieClip [path22] Frame 1
_root.sumodisplay = true;
_root.signaldisplay = false;
if (_root.messcouis == 3) {
_root.displaymess.gotoAndStop(3);
} else {
_root.messcouis = _root.messcouis + 1;
}
_root.sumodir = "left";
Instance of Symbol 141 MovieClip "wrongside1" in Symbol 244 MovieClip [path22] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Instance of Symbol 142 MovieClip "wrongside11" in Symbol 244 MovieClip [path22] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Symbol 245 MovieClip [path32] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Instance of Symbol 141 MovieClip "wrongside1" in Symbol 245 MovieClip [path32] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Instance of Symbol 142 MovieClip "wrongside11" in Symbol 245 MovieClip [path32] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Symbol 246 MovieClip [path33] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Instance of Symbol 141 MovieClip "wrongside1" in Symbol 246 MovieClip [path33] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Instance of Symbol 142 MovieClip "wrongside11" in Symbol 246 MovieClip [path33] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Symbol 247 MovieClip [path42] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 248 MovieClip [path43] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 249 MovieClip [path52] Frame 1
_root.sumodisplay = true;
_root.signaldisplay = false;
if (_root.messcouis == 3) {
_root.displaymess.gotoAndStop(3);
} else {
_root.messcouis = _root.messcouis + 1;
}
_root.sumodir = "right";
Symbol 252 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
trace("bumpy road");
_root.points = _root.points + 100;
gotoAndStop (2);
}
};
Symbol 252 MovieClip Frame 2
stop();
_root.displaymess.gotoAndStop(8);
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
trace("timing increase");
_root.sec2 = _root.sec2 + 10;
_root.points = _root.points + 100;
gotoAndStop (2);
}
};
Symbol 253 MovieClip [path53] Frame 1
if (_root.messcouis == 3) {
_root.displaymess.gotoAndStop(5);
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 254 MovieClip [path61] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Instance of Symbol 141 MovieClip "wrongside1" in Symbol 254 MovieClip [path61] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Instance of Symbol 142 MovieClip "wrongside11" in Symbol 254 MovieClip [path61] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Symbol 257 MovieClip [path63] Frame 1
_root.sumodisplay = true;
_root.signaldisplay = false;
if (_root.messcouis == 3) {
_root.displaymess.gotoAndStop(3);
} else {
_root.messcouis = _root.messcouis + 1;
}
_root.sumodir = "left";
Instance of Symbol 141 MovieClip "wrongside1" in Symbol 257 MovieClip [path63] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Instance of Symbol 142 MovieClip "wrongside11" in Symbol 257 MovieClip [path63] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Symbol 260 MovieClip [path64] Frame 1
if (_root.messcouis == 3) {
_root.displaymess.gotoAndStop(5);
} else {
_root.messcouis = _root.messcouis + 1;
}
Instance of Symbol 141 MovieClip "wrongsidel" in Symbol 260 MovieClip [path64] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Instance of Symbol 142 MovieClip "wrongsider" in Symbol 260 MovieClip [path64] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Symbol 263 MovieClip [path71] Frame 1
_root.sumodisplay = false;
_root.signaldisplay = true;
_root.displaymess.gotoAndStop(2);
Instance of Symbol 203 MovieClip "signal" in Symbol 263 MovieClip [path71] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
play();
} else {
stop();
}
}
Symbol 266 MovieClip [path72] Frame 1
_root.sumodisplay = false;
_root.signaldisplay = true;
_root.displaymess.gotoAndStop(2);
Instance of Symbol 203 MovieClip "signal" in Symbol 266 MovieClip [path72] Frame 1
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
play();
} else {
stop();
}
}
Symbol 267 MovieClip [path82] Frame 1
_root.sumodisplay = true;
_root.signaldisplay = false;
if (_root.messcouis == 3) {
_root.displaymess.gotoAndStop(3);
} else {
_root.messcouis = _root.messcouis + 1;
}
_root.sumodir = "right";
Symbol 268 MovieClip [path83] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 271 MovieClip [path84] Frame 1
if (_root.messcouis == 3) {
_root.displaymess.gotoAndStop(5);
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 274 MovieClip [path85] Frame 1
if (_root.messcouis == 3) {
_root.displaymess.gotoAndStop(5);
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 275 MovieClip [path92] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 276 MovieClip [path102] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 277 MovieClip [path103] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 278 MovieClip [path112] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Symbol 279 MovieClip [path222] Frame 1
_root.sumodisplay = true;
_root.signaldisplay = false;
if (_root.messcouis == 3) {
_root.displaymess.gotoAndStop(3);
} else {
_root.messcouis = _root.messcouis + 1;
}
_root.sumodir = "right";
Instance of Symbol 141 MovieClip "wrongside1" in Symbol 279 MovieClip [path222] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Instance of Symbol 142 MovieClip "wrongside2" in Symbol 279 MovieClip [path222] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Symbol 280 MovieClip [path612] Frame 1
if (_root.messcouis == 3) {
_root.messcouis = 0;
} else {
_root.messcouis = _root.messcouis + 1;
}
Instance of Symbol 141 MovieClip "wrongside1" in Symbol 280 MovieClip [path612] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Instance of Symbol 142 MovieClip "wrongside11" in Symbol 280 MovieClip [path612] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Symbol 281 MovieClip [path621] Frame 1
_root.sumodisplay = true;
_root.signaldisplay = false;
if (_root.messcouis == 3) {
_root.displaymess.gotoAndStop(3);
} else {
_root.messcouis = _root.messcouis + 1;
}
_root.sumodir = "left";
Instance of Symbol 141 MovieClip "wrongside1" in Symbol 281 MovieClip [path621] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Instance of Symbol 142 MovieClip "wrongside11" in Symbol 281 MovieClip [path621] Frame 1
onClipEvent (load) {
this.addx = 0;
}
Symbol 284 MovieClip Frame 1
this.onEnterFrame = function () {
if ((this.wrongside1.hitTest(_root.car1) or this.wrongside2.hitTest(_root.car1)) or this.wrongside3.hitTest(_root.car1)) {
trace("background collision");
_root.speedy1 = 0;
_root.speed1 = 0;
_root.collision = true;
}
};
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 2
stop();
Symbol 301 MovieClip Frame 3
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 2
stop();
Symbol 302 MovieClip Frame 3
stop();
Symbol 302 MovieClip Frame 4
stop();
Instance of Symbol 293 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
_root.indicator = _rotation;
totalr = 200;
}
onClipEvent (enterFrame) {
_root.indicator = _rotation;
_rotation = (-60 - ((totalr * _root.speedy1) / _root.maxSpeed));
}
Symbol 313 MovieClip Frame 30
_root.signaldisplay = false;
_parent.gotoAndStop(1);
Symbol 314 MovieClip Frame 38
stop();
Symbol 321 MovieClip Frame 30
_root.sumodisplay = false;
_parent.gotoAndStop(1);
Symbol 323 MovieClip Frame 30
_parent.gotoAndStop(1);
Symbol 328 MovieClip Frame 46
_parent.gotoAndStop(1);
Symbol 331 MovieClip Frame 46
_root.sumocoll = false;
_parent.gotoAndStop(1);
Symbol 333 MovieClip Frame 46
_parent.gotoAndStop(1);
Symbol 335 MovieClip Frame 46
_parent.gotoAndStop(1);
Symbol 339 MovieClip Frame 30
_parent.gotoAndStop(1);
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 2
stop();
Instance of Symbol 313 MovieClip in Symbol 340 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 314 MovieClip in Symbol 340 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.allmute == false) {
play();
} else {
gotoAndStop (1);
}
}
Symbol 340 MovieClip Frame 3
stop();
Symbol 340 MovieClip Frame 4
stop();
Instance of Symbol 323 MovieClip in Symbol 340 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
play();
} else {
stop();
}
}
Symbol 340 MovieClip Frame 5
stop();
Symbol 340 MovieClip Frame 6
stop();
Instance of Symbol 331 MovieClip in Symbol 340 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
play();
} else {
stop();
}
}
Symbol 340 MovieClip Frame 7
stop();
Instance of Symbol 333 MovieClip in Symbol 340 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
play();
} else {
stop();
}
}
Symbol 340 MovieClip Frame 8
stop();
Instance of Symbol 335 MovieClip in Symbol 340 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
play();
} else {
stop();
}
}
Symbol 340 MovieClip Frame 9
stop();
Instance of Symbol 339 MovieClip in Symbol 340 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_root.gamepause == false) {
play();
} else {
stop();
}
}
Symbol 342 MovieClip Frame 24
_root.sec2 = _root.sec2 - 1;
Symbol 343 MovieClip Frame 30
_root.tuspeed = _root.tuspeed + 1;
Symbol 346 Button
on (release) {
_root.playlevel = true;
_root.gamestart = true;
_root.carplaying = false;
_root.car1._visible = true;
_root.hud._visible = true;
_root.distance._visible = true;
_root.nextcar1._visible = true;
_root.nextcar2._visible = true;
_root.nextcar3._visible = true;
_root.nextcar4._visible = true;
_root.nextcar5._visible = true;
_root.nextcar6._visible = true;
_root.mute._x = 625;
_root.displaystarting.gotoAndStop(1);
_root.getGameTime();
gotoAndStop (1);
}
Symbol 349 Button
on (release) {
_root.playlevel = true;
_root.gamestart = true;
_root.carplaying = false;
_root.car1._visible = true;
_root.hud._visible = true;
_root.distance._visible = true;
_root.nextcar1._visible = true;
_root.nextcar2._visible = true;
_root.nextcar3._visible = true;
_root.nextcar4._visible = true;
_root.nextcar5._visible = true;
_root.nextcar6._visible = true;
_root.mute._x = 625;
_root.displaystarting.gotoAndStop(1);
gotoAndStop (1);
}
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 43
stop();
_root.so1 = true;
Symbol 355 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 2
stop();
Mouse.show();
_root.levelup.gotoAndStop(1);
Symbol 355 MovieClip Frame 3
stop();
Mouse.show();
_root.levelup.gotoAndStop(1);
_root.so1 = false;
Instance of Symbol 352 MovieClip in Symbol 355 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.allmute == false) {
if (_root.so1 == false) {
play();
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (1);
}
}
Symbol 355 MovieClip Frame 4
stop();
Mouse.show();
_root.levelup.gotoAndStop(1);
_root.so1 = false;
Symbol 367 MovieClip Frame 45
_root.gameState = "INIT";
_root.gamestart = false;
_root.carplaying = false;
_parent.gotoAndStop(1);
Symbol 371 Button
on (release) {
_root.gameState = "";
_root.gamestart = false;
_root.gamepause = false;
_root.carplaying = false;
_root.lifes = 3;
_root.lifecounter = 0;
_root.messcouis = 0;
_root.hud.lifeco.gotoAndStop(1);
_root.points = 0;
_root.level = 1;
_root.displaymess.gotoAndStop(1);
gotoAndStop (5);
}
Symbol 375 Button
on (release) {
_root.score = _root.points;
trace("utcsdate:" + utcdate);
trace("score:" + score);
trace("gameid:" + gameId);
gotoAndStop ("highscore");
}
Symbol 378 Button
on (release) {
_root.gameState = "";
_root.gamestart = false;
_root.gamepause = false;
_root.carplaying = false;
_root.level = 1;
_root.points = 0;
_root.messcouis = 0;
_root.lifecounter = 0;
_root.lifes = 3;
_root.hud.lifeco.gotoAndStop(1);
_root.displaymess.gotoAndStop(1);
gotoAndStop (5);
}
Symbol 380 Button
on (release) {
_root.gameState = "INIT";
gotoAndStop (6);
}
Symbol 381 Button
on (release) {
_root.gameState = "";
gotoAndStop (6);
}
Symbol 387 Button
on (release) {
_root.gameState = "INIT";
gotoAndStop (1);
}
Symbol 411 Button
on (release) {
_root.gotoAndPlay("splash");
gotoAndStop (1);
}
Symbol 413 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 2
stop();
Mouse.show();
_root.messcouis = 0;
Symbol 413 MovieClip Frame 3
stop();
Mouse.show();
_root.gameState = "win";
Symbol 413 MovieClip Frame 4
stop();
Mouse.show();
Symbol 413 MovieClip Frame 5
stop();
Mouse.show();
Symbol 413 MovieClip Frame 6
stop();
Mouse.show();
Symbol 413 MovieClip Frame 7
trace("gameid:" + _root.gameId);
trace("score:" + _root.score);
trace("utcdate:" + _root.utcdate);
commentTxt.text = "SUBMITTING SCORE";
xmlString = ((((("<?xml version=\"1.0\"?><zapakscorecaptureAPI version=\"1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><game evttype=\"end\" gameid=\"" + _root.gameId) + "\" gamestarttime=\"") + _root.utcdate) + "\" getscore=\"0\" getboard=\"1\"></game><scoredata><score>") + _root.score) + "</score></scoredata></zapakscorecaptureAPI>";
scoreUrl = "https://www.zapak.com/getxmlscore.z";
returnXML = new XML();
sendXML = new XML(xmlString);
sendXML.parseXML();
sendXML.sendAndLoad(scoreUrl, returnXML);
returnXML.onLoad = function (success) {
trace(success);
trace("return XML : " + returnXML.toString());
outputTxt.text = returnXML.toString();
arrLen = returnXML.firstChild.childNodes[0].childNodes.length;
var _local1 = 0;
while (_local1 < arrLen) {
if (returnXML.firstChild.childNodes[0].childNodes[_local1].nodeName == "leaderboard") {
arrNum = _local1;
}
_local1++;
}
arrLength = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes.length;
_local1 = 0;
while (_local1 < arrLength) {
if (_local1 == 0) {
dayScore = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[_local1].firstChild;
} else if (_local1 == 1) {
topScore = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[_local1];
}
_local1++;
}
if (returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[2].attributes.userid != undefined) {
currentUser1 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[2].attributes.userid;
currentScore1 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[2].childNodes[1].firstChild;
}
if (returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[3].attributes.userid != undefined) {
currentUser2 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[3].attributes.userid;
currentScore2 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[3].childNodes[1].firstChild;
}
if (returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[4].attributes.userid != undefined) {
currentUser3 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[4].attributes.userid;
currentScore3 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[4].childNodes[1].firstChild;
}
if (returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[5].attributes.userid != undefined) {
currentUser4 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[5].attributes.userid;
currentScore4 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[5].childNodes[1].firstChild;
}
if (returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[6].attributes.userid != undefined) {
currentUser5 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[6].attributes.userid;
currentScore5 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[6].childNodes[1].firstChild;
}
if (returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[7].attributes.userid != undefined) {
currentUser6 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[7].attributes.userid;
currentScore6 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[7].childNodes[1].firstChild;
}
if (returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[8].attributes.userid != undefined) {
currentUser7 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[8].attributes.userid;
currentScore7 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[8].childNodes[1].firstChild;
}
if (returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[9].attributes.userid != undefined) {
currentUser8 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[9].attributes.userid;
currentScore8 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[9].childNodes[1].firstChild;
}
if (returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[10].attributes.userid != undefined) {
currentUser9 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[10].attributes.userid;
currentScore9 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[10].childNodes[1].firstChild;
}
if (returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[11].attributes.userid != undefined) {
currentUser10 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[11].attributes.userid;
currentScore10 = returnXML.firstChild.childNodes[0].childNodes[arrNum].childNodes[11].childNodes[1].firstChild;
}
commentTxt.text = "HIGHSCORES";
};
returnXML.onHTTPStatus = function (status_code) {
trace("status code : " + status_code);
};
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 22
_root.policemv.gotoAndPlay(2);
gotoAndStop (1);
Symbol 422 MovieClip Frame 30
_root.secnext2 = _root.secnext2 + 1;
Symbol 423 MovieClip Frame 30
_root.secnext3 = _root.secnext3 + 1;
Symbol 424 MovieClip Frame 30
_root.secnext1 = _root.secnext1 + 1;
Symbol 425 MovieClip Frame 30
_root.secnext5 = _root.secnext5 + 1;
Symbol 426 MovieClip Frame 30
_root.secnext6 = _root.secnext6 + 1;
Symbol 427 MovieClip Frame 30
_root.secnext4 = _root.secnext4 + 1;
Symbol 430 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.lefts)) {
_root.nextcar2._x = _root.nextcar2._x + 2;
}
if (this.hitTest(_root.nextcar1.lefts)) {
_root.nextcar1._x = _root.nextcar1._x + 2;
}
if (this.hitTest(_root.nextcar3.lefts)) {
_root.nextcar3._x = _root.nextcar3._x + 2;
}
if (this.hitTest(_root.nextcar5.lefts)) {
_root.nextcar5._x = _root.nextcar5._x + 2;
}
if (this.hitTest(_root.nextcar6.lefts)) {
_root.nextcar6._x = _root.nextcar6._x + 2;
}
};
Symbol 431 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.rights)) {
_root.nextcar2._x = _root.nextcar2._x - 2;
}
if (this.hitTest(_root.nextcar3.rights)) {
_root.nextcar3._x = _root.nextcar3._x - 2;
}
if (this.hitTest(_root.nextcar1.rights)) {
_root.nextcar1._x = _root.nextcar1._x - 2;
}
if (this.hitTest(_root.nextcar5.rights)) {
_root.nextcar5._x = _root.nextcar5._x - 2;
}
if (this.hitTest(_root.nextcar6.rights)) {
_root.nextcar6._x = _root.nextcar6._x - 2;
}
};
Symbol 432 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.downs)) {
_root.nextcar2._y = _root.nextcar2._y + 2;
}
if (this.hitTest(_root.nextcar1.downs)) {
_root.nextcar1._y = _root.nextcar1._y + 2;
}
if (this.hitTest(_root.nextcar3.downs)) {
_root.nextcar3._y = _root.nextcar3._y + 2;
}
if (this.hitTest(_root.nextcar5.downs)) {
_root.nextcar5._y = _root.nextcar5._y + 2;
}
if (this.hitTest(_root.nextcar6.downs)) {
_root.nextcar6._y = _root.nextcar6._y + 2;
}
};
Symbol 433 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.ups)) {
_root.nextcar2._y = _root.nextcar2._y - 2;
}
if (this.hitTest(_root.nextcar1.ups)) {
_root.nextcar1._y = _root.nextcar1._y - 2;
}
if (this.hitTest(_root.nextcar3.ups)) {
_root.nextcar3._y = _root.nextcar3._y - 2;
}
if (this.hitTest(_root.nextcar5.ups)) {
_root.nextcar5._y = _root.nextcar5._y - 2;
}
if (this.hitTest(_root.nextcar6.ups)) {
_root.nextcar6._y = _root.nextcar6._y - 2;
}
};
Symbol 434 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.nextcar1._x = _root.nextcar1._x + 2;
_root.car1._x = _root.car1._x - 2;
}
};
Symbol 437 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.lefts)) {
_root.nextcar2._x = _root.nextcar2._x + 2;
}
if (this.hitTest(_root.nextcar1.lefts)) {
_root.nextcar1._x = _root.nextcar1._x + 2;
}
if (this.hitTest(_root.nextcar3.lefts)) {
_root.nextcar3._x = _root.nextcar3._x + 2;
}
if (this.hitTest(_root.nextcar5.lefts)) {
_root.nextcar5._x = _root.nextcar5._x + 2;
}
if (this.hitTest(_root.nextcar4.lefts)) {
_root.nextcar4._x = _root.nextcar4._x + 2;
}
};
Symbol 438 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.rights)) {
_root.nextcar2._x = _root.nextcar2._x - 2;
}
if (this.hitTest(_root.nextcar3.rights)) {
_root.nextcar3._x = _root.nextcar3._x - 2;
}
if (this.hitTest(_root.nextcar1.rights)) {
_root.nextcar1._x = _root.nextcar1._x - 2;
}
if (this.hitTest(_root.nextcar5.rights)) {
_root.nextcar5._x = _root.nextcar5._x - 2;
}
if (this.hitTest(_root.nextcar4.rights)) {
_root.nextcar4._x = _root.nextcar4._x - 2;
}
};
Symbol 439 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.downs)) {
_root.nextcar2._y = _root.nextcar2._y + 2;
}
if (this.hitTest(_root.nextcar1.downs)) {
_root.nextcar1._y = _root.nextcar1._y + 2;
}
if (this.hitTest(_root.nextcar3.downs)) {
_root.nextcar3._y = _root.nextcar3._y + 2;
}
if (this.hitTest(_root.nextcar5.downs)) {
_root.nextcar5._y = _root.nextcar5._y + 2;
}
if (this.hitTest(_root.nextcar4.downs)) {
_root.nextcar4._y = _root.nextcar4._y + 2;
}
};
Symbol 440 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.nextcar2.ups)) {
_root.nextcar2._y = _root.nextcar2._y - 2;
}
if (this.hitTest(_root.nextcar1.ups)) {
_root.nextcar1._y = _root.nextcar1._y - 2;
}
if (this.hitTest(_root.nextcar3.ups)) {
_root.nextcar3._y = _root.nextcar3._y - 2;
}
if (this.hitTest(_root.nextcar5.ups)) {
_root.nextcar5._y = _root.nextcar5._y - 2;
}
if (this.hitTest(_root.nextcar4.ups)) {
_root.nextcar4._y = _root.nextcar4._y - 2;
}
};
Symbol 441 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car1)) {
_root.nextcar1._x = _root.nextcar1._x + 2;
_root.car1._x = _root.car1._x - 2;
}
};
Symbol 446 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 2
Symbol 446 MovieClip Frame 30
_root.carplaying = true;
_root.carpause = false;
Symbol 450 Button
on (release) {
gameState = "PLAYING";
_root.gotoAndStop("gameplay");
}
Symbol 454 Button
on (release) {
_root.gameState = "";
_root.gamestart = false;
_root.gamepause = false;
_root.carplaying = false;
_root.nextcar1._visible = false;
_root.nextcar2._visible = false;
_root.nextcar3._visible = false;
_root.nextcar4._visible = false;
_root.nextcar5._visible = false;
_root.nextcar6._visible = false;
_root.aa = 0;
othercarsarray = new Array();
add_items = new Array();
_root.signal = "";
_root.carplaying = false;
_root.divfactor = 97;
_root.diffx = 0;
_root.diffy = 0;
_root.sec = 0;
_root.sec2 = 0;
_root.init = getTimer();
_root.sec1 = 0;
_root.sec3 = 0;
_root.mmm3 = 0;
_root.car1._visible = false;
_root.hud._visible = false;
_root.distance._visible = false;
_root.diffy = (_root.objy1 - Stage.height) / _root.divfactor;
_root.addnew = true;
_root.car1.code = "player";
_root.acceleration = 1;
_root.speedDecay = 0.96;
_root.rotationStep = 10;
_root.maxSpeed = 13;
_root.backSpeed = 1;
_root.rota = 2;
trace("button depth of car : " + _root.car1.getDepth());
_root.car1.swapDepths(_root.car1);
trace("button depth of car : " + _root.car1.getDepth());
_root.distance.swapDepths(808);
_root.displaystarting.gotoAndStop(_root.level + 1);
_root.upkeypressed = false;
_root.sumodisplay = false;
_root.signaldisplay = false;
_root.car1._visible = false;
_root.hud._visible = false;
_root.level = 1;
_root.distance._visible = false;
_root.car1._x = _root.car_orgx;
_root.car1._rotation = 0;
_root.distance._x = _root.totalx - (_root.totaldis / 2);
_root.distance._x = _root.totalx - (_root.totaldis / 2);
_root.gotoAndPlay("splash");
this.removeMovieClip();
}
Symbol 458 Button
on (release) {
_root.gotoAndPlay("splash");
gotoAndStop (2);
}
Symbol 459 Button
on (release) {
_root._lockroot = false;
_root.score = _root.points;
trace("utcsdate:" + utcdate);
trace("score:" + score);
trace("gameid:" + gameId);
_root.gotoAndStop("highscore");
}