Frame 1
function fsdPlayAgain() {
theDoge.unloadMovie();
_global.control.startOver();
_root.main.instruction.gotoAndStop("Off");
_root.main.gotoAndPlay("End");
}
Stage.showMenu = false;
_root.eventID = "td_pack_the_house3";
subject = "Pack the House 3";
playerScore = 0;
Instance of Symbol 541 MovieClip in Frame 3
onClipEvent (load) {
this.onRollOver = function () {
this.useHandCursor = false;
};
}
Frame 4
_root.mainMusic = new Sound(this);
_root.mainMusic.attachSound("music");
_root.mainMusic.start(0, 1000);
Frame 19
stop();
Instance of Symbol 667 MovieClip "variable" in Frame 19
onClipEvent (load) {
urlTemp = new String(this._url);
if (urlTemp.lastIndexOf("/") == -1) {
lastCar = urlTemp.lastIndexOf("/");
} else {
lastCar = urlTemp.lastIndexOf("\\");
}
_root.path = urlTemp.substring(0, lastCar + 1);
_root.scoreParking = 1000;
_root.scoreParkingBroken1 = 750;
_root.scoreParkingBroken2 = 500;
_root.scoreParkingBroken3 = 250;
_root.scoreExit = 1000;
_root.scoreExitBroken1 = 750;
_root.scoreExitBroken2 = 500;
_root.scoreExitBroken3 = 250;
_root.carBeforeLeaving = 5;
_root.maxCar = 10;
_root.minute = 5;
_root.timeBetween = 5;
_root.timeBeforeOut = 10;
_root.blinkInterval = 200;
_root.blinkStopInterval = 10000;
_root.timeStart = "5 : 00";
_root.levelSelector = _root.path + "HouseOfMouse.swf";
_root.scorePerSecond = 100;
_root.displacement = false;
_root.distanceRotation = 0;
_root.isRunning = false;
_root.angleTooMuch = 0;
_root.prevX = 0;
_root.prevY = 0;
_root.currentCar = "";
_root.currentCarExit = "";
_root.parkedCar = 0;
_root.score = 0;
_root.activeCar = "";
_root.noCar = 0;
_root.parkingIsEmpty = true;
_root.profondeur = 5;
_root.maxStat = "";
_root.respawnX = _root.main.maxWalk._x;
_root.respawnY = _root.main.maxWalk._y;
_root.beforeNextCar = 0;
_root.noPersonnage = 0;
_root.currentCusName = "";
_root.currentCusNameExit = "";
_root.listPerso = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20);
_root.listCarToLeave = new Array();
_root.listCarToLeaveOwner = new Array();
_root.nbrRedCar = 0;
_root.nbrBlueCar = 0;
_root.nbrGreenCar = 0;
_root.noCarToLeave = 0;
_root.carStatus = "";
_root.maxStart = false;
_root.firstCarExit = true;
_root.typeKey = 0;
_root.myTimer = "";
_root.seconde = 0;
_root.keyIsBack = false;
_root.carMustStop = false;
_root.maxMustStop = false;
_root.redCarInRow = 0;
_root.blueCarInRow = 0;
_root.greenCarInRow = 0;
_root.maxSpeedMaxX = 0;
_root.maxSpeedMaxY = 0;
_root.maxSpeedX = 0;
_root.maxSpeedY = 0;
_root.prevXMax = 0;
_root.prevYMax = 0;
_root.collision = false;
_root.entrecollision = false;
_root.musicIsPlaying = true;
_root.popupNoKey = false;
_root.popupOneKey = false;
_root.popupOneKeyEnter = false;
_root.makeArrowVisible = true;
_root.scoreTime = 0;
_root.scoreWithoutTime = 0;
_root.prevScore = 0;
}
Instance of Symbol 669 MovieClip "control" in Frame 19
onClipEvent (load) {
function creerSO() {
var _local1 = _root;
level3SO = SharedObject.getLocal("level3", "/");
_local1.prevScore = level3SO.data.highScore;
trace(_local1.prevScore);
if (_local1.prevScore == 0) {
trace(0);
level3SO.data.highScore = _local1.score;
}
trace(_local1.score);
if (_local1.score > _local1.prevScore) {
level3SO.data.highScore = _local1.score;
} else {
level3SO.data.highScore = _local1.prevScore;
}
level3SO.flush();
trace(level3SO.data.highScore);
}
function calculateScore() {
var _local1 = _root;
scoreTemp = (_local1.minute * 60) * _local1.scorePerSecond;
_local1.scoreTime = scoreTemp + (_local1.seconde * _local1.scorePerSecond);
_local1.scoreWithoutTime = _local1.score;
_local1.score = _local1.score + _local1.scoreTime;
}
function placeKey() {
var _local1 = _root;
var _local2 = this;
_local1.main.keyPanel.btnClose._visible = false;
_local1.main.maxWalk._visible = false;
Mouse.hide();
goodCrochet = "crochet" + _local1.currentCusName;
blinkGoodCrochet = setInterval(blinkCrochet, _local1.blinkInterval);
_local1.main.keyPanel.keyToBringBack._visible = true;
keyToMove = "key" + _local1.currentCusName;
duplicateMovieClip (_local1.main.keyPanel.keyToBringBack, keyToMove, _local1.profondeur + 100);
_local1.main.keyPanel[keyToMove]._x = _local1.main.keyPanel._xmouse;
_local1.main.keyPanel[keyToMove]._y = _local1.main.keyPanel._ymouse;
_local1.main.keyPanel.keyToBringBack._visible = false;
_local1.main.keyPanel[keyToMove].gotoAndStop(_local1.main.activeKey._currentframe);
keyFollowMouse(_local1.main.keyPanel[keyToMove]);
_local1.main.keyPanel[keyToMove].onPress = function () {
var _local1 = _root;
var _local2 = this;
if (_local2.hitTest(_local1.main.keyPanel[goodCrochet])) {
Mouse.show();
keySound.attachSound("keySound");
keySound.start();
clearInterval(blinkGoodCrochet);
_local1.keyIsBack = true;
keyVisible = "cle" + _local1.currentCusName;
_local1.main.keyPanel[keyVisible]._visible = true;
_local1.main.keyPanel[keyVisible].gotoAndStop(_local1.main.activeKey._currentframe);
currentRot = _local1.main.maxWalk._rotation;
if (currentRot < 0) {
currentRot = currentRot * -1;
currentTemp = 180 - currentRot;
currentRot = 180 + currentTemp;
}
if ((currentRot >= 220) and (currentRot <= 350)) {
_local1.main.maxControl._x = (_local1.main.maxWalk._x = _local1.main.maxCome2._x);
_local1.main.maxControl._y = (_local1.main.maxWalk._y = _local1.main.maxCome2._y);
} else {
_local1.main.maxControl._x = (_local1.main.maxWalk._x = _local1.main.maxCome1._x);
_local1.main.maxControl._y = (_local1.main.maxWalk._y = _local1.main.maxCome1._y);
}
_local1.main.keyPanel[goodCrochet].gotoAndStop(1);
_local1.main.keyPanel._visible = false;
_local2.stopDrag(true);
_local2.removeMovieClip();
_local1.main.activeKey._visible = false;
_local1.main.maxWalk._visible = true;
_local1.main.servingName.gotoAndPlay(21);
}
};
}
function blinkCrochet() {
var _local1 = _root;
if (_local1.main.keyPanel[goodCrochet]._currentframe == 2) {
_local1.main.keyPanel[goodCrochet].gotoAndStop(1);
} else {
_local1.main.keyPanel[goodCrochet].gotoAndStop(2);
}
}
function keyFollowMouse(mcRef) {
mcRef.onMouseMove = function () {
this._x = _root.main.keyPanel._xmouse;
this._y = _root.main.keyPanel._ymouse;
};
}
function takeOffKey() {
var _local1 = _root;
_local1.main.keyPanel.btnClose._visible = true;
_local1.main.maxWalk._visible = false;
goodKeyExit = "cle" + _local1.currentCusNameExit;
_local1.typeKey = _local1.main.keyPanel[goodKeyExit]._currentframe;
blinkKey();
_local1.main.keyPanel[goodKeyExit].onPress = function () {
var _local1 = _root;
if (_local1.main.keyPanel[goodKeyExit]._currentframe == 2) {
_local1.typeKey = 1;
} else if (_local1.main.keyPanel[goodKeyExit]._currentframe == 4) {
_local1.typeKey = 3;
} else if (_local1.main.keyPanel[goodKeyExit]._currentframe == 6) {
_local1.typeKey = 5;
}
_local1.main.keyPanel[goodKeyExit]._visible = true;
_local1.main.keyPanel[goodKeyExit]._alpha = 100;
_local1.main.activeKey.gotoAndStop(_local1.typeKey);
_local1.main.activeKey._visible = true;
this._visible = false;
currentRot = _local1.main.maxWalk._rotation;
if (currentRot < 0) {
currentRot = currentRot * -1;
currentTemp = 180 - currentRot;
currentRot = 180 + currentTemp;
}
if ((currentRot >= 220) and (currentRot <= 350)) {
_local1.main.maxControl._x = (_local1.main.maxWalk._x = _local1.main.maxCome2._x);
_local1.main.maxControl._y = (_local1.main.maxWalk._y = _local1.main.maxCome2._y);
} else {
_local1.main.maxControl._x = (_local1.main.maxWalk._x = _local1.main.maxCome1._x);
_local1.main.maxControl._y = (_local1.main.maxWalk._y = _local1.main.maxCome1._y);
}
_local1.main.maxWalk._visible = true;
_local1.main.keyPanel._visible = false;
};
}
function blinkKey() {
var _local1 = _root;
goodKeyExit = "cle" + _local1.currentCusNameExit;
if (_local1.typeKey == 1) {
_local1.main.keyPanel[goodKeyExit].gotoAndStop(2);
} else if (_local1.typeKey == 3) {
_local1.main.keyPanel[goodKeyExit].gotoAndStop(4);
} else if (_local1.typeKey == 5) {
_local1.main.keyPanel[goodKeyExit].gotoAndStop(6);
}
}
function becomeActive(mcRef) {
var _local1 = _root;
var _local2 = mcRef;
doorSound.attachSound("carDoor");
doorSound.start();
_local1.main.wallEntrance._visible = false;
_local1.carStatus = "enter";
_local1.keyIsBack = false;
noTemp = Math.ceil(Math.random() * _local1.listPerso.length);
_local1.noPersonnage = _local1.listPerso[noTemp - 1];
_local1.listPerso.splice(noTemp - 1, 1);
if (_local1.noCar < 10) {
_local1.activeCar = (tempNoCar = "0" + _local1.noCar);
} else {
_local1.activeCar = (tempNoCar = _local1.noCar);
}
_local1.main.attachMovie("carList", "car" + tempNoCar, _local1.profondeur);
_local1.currentCar = (currentCar = "car" + tempNoCar);
if (_local1.carType <= 3) {
_local1.main.activeKey.gotoAndStop(1);
motorSmallSound.attachSound("smallMotor");
motorSmallSound.start(0, 1000);
} else if ((_local1.carType >= 4) and (_local1.carType <= 6)) {
motorMediumSound.attachSound("mediumMotor");
motorMediumSound.start(0, 1000);
_local1.main.activeKey.gotoAndStop(3);
} else if (_local1.carType >= 7) {
motorBigSound.attachSound("bigMotor");
motorBigSound.start(0, 1000);
_local1.main.activeKey.gotoAndStop(5);
}
_local1.main.servingName.gotoAndPlay(_local1.noPersonnage);
_local1.main[currentCar]._x = _local2._x;
_local1.main[currentCar]._y = _local2._y;
_local1.main.moveControl.swapDepths(500);
_local1.main.moveControl2.swapDepths(501);
_local1.main[currentCar]._rotation = 73;
_local1.main[currentCar].gotoAndStop(_local1.carType);
_local1.main.moveControl._visible = true;
_local1.main.moveControl2._visible = true;
_local1.main.moveControl.gotoAndStop(1);
_local1.main.moveControl._rotation = _local1.main[currentCar]._rotation;
_local1.main.moveControl2.gotoAndStop(1);
_local1.main.moveControl2._rotation = _local1.main[currentCar]._rotation + 180;
_local1.profondeur = _local1.profondeur + 1;
_local2.gotoAndStop(1);
_local1.main.maxWalk._visible = false;
_local1.main.maxControl._visible = false;
_local1.beforeNextCar = Math.ceil(Math.random() * _local1.timeBetween);
timeBefore = _local1.beforeNextCar * 1000;
if (_local1.noCar <= (_local1.maxCar - 1)) {
_local1.intervalNewCar = setInterval(createNewCar, timeBefore);
} else {
_local1.timeBeforeOut = 2;
}
if ((_local1.noCar >= _local1.carBeforeLeaving) and (_local1.firstCarExit == true)) {
timeTemp = Math.ceil(Math.random() * _local1.timeBeforeOut);
timeGoOut = timeTemp * 1000;
_local1.intervalGoOut = setInterval(carGoOut, timeGoOut);
_local1.firstCarExit = false;
}
}
function carGoOut() {
var _local1 = _root;
maxNumber = _local1.listCarToLeave.length;
if (_local1.parkedCar == (_local1.maxCar - 1)) {
maxNumber = maxNumber;
} else {
maxNumber = maxNumber - 1;
}
noTemp = Math.ceil(Math.random() * maxNumber);
if (noTemp == 0) {
noTemp = noTemp + 1;
}
_local1.noCarToLeave = _local1.listCarToLeave[noTemp - 1];
_local1.listCarToLeave.splice(noTemp - 1, 1);
_local1.currentCarExit = (carToGoOut = "car" + _local1.noCarToLeave);
noOwner = _local1.listCarToLeaveOwner[noTemp - 1];
_local1.main.leavingName.gotoAndStop(noOwner);
_local1.listCarToLeaveOwner.splice(noTemp - 1, 1);
_local1.blink = setInterval(blinkCar, _local1.blinkInterval);
bellSound.attachSound("exitBell");
bellSound.start();
clearInterval(_local1.intervalGoOut);
}
function blinkCar() {
_root.main.parked.wallMax[carToGoOut].bazoo.state.gotoAndStop(2);
}
function createNewCar() {
var _local1 = _root;
if (_local1.parkingIsEmpty == true) {
_local1.main.wallEntrance._visible = true;
_local1.carType = Math.ceil(Math.random() * 9);
if (_local1.carType <= 3) {
_local1.main.wallEntrance.gotoAndStop(1);
_local1.redCarInRow = _local1.redCarInRow + 1;
_local1.blueCarInRow = 0;
_local1.greenCarInRow = 0;
_local1.nbrRedCar = _local1.nbrRedCar + 1;
} else if ((_local1.carType >= 4) and (_local1.carType <= 6)) {
_local1.main.wallEntrance.gotoAndStop(2);
_local1.blueCarInRow = _local1.blueCarInRow + 1;
_local1.nbrBlueCar = _local1.nbrBlueCar + 1;
_local1.greenCarInRow = 0;
_local1.redCarInRow = 0;
} else if (_local1.carType >= 7) {
_local1.main.wallEntrance.gotoAndStop(3);
_local1.greenCarInRow = _local1.greenCarInRow + 1;
_local1.blueCarInRow = 0;
_local1.redCarInRow = 0;
_local1.nbrGreenCar = _local1.nbrGreenCar + 1;
}
if (_local1.redCarInRow >= 3) {
_local1.carType = _local1.carType + 3;
_local1.blueCarInRow = _local1.blueCarInRow + 1;
_local1.redCarInRow = 0;
_local1.nbrRedCar = _local1.nbrRedCar - 1;
_local1.nbrBlueCar = _local1.nbrBlueCar + 1;
} else if (_local1.blueCarInRow >= 3) {
_local1.greenCarInRow = _local1.greenCarInRow + 1;
_local1.carType = _local1.carType + 3;
_local1.blueCarInRow = 0;
_local1.nbrBlueCar = _local1.nbrBlueCar - 1;
_local1.nbrGreenCar = _local1.nbrGreenCar + 1;
} else if (_local1.greenCarInRow >= 3) {
_local1.carType = _local1.carType - 6;
_local1.redCarInRow = _local1.redCarInRow + 1;
_local1.greenCarInRow = 0;
_local1.nbrGreenCar = _local1.nbrGreenCar - 1;
_local1.nbrRedCar = _local1.nbrRedCar + 1;
}
if (_local1.nbrRedCar > 7) {
if (_local1.nbrBlueCar < 7) {
_local1.carType = 5;
_local1.nbrBlueCar = _local1.nbrBlueCar + 1;
} else if (_local1.nbrGreenCar < 6) {
_local1.carType = 8;
_local1.nbrGreenCar = _local1.nbrGreenCar + 1;
}
_local1.nbrRedCar = _local1.nbrRedCar - 1;
} else if (_local1.nbrBlueCar > 7) {
if (_local1.nbrRedCar < 7) {
_local1.carType = 2;
_local1.nbrRedCar = _local1.nbrRedCar + 1;
} else if (_local1.nbrGreenCar < 6) {
_local1.carType = 8;
_local1.nbrGreenCar = _local1.nbrGreenCar + 1;
}
_local1.nbrBlueCar = _local1.nbrBlueCar - 1;
} else if (_local1.nbrGreenCar > 6) {
if (_local1.nbrRedCar < 7) {
_local1.carType = 2;
_local1.nbrRedCar = _local1.nbrRedCar + 1;
} else if (_local1.nbrBlueCar < 7) {
_local1.carType = 5;
_local1.nbrBlueCar = _local1.nbrBlueCar + 1;
}
_local1.nbrGreenCar = _local1.nbrGreenCar - 1;
}
if (_local1.carType <= 3) {
klaxonSmallSound.attachSound("klaxonSmall");
klaxonSmallSound.start();
} else if ((_local1.carType >= 4) and (_local1.carType <= 6)) {
klaxonSound.attachSound("klaxon");
klaxonSound.start();
} else if (_local1.carType >= 7) {
klaxonBigSound.attachSound("klaxonGros");
klaxonBigSound.start();
}
_local1.main.car1Anim.entering.gotoAndStop(_local1.carType);
_local1.noCar = _local1.noCar + 1;
_local1.profondeur = _local1.profondeur + 1;
_local1.main.car1Anim.gotoAndPlay(2);
clearInterval(_local1.intervalNewCar);
} else {
clearInterval(_local1.intervalNewCar);
_local1.intervalNewCar = setInterval(createNewCar, timeBefore);
}
}
function becomeActiveAgain(mcRef) {
var _local1 = _root;
var _local2 = mcRef;
clearInterval(_local1.blink);
doorSound.attachSound("carDoor");
doorSound.start();
if (_local2._currentframe <= 3) {
motorSmallSound.attachSound("smallMotor");
motorSmallSound.start(0, 1000);
} else if ((_local2._currentframe >= 4) and (_local1.main[carToMove]._currentframe <= 6)) {
motorMediumSound.attachSound("mediumMotor");
motorMediumSound.start(0, 1000);
} else if (_local2._currentframe >= 7) {
motorBigSound.attachSound("bigMotor");
motorBigSound.start(0, 1000);
}
_local1.carStatus = "exit";
_local1.main.moveControl._visible = true;
_local1.main.moveControl2._visible = true;
_local1.main.moveControl.gotoAndStop(1);
_local1.main.moveControl2.gotoAndStop(1);
carToGoOut = _local1.currentCarExit;
_local1.main.parked.wallMax[carToGoOut]._visible = true;
_local1.main.maxWalk._visible = false;
_local1.main.attachMovie("carList", carToGoOut, _local1.profondeur);
_local1.main[carToGoOut]._x = _local2._x + _local1.main.parked._x;
_local1.main[carToGoOut]._y = _local2._y + _local1.main.parked._y;
_local1.main[carToGoOut]._rotation = _local2._rotation;
_local1.main[carToGoOut].gotoAndStop(_local2._currentframe);
_local1.main[carToGoOut].bazoo.light._visible = true;
_local1.main[carToGoOut].bazoo.gotoAndStop(_local2.bazoo._currentframe);
_local1.main.carControl._x = _local2._x + _local1.main.parked._x;
_local1.main.carControl._y = _local2._y + _local1.main.parked._y;
_local1.main.moveControl._rotation = _local2._rotation;
_local1.main.moveControl2._rotation = _local2._rotation + 180;
_local1.main.parked.wallMax[carToGoOut].removeMovieClip();
_local1.profondeur = _local1.profondeur + 1;
}
function wait() {
var _local1 = _root;
if ((_local1.minute == 0) and (_local1.seconde == 0)) {
countDownDone();
} else {
if (_local1.seconde == 0) {
_local1.minute--;
_local1.seconde = 59;
} else {
_local1.seconde--;
}
if (_local1.seconde < 10) {
_local1.main.timerField.timer.text = (_local1.minute + " : 0") + _local1.seconde;
_local1.main.timerField.ombre.text = (_local1.minute + " : 0") + _local1.seconde;
} else {
_local1.main.timerField.timer.text = (_local1.minute + " : ") + _local1.seconde;
_local1.main.timerField.ombre.text = (_local1.minute + " : ") + _local1.seconde;
}
}
}
function countDownDone() {
var _local1 = _root;
_local1.main.keyPanel._visible = false;
_local1.main.timerField.timer.text = " 0 : 00";
_local1.main.timerField.ombre.text = " 0 : 00";
clearInterval(_local1.myTimer);
_local1.main.maxControl.stopDrag();
_local1.main.moveControl.stopDrag();
_local1.main.moveControl2.stopDrag();
errorSound.attachSound("error");
errorSound.start();
_local1.main.instruction.gotoAndStop("NoTime");
}
function pauseCountDown() {
clearInterval(_root.myTimer);
}
function restartCountDown() {
_root.myTimer = setInterval(wait, 1000);
}
function displayTime(totalTime) {
var milliseconds = (totalTime % 1000);
var _local3 = (totalTime - milliseconds) / 1000;
var _local1 = _local3 % 60;
var _local2 = (_local3 - _local1) / 60;
if (_local1 < 10) {
_root.main.timerField.timer.text = (_local2 + " : 0") + _local1;
_root.main.timerField.ombre.text = (_local2 + " : 0") + _local1;
} else {
_root.main.timerField.timer.text = (_local2 + " : ") + _local1;
_root.main.timerField.ombre.text = (_local2 + " : ") + _local1;
}
}
function carAdvance(mcRef) {
var _local1 = _root;
if (_local1.main.maxWalk._visible == false) {
if (_local1.carStatus == "enter") {
carToMove = _local1.currentCar;
} else if (_local1.carStatus == "exit") {
carToMove = _local1.currentCarExit;
}
mcRef.onEnterFrame = function () {
var _local1 = _root;
_local1.prevX = _local1.main[carToMove]._x;
_local1.prevY = _local1.main[carToMove]._y;
triX = _local1.main.moveControl._x - _local1.main[carToMove]._x;
triY = _local1.main.moveControl._y - _local1.main[carToMove]._y;
triHyp = Math.sqrt((triX * triX) + (triY * triY));
compareX = _local1.main[carToMove]._x;
compareY = _local1.main[carToMove]._y;
radius = 10;
currentRot = _local1.main[carToMove]._rotation;
if (currentRot < 0) {
currentRot = currentRot * -1;
currentTemp = 180 - currentRot;
currentRot = 180 + currentTemp;
}
if ((currentRot > 90) and (currentRot < 270)) {
_local1.maxSpeedX = _local1.maxSpeedX * -1;
}
if ((currentRot > 180) and (currentRot < 360)) {
_local1.maxSpeedY = _local1.maxSpeedY * -1;
}
angle = Math.atan2(_local1.main[carToMove]._x - _local1.main.moveControl._x, _local1.main[carToMove]._y - _local1.main.moveControl._y);
destinationX = Math.round(_local1.main.moveControl._x + (Math.sin(angle) * radius));
if (destinationX < _local1.main[carToMove]._x) {
carX = _local1.main[carToMove]._x - destinationX;
} else {
carX = destinationX - _local1.main[carToMove]._x;
}
moveSpeecarX = carX / 30;
if (destinationX < _local1.main[carToMove]._x) {
_local1.maxSpeedX = moveSpeecarX * -1;
} else {
_local1.maxSpeedX = moveSpeecarX;
}
destinationY = Math.round(_local1.main.moveControl._y + (Math.cos(angle) * radius));
if (destinationY < _local1.main[carToMove]._y) {
carY = _local1.main[carToMove]._y - destinationY;
} else {
carY = destinationY - _local1.main[carToMove]._y;
}
moveSpeecarY = carY / 30;
if (destinationY < _local1.main[carToMove]._y) {
_local1.maxSpeedY = moveSpeecarY * -1;
} else {
_local1.maxSpeedY = moveSpeecarY;
}
point1X = _local1.pointFrontLeft.x + _local1.maxSpeedX;
point1Y = _local1.pointFrontLeft.y + _local1.maxSpeedY;
point2X = _local1.pointFrontRight.x + _local1.maxSpeedX;
point2Y = _local1.pointFrontRight.y + _local1.maxSpeedY;
point3X = _local1.pointBackRight.x + _local1.maxSpeedX;
point3Y = _local1.pointBackRight.y + _local1.maxSpeedY;
point4X = _local1.pointBackLeft.x + _local1.maxSpeedX;
point4Y = _local1.pointBackLeft.y + _local1.maxSpeedY;
point5X = _local1.pointMiddleLeft.x + _local1.maxSpeedX;
point5Y = _local1.pointMiddleLeft.y + _local1.maxSpeedY;
point6X = _local1.pointMiddleRight.x + _local1.maxSpeedX;
point6Y = _local1.pointMiddleRight.y + _local1.maxSpeedY;
point7X = _local1.pointFrontUp.x + _local1.maxSpeedX;
point7Y = _local1.pointFrontUp.y + _local1.maxSpeedY;
point8X = _local1.pointBackUp.x + _local1.maxSpeedX;
point8Y = _local1.pointBackUp.y + _local1.maxSpeedY;
if ((((((((_local1.main.parked.hitTest(point1X, point1Y, true) == true) or (_local1.main.parked.hitTest(point2X, point2Y, true) == true)) or (_local1.main.parked.hitTest(point3X, point3Y, true) == true)) or (_local1.main.parked.hitTest(point4X, point4Y, true) == true)) or (_local1.main.parked.hitTest(point5X, point5Y, true) == true)) or (_local1.main.parked.hitTest(point6X, point6Y, true) == true)) or (_local1.main.parked.hitTest(point7X, point7Y, true) == true)) or (_local1.main.parked.hitTest(point8X, point8Y, true) == true)) {
_local1.carMustStop = true;
if (_local1.collision == false) {
_local1.isRunning = false;
_local1.displacement = false;
_local1.carMustStop = true;
crashSound.attachSound("crash");
crashSound.start();
if (_local1.main[carToMove].bazoo._currentframe <= 4) {
_local1.main[carToMove].bazoo.nextFrame();
}
_local1.collision = true;
}
} else if ((((((((_local1.main.wallEntrance.hitTest(point1X, point1Y, true) == true) or (_local1.main.wallEntrance.hitTest(point2X, point2Y, true) == true)) or (_local1.main.wallEntrance.hitTest(point3X, point3Y, true) == true)) or (_local1.main.wallEntrance.hitTest(point4X, point4Y, true) == true)) or (_local1.main.parked.hitTest(point5X, point5Y, true) == true)) or (_local1.main.parked.hitTest(point6X, point6Y, true) == true)) or (_local1.main.parked.hitTest(point7X, point7Y, true) == true)) or (_local1.main.parked.hitTest(point8X, point8Y, true) == true)) {
_local1.collision = false;
_local1.carMustStop = false;
if (_local1.main.wallEntrance._visible == true) {
_local1.carMustStop = true;
if (_local1.entrecollision == false) {
_local1.isRunning = false;
_local1.displacement = false;
_local1.carMustStop = true;
crashSound.attachSound("crash");
crashSound.start();
if (_local1.main[carToMove].bazoo._currentframe <= 4) {
_local1.main[carToMove].bazoo.nextFrame();
}
_local1.entrecollision = true;
}
}
} else if ((((((((_local1.main.parked.hitTest(point1X, point1Y, true) == false) and (_local1.main.parked.hitTest(point2X, point2Y, true) == false)) and (_local1.main.parked.hitTest(point3X, point3Y, true) == false)) and (_local1.main.parked.hitTest(point4X, point4Y, true) == false)) and (_local1.main.parked.hitTest(point5X, point5Y, true) == false)) and (_local1.main.parked.hitTest(point6X, point6Y, true) == false)) and (_local1.main.parked.hitTest(point7X, point7Y, true) == false)) and (_local1.main.parked.hitTest(point8X, point8Y, true) == false)) {
_local1.collision = false;
_local1.carMustStop = false;
_local1.entrecollision = false;
} else if ((((((((_local1.main.wallEntrance.hitTest(point1X, point1Y, true) == false) and (_local1.main.wallEntrance.hitTest(point2X, point2Y, true) == false)) and (_local1.main.wallEntrance.hitTest(point3X, point3Y, true) == false)) and (_local1.main.wallEntrance.hitTest(point4X, point4Y, true) == false)) and (_local1.main.parked.hitTest(point5X, point5Y, true) == false)) and (_local1.main.parked.hitTest(point6X, point6Y, true) == false)) and (_local1.main.parked.hitTest(point7X, point7Y, true) == false)) and (_local1.main.parked.hitTest(point8X, point8Y, true) == false)) {
_local1.entrecollision = false;
_local1.carMustStop = false;
}
if (((_local1.main.hitEndZone.hitTest(point1X, point1Y, true) == true) and (_local1.main.hitEndZone.hitTest(point2X, point2Y, true) == true)) and (_local1.carStatus == "exit")) {
_local1.makeArrowVisible = false;
_local1.currentCusNameExit = "";
if (_local1.main[carToMove]._currentframe <= 3) {
motorSmallSound.attachSound("smallMotor");
motorSmallSound.stop();
} else if ((_local1.main[carToMove]._currentframe >= 4) and (_local1.main[carToMove]._currentframe <= 6)) {
motorMediumSound.attachSound("mediumMotor");
motorMediumSound.stop();
} else if (_local1.main[carToMove]._currentframe >= 7) {
motorBigSound.attachSound("bigMotor");
motorBigSound.stop();
}
doorSound.attachSound("carDoor");
doorSound.start();
carToExit = carToMove + "Exit";
_local1.main.attachMovie("carExit", carToExit, _local1.profondeur);
_local1.main[carToExit]._x = _local1.main[carToMove]._x;
_local1.main[carToExit]._y = _local1.main[carToMove]._y;
_local1.parkedCar = _local1.parkedCar + 1;
_local1.main.totalCars.text = (_local1.parkedCar + "/") + _local1.maxCar;
_local1.main.totalCarsOmbre.text = (_local1.parkedCar + "/") + _local1.maxCar;
if (_local1.main[carToMove].bazoo._currentframe == 1) {
_local1.score = _local1.score + _local1.scoreExit;
} else if (_local1.main[carToMove].bazoo._currentframe == 2) {
_local1.score = _local1.score + _local1.scoreExitBroken1;
} else if (_local1.main[carToMove].bazoo._currentframe == 3) {
_local1.score = _local1.score + _local1.scoreExitBroken2;
} else if (_local1.main[carToMove].bazoo._currentframe == 4) {
_local1.score = _local1.score + _local1.scoreExitBroken3;
}
_local1.main.scoreField.text = _local1.score;
_local1.main.scoreFieldOmbre.text = _local1.score;
_local1.main.maxControl._x = (_local1.main.maxWalk._x = _local1.main.maxAfterExit._x);
_local1.main.maxControl._y = (_local1.main.maxWalk._y = _local1.main.maxAfterExit._y);
_local1.main.activeKey._visible = false;
_local1.main[carToExit].exiting.gotoAndPlay(_local1.main[carToMove]._currentframe);
_local1.main[carToExit].exiting.bazoo.gotoAndStop(_local1.main[carToMove].bazoo._currentframe);
removeMovieClip(_local1.main[carToMove]);
_local1.main[carToExit].gotoAndPlay(2);
_local1.profondeur = _local1.profondeur + 1;
_local1.main.maxWalk._visible = true;
_local1.main.maxControl._visible = true;
timeTemp = Math.ceil(Math.random() * _local1.timeBeforeOut);
timeGoOut = timeTemp * 1000;
_local1.main.moveControl._visible = false;
_local1.main.moveControl2._visible = false;
_local1.main.moveControl.gotoAndStop(3);
_local1.main.moveControl2.gotoAndStop(3);
_local1.main.leavingName.gotoAndPlay(21);
if (_local1.parkedCar == _local1.maxCar) {
_global.control.pauseCountDown();
if (_local1.maxCar == 10) {
calculateScore();
_local1.main.instruction.gotoAndStop("done");
} else if (_local1.maxCar == 15) {
_local1.main.instruction.gotoAndStop("done2");
} else if (_local1.maxCar == 20) {
_local1.main.instruction.gotoAndStop("done3");
}
} else {
_local1.intervalGoOut = setInterval(carGoOut, timeGoOut);
}
}
if ((((_local1.displacement == true) and (triHyp >= 50)) and (_local1.carMustStop == false)) or (_local1.isRunning == true)) {
destinationX = Math.round(_local1.main.moveControl._x + (Math.sin(angle) * radius));
_local1.isRunning = true;
if (destinationX < _local1.main[carToMove]._x) {
carX = _local1.main[carToMove]._x - destinationX;
} else {
carX = destinationX - _local1.main[carToMove]._x;
}
_local1.maxSpeedX = (moveSpeecarX = carX / 30);
if (destinationX < _local1.main[carToMove]._x) {
_local1.main[carToMove]._x = _local1.main[carToMove]._x - moveSpeecarX;
} else {
_local1.main[carToMove]._x = _local1.main[carToMove]._x + moveSpeecarX;
}
destinationY = Math.round(_local1.main.moveControl._y + (Math.cos(angle) * radius));
if (destinationY < _local1.main[carToMove]._y) {
carY = _local1.main[carToMove]._y - destinationY;
} else {
carY = destinationY - _local1.main[carToMove]._y;
}
_local1.maxSpeedY = (moveSpeecarY = carY / 30);
if (destinationY < _local1.main[carToMove]._y) {
_local1.main[carToMove]._y = _local1.main[carToMove]._y - moveSpeecarY;
} else {
_local1.main[carToMove]._y = _local1.main[carToMove]._y + moveSpeecarY;
}
_local1.speed = moveSpeecarX + moveSpeecarY;
if (_local1.speed <= 0.5) {
_local1.isRunning = false;
}
}
distanceX = _local1.main[carToMove]._x - _local1.prevX;
if (distanceX < 0) {
distanceX = distanceX * -1;
}
distanceY = _local1.main[carToMove]._y - _local1.prevY;
if (distanceY < 0) {
distanceY = distanceY * -1;
}
totalDistance = distanceX + distanceY;
if (totalDistance >= 1) {
_local1.distanceRotation = _local1.distanceRotation + totalDistance;
}
x = (_local1.main[carToMove]._x - _local1.main.moveControl._x) * -1;
y = (_local1.main[carToMove]._y - _local1.main.moveControl._y) * -1;
angleRot = Math.atan2(y, x);
angleRot = (angleRot * 180) / Math.PI;
if (angleRot < 0) {
angleRot = angleRot * -1;
angleTemp = 180 - angleRot;
angleRot = 180 + angleTemp;
}
if (_local1.distanceRotation >= 3) {
currentRot = _local1.main[carToMove]._rotation;
if (currentRot < 0) {
currentRot = currentRot * -1;
currentTemp = 180 - currentRot;
currentRot = 180 + currentTemp;
}
disRot = Math.abs(angleRot - currentRot);
if (disRot > 200) {
if (currentRot > angleRot) {
_local1.main[carToMove]._rotation = _local1.main[carToMove]._rotation + 10;
disRot = 1;
} else if (currentRot < angleRot) {
_local1.main[carToMove]._rotation = _local1.main[carToMove]._rotation - 10;
disRot = 1;
}
} else if (currentRot < angleRot) {
if (_local1.main[carToMove].hitTest(_local1.main.moveControl._x, _local1.main.moveControl._y, true) == true) {
_local1.displacement = false;
} else {
if (disRot > 50) {
disRot = disRot / 10;
} else {
disRot = disRot / 3;
}
_local1.main[carToMove]._rotation = _local1.main[carToMove]._rotation + disRot;
}
} else if (currentRot > angleRot) {
if (_local1.main[carToMove].hitTest(_local1.main.moveControl._x, _local1.main.moveControl._y, true) == true) {
_local1.displacement = false;
} else {
if (disRot > 50) {
disRot = disRot / 10;
} else {
disRot = disRot / 3;
}
_local1.main[carToMove]._rotation = _local1.main[carToMove]._rotation - disRot;
}
}
_local1.distanceRotation = 0;
}
prevAngle = angleRot;
if ((compareX == Math.round(_local1.main[carToMove]._x)) && (compareY == Math.round(_local1.main[carToMove]._y))) {
}
};
}
}
function carRewind(mcRef) {
var _local1 = _root;
if (_local1.main.maxWalk._visible == false) {
if (_local1.carStatus == "enter") {
carToMove = _local1.currentCar;
} else if (_local1.carStatus == "exit") {
carToMove = _local1.currentCarExit;
}
mcRef.onEnterFrame = function () {
var _local1 = _root;
_local1.prevX = _local1.main[carToMove]._x;
_local1.prevY = _local1.main[carToMove]._y;
triX = _local1.main.moveControl2._x - _local1.main[carToMove]._x;
triY = _local1.main.moveControl2._y - _local1.main[carToMove]._y;
triHyp = Math.sqrt((triX * triX) + (triY * triY));
compareX = _local1.main[carToMove]._x;
compareY = _local1.main[carToMove]._y;
radius = 30;
angle = Math.atan2(_local1.main[carToMove]._x - _local1.main.moveControl2._x, _local1.main[carToMove]._y - _local1.main.moveControl2._y);
destinationX = Math.round(_local1.main.moveControl2._x + (Math.sin(angle) * radius));
if (destinationX < _local1.main[carToMove]._x) {
carX = _local1.main[carToMove]._x - destinationX;
} else {
carX = destinationX - _local1.main[carToMove]._x;
}
moveSpeecarX = carX / 30;
if (destinationX < _local1.main[carToMove]._x) {
_local1.maxSpeedX = moveSpeecarX * -1;
} else {
_local1.maxSpeedX = moveSpeecarX;
}
destinationY = Math.round(_local1.main.moveControl2._y + (Math.cos(angle) * radius));
if (destinationY < _local1.main[carToMove]._y) {
carY = _local1.main[carToMove]._y - destinationY;
} else {
carY = destinationY - _local1.main[carToMove]._y;
}
moveSpeecarY = carY / 30;
if (destinationY < _local1.main[carToMove]._y) {
_local1.maxSpeedY = moveSpeecarY * -1;
} else {
_local1.maxSpeedY = moveSpeecarY;
}
point1X = _local1.pointFrontLeft.x + _local1.maxSpeedX;
point1Y = _local1.pointFrontLeft.y + _local1.maxSpeedY;
point2X = _local1.pointFrontRight.x + _local1.maxSpeedX;
point2Y = _local1.pointFrontRight.y + _local1.maxSpeedY;
point3X = _local1.pointBackRight.x + _local1.maxSpeedX;
point3Y = _local1.pointBackRight.y + _local1.maxSpeedY;
point4X = _local1.pointBackLeft.x + _local1.maxSpeedX;
point4Y = _local1.pointBackLeft.y + _local1.maxSpeedY;
point5X = _local1.pointMiddleLeft.x + _local1.maxSpeedX;
point5Y = _local1.pointMiddleLeft.y + _local1.maxSpeedY;
point6X = _local1.pointMiddleRight.x + _local1.maxSpeedX;
point6Y = _local1.pointMiddleRight.y + _local1.maxSpeedY;
point7X = _local1.pointFrontUp.x + _local1.maxSpeedX;
point7Y = _local1.pointFrontUp.y + _local1.maxSpeedY;
point8X = _local1.pointBackUp.x + _local1.maxSpeedX;
point8Y = _local1.pointBackUp.y + _local1.maxSpeedY;
if ((((((((_local1.main.parked.hitTest(point1X, point1Y, true) == true) or (_local1.main.parked.hitTest(point2X, point2Y, true) == true)) or (_local1.main.parked.hitTest(point3X, point3Y, true) == true)) or (_local1.main.parked.hitTest(point4X, point4Y, true) == true)) or (_local1.main.parked.hitTest(point5X, point5Y, true) == true)) or (_local1.main.parked.hitTest(point6X, point6Y, true) == true)) or (_local1.main.parked.hitTest(point7X, point7Y, true) == true)) or (_local1.main.parked.hitTest(point8X, point8Y, true) == true)) {
_local1.carMustStop = true;
if (_local1.collision == false) {
_local1.isRunning = false;
_local1.displacement = false;
_local1.carMustStop = true;
crashSound.attachSound("crash");
crashSound.start();
if (_local1.main[carToMove].bazoo._currentframe <= 4) {
_local1.main[carToMove].bazoo.nextFrame();
}
_local1.collision = true;
}
} else if ((((((((_local1.main.wallEntrance.hitTest(point1X, point1Y, true) == true) or (_local1.main.wallEntrance.hitTest(point2X, point2Y, true) == true)) or (_local1.main.wallEntrance.hitTest(point3X, point3Y, true) == true)) or (_local1.main.wallEntrance.hitTest(point4X, point4Y, true) == true)) or (_local1.main.parked.hitTest(point5X, point5Y, true) == true)) or (_local1.main.parked.hitTest(point6X, point6Y, true) == true)) or (_local1.main.parked.hitTest(point7X, point7Y, true) == true)) or (_local1.main.parked.hitTest(point8X, point8Y, true) == true)) {
_local1.collision = false;
_local1.carMustStop = false;
if (_local1.main.wallEntrance._visible == true) {
_local1.carMustStop = true;
if (_local1.entrecollision == false) {
_local1.isRunning = false;
_local1.displacement = false;
_local1.carMustStop = true;
crashSound.attachSound("crash");
crashSound.start();
if (_local1.main[carToMove].bazoo._currentframe <= 4) {
_local1.main[carToMove].bazoo.nextFrame();
}
_local1.entrecollision = true;
}
}
} else if ((((((((_local1.main.parked.hitTest(point1X, point1Y, true) == false) and (_local1.main.parked.hitTest(point2X, point2Y, true) == false)) and (_local1.main.parked.hitTest(point3X, point3Y, true) == false)) and (_local1.main.parked.hitTest(point4X, point4Y, true) == false)) and (_local1.main.parked.hitTest(point5X, point5Y, true) == false)) and (_local1.main.parked.hitTest(point6X, point6Y, true) == false)) and (_local1.main.parked.hitTest(point7X, point7Y, true) == false)) and (_local1.main.parked.hitTest(point8X, point8Y, true) == false)) {
_local1.collision = false;
_local1.carMustStop = false;
_local1.entrecollision = false;
} else if ((((((((_local1.main.wallEntrance.hitTest(point1X, point1Y, true) == false) and (_local1.main.wallEntrance.hitTest(point2X, point2Y, true) == false)) and (_local1.main.wallEntrance.hitTest(point3X, point3Y, true) == false)) and (_local1.main.wallEntrance.hitTest(point4X, point4Y, true) == false)) and (_local1.main.parked.hitTest(point5X, point5Y, true) == false)) and (_local1.main.parked.hitTest(point6X, point6Y, true) == false)) and (_local1.main.parked.hitTest(point7X, point7Y, true) == false)) and (_local1.main.parked.hitTest(point8X, point8Y, true) == false)) {
_local1.collision = false;
_local1.entrecollision = false;
_local1.carMustStop = false;
}
if ((((_local1.displacement == true) and (triHyp >= 50)) and (_local1.carMustStop == false)) or (_local1.isRunning == true)) {
destinationX = Math.round(_local1.main.moveControl2._x + (Math.sin(angle) * radius));
_local1.isRunning = true;
if (destinationX < _local1.main[carToMove]._x) {
carX = _local1.main[carToMove]._x - destinationX;
} else {
carX = destinationX - _local1.main[carToMove]._x;
}
moveSpeecarX = carX / 30;
if (destinationX < _local1.main[carToMove]._x) {
_local1.main[carToMove]._x = _local1.main[carToMove]._x - moveSpeecarX;
} else {
_local1.main[carToMove]._x = _local1.main[carToMove]._x + moveSpeecarX;
}
destinationY = Math.round(_local1.main.moveControl2._y + (Math.cos(angle) * radius));
if (destinationY < _local1.main[carToMove]._y) {
carY = _local1.main[carToMove]._y - destinationY;
} else {
carY = destinationY - _local1.main[carToMove]._y;
}
moveSpeecarY = carY / 30;
if (destinationY < _local1.main[carToMove]._y) {
_local1.main[carToMove]._y = _local1.main[carToMove]._y - moveSpeecarY;
} else {
_local1.main[carToMove]._y = _local1.main[carToMove]._y + moveSpeecarY;
}
_local1.speed = moveSpeecarX + moveSpeecarY;
if (_local1.speed <= 0.5) {
_local1.isRunning = false;
}
}
distanceX = _local1.main[carToMove]._x - _local1.prevX;
if (distanceX < 0) {
distanceX = distanceX * -1;
}
distanceY = _local1.main[carToMove]._y - _local1.prevY;
if (distanceY < 0) {
distanceY = distanceY * -1;
}
totalDistance = distanceX + distanceY;
if (totalDistance >= 1) {
_local1.distanceRotation = _local1.distanceRotation + totalDistance;
}
x = (_local1.main[carToMove]._x - _local1.main.moveControl2._x) * 1;
y = (_local1.main[carToMove]._y - _local1.main.moveControl2._y) * 1;
angleRot = Math.atan2(y, x);
angleRot = (angleRot * 180) / Math.PI;
if (angleRot < 0) {
angleRot = angleRot * -1;
angleTemp = 180 - angleRot;
angleRot = 180 + angleTemp;
}
if (_local1.distanceRotation >= 3) {
currentRot = _local1.main[carToMove]._rotation;
if (currentRot < 0) {
currentRot = currentRot * -1;
currentTemp = 180 - currentRot;
currentRot = 180 + currentTemp;
}
disRot = Math.abs(angleRot - currentRot);
if (disRot > 200) {
if (currentRot > angleRot) {
_local1.main[carToMove]._rotation = _local1.main[carToMove]._rotation + 10;
disRot = 1;
} else if (currentRot < angleRot) {
_local1.main[carToMove]._rotation = _local1.main[carToMove]._rotation - 10;
disRot = 1;
}
} else if (currentRot < angleRot) {
if (_local1.main[carToMove].hitTest(_local1.main.moveControl2._x, _local1.main.moveControl2._y, true) == true) {
_local1.displacement = false;
} else {
if (disRot > 50) {
disRot = disRot / 10;
} else {
disRot = disRot / 3;
}
_local1.main[carToMove]._rotation = _local1.main[carToMove]._rotation + disRot;
}
} else if (currentRot > angleRot) {
if (_local1.main[carToMove].hitTest(_local1.main.moveControl2._x, _local1.main.moveControl2._y, true) == true) {
_local1.displacement = false;
} else {
if (disRot > 50) {
disRot = disRot / 10;
} else {
disRot = disRot / 3;
}
_local1.main[carToMove]._rotation = _local1.main[carToMove]._rotation - disRot;
}
}
_local1.distanceRotation = 0;
}
prevAngle = angleRot;
if ((compareX == Math.round(_local1.main[carToMove]._x)) && (compareY == Math.round(_local1.main[carToMove]._y))) {
}
};
}
}
function moveControlAdvance(mcRef) {
var _local1 = _root;
var _local2 = this;
var _local3 = mcRef;
radius2 = 20;
_local3.onMouseDown = function () {
this.onPress = dragLine;
};
_local3.onRelease = (_local3.onReleaseOutside = function () {
var _local1 = _root;
var _local2 = this;
_local1.carMustStop = false;
_local1.isRunning = false;
_local1.clutch = "";
delete _local2.onMouseMove;
_local2.onRelease = _local2.stopDrag();
if (_local1.makeArrowVisible == true) {
_local1.main.moveControl._visible = true;
_local1.main.moveControl2._visible = true;
}
point7X = _local1.pointFrontUp.x;
point7Y = _local1.pointFrontUp.y;
point8X = _local1.pointBackUp.x;
point8Y = _local1.pointBackUp.y;
_local1.makeArrowVisible = true;
_local1.main.moveControl.gotoAndStop(1);
_local1.main.moveControl2.gotoAndStop(1);
trueX = _local1.main[carToMove]._x + _local1.main._x;
trueY = _local1.main[carToMove]._y + _local1.main._y;
_local1.main.moveControl._x = _local1.pointFront.x + 2;
_local1.main.moveControl._y = _local1.pointFront.y + 8;
_local1.main.moveControl2._x = _local1.pointBack.x + 2;
_local1.main.moveControl2._y = _local1.pointBack.y + 8;
_local1.main.moveControl._rotation = _local1.main[carToMove]._rotation;
_local1.main.moveControl2._rotation = _local1.main[carToMove]._rotation + 180;
if (_local1.carStatus == "enter") {
if (_local1.main[carToMove]._currentframe <= 3) {
parkingZone = "parkingZoneSmall";
if ((_local1.main.parkingZoneMedium.hitTest(trueX, trueY, true) == true) or (_local1.main.parkingZoneLarge.hitTest(trueX, trueY, true) == true)) {
errorSound.attachSound("error");
errorSound.start();
_local1.main.instruction.gotoAndStop("wrongPlace");
}
} else if ((_local1.main[carToMove]._currentframe >= 4) and (_local1.main[carToMove]._currentframe <= 6)) {
parkingZone = "parkingZoneMedium";
if ((_local1.main.parkingZoneSmall.hitTest(trueX, trueY, true) == true) or (_local1.main.parkingZoneLarge.hitTest(trueX, trueY, true) == true)) {
errorSound.attachSound("error");
errorSound.start();
_local1.main.instruction.gotoAndStop("wrongPlace");
}
} else if (_local1.main[carToMove]._currentframe >= 7) {
parkingZone = "parkingZoneLarge";
if ((_local1.main.parkingZoneMedium.hitTest(trueX, trueY, true) == true) or (_local1.main.parkingZoneSmall.hitTest(trueX, trueY, true) == true)) {
errorSound.attachSound("error");
errorSound.start();
_local1.main.instruction.gotoAndStop("wrongPlace");
}
}
}
if (((_local1.main[parkingZone].hitTest(point7X, point7Y, true) == true) and (_local1.main[parkingZone].hitTest(point8X, point8Y, true) == true)) and (_local1.carStatus == "enter")) {
if (_local1.main[carToMove]._currentframe <= 3) {
motorSmallSound.attachSound("smallMotor");
motorSmallSound.stop();
} else if ((_local1.main[carToMove]._currentframe >= 4) and (_local1.main[carToMove]._currentframe <= 6)) {
motorMediumSound.attachSound("mediumMotor");
motorMediumSound.stop();
} else if (_local1.main[carToMove]._currentframe >= 7) {
motorBigSound.attachSound("bigMotor");
motorBigSound.stop();
}
doorSound.attachSound("carDoor");
doorSound.start();
if (_local1.main[carToMove]._currentframe <= 3) {
if (_local1.main.parkingZoneSmall.hitSmall1.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed1._x;
maxAfterParkY = _local1.main.maxParkRed1._y;
} else if (_local1.main.parkingZoneSmall.hitSmall2.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed2._x;
maxAfterParkY = _local1.main.maxParkRed2._y;
} else if (_local1.main.parkingZoneSmall.hitSmall3.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed3._x;
maxAfterParkY = _local1.main.maxParkRed3._y;
} else if (_local1.main.parkingZoneSmall.hitSmall4.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed4._x;
maxAfterParkY = _local1.main.maxParkRed4._y;
} else if (_local1.main.parkingZoneSmall.hitSmall5.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed5._x;
maxAfterParkY = _local1.main.maxParkRed5._y;
} else if (_local1.main.parkingZoneSmall.hitSmall6.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed6._x;
maxAfterParkY = _local1.main.maxParkRed6._y;
} else if (_local1.main.parkingZoneSmall.hitSmall7.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed7._x;
maxAfterParkY = _local1.main.maxParkRed7._y;
}
} else if ((_local1.main[carToMove]._currentframe >= 4) and (_local1.main[carToMove]._currentframe <= 6)) {
if (_local1.main.parkingZoneMedium.hitMedium1.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue1._x;
maxAfterParkY = _local1.main.maxParkBlue1._y;
} else if (_local1.main.parkingZoneMedium.hitMedium2.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue2._x;
maxAfterParkY = _local1.main.maxParkBlue2._y;
} else if (_local1.main.parkingZoneMedium.hitMedium3.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue3._x;
maxAfterParkY = _local1.main.maxParkBlue3._y;
} else if (_local1.main.parkingZoneMedium.hitMedium4.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue4._x;
maxAfterParkY = _local1.main.maxParkBlue4._y;
} else if (_local1.main.parkingZoneMedium.hitMedium5.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue5._x;
maxAfterParkY = _local1.main.maxParkBlue5._y;
} else if (_local1.main.parkingZoneMedium.hitMedium6.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue6._x;
maxAfterParkY = _local1.main.maxParkBlue6._y;
} else if (_local1.main.parkingZoneMedium.hitMedium7.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue7._x;
maxAfterParkY = _local1.main.maxParkBlue7._y;
}
} else if (_local1.main[carToMove]._currentframe >= 7) {
if (_local1.main.parkingZoneLarge.hitLarge1.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkGreen1._x;
maxAfterParkY = _local1.main.maxParkGreen1._y;
} else if (_local1.main.parkingZoneLarge.hitLarge2.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkGreen2._x;
maxAfterParkY = _local1.main.maxParkGreen2._y;
} else if (_local1.main.parkingZoneLarge.hitLarge3.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkGreen3._x;
maxAfterParkY = _local1.main.maxParkGreen3._y;
} else if (_local1.main.parkingZoneLarge.hitLarge4.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkGreen4._x;
maxAfterParkY = _local1.main.maxParkGreen4._y;
} else if (_local1.main.parkingZoneLarge.hitLarge5.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkGreen5._x;
maxAfterParkY = _local1.main.maxParkGreen5._y;
} else if (_local1.main.parkingZoneLarge.hitLarge6.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkGreen6._x;
maxAfterParkY = _local1.main.maxParkGreen6._y;
}
}
_local1.main.maxControl._x = (_local1.main.maxWalk._x = maxAfterParkX);
_local1.main.maxControl._y = (_local1.main.maxWalk._y = maxAfterParkY);
if (_local1.main[carToMove].bazoo._currentframe == 1) {
_local1.score = _local1.score + _local1.scoreParking;
} else if (_local1.main[carToMove].bazoo._currentframe == 2) {
_local1.score = _local1.score + _local1.scoreParkingBroken1;
} else if (_local1.main[carToMove].bazoo._currentframe == 3) {
_local1.score = _local1.score + _local1.scoreParkingBroken2;
} else if (_local1.main[carToMove].bazoo._currentframe == 4) {
_local1.score = _local1.score + _local1.scoreParkingBroken3;
}
_local1.main.parked.wallMax.attachMovie("carToPark", carToMove, _local1.profondeur);
_local1.main.parked.wallMax[carToMove]._x = _local1.main[carToMove]._x - _local1.main.parked._x;
_local1.main.parked.wallMax[carToMove]._y = _local1.main[carToMove]._y - _local1.main.parked._y;
_local1.main.parked.wallMax[carToMove]._rotation = _local1.main[carToMove]._rotation;
_local1.main.parked.wallMax[carToMove].bazoo.frontLights._visible = false;
_local1.main.parked.wallMax[carToMove].gotoAndStop(_local1.main[carToMove]._currentframe);
_local1.main.parked.wallMax[carToMove].bazoo.gotoAndStop(_local1.main[carToMove].bazoo._currentframe);
_local1.main.parked.wallMax[carToMove].bazoo.light._visible = false;
_local1.main[carToMove].removeMovieClip();
_local1.profondeur = _local1.profondeur + 1;
_local1.main.maxWalk._visible = true;
_local1.main.maxControl._visible = true;
_local1.main.moveControl._visible = false;
_local1.main.moveControl2._visible = false;
_local1.main.moveControl.gotoAndStop(3);
_local1.main.moveControl2.gotoAndStop(3);
_local1.main.scoreField.text = _local1.score;
_local1.main.scoreFieldOmbre.text = _local1.score;
_local1.listCarToLeave.push(_local1.activeCar);
_local1.listCarToLeaveOwner.push(_local1.main.servingName._currentframe);
}
point1X = _local1.pointFrontLeft.x;
point1Y = _local1.pointFrontLeft.y;
point2X = _local1.pointFrontRight.x;
point2Y = _local1.pointFrontRight.y;
point3X = _local1.pointBackRight.x;
point3Y = _local1.pointBackRight.y;
point4X = _local1.pointBackLeft.x;
point4Y = _local1.pointBackLeft.y;
});
dragLine = function () {
var _local1 = _root;
_local1.main.moveControl.gotoAndStop(3);
_local1.main.moveControl2.gotoAndStop(3);
carToMove = _local1.currentCar;
_local1.clutch = "drive";
this.startDrag();
this.onMouseMove = function () {
reposition(_root.main[carToMove]);
};
};
reposition = function (object) {
var _local1 = _root;
_local1.displacement = true;
posX = _local1.main.moveControl._x;
posY = _local1.main.moveControl._y;
this.moveTo(posX, posY);
compareX = _local1.main[carToMove]._x;
compareY = _local1.main[carToMove]._y;
angle = Math.atan2(_local1.main[carToMove]._x - _local1.main.moveControl._x, _local1.main[carToMove]._y - _local1.main.moveControl._y);
_local1.main.moveControl2._x = (compareX = Math.round(_local1.main.moveControl._x + (Math.sin(angle) * radius2)));
_local1.main.moveControl2._y = (compareY = Math.round(_local1.main.moveControl._y + (Math.cos(angle) * radius2)));
};
radius2 = 20;
}
function moveControlRewind(mcRef) {
var _local1 = _root;
var _local2 = this;
var _local3 = mcRef;
radius3 = 45;
_local3.onMouseDown = function () {
this.onPress = dragLine2;
};
_local3.onRelease = (_local3.onReleaseOutside = function () {
var _local1 = _root;
var _local2 = this;
if (_local1.carStatus == "enter") {
carToMove = _local1.currentCar;
} else if (_local1.carStatus == "exit") {
carToMove = _local1.currentCarExit;
}
_local1.carMustStop = false;
_local1.isRunning = false;
_local1.clutch = "";
delete _local2.onMouseMove;
_local1.main.moveControl._x = _local1.pointFront.x + 2;
_local1.main.moveControl._y = _local1.pointFront.y + 8;
_local1.main.moveControl2._x = _local1.pointBack.x + 2;
_local1.main.moveControl2._y = _local1.pointBack.y + 8;
if (_local1.makeArrowVisible == true) {
_local1.main.moveControl._visible = true;
_local1.main.moveControl2._visible = true;
}
point7X = _local1.pointFrontUp.x;
point7Y = _local1.pointFrontUp.y;
point8X = _local1.pointBackUp.x;
point8Y = _local1.pointBackUp.y;
root.makeArrowVisible = true;
_local1.main.moveControl.gotoAndStop(1);
_local1.main.moveControl2.gotoAndStop(1);
_local1.main.moveControl._rotation = _local1.main[carToMove]._rotation;
_local1.main.moveControl2._rotation = _local1.main[carToMove]._rotation + 180;
trueX = _local1.main[carToMove]._x + _local1.main._x;
trueY = _local1.main[carToMove]._y + _local1.main._y;
_local2.onRelease = _local2.stopDrag();
if (_local1.carStatus == "enter") {
if (_local1.main[carToMove]._currentframe <= 3) {
parkingZone = "parkingZoneSmall";
if ((_local1.main.parkingZoneMedium.hitTest(trueX, trueY, true) == true) or ((_local1.main.parkingZoneLarge.hitTest(trueX, trueY, true) == true) and (_local1.carStatus == "enter"))) {
errorSound.attachSound("error");
errorSound.start();
_local1.main.instruction.gotoAndStop("wrongPlace");
}
} else if ((_local1.main[carToMove]._currentframe >= 4) and (_local1.main[carToMove]._currentframe <= 6)) {
parkingZone = "parkingZoneMedium";
if ((_local1.main.parkingZoneSmall.hitTest(trueX, trueY, true) == true) or ((_local1.main.parkingZoneLarge.hitTest(trueX, trueY, true) == true) and (_local1.carStatus == "enter"))) {
errorSound.attachSound("error");
errorSound.start();
_local1.main.instruction.gotoAndStop("wrongPlace");
}
} else if (_local1.main[carToMove]._currentframe >= 7) {
parkingZone = "parkingZoneLarge";
if ((_local1.main.parkingZoneMedium.hitTest(trueX, trueY, true) == true) or ((_local1.main.parkingZoneSmall.hitTest(trueX, trueY, true) == true) and (_local1.carStatus == "enter"))) {
errorSound.attachSound("error");
errorSound.start();
_local1.main.instruction.gotoAndStop("wrongPlace");
}
}
}
if (((_local1.main[parkingZone].hitTest(point7X, point7Y, true) == true) and (_local1.main[parkingZone].hitTest(point8X, point8Y, true) == true)) and (_local1.carStatus == "enter")) {
if (_local1.main[carToMove]._currentframe <= 3) {
motorSmallSound.attachSound("smallMotor");
motorSmallSound.stop();
} else if ((_local1.main[carToMove]._currentframe >= 4) and (_local1.main[carToMove]._currentframe <= 6)) {
motorMediumSound.attachSound("mediumMotor");
motorMediumSound.stop();
} else if (_local1.main[carToMove]._currentframe >= 7) {
motorBigSound.attachSound("bigMotor");
motorBigSound.stop();
}
doorSound.attachSound("carDoor");
doorSound.start();
if (_local1.main[carToMove]._currentframe <= 3) {
if (_local1.main.parkingZoneSmall.hitSmall1.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed1._x;
maxAfterParkY = _local1.main.maxParkRed1._y;
} else if (_local1.main.parkingZoneSmall.hitSmall2.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed2._x;
maxAfterParkY = _local1.main.maxParkRed2._y;
} else if (_local1.main.parkingZoneSmall.hitSmall3.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed3._x;
maxAfterParkY = _local1.main.maxParkRed3._y;
} else if (_local1.main.parkingZoneSmall.hitSmall4.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed4._x;
maxAfterParkY = _local1.main.maxParkRed4._y;
} else if (_local1.main.parkingZoneSmall.hitSmall5.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed5._x;
maxAfterParkY = _local1.main.maxParkRed5._y;
} else if (_local1.main.parkingZoneSmall.hitSmall6.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed6._x;
maxAfterParkY = _local1.main.maxParkRed6._y;
} else if (_local1.main.parkingZoneSmall.hitSmall7.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkRed7._x;
maxAfterParkY = _local1.main.maxParkRed7._y;
}
} else if ((_local1.main[carToMove]._currentframe >= 4) and (_local1.main[carToMove]._currentframe <= 6)) {
if (_local1.main.parkingZoneMedium.hitMedium1.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue1._x;
maxAfterParkY = _local1.main.maxParkBlue1._y;
} else if (_local1.main.parkingZoneMedium.hitMedium2.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue2._x;
maxAfterParkY = _local1.main.maxParkBlue2._y;
} else if (_local1.main.parkingZoneMedium.hitMedium3.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue3._x;
maxAfterParkY = _local1.main.maxParkBlue3._y;
} else if (_local1.main.parkingZoneMedium.hitMedium4.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue4._x;
maxAfterParkY = _local1.main.maxParkBlue4._y;
} else if (_local1.main.parkingZoneMedium.hitMedium5.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue5._x;
maxAfterParkY = _local1.main.maxParkBlue5._y;
} else if (_local1.main.parkingZoneMedium.hitMedium6.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue6._x;
maxAfterParkY = _local1.main.maxParkBlue6._y;
} else if (_local1.main.parkingZoneMedium.hitMedium7.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkBlue7._x;
maxAfterParkY = _local1.main.maxParkBlue7._y;
}
} else if (_local1.main[carToMove]._currentframe >= 7) {
if (_local1.main.parkingZoneLarge.hitLarge1.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkGreen1._x;
maxAfterParkY = _local1.main.maxParkGreen1._y;
} else if (_local1.main.parkingZoneLarge.hitLarge2.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkGreen2._x;
maxAfterParkY = _local1.main.maxParkGreen2._y;
} else if (_local1.main.parkingZoneLarge.hitLarge3.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkGreen3._x;
maxAfterParkY = _local1.main.maxParkGreen3._y;
} else if (_local1.main.parkingZoneLarge.hitLarge4.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkGreen4._x;
maxAfterParkY = _local1.main.maxParkGreen4._y;
} else if (_local1.main.parkingZoneLarge.hitLarge5.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkGreen5._x;
maxAfterParkY = _local1.main.maxParkGreen5._y;
} else if (_local1.main.parkingZoneLarge.hitLarge6.hitTest(trueX, trueY, true) == true) {
maxAfterParkX = _local1.main.maxParkGreen6._x;
maxAfterParkY = _local1.main.maxParkGreen6._y;
}
}
_local1.main.maxControl._x = (_local1.main.maxWalk._x = maxAfterParkX);
_local1.main.maxControl._y = (_local1.main.maxWalk._y = maxAfterParkY);
if (_local1.main[carToMove].bazoo._currentframe == 1) {
_local1.score = _local1.score + _local1.scoreParking;
} else if (_local1.main[carToMove].bazoo._currentframe == 2) {
_local1.score = _local1.score + _local1.scoreParkingBroken1;
} else if (_local1.main[carToMove].bazoo._currentframe == 3) {
_local1.score = _local1.score + _local1.scoreParkingBroken2;
} else if (_local1.main[carToMove].bazoo._currentframe == 4) {
_local1.score = _local1.score + _local1.scoreParkingBroken3;
}
_local1.main.parked.wallMax.attachMovie("carToPark", carToMove, _local1.profondeur);
_local1.main.parked.wallMax[carToMove]._x = _local1.main[carToMove]._x - _local1.main.parked._x;
_local1.main.parked.wallMax[carToMove]._y = _local1.main[carToMove]._y - _local1.main.parked._y;
_local1.main.parked.wallMax[carToMove]._rotation = _local1.main[carToMove]._rotation;
_local1.main.parked.wallMax[carToMove].bazoo.frontLights._visible = false;
_local1.main.parked.wallMax[carToMove].gotoAndStop(_local1.main[carToMove]._currentframe);
_local1.main.parked.wallMax[carToMove].bazoo.gotoAndStop(_local1.main[carToMove].bazoo._currentframe);
_local1.main.parked.wallMax[carToMove].bazoo.light._visible = false;
_local1.main[carToMove].removeMovieClip();
_local1.profondeur = _local1.profondeur + 1;
_local1.main.maxWalk._visible = true;
_local1.main.maxControl._visible = true;
_local1.main.moveControl._visible = false;
_local1.main.moveControl2._visible = false;
_local1.main.moveControl.gotoAndStop(3);
_local1.main.moveControl2.gotoAndStop(3);
_local1.main.scoreField.text = _local1.score;
_local1.main.scoreFieldOmbre.text = _local1.score;
_local1.listCarToLeave.push(_local1.activeCar);
_local1.listCarToLeaveOwner.push(_local1.main.servingName._currentframe);
}
});
dragLine2 = function () {
var _local1 = _root;
if (_local1.carStatus == "enter") {
carToMove = _local1.currentCar;
} else if (_local1.carStatus == "exit") {
carToMove = _local1.currentCarExit;
}
_local1.main.moveControl.gotoAndStop(3);
_local1.main.moveControl2.gotoAndStop(3);
_local1.clutch = "rewind";
this.startDrag();
this.onMouseMove = function () {
reposition2(_root.main[carToMove]);
};
};
reposition2 = function (object) {
var _local1 = _root;
_local1.displacement = true;
posX = _local1.main.moveControl2._x;
posY = _local1.main.moveControl2._y;
this.moveTo(posX, posY);
compareX = _local1.main[carToMove]._x;
compareY = _local1.main[carToMove]._y;
angle = Math.atan2(_local1.main[carToMove]._x - _local1.main.moveControl2._x, _local1.main[carToMove]._y - _local1.main.moveControl2._y);
_local1.main.moveControl._x = (compareX = Math.round(_local1.main.moveControl2._x + (Math.sin(angle) * radius2)));
_local1.main.moveControl._y = (compareY = Math.round(_local1.main.moveControl2._y + (Math.cos(angle) * radius2)));
};
radius3 = 45;
}
function moveMax(mcRef) {
var _local1 = _root;
var _local2 = this;
mcRef.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
compareX = _local2._x;
compareY = _local2._y;
radius3 = 10;
angle = Math.atan2(_local2._x - _local1.main.maxControl._x, _local2._y - _local1.main.maxControl._y);
destinationX = Math.round(_local1.main.maxControl._x + (Math.sin(angle) * radius3));
if (destinationX < _local2._x) {
carX = _local2._x - destinationX;
} else {
carX = destinationX - _local2._x;
}
moveSpeecarX = carX / 20;
if (destinationX < _local2._x) {
_local1.maxSpeedMaxX = moveSpeecarX * -1;
} else {
_local1.maxSpeedMaxX = moveSpeecarX;
}
destinationY = Math.round(_local1.main.maxControl._y + (Math.cos(angle) * radius3));
if (destinationY < _local2._y) {
carY = _local2._y - destinationY;
} else {
carY = destinationY - _local2._y;
}
moveSpeecarY = carY / 20;
if (destinationY < _local2._y) {
_local1.maxSpeedMaxY = moveSpeecarY * -1;
} else {
_local1.maxSpeedMaxY = moveSpeecarY;
}
if ((_local1.main.parked.wallMax.hitTest(_local1.main.maxWalk._x + _local1.maxSpeedMaxX, _local1.main.maxWalk._y + _local1.maxSpeedMaxY, true) == true) or (_local1.main.car1Anim.hitTest(_local1.main.maxWalk._x + _local1.maxSpeedMaxX, _local1.main.maxWalk._y + _local1.maxSpeedMaxY, true) == true)) {
_local1.maxMustStop = true;
if (_local1.collisionMax == false) {
_local1.isRunning = false;
_local1.maxDisplacement = false;
_local1.maxMustStop = true;
_local1.collisionMax = true;
}
} else {
_local1.collisionMax = false;
}
if (((_local1.maxDisplacement == true) and (_local1.maxMustStop == false)) and (_local1.main.maxWalk._visible == true)) {
if (_local1.maxStart == true) {
_local1.main.maxWalk.gotoAndPlay("Run");
_local1.maxStart = false;
}
destinationX = Math.round(_local1.main.maxControl._x + (Math.sin(angle) * radius3));
if (destinationX < _local2._x) {
carX = _local2._x - destinationX;
} else {
carX = destinationX - _local2._x;
}
_local1.maxSpeedMaxX = (moveSpeecarX = carX / 20);
if (destinationX < _local2._x) {
_local2._x = _local2._x - moveSpeecarX;
} else {
_local2._x = _local2._x + moveSpeecarX;
}
destinationY = Math.round(_local1.main.maxControl._y + (Math.cos(angle) * radius3));
if (destinationY < _local2._y) {
carY = _local2._y - destinationY;
} else {
carY = destinationY - _local2._y;
}
_local1.maxSpeedMaxY = (moveSpeecarY = carY / 20);
if (destinationY < _local2._y) {
_local2._y = _local2._y - moveSpeecarY;
} else {
_local2._y = _local2._y + moveSpeecarY;
}
_local1.speed = moveSpeecarX + moveSpeecarY;
if (_local1.speed <= 1) {
_local1.displacement = false;
}
x = (_local2._x - _local1.main.maxControl._x) * -1;
y = (_local2._y - _local1.main.maxControl._y) * -1;
angleRot = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
_local2._rotation = angleRot + 180;
} else {
_local2._rotation = angleRot;
}
if ((_local1.main.maxWalk._x == _local1.prevXMax) and (_local1.main.maxWalk._y == _local1.prevYMax)) {
_local1.main.maxWalk.gotoAndPlay("Idle");
_local1.maxStart = true;
}
_local1.prevXMax = _local1.main.maxWalk._x;
_local1.prevYMax = _local1.main.maxWalk._y;
} else {
_local1.main.maxWalk.gotoAndPlay("Idle");
_local1.maxStart = true;
}
if (_local1.main.parked.wallMax.hitTest(_local1._xmouse, _local1._ymouse, true) == false) {
_local1.maxMustStop = false;
}
if ((((_local1.main.hitEnter.hitTest(_local1.main.maxWalk._x, _local1.main.maxWalk._y, true) == true) and (_local1.main.activeKey._visible == false)) and (_local1.main.maxWalk._visible == true)) and (_local1.main.car1Anim._currentframe == 19)) {
_local1.main.activeKey._visible = true;
_global.control.becomeActive(_local1.main.car1Anim);
} else if (((_local1.main.maxWalk.hitTest(_local1.main.parked.wallMax[carToGoOut]) and (_local1.main.activeKey._visible == true)) and (_local1.keyIsBack == true)) and (_local1.main.maxWalk._visible == true)) {
becomeActiveAgain(_local1.main.parked.wallMax[carToGoOut]);
} else if (((((_local1.main.hitEnter.hitTest(_local1.main.maxWalk._x, _local1.main.maxWalk._y, true) == true) and (_local1.main.activeKey._visible == true)) and (_local1.main.maxWalk._visible == true)) and (_local1.popupOneKeyEnter == false)) and (_local1.main.car1Anim._currentframe == 19)) {
errorSound.attachSound("error");
errorSound.start();
_local1.main.maxWalk._visible = false;
_local1.main.instruction.gotoAndStop("oneKey");
_local1.popupOneKeyEnter = true;
} else if ((((_local1.main.hitEnter.hitTest(_local1.main.maxWalk._x, _local1.main.maxWalk._y, true) == false) and (_local1.main.activeKey._visible == true)) and (_local1.main.maxWalk._visible == true)) and (_local1.popupOneKeyEnter == true)) {
_local1.popupOneKeyEnter = false;
}
if (((((_local1.main.hitHouse.hitTest(_local1.main.maxWalk._x, _local1.main.maxWalk._y, true) == true) and (_local1.main.activeKey._visible == false)) and (_local1.main.leavingName._currentframe != 21)) and (_local1.main.maxWalk._visible == true)) and (_local1.currentCusNameExit != "")) {
_local1.main.keyPanel._visible = true;
takeOffKey();
} else if ((((_local1.main.hitHouse.hitTest(_local1.main.maxWalk._x, _local1.main.maxWalk._y, true) == true) and (_local1.main.activeKey._visible == true)) and (_local1.main.servingName._currentframe != 21)) and (_local1.main.maxWalk._visible == true)) {
_local1.main.keyPanel._visible = true;
placeKey();
}
if (((_local1.main.maxWalk.hitTest(_local1.main.parked.wallMax[carToGoOut]) == true) and (_local1.main.activeKey._visible == false)) and (_local1.popupNoKey == false)) {
errorSound.attachSound("error");
errorSound.start();
_local1.main.maxWalk._visible = false;
_local1.main.instruction.gotoAndStop("noKey");
_local1.popupNoKey = true;
} else if (((_local1.main.maxWalk.hitTest(_local1.main.parked.wallMax[carToGoOut]) == false) and (_local1.main.activeKey._visible == false)) and (_local1.popupNoKey == true)) {
_local1.popupNoKey = false;
}
if (((_local1.main.maxWalk.hitTest(_local1.main.parked.wallMax[carToGoOut]) and (_local1.main.activeKey._visible == true)) and (_local1.keyIsBack == false)) and (_local1.popupOneKey == false)) {
errorSound.attachSound("error");
errorSound.start();
_local1.main.maxWalk._visible = false;
_local1.main.instruction.gotoAndStop("oneKey");
_local1.popupOneKey = true;
} else if ((((_local1.main.maxWalk.hitTest(_local1.main.parked.wallMax[carToGoOut]) == false) and (_local1.main.activeKey._visible == true)) and (_local1.keyIsBack == false)) and (_local1.popupOneKey == true)) {
_local1.popupOneKey = false;
}
if ((compareX == Math.round(_local2._x)) && (compareY == Math.round(_local2._y))) {
}
};
}
function moveControlMax(mcRef) {
var _local1 = _root;
var _local2 = this;
var _local3 = mcRef;
_local3.onMouseDown = function () {
_root.maxStart = true;
_root.maxMustStop = false;
this.onPress = dragLine3;
};
_local3.onRelease = (_local3.onReleaseOutside = function () {
var _local1 = _root;
var _local2 = this;
_local1.maxMustStop = false;
carToGoOut = _local1.currentCarExit;
_local1.maxDisplacement = false;
_local1.maxStat = "";
if (((_local1.main.maxWalk.hitTest(_local1.main.hitHouse) == true) and (_local1.main.activeKey._visible == false)) and (_local1.main.leavingName._currentframe == 21)) {
currentRot = _local1.main.maxWalk._rotation;
if (currentRot < 0) {
currentRot = currentRot * -1;
currentTemp = 180 - currentRot;
currentRot = 180 + currentTemp;
}
if ((currentRot >= 220) and (currentRot <= 350)) {
_local1.main.maxControl._x = (_local1.main.maxWalk._x = _local1.main.maxCome2._x);
_local1.main.maxControl._y = (_local1.main.maxWalk._y = _local1.main.maxCome2._y);
} else {
_local1.main.maxControl._x = (_local1.main.maxWalk._x = _local1.main.maxCome1._x);
_local1.main.maxControl._y = (_local1.main.maxWalk._y = _local1.main.maxCome1._y);
}
}
delete _local2.onMouseMove;
_local2._x = _local1.main.maxWalk._x;
_local2._y = _local1.main.maxWalk._y;
_local2.onRelease = _local2.stopDrag();
});
dragLine3 = function () {
_root.maxStat = "moving";
this.startDrag();
this.onMouseMove = function () {
reposition3(_root.main.maxWalk);
};
};
reposition3 = function (object) {
var _local1 = _root;
_local1.maxDisplacement = true;
posX = _local1.main.maxControl._x;
posY = _local1.main.maxControl._y;
this.moveTo(posX, posY);
compareX = _local1.main.maxWalk._x;
compareY = _local1.main.maxWalk._y;
angle = Math.atan2(_local1.bazoo._x - _local1.moveControl._x, _local1.bazoo._y - _local1.moveControl._y);
};
radius3 = 50;
}
function startOver() {
var _local1 = _root;
i = 1;
while (i <= 20) {
if (i < 10) {
carDel = "0" + i;
} else {
carDel = i;
}
carToDelete = "car" + carDel;
_local1.main[carToDelete].removeMovieClip();
i++;
}
_local1.main.keyPanel.cleTarzan._visible = false;
_local1.main.keyPanel.cleAladdin._visible = false;
_local1.main.keyPanel.clePanic._visible = false;
_local1.main.keyPanel.cleBaloo._visible = false;
_local1.main.keyPanel.clePain._visible = false;
_local1.main.keyPanel.cleAlice._visible = false;
_local1.main.keyPanel.cleCruella._visible = false;
_local1.main.keyPanel.cleCinderella._visible = false;
_local1.main.keyPanel.cleMowgli._visible = false;
_local1.main.keyPanel.cleLilo._visible = false;
_local1.main.keyPanel.cleStitch._visible = false;
_local1.main.keyPanel.cleGenie._visible = false;
_local1.main.keyPanel.cleHercules._visible = false;
_local1.main.keyPanel.cleHades._visible = false;
_local1.main.keyPanel.cleMulan._visible = false;
_local1.main.keyPanel.cleTimon._visible = false;
_local1.main.keyPanel.clePumbaa._visible = false;
_local1.main.keyPanel.cleWinnie._visible = false;
_local1.main.keyPanel.cleTigrou._visible = false;
_local1.main.keyPanel.clePinocchio._visible = false;
_local1.score = 0;
_local1.parkedCar = 0;
_local1.carBeforeLeaving = 5;
_local1.maxCar = 10;
_local1.minute = 5;
_local1.myTimer = "";
_local1.seconde = 0;
_local1.timeStart = "5 : 00";
_local1.noCar = 0;
_local1.profondeur = 5;
_local1.beforeNextCar = 0;
_local1.timeBetween = 5;
_local1.timeBeforeOut = 10;
_local1.noPersonnage = 0;
_local1.listPerso = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20);
_local1.listCarToLeave = new Array();
_local1.listCarToLeaveOwner = new Array();
_local1.nbrRedCar = 0;
_local1.nbrBlueCar = 0;
_local1.nbrGreenCar = 0;
_local1.noCarToLeave = 0;
_local1.maxStart = false;
_local1.firstCarExit = true;
clearInterval(_local1.blink);
carToGoOut = 0;
_local1.currentCarExit = "";
}
function gotoLevel2() {
var _local1 = _root;
clearInterval(_local1.myTimer);
clearInterval(_local1.blink);
carToGoOut = 0;
_local1.parkedCar = 0;
_local1.carBeforeLeaving = 10;
_local1.maxCar = 15;
_local1.minute = 5;
_local1.myTimer = "";
_local1.seconde = 0;
_local1.timeStart = "5 : 00";
_local1.noCar = 0;
_local1.profondeur = 5;
_local1.beforeNextCar = 0;
_local1.timeBetween = 5;
_local1.timeBeforeOut = 10;
_local1.noPersonnage = 0;
_local1.listPerso = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20);
_local1.listCarToLeave = new Array();
_local1.listCarToLeaveOwner = new Array();
_local1.nbrRedCar = 0;
_local1.nbrBlueCar = 0;
_local1.nbrGreenCar = 0;
_local1.noCarToLeave = 0;
_local1.maxStart = false;
_local1.firstCarExit = true;
_local1.currentCarExit = "";
}
function gotoLevel3() {
var _local1 = _root;
clearInterval(_local1.myTimer);
clearInterval(_local1.blink);
carToGoOut = 0;
_local1.parkedCar = 0;
_local1.carBeforeLeaving = 12;
_local1.maxCar = 20;
_local1.minute = 6;
_local1.myTimer = "";
_local1.seconde = 0;
_local1.timeStart = "6 : 00";
_local1.noCar = 0;
_local1.profondeur = 5;
_local1.beforeNextCar = 0;
_local1.timeBetween = 5;
_local1.timeBeforeOut = 10;
_local1.noPersonnage = 0;
_local1.listPerso = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20);
_local1.listCarToLeave = new Array();
_local1.listCarToLeaveOwner = new Array();
_local1.nbrRedCar = 0;
_local1.nbrBlueCar = 0;
_local1.nbrGreenCar = 0;
_local1.noCarToLeave = 0;
_local1.maxStart = false;
_local1.firstCarExit = true;
_local1.currentCarExit = "";
}
_global.control = this;
dropSound = new Sound(this);
keySound = new Sound(this);
crashSound = new Sound(this);
doorSound = new Sound(this);
bellSound = new Sound(this);
klaxonSound = new Sound(this);
klaxonBigSound = new Sound(this);
klaxonSmallSound = new Sound(this);
motorSmallSound = new Sound(this);
motorMediumSound = new Sound(this);
motorBigSound = new Sound(this);
errorSound = new Sound(this);
tireSound = new Sound(this);
}
Symbol 9 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 2
stop();
Symbol 21 MovieClip Frame 110
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 2
stop();
Symbol 27 MovieClip Frame 3
stop();
Symbol 27 MovieClip Frame 4
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 2
stop();
Symbol 29 MovieClip Frame 3
stop();
Symbol 29 MovieClip Frame 4
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 2
stop();
Symbol 31 MovieClip Frame 3
stop();
Symbol 31 MovieClip Frame 4
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 2
stop();
Symbol 48 MovieClip Frame 3
stop();
Symbol 48 MovieClip Frame 4
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 2
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
stop();
Symbol 52 MovieClip Frame 3
stop();
Symbol 52 MovieClip Frame 4
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 3
stop();
Symbol 56 MovieClip Frame 4
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
stop();
Symbol 71 MovieClip Frame 3
stop();
Symbol 71 MovieClip Frame 4
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
stop();
Symbol 75 MovieClip Frame 3
stop();
Symbol 75 MovieClip Frame 4
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 3
stop();
Symbol 79 MovieClip Frame 4
stop();
Symbol 80 MovieClip [carToPark] Frame 1
stop();
Symbol 80 MovieClip [carToPark] Frame 2
stop();
Symbol 80 MovieClip [carToPark] Frame 3
stop();
Symbol 80 MovieClip [carToPark] Frame 4
stop();
Symbol 80 MovieClip [carToPark] Frame 5
stop();
Symbol 80 MovieClip [carToPark] Frame 6
stop();
Symbol 80 MovieClip [carToPark] Frame 7
stop();
Symbol 80 MovieClip [carToPark] Frame 8
stop();
Symbol 80 MovieClip [carToPark] Frame 9
stop();
Symbol 81 MovieClip [carExit] Frame 30
stop();
removeMovieClip(this);
Symbol 87 MovieClip Frame 1
stop();
Instance of Symbol 84 MovieClip "backLight" in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 86 MovieClip "hitCar1" in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
onClipEvent (enterFrame) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
Instance of Symbol 86 MovieClip "hitCar2" in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
localToGlobal(_root.pointFrontRight);
}
onClipEvent (enterFrame) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
localToGlobal(_root.pointFrontRight);
}
Instance of Symbol 86 MovieClip "hitCar5" in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
onClipEvent (enterFrame) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
Instance of Symbol 86 MovieClip "hitCar3" in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
localToGlobal(_root.pointBackRight);
}
onClipEvent (enterFrame) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
localToGlobal(_root.pointBackRight);
}
Instance of Symbol 86 MovieClip "hitCar4" in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
localToGlobal(_root.pointBackLeft);
}
onClipEvent (enterFrame) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
localToGlobal(_root.pointBackLeft);
}
Instance of Symbol 86 MovieClip "hitCar6" in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
onClipEvent (enterFrame) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
Instance of Symbol 86 MovieClip "hitCar7" in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
onClipEvent (enterFrame) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
Instance of Symbol 86 MovieClip "hitCar8" in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
onClipEvent (enterFrame) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
Symbol 87 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 3
stop();
Symbol 87 MovieClip Frame 4
stop();
Symbol 92 MovieClip Frame 1
stop();
Instance of Symbol 84 MovieClip "backLight" in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 86 MovieClip "hitCar1" in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
onClipEvent (enterFrame) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
Instance of Symbol 86 MovieClip "hitCar2" in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
localToGlobal(_root.pointFrontRight);
}
onClipEvent (enterFrame) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
localToGlobal(_root.pointFrontRight);
}
Instance of Symbol 86 MovieClip "hitCar5" in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
onClipEvent (enterFrame) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
Instance of Symbol 86 MovieClip "hitCar3" in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
localToGlobal(_root.pointBackRight);
}
onClipEvent (enterFrame) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
localToGlobal(_root.pointBackRight);
}
Instance of Symbol 86 MovieClip "hitCar4" in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
localToGlobal(_root.pointBackLeft);
}
onClipEvent (enterFrame) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
localToGlobal(_root.pointBackLeft);
}
Instance of Symbol 86 MovieClip "hitCar6" in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
onClipEvent (enterFrame) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
Instance of Symbol 86 MovieClip "hitCar7" in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
onClipEvent (enterFrame) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
Instance of Symbol 86 MovieClip "hitCar8" in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
onClipEvent (enterFrame) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
Symbol 92 MovieClip Frame 2
stop();
Symbol 92 MovieClip Frame 3
stop();
Symbol 92 MovieClip Frame 4
stop();
Symbol 94 MovieClip Frame 1
stop();
Instance of Symbol 84 MovieClip "backLight" in Symbol 94 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 86 MovieClip "hitCar1" in Symbol 94 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
onClipEvent (enterFrame) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
Instance of Symbol 86 MovieClip "hitCar2" in Symbol 94 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
localToGlobal(_root.pointFrontRight);
}
onClipEvent (enterFrame) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
localToGlobal(_root.pointFrontRight);
}
Instance of Symbol 86 MovieClip "hitCar5" in Symbol 94 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
onClipEvent (enterFrame) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
Instance of Symbol 86 MovieClip "hitCar3" in Symbol 94 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
localToGlobal(_root.pointBackRight);
}
onClipEvent (enterFrame) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
localToGlobal(_root.pointBackRight);
}
Instance of Symbol 86 MovieClip "hitCar4" in Symbol 94 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
localToGlobal(_root.pointBackLeft);
}
onClipEvent (enterFrame) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
localToGlobal(_root.pointBackLeft);
}
Instance of Symbol 86 MovieClip "hitCar6" in Symbol 94 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
onClipEvent (enterFrame) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
Instance of Symbol 86 MovieClip "hitCar7" in Symbol 94 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
onClipEvent (enterFrame) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
Instance of Symbol 86 MovieClip "hitCar8" in Symbol 94 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
onClipEvent (enterFrame) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
Symbol 94 MovieClip Frame 2
stop();
Symbol 94 MovieClip Frame 3
stop();
Symbol 94 MovieClip Frame 4
stop();
Symbol 100 MovieClip Frame 1
stop();
Instance of Symbol 97 MovieClip "backLight" in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 86 MovieClip "hitCar1" in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
onClipEvent (enterFrame) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
Instance of Symbol 86 MovieClip "hitCar2" in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
this.localToGlobal(_root.pointFrontRight);
}
onClipEvent (enterFrame) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
this.localToGlobal(_root.pointFrontRight);
}
Instance of Symbol 86 MovieClip "hitCar4" in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
this.localToGlobal(_root.pointBackLeft);
}
onClipEvent (enterFrame) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
this.localToGlobal(_root.pointBackLeft);
}
Instance of Symbol 86 MovieClip "hitCar3" in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
this.localToGlobal(_root.pointBackRight);
}
onClipEvent (enterFrame) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
this.localToGlobal(_root.pointBackRight);
}
Instance of Symbol 86 MovieClip "hitCar5" in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
onClipEvent (enterFrame) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
Instance of Symbol 86 MovieClip "hitCar6" in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
onClipEvent (enterFrame) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
Instance of Symbol 86 MovieClip "hitCar7" in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
onClipEvent (enterFrame) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
Instance of Symbol 86 MovieClip "hitCar8" in Symbol 100 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
onClipEvent (enterFrame) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
Symbol 100 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 3
stop();
Symbol 100 MovieClip Frame 4
stop();
Symbol 101 MovieClip Frame 1
stop();
Instance of Symbol 97 MovieClip "backLight" in Symbol 101 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 86 MovieClip "hitCar1" in Symbol 101 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
onClipEvent (enterFrame) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
Instance of Symbol 86 MovieClip "hitCar2" in Symbol 101 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
this.localToGlobal(_root.pointFrontRight);
}
onClipEvent (enterFrame) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
this.localToGlobal(_root.pointFrontRight);
}
Instance of Symbol 86 MovieClip "hitCar4" in Symbol 101 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
this.localToGlobal(_root.pointBackLeft);
}
onClipEvent (enterFrame) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
this.localToGlobal(_root.pointBackLeft);
}
Instance of Symbol 86 MovieClip "hitCar3" in Symbol 101 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
this.localToGlobal(_root.pointBackRight);
}
onClipEvent (enterFrame) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
this.localToGlobal(_root.pointBackRight);
}
Instance of Symbol 86 MovieClip "hitCar5" in Symbol 101 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
onClipEvent (enterFrame) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
Instance of Symbol 86 MovieClip "hitCar6" in Symbol 101 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
onClipEvent (enterFrame) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
Instance of Symbol 86 MovieClip "hitCar7" in Symbol 101 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
onClipEvent (enterFrame) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
Instance of Symbol 86 MovieClip "hitCar8" in Symbol 101 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
onClipEvent (enterFrame) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
Symbol 101 MovieClip Frame 2
stop();
Symbol 101 MovieClip Frame 3
stop();
Symbol 101 MovieClip Frame 4
stop();
Symbol 102 MovieClip Frame 1
stop();
Instance of Symbol 97 MovieClip "backLight" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 86 MovieClip "hitCar1" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
onClipEvent (enterFrame) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
Instance of Symbol 86 MovieClip "hitCar2" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
this.localToGlobal(_root.pointFrontRight);
}
onClipEvent (enterFrame) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
this.localToGlobal(_root.pointFrontRight);
}
Instance of Symbol 86 MovieClip "hitCar4" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
this.localToGlobal(_root.pointBackLeft);
}
onClipEvent (enterFrame) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
this.localToGlobal(_root.pointBackLeft);
}
Instance of Symbol 86 MovieClip "hitCar3" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
this.localToGlobal(_root.pointBackRight);
}
onClipEvent (enterFrame) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
this.localToGlobal(_root.pointBackRight);
}
Instance of Symbol 86 MovieClip "hitCar5" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
onClipEvent (enterFrame) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
Instance of Symbol 86 MovieClip "hitCar6" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
onClipEvent (enterFrame) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
Instance of Symbol 86 MovieClip "hitCar7" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
onClipEvent (enterFrame) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
Instance of Symbol 86 MovieClip "hitCar8" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
onClipEvent (enterFrame) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
Symbol 102 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 3
stop();
Symbol 102 MovieClip Frame 4
stop();
Symbol 108 MovieClip Frame 1
stop();
Instance of Symbol 106 MovieClip "backLight" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 86 MovieClip "hitCar1" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
onClipEvent (enterFrame) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
Instance of Symbol 86 MovieClip "hitCar2" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
this.localToGlobal(_root.pointFrontRight);
}
onClipEvent (enterFrame) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
this.localToGlobal(_root.pointFrontRight);
}
Instance of Symbol 86 MovieClip "hitCar4" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
this.localToGlobal(_root.pointBackLeft);
}
onClipEvent (enterFrame) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
this.localToGlobal(_root.pointBackLeft);
}
Instance of Symbol 86 MovieClip "hitCar3" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
this.localToGlobal(_root.pointBackRight);
}
onClipEvent (enterFrame) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
this.localToGlobal(_root.pointBackRight);
}
Instance of Symbol 86 MovieClip "hitCar5" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
onClipEvent (enterFrame) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
Instance of Symbol 86 MovieClip "hitCar6" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
onClipEvent (enterFrame) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
Instance of Symbol 86 MovieClip "hitCar7" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
onClipEvent (enterFrame) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
Instance of Symbol 86 MovieClip "hitCar8" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
onClipEvent (enterFrame) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
Symbol 108 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 3
stop();
Symbol 108 MovieClip Frame 4
stop();
Symbol 109 MovieClip Frame 1
stop();
Instance of Symbol 106 MovieClip "backLight" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 86 MovieClip "hitCar1" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
onClipEvent (enterFrame) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
Instance of Symbol 86 MovieClip "hitCar2" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
this.localToGlobal(_root.pointFrontRight);
}
onClipEvent (enterFrame) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
this.localToGlobal(_root.pointFrontRight);
}
Instance of Symbol 86 MovieClip "hitCar4" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
this.localToGlobal(_root.pointBackLeft);
}
onClipEvent (enterFrame) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
this.localToGlobal(_root.pointBackLeft);
}
Instance of Symbol 86 MovieClip "hitCar3" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
this.localToGlobal(_root.pointBackRight);
}
onClipEvent (enterFrame) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
this.localToGlobal(_root.pointBackRight);
}
Instance of Symbol 86 MovieClip "hitCar5" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
onClipEvent (enterFrame) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
Instance of Symbol 86 MovieClip "hitCar6" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
onClipEvent (enterFrame) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
Instance of Symbol 86 MovieClip "hitCar7" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
onClipEvent (enterFrame) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
Instance of Symbol 86 MovieClip "hitCar8" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
onClipEvent (enterFrame) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
Symbol 109 MovieClip Frame 2
stop();
Symbol 109 MovieClip Frame 3
stop();
Symbol 109 MovieClip Frame 4
stop();
Symbol 110 MovieClip Frame 1
stop();
Instance of Symbol 106 MovieClip "backLight" in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 86 MovieClip "hitCar1" in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
onClipEvent (enterFrame) {
_root.pointFrontLeft = new Object();
_root.pointFrontLeft.x = 0;
_root.pointFrontLeft.y = 0;
this.localToGlobal(_root.pointFrontLeft);
}
Instance of Symbol 86 MovieClip "hitCar2" in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
this.localToGlobal(_root.pointFrontRight);
}
onClipEvent (enterFrame) {
_root.pointFrontRight = new Object();
_root.pointFrontRight.x = 0;
_root.pointFrontRight.y = 0;
this.localToGlobal(_root.pointFrontRight);
}
Instance of Symbol 86 MovieClip "hitCar4" in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
this.localToGlobal(_root.pointBackLeft);
}
onClipEvent (enterFrame) {
_root.pointBackLeft = new Object();
_root.pointBackLeft.x = 0;
_root.pointBackLeft.y = 0;
this.localToGlobal(_root.pointBackLeft);
}
Instance of Symbol 86 MovieClip "hitCar3" in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
this.localToGlobal(_root.pointBackRight);
}
onClipEvent (enterFrame) {
_root.pointBackRight = new Object();
_root.pointBackRight.x = 0;
_root.pointBackRight.y = 0;
this.localToGlobal(_root.pointBackRight);
}
Instance of Symbol 86 MovieClip "hitCar5" in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
onClipEvent (enterFrame) {
_root.pointMiddleLeft = new Object();
_root.pointMiddleLeft.x = 0;
_root.pointMiddleLeft.y = 0;
localToGlobal(_root.pointMiddleLeft);
}
Instance of Symbol 86 MovieClip "hitCar6" in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
onClipEvent (enterFrame) {
_root.pointMiddleRight = new Object();
_root.pointMiddleRight.x = 0;
_root.pointMiddleRight.y = 0;
localToGlobal(_root.pointMiddleRight);
}
Instance of Symbol 86 MovieClip "hitCar7" in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
onClipEvent (enterFrame) {
_root.pointFrontUp = new Object();
_root.pointFrontUp.x = 0;
_root.pointFrontUp.y = 0;
this.localToGlobal(_root.pointFrontUp);
}
Instance of Symbol 86 MovieClip "hitCar8" in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
onClipEvent (enterFrame) {
_root.pointBackUp = new Object();
_root.pointBackUp.x = 0;
_root.pointBackUp.y = 0;
this.localToGlobal(_root.pointBackUp);
}
Symbol 110 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 3
stop();
Symbol 110 MovieClip Frame 4
stop();
Symbol 111 MovieClip [carList] Frame 1
stop();
Instance of Symbol 87 MovieClip "bazoo" in Symbol 111 MovieClip [carList] Frame 1
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Instance of Symbol 89 MovieClip "returnFront" in Symbol 111 MovieClip [carList] Frame 1
onClipEvent (load) {
_root.pointFront = new Object();
_root.pointFront.x = 0;
_root.pointFront.y = 0;
localToGlobal(_root.pointFront);
_root.main.moveControl._x = _root.pointFront.x + 2;
_root.main.moveControl._y = _root.pointFront.y + 8;
}
onClipEvent (enterFrame) {
_root.pointFront = new Object();
_root.pointFront.x = 0;
_root.pointFront.y = 0;
localToGlobal(_root.pointFront);
}
Instance of Symbol 89 MovieClip "returnBack" in Symbol 111 MovieClip [carList] Frame 1
onClipEvent (load) {
_root.pointBack = new Object();
_root.pointBack.x = 0;
_root.pointBack.y = 0;
localToGlobal(_root.pointBack);
_root.main.moveControl2._x = _root.pointBack.x + 2;
_root.main.moveControl2._y = _root.pointBack.y + 8;
}
onClipEvent (enterFrame) {
_root.pointBack = new Object();
_root.pointBack.x = 0;
_root.pointBack.y = 0;
localToGlobal(_root.pointBack);
}
Symbol 111 MovieClip [carList] Frame 2
stop();
Instance of Symbol 92 MovieClip "bazoo" in Symbol 111 MovieClip [carList] Frame 2
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 111 MovieClip [carList] Frame 3
stop();
Instance of Symbol 94 MovieClip "bazoo" in Symbol 111 MovieClip [carList] Frame 3
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 111 MovieClip [carList] Frame 4
stop();
Instance of Symbol 100 MovieClip "bazoo" in Symbol 111 MovieClip [carList] Frame 4
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Instance of Symbol 89 MovieClip "returnFront" in Symbol 111 MovieClip [carList] Frame 4
onClipEvent (load) {
_root.pointFront = new Object();
_root.pointFront.x = 0;
_root.pointFront.y = 0;
localToGlobal(_root.pointFront);
_root.main.moveControl._x = _root.pointFront.x + 2;
_root.main.moveControl._y = _root.pointFront.y + 8;
}
onClipEvent (enterFrame) {
_root.pointFront = new Object();
_root.pointFront.x = 0;
_root.pointFront.y = 0;
localToGlobal(_root.pointFront);
}
Symbol 111 MovieClip [carList] Frame 5
stop();
Instance of Symbol 101 MovieClip "bazoo" in Symbol 111 MovieClip [carList] Frame 5
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 111 MovieClip [carList] Frame 6
stop();
Instance of Symbol 102 MovieClip "bazoo" in Symbol 111 MovieClip [carList] Frame 6
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 111 MovieClip [carList] Frame 7
stop();
Instance of Symbol 108 MovieClip "bazoo" in Symbol 111 MovieClip [carList] Frame 7
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Instance of Symbol 89 MovieClip "returnFront" in Symbol 111 MovieClip [carList] Frame 7
onClipEvent (load) {
_root.pointFront = new Object();
_root.pointFront.x = 0;
_root.pointFront.y = 0;
localToGlobal(_root.pointFront);
_root.main.moveControl._x = _root.pointFront.x + 2;
_root.main.moveControl._y = _root.pointFront.y + 8;
}
onClipEvent (enterFrame) {
_root.pointFront = new Object();
_root.pointFront.x = 0;
_root.pointFront.y = 0;
localToGlobal(_root.pointFront);
}
Symbol 111 MovieClip [carList] Frame 8
stop();
Instance of Symbol 109 MovieClip "bazoo" in Symbol 111 MovieClip [carList] Frame 8
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 111 MovieClip [carList] Frame 9
stop();
Instance of Symbol 110 MovieClip "bazoo" in Symbol 111 MovieClip [carList] Frame 9
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 114 MovieClip [carExit2] Frame 15
stop();
removeMovieClip(this);
Symbol 122 MovieClip [carToPark2] Frame 1
stop();
Instance of Symbol 9 MovieClip "bazoo" in Symbol 122 MovieClip [carToPark2] Frame 1
on (press) {
trace(this);
}
Symbol 122 MovieClip [carToPark2] Frame 2
stop();
Instance of Symbol 118 MovieClip "bazoo" in Symbol 122 MovieClip [carToPark2] Frame 2
on (press) {
trace(this);
}
Symbol 122 MovieClip [carToPark2] Frame 3
stop();
Instance of Symbol 121 MovieClip "bazoo" in Symbol 122 MovieClip [carToPark2] Frame 3
on (press) {
trace(this);
}
Symbol 122 MovieClip [carToPark2] Frame 4
stop();
Symbol 122 MovieClip [carToPark2] Frame 5
stop();
Symbol 122 MovieClip [carToPark2] Frame 6
stop();
Symbol 122 MovieClip [carToPark2] Frame 7
stop();
Symbol 122 MovieClip [carToPark2] Frame 8
stop();
Symbol 122 MovieClip [carToPark2] Frame 9
stop();
Symbol 123 MovieClip [carListExit] Frame 1
stop();
Instance of Symbol 9 MovieClip "bazoo" in Symbol 123 MovieClip [carListExit] Frame 1
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvanceExit(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewindExit(this);
}
}
Symbol 123 MovieClip [carListExit] Frame 2
stop();
Instance of Symbol 118 MovieClip "bazoo" in Symbol 123 MovieClip [carListExit] Frame 2
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvanceExit(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewindExit(this);
}
}
Symbol 123 MovieClip [carListExit] Frame 3
stop();
Instance of Symbol 121 MovieClip "bazoo" in Symbol 123 MovieClip [carListExit] Frame 3
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvanceExit(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewindExit(this);
}
}
Symbol 123 MovieClip [carListExit] Frame 4
stop();
Instance of Symbol 39 MovieClip "bazoo" in Symbol 123 MovieClip [carListExit] Frame 4
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvanceExit(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewindExit(this);
}
}
Symbol 123 MovieClip [carListExit] Frame 5
stop();
Instance of Symbol 55 MovieClip "bazoo" in Symbol 123 MovieClip [carListExit] Frame 5
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvanceExit(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewindExit(this);
}
}
Symbol 123 MovieClip [carListExit] Frame 6
stop();
Instance of Symbol 51 MovieClip "bazoo" in Symbol 123 MovieClip [carListExit] Frame 6
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvanceExit(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewindExit(this);
}
}
Symbol 123 MovieClip [carListExit] Frame 7
stop();
Instance of Symbol 64 MovieClip "bazoo" in Symbol 123 MovieClip [carListExit] Frame 7
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvanceExit(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewindExit(this);
}
}
Symbol 123 MovieClip [carListExit] Frame 8
stop();
Instance of Symbol 110 MovieClip "bazoo" in Symbol 123 MovieClip [carListExit] Frame 8
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvanceExit(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewindExit(this);
}
}
Symbol 123 MovieClip [carListExit] Frame 9
stop();
Instance of Symbol 109 MovieClip "bazoo" in Symbol 123 MovieClip [carListExit] Frame 9
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvanceExit(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewindExit(this);
}
}
Symbol 124 MovieClip [carList2] Frame 1
stop();
Instance of Symbol 9 MovieClip "bazoo" in Symbol 124 MovieClip [carList2] Frame 1
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 124 MovieClip [carList2] Frame 2
stop();
Instance of Symbol 118 MovieClip "bazoo" in Symbol 124 MovieClip [carList2] Frame 2
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 124 MovieClip [carList2] Frame 3
stop();
Instance of Symbol 121 MovieClip "bazoo" in Symbol 124 MovieClip [carList2] Frame 3
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 124 MovieClip [carList2] Frame 4
stop();
Instance of Symbol 39 MovieClip "bazoo" in Symbol 124 MovieClip [carList2] Frame 4
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 124 MovieClip [carList2] Frame 5
stop();
Instance of Symbol 55 MovieClip "bazoo" in Symbol 124 MovieClip [carList2] Frame 5
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 124 MovieClip [carList2] Frame 6
stop();
Instance of Symbol 51 MovieClip "bazoo" in Symbol 124 MovieClip [carList2] Frame 6
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 124 MovieClip [carList2] Frame 7
stop();
Instance of Symbol 64 MovieClip "bazoo" in Symbol 124 MovieClip [carList2] Frame 7
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 124 MovieClip [carList2] Frame 8
stop();
Instance of Symbol 110 MovieClip "bazoo" in Symbol 124 MovieClip [carList2] Frame 8
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Symbol 124 MovieClip [carList2] Frame 9
stop();
Instance of Symbol 109 MovieClip "bazoo" in Symbol 124 MovieClip [carList2] Frame 9
onClipEvent (enterFrame) {
if (_root.clutch == "drive") {
_global.control.carAdvance(this);
} else if (_root.clutch == "rewind") {
_global.control.carRewind(this);
}
}
Instance of Symbol 156 MovieClip "percent" in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
vPercent = 0;
}
onClipEvent (enterFrame) {
vPercent = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
tPercent = vPercent add "%";
if (vPercent == 100) {
_root.gotoAndPlay(3);
} else {
_root.gotoAndPlay(1);
}
}
Instance of Symbol 207 MovieClip "color1" in Symbol 209 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveLight(this);
}
Instance of Symbol 211 MovieClip "color1" in Symbol 215 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveLight(this);
}
Instance of Symbol 214 MovieClip "drag" in Symbol 215 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveLight(this);
}
Instance of Symbol 217 MovieClip "color1" in Symbol 221 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveLight(this);
}
Instance of Symbol 220 MovieClip "drag" in Symbol 221 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveLight(this);
}
Instance of Symbol 224 MovieClip "drag" in Symbol 225 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveLight(this);
}
Instance of Symbol 227 MovieClip "color1" in Symbol 229 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveLight(this);
}
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 2
stop();
Symbol 230 MovieClip Frame 3
stop();
Symbol 230 MovieClip Frame 4
stop();
Symbol 230 MovieClip Frame 5
stop();
Symbol 230 MovieClip Frame 6
stop();
Symbol 230 MovieClip Frame 7
stop();
Symbol 270 Button
on (press) {
gotoAndPlay ("Play");
}
Symbol 280 Button
on (press) {
gotoAndPlay ("instructions1");
}
Symbol 300 Button
on (release) {
gotoAndPlay ("instructions2");
}
Symbol 310 Button
on (release) {
gotoAndPlay ("instructions3");
}
Symbol 313 Button
on (release) {
gotoAndPlay ("instructions1");
}
Symbol 329 Button
on (release) {
gotoAndPlay ("instructions2");
}
Symbol 332 Button
on (release) {
gotoAndPlay ("Play");
}
Symbol 343 MovieClip Frame 19
stop();
Symbol 407 MovieClip Frame 1
_root.currentCusNameExit = "Aladdin";
stop();
Symbol 407 MovieClip Frame 2
_root.currentCusNameExit = "Genie";
stop();
Symbol 407 MovieClip Frame 3
_root.currentCusNameExit = "Timon";
stop();
Symbol 407 MovieClip Frame 4
_root.currentCusNameExit = "Pumbaa";
stop();
Symbol 407 MovieClip Frame 5
_root.currentCusNameExit = "Hades";
stop();
Symbol 407 MovieClip Frame 6
_root.currentCusNameExit = "Cruella";
stop();
Symbol 407 MovieClip Frame 7
_root.currentCusNameExit = "Hercules";
stop();
Symbol 407 MovieClip Frame 8
_root.currentCusNameExit = "Cinderella";
stop();
Symbol 407 MovieClip Frame 9
_root.currentCusNameExit = "Pain";
stop();
Symbol 407 MovieClip Frame 10
_root.currentCusNameExit = "Panic";
stop();
Symbol 407 MovieClip Frame 11
_root.currentCusNameExit = "Tarzan";
stop();
Symbol 407 MovieClip Frame 12
_root.currentCusNameExit = "Mulan";
stop();
Symbol 407 MovieClip Frame 13
_root.currentCusNameExit = "Tigrou";
stop();
Symbol 407 MovieClip Frame 14
_root.currentCusNameExit = "Lilo";
stop();
Symbol 407 MovieClip Frame 15
_root.currentCusNameExit = "Stitch";
stop();
Symbol 407 MovieClip Frame 16
_root.currentCusNameExit = "Winnie";
stop();
Symbol 407 MovieClip Frame 17
_root.currentCusNameExit = "Pinocchio";
stop();
Symbol 407 MovieClip Frame 18
_root.currentCusNameExit = "Alice";
stop();
Symbol 407 MovieClip Frame 19
_root.currentCusNameExit = "Mowgli";
stop();
Symbol 407 MovieClip Frame 20
_root.currentCusNameExit = "Baloo";
stop();
Symbol 407 MovieClip Frame 21
_root.currentCusName = "";
stop();
Symbol 408 MovieClip Frame 1
_root.currentCusName = "Aladdin";
stop();
Symbol 408 MovieClip Frame 2
_root.currentCusName = "Genie";
stop();
Symbol 408 MovieClip Frame 3
_root.currentCusName = "Timon";
stop();
Symbol 408 MovieClip Frame 4
_root.currentCusName = "Pumbaa";
stop();
Symbol 408 MovieClip Frame 5
_root.currentCusName = "Hades";
stop();
Symbol 408 MovieClip Frame 6
_root.currentCusName = "Cruella";
stop();
Symbol 408 MovieClip Frame 7
_root.currentCusName = "Hercules";
stop();
Symbol 408 MovieClip Frame 8
_root.currentCusName = "Cinderella";
stop();
Symbol 408 MovieClip Frame 9
_root.currentCusName = "Pain";
stop();
Symbol 408 MovieClip Frame 10
_root.currentCusName = "Panic";
stop();
Symbol 408 MovieClip Frame 11
_root.currentCusName = "Tarzan";
stop();
Symbol 408 MovieClip Frame 12
_root.currentCusName = "Mulan";
stop();
Symbol 408 MovieClip Frame 13
_root.currentCusName = "Tigrou";
stop();
Symbol 408 MovieClip Frame 14
_root.currentCusName = "Lilo";
stop();
Symbol 408 MovieClip Frame 15
_root.currentCusName = "Stitch";
stop();
Symbol 408 MovieClip Frame 16
_root.currentCusName = "Winnie";
stop();
Symbol 408 MovieClip Frame 17
_root.currentCusName = "Pinocchio";
stop();
Symbol 408 MovieClip Frame 18
_root.currentCusName = "Alice";
stop();
Symbol 408 MovieClip Frame 19
_root.currentCusName = "Mowgli";
stop();
Symbol 408 MovieClip Frame 20
_root.currentCusName = "Baloo";
stop();
Symbol 408 MovieClip Frame 21
_root.currentCusName = "";
stop();
Symbol 441 MovieClip Frame 1
stop();
Symbol 441 MovieClip Frame 2
stop();
Symbol 441 MovieClip Frame 3
stop();
Symbol 441 MovieClip Frame 4
stop();
Symbol 441 MovieClip Frame 5
stop();
Symbol 441 MovieClip Frame 6
stop();
Symbol 451 Button
on (release) {
carToMove = _root.currentCar;
_root.main[carToMove]._visible = false;
_global.control.pauseCountDown();
_root.main.instruction.gotoAndPlay("Menu");
}
Symbol 455 Button
on (release) {
_root.musicIsPlaying = false;
_root.mainMusic.stop();
this.gotoAndPlay(2);
}
Symbol 458 Button
on (release) {
_root.musicIsPlaying = true;
_root.mainMusic.start(0, 1000);
this.gotoAndPlay(1);
}
Symbol 459 MovieClip Frame 1
stop();
Symbol 459 MovieClip Frame 2
stop();
Instance of Symbol 472 MovieClip "hitWall" in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 470 MovieClip "wall" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 473 MovieClip "wallMax" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 2
stop();
Symbol 480 MovieClip Frame 3
stop();
Symbol 487 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 2
stop();
Symbol 487 MovieClip Frame 3
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 2
stop();
Symbol 542 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 2
stop();
Symbol 542 MovieClip Frame 3
stop();
Symbol 542 MovieClip Frame 4
stop();
Symbol 542 MovieClip Frame 5
stop();
Symbol 542 MovieClip Frame 6
stop();
Symbol 551 MovieClip Frame 1
stop();
Symbol 551 MovieClip Frame 2
stop();
Symbol 551 MovieClip Frame 3
stop();
Symbol 551 MovieClip Frame 4
stop();
Symbol 551 MovieClip Frame 5
stop();
Symbol 551 MovieClip Frame 6
stop();
Symbol 556 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 2
stop();
Symbol 559 Button
on (release) {
currentRot = _root.main.maxWalk._rotation;
if (currentRot < 0) {
currentRot = currentRot * -1;
currentTemp = 180 - currentRot;
currentRot = 180 + currentTemp;
}
if ((currentRot >= 220) and (currentRot <= 350)) {
_root.main.maxControl._x = (_root.main.maxWalk._x = _root.main.maxCome2._x);
_root.main.maxControl._y = (_root.main.maxWalk._y = _root.main.maxCome2._y);
} else {
_root.main.maxControl._x = (_root.main.maxWalk._x = _root.main.maxCome1._x);
_root.main.maxControl._y = (_root.main.maxWalk._y = _root.main.maxCome1._y);
}
goodKeyExit = "cle" + _root.currentCusNameExit;
if (_root.main.keyPanel[goodKeyExit]._currentframe == 2) {
trace("va ten jouer le 1");
_root.main.keyPanel[goodKeyExit].gotoAndStop(1);
} else if (_root.main.keyPanel[goodKeyExit]._currentframe == 4) {
trace("va ten jouer le 3");
_root.main.keyPanel[goodKeyExit].gotoAndStop(3);
} else if (_root.main.keyPanel[goodKeyExit]._currentframe == 6) {
trace("va ten jouer le 5");
_root.main.keyPanel[goodKeyExit].gotoAndStop(5);
}
_root.main.maxWalk._visible = true;
_root.main.keyPanel._visible = false;
}
Instance of Symbol 541 MovieClip in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.useHandCursor = false;
};
}
Instance of Symbol 551 MovieClip "cleTarzan" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "clePanic" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleAladdin" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleBaloo" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleCinderella" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleTimon" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleTigrou" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleAlice" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleCruella" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "clePain" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleLilo" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleStitch" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "clePumbaa" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleMulan" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleHades" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleGenie" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleHercules" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleMowgli" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "clePinocchio" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 551 MovieClip "cleWinnie" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 572 Button
on (release) {
carToMove = _root.currentCar;
_root.main[carToMove]._visible = true;
_global.control.restartCountDown();
gotoAndPlay ("Off");
}
Symbol 574 Button
on (release) {
gotoAndPlay ("instructions1");
}
Symbol 576 Button
on (release) {
gotoAndPlay ("Quit");
}
Symbol 582 Button
on (release) {
_global.control.gotoLevel2();
this.gotoAndPlay("Off");
_root.main.gotoAndPlay("End");
}
Symbol 599 Button
on (release) {
_global.control.startOver();
this.gotoAndPlay("Off");
_root.main.gotoAndPlay("End");
}
Symbol 603 Button
on (release) {
_global.control.creerSO();
this.gotoAndPlay("scoreDoge");
}
Symbol 627 Button
on (release) {
_root.main.moveControl.gotoAndStop(1);
_root.main.moveControl2.gotoAndStop(1);
_root.main.maxWalk._visible = true;
this.gotoAndPlay("Off");
}
Symbol 632 Button
on (release) {
_root.main.moveControl.gotoAndStop(1);
_root.main.moveControl2.gotoAndStop(1);
this.gotoAndPlay("Off");
}
Symbol 639 Button
on (release) {
loadMovie (_root.levelSelector, _root);
}
Symbol 642 Button
on (release) {
gotoAndPlay ("Menu");
}
Symbol 643 Button
on (release) {
gotoAndPlay ("instructions2");
}
Symbol 644 Button
on (release) {
gotoAndPlay ("instructions3");
}
Symbol 645 Button
on (release) {
gotoAndPlay ("instructions1");
}
Symbol 646 Button
on (release) {
gotoAndPlay ("instructions2");
}
Symbol 647 Button
on (release) {
_global.control.restartCountDown();
gotoAndPlay ("Off");
}
Symbol 650 MovieClip Frame 1
stop();
Symbol 650 MovieClip Frame 2
stop();
Instance of Symbol 541 MovieClip in Symbol 650 MovieClip Frame 2
onClipEvent (load) {
this.onRollOver = function () {
this.useHandCursor = false;
};
}
Symbol 650 MovieClip Frame 3
stop();
Symbol 650 MovieClip Frame 4
stop();
Symbol 650 MovieClip Frame 5
stop();
Symbol 650 MovieClip Frame 6
stop();
Symbol 650 MovieClip Frame 7
stop();
Symbol 650 MovieClip Frame 8
stop();
Symbol 650 MovieClip Frame 9
stop();
Symbol 650 MovieClip Frame 10
Mouse.show();
stop();
Symbol 650 MovieClip Frame 11
stop();
Symbol 650 MovieClip Frame 12
stop();
Symbol 650 MovieClip Frame 13
stop();
Symbol 650 MovieClip Frame 14
_root.playerScore = _root.score;
theDoge.loadMovie("http://psc.disney.go.com/abcnetworks/toondisney/global/game/scoredisplays/fsd.swf", 1);
stop();
Symbol 653 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 2
stop();
Symbol 653 MovieClip Frame 3
stop();
Symbol 653 MovieClip Frame 4
stop();
Symbol 653 MovieClip Frame 5
_root.main.carList._visible = false;
_root.main.carControl._visible = false;
stop();
Instance of Symbol 242 MovieClip in Symbol 653 MovieClip Frame 5
/* no clip actions */
Instance of Symbol 345 MovieClip "hitEnter" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 441 MovieClip "activeKey" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 459 MovieClip "stopSound" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
if (_root.musicIsPlaying == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 462 MovieClip "parkingZoneSmall" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 465 MovieClip "parkingZoneMedium" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 468 MovieClip "parkingZoneLarge" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 480 MovieClip "wallEntrance" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 482 MovieClip "startZone" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.main[_root.currentCar].hitTest(this) == false) or (_root.main[_root.currentCar].hitTest(this) == undefined)) {
_root.parkingIsEmpty = true;
} else {
_root.parkingIsEmpty = false;
}
if (_root.main.maxWalk.hitTest(this) == true) {
_root.parkingIsEmpty = false;
}
}
Instance of Symbol 484 MovieClip "hitEndZone" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 487 MovieClip "moveControl" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
}
onClipEvent (mouseDown) {
_global.control.moveControlAdvance(this);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 487 MovieClip "moveControl2" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
}
onClipEvent (mouseDown) {
_global.control.moveControlRewind(this);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 533 MovieClip "maxWalk" in Symbol 653 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.maxStat == "moving") {
_global.control.moveMax(this);
}
}
Instance of Symbol 535 MovieClip "maxControl" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
_global.control.moveControlMax(this);
}
onClipEvent (mouseDown) {
_global.control.moveControlMax(this);
}
Instance of Symbol 537 MovieClip "hitHouse" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 539 MovieClip "houseExit" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this.swapDepths(402);
}
Instance of Symbol 203 MovieClip "paravant1" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this.swapDepths(401);
}
Instance of Symbol 248 MovieClip "paravant2" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this.swapDepths(400);
}
Instance of Symbol 560 MovieClip "keyPanel" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this.swapDepths(499);
this._visible = false;
}
Instance of Symbol 650 MovieClip "instruction" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
this.swapDepths(505);
}
Instance of Symbol 652 MovieClip "controlEvent" in Symbol 653 MovieClip Frame 5
onClipEvent (load) {
_root.main.timerField.timer.text = _root.timeStart;
_root.main.timerField.ombre.text = _root.timeStart;
_root.main.totalCars.text = (_root.parkedCar + "/") + _root.maxCar;
_root.main.totalCarsOmbre.text = (_root.parkedCar + "/") + _root.maxCar;
_root.main.scoreField.text = _root.score;
_root.main.scoreFieldOmbre.text = _root.score;
_root.main.servingName.gotoAndPlay(21);
_root.main.leavingName.gotoAndPlay(21);
_global.control.createNewCar();
_root.myTimer = setInterval(_global.control.wait, 1000);
}
Symbol 653 MovieClip Frame 6
_root.main.paravant1.removeMovieClip();
_root.main.paravant2.removeMovieClip();
_root.main.moveControl.removeMovieClip();
_root.main.moveControl2.removeMovieClip();
_root.main.instruction.removeMovieClip();
_root.main.keyPanel.removeMovieClip();
_root.main.houseExit.removeMovieClip();
gotoAndStop ("Play");
Symbol 653 MovieClip Frame 7
_root.main.paravant1.removeMovieClip();
_root.main.paravant2.removeMovieClip();
_root.main.moveControl.removeMovieClip();
_root.main.moveControl2.removeMovieClip();
_root.main.instruction.removeMovieClip();
_root.main.keyPanel.removeMovieClip();
_root.main.houseExit.removeMovieClip();
gotoAndStop ("Title");