Frame 1
function \u0004\u0005() {
Set("\x03", (2530 % 511) * true);
return(\x03);
}
var \x01 = (-313 + \x04\x05());
// swfAction0x03 // Unknown action
function \u0004\u0005() {
Set("\x03", (2510 % 511) * true);
return(\x03);
}
var \x01 = (134 + \x04\x05());
// swfAction0x03 // Unknown action
Instance of Symbol 112 MovieClip in Frame 1
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=211&area=minilogo2", "_blank");
}
Frame 2
stop();
Frame 3
function \u0004\u0005() {
Set("\x03", (2745 % 511) * true);
return(\x03);
}
var \x01 = (754 + \x04\x05());
// swfAction0x03 // Unknown action
Instance of Symbol 410 MovieClip in Frame 3
onClipEvent (load) {
function \u0004\u0005() {
Set("\x03", (1755 % 511) * true);
return(\x03);
}
var \x01 = (522 + \x04\x05());
// swfAction0x03 // Unknown action
}
onClipEvent (enterFrame) {
function \u0004\u0005() {
Set("\x03", (518 % 511) * true);
return(\x03);
}
var \x01 = (167 + \x04\x05());
// swfAction0x03 // Unknown action
}
onClipEvent (enterFrame) {
if (_root.music1A == false) {
bikesound = 0;
music.stop();
}
}
Frame 5
_root.gotoAndStop(23);
Frame 20
function \u0004\u0005() {
Set("\x03", (1227 % 511) * true);
return(\x03);
}
var \x01 = (219 + \x04\x05());
// swfAction0x03 // Unknown action
Instance of Symbol 434 MovieClip in Frame 20
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Frame 21
!!!ERROR
Instance of Symbol 476 MovieClip [TMP6pbk6uzm9i] in Frame 21
//component parameters
onClipEvent (construct) {
gameID = 2000006 /* 0x1E8486 */;
}
Instance of Symbol 481 MovieClip [TMP6ojzjuzm8i] in Frame 21
//component parameters
onClipEvent (construct) {
gameID = 2000006 /* 0x1E8486 */;
}
Frame 23
!!!ERROR
Instance of Symbol 492 MovieClip in Frame 23
onClipEvent (load) {
if (_root.killMode) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.killMode) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 434 MovieClip in Frame 23
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Frame 24
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 24
onClipEvent (load) {
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 24
onClipEvent (load) {
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 24
onClipEvent (load) {
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 24
onClipEvent (load) {
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 24
onClipEvent (load) {
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 24
onClipEvent (load) {
!!!ERROR
Instance of Symbol 504 MovieClip in Frame 24
onClipEvent (enterFrame) {
!!!ERROR
Frame 25
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 25
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 25
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 25
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 532 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 539 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 525 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) {
_root.voitureverte.gotoAndStop(2);
}
if (this.HIT.hitTest(_root.voitureverte.front) or this.cartype.HIT.hitTest(_root.voitureverte.box1)) {
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 532 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 539 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 25
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 25
onClipEvent (load) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car" in Frame 25
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 4;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car3" in Frame 25
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 4;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
if (speed >= 2) {
_root.drawtrack(this, -90);
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.cartype.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.cartype.checker.hitTest(_root.car4)) or this.cartype.checker.hitTest(_root.trailer)) or this.cartype.checker.hitTest(_root.car2)) or this.cartype.checker.hitTest(_root.car)) {
speed = speed - 1.5;
if (speed <= 0) {
speed = 0;
if (_root.maskRoot.hitTest(this)) {
_root.sound7 = true;
}
}
} else {
speed = speed + 0.1;
if (speed >= 10) {
speed = 10;
_root.sound7 = false;
}
}
if (this.cartype.HIT.hitTest(_root.voitureverte.front) or this.cartype.HIT.hitTest(_root.voitureverte.box1)) {
_root.voitureverte.gotoAndStop(2);
}
if (((_root.trailer.HIT1.hitTest(this.cartype.HIT) or _root.trailer.HIT2.hitTest(this.cartype.HIT)) or _root.trailer.HIT3.hitTest(this.cartype.HIT)) or _root.trailer.HIT4.hitTest(this.cartype.HIT)) {
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 567 MovieClip "car4" in Frame 25
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 4;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 25
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 25
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 700) {
this._y = 700;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -200) {
_root._y = -200;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
} else if (Key.isDown(40) and (_root.spd > 5)) {
this.gotoAndStop(3);
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 410 MovieClip in Frame 25
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 434 MovieClip "minilogo" in Frame 25
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 627 MovieClip "steam" in Frame 25
onClipEvent (load) {
this._visible = false;
}
Frame 26
!!!ERROR
Frame 27
!!!ERROR
Instance of Symbol 640 MovieClip "c8" in Frame 27
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c7" in Frame 27
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c6" in Frame 27
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c5" in Frame 27
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 641 MovieClip "t4" in Frame 27
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t3" in Frame 27
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 27
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 27
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 27
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 27
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 27
onClipEvent (load) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 27
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.99;
incRotation = 0;
maxWheelAngle = 5;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
ar = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) and ((!_root.dead) == true)) {
maxSpeed = maxSpeed - 2;
if (maxSpeed <= 0) {
maxSpeed = 0;
_root.spd = 2;
}
}
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
if (this._y <= 100) {
this.gotoAndStop(2);
this._y = 100;
}
if (this._y >= 700) {
this.gotoAndStop(2);
this._y = 700;
}
if (this._x >= 1500) {
this._x = 1500;
}
aa = _root.voitureverte._x;
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -200) {
_root._y = -200;
}
if (_root._x >= 20000) {
_root._x = 20000;
if (ar == true) {
_root.attachMovie("Arrive", "Arrive", 51, {_x:-33, _y:0});
ar = false;
}
_root.exeptionDead = true;
_root.startTitle.gotoAndStop(130);
if ((this.hitTest(_root.maskRoot) and (_root.exeptionDead == true)) and (_root.dead == true)) {
this._x = this._x - 10;
this._rotation = 178.5;
this.box1.gotoAndStop(2);
this.front.gotoAndStop(2);
}
_root.dead = true;
_root.spd = _root.spd - 1;
if (_root.spd <= 0) {
_root.spd = 0;
_root.maxSpeed = 0;
_root.speed = 0;
}
}
trace(this._y);
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if (Key.isDown(40) and ((!_root.dead) == true)) {
maxSpeed = maxSpeed - 0.5;
_root.spd = _root.spd - 0.5;
if (maxSpeed <= 0) {
maxSpeed = 0;
_root.spd = 2;
}
}
if (Key.isDown(38) and ((!_root.dead) == true)) {
if (_root.spd >= 17) {
_root.spd = 17;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = _root.spd - 0.1;
if (_root.spd <= 2) {
_root.spd = 2;
}
} else {
_root.spd = 0;
}
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 633 MovieClip "palmfond" in Frame 27
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this.gotoAndStop(random(10) + 1);
}
Instance of Symbol 640 MovieClip "c1" in Frame 27
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c4" in Frame 27
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c3" in Frame 27
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c2" in Frame 27
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c1" in Frame 27
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 539 MovieClip in Frame 27
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 539 MovieClip in Frame 27
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 434 MovieClip "minilogo" in Frame 27
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Frame 28
!!!ERROR
Frame 29
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 29
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 29
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 29
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 541 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 29
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 29
onClipEvent (load) {
!!!ERROR
Instance of Symbol 625 MovieClip "introTruck" in Frame 29
onClipEvent (load) {
this.gotoAndPlay(447);
}
Instance of Symbol 649 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 616 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 532 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car" in Frame 29
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 4;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car3" in Frame 29
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 2;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 29
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 700) {
this._y = 700;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -200) {
_root._y = -200;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 410 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 434 MovieClip "minilogo" in Frame 29
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 616 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 501 MovieClip "view" in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 533 MovieClip "hitArea4" in Frame 29
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 315 MovieClip in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root._currentframe);
}
Frame 30
two2 = true;
one1 = false;
endLevel = 119;
Instance of Symbol 669 MovieClip "trailer" in Frame 30
onClipEvent (enterFrame) {
if (_root.voitureverte.speed >= 2) {
_root.drawtrack(this, -90);
}
if ((!_root.dead) == true) {
xd = _root.voitureverte._x - _root.trailer._x;
yd = _root.voitureverte._y - _root.trailer._y;
dis = Math.sqrt((xd * xd) + (yd * yd));
_root.trailer._x = _root.voitureverte._x - ((xd / dis) * len);
_root.trailer._y = _root.voitureverte._y - ((yd / dis) * len);
_root.trailer._rotation = (Math.atan2(yd, xd) / (Math.PI/180)) - 90;
}
}
onClipEvent (load) {
len = 100;
this.gotoAndStop(3);
}
Frame 31
!!!ERROR
Frame 32
!!!ERROR
Instance of Symbol 640 MovieClip "c8" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c7" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c6" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c5" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 641 MovieClip "t5" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t4" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t3" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t2" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t1" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.tN.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 10) and ((!_root.dead) == true)) {
spd = 10;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 526 MovieClip "palmhaut" in Frame 32
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 32
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 32
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 32
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.99;
incRotation = 0;
maxWheelAngle = 5;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
ar = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) and ((!_root.dead) == true)) {
maxSpeed = maxSpeed - 2;
if (maxSpeed <= 0) {
maxSpeed = 0;
_root.spd = 2;
}
}
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
if (this._y <= 100) {
this.gotoAndStop(2);
this._y = 100;
}
if (this._y >= 700) {
this.gotoAndStop(2);
this._y = 700;
}
if (this._x >= 1500) {
this._x = 1500;
}
aa = _root.voitureverte._x;
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -200) {
_root._y = -200;
}
if (_root._x >= 20000) {
_root._x = 20000;
if (ar == true) {
_root.attachMovie("Arrive", "Arrive", 51, {_x:-33, _y:0});
ar = false;
}
_root.exeptionDead = true;
_root.startTitle.gotoAndStop(130);
if ((_root.trailer.hitTest(_root.maskRoot) and (_root.exeptionDead == true)) and (_root.dead == true)) {
_root.trailer._x = _root.trailer._x - 10;
_root.trailer._y = this._y;
this._x = this._x - 10;
_root.trailer._rotation = 90;
_root.trailer.HIT1.gotoAndStop(2);
_root.trailer.HIT2.gotoAndStop(2);
_root.trailer.HIT3.gotoAndStop(2);
_root.trailer.HIT4.gotoAndStop(2);
this._rotation = 178.5;
this.box1.gotoAndStop(2);
this.front.gotoAndStop(2);
}
_root.dead = true;
_root.spd = _root.spd - 1;
if (_root.spd <= 0) {
_root.spd = 0;
_root.maxSpeed = 0;
_root.speed = 0;
}
}
trace(this._y);
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if (Key.isDown(40) and ((!_root.dead) == true)) {
maxSpeed = maxSpeed - 0.5;
_root.spd = _root.spd - 0.5;
if (maxSpeed <= 0) {
maxSpeed = 0;
_root.spd = 2;
}
}
if (Key.isDown(38) and ((!_root.dead) == true)) {
if (_root.spd >= 17) {
_root.spd = 17;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = _root.spd - 0.1;
if (_root.spd <= 2) {
_root.spd = 2;
}
} else {
_root.spd = 0;
}
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 633 MovieClip "palmfond" in Frame 32
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this.gotoAndStop(random(10) + 1);
}
Instance of Symbol 641 MovieClip "t6" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 10) and ((!_root.dead) == true)) {
spd = 10;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(720) + 800);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c1" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 669 MovieClip "trailer" in Frame 32
onClipEvent (enterFrame) {
if (_root.voitureverte.speed >= 2) {
_root.drawtrack(this, -90);
}
if ((!_root.dead) == true) {
xd = _root.voitureverte._x - _root.trailer._x;
yd = _root.voitureverte._y - _root.trailer._y;
dis = Math.sqrt((xd * xd) + (yd * yd));
_root.trailer._x = _root.voitureverte._x - ((xd / dis) * len);
_root.trailer._y = _root.voitureverte._y - ((yd / dis) * len);
_root.trailer._rotation = (Math.atan2(yd, xd) / (Math.PI/180)) - 90;
}
}
onClipEvent (load) {
len = 100;
this.gotoAndStop(3);
}
Instance of Symbol 640 MovieClip "c4" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c3" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c2" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c1" in Frame 32
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 539 MovieClip in Frame 32
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 539 MovieClip in Frame 32
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 434 MovieClip "minilogo" in Frame 32
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Frame 33
!!!ERROR
Frame 34
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 34
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 34
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 34
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 541 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 34
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 34
onClipEvent (load) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 649 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 649 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 34
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 1000) {
this._y = 1000;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -500) {
_root._y = -500;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
} else if (Key.isDown(40) and (_root.spd > 5)) {
this.gotoAndStop(3);
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 678 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car3" in Frame 34
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 2;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 616 MovieClip in Frame 34
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 501 MovieClip in Frame 34
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 625 MovieClip "introTruck" in Frame 34
onClipEvent (load) {
this.gotoAndPlay(940);
}
Instance of Symbol 410 MovieClip in Frame 34
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 669 MovieClip "trailer" in Frame 34
onClipEvent (enterFrame) {
if (_root.voitureverte.speed >= 2) {
_root.drawtrack(this, -90);
}
if ((!_root.dead) == true) {
xd = _root.voitureverte._x - _root.trailer._x;
yd = _root.voitureverte._y - _root.trailer._y;
dis = Math.sqrt((xd * xd) + (yd * yd));
_root.trailer._x = _root.voitureverte._x - ((xd / dis) * len);
_root.trailer._y = _root.voitureverte._y - ((yd / dis) * len);
_root.trailer._rotation = (Math.atan2(yd, xd) / (Math.PI/180)) - 90;
}
}
onClipEvent (load) {
len = 100;
this.gotoAndStop(3);
}
Instance of Symbol 434 MovieClip "minilogo" in Frame 34
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 501 MovieClip in Frame 34
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 34
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 34
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 34
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 705 MovieClip in Frame 34
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Frame 35
!!!ERROR
Frame 36
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 36
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 36
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 36
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 36
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 36
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 36
onClipEvent (load) {
!!!ERROR
Instance of Symbol 678 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 713 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 713 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 713 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 716 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car3" in Frame 36
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 2;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car2" in Frame 36
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 2;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car4" in Frame 36
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 2;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car5" in Frame 36
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 4;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car6" in Frame 36
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 4;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car7" in Frame 36
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 4;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 36
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 625 MovieClip "introTruck" in Frame 36
onClipEvent (load) {
this.gotoAndPlay(720);
}
Instance of Symbol 603 MovieClip "voitureverte" in Frame 36
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 1000) {
this._y = 1000;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -500) {
_root._y = -500;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
} else if (Key.isDown(40) and (_root.spd > 5)) {
this.gotoAndStop(3);
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 434 MovieClip "minilogo" in Frame 36
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 501 MovieClip in Frame 36
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 36
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 36
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 36
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 36
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 36
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 36
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 705 MovieClip in Frame 36
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip in Frame 36
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 36
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 705 MovieClip in Frame 36
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Frame 37
!!!ERROR
Frame 38
!!!ERROR
Instance of Symbol 640 MovieClip "c8" in Frame 38
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c7" in Frame 38
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c6" in Frame 38
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c5" in Frame 38
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 641 MovieClip "t4" in Frame 38
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t1" in Frame 38
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 640 MovieClip "c4" in Frame 38
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c3" in Frame 38
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c2" in Frame 38
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c1" in Frame 38
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 526 MovieClip "palmhaut" in Frame 38
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 38
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 38
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 38
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.99;
incRotation = 0;
maxWheelAngle = 5;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
ar = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) and ((!_root.dead) == true)) {
maxSpeed = maxSpeed - 2;
if (maxSpeed <= 0) {
maxSpeed = 0;
_root.spd = 2;
}
}
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
if (this._y <= 100) {
this.gotoAndStop(2);
this._y = 100;
}
if (this._y >= 700) {
this.gotoAndStop(2);
this._y = 700;
}
if (this._x >= 1500) {
this._x = 1500;
}
aa = _root.voitureverte._x;
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -200) {
_root._y = -200;
}
if (_root._x >= 40000) {
_root._x = 40000;
_root.exeptionDead = true;
_root.startTitle.gotoAndStop(130);
if (ar == true) {
_root.attachMovie("Arrive", "Arrive", 51, {_x:-33, _y:0});
ar = false;
}
if ((_root.trailer.hitTest(_root.maskRoot) and (_root.exeptionDead == true)) and (_root.dead == true)) {
_root.trailer._x = _root.trailer._x - 10;
_root.trailer._y = this._y;
this._x = this._x - 10;
_root.trailer._rotation = 90;
_root.trailer.HIT1.gotoAndStop(2);
_root.trailer.HIT2.gotoAndStop(2);
_root.trailer.HIT3.gotoAndStop(2);
_root.trailer.HIT4.gotoAndStop(2);
this._rotation = 178.5;
this.box1.gotoAndStop(2);
this.front.gotoAndStop(2);
}
_root.dead = true;
_root.spd = _root.spd - 1;
if (_root.spd <= 0) {
_root.spd = 0;
_root.maxSpeed = 0;
_root.speed = 0;
}
}
trace(this._y);
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if (Key.isDown(40) and ((!_root.dead) == true)) {
maxSpeed = maxSpeed - 0.5;
_root.spd = _root.spd - 0.5;
if (maxSpeed <= 0) {
maxSpeed = 0;
_root.spd = 2;
}
}
if (Key.isDown(38) and ((!_root.dead) == true)) {
if (_root.spd >= 17) {
_root.spd = 17;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = _root.spd - 0.1;
if (_root.spd <= 2) {
_root.spd = 2;
}
} else {
_root.spd = 0;
}
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 633 MovieClip "palmfond" in Frame 38
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this.gotoAndStop(random(10) + 1);
}
Instance of Symbol 640 MovieClip "c1" in Frame 38
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 723 MovieClip in Frame 38
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this.gotoAndStop(random(10) + 1);
}
Instance of Symbol 434 MovieClip "minilogo" in Frame 38
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 713 MovieClip in Frame 38
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 713 MovieClip in Frame 38
onClipEvent (enterFrame) {
!!!ERROR
Frame 39
!!!ERROR
Frame 40
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 40
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 40
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 40
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 40
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 40
onClipEvent (load) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car3" in Frame 40
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 2;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car2" in Frame 40
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 2;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car4" in Frame 40
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 2;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car6" in Frame 40
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 4;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car7" in Frame 40
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 4;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 735 MovieClip in Frame 40
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 735 MovieClip in Frame 40
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 735 MovieClip in Frame 40
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 735 MovieClip in Frame 40
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 565 MovieClip "car5" in Frame 40
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 4;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 40
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 2000) {
this._y = 2000;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -1500) {
_root._y = -1500;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
} else if (Key.isDown(40) and (_root.spd > 5)) {
this.gotoAndStop(3);
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 625 MovieClip "introTruck" in Frame 40
onClipEvent (load) {
this.gotoAndPlay(1120);
}
Instance of Symbol 434 MovieClip "minilogo" in Frame 40
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 616 MovieClip in Frame 40
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 533 MovieClip "pickUP" in Frame 40
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 705 MovieClip in Frame 40
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 40
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 40
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 40
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 40
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 40
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 705 MovieClip in Frame 40
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Frame 41
one1 = false;
two2 = true;
Instance of Symbol 669 MovieClip "trailer" in Frame 41
onClipEvent (enterFrame) {
if (_root.voitureverte.speed >= 2) {
_root.drawtrack(this, -90);
}
if ((!_root.dead) == true) {
xd = _root.voitureverte._x - _root.trailer._x;
yd = _root.voitureverte._y - _root.trailer._y;
dis = Math.sqrt((xd * xd) + (yd * yd));
_root.trailer._x = _root.voitureverte._x - ((xd / dis) * len);
_root.trailer._y = _root.voitureverte._y - ((yd / dis) * len);
_root.trailer._rotation = (Math.atan2(yd, xd) / (Math.PI/180)) - 90;
}
}
onClipEvent (load) {
len = 100;
this.gotoAndStop(2);
}
Frame 42
!!!ERROR
Frame 43
!!!ERROR
Instance of Symbol 640 MovieClip "c8" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c7" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c6" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c5" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c4" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c3" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c2" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c1" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 526 MovieClip "palmhaut" in Frame 43
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 43
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 43
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 43
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 43
onClipEvent (load) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 43
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.99;
incRotation = 0;
maxWheelAngle = 5;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
ar = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) and ((!_root.dead) == true)) {
maxSpeed = maxSpeed - 2;
if (maxSpeed <= 0) {
maxSpeed = 0;
_root.spd = 2;
}
}
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
if (this._y <= 100) {
this.gotoAndStop(2);
this._y = 100;
}
if (this._y >= 700) {
this.gotoAndStop(2);
this._y = 700;
}
if (this._x >= 1500) {
this._x = 1500;
}
aa = _root.voitureverte._x;
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -200) {
_root._y = -200;
}
if (_root._x >= 22000) {
_root._x = 22000;
if (ar == true) {
_root.attachMovie("Arrive", "Arrive", 51, {_x:-33, _y:0});
ar = false;
}
_root.exeptionDead = true;
_root.startTitle.gotoAndStop(130);
if ((_root.trailer.hitTest(_root.maskRoot) and (_root.exeptionDead == true)) and (_root.dead == true)) {
_root.trailer._x = _root.trailer._x - 10;
_root.trailer._y = this._y;
this._x = this._x - 10;
_root.trailer._rotation = 90;
_root.trailer.HIT1.gotoAndStop(2);
_root.trailer.HIT2.gotoAndStop(2);
_root.trailer.HIT3.gotoAndStop(2);
_root.trailer.HIT4.gotoAndStop(2);
this._rotation = 178.5;
this.box1.gotoAndStop(2);
this.front.gotoAndStop(2);
}
_root.dead = true;
_root.spd = _root.spd - 1;
if (_root.spd <= 0) {
_root.spd = 0;
_root.maxSpeed = 0;
_root.speed = 0;
}
}
trace(this._y);
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if (Key.isDown(40) and ((!_root.dead) == true)) {
maxSpeed = maxSpeed - 0.5;
_root.spd = _root.spd - 0.5;
if (maxSpeed <= 0) {
maxSpeed = 0;
_root.spd = 2;
}
}
if (Key.isDown(38) and ((!_root.dead) == true)) {
if (_root.spd >= 17) {
_root.spd = 17;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = _root.spd - 0.1;
if (_root.spd <= 2) {
_root.spd = 2;
}
} else {
_root.spd = 0;
}
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 633 MovieClip "palmfond" in Frame 43
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this.gotoAndStop(random(10) + 1);
}
Instance of Symbol 640 MovieClip "c1" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 641 MovieClip "t5" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t4" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t3" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t2" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t1" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.tN.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 10) and ((!_root.dead) == true)) {
spd = 10;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 641 MovieClip "t6" in Frame 43
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 10) and ((!_root.dead) == true)) {
spd = 10;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(720) + 800);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 723 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this.gotoAndStop(random(10) + 1);
}
Instance of Symbol 434 MovieClip "minilogo" in Frame 43
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 713 MovieClip in Frame 43
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 713 MovieClip in Frame 43
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 669 MovieClip "trailer" in Frame 43
onClipEvent (enterFrame) {
if (_root.voitureverte.speed >= 2) {
_root.drawtrack(this, -90);
}
if ((!_root.dead) == true) {
xd = _root.voitureverte._x - _root.trailer._x;
yd = _root.voitureverte._y - _root.trailer._y;
dis = Math.sqrt((xd * xd) + (yd * yd));
_root.trailer._x = _root.voitureverte._x - ((xd / dis) * len);
_root.trailer._y = _root.voitureverte._y - ((yd / dis) * len);
_root.trailer._rotation = (Math.atan2(yd, xd) / (Math.PI/180)) - 90;
}
}
onClipEvent (load) {
len = 100;
this.gotoAndStop(2);
}
Instance of Symbol 705 MovieClip "TREE" in Frame 43
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Frame 44
!!!ERROR
Frame 45
!!!ERROR
Instance of Symbol 552 MovieClip "view1" in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 45
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 45
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 45
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 45
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 45
onClipEvent (load) {
!!!ERROR
Instance of Symbol 625 MovieClip "introTruck" in Frame 45
onClipEvent (load) {
this.gotoAndPlay(1340);
}
Instance of Symbol 532 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 45
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 2000) {
this._y = 2000;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -1500) {
_root._y = -1500;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 541 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car3" in Frame 45
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 2;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car2" in Frame 45
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 2;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car4" in Frame 45
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 2;
if ((!_root.dead) == true) {
speed = 2;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car6" in Frame 45
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 4;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car7" in Frame 45
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 4;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car5" in Frame 45
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 4;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car8" in Frame 45
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 1;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car9" in Frame 45
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 1;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car10" in Frame 45
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 1;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car13" in Frame 45
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 3;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car12" in Frame 45
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 3;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car11" in Frame 45
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 3;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 758 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 434 MovieClip "minilogo" in Frame 45
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 758 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 669 MovieClip "trailer" in Frame 45
onClipEvent (enterFrame) {
if (_root.voitureverte.speed >= 2) {
_root.drawtrack(this, -90);
}
if ((!_root.dead) == true) {
xd = _root.voitureverte._x - _root.trailer._x;
yd = _root.voitureverte._y - _root.trailer._y;
dis = Math.sqrt((xd * xd) + (yd * yd));
_root.trailer._x = _root.voitureverte._x - ((xd / dis) * len);
_root.trailer._y = _root.voitureverte._y - ((yd / dis) * len);
_root.trailer._rotation = (Math.atan2(yd, xd) / (Math.PI/180)) - 90;
}
}
onClipEvent (load) {
len = 100;
this.gotoAndStop(2);
}
Instance of Symbol 761 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 761 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 758 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 761 MovieClip in Frame 45
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 766 MovieClip in Frame 45
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 45
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip in Frame 45
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 45
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 45
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip "view2" in Frame 45
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip "park2S" in Frame 45
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Frame 46
!!!ERROR
Frame 47
!!!ERROR
Frame 48
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 48
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 48
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 48
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 48
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 48
onClipEvent (load) {
!!!ERROR
Instance of Symbol 769 MovieClip "palmfond" in Frame 48
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 603 MovieClip "voitureverte" in Frame 48
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 1000) {
this._y = 1000;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -500) {
_root._y = -500;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 434 MovieClip "minilogo" in Frame 48
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 766 MovieClip in Frame 48
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 48
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 48
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 48
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 48
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip in Frame 48
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 48
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 48
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 48
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 48
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 48
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 141 MovieClip "black" in Frame 48
onClipEvent (load) {
this.gotoAndStop(2);
}
Frame 49
!!!ERROR
Frame 50
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 50
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 50
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 50
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 769 MovieClip "palmfond" in Frame 50
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 50
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 50
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 50
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 50
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 1000) {
this._y = 1000;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -500) {
_root._y = -500;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 434 MovieClip "minilogo" in Frame 50
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 766 MovieClip in Frame 50
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 50
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 50
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 50
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip in Frame 50
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 50
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 50
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 705 MovieClip in Frame 50
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 50
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 141 MovieClip "black" in Frame 50
onClipEvent (load) {
this.gotoAndStop(2);
}
Frame 51
!!!ERROR
Frame 52
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 52
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 52
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 52
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 52
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 52
onClipEvent (load) {
!!!ERROR
Instance of Symbol 769 MovieClip "palmfond" in Frame 52
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.peopleGO == true) {
time = time - 1;
if ((!this.hitTest(_root.maskRoot)) and (time <= 0)) {
this._x = _root.maskRoot._x + _root.manX;
this._y = _root.maskRoot._y + _root.manY;
this.gotoAndStop(1);
time = random(200) + 50;
dir = random(4) + 1;
this._rotation = random(360) + 0;
}
if (_root.voitureverte.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
if (_root.trailer.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
_root.voitureverte.spd = _root.voitureverte.spd - 2;
}
rot = _rotation;
if (dir == 1) {
_rotation = 90;
_x = (_x + speed);
}
if (dir == 2) {
_rotation = 180;
_y = (_y + speed);
}
if (dir == 3) {
_rotation = -90;
_x = (_x - speed);
}
if (dir == 4) {
_rotation = 0;
_y = (_y - speed);
}
if (turn == 12) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation >= 180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 14) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 21) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x + 3);
_y = (_y + 3);
if (_rotation <= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 23) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation >= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (turn == 32) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -180) {
_rotation = 180;
turn = 0;
dir = 2;
}
}
if (turn == 34) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x - 3);
_y = (_y - 3);
if (_rotation >= 0) {
_rotation = 0;
turn = 0;
dir = 4;
}
}
if (turn == 41) {
dir = 0;
_rotation = (_rotation + 10);
_x = (_x + 3);
_y = (_y - 3);
if (_rotation >= 90) {
_rotation = 90;
turn = 0;
dir = 1;
}
}
if (turn == 43) {
dir = 0;
_rotation = (_rotation - 10);
_x = (_x - 3);
_y = (_y + 3);
if (_rotation <= -90) {
_rotation = -90;
turn = 0;
dir = 3;
}
}
if (((((this.checker.hitTest(_root.voitureverte) or (_root.dead == true)) or this.checker.hitTest(_root.car)) or this.checker.hitTest(_root.trailer)) or this.checker.hitTest(_root.car2)) or (this.checker.hitTest(_root.car4) and ((!this._currentframe) == 2))) {
speed = speed - 0.1;
if (speed <= 0) {
speed = 0;
this.legs.stop();
}
} else {
speed = speed + 0.01;
if (speed >= 0.5) {
speed = 0.5;
this.legs.play();
}
if (this._currentframe == 2) {
speed = 0;
}
}
}
}
onClipEvent (load) {
time = random(200) + 50;
}
onClipEvent (load) {
cartype.gotoAndStop(random(8));
if ((!_root.dead) == true) {
speed = 0.5;
}
turn = 0;
}
Instance of Symbol 811 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 801 MovieClip in Frame 52
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 52
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 1000) {
this._y = 1000;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -500) {
_root._y = -500;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 434 MovieClip "minilogo" in Frame 52
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 705 MovieClip in Frame 52
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 52
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 52
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 52
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Frame 53
!!!ERROR
Frame 54
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 54
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 54
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 54
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 54
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 54
onClipEvent (load) {
!!!ERROR
Instance of Symbol 769 MovieClip "palmfond" in Frame 54
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 54
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 54
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 1000) {
this._y = 1000;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -500) {
_root._y = -500;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 434 MovieClip in Frame 54
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 434 MovieClip in Frame 54
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 705 MovieClip in Frame 54
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip in Frame 54
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 54
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 766 MovieClip in Frame 54
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 766 MovieClip in Frame 54
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 434 MovieClip "minilogo" in Frame 54
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Frame 55
!!!ERROR
Frame 56
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 811 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 56
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 56
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 56
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 769 MovieClip "palmfond" in Frame 56
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 817 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 822 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 813 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 834 MovieClip in Frame 56
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 56
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 1000) {
this._y = 1000;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -500) {
_root._y = -500;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 705 MovieClip in Frame 56
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip in Frame 56
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 56
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 766 MovieClip in Frame 56
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 766 MovieClip in Frame 56
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 56
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip in Frame 56
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 56
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 434 MovieClip "minilogo" in Frame 56
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Frame 57
_root.gotoAndStop(23);
Frame 59
!!!ERROR
Frame 60
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 60
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 60
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 60
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 60
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 60
onClipEvent (load) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 761 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car13" in Frame 60
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 3;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car12" in Frame 60
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 3;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 565 MovieClip "car11" in Frame 60
onClipEvent (load) {
cartype.gotoAndStop(random(8));
dir = 3;
if ((!_root.dead) == true) {
speed = 4;
}
turn = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 541 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 705 MovieClip in Frame 60
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 532 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 60
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 60
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 1000) {
this._y = 1000;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -500) {
_root._y = -500;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
} else if (Key.isDown(40) and (_root.spd > 5)) {
this.gotoAndStop(3);
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 625 MovieClip "introTruck" in Frame 60
onClipEvent (load) {
this.gotoAndPlay(1575);
}
Instance of Symbol 501 MovieClip in Frame 60
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 60
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 60
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 705 MovieClip in Frame 60
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 60
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 60
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 60
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip in Frame 60
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 60
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 434 MovieClip "minilogo" in Frame 60
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Frame 61
!!!ERROR
Frame 62
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 62
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 62
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 62
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 625 MovieClip "introTruck" in Frame 62
onClipEvent (load) {
this.gotoAndPlay(1855);
}
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 713 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 62
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 1000) {
this._y = 1000;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -500) {
_root._y = -500;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
} else if (Key.isDown(40) and (_root.spd > 5)) {
this.gotoAndStop(3);
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 713 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 616 MovieClip "showT" in Frame 62
onClipEvent (load) {
this.gotoAndStop(5);
}
Instance of Symbol 533 MovieClip "pickUP" in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 62
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 859 MovieClip in Frame 62
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 705 MovieClip in Frame 62
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 62
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 62
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 62
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip in Frame 62
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 62
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 62
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 62
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 62
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 62
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 434 MovieClip "minilogo" in Frame 62
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Frame 63
one1 = false;
two2 = true;
Instance of Symbol 669 MovieClip "trailer" in Frame 63
onClipEvent (enterFrame) {
if (_root.voitureverte.speed >= 2) {
_root.drawtrack(this, -90);
}
if ((!_root.dead) == true) {
xd = _root.voitureverte._x - _root.trailer._x;
yd = _root.voitureverte._y - _root.trailer._y;
dis = Math.sqrt((xd * xd) + (yd * yd));
_root.trailer._x = _root.voitureverte._x - ((xd / dis) * len);
_root.trailer._y = _root.voitureverte._y - ((yd / dis) * len);
_root.trailer._rotation = (Math.atan2(yd, xd) / (Math.PI/180)) - 90;
}
}
onClipEvent (load) {
len = 100;
this.gotoAndStop(4);
}
Frame 64
!!!ERROR
Frame 65
!!!ERROR
Instance of Symbol 640 MovieClip "c8" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c7" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c6" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c5" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x - (random(700) + 800);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c4" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c3" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c2" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 640 MovieClip "c1" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.cN.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 50)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 526 MovieClip "palmhaut" in Frame 65
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 65
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 65
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 65
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 65
onClipEvent (load) {
!!!ERROR
Instance of Symbol 603 MovieClip "voitureverte" in Frame 65
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.99;
incRotation = 0;
maxWheelAngle = 5;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
ar = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) and ((!_root.dead) == true)) {
maxSpeed = maxSpeed - 2;
if (maxSpeed <= 0) {
maxSpeed = 0;
_root.spd = 2;
}
}
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
if (this._y <= 100) {
this.gotoAndStop(2);
this._y = 100;
}
if (this._y >= 700) {
this.gotoAndStop(2);
this._y = 700;
}
if (this._x >= 1500) {
this._x = 1500;
}
aa = _root.voitureverte._x;
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -200) {
_root._y = -200;
}
if (_root._x >= 35000) {
_root._x = 35000;
_root.exeptionDead = true;
_root.startTitle.gotoAndStop(130);
if (ar == true) {
_root.attachMovie("Arrive", "Arrive", 51, {_x:-33, _y:0});
ar = false;
}
if ((_root.trailer.hitTest(_root.maskRoot) and (_root.exeptionDead == true)) and (_root.dead == true)) {
_root.trailer._x = _root.trailer._x - 10;
_root.trailer._y = this._y;
this._x = this._x - 10;
_root.trailer._rotation = 90;
_root.trailer.HIT1.gotoAndStop(2);
_root.trailer.HIT2.gotoAndStop(2);
_root.trailer.HIT3.gotoAndStop(2);
_root.trailer.HIT4.gotoAndStop(2);
this._rotation = 178.5;
this.box1.gotoAndStop(2);
this.front.gotoAndStop(2);
}
_root.dead = true;
_root.spd = _root.spd - 1;
if (_root.spd <= 0) {
_root.spd = 0;
_root.maxSpeed = 0;
_root.speed = 0;
}
}
trace(this._y);
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if (Key.isDown(40) and ((!_root.dead) == true)) {
maxSpeed = maxSpeed - 0.5;
_root.spd = _root.spd - 0.5;
if (maxSpeed <= 0) {
maxSpeed = 0;
_root.spd = 2;
}
}
if (Key.isDown(38) and ((!_root.dead) == true)) {
if (_root.spd >= 17) {
_root.spd = 17;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = _root.spd - 0.1;
if (_root.spd <= 2) {
_root.spd = 2;
}
} else {
_root.spd = 0;
}
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 633 MovieClip "palmfond" in Frame 65
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this.gotoAndStop(random(10) + 1);
}
Instance of Symbol 640 MovieClip "c1" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 14;
}
onClipEvent (enterFrame) {
reSpawn = reSpawn + 1;
this._x = this._x - spd;
if (_root.dead == true) {
spd = 0;
} else if (((((((((((((((((!_root.dead) == true) and _root.voitureverte.hitTest(this.checker)) or _root.t1.HIT.hitTest(this.checker)) or _root.t2.HIT.hitTest(this.checker)) or _root.t3.HIT.hitTest(this.checker)) or _root.t4.HIT.hitTest(this.checker)) or _root.t5.HIT.hitTest(this.checker)) or _root.t6.HIT.hitTest(this.checker)) or _root.c1.HIT.hitTest(this.checker)) or _root.c2.HIT.hitTest(this.checker)) or _root.c3.HIT.hitTest(this.checker)) or _root.c4.HIT.hitTest(this.checker)) or _root.c5.HIT.hitTest(this.checker)) or _root.c6.HIT.hitTest(this.checker)) or _root.c7.HIT.hitTest(this.checker)) or _root.c8.HIT.hitTest(this.checker)) {
spd = spd - 1;
if (spd <= 5) {
spd = 5;
}
} else {
spd = spd + 1;
if ((spd >= 14) and ((!_root.dead) == true)) {
spd = 14;
}
}
if ((!_root.maskRoot.hitTest(this)) and (reSpawn >= 200)) {
reSpawn = 0;
this._x = _root.voitureverte._x + (random(700) + 600);
this.cars.cars.gotoAndStop(random(4) + 1);
this.cars.gotoAndStop(random(17) + 1);
this._y = this.YY.highWayCarY;
}
}
Instance of Symbol 723 MovieClip in Frame 65
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this.gotoAndStop(random(10) + 1);
}
Instance of Symbol 641 MovieClip "t5" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t4" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t3" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t2" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t1" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 641 MovieClip "t6" in Frame 65
onClipEvent (load) {
reSpawn = 1;
spd = 10;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 713 MovieClip in Frame 65
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 713 MovieClip in Frame 65
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 713 MovieClip in Frame 65
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 669 MovieClip "trailer" in Frame 65
onClipEvent (enterFrame) {
if (_root.voitureverte.speed >= 2) {
_root.drawtrack(this, -90);
}
if ((!_root.dead) == true) {
xd = _root.voitureverte._x - _root.trailer._x;
yd = _root.voitureverte._y - _root.trailer._y;
dis = Math.sqrt((xd * xd) + (yd * yd));
_root.trailer._x = _root.voitureverte._x - ((xd / dis) * len);
_root.trailer._y = _root.voitureverte._y - ((yd / dis) * len);
_root.trailer._rotation = (Math.atan2(yd, xd) / (Math.PI/180)) - 90;
}
}
onClipEvent (load) {
len = 100;
this.gotoAndStop(4);
}
Instance of Symbol 434 MovieClip "minilogo" in Frame 65
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Frame 66
!!!ERROR
Frame 67
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 552 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 526 MovieClip "palmhaut" in Frame 67
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmbas" in Frame 67
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "palmfond" in Frame 67
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 533 MovieClip "bitmaphandler" in Frame 67
onClipEvent (load) {
!!!ERROR
Instance of Symbol 533 MovieClip "tracktemp" in Frame 67
onClipEvent (load) {
!!!ERROR
Instance of Symbol 625 MovieClip "introTruck" in Frame 67
onClipEvent (load) {
this.gotoAndPlay(2040);
}
Instance of Symbol 603 MovieClip "voitureverte" in Frame 67
onClipEvent (load) {
function setBrasRotation() {
xVolant = reposBonhommeVolant - corpsDeltaX;
yVolantGauche = corpsDeltaY + posBrasGaucheVolant;
yDiff = yVolantGauche - lEpaule;
lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((-(alpha + beta)) * 180) / 3.141593;
Angle2 = ((2 * beta) * 180) / 3.141593;
bustebras.brasgaucheplein._rotation = Angle1;
bustebras.contourbrasgauche._rotation = Angle1;
bustebras.contourbrasgauche.avantbras._rotation = Angle2;
yVolantDroit = corpsDeltaY - posBrasDroitVolant;
yDiff = yVolantDroit + lEpaule;
lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant));
alpha = yDiff / xVolant;
beta = Math.acos(lEpauleGaucheVolant / (2 * lBras));
Angle1 = ((beta - alpha) * 180) / 3.141593;
Angle2 = ((-2 * beta) * 180) / 3.141593;
bustebras.brasdroitplein._rotation = Angle1;
bustebras.contourbrasdroit._rotation = Angle1;
bustebras.contourbrasdroit.avantbras._rotation = Angle2;
}
function init() {
speedDecay = 0.95;
incRotation = 0;
maxWheelAngle = 55;
incSpeed = 0;
speed = 0;
wheelRotation = 0;
carLength = 138.8;
incy = 0;
incx = 0;
_x = _root.vX;
_y = _root.vY;
_rotation = _root.vRot;
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
gare = false;
_root.gagnos._visible = false;
reposBonhommeVolant = 20;
rayonVolant = 8;
posBrasGaucheVolant = 0;
posBrasDroitVolant = 0;
corpsDeltaX = 0;
corpsDeltaY = 0;
maxCorpsDeltaY = 4;
corpsSpeedX = 0;
maxCorpsDeltaX = 8;
minCorpsDeltaX = -5;
corpsDecay = 0.5;
bustebras._x = _root.xCorps + corpsDeltaX;
bustebras._y = _root.yCorps + corpsDeltaY;
teteDeltaX = 0;
teteDeltaY = 0;
teteDecay = 0.5;
maxTeteDeltaX = 10;
minTeteDeltaX = -8;
teteSpeedX = 0;
tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX;
tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY;
bustebras._x = _root.xCorps;
bustebras._y = _root.yCorps;
lBras = 14;
lEpaule = 10;
_root.ombrevoiture._x = _x + 10;
_root.ombrevoiture._y = _y + 10;
_root.ombrevoiture._rotation = _rotation;
_root.maskvoiture._x = _x;
_root.maskvoiture._y = _y;
_root.maskvoiture._rotation = _rotation;
setBrasRotation();
tuturevertefeuxarr.gotoAndStop(1);
chocs = 0;
forceChocs = 0;
score = 0;
_root.caravane.init();
}
function initReplayRec() {
replayRecFrame = 0;
replayPlayFrame = 0;
replayRecEventsIndex = 0;
replayPlayEventsIndex = 0;
replayEvents = new Array();
replayPlay = false;
_root.replayos.gotoAndStop(1);
_root.repclign.stop();
_root.repclign._visible = false;
}
function side(v, po) {
return((po.y * v.x) - (po.x * v.y));
}
function inShape(p) {
toreturn = true;
oldPoint = {x:colShape[0].x, y:colShape[0].y};
localToGlobal(oldPoint);
i = 0;
while (i < 4) {
newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y};
localToGlobal(newPoint);
vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y};
testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y};
if (side(vShape, testPoint) < 0) {
toreturn = false;
break;
}
oldPoint = newPoint;
i++;
}
return(toreturn);
}
function hit(clip) {
return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y})));
}
function keyDownAction(t) {
toreturn = false;
if (t == 39) {
if (incRotation != 5) {
incRotation = 5;
toreturn = true;
}
} else if (t == 37) {
if (incRotation != -5) {
incRotation = -5;
toreturn = true;
}
} else if (t == 40) {
if (incSpeed != -1) {
incSpeed = -1;
toreturn = true;
}
} else if (t == 38) {
if (incSpeed != 1) {
incSpeed = 1;
toreturn = true;
}
}
return(toreturn);
}
function keyUpAction(t) {
if (t == 39) {
if (incRotation > 0) {
incRotation = 0;
}
} else if (t == 37) {
if (incRotation < 0) {
incRotation = 0;
}
} else if (t == 40) {
if (incSpeed < 0) {
incSpeed = 0;
}
} else if (t == 38) {
if (incSpeed > 0) {
incSpeed = 0;
}
}
}
init();
initReplayRec();
colShape = new Array();
colShape[0] = {x:-15, y:-30};
colShape[1] = {x:110, y:-30};
colShape[2] = {x:110, y:30};
colShape[3] = {x:-15, y:30};
colShape[4] = colShape[0];
}
onClipEvent (keyDown) {
if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
if (keyDownAction(t)) {
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
}
onClipEvent (keyUp) {
a = Key.getAscii();
if (a == 115) {
if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) {
_root.clicStart();
} else if (_root.timing == true) {
_root.clicStop();
}
} else if ((_root.timing == true) && (replayPlay == false)) {
t = Key.getCode();
keyUpAction(t);
replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t};
replayRecEventsIndex = replayRecEventsIndex + 1;
}
}
onClipEvent (enterFrame) {
if (_root.timing == true) {
if (replayPlay) {
currentFrameIsEvented = true;
while (currentFrameIsEvented) {
nextFrame = replayEvents[replayPlayEventsIndex].framenb;
if (nextFrame == replayPlayFrame) {
if (replayEvents[replayPlayEventsIndex].updown == 0) {
keyUpAction(replayEvents[replayPlayEventsIndex].keycode);
} else {
keyDownAction(replayEvents[replayPlayEventsIndex].keycode);
}
replayPlayEventsIndex = replayPlayEventsIndex + 1;
}
currentFrameIsEvented = false;
}
replayPlayFrame = replayPlayFrame + 1;
}
memoX = _x;
memoY = _y;
memoRot = _rotation;
_root.caravane.saveMemo();
oldRot = wheelRotation;
oldSpeed = speed;
oldCorpsSpeedX = corpsSpeedX;
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (incSpeed == 0) {
speed = speed * speedDecay;
tuturevertefeuxarr.gotoAndStop(1);
} else {
tuturevertefeuxarr.gotoAndStop(2);
speed = speed + incSpeed;
if (speed > maxSpeed) {
speed = maxSpeed;
} else if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
}
wheelRotation = wheelRotation + incRotation;
if (wheelRotation > maxWheelAngle) {
wheelRotation = maxWheelAngle;
} else if (wheelRotation < (-maxWheelAngle)) {
wheelRotation = -maxWheelAngle;
}
if (oldRot != wheelRotation) {
rouedroite._rotation = wheelRotation;
rouegauche._rotation = wheelRotation;
}
incx = Math.sin(wheelRotation * 0.017453) * speed;
_rotation = (_rotation + (((incx / carLength) * 250) / 3.141593));
incy = Math.cos(wheelRotation * 0.017453) * speed;
_y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy));
_x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy));
if (_y < 0) {
_y = (_y + widthScene);
_root.caravane.transMemoTracteur(0, widthScene);
} else if (_y > widthScene) {
_y = (_y - widthScene);
_root.caravane.transMemoTracteur(0, -widthScene);
}
if (_x < 0) {
_x = (_x + widthScene);
_root.caravane.transMemoTracteur(widthScene, 0);
} else if (_x > widthScene) {
_x = (_x - widthScene);
_root.caravane.transMemoTracteur(-widthScene, 0);
}
_root.caravane.compute();
A = hit(_root.palmhaut);
B = hit(_root.palmbas);
C = hit(_root.palmfond);
angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360;
if (angVoitureCaravane > 180) {
angVoitureCaravane = 360 - angVoitureCaravane;
}
if (angVoitureCaravane > 75) {
D = true;
} else {
D = false;
}
if (((A || (B)) || (C)) || (D)) {
if (Math.abs(speed) > 7) {
chocs = chocs + 1;
forceChocs = forceChocs + Math.abs(speed);
}
_x = memoX;
_y = memoY;
_rotation = memoRot;
_root.caravane.setMemo();
speed = 0;
} else {
gagne = _root.caravane.isParked();
if (((gagne == true) && (speed > -1)) && (speed < 1)) {
gare = true;
if (replayPlay) {
_root.timing = false;
replayPlay = false;
_root.replayos.gotoAndPlay(2);
} else {
_root.gagnos._visible = true;
_root.gagnos.gotoAndPlay(1);
_root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16);
score = (500000 / _root.elapsedTime) - forceChocs;
_root.timing = false;
}
_root.playSurround(true);
}
}
}
}
onClipEvent (load) {
maxSpeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) or (_root.dead == true)) {
maxSpeed = 0;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
incSpeed = 0;
} else if (_root.connected == false) {
maxSpeed = _root.spd;
} else if (_root.connected == true) {
maxSpeed = _root.spd;
}
}
onClipEvent (enterFrame) {
if (this._y <= 100) {
this._y = 100;
}
if (this._y >= 2000) {
this._y = 2000;
}
if (this._x >= 1700) {
this._x = 1700;
}
if (this._x <= 50) {
this._x = 50;
}
trace(this._y);
if (_root._y >= -150) {
_root._y = -150;
}
if (_root._y <= -1500) {
_root._y = -1500;
}
if (_root._x <= -1000) {
_root._x = -1000;
}
if (_root._x >= -100) {
_root._x = -100;
}
if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) {
maxSpeed = 1;
}
_root.carX = this._x;
_root.carY = this._y;
if (!_root.road.hitTest(this._x, this._y, true)) {
_root.fault.gotoAndStop(_root.fault._currentframe + 1);
}
if ((Key.isDown(40) and (_root.spd < 5)) and ((!_root.dead) == true)) {
maxSpeed = 2;
incSpeed = -2;
}
if ((Key.isDown(38) and (_root.spd < 9)) and ((!_root.dead) == true)) {
if (_root.spd >= 5) {
_root.spd = 5;
}
_root.spd = _root.spd + 0.1;
} else if ((!Key.isDown(38)) and ((!_root.dead) == true)) {
_root.spd = 2;
}
trace(_root.spd);
if (_root.spd > 2) {
_root.drawtrack(this, 0);
}
pil = pil - 1;
if (pil <= 0) {
pil = 50;
_root.attachMovie("\u041F\u044B\u043B\u044C", "\u041F\u044B\u043B\u044C", 2, {_x:this._x + (random(10) - 10), _y:this._y + (random(10) - 10)});
}
}
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 713 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 713 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 713 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 713 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 532 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 669 MovieClip "trailer" in Frame 67
onClipEvent (enterFrame) {
if (_root.voitureverte.speed >= 2) {
_root.drawtrack(this, -90);
}
if ((!_root.dead) == true) {
xd = _root.voitureverte._x - _root.trailer._x;
yd = _root.voitureverte._y - _root.trailer._y;
dis = Math.sqrt((xd * xd) + (yd * yd));
_root.trailer._x = _root.voitureverte._x - ((xd / dis) * len);
_root.trailer._y = _root.voitureverte._y - ((yd / dis) * len);
_root.trailer._rotation = (Math.atan2(yd, xd) / (Math.PI/180)) - 90;
}
}
onClipEvent (load) {
len = 100;
this.gotoAndStop(4);
}
Instance of Symbol 859 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 859 MovieClip in Frame 67
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 669 MovieClip in Frame 67
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 766 MovieClip in Frame 67
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip "park2S" in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 705 MovieClip in Frame 67
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 67
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 67
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 67
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 67
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 67
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 67
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 766 MovieClip in Frame 67
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 766 MovieClip in Frame 67
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip in Frame 67
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip in Frame 67
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 434 MovieClip "minilogo" in Frame 67
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 410 MovieClip in Frame 67
onClipEvent (load) {
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 67
onClipEvent (load) {
!!!ERROR
Frame 68
submit_score.Score = score;
stop();
!!!ERROR
Instance of Symbol 492 MovieClip in Frame 68
onClipEvent (load) {
if (_root.killMode) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.killMode) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 434 MovieClip in Frame 68
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=minilogo", "_blank");
}
Instance of Symbol 410 MovieClip in Frame 68
onClipEvent (load) {
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 68
onClipEvent (load) {
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 68
onClipEvent (load) {
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 68
onClipEvent (load) {
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 68
onClipEvent (load) {
!!!ERROR
Instance of Symbol 410 MovieClip in Frame 68
onClipEvent (load) {
!!!ERROR
Symbol 3 MovieClip [fog_1] Frame 1
stop();
Symbol 5 MovieClip [fog_2] Frame 1
stop();
Symbol 66 MovieClip Frame 1
!!!ERROR
Symbol 67 MovieClip Frame 105
stop();
Symbol 122 MovieClip Frame 1
!!!ERROR
Symbol 129 MovieClip Frame 1
stop();
Symbol 131 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=loader", "_blank");
}
Symbol 135 MovieClip Frame 33
!!!ERROR
Symbol 141 MovieClip Frame 1
stop();
Instance of Symbol 135 MovieClip in Symbol 141 MovieClip Frame 2
onClipEvent (enterFrame) {
!!!ERROR
Symbol 148 Button
on (release) {
_root.steam.gotoAndStop(1);
gotoAndStop (2);
}
Symbol 150 Button
on (release) {
_root.steam.play();
gotoAndStop (1);
}
Symbol 151 MovieClip Frame 1
stop();
Instance of Symbol 160 MovieClip "mcNotice" in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 197 MovieClip Frame 120
!!!ERROR
Symbol 198 MovieClip Frame 71
!!!ERROR
Symbol 208 MovieClip Frame 1
stop();
Instance of Symbol 214 MovieClip in Symbol 221 MovieClip [Arrive] Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(40) + 1);
}
Instance of Symbol 214 MovieClip in Symbol 221 MovieClip [Arrive] Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(40) + 1);
}
Instance of Symbol 214 MovieClip in Symbol 221 MovieClip [Arrive] Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(40) + 1);
}
Instance of Symbol 214 MovieClip in Symbol 221 MovieClip [Arrive] Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(40) + 1);
}
Instance of Symbol 214 MovieClip in Symbol 221 MovieClip [Arrive] Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(40) + 1);
}
Symbol 221 MovieClip [Arrive] Frame 130
stop();
Symbol 223 MovieClip [blackBegin] Frame 27
removeMovieClip(this);
Symbol 258 MovieClip [explosion] Frame 18
stop();
Symbol 263 MovieClip [smoke] Frame 34
removeMovieClip(this);
Instance of Symbol 315 MovieClip in Symbol 316 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root._currentframe);
}
Symbol 322 Button
on (release) {
play();
}
Symbol 325 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?18wheeler2", "_blank");
}
Symbol 329 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=paused", "_blank");
}
Symbol 332 Button
on (release) {
_root.gotoAndStop(23);
}
Symbol 335 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 16
stop();
Symbol 338 Button
on (release) {
_root.music1A = false;
gotoAndStop (2);
}
Symbol 339 Button
on (release) {
_root.music1A = true;
gotoAndStop (1);
}
Symbol 340 MovieClip Frame 1
stop();
Symbol 346 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?18wheeler2", "_blank");
}
Symbol 349 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=gameover", "_blank");
}
Symbol 352 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 30
stop();
Instance of Symbol 352 MovieClip in Symbol 358 MovieClip Frame 30
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
on (release) {
_parent.play();
}
Symbol 358 MovieClip Frame 61
stop();
Symbol 363 MovieClip Frame 31
stop();
Symbol 365 MovieClip Frame 31
stop();
Symbol 371 MovieClip Frame 39
stop();
Instance of Symbol 352 MovieClip in Symbol 371 MovieClip Frame 39
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
on (release) {
_parent.play();
}
Symbol 371 MovieClip Frame 68
stop();
Instance of Symbol 369 MovieClip in Symbol 371 MovieClip Frame 68
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.introTruck.gotoAndPlay(616);
_parent.play();
}
}
Symbol 371 MovieClip Frame 96
stop();
Symbol 373 MovieClip Frame 39
stop();
Instance of Symbol 352 MovieClip in Symbol 373 MovieClip Frame 39
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
on (release) {
_parent.play();
}
Symbol 373 MovieClip Frame 68
stop();
Instance of Symbol 369 MovieClip in Symbol 373 MovieClip Frame 68
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.introTruck.gotoAndPlay(380);
_parent.play();
}
}
Symbol 373 MovieClip Frame 96
stop();
Symbol 375 MovieClip Frame 31
stop();
Symbol 378 MovieClip Frame 39
stop();
Instance of Symbol 352 MovieClip in Symbol 378 MovieClip Frame 39
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
on (release) {
_parent.play();
}
Symbol 378 MovieClip Frame 68
stop();
Instance of Symbol 369 MovieClip in Symbol 378 MovieClip Frame 68
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.introTruck.gotoAndPlay(680);
_parent.play();
}
}
Symbol 378 MovieClip Frame 96
stop();
Symbol 380 MovieClip Frame 31
stop();
Symbol 383 MovieClip Frame 39
stop();
Instance of Symbol 352 MovieClip in Symbol 383 MovieClip Frame 39
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
on (release) {
_parent.play();
}
Symbol 383 MovieClip Frame 68
stop();
Instance of Symbol 369 MovieClip in Symbol 383 MovieClip Frame 68
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.introTruck.gotoAndPlay(1280);
_parent.play();
}
}
Symbol 383 MovieClip Frame 96
stop();
Symbol 385 MovieClip Frame 31
stop();
Symbol 388 MovieClip Frame 39
stop();
Instance of Symbol 352 MovieClip in Symbol 388 MovieClip Frame 39
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
on (release) {
_parent.play();
}
Symbol 388 MovieClip Frame 68
stop();
Instance of Symbol 369 MovieClip in Symbol 388 MovieClip Frame 68
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.introTruck.gotoAndPlay(1805);
_parent.play();
}
}
Symbol 388 MovieClip Frame 96
stop();
Symbol 391 MovieClip Frame 1
_root.gameGO = false;
Symbol 391 MovieClip Frame 30
stop();
Instance of Symbol 352 MovieClip in Symbol 391 MovieClip Frame 30
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
on (release) {
_parent.play();
}
Symbol 391 MovieClip Frame 61
!!!ERROR
Symbol 394 MovieClip Frame 1
Symbol 394 MovieClip Frame 39
stop();
Instance of Symbol 369 MovieClip in Symbol 394 MovieClip Frame 39
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
}
}
Symbol 394 MovieClip Frame 67
!!!ERROR
Symbol 395 MovieClip [startTitle] Frame 1
canplay = true;
Symbol 395 MovieClip [startTitle] Frame 30
stop();
Instance of Symbol 352 MovieClip in Symbol 395 MovieClip [startTitle] Frame 30
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.play();
_root.paused = false;
_root.timing = true;
_root.gameGO = true;
}
}
on (release) {
_parent.play();
_root.paused = false;
_root.timing = true;
_root.gameGO = true;
}
Symbol 395 MovieClip [startTitle] Frame 61
stop();
_root.peopleGO = true;
Symbol 395 MovieClip [startTitle] Frame 100
stop();
Instance of Symbol 352 MovieClip in Symbol 395 MovieClip [startTitle] Frame 100
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.gotoAndPlay(_root.nextLevel);
}
}
on (release) {
_root.gotoAndPlay(_root.nextLevel);
}
Symbol 395 MovieClip [startTitle] Frame 112
!!!ERROR
Symbol 395 MovieClip [startTitle] Frame 113
stop();
canplay = true;
Symbol 395 MovieClip [startTitle] Frame 114
_root.park2.gotoAndStop(3);
Symbol 395 MovieClip [startTitle] Frame 115
stop();
canplay = true;
Symbol 395 MovieClip [startTitle] Frame 119
stop();
Symbol 395 MovieClip [startTitle] Frame 120
stop();
Symbol 395 MovieClip [startTitle] Frame 121
stop();
Symbol 395 MovieClip [startTitle] Frame 122
stop();
Symbol 395 MovieClip [startTitle] Frame 123
stop();
Symbol 395 MovieClip [startTitle] Frame 125
stop();
Symbol 395 MovieClip [startTitle] Frame 130
stop();
Symbol 423 Button
on (release) {
gotoAndPlay (24);
}
Symbol 435 Button
on (release) {
_root.steam.gotoAndStop(1);
}
Symbol 445 Button
on (release) {
gotoAndStop (23);
}
Symbol 449 Button
on (release) {
getURL ("http://18-wheeler.freeonlinegames.com/", "_blank");
}
Symbol 458 Button
on (press) {
sboard.dir = "up";
}
on (release) {
sboard.dir = "stop";
}
Symbol 459 Button
on (press) {
sboard.dir = "down";
}
on (release) {
sboard.dir = "stop";
}
Symbol 466 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 2
stop();
Symbol 476 MovieClip [TMP6pbk6uzm9i] Frame 1
!!!ERROR
Symbol 481 MovieClip [TMP6ojzjuzm8i] Frame 1
!!!ERROR
Symbol 485 Button
on (release) {
_root.gotoAndStop(20);
}
Symbol 486 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=menu", "_blank");
}
Symbol 490 Button
on (release) {
play();
}
Symbol 491 Button
on (release) {
_root.gotoAndStop(48);
}
Symbol 492 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 1
stop();
Instance of Symbol 501 MovieClip in Symbol 502 MovieClip Frame 1
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=299&area=by", "_blank");
}
Symbol 504 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 1
stop();
Instance of Symbol 515 MovieClip in Symbol 518 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 525 MovieClip Frame 1
stop();
Instance of Symbol 501 MovieClip "HIT" in Symbol 525 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT" in Symbol 539 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 550 MovieClip Frame 4
!!!ERROR
Symbol 550 MovieClip Frame 5
stop();
Symbol 552 MovieClip Frame 1
stop();
Instance of Symbol 550 MovieClip in Symbol 552 MovieClip Frame 2
onClipEvent (load) {
_parent.stop();
}
Symbol 563 MovieClip Frame 2
stop();
Symbol 564 MovieClip Frame 1
stop();
Instance of Symbol 501 MovieClip "checker" in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT" in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT" in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 565 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 1
stop();
Instance of Symbol 501 MovieClip "checker" in Symbol 566 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT" in Symbol 566 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 525 MovieClip in Symbol 566 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) {
_root.voitureverte.gotoAndStop(2);
}
if (this.HIT.hitTest(_root.voitureverte.front) or this.cartype.HIT.hitTest(_root.voitureverte.box1)) {
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip "HIT" in Symbol 566 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 576 MovieClip Frame 1
stop();
Instance of Symbol 501 MovieClip in Symbol 576 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Symbol 576 MovieClip Frame 2
!!!ERROR
Symbol 576 MovieClip Frame 3
_root.voitureverte.speed = 0;
Symbol 576 MovieClip Frame 5
stop();
Symbol 577 MovieClip Frame 1
stop();
Symbol 586 MovieClip Frame 2
stop();
Symbol 590 MovieClip Frame 1
stop();
Symbol 597 MovieClip Frame 3
stop();
Symbol 603 MovieClip Frame 1
_root.spd = 3;
stop();
Instance of Symbol 577 MovieClip in Symbol 603 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 586 MovieClip in Symbol 603 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Instance of Symbol 590 MovieClip "box1" in Symbol 603 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 513 MovieClip "front" in Symbol 603 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 513 MovieClip "front2" in Symbol 603 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 513 MovieClip "box2" in Symbol 603 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "bb" in Symbol 603 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "bb2" in Symbol 603 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 513 MovieClip in Symbol 603 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.trailer.HIT4.hitTest(this)) {
_parent.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 592 MovieClip in Symbol 603 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Symbol 603 MovieClip Frame 2
!!!ERROR
Instance of Symbol 601 MovieClip in Symbol 603 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 601 MovieClip in Symbol 603 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndPlay(random(20) + 1);
}
Instance of Symbol 501 MovieClip "HIT1" in Symbol 616 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT2" in Symbol 616 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT3" in Symbol 616 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT4" in Symbol 616 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 586 MovieClip in Symbol 617 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Instance of Symbol 616 MovieClip in Symbol 617 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 501 MovieClip "HIT1" in Symbol 624 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT2" in Symbol 624 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT3" in Symbol 624 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT4" in Symbol 624 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 624 MovieClip Frame 2
stop();
Instance of Symbol 586 MovieClip in Symbol 625 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Instance of Symbol 369 MovieClip in Symbol 625 MovieClip Frame 10
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.gotoAndPlay(360);
}
}
Symbol 625 MovieClip Frame 244
!!!ERROR
Symbol 625 MovieClip Frame 321
!!!ERROR
Symbol 625 MovieClip Frame 361
!!!ERROR
Symbol 625 MovieClip Frame 362
stop();
Symbol 625 MovieClip Frame 380
_root.voitureverte._visible = false;
Instance of Symbol 586 MovieClip in Symbol 625 MovieClip Frame 380
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Symbol 625 MovieClip Frame 444
!!!ERROR
Symbol 625 MovieClip Frame 447
!!!ERROR
Instance of Symbol 586 MovieClip in Symbol 625 MovieClip Frame 447
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Instance of Symbol 369 MovieClip in Symbol 625 MovieClip Frame 457
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.gotoAndPlay(613);
}
}
Symbol 625 MovieClip Frame 506
!!!ERROR
Symbol 625 MovieClip Frame 583
!!!ERROR
Symbol 625 MovieClip Frame 613
!!!ERROR
Symbol 625 MovieClip Frame 614
stop();
Symbol 625 MovieClip Frame 615
stop();
Symbol 625 MovieClip Frame 616
!!!ERROR
Instance of Symbol 586 MovieClip in Symbol 625 MovieClip Frame 616
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Instance of Symbol 616 MovieClip in Symbol 625 MovieClip Frame 616
onClipEvent (load) {
this.gotoAndStop(3);
}
Symbol 625 MovieClip Frame 662
!!!ERROR
Symbol 625 MovieClip Frame 674
!!!ERROR
Symbol 625 MovieClip Frame 680
_root.voitureverte._visible = false;
Instance of Symbol 586 MovieClip in Symbol 625 MovieClip Frame 680
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Symbol 625 MovieClip Frame 715
!!!ERROR
Symbol 625 MovieClip Frame 720
_root.voitureverte._visible = false;
Instance of Symbol 586 MovieClip in Symbol 625 MovieClip Frame 720
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Instance of Symbol 369 MovieClip in Symbol 625 MovieClip Frame 733
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.gotoAndPlay(933);
}
}
Symbol 625 MovieClip Frame 791
!!!ERROR
Symbol 625 MovieClip Frame 891
!!!ERROR
Symbol 625 MovieClip Frame 933
!!!ERROR
Symbol 625 MovieClip Frame 934
stop();
Symbol 625 MovieClip Frame 940
_root.voitureverte._visible = false;
Instance of Symbol 586 MovieClip in Symbol 625 MovieClip Frame 940
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Instance of Symbol 369 MovieClip in Symbol 625 MovieClip Frame 951
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.gotoAndPlay(1114);
}
}
Symbol 625 MovieClip Frame 979
!!!ERROR
Symbol 625 MovieClip Frame 1080
!!!ERROR
Symbol 625 MovieClip Frame 1114
!!!ERROR
Symbol 625 MovieClip Frame 1115
stop();
Symbol 625 MovieClip Frame 1120
_root.voitureverte._visible = false;
Instance of Symbol 586 MovieClip in Symbol 625 MovieClip Frame 1120
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Instance of Symbol 369 MovieClip in Symbol 625 MovieClip Frame 1132
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.gotoAndPlay(1276);
}
}
Symbol 625 MovieClip Frame 1158
!!!ERROR
Symbol 625 MovieClip Frame 1244
!!!ERROR
Symbol 625 MovieClip Frame 1276
!!!ERROR
Symbol 625 MovieClip Frame 1277
stop();
Symbol 625 MovieClip Frame 1280
!!!ERROR
Instance of Symbol 586 MovieClip in Symbol 625 MovieClip Frame 1280
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Instance of Symbol 616 MovieClip in Symbol 625 MovieClip Frame 1280
onClipEvent (load) {
this.gotoAndStop(4);
}
Symbol 625 MovieClip Frame 1328
!!!ERROR
Symbol 625 MovieClip Frame 1340
!!!ERROR
Instance of Symbol 369 MovieClip in Symbol 625 MovieClip Frame 1341
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.gotoAndPlay(1567);
}
}
Symbol 625 MovieClip Frame 1401
!!!ERROR
Symbol 625 MovieClip Frame 1448
!!!ERROR
Symbol 625 MovieClip Frame 1500
!!!ERROR
Symbol 625 MovieClip Frame 1545
!!!ERROR
Symbol 625 MovieClip Frame 1567
!!!ERROR
Symbol 625 MovieClip Frame 1568
stop();
Symbol 625 MovieClip Frame 1575
_root.voitureverte._visible = false;
Instance of Symbol 586 MovieClip in Symbol 625 MovieClip Frame 1575
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Instance of Symbol 369 MovieClip in Symbol 625 MovieClip Frame 1579
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.gotoAndPlay(1768);
}
}
Symbol 625 MovieClip Frame 1626
!!!ERROR
Symbol 625 MovieClip Frame 1744
!!!ERROR
Symbol 625 MovieClip Frame 1766
stop();
Symbol 625 MovieClip Frame 1768
!!!ERROR
Symbol 625 MovieClip Frame 1769
stop();
Symbol 625 MovieClip Frame 1775
_root.voitureverte._visible = false;
Instance of Symbol 586 MovieClip in Symbol 625 MovieClip Frame 1775
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Symbol 625 MovieClip Frame 1801
!!!ERROR
Symbol 625 MovieClip Frame 1805
!!!ERROR
Instance of Symbol 586 MovieClip in Symbol 625 MovieClip Frame 1805
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Instance of Symbol 616 MovieClip in Symbol 625 MovieClip Frame 1805
onClipEvent (load) {
this.gotoAndStop(5);
}
Symbol 625 MovieClip Frame 1851
!!!ERROR
Symbol 625 MovieClip Frame 1855
!!!ERROR
Instance of Symbol 586 MovieClip in Symbol 625 MovieClip Frame 1855
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Instance of Symbol 369 MovieClip in Symbol 625 MovieClip Frame 1860
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.gotoAndPlay(2036);
}
}
Symbol 625 MovieClip Frame 1928
!!!ERROR
Symbol 625 MovieClip Frame 1980
!!!ERROR
Symbol 625 MovieClip Frame 2036
!!!ERROR
Symbol 625 MovieClip Frame 2037
stop();
Symbol 625 MovieClip Frame 2040
!!!ERROR
Instance of Symbol 624 MovieClip in Symbol 625 MovieClip Frame 2040
onClipEvent (load) {
this.gotoAndStop(_root.truck);
}
Instance of Symbol 369 MovieClip in Symbol 625 MovieClip Frame 2042
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.gotoAndPlay(2247);
}
}
Symbol 625 MovieClip Frame 2109
!!!ERROR
Symbol 625 MovieClip Frame 2214
!!!ERROR
Symbol 625 MovieClip Frame 2247
!!!ERROR
Symbol 625 MovieClip Frame 2248
stop();
Symbol 627 MovieClip Frame 1501
gotoAndPlay (2);
Symbol 630 MovieClip Frame 1
stop();
Symbol 633 MovieClip Frame 1
highWayCarY = 190;
Symbol 633 MovieClip Frame 2
highWayCarY = 285;
Symbol 633 MovieClip Frame 3
highWayCarY = 385;
Symbol 633 MovieClip Frame 4
highWayCarY = 485;
Symbol 633 MovieClip Frame 5
highWayCarY = 580;
Symbol 633 MovieClip Frame 6
highWayCarY = 285;
Symbol 633 MovieClip Frame 7
highWayCarY = 190;
Symbol 633 MovieClip Frame 8
highWayCarY = 485;
Symbol 633 MovieClip Frame 9
highWayCarY = 485;
Symbol 633 MovieClip Frame 10
highWayCarY = 385;
Symbol 638 MovieClip Frame 1
stop();
Symbol 639 MovieClip Frame 1
stop();
Instance of Symbol 501 MovieClip "checker" in Symbol 640 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 633 MovieClip "YY" in Symbol 640 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this.gotoAndStop(random(10) + 1);
}
Instance of Symbol 501 MovieClip "HIT" in Symbol 640 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip "HIT" in Symbol 641 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip "checker" in Symbol 641 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 633 MovieClip "YY" in Symbol 641 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this.gotoAndStop(random(10) + 1);
}
Instance of Symbol 525 MovieClip "trailer" in Symbol 641 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) {
_root.voitureverte.gotoAndStop(2);
}
if (this.HIT.hitTest(_root.voitureverte.front) or this.cartype.HIT.hitTest(_root.voitureverte.box1)) {
_root.voitureverte.gotoAndStop(2);
}
if (((this.HIT.hitTest(_root.trailer.HIT1) or this.hitTest(_root.trailer.HIT2)) or this.hitTest(_root.trailer.HIT3)) or this.hitTest(_root.trailer.HIT4)) {
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip "HIT" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 666 MovieClip Frame 1
stop();
Instance of Symbol 501 MovieClip "HIT1" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT2" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT3" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT4" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 666 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 666 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 501 MovieClip "HIT" in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 689 MovieClip Frame 1
stop();
Symbol 689 MovieClip Frame 35
stop();
Symbol 705 MovieClip Frame 1
stop();
Instance of Symbol 698 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(80) + 1);
}
Symbol 705 MovieClip Frame 6
stop();
Symbol 705 MovieClip Frame 7
gotoAndStop (6);
Instance of Symbol 501 MovieClip "HIT" in Symbol 713 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 723 MovieClip Frame 10
!!!ERROR
Instance of Symbol 705 MovieClip "TREE" in Symbol 726 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 705 MovieClip "TREE" in Symbol 726 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.voitureverte.hitTest(this._x, this._y, true) and (_root.paused == false)) or (_root.trailer.hitTest(this._x, this._y, true) and (_root.paused == false))) {
this.play();
_root.voitureverte.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip "HIT1" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT2" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT3" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT4" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 738 MovieClip Frame 1
stop();
Symbol 748 MovieClip Frame 1
stop();
_root.endLevel = 112;
Instance of Symbol 515 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 748 MovieClip Frame 2
_root.endLevel = 114;
Symbol 748 MovieClip Frame 3
_root.endLevel = 62;
Instance of Symbol 515 MovieClip in Symbol 748 MovieClip Frame 3
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 501 MovieClip "HIT" in Symbol 758 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 769 MovieClip Frame 1
!!!ERROR
Symbol 769 MovieClip Frame 2
!!!ERROR
Symbol 769 MovieClip Frame 3
!!!ERROR
Symbol 769 MovieClip Frame 4
!!!ERROR
Symbol 769 MovieClip Frame 5
!!!ERROR
Symbol 769 MovieClip Frame 6
!!!ERROR
Symbol 769 MovieClip Frame 7
!!!ERROR
Symbol 787 MovieClip Frame 4
!!!ERROR
Symbol 787 MovieClip Frame 8
stop();
Symbol 791 MovieClip Frame 4
!!!ERROR
Symbol 791 MovieClip Frame 5
stop();
Symbol 795 MovieClip Frame 4
!!!ERROR
Symbol 795 MovieClip Frame 8
stop();
Symbol 799 MovieClip Frame 4
!!!ERROR
Symbol 799 MovieClip Frame 8
stop();
Symbol 801 MovieClip Frame 1
stop();
Instance of Symbol 501 MovieClip "checker" in Symbol 801 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 801 MovieClip Frame 2
!!!ERROR
Instance of Symbol 800 MovieClip in Symbol 801 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(random(5) + 1);
}
Symbol 811 MovieClip Frame 1
stop();
Instance of Symbol 501 MovieClip "HIT" in Symbol 811 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 811 MovieClip Frame 5
stop();
Symbol 813 MovieClip Frame 1
stop();
Symbol 813 MovieClip Frame 2
!!!ERROR
Instance of Symbol 800 MovieClip in Symbol 813 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(random(5) + 1);
}
Symbol 817 MovieClip Frame 1
stop();
Instance of Symbol 501 MovieClip "checker" in Symbol 817 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 817 MovieClip Frame 2
!!!ERROR
Instance of Symbol 800 MovieClip in Symbol 817 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(random(5) + 1);
}
Symbol 822 MovieClip Frame 1
stop();
Symbol 822 MovieClip Frame 2
!!!ERROR
Instance of Symbol 800 MovieClip in Symbol 822 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(random(5) + 1);
}
Symbol 834 MovieClip Frame 1
stop();
Symbol 834 MovieClip Frame 2
!!!ERROR
Symbol 842 MovieClip Frame 1
stop();
Instance of Symbol 838 MovieClip in Symbol 842 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Symbol 842 MovieClip Frame 2
play();
Symbol 842 MovieClip Frame 67
stop();
Symbol 854 MovieClip Frame 1
stop();
Symbol 854 MovieClip Frame 36
stop();
Instance of Symbol 501 MovieClip "HIT" in Symbol 859 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}