Instance of Symbol 170 MovieClip "AlertPage" in Frame 1
onClipEvent (load) {
this.gotoAndPlay("Loading");
}
Frame 2
Stage.showMenu = false;
_focusrect = false;
_quality = "MEDIUM";
bartogUnlok = false;
GreaterChallengeUnlok = false;
DerbyUnlok = false;
firstCupPass = false;
firstStagePassCup1 = false;
SecondStagePassCup1 = false;
ThirdStagePassCup1 = false;
secondCupPass = false;
firstStagePassCup2 = false;
SecondStagePassCup2 = false;
ThirdStagePassCup2 = false;
cupChallenge = "notChoose";
tableau = "race";
ConceptArtUnlok = false;
TaKUpdateSpeed = 1;
TaKUpdateAccel = 1;
TaKUpdateHand = 2;
GramUpdateSpeed = 2;
GramUpdateAccel = 1;
GramUpdateHand = 1;
JibUpdateSpeed = 0;
JibUpdateAccel = 2;
JibUpdateHand = 2;
BartogUpdateSpeed = 3;
BartogUpdateAccel = 1;
BartogUpdateHand = 0;
_global.feathers = 15;
carSelected = "sport";
urlTemp = new String(this._url);
if (urlTemp.lastIndexOf("/") == -1) {
lastCar = urlTemp.lastIndexOf("\\");
dossier = "ConceptArt\\";
} else {
lastCar = urlTemp.lastIndexOf("/");
dossier = "ConceptArt/";
if (lastCar <= 10) {
lastCar = urlTemp.lastIndexOf("\\");
}
}
_global.path = urlTemp.substring(0, lastCar + 1);
Frame 3
cupChallenge = "notChoose";
tableau = "race";
Frame 13
stop();
Instance of Symbol 182 MovieClip "speaker" in Frame 13
onClipEvent (load) {
MusikIn = "Packaging";
mute = false;
}
Instance of Symbol 201 MovieClip "speed" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_parent.TaKUpdateSpeed + 1);
}
Instance of Symbol 207 MovieClip "accel" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_parent.TaKUpdateAccel + 1);
}
Instance of Symbol 213 MovieClip "hand" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_parent.TaKUpdateHand + 1);
}
Instance of Symbol 292 MovieClip "cTak" in Frame 14
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 319 MovieClip "cBlack" in Frame 14
onClipEvent (load) {
if (_parent.bartogUnlok == false) {
this.gotoAndStop(3);
}
}
Frame 25
stop();
Instance of Symbol 327 MovieClip "Controler" in Frame 26
onClipEvent (load) {
CheckDirection = function (me, vSide) {
var _local1 = me;
if (vSide == "left") {
if (_local1.nSpeed > _local1.nMaxSpeed) {
nTurn = -(Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 0.55)))) * 100) / 100);
} else if (_local1.nSpeed > (_local1.nMaxSpeed / 1.2)) {
nTurn = -(Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 0.85)))) * 100) / 100);
} else if (_local1.nSpeed > (_local1.nMaxSpeed / 2)) {
nTurn = -(Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 1.1)))) * 100) / 100);
} else if (_local1.nSpeed > (_local1.nMaxSpeed / 3)) {
nTurn = -(Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 1.4)))) * 100) / 100);
} else if (_local1.nSpeed > 5) {
nTurn = -(Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 2)))) * 100) / 100);
} else if (_local1.nSpeed > 0) {
nTurn = -2;
} else {
nTurn = -(Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 3)))) * 100) / 100);
}
if (_parent.KeyListener.vArrowDOWN == true) {
if (_local1.nRotation <= 20) {
_local1.nRotation = _local1.nRotation + (_local1.nSpeed / _local1.nGripFactor);
}
} else if (_local1.nRotation >= -50) {
_local1.nRotation = _local1.nRotation - (_local1.nSpeed / _local1.nGripFactor);
}
} else if (vSide == "right") {
if (_local1.nSpeed > _local1.nMaxSpeed) {
nTurn = Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 0.45)))) * 100) / 100;
} else if (_local1.nSpeed > (_local1.nMaxSpeed / 1.2)) {
nTurn = Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 0.85)))) * 100) / 100;
} else if (_local1.nSpeed > (_local1.nMaxSpeed / 2)) {
nTurn = Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 1.1)))) * 100) / 100;
} else if (_local1.nSpeed > (_local1.nMaxSpeed / 3)) {
nTurn = Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 1.4)))) * 100) / 100;
} else if (_local1.nSpeed > 5) {
nTurn = Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 2)))) * 100) / 100;
} else if (_local1.nSpeed > 0) {
nTurn = 2;
} else {
nTurn = Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 3)))) * 100) / 100;
}
if (_parent.KeyListener.vArrowDOWN == true) {
if (_local1.nRotation >= -20) {
_local1.nRotation = _local1.nRotation - (_local1.nSpeed / _local1.nGripFactor);
}
} else if (_local1.nRotation <= 50) {
_local1.nRotation = _local1.nRotation + (_local1.nSpeed / _local1.nGripFactor);
}
}
_local1.CarRotation = _local1.CarRotation + nTurn;
_local1._rotation = Math.round(_local1.CarRotation + _local1.nRotation);
_local1.nDirection = _local1.nDirection + nTurn;
if (_local1.nDirection > 360) {
_local1.nDirection = _local1.nDirection - 360;
} else if (_local1.nDirection < -360) {
_local1.nDirection = _local1.nDirection + 360;
}
_local1.nDirectionCar = _local1.nDirection;
if (_local1.nDirection < -270) {
_local1.nSideFace = "right";
_local1.nDirectionCar = (270 + _local1.nDirection) + 90;
} else if (_local1.nDirection < -90) {
_local1.nSideFace = "reverse";
_local1.nDirectionCar = -90 - (_local1.nDirection + 90);
} else if (_local1.nDirection > 270) {
_local1.nSideFace = "right";
_local1.nDirectionCar = (_local1.nDirection - 270) - 90;
} else if (_local1.nDirection > 90) {
_local1.nSideFace = "reverse";
_local1.nDirectionCar = 90 - (_local1.nDirection - 90);
} else {
_local1.nSideFace = "right";
}
};
CheckRotation = function (me) {
var _local1 = me;
if (_local1.nRotation > 0) {
_local1.nRotation = _local1.nRotation - (_local1.nHandling * 1.5);
if (_local1.nRotation < 0) {
_local1.nRotation = 0;
}
if (_local1.nRotation > 15) {
if ((_local1.nSpeed > 10) && (_local1.MayTurn == true)) {
_local1.MayTurn = "right";
_local1.kart.gotoAndPlay("exRight");
}
}
} else {
_local1.nRotation = _local1.nRotation + (_local1.nHandling * 1.5);
if (_local1.nRotation > 0) {
_local1.nRotation = 0;
}
if (_local1.nRotation < -15) {
if ((_local1.nSpeed > 10) && (_local1.MayTurn == true)) {
_local1.MayTurn = "left";
_local1.kart.gotoAndPlay("exLeft");
}
}
}
if ((_local1.nRotation >= -15) and (_local1.nRotation <= 15)) {
if (_local1.MayTurn != true) {
if (_local1.MayTurn == "left") {
_local1.kart.gotoAndPlay("leftRecov");
} else {
_local1.kart.gotoAndPlay("rightRecov");
}
_local1.MayTurn = true;
}
}
_local1._rotation = Math.round(_local1.CarRotation + _local1.nRotation);
};
fAccelerate = function (me) {
var _local1 = me;
if (_local1._name == "myCar") {
_parent.speakerMot.raiseVol();
}
if (_local1.nSpeed < _local1.nMaxSpeed) {
if (_local1.nSpeed < 0) {
_local1.nSpeed = _local1.nSpeed + (Math.round(_local1.nAccel * 100) / 100);
} else {
_local1.nSpeed = _local1.nSpeed + (Math.round((_local1.nAccel / 2) * 100) / 100);
}
}
if (_local1.nSpeed < (_local1.nMaxSpeed / 2)) {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * _local1.nWeight;
} else {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.8);
}
_local1.vFoward = Math.round(_local1.vFoward * 100) / 100;
if (_local1.nSideFace == "right") {
if (_local1.nDirectionCar >= 0) {
_local1.LastMoveX = Math.round((((90 - _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
} else {
_local1.LastMoveX = Math.round((((90 + _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
}
} else if (_local1.nDirectionCar >= 0) {
_local1.LastMoveX = (Math.round((((90 - _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100) * -1;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
} else {
_local1.LastMoveX = (Math.round((((90 + _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100) * -1;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
}
};
fBackward = function (me) {
var _local1 = me;
if (_local1._name == "myCar") {
_parent.speakerMot.lowerVol();
}
if (_local1.nSpeed > (-(_local1.nMaxSpeed / 2))) {
if (_local1.nSpeed > 0) {
if (_local1.nSpeed > (_local1.nMaxSpeed / 2)) {
_local1.nSpeed = _local1.nSpeed - (Math.round((_local1.nAccel * 2) * 100) / 100);
} else {
_local1.nSpeed = _local1.nSpeed - (Math.round(_local1.nAccel * 100) / 100);
}
} else {
_local1.nSpeed = _local1.nSpeed - (Math.round((_local1.nAccel / 4) * 100) / 100);
}
}
_local1.kart.gotoAndStop(1);
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.9);
_local1.vFoward = Math.round(_local1.vFoward * 100) / 100;
if (_local1.nSideFace == "right") {
if (_local1.nDirectionCar >= 0) {
_local1.LastMoveX = Math.round((((90 - _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
} else {
_local1.LastMoveX = Math.round((((90 + _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
}
} else if (_local1.nDirectionCar >= 0) {
_local1.LastMoveX = (Math.round((((90 - _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100) * -1;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
} else {
_local1.LastMoveX = (Math.round((((90 + _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100) * -1;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
}
};
fDeccelerate = function (me) {
var _local1 = me;
if (_local1._name == "myCar") {
_parent.speakerMot.lowerVol();
}
if (_local1.nSpeed > 0) {
if (_local1.nSpeed > 1) {
_local1.nSpeed = _local1.nSpeed - (Math.round((_local1.nAccel / 2) * 100) / 100);
if (_local1.nSpeed < (_local1.nMaxSpeed / 2)) {
if (Math.abs(_local1.nRotation) > 30) {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.7);
} else {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.9);
}
} else if (Math.abs(_local1.nRotation) > 30) {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.5);
} else {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.7);
}
} else {
_local1.nSpeed = 0;
}
} else if (_local1.nSpeed < 0) {
_local1.nSpeed = _local1.nSpeed + (Math.round((_local1.nAccel / 2) * 100) / 100);
if (Math.abs(_local1.nRotation) > 30) {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.7);
} else {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.9);
}
}
if (_local1.nSpeed != 0) {
_local1.vFoward = Math.round(_local1.vFoward * 100) / 100;
if ((_local1.nSideFace == "right") and (_local1.ModeSmash != "wall")) {
if (_local1.nDirectionCar >= 0) {
_local1.LastMoveX = Math.round((((90 - _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
} else {
_local1.LastMoveX = Math.round((((90 + _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
}
} else if (_local1.ModeSmash != "wall") {
if (_local1.nDirectionCar >= 0) {
_local1.LastMoveX = (Math.round((((90 - _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100) * -1;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
} else {
_local1.LastMoveX = (Math.round((((90 + _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100) * -1;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
}
} else {
_local1._x = _local1._x - _local1.LastMoveX;
_local1._y = _local1._y - _local1.LastMoveY;
}
}
};
EmergencyBrake = function (me) {
var _local1 = me;
if (_local1._name == "myCar") {
_parent.speakerMot.lowerVol();
}
if (_local1.nSpeed > 0.5) {
_local1.nSpeed = _local1.nSpeed - (_local1.nHandling / (_local1.nWeight * _local1.nWeight));
if (_local1.nSpeed < 0.5) {
_local1.nSpeed = 0.5;
}
_local1.nDirection = _local1.nDirection - (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1.nDirectionCar = _local1.nDirectionCar - (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1.nRotation = _local1.nRotation - (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1.CarRotation = _local1.CarRotation - (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1._rotation = Math.round(_local1.CarRotation + _local1.nRotation);
} else if (_local1.nSpeed < -0.5) {
_local1.nSpeed = _local1.nSpeed + (_local1.nHandling / (_local1.nWeight * _local1.nWeight));
if (_local1.nSpeed > 0.5) {
_local1.nSpeed = 0.5;
}
_local1.nDirection = _local1.nDirection + (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1.nDirectionCar = _local1.nDirectionCar + (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1.nRotation = _local1.nRotation + (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1.CarRotation = _local1.CarRotation + (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1._rotation = Math.round(_local1.CarRotation + _local1.nRotation);
}
};
SpinUp = function (me) {
var _local1 = me;
if (_local1.nSpeed < -2) {
_local1.nSpeed = _local1.nSpeed + (Math.round(_local1.nAccel * 200) / 100);
if (_local1.nSpeed < -10) {
}
fDeccelerate(_local1);
} else if (_local1.nSpeed > 2) {
_local1.nSpeed = _local1.nSpeed - (Math.round(_local1.nAccel * 200) / 100);
if (_local1.nSpeed > 10) {
}
fDeccelerate(_local1);
}
if ((_local1.nSpeed < 5) and (_local1.nSpeed > -5)) {
_local1.perso1.gotoAndStop("Idle");
_local1.perso2.gotoAndStop("Idle");
_local1.ModeSmash = "ok";
_local1.nSpeed = 0;
_local1.lostControl = false;
_local1.nRotation = 0;
_local1.AngleACoisir = true;
_local1.CarRotation = _local1._rotation;
_local1.nDirection = _local1._rotation;
fAccelerate(_local1);
CheckDirection(_local1, "left");
}
};
ViewDirection = function (me) {
var _local1 = me;
vBoundsMe = _local1.getBounds(_parent.Course_mc);
_local1.x = _local1._parent.Course_mc.puceSystems["balise" + _local1.nb]._x - ((vBoundsMe.xMax + vBoundsMe.xMin) / 2);
_local1.y = _local1._parent.Course_mc.puceSystems["balise" + _local1.nb]._y - ((vBoundsMe.yMax + vBoundsMe.yMin) / 2);
if ((Math.abs(_local1.x) + Math.abs(_local1.y)) < 420) {
_local1.nb++;
_local1.AngleACoisir = true;
if (_local1.nb == _parent.CoursePS.MaxPuce) {
_local1.nb = 1;
_local1.lap++;
}
_local1.x = _local1._parent.puceSystems["balise" + _local1.nb]._x - _local1._x;
_local1.y = _local1._parent.puceSystems["balise" + _local1.nb]._y - _local1._y;
}
};
LoseFeathers = function (me) {
var _local1 = _parent;
myNum = 1000 + random(10000);
duplicateMovieClip (_local1.Course_mc.feathers, "feather" + myNum, -myNum);
posToThef = me.getBounds(_local1.Course_mc);
_local1.Course_mc["feather" + myNum].gotoAndStop(3);
_local1.Course_mc["feather" + myNum]._x = (posToThef.xMax + posToThef.xMin) / 2;
_local1.Course_mc["feather" + myNum]._y = (posToThef.yMax + posToThef.yMin) / 2;
};
fJumping = function (me) {
var _local1 = me;
_local1._x = _local1._x + _local1.LastMoveX;
_local1._y = _local1._y + _local1.LastMoveY;
_local1.nbreOfPass++;
if (_local1.nbreOfPass <= (_local1.nbreOfPassMax / 2)) {
_local1._xscale = _local1._xscale + 2;
_local1._yscale = _local1._yscale + 2;
} else if (_local1.nbreOfPass > (_local1.nbreOfPassMax / 2)) {
_local1._xscale = _local1._xscale - 2;
_local1._yscale = _local1._yscale - 2;
}
if (_local1.nbreOfPass == _local1.nbreOfPassMax) {
if (_local1._name == "myCar") {
_parent.speakerMot.Land();
}
_local1._xscale = _local1.myXscale;
_local1._yscale = _local1.myYscale;
_local1.perso1.gotoAndStop("Idle");
_local1.perso2.gotoAndStop("Idle");
_local1.jumping = false;
}
};
}
Instance of Symbol 329 MovieClip "ControlerHT" in Frame 26
onClipEvent (load) {
MathDistance = function (x1, y1, x2, y2) {
return(Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)));
};
FoundAName = function (me) {
var _local1 = me;
theXcoord = Math.round(_local1._x / 10);
theYcoord = Math.round(_local1._y / 10);
if (_parent.Course_mc[(("" + theXcoord) + theYcoord) + "1"]._currentframe == undefined) {
_local1._name = (String(theXcoord) + String(theYcoord)) + "1";
} else if (_parent.Course_mc[(("" + theXcoord) + theYcoord) + "2"]._currentframe == undefined) {
_local1._name = (String(theXcoord) + String(theYcoord)) + "2";
} else {
_local1.gotoAndStop("off");
}
};
this.createEmptyMovieClip("BigCrash", 1);
this.createEmptyMovieClip("SmallCrash1", 2);
this.createEmptyMovieClip("Feathers", 3);
this.createEmptyMovieClip("Hutte", 4);
this.createEmptyMovieClip("Boost", 5);
this.createEmptyMovieClip("Bouet", 6);
Bouet = new Sound("Bouet");
Bouet.attachSound("bouet");
SmallCrash1 = new Sound("SmallCrash1");
SmallCrash1.attachSound("small");
SmallCrash1.setVolume(50);
BigCrash = new Sound("BigCrash");
BigCrash.attachSound("big");
BigCrash.setVolume(50);
Feathers = new Sound("Feathers");
Feathers.attachSound("feathers");
Feathers.setVolume(80);
Hutte = new Sound("Hutte");
Hutte.attachSound("hutte");
Boost = new Sound("Boost");
Boost.attachSound("boost");
Boost.setVolume(60);
hitTestDone = false;
hitTestDoneEnemi = false;
CheckHitTest = function (me, WhatCar, WhatNumber) {
var _local1 = me;
var _local2 = _parent;
var _local3 = WhatCar;
if ((_local3 == "Itsme") and (_local1.lostControl == false)) {
meBoudsPos = _local1.getBounds(_local2.Course_mc);
_local1.car1hit = MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local2.Course_mc.CarEnemi1._x, _local2.Course_mc.CarEnemi1._y);
if (_local1.car1hit < 30) {
hitTestDone = true;
vC = 1;
}
_local1.car2hit = MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local2.Course_mc.CarEnemi2._x, _local2.Course_mc.CarEnemi2._y);
if (_local1.car2hit < 30) {
hitTestDone = true;
vC = 2;
}
_local1.car3hit = MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local2.Course_mc.CarEnemi3._x, _local2.Course_mc.CarEnemi3._y);
if (_local1.car3hit < 30) {
hitTestDone = true;
vC = 3;
}
if (hitTestDone) {
_local1.MayTurn = true;
_local1.kart.gotoAndStop(1);
_local2.Course_mc["CarEnemi" + vC].kart.gotoAndStop(1);
hitTestDone = false;
SmallCrash1.start();
if (_local1.nSpeed < _local2.Course_mc["CarEnemi" + vC].nSpeed) {
_local1.nSpeed = _local2.Course_mc["CarEnemi" + vC].nSpeed + 5;
_local1.nDirectionCar = _local2.Course_mc["CarEnemi" + vC].nDirectionCar;
_local1.nSideFace = _local2.Course_mc["CarEnemi" + vC].nSideFace;
_local1.lostControl = true;
if (_global.feathers >= 1) {
_global.feathers--;
_local2.Controler.LoseFeathers(_local1);
}
if (_local2.Course_mc["CarEnemi" + vC].nSpeed > 0) {
_local2.Course_mc["CarEnemi" + vC].nSpeed = -10;
} else {
_local2.Course_mc["CarEnemi" + vC].nSpeed = 10;
}
_local2.Course_mc["CarEnemi" + vC].lostControl = true;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso1.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso2.gotoAndStop("PerteCtrl");
} else {
_local2.Course_mc["CarEnemi" + vC].nSpeed = _local1.nSpeed + 5;
_local2.Course_mc["CarEnemi" + vC].nSideFace = _local1.nSideFace;
_local2.Course_mc["CarEnemi" + vC].nDirectionCar = _local1.nDirectionCar;
_local2.Course_mc["CarEnemi" + vC].lostControl = true;
_local2.Controler.LoseFeathers(_local2.Course_mc["CarEnemi" + vC]);
if (_local1.nSpeed > 0) {
_local1.nSpeed = -10;
} else {
_local1.nSpeed = 10;
}
_local1.lostControl = true;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso1.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso2.gotoAndStop("PerteCtrl");
}
}
} else if (_local1.lostControl == false) {
if (WhatNumber != 1) {
_local1.car1hitE = MathDistance(_local1._x, _local1._y, _local2.Course_mc.CarEnemi1._x, _local2.Course_mc.CarEnemi1._y);
if (_local1.car1hitE < 20) {
hitTestDoneEnemi = true;
vC = 1;
}
}
if (WhatNumber != 2) {
_local1.car2hitE = MathDistance(_local1._x, _local1._y, _local2.Course_mc.CarEnemi2._x, _local2.Course_mc.CarEnemi2._y);
if (_local1.car2hitE < 20) {
hitTestDoneEnemi = true;
vC = 2;
}
}
if (WhatNumber != 3) {
_local1.car3hitE = MathDistance(_local1._x, _local1._y, _local2.Course_mc.CarEnemi3._x, _local2.Course_mc.CarEnemi3._y);
if (_local1.car3hitE < 20) {
hitTestDoneEnemi = true;
vC = 3;
}
}
if (hitTestDoneEnemi) {
_local1.MayTurn = true;
_local1.kart.gotoAndStop(1);
_local2.Course_mc["CarEnemi" + vC].kart.gotoAndStop(1);
_local1.AngleACoisir = true;
_local2.Course_mc["CarEnemi" + vC].AngleACoisir = true;
hitTestDoneEnemi = false;
if (_local1.nSpeed < _local2.Course_mc["CarEnemi" + vC].nSpeed) {
_local1.nSpeed = _local2.Course_mc["CarEnemi" + vC].nSpeed + 5;
_local1.nSideFace = _local2.Course_mc["CarEnemi" + vC].nSideFace;
_local1.nDirectionCar = _local2.Course_mc["CarEnemi" + vC].nDirectionCar;
_local1.lostControl = true;
if (_local2.Course_mc["CarEnemi" + vC].nSpeed > 0) {
_local2.Course_mc["CarEnemi" + vC].nSpeed = -10;
} else {
_local2.Course_mc["CarEnemi" + vC].nSpeed = 10;
}
_local2.Course_mc["CarEnemi" + vC].lostControl = true;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso1.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso2.gotoAndStop("PerteCtrl");
_local2.Controler.LoseFeathers(_local2.Course_mc["CarEnemi" + vC]);
} else {
_local2.Course_mc["CarEnemi" + vC].nSpeed = _local1.nSpeed + 5;
_local2.Course_mc["CarEnemi" + vC].nSideFace = _local1.nSideFace;
_local2.Course_mc["CarEnemi" + vC].nDirectionCar = _local1.nDirectionCar;
_local2.Course_mc["CarEnemi" + vC].lostControl = true;
if (_local1.nSpeed > 0) {
_local1.nSpeed = -10;
} else {
_local1.nSpeed = 10;
}
_local1.lostControl = true;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso1.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso2.gotoAndStop("PerteCtrl");
_local2.Controler.LoseFeathers(_local1);
}
}
}
vBoundsMe = _local1.getBounds(_local2.Course_mc.ArrayGrid);
vBoundXMe = Math.round((vBoundsMe.xMax + vBoundsMe.xMin) / 40);
vBoundYMe = Math.round((vBoundsMe.yMax + vBoundsMe.yMin) / 40);
_local1.nLocation = _local2.Course_mc.ArrayGrid.aInterface[vBoundXMe][vBoundYMe];
if (Number(_local1.nLocation) < 100) {
_local1.marque = _local2.Course_mc.ArrayGrid["zone" + Number(_local1.nLocation)].getBounds(_local2);
_local1.PointDeFuiteX = _local2.Course_mc.ArrayGrid["zone" + Number(_local1.nLocation)].dotXToGo;
_local1.PointDeFuiteY = _local2.Course_mc.ArrayGrid["zone" + Number(_local1.nLocation)].dotYToGo;
_local1.kart.gotoAndStop(1);
_local1.lostControl = true;
_local1.MayTurn = true;
_local1._x = _local1._x - _local1.LastMoveX;
_local1._y = _local1._y - _local1.LastMoveY;
if (_local3 == "Itsme") {
_local1.MyXtoKnow = _local1.getBounds(_local2.Course_mc);
_local1.MyXtoSpin = (_local1.MyXtoKnow.xMax + _local1.MyXtoKnow.xMin) / 2;
_local1.MyYtoSpin = (_local1.MyXtoKnow.yMax + _local1.MyXtoKnow.yMin) / 2;
} else {
_local1.MyXtoSpin = _local1._x;
_local1.MyYtoSpin = _local1._y;
if (_local1.deStuckWall == false) {
_local1.deStuckWall = true;
} else {
_local1.deStuckWall = false;
}
}
_local1.x = _local1.PointDeFuiteX - _local1.MyXtoSpin;
_local1.y = _local1.PointDeFuiteY - _local1.MyYtoSpin;
_local1.angleRot = Math.atan2(_local1.y, _local1.x);
_local1.angleRot = (_local1.angleRot * 180) / Math.PI;
if (_local1.angleRot < 0) {
_local1.angleRot = _local1.angleRot * -1;
_local1.angleTemp = 180 - _local1.angleRot;
_local1.angleRot = 180 + _local1.angleTemp;
}
if (_local1.angleRot < 0) {
_local1.angleRot = _local1.angleRot + 360;
}
_local1.nDirection = _local1.angleRot;
_local1.nDirectionCar = _local1.nDirection;
if (_local1.nDirection < -270) {
_local1.nSideFace = "right";
_local1.nDirectionCar = (270 + _local1.nDirection) + 90;
} else if (_local1.nDirection < -90) {
_local1.nSideFace = "reverse";
_local1.nDirectionCar = -90 - (_local1.nDirection + 90);
} else if (_local1.nDirection > 270) {
_local1.nSideFace = "right";
_local1.nDirectionCar = (_local1.nDirection - 270) - 90;
} else if (_local1.nDirection > 90) {
_local1.nSideFace = "reverse";
_local1.nDirectionCar = 90 - (_local1.nDirection - 90);
} else {
_local1.nSideFace = "right";
}
if ((_local1.nSpeed < 5) and (_local1.nSpeed > 0)) {
_local1.nSpeed = 5;
} else if (_local1.nSpeed < 0) {
if (_local1.nSpeed > -5) {
_local1.nSpeed = -5;
} else if (_local3 == "Itsme") {
BigCrash.start();
}
_local1.nSpeed = _local1.nSpeed * -0.5;
} else {
if (_local3 == "Itsme") {
BigCrash.start();
}
_local1.nSpeed = _local1.nSpeed * 0.5;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
}
_local2.Controler.fAccelerate(_local1);
}
if (_local1.nLocation == "N") {
if (_local1.lostControl == false) {
if (_local1.nSpeed > 6) {
_local1.nSpeed = _local1.nSpeed - (_local1.nHandling / (_local1.nWeight * _local1.nWeight));
}
}
}
_local1.CoursePos = _local1.getBounds(_local2.Course_mc);
_local1.myXCoord = Math.round((_local1.CoursePos.xMax + _local1.CoursePos.xMin) / 20);
_local1.myYCoord = Math.round((_local1.CoursePos.yMax + _local1.CoursePos.yMin) / 20);
i = -1;
while (i < 2) {
_local1.xcoord = _local1.myXCoord + i;
u = -1;
while (u < 2) {
_local1.ycoord = _local1.myYCoord + u;
r = 1;
while (r < 3) {
if (_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r]._currentframe == 1) {
if (_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].MyRoleIs == "money") {
if (!_local1.lostControl) {
if (_local3 == "Itsme") {
_global.feathers++;
Feathers.start();
}
_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].gotoAndStop(2);
}
} else if (_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].MyRoleIs == "house") {
_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].gotoAndPlay(2);
if (_local3 == "Itsme") {
Hutte.start();
}
} else if (_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].MyRoleIs == "boost") {
if (_local1.nSpeed > 0) {
_local1.MayTurn = true;
_local1.kart.gotoAndPlay("boost");
_local1.nSpeed = _local1.nSpeed + 5;
if (_local3 == "Itsme") {
Boost.start();
}
} else {
_local1.MayTurn = true;
_local1.kart.gotoAndPlay("boost");
_local1.nSpeed = _local1.nSpeed - 5;
if (_local3 == "Itsme") {
Boost.start();
}
}
} else if (_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].MyRoleIs == "lostcontrol") {
if (_local1.nSpeed > 10) {
if (_local3 == "Itsme") {
Bouet.start();
}
_local1.lostControl = true;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
_local2.Controler.fAccelerate(_local1);
_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].gotoAndPlay(10);
_local1.kart.gotoAndStop(1);
_local1.MayTurn = true;
}
} else if (_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].MyRoleIs == "jump") {
if ((_local1.jumping == false) and (_local1.nSpeed > 10)) {
_local1.jumping = true;
_local1.kart.gotoAndStop(1);
_local1.MayTurn = true;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
_local1.nbreOfPassMax = Math.round((_local1.nSpeed * 1.5) / 4) * 2;
_local1.nbreOfPass = 0;
_local1.myYscale = _local1._yscale;
_local1.myXscale = _local1._xscale;
}
}
}
r++;
}
u++;
}
i++;
}
};
}
Instance of Symbol 331 MovieClip "ControlerENEMI" in Frame 26
onClipEvent (load) {
ViewDirection = function (me) {
var _local1 = me;
var _local2 = _parent;
_local1.x = _local1._parent.puceSystems["balise" + _local1.nb]._x - _local1._x;
_local1.y = _local1._parent.puceSystems["balise" + _local1.nb]._y - _local1._y;
if ((Math.abs(_local1.x) + Math.abs(_local1.y)) < 120) {
_local1.nb++;
_local1.AngleACoisir = true;
if (_local1.nb == _local2.CoursePS.MaxPuce) {
_local1.nb = 1;
_local1.lap++;
}
_local1.x = _local1._parent.puceSystems["balise" + _local1.nb]._x - _local1._x;
_local1.y = _local1._parent.puceSystems["balise" + _local1.nb]._y - _local1._y;
}
if ((Math.abs(_local1.x) + Math.abs(_local1.y)) > 420) {
_local1.nb--;
_local1.AngleACoisir = true;
if (_local1.nb == 1) {
_local1.lap--;
_local1.nb = _local2.CoursePS.MaxPuce - 1;
}
_local1.x = _local1._parent.puceSystems["balise" + _local1.nb]._x - _local1._x;
_local1.y = _local1._parent.puceSystems["balise" + _local1.nb]._y - _local1._y;
}
maxToSlow = _local2.CoursePS.ToSlow.length;
maxToBrake = _local2.CoursePS.ToBrake.length;
_local1.slowZone = false;
s = 0;
while (s < maxToSlow) {
if (String(_local1.nb) == String(_local2.CoursePS.ToSlow[s])) {
_local1.slowZone = true;
}
s++;
}
b = 0;
while (b < maxToBrake) {
if (String(_local1.nb) == String(_local2.CoursePS.ToBrake[b])) {
_local1.slowZone = "Brake";
}
b++;
}
};
AutoDrive = function (me) {
var _local1 = me;
var _local2 = _parent;
_local1.angleRot = Math.atan2(_local1.y, _local1.x);
_local1.angleRot = (_local1.angleRot * 180) / Math.PI;
if (_local1.angleRot < 0) {
_local1.angleRot = _local1.angleRot * -1;
_local1.angleTemp = 180 - _local1.angleRot;
_local1.angleRot = 180 + _local1.angleTemp;
}
if (_local1.angleRot < 0) {
_local1.angleRot = _local1.angleRot + 360;
}
_local1.angleAchieve = _local1.nDirection;
if (_local1.angleAchieve < 0) {
_local1.angleAchieve = _local1.angleAchieve + 360;
}
if (_local1.AngleACoisir) {
if (((_local1.angleRot < (_local1.angleAchieve - 20)) or (_local1.angleRot > (_local1.angleAchieve + 20))) or (_local1.sDirection == "backward")) {
_local1.AngleACoisir = false;
_local1.degreedAngle = 0;
_local1.angleAchieveCopy = Math.round(_local1.angleAchieve);
while (Math.floor(_local1.angleRot) != _local1.angleAchieveCopy) {
_local1.degreedAngle++;
_local1.angleAchieveCopy++;
if (_local1.angleAchieveCopy == 361) {
_local1.angleAchieveCopy = 0;
}
}
if (_local1.degreedAngle < 35) {
_local1.sDirection = "foward";
_local1.nearLorR = "right";
_local1.deStuckWall = false;
} else if (_local1.degreedAngle > 325) {
_local1.sDirection = "foward";
_local1.nearLorR = "left";
_local1.deStuckWall = false;
} else if (_local1.degreedAngle < 85) {
if (!_local1.deStuckWall) {
_local1.sDirection = "foward";
_local1.nearLorR = "right";
} else {
_local1.sDirection = "backward";
_local1.nearLorR = "left";
}
} else if (_local1.degreedAngle > 285) {
if (!_local1.deStuckWall) {
_local1.sDirection = "foward";
_local1.nearLorR = "left";
} else {
_local1.sDirection = "backward";
_local1.nearLorR = "right";
}
} else if (_local1.degreedAngle > 180) {
if (!_local1.deStuckWall) {
_local1.sDirection = "backward";
_local1.nearLorR = "right";
} else {
_local1.sDirection = "foward";
_local1.nearLorR = "left";
}
} else if (!_local1.deStuckWall) {
_local1.sDirection = "backward";
_local1.nearLorR = "left";
} else {
_local1.sDirection = "foward";
_local1.nearLorR = "right";
}
}
}
if (_local1.nDirection > 360) {
_local1.nDirection = _local1.nDirection - 360;
} else if (_local1.nDirection < -360) {
_local1.nDirection = _local1.nDirection + 360;
}
_local1.nDirectionCar = _local1.nDirection;
if (_local1.nDirection < -270) {
_local1.nSideFace = "right";
_local1.nDirectionCar = (270 + _local1.nDirection) + 90;
} else if (_local1.nDirection < -90) {
_local1.nSideFace = "reverse";
_local1.nDirectionCar = -90 - (_local1.nDirection + 90);
} else if (_local1.nDirection > 270) {
_local1.nSideFace = "right";
_local1.nDirectionCar = (_local1.nDirection - 270) - 90;
} else if (_local1.nDirection > 90) {
_local1.nSideFace = "reverse";
_local1.nDirectionCar = 90 - (_local1.nDirection - 90);
} else {
_local1.nSideFace = "right";
}
if (_local1.sDirection == "foward") {
if ((_local1.slowZone == "Brake") and (_local1.nSpeed > (_local1.nMaxSpeed / 3))) {
_local2.Controler.EmergencyBrake(_local1);
_local2.Controler.fDeccelerate(_local1);
} else if ((_local1.slowZone == true) and (_local1.nSpeed > (_local1.nMaxSpeed / 1.5))) {
_local2.Controler.fDeccelerate(_local1);
} else {
_local2.Controler.fAccelerate(_local1);
}
} else {
_local2.Controler.fBackward(_local1);
}
if ((_local1.angleRot < (_local1.angleAchieve - 5)) or (_local1.angleRot > (_local1.angleAchieve + 5))) {
_local2.Controler.CheckDirection(_local1, _local1.nearLorR);
} else {
_local1.AngleACoisir = true;
if ((_local1.angleRot < (_local1.angleAchieve - 35)) or (_local1.angleRot > (_local1.angleAchieve + 35))) {
_local1.deStuckWall = false;
}
}
};
}
Instance of Symbol 333 MovieClip "Magik" in Frame 26
onClipEvent (load) {
nPass = 0;
this.createEmptyMovieClip("Magie", 6);
Magie = new Sound("Magie");
Magie.attachSound("magie");
IMcastingSpell = function (me, witch, myNum) {
var _local1 = _parent;
var _local2 = witch;
var _local3 = myNum;
if (_local2 == 1) {
_local3 = 1000 + random(10000);
me.perso2.gotoAndStop("magieBoue");
duplicateMovieClip (_local1.Course_mc.bouet, "bouet" + _local3, -_local3);
_local1.Course_mc["bouet" + _local3].gotoAndPlay(1);
posToThe = me.getBounds(_local1.Course_mc);
_local1.Course_mc["bouet" + _local3]._x = (posToThe.xMax + posToThe.xMin) / 2;
_local1.Course_mc["bouet" + _local3]._y = (posToThe.yMax + posToThe.yMin) / 2;
}
if ((_local2 == 2) or (_local2 == 3)) {
meBoudsPos = me.getBounds(_local1.Course_mc);
if (_local2 == 2) {
me.perso2.gotoAndStop("magieLimace");
} else {
me.perso2.gotoAndStop("magiePlume");
}
if (_local3 == 0) {
nDistance1 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi1._x, _local1.Course_mc.CarEnemi1._y);
nDistance2 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi2._x, _local1.Course_mc.CarEnemi2._y);
nDistance3 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi3._x, _local1.Course_mc.CarEnemi3._y);
if ((nDistance1 <= nDistance2) and (nDistance1 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi1._currentframe) + 4;
if (theframe <= 8) {
Magie.start();
_local1.Course_mc.carEnemi1.gotoAndStop(theframe);
} else {
me.MagieBar = me.MagieBar + 35;
}
} else if (_local2 == 3) {
Magie.start();
_local1.Course_mc.carEnemi1.ring.gotoAndPlay("StartRing");
}
} else if ((nDistance2 <= nDistance1) and (nDistance2 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi2._currentframe) + 4;
if (theframe <= 8) {
Magie.start();
_local1.Course_mc.carEnemi2.gotoAndStop(theframe);
} else {
me.MagieBar = me.MagieBar + 35;
}
} else if (_local2 == 3) {
Magie.start();
_local1.Course_mc.carEnemi2.ring.gotoAndPlay("StartRing");
}
} else if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi3._currentframe) + 4;
if (theframe <= 8) {
Magie.start();
_local1.Course_mc.carEnemi3.gotoAndStop(theframe);
} else {
me.MagieBar = me.MagieBar + 35;
}
} else if (_local2 == 3) {
Magie.start();
_local1.Course_mc.carEnemi3.ring.gotoAndPlay("StartRing");
}
} else if (_local3 == 1) {
nDistance1 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.myCar._x, _local1.myCar._y);
nDistance2 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi2._x, _local1.Course_mc.CarEnemi2._y);
nDistance3 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi3._x, _local1.Course_mc.CarEnemi3._y);
if ((nDistance1 <= nDistance2) and (nDistance1 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.myCar._currentframe) + 4;
_local1.myCar.gotoAndStop(theframe);
Magie.start();
} else if (_local2 == 3) {
_local1.myCar.ring.gotoAndPlay("StartRing");
}
} else if ((nDistance2 <= nDistance1) and (nDistance2 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi2._currentframe) + 4;
_local1.Course_mc.carEnemi2.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi2.ring.gotoAndPlay("StartRing");
}
} else if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi3._currentframe) + 4;
_local1.Course_mc.carEnemi3.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi3.ring.gotoAndPlay("StartRing");
}
} else if (_local3 == 2) {
nDistance1 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.myCar._x, _local1.myCar._y);
nDistance2 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi1._x, _local1.Course_mc.CarEnemi1._y);
nDistance3 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi3._x, _local1.Course_mc.CarEnemi3._y);
if ((nDistance1 <= nDistance2) and (nDistance1 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.myCar._currentframe) + 4;
_local1.myCar.gotoAndStop(theframe);
Magie.start();
} else if (_local2 == 3) {
_local1.myCar.ring.gotoAndPlay("StartRing");
}
} else if ((nDistance2 <= nDistance1) and (nDistance2 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi1._currentframe) + 4;
_local1.Course_mc.carEnemi1.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi1.ring.gotoAndPlay("StartRing");
}
} else if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi3._currentframe) + 4;
_local1.Course_mc.carEnemi3.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi3.ring.gotoAndPlay("StartRing");
}
} else if (_local3 == 3) {
nDistance1 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.myCar._x, _local1.myCar._y);
nDistance2 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi1._x, _local1.Course_mc.CarEnemi1._y);
nDistance3 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi2._x, _local1.Course_mc.CarEnemi2._y);
if ((nDistance1 <= nDistance2) and (nDistance1 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.myCar._currentframe) + 4;
_local1.myCar.gotoAndStop(theframe);
Magie.start();
} else if (_local2 == 3) {
_local1.myCar.ring.gotoAndPlay("StartRing");
}
} else if ((nDistance2 <= nDistance1) and (nDistance2 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi1._currentframe) + 4;
_local1.Course_mc.carEnemi1.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi1.ring.gotoAndPlay("StartRing");
}
} else if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi2._currentframe) + 4;
_local1.Course_mc.carEnemi2.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi2.ring.gotoAndPlay("StartRing");
}
}
}
};
}
Instance of Symbol 335 MovieClip "KeyListener" in Frame 26
onClipEvent (load) {
vArrowUP = false;
disableMagic = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
vArrowUP = true;
} else {
vArrowUP = false;
}
if (Key.isDown(37)) {
vArrowLEFT = true;
} else {
vArrowLEFT = false;
}
if (Key.isDown(39)) {
vArrowRIGHT = true;
} else {
vArrowRIGHT = false;
}
if (Key.isDown(40)) {
vArrowDOWN = true;
} else {
vArrowDOWN = false;
}
if (Key.isDown(32)) {
vArrowSPACE = true;
} else {
vArrowSPACE = false;
}
if (Key.isDown(49) or Key.isDown(97)) {
vArrowOne = true;
} else {
vArrowOne = false;
}
if (Key.isDown(50) or Key.isDown(98)) {
vArrowTwo = true;
} else {
vArrowTwo = false;
}
if (Key.isDown(51) or Key.isDown(99)) {
vArrowThree = true;
} else {
vArrowThree = false;
}
}
Instance of Symbol 459 MovieClip "Status" in Frame 26
onClipEvent (load) {
this.gotoAndStop(String(_parent.carSelected));
}
Frame 34
stop();
Instance of Symbol 170 MovieClip "AlertPage" in Frame 35
onClipEvent (load) {
if (_parent.cupChallenge == "notChoose") {
_parent.stop();
this.gotoAndStop("cupChoose");
} else {
this._visible = false;
}
}
Instance of Symbol 511 MovieClip "slideImage" in Frame 36
onClipEvent (load) {
if (_parent.cupChallenge == 1) {
if (_parent.firstStagePassCup1 == false) {
this.gotoAndStop(1);
_parent.MapChoice.gotoAndStop(1);
} else if (_parent.SecondStagePassCup1 == false) {
this.gotoAndStop(2);
_parent.MapChoice.gotoAndStop(2);
} else {
this.gotoAndStop(3);
_parent.MapChoice.gotoAndStop(3);
}
} else if (_parent.cupChallenge == 2) {
if (_parent.firstStagePassCup2 == false) {
this.gotoAndStop(1);
_parent.MapChoice.gotoAndStop(1);
} else if (_parent.SecondStagePassCup2 == false) {
this.gotoAndStop(2);
_parent.MapChoice.gotoAndStop(2);
} else {
this.gotoAndStop(3);
_parent.MapChoice.gotoAndStop(3);
}
}
}
Frame 45
stop();
Frame 46
if (carSelected == "muscle") {
myCar.gotoAndStop(4);
Course_mc.carEnemi1.gotoAndStop(3);
Course_mc.carEnemi2.gotoAndStop(2);
Course_mc.carEnemi3.gotoAndStop(1);
} else if (carSelected == "leger") {
myCar.gotoAndStop(3);
Course_mc.carEnemi1.gotoAndStop(2);
Course_mc.carEnemi2.gotoAndStop(4);
Course_mc.carEnemi3.gotoAndStop(1);
} else if (carSelected == "prototype") {
myCar.gotoAndStop(2);
Course_mc.carEnemi1.gotoAndStop(3);
Course_mc.carEnemi2.gotoAndStop(4);
Course_mc.carEnemi3.gotoAndStop(1);
} else if (carSelected == "sport") {
myCar.gotoAndStop(1);
Course_mc.carEnemi1.gotoAndStop(3);
Course_mc.carEnemi2.gotoAndStop(2);
Course_mc.carEnemi3.gotoAndStop(4);
}
_global.modifMaxSpeedComp = -5;
_global.modifAccelComp = -0.12;
_global.modifhandingComp = -1.2;
Instance of Symbol 834 MovieClip "Course_mc" in Frame 46
onClipEvent (load) {
update = function () {
var _local1 = _parent;
var _local2 = this;
SecondX = _local1.myCar._x - 300;
if ((_local2._x < -100) and (_local2._x > -1910)) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
} else if (_local2._x >= -100) {
if (_local1.myCar._x > 300) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
}
} else if (_local1.myCar._x < 300) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
}
SecondY = _local1.myCar._y - 200;
_local1.myCar._y = 200;
_local2._y = _local2._y - SecondY;
};
update();
}
Instance of Symbol 836 MovieClip "CoursePS" in Frame 46
onClipEvent (load) {
MaxPuce = 35;
ToSlow = new Array();
ToSlow = [10, 14, 17, 18, 19, 22, 25, 26, 1, 2, 4, 5, 8, 9];
ToBrake = new Array();
ToBrake = [11, 13, 23, 24, 29, 30, 3];
enemi = 4;
laps = 4;
_parent.cadre.positionMN.text = enemi;
_parent.cadre.positionM.text = enemi;
_parent.cadre.nbreLaps.text = laps;
}
Instance of Symbol 833 MovieClip "myCar" in Frame 46
onClipEvent (load) {
nb = 1;
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "reverse";
nDirection = this._rotation;
nDirectionCar = this._rotation - 180;
lostControl = false;
RaceOver = false;
nDirectionImpact = 0;
lap = 1;
LastCast = 150;
MagieBar = 100;
replenishCount = 0;
checkCount = 1;
MayTurn = true;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (RaceOver == false) {
if (lostControl == false) {
if (_parent.KeyListener.vArrowUP == true) {
_parent.Controler.fAccelerate(this);
} else if (_parent.KeyListener.vArrowDOWN == true) {
_parent.Controler.fBackward(this);
} else {
_parent.Controler.fDeccelerate(this);
}
if (_parent.KeyListener.vArrowLEFT == true) {
_parent.Controler.CheckDirection(this, "left");
if (this.kart._currentframe == 1) {
this.kart.gotoAndStop("left");
}
}
if (_parent.KeyListener.vArrowRIGHT == true) {
_parent.Controler.CheckDirection(this, "right");
if (this.kart._currentframe == 1) {
this.kart.gotoAndStop("right");
}
}
if (_parent.KeyListener.vArrowSPACE == true) {
_parent.Controler.EmergencyBrake(this);
}
if ((nRotation > 2) or (nRotation < -2)) {
_parent.Controler.CheckRotation(this);
}
if (LastCast > 25) {
if (_parent.KeyListener.vArrowOne == true) {
if (MagieBar > 20) {
_parent.Magik.IMcastingSpell(this, 1, 0);
MagieBar = MagieBar - 20;
LastCast = 0;
}
}
if (_parent.KeyListener.vArrowTwo == true) {
if (MagieBar > 35) {
_parent.Magik.IMcastingSpell(this, 2, 0);
MagieBar = MagieBar - 35;
LastCast = 0;
}
}
if (_parent.KeyListener.vArrowThree == true) {
if (MagieBar > 25) {
_parent.Magik.IMcastingSpell(this, 3, 0);
MagieBar = MagieBar - 25;
LastCast = 0;
}
}
if (MagieBar < 101) {
replenishCount++;
if (replenishCount == 12) {
replenishCount = 0;
MagieBar++;
}
}
} else {
LastCast++;
}
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Course_mc.update();
} else {
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.SpinUp(this);
_parent.Course_mc.update();
}
} else if (RaceOver == true) {
if (lostControl == false) {
_parent.Controler.fDeccelerate(this);
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
} else {
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.SpinUp(this);
}
}
}
}
Instance of Symbol 850 MovieClip "speakerMot" in Frame 46
onClipEvent (load) {
this.createEmptyMovieClip("Moteur", 1);
Moteur = new Sound("Moteur");
Moteur.attachSound("moteur");
Moteur.setVolume(20);
this.createEmptyMovieClip("Jump", 2);
Jump = new Sound("Jump");
Jump.attachSound("jump");
Jump.setVolume(60);
StartMoteur = function () {
Moteur.start(0, 9999999);
};
raiseVol = function () {
if (Moteur.getVolume() < 100) {
Moteur.setVolume(Moteur.getVolume() + 2);
}
};
lowerVol = function () {
if (Moteur.getVolume() > 40) {
Moteur.setVolume(Moteur.getVolume() - 2);
}
};
Land = function () {
Jump.start(0, 1);
};
StopAll = function () {
Jump.stop();
Moteur.stop();
};
MoteurIniVol = function () {
Moteur.setVolume(20);
};
}
Instance of Symbol 1049 MovieClip "cadre" in Frame 46
onClipEvent (load) {
this.gotoAndStop(String(_parent.carSelected));
positionMN.text = _parent.CoursePS.enemi;
positionM.text = _parent.CoursePS.enemi;
nbreLaps.text = _parent.CoursePS.laps;
TempdeCourse = 0;
time.text = "0:00";
}
onClipEvent (enterFrame) {
if (_parent.myCar.lap <= _parent.CoursePS.laps) {
if (!_global.vPaused) {
TempdeCourse = TempdeCourse + 2;
min = Math.floor(TempdeCourse / 3600);
sec = Math.floor((TempdeCourse - (min * 3600)) / 60);
if (sec < 10) {
sec = "0" + sec;
}
time.text = (min + ":") + sec;
}
playerLap.text = _parent.myCar.lap;
nFeather.text = _global.feathers;
nFeatherN.text = _global.feathers;
pointMe = (_parent.myCar.lap * _parent.CoursePS.MaxPuce) + _parent.myCar.nb;
pointE1 = (_parent.Course_mc.CarEnemi1.lap * _parent.CoursePS.MaxPuce) + _parent.Course_mc.CarEnemi1.nb;
pointE2 = (_parent.Course_mc.CarEnemi2.lap * _parent.CoursePS.MaxPuce) + _parent.Course_mc.CarEnemi2.nb;
pointE3 = (_parent.Course_mc.CarEnemi3.lap * _parent.CoursePS.MaxPuce) + _parent.Course_mc.CarEnemi3.nb;
myPosition = 1;
if (pointE1 >= pointMe) {
myPosition++;
}
if (pointE2 >= pointMe) {
myPosition++;
}
if (pointE3 >= pointMe) {
myPosition++;
}
mpositionMN.text = myPosition;
mpositionM.text = myPosition;
Player1Position = 1;
if (pointMe >= pointE1) {
Player1Position++;
}
if (pointE2 >= pointE1) {
Player1Position++;
}
if (pointE3 >= pointE1) {
Player1Position++;
}
Player2Position = 1;
if (pointMe >= pointE2) {
Player2Position++;
}
if (pointE1 >= pointE2) {
Player2Position++;
}
if (pointE3 >= pointE2) {
Player2Position++;
}
Player3Position = 1;
if (pointMe >= pointE3) {
Player3Position++;
}
if (pointE1 >= pointE3) {
Player3Position++;
}
if (pointE2 >= pointE3) {
Player3Position++;
}
if (myPosition == 1) {
if (_global.modifMaxSpeedComp < 2) {
_global.modifMaxSpeedComp = _global.modifMaxSpeedComp + 0.1;
_global.modifAccelComp = _global.modifAccelComp + 0.001;
_global.modifhandingComp = _global.modifhandingComp + 0.01;
}
} else if (myPosition == _parent.CoursePS.enemi) {
if (_global.modifMaxSpeedComp > -7) {
_global.modifMaxSpeedComp = _global.modifMaxSpeedComp - 0.1;
_global.modifAccelComp = _global.modifAccelComp - 0.001;
_global.modifhandingComp = _global.modifhandingComp - 0.01;
}
}
} else if (_parent.myCar.nb == 3) {
if (_parent.myCar.RaceOver != true) {
_global.vPaused = true;
_parent.myCar.RaceOver = true;
_parent.countDown.gotoAndPlay("finish");
}
}
}
Frame 53
stop();
Frame 54
if (carSelected == "muscle") {
myCar.gotoAndStop(4);
Course_mc.carEnemi1.gotoAndStop(3);
Course_mc.carEnemi2.gotoAndStop(2);
Course_mc.carEnemi3.gotoAndStop(1);
} else if (carSelected == "leger") {
myCar.gotoAndStop(3);
Course_mc.carEnemi1.gotoAndStop(2);
Course_mc.carEnemi2.gotoAndStop(4);
Course_mc.carEnemi3.gotoAndStop(1);
} else if (carSelected == "prototype") {
myCar.gotoAndStop(2);
Course_mc.carEnemi1.gotoAndStop(3);
Course_mc.carEnemi2.gotoAndStop(4);
Course_mc.carEnemi3.gotoAndStop(1);
} else if (carSelected == "sport") {
myCar.gotoAndStop(1);
Course_mc.carEnemi1.gotoAndStop(3);
Course_mc.carEnemi2.gotoAndStop(2);
Course_mc.carEnemi3.gotoAndStop(4);
}
_global.modifMaxSpeedComp = 0;
_global.modifAccelComp = 0;
_global.modifhandingComp = 0;
Instance of Symbol 1051 MovieClip "Course_mc" in Frame 54
onClipEvent (load) {
update = function () {
var _local1 = _parent;
var _local2 = this;
SecondX = _local1.myCar._x - 300;
if ((_local2._x < -100) and (_local2._x > -1910)) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
} else if (_local2._x >= -100) {
if (_local1.myCar._x > 300) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
}
} else if (_local1.myCar._x < 300) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
}
SecondY = _local1.myCar._y - 200;
_local1.myCar._y = 200;
_local2._y = _local2._y - SecondY;
};
update();
}
Instance of Symbol 836 MovieClip "CoursePS" in Frame 54
onClipEvent (load) {
MaxPuce = 35;
ToSlow = new Array();
ToSlow = [3, 4, 5, 7, 8, 9, 10, 15, 17, 16, 21, 22, 23, 24, 27, 30, 31];
ToBrake = new Array();
ToBrake = [6, 20, 29];
enemi = 4;
laps = 8;
_parent.cadre.positionMN.text = enemi;
_parent.cadre.positionM.text = enemi;
_parent.cadre.nbreLaps.text = laps;
}
Instance of Symbol 833 MovieClip "myCar" in Frame 54
onClipEvent (load) {
nb = 1;
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
RaceOver = false;
nDirectionImpact = 0;
lap = 1;
LastCast = 150;
MagieBar = 100;
replenishCount = 0;
checkCount = 1;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (RaceOver == false) {
if (lostControl == false) {
if (_parent.KeyListener.vArrowUP == true) {
_parent.Controler.fAccelerate(this);
} else if (_parent.KeyListener.vArrowDOWN == true) {
_parent.Controler.fBackward(this);
} else {
_parent.Controler.fDeccelerate(this);
}
if (_parent.KeyListener.vArrowLEFT == true) {
_parent.Controler.CheckDirection(this, "left");
if (this.kart._currentframe == 1) {
this.kart.gotoAndStop("left");
}
}
if (_parent.KeyListener.vArrowRIGHT == true) {
_parent.Controler.CheckDirection(this, "right");
if (this.kart._currentframe == 1) {
this.kart.gotoAndStop("right");
}
}
if (_parent.KeyListener.vArrowSPACE == true) {
_parent.Controler.EmergencyBrake(this);
}
if ((nRotation > 2) or (nRotation < -2)) {
_parent.Controler.CheckRotation(this);
}
if (LastCast > 25) {
if (_parent.KeyListener.vArrowOne == true) {
if (MagieBar > 20) {
_parent.Magik.IMcastingSpell(this, 1, 0);
MagieBar = MagieBar - 20;
LastCast = 0;
}
}
if (_parent.KeyListener.vArrowTwo == true) {
if (MagieBar > 35) {
_parent.Magik.IMcastingSpell(this, 2, 0);
MagieBar = MagieBar - 35;
LastCast = 0;
}
}
if (_parent.KeyListener.vArrowThree == true) {
if (MagieBar > 25) {
_parent.Magik.IMcastingSpell(this, 3, 0);
MagieBar = MagieBar - 25;
LastCast = 0;
}
}
if (MagieBar < 101) {
replenishCount++;
if (replenishCount == 12) {
replenishCount = 0;
MagieBar++;
}
}
} else {
LastCast++;
}
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Course_mc.update();
} else {
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.SpinUp(this);
_parent.Course_mc.update();
}
} else if (RaceOver == true) {
if (lostControl == false) {
_parent.Controler.fDeccelerate(this);
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
} else {
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.SpinUp(this);
}
}
}
}
Frame 60
stop();
Frame 61
if (carSelected == "muscle") {
myCar.gotoAndStop(4);
Course_mc.carEnemi1.gotoAndStop(position1);
Course_mc.carEnemi2.gotoAndStop(position2);
} else if (carSelected == "leger") {
myCar.gotoAndStop(3);
Course_mc.carEnemi1.gotoAndStop(position1);
Course_mc.carEnemi2.gotoAndStop(position2);
} else if (carSelected == "prototype") {
myCar.gotoAndStop(2);
Course_mc.carEnemi1.gotoAndStop(position1);
Course_mc.carEnemi2.gotoAndStop(position2);
} else if (carSelected == "sport") {
myCar.gotoAndStop(1);
Course_mc.carEnemi1.gotoAndStop(position1);
Course_mc.carEnemi2.gotoAndStop(position2);
}
_global.modifMaxSpeedComp = -4;
_global.modifAccelComp = -0.1;
_global.modifhandingComp = -1;
Instance of Symbol 1194 MovieClip "Course_mc" in Frame 61
onClipEvent (load) {
update = function () {
var _local1 = _parent;
var _local2 = this;
SecondX = _local1.myCar._x - 300;
if ((_local2._x < -30) and (_local2._x > -1975)) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
} else if (_local2._x >= -30) {
if (_local1.myCar._x > 300) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
}
} else if (_local1.myCar._x < 300) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
}
SecondY = _local1.myCar._y - 200;
_local1.myCar._y = 200;
_local2._y = _local2._y - SecondY;
};
update();
}
Instance of Symbol 836 MovieClip "CoursePS" in Frame 61
onClipEvent (load) {
MaxPuce = 59;
ToSlow = new Array();
ToSlow = [4, 5, 6, 8, 9, 10, 11, 12, 20, 21, 22, 23, 24, 25, 26, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 51, 53, 54, 55];
ToBrake = new Array();
ToBrake = [2, 3, 7, 18, 19, 32, 52];
enemi = 3;
laps = 3;
_parent.cadre.positionMN.text = enemi;
_parent.cadre.positionM.text = enemi;
_parent.cadre.nbreLaps.text = laps;
}
Instance of Symbol 833 MovieClip "myCar" in Frame 61
onClipEvent (load) {
nb = 1;
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
jumping = false;
nDirectionImpact = 0;
lap = 1;
MagieBar = 100;
replenishCount = 0;
LastCast = 25;
RaceOver = false;
checkCount = 1;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (RaceOver == false) {
if ((lostControl == false) and (jumping == false)) {
if (_parent.KeyListener.vArrowUP == true) {
_parent.Controler.fAccelerate(this);
} else if (_parent.KeyListener.vArrowDOWN == true) {
_parent.Controler.fBackward(this);
} else {
_parent.Controler.fDeccelerate(this);
}
if (_parent.KeyListener.vArrowLEFT == true) {
_parent.Controler.CheckDirection(this, "left");
}
if (_parent.KeyListener.vArrowRIGHT == true) {
_parent.Controler.CheckDirection(this, "right");
}
if (_parent.KeyListener.vArrowSPACE == true) {
_parent.Controler.EmergencyBrake(this);
}
if ((nRotation > 2) or (nRotation < -2)) {
_parent.Controler.CheckRotation(this);
}
if (LastCast > 25) {
if (_parent.KeyListener.vArrowOne == true) {
if (MagieBar > 20) {
_parent.Magik.IMcastingSpell(this, 1, 0);
MagieBar = MagieBar - 20;
LastCast = 0;
}
}
if (_parent.KeyListener.vArrowTwo == true) {
if (MagieBar > 35) {
_parent.Magik.IMcastingSpell(this, 2, 0);
MagieBar = MagieBar - 35;
LastCast = 0;
}
}
if (_parent.KeyListener.vArrowThree == true) {
if (MagieBar > 25) {
_parent.Magik.IMcastingSpell(this, 3, 0);
MagieBar = MagieBar - 25;
LastCast = 0;
}
}
if (MagieBar < 101) {
replenishCount++;
if (replenishCount == 12) {
replenishCount = 0;
MagieBar++;
}
}
} else {
LastCast++;
}
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Course_mc.update();
} else if ((lostControl == true) and (jumping == false)) {
_parent.Controler.ViewDirection(this);
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.SpinUp(this);
_parent.Course_mc.update();
} else if ((jumping == true) and (lostControl == false)) {
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.fJumping(this);
_parent.Course_mc.update();
} else {
_parent.Controler.fJumping(this);
_parent.Controler.SpinUp(this);
_parent.Course_mc.update();
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
}
} else if (RaceOver == true) {
if (lostControl == false) {
_parent.Controler.fDeccelerate(this);
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
} else {
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.SpinUp(this);
}
}
}
}
Frame 68
stop();
Frame 69
if (carSelected == "muscle") {
myCar.gotoAndStop(4);
Course_mc.carEnemi1.gotoAndStop(position1);
Course_mc.carEnemi2.gotoAndStop(position2);
} else if (carSelected == "leger") {
myCar.gotoAndStop(3);
Course_mc.carEnemi1.gotoAndStop(position1);
Course_mc.carEnemi2.gotoAndStop(position2);
} else if (carSelected == "prototype") {
myCar.gotoAndStop(2);
Course_mc.carEnemi1.gotoAndStop(position1);
Course_mc.carEnemi2.gotoAndStop(position2);
} else if (carSelected == "sport") {
myCar.gotoAndStop(1);
Course_mc.carEnemi1.gotoAndStop(position1);
Course_mc.carEnemi2.gotoAndStop(position2);
}
_global.modifMaxSpeedComp = -2;
_global.modifAccelComp = -0.06;
_global.modifhandingComp = 0;
Instance of Symbol 1196 MovieClip "Course_mc" in Frame 69
onClipEvent (load) {
update = function () {
var _local1 = _parent;
var _local2 = this;
SecondX = _local1.myCar._x - 300;
if ((_local2._x < -30) and (_local2._x > -1975)) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
} else if (_local2._x >= -30) {
if (_local1.myCar._x > 300) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
}
} else if (_local1.myCar._x < 300) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
}
SecondY = _local1.myCar._y - 200;
_local1.myCar._y = 200;
_local2._y = _local2._y - SecondY;
};
update();
}
Instance of Symbol 836 MovieClip "CoursePS" in Frame 69
onClipEvent (load) {
MaxPuce = 59;
ToSlow = new Array();
ToSlow = [1, 2, 3, 6, 11, 12, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 30, 31, 32, 37, 38, 39, 45, 46, 47, 50, 51, 54, 55, 56];
ToBrake = new Array();
ToBrake = [4, 14, 20, 33, 48, 52];
enemi = 3;
laps = 6;
_parent.cadre.positionMN.text = enemi;
_parent.cadre.positionM.text = enemi;
_parent.cadre.nbreLaps.text = laps;
}
Instance of Symbol 833 MovieClip "myCar" in Frame 69
onClipEvent (load) {
nb = 1;
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "reverse";
nDirection = this._rotation;
nDirectionCar = this._rotation - 90;
lostControl = false;
jumping = false;
nDirectionImpact = 0;
lap = 1;
MagieBar = 100;
replenishCount = 0;
LastCast = 25;
RaceOver = false;
checkCount = 1;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (RaceOver == false) {
if ((lostControl == false) and (jumping == false)) {
if (_parent.KeyListener.vArrowUP == true) {
_parent.Controler.fAccelerate(this);
} else if (_parent.KeyListener.vArrowDOWN == true) {
_parent.Controler.fBackward(this);
} else {
_parent.Controler.fDeccelerate(this);
}
if (_parent.KeyListener.vArrowLEFT == true) {
_parent.Controler.CheckDirection(this, "left");
}
if (_parent.KeyListener.vArrowRIGHT == true) {
_parent.Controler.CheckDirection(this, "right");
}
if (_parent.KeyListener.vArrowSPACE == true) {
_parent.Controler.EmergencyBrake(this);
}
if ((nRotation > 2) or (nRotation < -2)) {
_parent.Controler.CheckRotation(this);
}
if (LastCast > 25) {
if (_parent.KeyListener.vArrowOne == true) {
if (MagieBar > 20) {
_parent.Magik.IMcastingSpell(this, 1, 0);
MagieBar = MagieBar - 20;
LastCast = 0;
}
}
if (_parent.KeyListener.vArrowTwo == true) {
if (MagieBar > 35) {
_parent.Magik.IMcastingSpell(this, 2, 0);
MagieBar = MagieBar - 35;
LastCast = 0;
}
}
if (_parent.KeyListener.vArrowThree == true) {
if (MagieBar > 25) {
_parent.Magik.IMcastingSpell(this, 3, 0);
MagieBar = MagieBar - 25;
LastCast = 0;
}
}
if (MagieBar < 101) {
replenishCount++;
if (replenishCount == 12) {
replenishCount = 0;
MagieBar++;
}
}
} else {
LastCast++;
}
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Course_mc.update();
} else if ((lostControl == true) and (jumping == false)) {
_parent.Controler.ViewDirection(this);
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.SpinUp(this);
_parent.Course_mc.update();
} else if ((jumping == true) and (lostControl == false)) {
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.fJumping(this);
_parent.Course_mc.update();
} else {
_parent.Controler.fJumping(this);
_parent.Controler.SpinUp(this);
_parent.Course_mc.update();
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
}
} else if (RaceOver == true) {
if (lostControl == false) {
_parent.Controler.fDeccelerate(this);
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
} else {
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.SpinUp(this);
}
}
}
}
Frame 75
stop();
Frame 76
if (carSelected == "muscle") {
myCar.gotoAndStop(4);
Course_mc.carEnemi1.gotoAndStop(position1);
} else if (carSelected == "leger") {
myCar.gotoAndStop(3);
Course_mc.carEnemi1.gotoAndStop(position1);
} else if (carSelected == "prototype") {
myCar.gotoAndStop(2);
Course_mc.carEnemi1.gotoAndStop(position1);
} else if (carSelected == "sport") {
myCar.gotoAndStop(1);
Course_mc.carEnemi1.gotoAndStop(position1);
}
_global.modifMaxSpeedComp = -5;
_global.modifAccelComp = -0.12;
_global.modifhandingComp = -1.2;
Instance of Symbol 1320 MovieClip "Course_mc" in Frame 76
onClipEvent (load) {
update = function () {
var _local1 = _parent;
var _local2 = this;
SecondX = _local1.myCar._x - 300;
if ((_local2._x < -84) and (_local2._x > -1850)) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
_local1.hideMovie._x = _local1.hideMovie._x - SecondX;
} else if (_local2._x >= -84) {
if (_local1.myCar._x > 300) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
_local1.hideMovie._x = _local1.hideMovie._x - SecondX;
}
} else if (_local1.myCar._x < 300) {
_local1.myCar._x = 300;
_local2._x = _local2._x - SecondX;
_local1.hideMovie._x = _local1.hideMovie._x - SecondX;
}
SecondY = _local1.myCar._y - 200;
_local1.myCar._y = 200;
_local2._y = _local2._y - SecondY;
_local1.hideMovie._y = _local1.hideMovie._y - SecondY;
};
update();
}
Instance of Symbol 836 MovieClip "CoursePS" in Frame 76
onClipEvent (load) {
MaxPuce = 50;
ToSlow = new Array();
ToSlow = [10, 11, 13, 19, 20, 25, 26, 27, 28, 31, 37, 38, 41, 42, 46, 47, 48, 49];
ToBrake = new Array();
ToBrake = [3, 4, 5, 6, 7, 8, 9, 14, 15, 26, 21, 22, 32, 33, 34];
enemi = 2;
laps = 2;
_parent.cadre.positionMN.text = enemi;
_parent.cadre.positionM.text = enemi;
_parent.cadre.nbreLaps.text = laps;
}
Instance of Symbol 833 MovieClip "myCar" in Frame 76
onClipEvent (load) {
nb = 1;
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
jumping = false;
nDirectionImpact = 0;
lap = 1;
MagieBar = 100;
replenishCount = 0;
LastCast = 25;
RaceOver = false;
checkCount = 1;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (RaceOver == false) {
if ((lostControl == false) and (jumping == false)) {
if (_parent.KeyListener.vArrowUP == true) {
_parent.Controler.fAccelerate(this);
} else if (_parent.KeyListener.vArrowDOWN == true) {
_parent.Controler.fBackward(this);
} else {
_parent.Controler.fDeccelerate(this);
}
if (_parent.KeyListener.vArrowLEFT == true) {
_parent.Controler.CheckDirection(this, "left");
}
if (_parent.KeyListener.vArrowRIGHT == true) {
_parent.Controler.CheckDirection(this, "right");
}
if (_parent.KeyListener.vArrowSPACE == true) {
_parent.Controler.EmergencyBrake(this);
}
if ((nRotation > 2) or (nRotation < -2)) {
_parent.Controler.CheckRotation(this);
}
if (LastCast > 25) {
if (_parent.KeyListener.vArrowOne == true) {
if (MagieBar > 20) {
_parent.Magik.IMcastingSpell(this, 1, 0);
MagieBar = MagieBar - 20;
LastCast = 0;
}
}
if (_parent.KeyListener.vArrowTwo == true) {
if (MagieBar > 35) {
_parent.Magik.IMcastingSpell(this, 2, 0);
MagieBar = MagieBar - 35;
LastCast = 0;
}
}
if (_parent.KeyListener.vArrowThree == true) {
if (MagieBar > 25) {
_parent.Magik.IMcastingSpell(this, 3, 0);
MagieBar = MagieBar - 25;
LastCast = 0;
}
}
if (MagieBar < 101) {
replenishCount++;
if (replenishCount == 12) {
replenishCount = 0;
MagieBar++;
}
}
} else {
LastCast++;
}
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Course_mc.update();
} else if ((lostControl == true) and (jumping == false)) {
_parent.Controler.ViewDirection(this);
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.SpinUp(this);
_parent.Course_mc.update();
} else if ((jumping == true) and (lostControl == false)) {
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.fJumping(this);
_parent.Course_mc.update();
} else {
_parent.Controler.fJumping(this);
_parent.Controler.SpinUp(this);
_parent.Course_mc.update();
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
}
} else if (RaceOver == true) {
if (lostControl == false) {
_parent.Controler.fDeccelerate(this);
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
} else {
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.SpinUp(this);
}
}
}
}
Frame 83
stop();
Frame 84
if (carSelected == "muscle") {
myCar.gotoAndStop(4);
Course_mc.carEnemi1.gotoAndStop(position1);
} else if (carSelected == "leger") {
myCar.gotoAndStop(3);
Course_mc.carEnemi1.gotoAndStop(position1);
} else if (carSelected == "prototype") {
myCar.gotoAndStop(2);
Course_mc.carEnemi1.gotoAndStop(position1);
} else if (carSelected == "sport") {
myCar.gotoAndStop(1);
Course_mc.carEnemi1.gotoAndStop(position1);
}
_global.modifMaxSpeedComp = 0;
_global.modifAccelComp = 0.02;
_global.modifhandingComp = 1.2;
Instance of Symbol 1330 MovieClip "Course_mc" in Frame 84
onClipEvent (load) {
update = function () {
var _local1 = _parent;
SecondX = _local1.myCar._x - 300;
_local1.myCar._x = 300;
this._x = this._x - SecondX;
SecondY = _local1.myCar._y - 200;
_local1.myCar._y = 200;
this._y = this._y - SecondY;
};
update();
}
Instance of Symbol 836 MovieClip "CoursePS" in Frame 84
onClipEvent (load) {
MaxPuce = 50;
ToSlow = new Array();
ToSlow = [2, 3, 4, 5, 7, 9, 10, 16, 17, 18, 19, 20, 22, 23, 24, 25, 28, 29, 30, 31, 36, 37, 41, 42, 43, 45, 46, 47];
ToBrake = new Array();
ToBrake = [8, 15, 21, 27, 34, 35, 40, 44];
enemi = 2;
laps = 4;
_parent.cadre.positionMN.text = enemi;
_parent.cadre.positionM.text = enemi;
_parent.cadre.nbreLaps.text = laps;
}
Instance of Symbol 833 MovieClip "myCar" in Frame 84
onClipEvent (load) {
nb = 1;
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "reverse";
nDirection = this._rotation;
nDirectionCar = this._rotation - 90;
lostControl = false;
jumping = false;
nDirectionImpact = 0;
lap = 1;
MagieBar = 100;
replenishCount = 0;
LastCast = 25;
RaceOver = false;
checkCount = 1;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (RaceOver == false) {
if ((lostControl == false) and (jumping == false)) {
if (_parent.KeyListener.vArrowUP == true) {
_parent.Controler.fAccelerate(this);
} else if (_parent.KeyListener.vArrowDOWN == true) {
_parent.Controler.fBackward(this);
} else {
_parent.Controler.fDeccelerate(this);
}
if (_parent.KeyListener.vArrowLEFT == true) {
_parent.Controler.CheckDirection(this, "left");
}
if (_parent.KeyListener.vArrowRIGHT == true) {
_parent.Controler.CheckDirection(this, "right");
}
if (_parent.KeyListener.vArrowSPACE == true) {
_parent.Controler.EmergencyBrake(this);
}
if ((nRotation > 2) or (nRotation < -2)) {
_parent.Controler.CheckRotation(this);
}
if (LastCast > 25) {
if (_parent.KeyListener.vArrowOne == true) {
if (MagieBar > 20) {
_parent.Magik.IMcastingSpell(this, 1, 0);
MagieBar = MagieBar - 20;
LastCast = 0;
}
}
if (_parent.KeyListener.vArrowTwo == true) {
if (MagieBar > 35) {
_parent.Magik.IMcastingSpell(this, 2, 0);
MagieBar = MagieBar - 35;
LastCast = 0;
}
}
if (_parent.KeyListener.vArrowThree == true) {
if (MagieBar > 25) {
_parent.Magik.IMcastingSpell(this, 3, 0);
MagieBar = MagieBar - 25;
LastCast = 0;
}
}
if (MagieBar < 101) {
replenishCount++;
if (replenishCount == 12) {
replenishCount = 0;
MagieBar++;
}
}
} else {
LastCast++;
}
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Course_mc.update();
} else if ((lostControl == true) and (jumping == false)) {
_parent.Controler.ViewDirection(this);
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.SpinUp(this);
_parent.Course_mc.update();
} else if ((jumping == true) and (lostControl == false)) {
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.fJumping(this);
_parent.Course_mc.update();
} else {
_parent.Controler.fJumping(this);
_parent.Controler.SpinUp(this);
_parent.Course_mc.update();
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
}
} else if (RaceOver == true) {
if (lostControl == false) {
_parent.Controler.fDeccelerate(this);
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
} else {
if (checkCount == 2) {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
checkCount = 1;
} else {
checkCount++;
}
_parent.Controler.SpinUp(this);
}
}
}
}
Frame 90
stop();
Frame 91
_root.speakerMot.StopAll();
speaker.MusikIn = "Packaging";
speaker.gotoAndPlay("FadeOut");
Frame 96
stop();
Frame 97
_root.speakerMot.StopAll();
speaker.MusikIn = "Packaging";
speaker.gotoAndPlay("FadeOut");
Frame 102
stop();
Frame 111
stop();
Frame 112
_root.speakerMot.StopAll();
speaker.MusikIn = "Packaging";
speaker.gotoAndPlay("FadeOut");
Instance of Symbol 170 MovieClip "AlertPage" in Frame 112
onClipEvent (load) {
if ((_parent.cupChallenge == 1) && (_parent.bartogUnlok == false)) {
_parent.bartogUnlok = true;
_parent.firstCupPass = true;
_parent.GreaterChallengeUnlok = true;
_parent.DerbyUnlok = true;
_parent.ConceptArtUnlok = true;
this.cache.useHandCursor = false;
this.gotoAndStop("unlock");
} else {
this._visible = false;
}
}
Frame 121
stop();
Frame 122
if (carSelected == "muscle") {
myCar.gotoAndStop(4);
Course_mc.carEnemi1.gotoAndStop(3);
Course_mc.carEnemi2.gotoAndStop(2);
Course_mc.carEnemi3.gotoAndStop(1);
} else if (carSelected == "leger") {
myCar.gotoAndStop(3);
Course_mc.carEnemi1.gotoAndStop(2);
Course_mc.carEnemi2.gotoAndStop(4);
Course_mc.carEnemi3.gotoAndStop(1);
} else if (carSelected == "prototype") {
myCar.gotoAndStop(2);
Course_mc.carEnemi1.gotoAndStop(3);
Course_mc.carEnemi2.gotoAndStop(4);
Course_mc.carEnemi3.gotoAndStop(1);
} else if (carSelected == "sport") {
myCar.gotoAndStop(1);
Course_mc.carEnemi1.gotoAndStop(3);
Course_mc.carEnemi2.gotoAndStop(2);
Course_mc.carEnemi3.gotoAndStop(4);
}
Instance of Symbol 1395 MovieClip "Course_mc" in Frame 122
onClipEvent (load) {
update = function () {
var _local1 = _parent;
SecondX = _local1.myCar._x - 300;
_local1.myCar._x = 300;
this._x = this._x - SecondX;
SecondY = _local1.myCar._y - 200;
_local1.myCar._y = 200;
this._y = this._y - SecondY;
};
update();
}
Instance of Symbol 1396 MovieClip "myCar" in Frame 122
onClipEvent (load) {
nb = 2;
nSpeed = 0;
nRotation = 0;
pointage = 0;
CarRotation = this._rotation;
nSideFace = "reverse";
nDirection = this._rotation;
nDirectionCar = this._rotation - 180;
lostControl = false;
RaceOver = false;
nDirectionImpact = 0;
lap = 1;
LastCast = 150;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (RaceOver == false) {
if (lostControl == false) {
_parent.Controler.ViewDirection(this);
if (_parent.KeyListener.vArrowUP == true) {
_parent.Controler.fAccelerate(this);
} else if (_parent.KeyListener.vArrowDOWN == true) {
_parent.Controler.fBackward(this);
} else {
_parent.Controler.fDeccelerate(this);
}
if (_parent.KeyListener.vArrowLEFT == true) {
_parent.Controler.CheckDirection(this, "left");
if (this.kart._currentframe == 1) {
this.kart.gotoAndStop("left");
}
}
if (_parent.KeyListener.vArrowRIGHT == true) {
_parent.Controler.CheckDirection(this, "right");
if (this.kart._currentframe == 1) {
this.kart.gotoAndStop("right");
}
}
if (_parent.KeyListener.vArrowSPACE == true) {
_parent.Controler.EmergencyBrake(this);
}
if ((nRotation > 2) or (nRotation < -2)) {
_parent.Controler.CheckRotation(this);
}
LastCast++;
if (_parent.KeyListener.vArrowOne == true) {
if (LastCast > 150) {
_parent.Magik.IMcastingSpell(this, 1, 0);
LastCast = 125;
}
}
if (_parent.KeyListener.vArrowTwo == true) {
if (LastCast > 150) {
_parent.Magik.IMcastingSpell(this, 2, 0);
LastCast = 125;
}
}
if (_parent.KeyListener.vArrowThree == true) {
if (LastCast > 150) {
_parent.Magik.IMcastingSpell(this, 3, 0);
LastCast = 125;
}
}
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
_parent.Course_mc.update();
} else {
_parent.Controler.ViewDirection(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
_parent.ControlerHT.checkHutte(this);
_parent.Controler.SpinUp(this);
_parent.Course_mc.update();
}
} else if (RaceOver == true) {
if (lostControl == false) {
_parent.Controler.fDeccelerate(this);
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
} else {
_parent.ControlerHT.CheckHitTest(this, "Itsme", 0);
_parent.Controler.SpinUp(this);
}
}
}
}
Instance of Symbol 631 MovieClip "thearrow" in Frame 122
onClipEvent (load) {
this._visible = false;
this._x = 300;
this._y = 200;
}
Instance of Symbol 327 MovieClip "Controler" in Frame 122
onClipEvent (load) {
CheckDirection = function (me, vSide) {
var _local1 = me;
if (vSide == "left") {
if (_local1.nSpeed > _local1.nMaxSpeed) {
nTurn = -(Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 0.55)))) * 100) / 100);
} else if (_local1.nSpeed > (_local1.nMaxSpeed / 1.2)) {
nTurn = -(Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 0.85)))) * 100) / 100);
} else if (_local1.nSpeed > (_local1.nMaxSpeed / 2)) {
nTurn = -(Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 1.1)))) * 100) / 100);
} else if (_local1.nSpeed > (_local1.nMaxSpeed / 3)) {
nTurn = -(Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 1.4)))) * 100) / 100);
} else if (_local1.nSpeed > 5) {
nTurn = -(Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 2)))) * 100) / 100);
} else if (_local1.nSpeed > 0) {
nTurn = -2;
} else {
nTurn = -(Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 3)))) * 100) / 100);
}
if (_parent.KeyListener.vArrowDOWN == true) {
if (_local1.nRotation <= 20) {
_local1.nRotation = _local1.nRotation + (_local1.nSpeed / _local1.nGripFactor);
}
} else if (_local1.nRotation >= -50) {
_local1.nRotation = _local1.nRotation - (_local1.nSpeed / _local1.nGripFactor);
}
} else if (vSide == "right") {
if (_local1.nSpeed > _local1.nMaxSpeed) {
nTurn = Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 0.45)))) * 100) / 100;
} else if (_local1.nSpeed > (_local1.nMaxSpeed / 1.2)) {
nTurn = Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 0.85)))) * 100) / 100;
} else if (_local1.nSpeed > (_local1.nMaxSpeed / 2)) {
nTurn = Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 1.1)))) * 100) / 100;
} else if (_local1.nSpeed > (_local1.nMaxSpeed / 3)) {
nTurn = Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 1.4)))) * 100) / 100;
} else if (_local1.nSpeed > 5) {
nTurn = Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 2)))) * 100) / 100;
} else if (_local1.nSpeed > 0) {
nTurn = 2;
} else {
nTurn = Math.round((_local1.nHandling * (_local1.nSpeed / (_local1.nMaxSpeed / (_local1.nWeight * 3)))) * 100) / 100;
}
if (_parent.KeyListener.vArrowDOWN == true) {
if (_local1.nRotation >= -20) {
_local1.nRotation = _local1.nRotation - (_local1.nSpeed / _local1.nGripFactor);
}
} else if (_local1.nRotation <= 50) {
_local1.nRotation = _local1.nRotation + (_local1.nSpeed / _local1.nGripFactor);
}
}
_local1.CarRotation = _local1.CarRotation + nTurn;
_local1._rotation = Math.round(_local1.CarRotation + _local1.nRotation);
_local1.nDirection = _local1.nDirection + nTurn;
if (_local1.nDirection > 360) {
_local1.nDirection = _local1.nDirection - 360;
} else if (_local1.nDirection < -360) {
_local1.nDirection = _local1.nDirection + 360;
}
_local1.nDirectionCar = _local1.nDirection;
if (_local1.nDirection < -270) {
_local1.nSideFace = "right";
_local1.nDirectionCar = (270 + _local1.nDirection) + 90;
} else if (_local1.nDirection < -90) {
_local1.nSideFace = "reverse";
_local1.nDirectionCar = -90 - (_local1.nDirection + 90);
} else if (_local1.nDirection > 270) {
_local1.nSideFace = "right";
_local1.nDirectionCar = (_local1.nDirection - 270) - 90;
} else if (_local1.nDirection > 90) {
_local1.nSideFace = "reverse";
_local1.nDirectionCar = 90 - (_local1.nDirection - 90);
} else {
_local1.nSideFace = "right";
}
};
CheckRotation = function (me) {
var _local1 = me;
if (_local1.nRotation > 0) {
_local1.nRotation = _local1.nRotation - (_local1.nHandling * 1.5);
if (_local1.nRotation < 0) {
_local1.nRotation = 0;
}
if (_local1.nRotation > 15) {
if ((_local1.kart._currentframe == 1) or (_local1.kart._currentframe == 37)) {
_local1.kart.gotoAndPlay("exRight");
}
}
} else {
_local1.nRotation = _local1.nRotation + (_local1.nHandling * 1.5);
if (_local1.nRotation > 0) {
_local1.nRotation = 0;
}
if (_local1.nRotation < -15) {
if ((_local1.kart._currentframe == 1) or (_local1.kart._currentframe == 32)) {
_local1.kart.gotoAndPlay("exLeft");
}
}
}
if ((_local1.nRotation > -5) and (_local1.nRotation < 5)) {
if ((_local1.kart._currentframe == 15) or (_local1.kart._currentframe == 26)) {
_local1.kart.play();
}
}
_local1._rotation = Math.round(_local1.CarRotation + _local1.nRotation);
};
fAccelerate = function (me) {
var _local1 = me;
if (_local1.nSpeed < _local1.nMaxSpeed) {
if (_local1.nSpeed < 0) {
_local1.nSpeed = _local1.nSpeed + (Math.round(_local1.nAccel * 100) / 100);
} else {
_local1.nSpeed = _local1.nSpeed + (Math.round((_local1.nAccel / 2) * 100) / 100);
}
}
if (_local1.nSpeed < (_local1.nMaxSpeed / 2)) {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * _local1.nWeight;
} else {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.8);
}
_local1.vFoward = Math.round(_local1.vFoward * 100) / 100;
if (_local1.nSideFace == "right") {
if (_local1.nDirectionCar >= 0) {
_local1.LastMoveX = Math.round((((90 - _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
} else {
_local1.LastMoveX = Math.round((((90 + _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
}
} else if (_local1.nDirectionCar >= 0) {
_local1.LastMoveX = (Math.round((((90 - _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100) * -1;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
} else {
_local1.LastMoveX = (Math.round((((90 + _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100) * -1;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
}
};
fBackward = function (me) {
var _local1 = me;
if (_local1.nSpeed > (-(_local1.nMaxSpeed / 2))) {
if (_local1.nSpeed > 0) {
if (_local1.nSpeed > (_local1.nMaxSpeed / 2)) {
_local1.nSpeed = _local1.nSpeed - (Math.round((_local1.nAccel * 2) * 100) / 100);
} else {
_local1.nSpeed = _local1.nSpeed - (Math.round(_local1.nAccel * 100) / 100);
}
} else {
_local1.nSpeed = _local1.nSpeed - (Math.round((_local1.nAccel / 4) * 100) / 100);
}
}
_local1.kart.gotoAndStop(1);
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.9);
_local1.vFoward = Math.round(_local1.vFoward * 100) / 100;
if (_local1.nSideFace == "right") {
if (_local1.nDirectionCar >= 0) {
_local1.LastMoveX = Math.round((((90 - _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
} else {
_local1.LastMoveX = Math.round((((90 + _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
}
} else if (_local1.nDirectionCar >= 0) {
_local1.LastMoveX = (Math.round((((90 - _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100) * -1;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
} else {
_local1.LastMoveX = (Math.round((((90 + _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100) * -1;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
}
};
fDeccelerate = function (me) {
var _local1 = me;
if (_local1.nSpeed > 0) {
if (_local1.nSpeed > 1) {
_local1.nSpeed = _local1.nSpeed - (Math.round((_local1.nAccel / 2) * 100) / 100);
if (_local1.nSpeed < (_local1.nMaxSpeed / 2)) {
if (Math.abs(_local1.nRotation) > 30) {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.7);
} else {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.9);
}
} else if (Math.abs(_local1.nRotation) > 30) {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.5);
} else {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.7);
}
} else {
_local1.nSpeed = 0;
}
} else if (_local1.nSpeed < 0) {
_local1.nSpeed = _local1.nSpeed + (Math.round((_local1.nAccel / 2) * 100) / 100);
if (Math.abs(_local1.nRotation) > 30) {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.7);
} else {
_local1.vFoward = (_local1.nSpeed * _local1.nAccel) * (_local1.nWeight * 0.9);
}
}
if (_local1.nSpeed != 0) {
_local1.vFoward = Math.round(_local1.vFoward * 100) / 100;
if ((_local1.nSideFace == "right") and (_local1.ModeSmash != "wall")) {
if (_local1.nDirectionCar >= 0) {
_local1.LastMoveX = Math.round((((90 - _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
} else {
_local1.LastMoveX = Math.round((((90 + _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
}
} else if (_local1.ModeSmash != "wall") {
if (_local1.nDirectionCar >= 0) {
_local1.LastMoveX = (Math.round((((90 - _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100) * -1;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
} else {
_local1.LastMoveX = (Math.round((((90 + _local1.nDirectionCar) * _local1.vFoward) / 90) * 100) / 100) * -1;
_local1._x = _local1._x + _local1.LastMoveX;
_local1.LastMoveY = Math.round(((_local1.nDirectionCar * _local1.vFoward) / 90) * 100) / 100;
_local1._y = _local1._y + _local1.LastMoveY;
}
} else {
_local1._x = _local1._x - _local1.LastMoveX;
_local1._y = _local1._y - _local1.LastMoveY;
}
}
};
EmergencyBrake = function (me) {
var _local1 = me;
if (_local1.nSpeed > 0.5) {
_local1.nSpeed = _local1.nSpeed - (_local1.nHandling / (_local1.nWeight * _local1.nWeight));
if (_local1.nSpeed < 0.5) {
_local1.nSpeed = 0.5;
}
_local1.nDirection = _local1.nDirection - (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1.nDirectionCar = _local1.nDirectionCar - (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1.nRotation = _local1.nRotation - (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1.CarRotation = _local1.CarRotation - (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1._rotation = Math.round(_local1.CarRotation + _local1.nRotation);
} else if (_local1.nSpeed < -0.5) {
_local1.nSpeed = _local1.nSpeed + (_local1.nHandling / (_local1.nWeight * _local1.nWeight));
if (_local1.nSpeed > 0.5) {
_local1.nSpeed = 0.5;
}
_local1.nDirection = _local1.nDirection + (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1.nDirectionCar = _local1.nDirectionCar + (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1.nRotation = _local1.nRotation + (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1.CarRotation = _local1.CarRotation + (-(((_local1.nSpeed / _local1.nWeight) * _local1.nWeight) / 10));
_local1._rotation = Math.round(_local1.CarRotation + _local1.nRotation);
}
};
SpinUp = function (me) {
var _local1 = me;
if (_local1.nSpeed < -2) {
_local1.nSpeed = _local1.nSpeed + (Math.round(_local1.nAccel * 200) / 100);
if (_local1.nSpeed < -10) {
}
fDeccelerate(_local1);
} else if (_local1.nSpeed > 2) {
_local1.nSpeed = _local1.nSpeed - (Math.round(_local1.nAccel * 200) / 100);
if (_local1.nSpeed > 10) {
}
fDeccelerate(_local1);
}
if ((_local1.nSpeed < 5) and (_local1.nSpeed > -5)) {
_local1.perso1.gotoAndStop("Idle");
_local1.perso2.gotoAndStop("Idle");
_local1.ModeSmash = "ok";
_local1.nSpeed = 0;
_local1.lostControl = false;
_local1.nRotation = 0;
_local1.AngleACoisir = true;
_local1.CarRotation = _local1._rotation;
_local1.nDirection = _local1._rotation;
fAccelerate(_local1);
CheckDirection(_local1, "left");
}
};
ViewDirection = function (me) {
var _local1 = me;
vBoundsMe = _local1.getBounds(_parent.Course_mc);
_local1.x = _local1._parent.Course_mc.Xtofind - ((vBoundsMe.xMax + vBoundsMe.xMin) / 2);
_local1.y = _local1._parent.Course_mc.Ytofind - ((vBoundsMe.yMax + vBoundsMe.yMin) / 2);
_local1.angleRot = Math.atan2(_local1.y, _local1.x);
_local1.angleRot = (_local1.angleRot * 180) / Math.PI;
if (_local1.angleRot < 0) {
_local1.angleRot = _local1.angleRot * -1;
_local1.angleTemp = 180 - _local1.angleRot;
_local1.angleRot = 180 + _local1.angleTemp;
}
if (_local1.angleRot < 0) {
_local1.angleRot = _local1.angleRot + 360;
}
_local1.angleAchieve = _local1.nDirection;
if (_local1.angleAchieve < 0) {
_local1.angleAchieve = _local1.angleAchieve + 360;
}
if (_local1._parent.thearrow._visible == false) {
_local1._parent.thearrow._visible = true;
}
_local1._parent.thearrow._rotation = _local1.angleRot;
};
LoseFeathers = function (me) {
var _local1 = _parent;
myNum = 1000 + random(10000);
duplicateMovieClip (_local1.Course_mc.feathers, "feather" + myNum, -myNum);
posToThef = me.getBounds(_local1.Course_mc);
_local1.Course_mc["feather" + myNum].gotoAndStop(3);
_local1.Course_mc["feather" + myNum]._x = (posToThef.xMax + posToThef.xMin) / 2;
_local1.Course_mc["feather" + myNum]._y = (posToThef.yMax + posToThef.yMin) / 2;
};
fJumping = function (me) {
var _local1 = me;
_local1._x = _local1._x + _local1.LastMoveX;
_local1._y = _local1._y + _local1.LastMoveY;
_local1.nbreOfPass++;
if (_local1.nbreOfPass <= (_local1.nbreOfPassMax / 2)) {
_local1._xscale = _local1._xscale + 2;
_local1._yscale = _local1._yscale + 2;
} else if (_local1.nbreOfPass > (_local1.nbreOfPassMax / 2)) {
_local1._xscale = _local1._xscale - 2;
_local1._yscale = _local1._yscale - 2;
}
if (_local1.nbreOfPass == _local1.nbreOfPassMax) {
_local1._xscale = _local1.myXscale;
_local1._yscale = _local1.myYscale;
_local1.perso1.gotoAndStop("Idle");
_local1.perso2.gotoAndStop("Idle");
_local1.jumping = false;
}
};
}
Instance of Symbol 329 MovieClip "ControlerHT" in Frame 122
onClipEvent (load) {
MathDistance = function (x1, y1, x2, y2) {
return(Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)));
};
FoundAName = function (me) {
var _local1 = me;
theXcoord = Math.round(_local1._x / 10);
theYcoord = Math.round(_local1._y / 10);
if (_parent.Course_mc[(("" + theXcoord) + theYcoord) + "1"]._currentframe == undefined) {
_local1._name = (String(theXcoord) + String(theYcoord)) + "1";
} else if (_parent.Course_mc[(("" + theXcoord) + theYcoord) + "2"]._currentframe == undefined) {
_local1._name = (String(theXcoord) + String(theYcoord)) + "2";
} else {
_local1.gotoAndStop("off");
}
};
this.createEmptyMovieClip("BigCrash", 1);
this.createEmptyMovieClip("SmallCrash1", 2);
this.createEmptyMovieClip("Feathers", 3);
this.createEmptyMovieClip("Hutte", 4);
this.createEmptyMovieClip("Boost", 5);
this.createEmptyMovieClip("Bouet", 6);
Bouet = new Sound("Bouet");
Bouet.attachSound("bouet");
SmallCrash1 = new Sound("SmallCrash1");
SmallCrash1.attachSound("small");
BigCrash = new Sound("BigCrash");
BigCrash.attachSound("big");
Feathers = new Sound("Feathers");
Feathers.attachSound("feathers");
Hutte = new Sound("Hutte");
Hutte.attachSound("hutte");
Boost = new Sound("Boost");
Boost.attachSound("boost");
hitTestDone = false;
hitTestDoneEnemi = false;
CheckHitTest = function (me, WhatCar, WhatNumber) {
var _local1 = me;
var _local2 = _parent;
var _local3 = WhatCar;
if ((_local3 == "Itsme") and (_local1.lostControl == false)) {
meBoudsPos = _local1.getBounds(_local2.Course_mc);
_local1.car1hit = MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local2.Course_mc.CarEnemi1._x, _local2.Course_mc.CarEnemi1._y);
if (_local1.car1hit < 30) {
hitTestDone = true;
vC = 1;
}
_local1.car2hit = MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local2.Course_mc.CarEnemi2._x, _local2.Course_mc.CarEnemi2._y);
if (_local1.car2hit < 30) {
hitTestDone = true;
vC = 2;
}
_local1.car3hit = MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local2.Course_mc.CarEnemi3._x, _local2.Course_mc.CarEnemi3._y);
if (_local1.car3hit < 30) {
hitTestDone = true;
vC = 3;
}
if (hitTestDone) {
_local1.kart.gotoAndStop(1);
_local2.Course_mc["CarEnemi" + vC].kart.gotoAndStop(1);
hitTestDone = false;
SmallCrash1.start();
if (_local1.nSpeed < _local2.Course_mc["CarEnemi" + vC].nSpeed) {
_local1.nSpeed = _local2.Course_mc["CarEnemi" + vC].nSpeed + 5;
_local1.nDirectionCar = _local2.Course_mc["CarEnemi" + vC].nDirectionCar;
_local1.nSideFace = _local2.Course_mc["CarEnemi" + vC].nSideFace;
_local1.lostControl = true;
if (_global.feathers >= 1) {
_global.feathers--;
_local2.Controler.LoseFeathers(_local1);
}
if (_local2.Course_mc["CarEnemi" + vC].nSpeed > 0) {
_local2.Course_mc["CarEnemi" + vC].nSpeed = -10;
} else {
_local2.Course_mc["CarEnemi" + vC].nSpeed = 10;
}
_local2.Course_mc["CarEnemi" + vC].lostControl = true;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso1.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso2.gotoAndStop("PerteCtrl");
} else {
_local2.Course_mc["CarEnemi" + vC].nSpeed = _local1.nSpeed + 5;
_local2.Course_mc["CarEnemi" + vC].nSideFace = _local1.nSideFace;
_local2.Course_mc["CarEnemi" + vC].nDirectionCar = _local1.nDirectionCar;
_local2.Course_mc["CarEnemi" + vC].lostControl = true;
_local2.Controler.LoseFeathers(_local2.Course_mc["CarEnemi" + vC]);
if (_local1.nSpeed > 0) {
_local1.nSpeed = -10;
} else {
_local1.nSpeed = 10;
}
_local1.lostControl = true;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso1.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso2.gotoAndStop("PerteCtrl");
}
}
} else if (_local1.lostControl == false) {
if (WhatNumber != 1) {
_local1.car1hitE = MathDistance(_local1._x, _local1._y, _local2.Course_mc.CarEnemi1._x, _local2.Course_mc.CarEnemi1._y);
if (_local1.car1hitE < 20) {
hitTestDoneEnemi = true;
vC = 1;
}
}
if (WhatNumber != 2) {
_local1.car2hitE = MathDistance(_local1._x, _local1._y, _local2.Course_mc.CarEnemi2._x, _local2.Course_mc.CarEnemi2._y);
if (_local1.car2hitE < 20) {
hitTestDoneEnemi = true;
vC = 2;
}
}
if (WhatNumber != 3) {
_local1.car3hitE = MathDistance(_local1._x, _local1._y, _local2.Course_mc.CarEnemi3._x, _local2.Course_mc.CarEnemi3._y);
if (_local1.car3hitE < 20) {
hitTestDoneEnemi = true;
vC = 3;
}
}
if (hitTestDoneEnemi) {
_local1.kart.gotoAndStop(1);
_local2.Course_mc["CarEnemi" + vC].kart.gotoAndStop(1);
_local1.AngleACoisir = true;
_local2.Course_mc["CarEnemi" + vC].AngleACoisir = true;
hitTestDoneEnemi = false;
if (_local1.nSpeed < _local2.Course_mc["CarEnemi" + vC].nSpeed) {
_local1.nSpeed = _local2.Course_mc["CarEnemi" + vC].nSpeed + 5;
_local1.nSideFace = _local2.Course_mc["CarEnemi" + vC].nSideFace;
_local1.nDirectionCar = _local2.Course_mc["CarEnemi" + vC].nDirectionCar;
_local1.lostControl = true;
if (_local2.Course_mc["CarEnemi" + vC].nSpeed > 0) {
_local2.Course_mc["CarEnemi" + vC].nSpeed = -10;
} else {
_local2.Course_mc["CarEnemi" + vC].nSpeed = 10;
}
_local2.Course_mc["CarEnemi" + vC].lostControl = true;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso1.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso2.gotoAndStop("PerteCtrl");
_local2.Controler.LoseFeathers(_local2.Course_mc["CarEnemi" + vC]);
} else {
_local2.Course_mc["CarEnemi" + vC].nSpeed = _local1.nSpeed + 5;
_local2.Course_mc["CarEnemi" + vC].nSideFace = _local1.nSideFace;
_local2.Course_mc["CarEnemi" + vC].nDirectionCar = _local1.nDirectionCar;
_local2.Course_mc["CarEnemi" + vC].lostControl = true;
if (_local1.nSpeed > 0) {
_local1.nSpeed = -10;
} else {
_local1.nSpeed = 10;
}
_local1.lostControl = true;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso1.gotoAndStop("PerteCtrl");
_local2.Course_mc["CarEnemi" + vC].perso2.gotoAndStop("PerteCtrl");
_local2.Controler.LoseFeathers(_local1);
}
}
}
vBoundsMe = _local1.getBounds(_local2.Course_mc.ArrayGrid);
vBoundXMe = Math.round((vBoundsMe.xMax + vBoundsMe.xMin) / 40);
vBoundYMe = Math.round((vBoundsMe.yMax + vBoundsMe.yMin) / 40);
_local1.nLocation = _local2.Course_mc.ArrayGrid.aInterface[vBoundXMe][vBoundYMe];
if (Number(_local1.nLocation) < 100) {
_local1.marque = _local2.Course_mc.ArrayGrid["zone" + Number(_local1.nLocation)].getBounds(_local2);
_local1.PointDeFuiteX = _local2.Course_mc.ArrayGrid["zone" + Number(_local1.nLocation)].dotXToGo;
_local1.PointDeFuiteY = _local2.Course_mc.ArrayGrid["zone" + Number(_local1.nLocation)].dotYToGo;
_local1.kart.gotoAndStop(1);
_local1.lostControl = true;
_local1._x = _local1._x - _local1.LastMoveX;
_local1._y = _local1._y - _local1.LastMoveY;
if (_local3 == "Itsme") {
_local1.MyXtoKnow = _local1.getBounds(_local2.Course_mc);
_local1.MyXtoSpin = (_local1.MyXtoKnow.xMax + _local1.MyXtoKnow.xMin) / 2;
_local1.MyYtoSpin = (_local1.MyXtoKnow.yMax + _local1.MyXtoKnow.yMin) / 2;
} else {
_local1.MyXtoSpin = _local1._x;
_local1.MyYtoSpin = _local1._y;
if (_local1.deStuckWall == false) {
_local1.deStuckWall = true;
} else {
_local1.deStuckWall = false;
}
}
_local1.x = _local1.PointDeFuiteX - _local1.MyXtoSpin;
_local1.y = _local1.PointDeFuiteY - _local1.MyYtoSpin;
_local1.angleRot = Math.atan2(_local1.y, _local1.x);
_local1.angleRot = (_local1.angleRot * 180) / Math.PI;
if (_local1.angleRot < 0) {
_local1.angleRot = _local1.angleRot * -1;
_local1.angleTemp = 180 - _local1.angleRot;
_local1.angleRot = 180 + _local1.angleTemp;
}
if (_local1.angleRot < 0) {
_local1.angleRot = _local1.angleRot + 360;
}
_local1.nDirection = _local1.angleRot;
_local1.nDirectionCar = _local1.nDirection;
if (_local1.nDirection < -270) {
_local1.nSideFace = "right";
_local1.nDirectionCar = (270 + _local1.nDirection) + 90;
} else if (_local1.nDirection < -90) {
_local1.nSideFace = "reverse";
_local1.nDirectionCar = -90 - (_local1.nDirection + 90);
} else if (_local1.nDirection > 270) {
_local1.nSideFace = "right";
_local1.nDirectionCar = (_local1.nDirection - 270) - 90;
} else if (_local1.nDirection > 90) {
_local1.nSideFace = "reverse";
_local1.nDirectionCar = 90 - (_local1.nDirection - 90);
} else {
_local1.nSideFace = "right";
}
if ((_local1.nSpeed < 5) and (_local1.nSpeed > 0)) {
_local1.nSpeed = 5;
} else if (_local1.nSpeed < 0) {
if (_local1.nSpeed > -5) {
_local1.nSpeed = -5;
} else if (_local3 == "Itsme") {
BigCrash.start();
}
_local1.nSpeed = _local1.nSpeed * -0.5;
} else {
if (_local3 == "Itsme") {
BigCrash.start();
}
_local1.nSpeed = _local1.nSpeed * 0.5;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
}
_local2.Controler.fAccelerate(_local1);
}
if (_local1.nLocation == "N") {
if (_local1.lostControl == false) {
if (_local1.nSpeed > 6) {
_local1.nSpeed = _local1.nSpeed - (_local1.nHandling / (_local1.nWeight * _local1.nWeight));
}
}
}
_local1.CoursePos = _local1.getBounds(_local2.Course_mc);
_local1.myXCoord = Math.round((_local1.CoursePos.xMax + _local1.CoursePos.xMin) / 20);
_local1.myYCoord = Math.round((_local1.CoursePos.yMax + _local1.CoursePos.yMin) / 20);
i = -1;
while (i < 2) {
_local1.xcoord = _local1.myXCoord + i;
u = -1;
while (u < 2) {
_local1.ycoord = _local1.myYCoord + u;
r = 1;
while (r < 3) {
if (_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r]._currentframe == 1) {
if (_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].MyRoleIs == "money") {
if (!_local1.lostControl) {
if (_local3 == "Itsme") {
_global.feathers++;
Feathers.start();
}
_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].gotoAndStop(2);
}
} else if (_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].MyRoleIs == "money2") {
if (!_local1.lostControl) {
if (_local3 == "Itsme") {
_global.feathers++;
Feathers.start();
}
_local1.pointage++;
_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].gotoAndStop(2);
}
} else if (_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].MyRoleIs == "house") {
_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].gotoAndPlay(2);
if (_local3 == "Itsme") {
Hutte.start();
}
} else if (_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].MyRoleIs == "boost") {
if (_local1.nSpeed > 0) {
_local1.kart.gotoAndPlay("boost");
_local1.nSpeed = _local1.nSpeed + 5;
if (_local3 == "Itsme") {
Boost.start();
}
} else {
_local1.kart.gotoAndPlay("boost");
_local1.nSpeed = _local1.nSpeed - 5;
if (_local3 == "Itsme") {
Boost.start();
}
}
} else if (_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].MyRoleIs == "lostcontrol") {
if (_local1.nSpeed > 10) {
if (_local3 == "Itsme") {
Bouet.start();
}
_local1.lostControl = true;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
_local2.Controler.fAccelerate(_local1);
_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].gotoAndPlay(10);
_local1.kart.gotoAndStop(1);
}
} else if (_local2.Course_mc[(("" + _local1.xcoord) + _local1.ycoord) + r].MyRoleIs == "jump") {
if ((_local1.jumping == false) and (_local1.nSpeed > 10)) {
_local1.jumping = true;
_local1.perso1.gotoAndStop("PerteCtrl");
_local1.perso2.gotoAndStop("PerteCtrl");
_local1.nbreOfPassMax = Math.round((_local1.nSpeed * 1.5) / 4) * 2;
_local1.nbreOfPass = 0;
_local1.myYscale = _local1._yscale;
_local1.myXscale = _local1._xscale;
}
}
}
r++;
}
u++;
}
i++;
}
};
}
Instance of Symbol 331 MovieClip "ControlerENEMI" in Frame 122
onClipEvent (load) {
feathersCreated = 0;
ShootFeathers = function () {
var _local1 = _parent;
if (feathersCreated < 20) {
feathersCreated++;
myNum = 1000 + random(10000);
duplicateMovieClip (_local1.Course_mc.feathersXY, "feathersXY" + myNum, -myNum);
_local1.Course_mc["feathersXY" + myNum].gotoAndStop(1);
_local1.Course_mc["feathersXY" + myNum]._x = random(680) + 100;
_local1.Course_mc["feathersXY" + myNum]._y = random(460) + 220;
} else {
_global.vPaused = true;
_local1.myCar.RaceOver = true;
_local1.countDown.gotoAndPlay("finish");
}
};
ViewDirection = function (me) {
var _local1 = me;
_local1.x = _local1._parent.Xtofind - _local1._x;
_local1.y = _local1._parent.Ytofind - _local1._y;
_local1.slowZone = false;
};
AutoDrive = function (me) {
var _local1 = me;
var _local2 = _parent;
_local1.angleRot = Math.atan2(_local1.y, _local1.x);
_local1.angleRot = (_local1.angleRot * 180) / Math.PI;
if (_local1.angleRot < 0) {
_local1.angleRot = _local1.angleRot * -1;
_local1.angleTemp = 180 - _local1.angleRot;
_local1.angleRot = 180 + _local1.angleTemp;
}
if (_local1.angleRot < 0) {
_local1.angleRot = _local1.angleRot + 360;
}
_local1.angleAchieve = _local1.nDirection;
if (_local1.angleAchieve < 0) {
_local1.angleAchieve = _local1.angleAchieve + 360;
}
if (_local1.AngleACoisir) {
if (((_local1.angleRot < (_local1.angleAchieve - 20)) or (_local1.angleRot > (_local1.angleAchieve + 20))) or (_local1.sDirection == "backward")) {
_local1.AngleACoisir = false;
_local1.degreedAngle = 0;
_local1.angleAchieveCopy = Math.round(_local1.angleAchieve);
while (Math.floor(_local1.angleRot) != _local1.angleAchieveCopy) {
_local1.degreedAngle++;
_local1.angleAchieveCopy++;
if (_local1.angleAchieveCopy == 361) {
_local1.angleAchieveCopy = 0;
}
}
if (_local1.degreedAngle < 35) {
_local1.sDirection = "foward";
_local1.nearLorR = "right";
_local1.deStuckWall = false;
} else if (_local1.degreedAngle > 325) {
_local1.sDirection = "foward";
_local1.nearLorR = "left";
_local1.deStuckWall = false;
} else if (_local1.degreedAngle < 85) {
if (!_local1.deStuckWall) {
_local1.sDirection = "foward";
_local1.nearLorR = "right";
} else {
_local1.sDirection = "backward";
_local1.nearLorR = "left";
}
} else if (_local1.degreedAngle > 285) {
if (!_local1.deStuckWall) {
_local1.sDirection = "foward";
_local1.nearLorR = "left";
} else {
_local1.sDirection = "backward";
_local1.nearLorR = "right";
}
} else if (_local1.degreedAngle > 180) {
if (!_local1.deStuckWall) {
_local1.sDirection = "backward";
_local1.nearLorR = "right";
} else {
_local1.sDirection = "foward";
_local1.nearLorR = "left";
}
} else if (!_local1.deStuckWall) {
_local1.sDirection = "backward";
_local1.nearLorR = "left";
} else {
_local1.sDirection = "foward";
_local1.nearLorR = "right";
}
}
}
if (_local1.nDirection > 360) {
_local1.nDirection = _local1.nDirection - 360;
} else if (_local1.nDirection < -360) {
_local1.nDirection = _local1.nDirection + 360;
}
_local1.nDirectionCar = _local1.nDirection;
if (_local1.nDirection < -270) {
_local1.nSideFace = "right";
_local1.nDirectionCar = (270 + _local1.nDirection) + 90;
} else if (_local1.nDirection < -90) {
_local1.nSideFace = "reverse";
_local1.nDirectionCar = -90 - (_local1.nDirection + 90);
} else if (_local1.nDirection > 270) {
_local1.nSideFace = "right";
_local1.nDirectionCar = (_local1.nDirection - 270) - 90;
} else if (_local1.nDirection > 90) {
_local1.nSideFace = "reverse";
_local1.nDirectionCar = 90 - (_local1.nDirection - 90);
} else {
_local1.nSideFace = "right";
}
if (_local1.sDirection == "foward") {
if ((_local1.slowZone == "Brake") and (_local1.nSpeed > (_local1.nMaxSpeed / 3))) {
_local2.Controler.EmergencyBrake(_local1);
_local2.Controler.fDeccelerate(_local1);
} else if ((_local1.slowZone == true) and (_local1.nSpeed > (_local1.nMaxSpeed / 1.5))) {
_local2.Controler.fDeccelerate(_local1);
} else {
_local2.Controler.fAccelerate(_local1);
}
} else {
_local2.Controler.fBackward(_local1);
}
if ((_local1.angleRot < (_local1.angleAchieve - 5)) or (_local1.angleRot > (_local1.angleAchieve + 5))) {
_local2.Controler.CheckDirection(_local1, _local1.nearLorR);
} else {
_local1.AngleACoisir = true;
if ((_local1.angleRot < (_local1.angleAchieve - 35)) or (_local1.angleRot > (_local1.angleAchieve + 35))) {
_local1.deStuckWall = false;
}
}
};
}
Instance of Symbol 333 MovieClip "Magik" in Frame 122
onClipEvent (load) {
nPass = 0;
IMcastingSpell = function (me, witch, myNum) {
var _local1 = _parent;
var _local2 = witch;
var _local3 = myNum;
if (_local2 == 1) {
_local3 = 1000 + random(10000);
me.perso2.gotoAndStop("magieBoue");
duplicateMovieClip (_local1.Course_mc.bouet, "bouet" + _local3, -_local3);
_local1.Course_mc["bouet" + _local3].gotoAndPlay(1);
posToThe = me.getBounds(_local1.Course_mc);
_local1.Course_mc["bouet" + _local3]._x = (posToThe.xMax + posToThe.xMin) / 2;
_local1.Course_mc["bouet" + _local3]._y = (posToThe.yMax + posToThe.yMin) / 2;
}
if ((_local2 == 2) or (_local2 == 3)) {
meBoudsPos = me.getBounds(_local1.Course_mc);
if (_local2 == 2) {
me.perso2.gotoAndStop("magieLimace");
} else {
me.perso2.gotoAndStop("magiePlume");
}
if (_local3 == 0) {
nDistance1 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi1._x, _local1.Course_mc.CarEnemi1._y);
nDistance2 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi2._x, _local1.Course_mc.CarEnemi2._y);
nDistance3 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi3._x, _local1.Course_mc.CarEnemi3._y);
if ((nDistance1 <= nDistance2) and (nDistance1 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi1._currentframe) + 4;
if (theframe <= 8) {
_local1.Course_mc.carEnemi1.gotoAndStop(theframe);
}
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi1.ring.gotoAndPlay("StartRing");
}
} else if ((nDistance2 <= nDistance1) and (nDistance2 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi2._currentframe) + 4;
if (theframe <= 8) {
_local1.Course_mc.carEnemi2.gotoAndStop(theframe);
}
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi2.ring.gotoAndPlay("StartRing");
}
} else if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi3._currentframe) + 4;
if (theframe <= 8) {
_local1.Course_mc.carEnemi3.gotoAndStop(theframe);
}
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi3.ring.gotoAndPlay("StartRing");
}
} else if (_local3 == 1) {
nDistance1 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.myCar._x, _local1.myCar._y);
nDistance2 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi2._x, _local1.Course_mc.CarEnemi2._y);
nDistance3 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi3._x, _local1.Course_mc.CarEnemi3._y);
if ((nDistance1 <= nDistance2) and (nDistance1 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.myCar._currentframe) + 4;
_local1.myCar.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.myCar.ring.gotoAndPlay("StartRing");
}
} else if ((nDistance2 <= nDistance1) and (nDistance2 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi2._currentframe) + 4;
_local1.Course_mc.carEnemi2.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi2.ring.gotoAndPlay("StartRing");
}
} else if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi3._currentframe) + 4;
_local1.Course_mc.carEnemi3.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi3.ring.gotoAndPlay("StartRing");
}
} else if (_local3 == 2) {
nDistance1 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.myCar._x, _local1.myCar._y);
nDistance2 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi1._x, _local1.Course_mc.CarEnemi1._y);
nDistance3 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi3._x, _local1.Course_mc.CarEnemi3._y);
if ((nDistance1 <= nDistance2) and (nDistance1 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.myCar._currentframe) + 4;
_local1.myCar.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.myCar.ring.gotoAndPlay("StartRing");
}
} else if ((nDistance2 <= nDistance1) and (nDistance2 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi1._currentframe) + 4;
_local1.Course_mc.carEnemi1.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi1.ring.gotoAndPlay("StartRing");
}
} else if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi3._currentframe) + 4;
_local1.Course_mc.carEnemi3.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi3.ring.gotoAndPlay("StartRing");
}
} else if (_local3 == 3) {
nDistance1 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.myCar._x, _local1.myCar._y);
nDistance2 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi1._x, _local1.Course_mc.CarEnemi1._y);
nDistance3 = _local1.ControlerHT.MathDistance((meBoudsPos.xMax + meBoudsPos.xMin) / 2, (meBoudsPos.yMax + meBoudsPos.yMin) / 2, _local1.Course_mc.CarEnemi2._x, _local1.Course_mc.CarEnemi2._y);
if ((nDistance1 <= nDistance2) and (nDistance1 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.myCar._currentframe) + 4;
_local1.myCar.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.myCar.ring.gotoAndPlay("StartRing");
}
} else if ((nDistance2 <= nDistance1) and (nDistance2 <= nDistance3)) {
if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi1._currentframe) + 4;
_local1.Course_mc.carEnemi1.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi1.ring.gotoAndPlay("StartRing");
}
} else if (_local2 == 2) {
theframe = Number(_local1.Course_mc.carEnemi2._currentframe) + 4;
_local1.Course_mc.carEnemi2.gotoAndStop(theframe);
} else if (_local2 == 3) {
_local1.Course_mc.carEnemi2.ring.gotoAndPlay("StartRing");
}
}
}
};
}
Instance of Symbol 836 MovieClip "CoursePS" in Frame 122
onClipEvent (load) {
MaxPuce = 50;
ToSlow = new Array();
ToSlow = [10, 11, 13, 19, 20, 25, 26, 27, 28, 31, 37, 38, 41, 42, 46, 47, 48, 49];
ToBrake = new Array();
ToBrake = [3, 4, 5, 6, 7, 8, 9, 14, 15, 26, 21, 22, 32, 33, 34];
enemi = 4;
laps = 18;
_parent.cadre.positionMN.text = enemi;
_parent.cadre.positionM.text = enemi;
_parent.cadre.nbreLaps.text = laps;
}
Instance of Symbol 1410 MovieClip "cadre" in Frame 122
onClipEvent (load) {
this.gotoAndStop(String(_parent.carSelected));
positionMN.text = _parent.CoursePS.enemi;
positionM.text = _parent.CoursePS.enemi;
nbreLaps.text = _parent.CoursePS.laps;
TempdeCourse = 0;
time.text = "0:00";
}
onClipEvent (enterFrame) {
if (_parent.myCar.lap <= _parent.CoursePS.laps) {
if (!_global.vPaused) {
TempdeCourse = TempdeCourse + 2;
min = Math.floor(TempdeCourse / 3600);
sec = Math.floor((TempdeCourse - (min * 3600)) / 60);
if (sec < 10) {
sec = "0" + sec;
}
time.text = (min + ":") + sec;
}
nFeather.text = _global.feathers;
nFeatherN.text = _global.feathers;
pointMe = _parent.myCar.pointage;
pointE1 = _parent.Course_mc.CarEnemi1.pointage;
pointE2 = _parent.Course_mc.CarEnemi2.pointage;
pointE3 = _parent.Course_mc.CarEnemi3.pointage;
myPosition = 1;
if (pointE1 >= pointMe) {
myPosition++;
}
if (pointE2 >= pointMe) {
myPosition++;
}
if (pointE3 >= pointMe) {
myPosition++;
}
mpositionMN.text = myPosition;
mpositionM.text = myPosition;
Player1Position = 1;
if (pointMe >= pointE1) {
Player1Position++;
}
if (pointE2 >= pointE1) {
Player1Position++;
}
if (pointE3 >= pointE1) {
Player1Position++;
}
Player2Position = 1;
if (pointMe >= pointE2) {
Player2Position++;
}
if (pointE1 >= pointE2) {
Player2Position++;
}
if (pointE3 >= pointE2) {
Player2Position++;
}
Player3Position = 1;
if (pointMe >= pointE3) {
Player3Position++;
}
if (pointE1 >= pointE3) {
Player3Position++;
}
if (pointE2 >= pointE3) {
Player3Position++;
}
} else if (_parent.myCar.RaceOver != true) {
_global.vPaused = true;
_parent.myCar.RaceOver = true;
_parent.countDown.gotoAndPlay("finish");
}
}
Frame 123
ControlerENEMI.ShootFeathers();
Frame 132
stop();
Frame 133
_root.speakerMot.StopAll();
Frame 134
if (ConceptArtUnlok == false) {
the1.enabled = false;
the2.enabled = false;
the3.enabled = false;
the4.enabled = false;
}
Instance of Symbol 1452 MovieClip in Frame 134
onClipEvent (load) {
if (_parent.ConceptArtUnlok == true) {
this._visible = false;
}
}
Frame 135
if (ConceptArtUnlok == false) {
the1.enabled = false;
the2.enabled = false;
the3.enabled = false;
the4.enabled = false;
}
Frame 140
imageLoader.image.loadMovie(((_global.path + dossier) + imageName) + ".jpg");
Frame 146
stop();
Symbol 15 Button
on (release) {
gotoAndPlay ("selectChars");
}
Symbol 20 Button
on (release) {
gotoAndStop ("instruction");
}
Symbol 28 Button
on (release) {
frameFrom = _currentframe;
gotoAndStop ("ConceptArt");
}
Symbol 48 Button
on (release) {
_parent.cupChallenge = 1;
_parent.firstStagePassCup1 = false;
_parent.SecondStagePassCup1 = false;
_parent.ThirdStagePassCup1 = false;
_parent.AlertPage._visible = false;
_parent.play();
}
Symbol 52 Button
on (release) {
_parent._parent.cupChallenge = 2;
_parent._parent.firstStagePassCup2 = false;
_parent._parent.SecondStagePassCup2 = false;
_parent._parent.ThirdStagePassCup2 = false;
_parent._parent.AlertPage._visible = false;
_parent._parent.play();
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 66 Button
on (release) {
if (_global.feathers >= 5) {
_global.feathers = _global.feathers - 5;
_parent.tableau = "Derby";
_parent.speaker.MusikIn = "Action";
_parent.StageToGo = "stageDerby";
gotoAndPlay ("Initialyse");
} else {
gotoAndStop ("miss");
}
}
Symbol 73 Button
on (release) {
this._visible = false;
}
Symbol 84 Button
on (release) {
_parent.AlertPage._visible = false;
}
Symbol 89 Button
on (release) {
_global.feathers = 0;
_parent._parent.gotoAndPlay("intro");
}
Symbol 90 Button
on (release) {
_parent.AlertPage._visible = false;
_global.vPaused = false;
}
Symbol 103 Button
on (release) {
CupWinner = false;
if ((_parent._parent.cupChallenge == 1) and (_parent._parent.tableau == "race")) {
if (_parent._parent.firstStagePassCup1 == false) {
_parent._parent.firstStagePassCup1 = true;
} else if (_parent._parent.SecondStagePassCup1 == false) {
_parent._parent.SecondStagePassCup1 = true;
} else if (_parent._parent.ThirdStagePassCup1 == false) {
_parent._parent.ThirdStagePassCup1 = true;
CupWinner = true;
}
} else if (_parent._parent.tableau == "race") {
if (_parent._parent.firstStagePassCup2 == false) {
_parent._parent.firstStagePassCup2 = true;
} else if (_parent._parent.SecondStagePassCup2 == false) {
_parent._parent.SecondStagePassCup2 = true;
} else if (_parent._parent.ThirdStagePassCup2 == false) {
_parent._parent.ThirdStagePassCup2 = true;
CupWinner = true;
}
}
if (CupWinner == false) {
_parent._parent.gotoAndPlay("win");
} else {
_parent._parent.gotoAndPlay("winCup");
}
}
Symbol 108 Button
on (release) {
_parent._parent.gotoAndPlay("lose");
}
Symbol 118 Button
on (release) {
_parent.AlertPage._visible = false;
}
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 15
stop();
Symbol 159 MovieClip Frame 20
gotoAndStop ("front");
Symbol 159 MovieClip Frame 26
stop();
Symbol 159 MovieClip Frame 31
gotoAndStop ("front");
Symbol 159 MovieClip Frame 55
gotoAndStop ("front");
Symbol 170 MovieClip Frame 1
if (_parent.GreaterChallengeUnlok == false) {
Greater.gotoAndStop(2);
}
if (_parent.ConceptArtUnlok == false) {
Concept.gotoAndStop(2);
}
cache.useHandCursor = false;
stop();
Symbol 170 MovieClip Frame 10
cache.useHandCursor = false;
stop();
Symbol 170 MovieClip Frame 20
cache.useHandCursor = false;
stop();
Symbol 170 MovieClip Frame 30
cache.useHandCursor = false;
stop();
Symbol 170 MovieClip Frame 40
_root.speakerMot.StopAll();
if (_parent._parent.cadre.myPosition == 1) {
win.text = 10;
winN.text = 10;
_global.feathers = _global.feathers + 10;
} else if (_parent._parent.cadre.myPosition == 2) {
win.text = 6;
winN.text = 6;
_global.feathers = _global.feathers + 6;
} else if (_parent._parent.cadre.myPosition == 3) {
win.text = 3;
winN.text = 3;
_global.feathers = _global.feathers + 3;
}
cache.useHandCursor = false;
stop();
Symbol 170 MovieClip Frame 50
_root.speakerMot.StopAll();
cache.useHandCursor = false;
stop();
Symbol 170 MovieClip Frame 60
_root.speakerMot.StopAll();
cache.useHandCursor = false;
stop();
Symbol 170 MovieClip Frame 70
cache.useHandCursor = false;
stop();
Instance of Symbol 159 MovieClip in Symbol 170 MovieClip Frame 81
onClipEvent (load) {
totalFrame = _parent._parent.getBytesTotal();
}
onClipEvent (enterFrame) {
MyFrame = _parent._parent.getBytesLoaded();
Percentage = (MyFrame / totalFrame) * 100;
this._x = 40 + (Percentage * 2);
_parent.PercentageN_txt.text = Math.round(Percentage);
_parent.Percentage_txt.text = Math.round(Percentage);
if (Percentage == 100) {
_parent._parent.AlertPage._visible = false;
}
}
Symbol 170 MovieClip Frame 95
stop();
Symbol 170 MovieClip Frame 96
_root.speakerMot.StopAll();
_root.speakerMot.MoteurIniVol();
Symbol 170 MovieClip Frame 105
_parent.gotoAndPlay(_parent.StageToGo);
Symbol 182 MovieClip Frame 1
this.createEmptyMovieClip("PackagingToune", 1);
this.createEmptyMovieClip("ActionToune", 2);
PackagingToune = new Sound("PackagingToune");
PackagingToune.attachSound("Tak loop Intro");
ActionToune = new Sound("ActionToune");
ActionToune.attachSound("Tak NEW LOOP");
setToZero = function () {
ActionToune.setVolume(0);
PackagingToune.setVolume(0);
};
setToFifty = function () {
ActionToune.setVolume(50);
PackagingToune.setVolume(50);
};
Symbol 182 MovieClip Frame 4
gotoAndPlay(MusikIn);
Symbol 182 MovieClip Frame 6
PackagingToune.start(0, 1000);
if (mute == false) {
PackagingToune.setVolume(50);
}
Symbol 182 MovieClip Frame 14
stop();
Symbol 182 MovieClip Frame 16
ActionToune.start(0, 1000);
if (mute == false) {
ActionToune.setVolume(50);
}
Symbol 182 MovieClip Frame 24
stop();
Symbol 182 MovieClip Frame 25
if (mute == false) {
PackagingToune.setVolume(50);
}
Symbol 182 MovieClip Frame 26
volumeM = PackagingToune.getVolume();
volumeM = volumeM - 3;
if (mute == false) {
PackagingToune.setVolume(volumeM);
ActionToune.setVolume(volumeM);
MentalToune.setVolume(volumeM);
}
Symbol 182 MovieClip Frame 27
call(26);
Symbol 182 MovieClip Frame 28
call(26);
Symbol 182 MovieClip Frame 29
call(26);
Symbol 182 MovieClip Frame 30
call(26);
Symbol 182 MovieClip Frame 31
call(26);
Symbol 182 MovieClip Frame 32
call(26);
Symbol 182 MovieClip Frame 33
call(26);
Symbol 182 MovieClip Frame 34
call(26);
Symbol 182 MovieClip Frame 35
call(26);
Symbol 182 MovieClip Frame 36
call(26);
Symbol 182 MovieClip Frame 37
call(26);
Symbol 182 MovieClip Frame 38
call(26);
Symbol 182 MovieClip Frame 39
call(26);
Symbol 182 MovieClip Frame 40
call(26);
Symbol 182 MovieClip Frame 41
call(26);
Symbol 182 MovieClip Frame 42
ActionToune.stop();
PackagingToune.stop();
gotoAndPlay(MusikIn);
Symbol 187 Button
on (keyPress "<Left>") {
return(undefined);
}
on (keyPress "<Right>") {
return(undefined);
}
on (keyPress "<Up>") {
return(undefined);
}
on (keyPress "<Down>") {
return(undefined);
}
on (keyPress "<Space>") {
return(undefined);
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 225 Button
on (release) {
if (CarChoose._currentframe == 1) {
CarChoose.gotoAndStop(3);
cTak.gotoAndStop(1);
cLob.gotoAndStop(2);
carSelected = "leger";
speed.gotoAndStop(JibUpdateSpeed + 1);
accel.gotoAndStop(JibUpdateAccel + 1);
hand.gotoAndStop(JibUpdateHand + 1);
} else if (CarChoose._currentframe == 2) {
CarChoose.gotoAndStop(1);
cTak.gotoAndStop(2);
cGram.gotoAndStop(1);
carSelected = "sport";
speed.gotoAndStop(TaKUpdateSpeed + 1);
accel.gotoAndStop(TaKUpdateAccel + 1);
hand.gotoAndStop(TaKUpdateHand + 1);
} else if (CarChoose._currentframe == 3) {
if (bartogUnlok == false) {
CarChoose.gotoAndStop(2);
cGram.gotoAndStop(2);
cLob.gotoAndStop(1);
carSelected = "prototype";
speed.gotoAndStop(GramUpdateSpeed + 1);
accel.gotoAndStop(GramUpdateAccel + 1);
hand.gotoAndStop(GramUpdateHand + 1);
} else {
CarChoose.gotoAndStop(4);
cBlack.gotoAndStop(2);
cLob.gotoAndStop(1);
carSelected = "muscle";
speed.gotoAndStop(BartogUpdateSpeed + 1);
accel.gotoAndStop(BartogUpdateAccel + 1);
hand.gotoAndStop(BartogUpdateHand + 1);
}
} else if (CarChoose._currentframe == 4) {
CarChoose.gotoAndStop(2);
cGram.gotoAndStop(2);
cBlack.gotoAndStop(1);
carSelected = "prototype";
speed.gotoAndStop(GramUpdateSpeed + 1);
accel.gotoAndStop(GramUpdateAccel + 1);
hand.gotoAndStop(GramUpdateHand + 1);
}
}
Symbol 273 MovieClip Frame 1
stop();
Symbol 280 Button
on (release) {
gotoAndPlay ("tuneShop");
}
Symbol 289 Button
on (release) {
_parent.carSelected = "prototype";
_parent.CarChoose.gotoAndStop(2);
_parent.cGram.gotoAndStop(2);
if (_parent.bartogUnlok == true) {
_parent.cBlack.gotoAndStop(1);
}
_parent.cLob.gotoAndStop(1);
_parent.cTak.gotoAndStop(1);
_parent.speed.gotoAndStop(_parent.GramUpdateSpeed + 1);
_parent.accel.gotoAndStop(_parent.GramUpdateAccel + 1);
_parent.hand.gotoAndStop(_parent.GramUpdateHand + 1);
}
Symbol 290 MovieClip Frame 1
stop();
Symbol 291 Button
on (release) {
_parent.carSelected = "sport";
_parent.CarChoose.gotoAndStop(1);
_parent.cGram.gotoAndStop(1);
if (_parent.bartogUnlok == true) {
_parent.cBlack.gotoAndStop(1);
}
_parent.cLob.gotoAndStop(1);
_parent.cTak.gotoAndStop(2);
_parent.speed.gotoAndStop(_parent.TaKUpdateSpeed + 1);
_parent.accel.gotoAndStop(_parent.TaKUpdateAccel + 1);
_parent.hand.gotoAndStop(_parent.TaKUpdateHand + 1);
}
Symbol 292 MovieClip Frame 1
stop();
Symbol 304 Button
on (release) {
_parent.carSelected = "leger";
_parent.CarChoose.gotoAndStop(3);
_parent.cGram.gotoAndStop(1);
if (_parent.bartogUnlok == true) {
_parent.cBlack.gotoAndStop(1);
}
_parent.cLob.gotoAndStop(2);
_parent.cTak.gotoAndStop(1);
_parent.speed.gotoAndStop(_parent.JibUpdateSpeed + 1);
_parent.accel.gotoAndStop(_parent.JibUpdateAccel + 1);
_parent.hand.gotoAndStop(_parent.JibUpdateHand + 1);
}
Symbol 305 MovieClip Frame 1
stop();
Symbol 314 Button
on (release) {
_parent.carSelected = "muscle";
_parent.CarChoose.gotoAndStop(4);
_parent.cGram.gotoAndStop(1);
_parent.cBlack.gotoAndStop(2);
_parent.cLob.gotoAndStop(1);
_parent.cTak.gotoAndStop(1);
_parent.speed.gotoAndStop(_parent.BartogUpdateSpeed + 1);
_parent.accel.gotoAndStop(_parent.BartogUpdateAccel + 1);
_parent.hand.gotoAndStop(_parent.BartogUpdateHand + 1);
}
Symbol 319 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 4
stop();
Symbol 370 MovieClip Frame 2
if (_parent._name != "feathers") {
_parent._parent._parent.ControlerHT.FoundAName(_parent);
_parent.MyRoleIs = "money";
}
Symbol 370 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 371 MovieClip Frame 1
if (this._name != "feathers") {
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "money";
}
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 15
stop();
Symbol 391 MovieClip Frame 20
gotoAndStop ("front");
Symbol 391 MovieClip Frame 26
stop();
Symbol 391 MovieClip Frame 31
gotoAndStop ("front");
Symbol 391 MovieClip Frame 55
gotoAndStop ("front");
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 15
stop();
Symbol 427 MovieClip Frame 20
gotoAndStop ("front");
Symbol 427 MovieClip Frame 26
stop();
Symbol 427 MovieClip Frame 31
gotoAndStop ("front");
Symbol 427 MovieClip Frame 55
gotoAndStop ("front");
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 15
stop();
Symbol 455 MovieClip Frame 20
gotoAndStop ("front");
Symbol 455 MovieClip Frame 26
stop();
Symbol 455 MovieClip Frame 31
gotoAndStop ("front");
Symbol 455 MovieClip Frame 55
gotoAndStop ("front");
Instance of Symbol 339 MovieClip "Check" in Symbol 459 MovieClip Frame 1
onClipEvent (load) {
function verif() {
var _local1 = _parent;
var _local2 = this;
_local2.speed.gotoAndStop(_local1._parent.TaKUpdateSpeed + 1);
_local2.accel.gotoAndStop(_local1._parent.TaKUpdateAccel + 1);
_local2.hand.gotoAndStop(_local1._parent.TaKUpdateHand + 1);
_local1.plume.text = _global.feathers;
_local1.plumeN.text = _global.feathers;
MaxSText = (_local1._parent.TaKUpdateSpeed + 1) * 5;
if (MaxSText == 30) {
MaxSText = "MAX";
}
MaxAText = (_local1._parent.TaKUpdateAccel + 1) * 5;
if (MaxAText == 30) {
MaxAText = "MAX";
}
MaxHText = (_local1._parent.TaKUpdateHand + 1) * 5;
if (MaxHText == 30) {
MaxHText = "MAX";
}
_local1.MaxS.text = MaxSText;
_local1.MaxSN.text = MaxSText;
_local1.Accel.text = MaxAText;
_local1.AccelN.text = MaxAText;
_local1.hand.text = MaxHText;
_local1.handN.text = MaxHText;
}
verif();
}
Instance of Symbol 392 MovieClip "Check" in Symbol 459 MovieClip Frame 11
onClipEvent (load) {
function verif() {
var _local1 = _parent;
var _local2 = this;
_local2.speed.gotoAndStop(_local1._parent.BartogUpdateSpeed + 1);
_local2.accel.gotoAndStop(_local1._parent.BartogUpdateAccel + 1);
_local2.hand.gotoAndStop(_local1._parent.BartogUpdateHand + 1);
_local1.plume.text = _global.feathers;
_local1.plumeN.text = _global.feathers;
MaxSText = (_local1._parent.BartogUpdateSpeed + 1) * 5;
if (MaxSText == 30) {
MaxSText = "MAX";
}
MaxAText = (_local1._parent.BartogUpdateAccel + 1) * 5;
if (MaxAText == 30) {
MaxAText = "MAX";
}
MaxHText = (_local1._parent.BartogUpdateHand + 1) * 5;
if (MaxHText == 30) {
MaxHText = "MAX";
}
_local1.MaxS.text = MaxSText;
_local1.MaxSN.text = MaxSText;
_local1.Accel.text = MaxAText;
_local1.AccelN.text = MaxAText;
_local1.hand.text = MaxHText;
_local1.handN.text = MaxHText;
}
verif();
}
Instance of Symbol 428 MovieClip "Check" in Symbol 459 MovieClip Frame 21
onClipEvent (load) {
function verif() {
var _local1 = _parent;
var _local2 = this;
_local2.speed.gotoAndStop(_local1._parent.JibUpdateSpeed + 1);
_local2.accel.gotoAndStop(_local1._parent.JibUpdateAccel + 1);
_local2.hand.gotoAndStop(_local1._parent.JibUpdateHand + 1);
_local1.plume.text = _global.feathers;
_local1.plumeN.text = _global.feathers;
MaxSText = (_local1._parent.JibUpdateSpeed + 1) * 5;
if (MaxSText == 30) {
MaxSText = "MAX";
}
MaxAText = (_local1._parent.JibUpdateAccel + 1) * 5;
if (MaxAText == 30) {
MaxAText = "MAX";
}
MaxHText = (_local1._parent.JibUpdateHand + 1) * 5;
if (MaxHText == 30) {
MaxHText = "MAX";
}
_local1.MaxS.text = MaxSText;
_local1.MaxSN.text = MaxSText;
_local1.Accel.text = MaxAText;
_local1.AccelN.text = MaxAText;
_local1.hand.text = MaxHText;
_local1.handN.text = MaxHText;
}
verif();
}
Instance of Symbol 456 MovieClip "Check" in Symbol 459 MovieClip Frame 31
onClipEvent (load) {
function verif() {
var _local1 = _parent;
var _local2 = this;
_local2.speed.gotoAndStop(_local1._parent.GramUpdateSpeed + 1);
_local2.accel.gotoAndStop(_local1._parent.GramUpdateAccel + 1);
_local2.hand.gotoAndStop(_local1._parent.GramUpdateHand + 1);
_local1.plume.text = _global.feathers;
_local1.plumeN.text = _global.feathers;
MaxSText = (_local1._parent.GramUpdateSpeed + 1) * 5;
if (MaxSText == 30) {
MaxSText = "MAX";
}
MaxAText = (_local1._parent.GramUpdateAccel + 1) * 5;
if (MaxAText == 30) {
MaxAText = "MAX";
}
MaxHText = (_local1._parent.GramUpdateHand + 1) * 5;
if (MaxHText == 30) {
MaxHText = "MAX";
}
_local1.MaxS.text = MaxSText;
_local1.MaxSN.text = MaxSText;
_local1.Accel.text = MaxAText;
_local1.AccelN.text = MaxAText;
_local1.hand.text = MaxHText;
_local1.handN.text = MaxHText;
}
verif();
}
Symbol 466 Button
on (release) {
gotoAndPlay ("map");
}
Symbol 473 Button
on (release) {
if (carSelected == "muscle") {
if (BartogUpdateAccel == 0) {
if (_global.feathers >= 5) {
_global.feathers = _global.feathers - 5;
BartogUpdateAccel++;
_global.modifAccel = 0.01;
}
} else if (BartogUpdateAccel == 1) {
if (_global.feathers >= 10) {
_global.feathers = _global.feathers - 10;
BartogUpdateAccel++;
_global.modifAccel = 0.02;
}
} else if (BartogUpdateAccel == 2) {
if (_global.feathers >= 15) {
_global.feathers = _global.feathers - 15;
BartogUpdateAccel++;
_global.modifAccel = 0.03;
}
} else if (BartogUpdateAccel == 3) {
if (_global.feathers >= 20) {
_global.feathers = _global.feathers - 20;
BartogUpdateAccel++;
_global.modifAccel = 0.04;
}
} else if (BartogUpdateAccel == 4) {
if (_global.feathers >= 25) {
_global.feathers = _global.feathers - 25;
BartogUpdateAccel++;
_global.modifAccel = 0.05;
}
}
Status.Check.verif();
} else if (carSelected == "sport") {
if (TaKUpdateAccel == 0) {
if (_global.feathers >= 5) {
_global.feathers = _global.feathers - 5;
TaKUpdateAccel++;
_global.modifAccel = 0.011;
}
} else if (TaKUpdateAccel == 1) {
if (_global.feathers >= 10) {
_global.feathers = _global.feathers - 10;
TaKUpdateAccel++;
_global.modifAccel = 0.022;
}
} else if (TaKUpdateAccel == 2) {
if (_global.feathers >= 15) {
_global.feathers = _global.feathers - 15;
TaKUpdateAccel++;
_global.modifAccel = 0.033;
}
} else if (TaKUpdateAccel == 3) {
if (_global.feathers >= 20) {
_global.feathers = _global.feathers - 20;
TaKUpdateAccel++;
_global.modifAccel = 0.044;
}
} else if (TaKUpdateAccel == 4) {
if (_global.feathers >= 25) {
_global.feathers = _global.feathers - 25;
TaKUpdateAccel++;
_global.modifAccel = 0.055;
}
}
Status.Check.verif();
} else if (carSelected == "leger") {
if (JibUpdateAccel == 0) {
if (_global.feathers >= 5) {
_global.feathers = _global.feathers - 5;
JibUpdateAccel++;
_global.modifAccel = 0.02;
}
} else if (JibUpdateAccel == 1) {
if (_global.feathers >= 10) {
_global.feathers = _global.feathers - 10;
JibUpdateAccel++;
_global.modifAccel = 0.035;
}
} else if (JibUpdateAccel == 2) {
if (_global.feathers >= 15) {
_global.feathers = _global.feathers - 15;
JibUpdateAccel++;
_global.modifAccel = 0.05;
}
} else if (JibUpdateAccel == 3) {
if (_global.feathers >= 20) {
_global.feathers = _global.feathers - 20;
JibUpdateAccel++;
_global.modifAccel = 0.065;
}
} else if (JibUpdateAccel == 4) {
if (_global.feathers >= 25) {
_global.feathers = _global.feathers - 25;
JibUpdateAccel++;
_global.modifAccel = 0.08;
}
}
Status.Check.verif();
} else if (carSelected == "prototype") {
if (GramUpdateAccel == 0) {
if (_global.feathers >= 5) {
_global.feathers = _global.feathers - 5;
GramUpdateAccel++;
_global.modifAccel = 0.011;
}
} else if (GramUpdateAccel == 1) {
if (_global.feathers >= 10) {
_global.feathers = _global.feathers - 10;
GramUpdateAccel++;
_global.modifAccel = 0.022;
}
} else if (GramUpdateAccel == 2) {
if (_global.feathers >= 15) {
_global.feathers = _global.feathers - 15;
GramUpdateAccel++;
_global.modifAccel = 0.033;
}
} else if (GramUpdateAccel == 3) {
if (_global.feathers >= 20) {
_global.feathers = _global.feathers - 20;
GramUpdateAccel++;
_global.modifAccel = 0.044;
}
} else if (GramUpdateAccel == 4) {
if (_global.feathers >= 25) {
_global.feathers = _global.feathers - 25;
GramUpdateAccel++;
_global.modifAccel = 0.055;
}
}
Status.Check.verif();
}
}
Symbol 474 Button
on (release) {
if (carSelected == "muscle") {
if (BartogUpdateSpeed == 0) {
if (_global.feathers >= 5) {
_global.feathers = _global.feathers - 5;
BartogUpdateSpeed++;
_global.modifMaxSpeed = 2;
}
} else if (BartogUpdateSpeed == 1) {
if (_global.feathers >= 10) {
_global.feathers = _global.feathers - 10;
BartogUpdateSpeed++;
_global.modifMaxSpeed = 4;
}
} else if (BartogUpdateSpeed == 2) {
if (_global.feathers >= 15) {
_global.feathers = _global.feathers - 15;
BartogUpdateSpeed++;
_global.modifMaxSpeed = 6;
}
} else if (BartogUpdateSpeed == 3) {
if (_global.feathers >= 20) {
_global.feathers = _global.feathers - 20;
BartogUpdateSpeed++;
_global.modifMaxSpeed = 8;
}
} else if (BartogUpdateSpeed == 4) {
if (_global.feathers >= 25) {
_global.feathers = _global.feathers - 25;
BartogUpdateSpeed++;
_global.modifMaxSpeed = 10;
}
}
Status.Check.verif();
} else if (carSelected == "sport") {
if (TaKUpdateSpeed == 0) {
if (_global.feathers >= 5) {
_global.feathers = _global.feathers - 5;
TaKUpdateSpeed++;
_global.modifMaxSpeed = 1.2;
}
} else if (TaKUpdateSpeed == 1) {
if (_global.feathers >= 10) {
_global.feathers = _global.feathers - 10;
TaKUpdateSpeed++;
_global.modifMaxSpeed = 2.2;
}
} else if (TaKUpdateSpeed == 2) {
if (_global.feathers >= 15) {
_global.feathers = _global.feathers - 15;
TaKUpdateSpeed++;
_global.modifMaxSpeed = 3.3;
}
} else if (TaKUpdateSpeed == 3) {
if (_global.feathers >= 20) {
_global.feathers = _global.feathers - 20;
TaKUpdateSpeed++;
_global.modifMaxSpeed = 4.4;
}
} else if (TaKUpdateSpeed == 4) {
if (_global.feathers >= 25) {
_global.feathers = _global.feathers - 25;
TaKUpdateSpeed++;
_global.modifMaxSpeed = 5.5;
}
}
Status.Check.verif();
} else if (carSelected == "leger") {
if (JibUpdateSpeed == 0) {
if (_global.feathers >= 5) {
_global.feathers = _global.feathers - 5;
JibUpdateSpeed++;
_global.modifMaxSpeed = 1;
}
} else if (JibUpdateSpeed == 1) {
if (_global.feathers >= 10) {
_global.feathers = _global.feathers - 10;
JibUpdateSpeed++;
_global.modifMaxSpeed = 2;
}
} else if (JibUpdateSpeed == 2) {
if (_global.feathers >= 15) {
_global.feathers = _global.feathers - 15;
JibUpdateSpeed++;
_global.modifMaxSpeed = 3;
}
} else if (JibUpdateSpeed == 3) {
if (_global.feathers >= 20) {
_global.feathers = _global.feathers - 20;
JibUpdateSpeed++;
_global.modifMaxSpeed = 4;
}
} else if (JibUpdateSpeed == 4) {
if (_global.feathers >= 25) {
_global.feathers = _global.feathers - 25;
JibUpdateSpeed++;
_global.modifMaxSpeed = 5;
}
}
Status.Check.verif();
} else if (carSelected == "prototype") {
if (GramUpdateSpeed == 0) {
if (_global.feathers >= 5) {
_global.feathers = _global.feathers - 5;
GramUpdateSpeed++;
_global.modifMaxSpeed = 1.3;
}
} else if (GramUpdateSpeed == 1) {
if (_global.feathers >= 10) {
_global.feathers = _global.feathers - 10;
GramUpdateSpeed++;
_global.modifMaxSpeed = 2.6;
}
} else if (GramUpdateSpeed == 2) {
if (_global.feathers >= 15) {
_global.feathers = _global.feathers - 15;
GramUpdateSpeed++;
_global.modifMaxSpeed = 3.9;
}
} else if (GramUpdateSpeed == 3) {
if (_global.feathers >= 20) {
_global.feathers = _global.feathers - 20;
GramUpdateSpeed++;
_global.modifMaxSpeed = 5.2;
}
} else if (GramUpdateSpeed == 4) {
if (_global.feathers >= 25) {
_global.feathers = _global.feathers - 25;
GramUpdateSpeed++;
_global.modifMaxSpeed = 6.5;
}
}
Status.Check.verif();
}
}
Symbol 475 Button
on (release) {
if (carSelected == "muscle") {
if (BartogUpdateHand == 0) {
if (_global.feathers >= 5) {
_global.feathers = _global.feathers - 5;
BartogUpdateHand++;
_global.modifhanding = 0.05;
}
} else if (BartogUpdateHand == 1) {
if (_global.feathers >= 10) {
_global.feathers = _global.feathers - 10;
BartogUpdateHand++;
_global.modifhanding = 0.1;
}
} else if (BartogUpdateHand == 2) {
if (_global.feathers >= 15) {
_global.feathers = _global.feathers - 15;
BartogUpdateHand++;
_global.modifhanding = 0.15;
}
} else if (BartogUpdateHand == 3) {
if (_global.feathers >= 20) {
_global.feathers = _global.feathers - 20;
BartogUpdateHand++;
_global.modifhanding = 0.2;
}
} else if (BartogUpdateHand == 4) {
if (_global.feathers >= 25) {
_global.feathers = _global.feathers - 25;
BartogUpdateHand++;
_global.modifhanding = 0.25;
}
}
Status.Check.verif();
} else if (carSelected == "sport") {
if (TaKUpdateHand == 0) {
if (_global.feathers >= 5) {
_global.feathers = _global.feathers - 5;
TaKUpdateHand++;
_global.modifhanding = 0.08;
}
} else if (TaKUpdateHand == 1) {
if (_global.feathers >= 10) {
_global.feathers = _global.feathers - 10;
TaKUpdateHand++;
_global.modifhanding = 0.16;
}
} else if (TaKUpdateHand == 2) {
if (_global.feathers >= 15) {
_global.feathers = _global.feathers - 15;
TaKUpdateHand++;
_global.modifhanding = 0.24;
}
} else if (TaKUpdateHand == 3) {
if (_global.feathers >= 20) {
_global.feathers = _global.feathers - 20;
TaKUpdateHand++;
_global.modifhanding = 0.32;
}
} else if (TaKUpdateHand == 4) {
if (_global.feathers >= 25) {
_global.feathers = _global.feathers - 25;
TaKUpdateHand++;
_global.modifhanding = 0.4;
}
}
Status.Check.verif();
} else if (carSelected == "leger") {
if (JibUpdateHand == 0) {
if (_global.feathers >= 5) {
_global.feathers = _global.feathers - 5;
JibUpdateHand++;
_global.modifhanding = 0.1;
}
} else if (JibUpdateHand == 1) {
if (_global.feathers >= 10) {
_global.feathers = _global.feathers - 10;
JibUpdateSHand++;
_global.modifhanding = 0.2;
}
} else if (JibUpdateHand == 2) {
if (_global.feathers >= 15) {
_global.feathers = _global.feathers - 15;
JibUpdateHand++;
_global.modifhanding = 0.3;
}
} else if (JibUpdateHand == 3) {
if (_global.feathers >= 20) {
_global.feathers = _global.feathers - 20;
JibUpdateHand++;
_global.modifhanding = 0.4;
}
} else if (JibUpdateHand == 4) {
if (_global.feathers >= 25) {
_global.feathers = _global.feathers - 25;
JibUpdateHand++;
_global.modifhanding = 0.5;
}
}
Status.Check.verif();
} else if (carSelected == "prototype") {
if (GramUpdateHand == 0) {
if (_global.feathers >= 5) {
_global.feathers = _global.feathers - 5;
GramUpdateHand++;
_global.modifhanding = 0.06;
}
} else if (GramUpdateHand == 1) {
if (_global.feathers >= 10) {
_global.feathers = _global.feathers - 10;
GramUpdateHand++;
_global.modifhanding = 0.12;
}
} else if (GramUpdateHand == 2) {
if (_global.feathers >= 15) {
_global.feathers = _global.feathers - 15;
GramUpdateHand++;
_global.modifhanding = 0.18;
}
} else if (GramUpdateHand == 3) {
if (_global.feathers >= 20) {
_global.feathers = _global.feathers - 20;
GramUpdateHand++;
_global.modifhanding = 0.24;
}
} else if (GramUpdateHand == 4) {
if (_global.feathers >= 25) {
_global.feathers = _global.feathers - 25;
GramUpdateHand++;
_global.modifhanding = 0.3;
}
}
Status.Check.verif();
}
}
Symbol 476 Button
on (release) {
if (slideImage._currentframe == 1) {
if (cupChallenge == 1) {
if (firstStagePassCup1 == false) {
tableau = "race";
StageToGo = "stage1";
speaker.MusikIn = "Action";
AlertPage.gotoAndPlay("Initialyse");
AlertPage._visible = true;
}
} else if (firstStagePassCup2 == false) {
tableau = "race";
StageToGo = "reverse1";
speaker.MusikIn = "Action";
AlertPage.gotoAndPlay("Initialyse");
AlertPage._visible = true;
}
} else if (slideImage._currentframe == 2) {
if (cupChallenge == 1) {
if (firstStagePassCup1 == true) {
if (SecondStagePassCup1 == false) {
tableau = "race";
StageToGo = "stage2";
speaker.MusikIn = "Action";
AlertPage.gotoAndPlay("Initialyse");
AlertPage._visible = true;
}
}
} else if (firstStagePassCup2 == true) {
if (SecondStagePassCup2 == false) {
tableau = "race";
StageToGo = "reverse2";
speaker.MusikIn = "Action";
AlertPage.gotoAndPlay("Initialyse");
AlertPage._visible = true;
}
}
} else if (slideImage._currentframe == 3) {
if (cupChallenge == 1) {
if (SecondStagePassCup1 == true) {
if (ThirdStagePassCup1 == false) {
tableau = "race";
StageToGo = "stage3";
speaker.MusikIn = "Action";
AlertPage.gotoAndPlay("Initialyse");
AlertPage._visible = true;
}
}
} else if (SecondStagePassCup2 == true) {
if (ThirdStagePassCup2 == false) {
tableau = "race";
StageToGo = "reverse3";
speaker.MusikIn = "Action";
AlertPage.gotoAndPlay("Initialyse");
AlertPage._visible = true;
}
}
} else if (slideImage._currentframe == 4) {
if (DerbyUnlok == true) {
AlertPage.gotoAndStop("burial");
AlertPage._visible = true;
}
}
}
Symbol 479 Button
on (release) {
slideImage.prevFrame();
MapChoice.prevFrame();
}
Symbol 480 Button
on (release) {
slideImage.nextFrame();
MapChoice.nextFrame();
}
Symbol 489 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 1
stop();
Instance of Symbol 501 MovieClip "Forest" in Symbol 511 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.cupChallenge == 1) {
if (_parent._parent.firstStagePassCup1 == true) {
this.gotoAndStop(2);
}
} else if (_parent._parent.firstStagePassCup2 == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 504 MovieClip "Desert" in Symbol 511 MovieClip Frame 2
onClipEvent (load) {
if (_parent._parent.cupChallenge == 1) {
if (_parent._parent.firstStagePassCup1 == false) {
this.gotoAndStop(3);
}
if (_parent._parent.SecondStagePassCup1 == true) {
this.gotoAndStop(2);
}
} else {
if (_parent._parent.firstStagePassCup2 == false) {
this.gotoAndStop(3);
}
if (_parent._parent.SecondStagePassCup2 == true) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 507 MovieClip "Swamp" in Symbol 511 MovieClip Frame 3
onClipEvent (load) {
if (_parent._parent.cupChallenge == 1) {
if (_parent._parent.SecondStagePassCup1 == false) {
this.gotoAndStop(3);
}
if (_parent._parent.ThirdStagePassCup1 == true) {
this.gotoAndStop(2);
}
} else {
if (_parent._parent.SecondStagePassCup2 == false) {
this.gotoAndStop(3);
}
if (_parent._parent.ThirdStagePassCup2 == true) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 510 MovieClip "Forest" in Symbol 511 MovieClip Frame 4
onClipEvent (load) {
if (_parent._parent.DerbyUnlok == false) {
this.gotoAndStop(3);
}
}
Symbol 587 MovieClip Frame 1
aInterface = new Array();
l = 0;
while (l < 95) {
aInterface[l] = new Array();
h = 0;
while (h < 48) {
btester._x = l * 20;
btester._y = h * 20;
totalval = btester.getBounds(_parent._parent);
totalvalX = (totalval.xMax + totalval.xMin) / 2;
totalvalY = (totalval.yMax + totalval.yMin) / 2;
if (zone1.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "1";
} else if (zone2.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "2";
} else if (zone3.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "3";
} else if (zone4.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "4";
} else if (zone5.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "5";
} else if (zone6.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "6";
} else if (zone7.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "7";
} else if (zone8.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "8";
} else if (zone9.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "9";
} else if (zone10.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "10";
} else if (zone11.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "11";
} else if (zone12.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "12";
} else if (zone13.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "13";
} else if (zone14.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "14";
} else if (zone15.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "15";
} else if (zone16.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "16";
} else if (zone17.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "17";
} else if (zone18.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "18";
} else if (zone19.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "19";
} else if (zone20.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "20";
} else if (zone21.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "21";
} else if (zone22.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "22";
} else if (zone23.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "23";
} else if (zone24.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "24";
} else if (zone25.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "25";
} else if (zone26.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "26";
} else if (zone27.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "27";
} else if (zone28.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "28";
} else if (zone29.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "29";
} else if (zone30.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "30";
} else if (zone31.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "31";
} else if (zone32.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "32";
} else if (zone33.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "33";
} else if (zone34.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "34";
} else if (track_mc.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "T";
} else {
aInterface[l][h] = "N";
}
h++;
}
l++;
}
_parent._parent.speaker.gotoAndPlay("FadeOut");
Instance of Symbol 516 MovieClip "zone1" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 690;
dotYToGo = 400;
}
Instance of Symbol 518 MovieClip "zone2" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 750;
dotYToGo = 250;
}
Instance of Symbol 520 MovieClip "zone3" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 600;
dotYToGo = 180;
}
Instance of Symbol 522 MovieClip "zone4" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 820;
dotYToGo = 600;
}
Instance of Symbol 524 MovieClip "zone5" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1200;
dotYToGo = 625;
}
Instance of Symbol 526 MovieClip "zone6" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1350;
dotYToGo = 400;
}
Instance of Symbol 528 MovieClip "zone7" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1400;
dotYToGo = 400;
}
Instance of Symbol 530 MovieClip "zone8" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1440;
dotYToGo = 420;
}
Instance of Symbol 532 MovieClip "zone9" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1680;
dotYToGo = 600;
}
Instance of Symbol 534 MovieClip "zone10" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1315;
dotYToGo = 600;
}
Instance of Symbol 536 MovieClip "zone11" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1550;
dotYToGo = 550;
}
Instance of Symbol 538 MovieClip "zone12" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1225;
dotYToGo = 650;
}
Instance of Symbol 540 MovieClip "zone13" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 930;
dotYToGo = 720;
}
Instance of Symbol 542 MovieClip "zone14" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 950;
dotYToGo = 700;
}
Instance of Symbol 544 MovieClip "zone15" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 680;
dotYToGo = 740;
}
Instance of Symbol 546 MovieClip "zone16" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 600;
dotYToGo = 740;
}
Instance of Symbol 548 MovieClip "zone17" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 300;
dotYToGo = 600;
}
Instance of Symbol 550 MovieClip "zone18" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 350;
dotYToGo = 700;
}
Instance of Symbol 552 MovieClip "zone19" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 400;
dotYToGo = 680;
}
Instance of Symbol 554 MovieClip "zone20" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 330;
dotYToGo = 600;
}
Instance of Symbol 556 MovieClip "zone21" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 550;
dotYToGo = 300;
}
Instance of Symbol 558 MovieClip "zone22" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 615;
dotYToGo = 430;
}
Instance of Symbol 560 MovieClip "zone23" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 900;
dotYToGo = 150;
}
Instance of Symbol 562 MovieClip "zone24" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1050;
dotYToGo = 500;
}
Instance of Symbol 564 MovieClip "zone25" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 330;
dotYToGo = 260;
}
Instance of Symbol 566 MovieClip "zone26" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 40;
dotYToGo = 750;
}
Instance of Symbol 568 MovieClip "zone27" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 230;
dotYToGo = 1150;
}
Instance of Symbol 570 MovieClip "zone28" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 940;
dotYToGo = 400;
}
Instance of Symbol 572 MovieClip "zone29" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 900;
dotYToGo = 900;
}
Instance of Symbol 574 MovieClip "zone30" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1000;
dotYToGo = 0;
}
Instance of Symbol 576 MovieClip "zone31" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1300;
dotYToGo = 980;
}
Instance of Symbol 578 MovieClip "zone32" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1300;
dotYToGo = 220;
}
Instance of Symbol 580 MovieClip "zone33" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 2130;
dotYToGo = 750;
}
Instance of Symbol 582 MovieClip "zone34" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1530;
dotYToGo = 950;
}
Instance of Symbol 584 MovieClip "track_mc" in Symbol 587 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 609 MovieClip Frame 1
MyRoleIs = "house";
stop();
Symbol 609 MovieClip Frame 4
stop();
Symbol 612 MovieClip Frame 1
MyRoleIs = "boost";
Symbol 615 MovieClip Frame 5
if (_parent._name != "bouet") {
_parent._parent._parent.ControlerHT.FoundAName(_parent);
_parent.MyRoleIs = "lostcontrol";
}
stop();
Symbol 626 MovieClip Frame 1
stop();
Symbol 626 MovieClip Frame 17
stop();
Symbol 646 MovieClip Frame 1
stop();
Symbol 671 MovieClip Frame 12
_parent.gotoAndStop("Idle");
Symbol 672 MovieClip Frame 14
_parent.gotoAndStop("Idle");
Symbol 673 MovieClip Frame 14
_parent.gotoAndStop("Idle");
Symbol 674 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 13
nPass = 0;
Symbol 688 MovieClip Frame 21
_level0.Controler.LoseFeathers(_parent);
nPass++;
if (nPass == 3) {
} else {
gotoAndPlay ("Loop");
}
Symbol 706 MovieClip Frame 1
stop();
Symbol 715 MovieClip Frame 12
_parent.gotoAndStop("Idle");
Symbol 716 MovieClip Frame 14
_parent.gotoAndStop("Idle");
Symbol 717 MovieClip Frame 14
_parent.gotoAndStop("Idle");
Symbol 718 MovieClip Frame 1
stop();
Symbol 731 MovieClip Frame 1
stop();
Symbol 745 MovieClip Frame 12
_parent.gotoAndStop("Idle");
Symbol 746 MovieClip Frame 14
_parent.gotoAndStop("Idle");
Symbol 747 MovieClip Frame 14
_parent.gotoAndStop("Idle");
Symbol 748 MovieClip Frame 1
stop();
Symbol 762 MovieClip Frame 1
stop();
Symbol 777 MovieClip Frame 12
_parent.gotoAndStop("Idle");
Symbol 778 MovieClip Frame 14
_parent.gotoAndStop("Idle");
Symbol 779 MovieClip Frame 14
_parent.gotoAndStop("Idle");
Symbol 780 MovieClip Frame 1
stop();
Symbol 785 MovieClip Frame 27
stop();
Symbol 829 MovieClip Frame 13
stop();
_parent.perso1._visible = true;
_parent.perso2._visible = true;
Symbol 829 MovieClip Frame 14
_parent.perso1._visible = false;
_parent.perso2._visible = false;
Symbol 829 MovieClip Frame 25
_parent.gotoAndStop(_parent.noCar);
Symbol 830 MovieClip Frame 14
stop();
_parent.perso1._visible = true;
_parent.perso2._visible = true;
Symbol 830 MovieClip Frame 15
_parent.perso1._visible = false;
_parent.perso2._visible = false;
Symbol 830 MovieClip Frame 27
_parent.gotoAndStop(_parent.noCar);
Symbol 831 MovieClip Frame 13
stop();
_parent.perso1._visible = true;
_parent.perso2._visible = true;
Symbol 831 MovieClip Frame 14
_parent.perso1._visible = false;
_parent.perso2._visible = false;
Symbol 831 MovieClip Frame 25
_parent.gotoAndStop(_parent.noCar);
Symbol 832 MovieClip Frame 13
stop();
_parent.perso1._visible = true;
_parent.perso2._visible = true;
Symbol 832 MovieClip Frame 14
_parent.perso1._visible = false;
_parent.perso2._visible = false;
Symbol 832 MovieClip Frame 25
_parent.gotoAndStop(_parent.noCar);
Symbol 833 MovieClip Frame 1
stop();
if (this._name == "myCar") {
nMaxSpeed = 18 + _global.modifMaxSpeed;
nAccel = 0.52 + _global.modifAccel;
nHandling = 3.2 + _global.modifhanding;
} else {
nMaxSpeed = 25 + _global.modifMaxSpeedComp;
nAccel = 0.52 + _global.modifAccelComp;
nHandling = 3.2 + _global.modifhandingComp;
}
nGripFactor = 2.2;
nWeight = 2;
noCar = 1;
Symbol 833 MovieClip Frame 2
if (this._name == "myCar") {
nMaxSpeed = 20 + _global.modifMaxSpeed;
nAccel = 0.5 + _global.modifAccel;
nHandling = 3.1 + _global.modifhanding;
} else {
nMaxSpeed = 27 + _global.modifMaxSpeedComp;
nAccel = 0.5 + _global.modifAccelComp;
nHandling = 3.1 + _global.modifhandingComp;
}
nGripFactor = 3;
nWeight = 2.2;
noCar = 2;
Symbol 833 MovieClip Frame 3
if (this._name == "myCar") {
nMaxSpeed = 17 + _global.modifMaxSpeed;
nAccel = 0.59 + _global.modifAccel;
nHandling = 3.4 + _global.modifhanding;
} else {
nMaxSpeed = 24 + _global.modifMaxSpeedComp;
nAccel = 0.59 + _global.modifAccelComp;
nHandling = 3.4 + _global.modifhandingComp;
}
nGripFactor = 3.2;
nWeight = 2;
noCar = 3;
Symbol 833 MovieClip Frame 4
if (this._name == "myCar") {
nMaxSpeed = 23 + _global.modifMaxSpeed;
nAccel = 0.42 + _global.modifAccel;
nHandling = 2.8 + _global.modifhanding;
} else {
nMaxSpeed = 30 + _global.modifMaxSpeedComp;
nAccel = 0.42 + _global.modifAccelComp;
nHandling = 2.8 + _global.modifhandingComp;
}
nGripFactor = 2.3;
nWeight = 2.4;
noCar = 4;
Symbol 833 MovieClip Frame 5
nMaxSpeed = 11;
nAccel = 0.4;
nHandling = 2.7;
nGripFactor = 2.3;
nWeight = 2.2;
Instance of Symbol 829 MovieClip in Symbol 833 MovieClip Frame 5
onClipEvent (load) {
timeSpend = 0;
}
onClipEvent (enterFrame) {
timeSpend++;
if (timeSpend > 150) {
this.play();
}
}
Instance of Symbol 646 MovieClip "perso1" in Symbol 833 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 674 MovieClip "perso2" in Symbol 833 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Symbol 833 MovieClip Frame 6
nMaxSpeed = 11;
nAccel = 0.4;
nHandling = 2.7;
nGripFactor = 2.3;
nWeight = 2.2;
Instance of Symbol 830 MovieClip in Symbol 833 MovieClip Frame 6
onClipEvent (load) {
timeSpend = 0;
}
onClipEvent (enterFrame) {
timeSpend++;
if (timeSpend > 150) {
this.play();
}
}
Instance of Symbol 706 MovieClip "perso1" in Symbol 833 MovieClip Frame 6
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 718 MovieClip "perso2" in Symbol 833 MovieClip Frame 6
onClipEvent (load) {
this._visible = false;
}
Symbol 833 MovieClip Frame 7
nMaxSpeed = 11;
nAccel = 0.4;
nHandling = 2.7;
nGripFactor = 2.3;
nWeight = 2.2;
Instance of Symbol 831 MovieClip in Symbol 833 MovieClip Frame 7
onClipEvent (load) {
timeSpend = 0;
}
onClipEvent (enterFrame) {
timeSpend++;
if (timeSpend > 150) {
this.play();
}
}
Instance of Symbol 731 MovieClip "perso1" in Symbol 833 MovieClip Frame 7
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 748 MovieClip "perso2" in Symbol 833 MovieClip Frame 7
onClipEvent (load) {
this._visible = false;
}
Symbol 833 MovieClip Frame 8
nMaxSpeed = 11;
nAccel = 0.4;
nHandling = 2.7;
nGripFactor = 2.3;
nWeight = 2.2;
Instance of Symbol 832 MovieClip in Symbol 833 MovieClip Frame 8
onClipEvent (load) {
timeSpend = 0;
}
onClipEvent (enterFrame) {
timeSpend++;
if (timeSpend > 150) {
this.play();
}
}
Instance of Symbol 587 MovieClip "ArrayGrid" in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 609 MovieClip "hutte1" in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte3" in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 630 MovieClip "puceSystems" in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 833 MovieClip "carEnemi3" in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
nb = 1;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
CastPossible = true;
checkCount = 3;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (lostControl == false) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 1200) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 3);
LastCast = random(300) - 150;
}
}
if (checkCount == 3) {
checkCount = 1;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 3);
} else {
checkCount++;
}
} else {
if (checkCount == 3) {
checkCount = 1;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 3);
} else {
checkCount++;
}
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.Controler.SpinUp(this);
}
}
}
Instance of Symbol 833 MovieClip "carEnemi2" in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1020);
nb = 1;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
CastPossible = true;
checkCount = 3;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (lostControl == false) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 1200) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 2);
LastCast = random(300) - 150;
}
}
if (checkCount == 3) {
checkCount = 1;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
} else {
checkCount++;
}
} else {
if (checkCount == 3) {
checkCount = 1;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
} else {
checkCount++;
}
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.Controler.SpinUp(this);
}
}
}
Instance of Symbol 833 MovieClip "carEnemi1" in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1010);
nb = 1;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
CastPossible = true;
checkCount = 3;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (lostControl == false) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 1200) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 1);
LastCast = random(300) - 150;
}
}
if (checkCount == 3) {
checkCount = 1;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
} else {
if (checkCount == 3) {
checkCount = 1;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.Controler.SpinUp(this);
}
}
}
Symbol 849 MovieClip Frame 1
_global.vPaused = true;
Symbol 849 MovieClip Frame 2
_root.speakerMot.StartMoteur();
Symbol 849 MovieClip Frame 68
_global.vPaused = false;
Symbol 849 MovieClip Frame 78
stop();
Symbol 849 MovieClip Frame 81
passed = 0;
i = 1;
while (i < 5) {
if (_parent.cadre.myPosition == i) {
_parent["position" + i] = _parent.myCar.noCar;
} else if (_parent.cadre.Player1Position == i) {
passed++;
_parent["position" + passed] = _parent.Course_mc.carEnemi1.noCar;
} else if (_parent.cadre.Player2Position == i) {
passed++;
_parent["position" + passed] = _parent.Course_mc.carEnemi2.noCar;
} else if (_parent.cadre.Player3Position == i) {
passed++;
_parent["position" + passed] = _parent.Course_mc.carEnemi3.noCar;
}
i++;
}
Instance of Symbol 170 MovieClip "AlertPage" in Symbol 849 MovieClip Frame 83
onClipEvent (load) {
if (_parent._parent.cadre.myPosition != _parent._parent.CoursePS.enemi) {
this.gotoAndStop("finish");
} else {
this.gotoAndStop("lose");
}
}
Symbol 849 MovieClip Frame 107
stop();
Symbol 849 MovieClip Frame 133
if (_parent.cadre.myPosition != _parent.CoursePS.enemi) {
CupWinner = false;
if ((_parent.cupChallenge == 1) and (_parent.tableau == "race")) {
if (_parent.firstStagePassCup1 == false) {
_parent.firstStagePassCup1 = true;
} else if (_parent.SecondStagePassCup1 == false) {
_parent.SecondStagePassCup1 = true;
} else if (_parent.ThirdStagePassCup1 == false) {
_parent.ThirdStagePassCup1 = true;
_parent.bartogUnlok = true;
_parent.firstCupPass = true;
_parent.GreaterChallengeUnlok = true;
_parent.DerbyUnlok = true;
CupWinner = true;
}
} else if (_parent.tableau == "race") {
if (_parent.firstStagePassCup2 == false) {
_parent.firstStagePassCup2 = true;
} else if (_parent.SecondStagePassCup2 == false) {
_parent.SecondStagePassCup2 = true;
} else if (_parent.ThirdStagePassCup2 == false) {
_parent.ThirdStagePassCup2 = true;
CupWinner = true;
}
}
if (CupWinner == false) {
_parent.gotoAndPlay("win");
} else {
_parent.gotoAndPlay("winCup");
}
}
stop();
Instance of Symbol 860 MovieClip "Mask" in Symbol 864 MovieClip Frame 1
onClipEvent (enterFrame) {
this._yscale = _parent._parent._parent._parent.myCar.MagieBar;
}
Symbol 881 MovieClip Frame 1
stop();
Symbol 896 Button
on (release) {
_global.vPaused = true;
instructions.gotoAndStop(1);
}
Symbol 903 Button
on (release) {
AlertPage.gotoAndStop("quit");
AlertPage._visible = true;
_global.vPaused = true;
}
Symbol 919 Button
on (release) {
if (_parent._currentframe == 97) {
_parent.gotoAndPlay("intro");
} else {
gotoAndStop (10);
_global.vPaused = false;
}
}
Symbol 928 Button
on (release) {
gotoAndStop (2);
}
Symbol 941 Button
on (release) {
gotoAndStop (1);
}
Symbol 942 Button
on (release) {
gotoAndStop (3);
}
Symbol 955 Button
on (release) {
gotoAndStop (4);
}
Symbol 974 Button
on (release) {
gotoAndStop (5);
}
Symbol 1001 Button
on (release) {
gotoAndStop (6);
}
Symbol 1009 MovieClip Frame 1
stop();
Symbol 1015 Button
on (release) {
gotoAndStop (7);
}
Symbol 1027 Button
on (release) {
gotoAndStop (8);
}
Symbol 1042 MovieClip Frame 1
stop();
cache.useHandCursor = false;
Instance of Symbol 1042 MovieClip "instructions" in Symbol 1049 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (10);
}
Instance of Symbol 170 MovieClip "AlertPage" in Symbol 1049 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 587 MovieClip "ArrayGrid" in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 609 MovieClip "hutte1" in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte3" in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 1050 MovieClip "puceSystems" in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 833 MovieClip "carEnemi3" in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
nb = 1;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
CastPossible = true;
checkCount = 3;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (lostControl == false) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 1200) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 3);
LastCast = random(300) - 150;
}
}
if (checkCount == 3) {
checkCount = 1;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 3);
} else {
checkCount++;
}
} else {
if (checkCount == 3) {
checkCount = 1;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 3);
} else {
checkCount++;
}
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.Controler.SpinUp(this);
}
}
}
Instance of Symbol 833 MovieClip "carEnemi2" in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1002);
nb = 1;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
CastPossible = true;
checkCount = 3;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (lostControl == false) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 1200) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 2);
LastCast = random(300) - 150;
}
}
if (checkCount == 3) {
checkCount = 1;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
} else {
checkCount++;
}
} else {
if (checkCount == 3) {
checkCount = 1;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
} else {
checkCount++;
}
_parent._parent.Controler.SpinUp(this);
}
}
}
Instance of Symbol 833 MovieClip "carEnemi1" in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1010);
nb = 1;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
CastPossible = true;
checkCount = 3;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (lostControl == false) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 1200) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 1);
LastCast = random(300) - 150;
}
}
if (checkCount == 3) {
checkCount = 1;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
} else {
if (checkCount == 3) {
checkCount = 1;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.Controler.SpinUp(this);
}
}
}
Symbol 1187 MovieClip Frame 1
aInterface = new Array();
l = 0;
while (l < 96) {
aInterface[l] = new Array();
h = 0;
while (h < 72) {
btester._x = l * 20;
btester._y = h * 20;
totalval = btester.getBounds(_parent._parent);
totalvalX = (totalval.xMax + totalval.xMin) / 2;
totalvalY = (totalval.yMax + totalval.yMin) / 2;
if (zone1.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "1";
} else if (zone2.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "2";
} else if (zone3.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "3";
} else if (zone4.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "4";
} else if (zone5.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "5";
} else if (zone6.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "6";
} else if (zone7.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "7";
} else if (zone8.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "8";
} else if (zone9.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "9";
} else if (zone10.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "10";
} else if (zone11.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "11";
} else if (zone12.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "12";
} else if (zone13.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "13";
} else if (zone14.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "14";
} else if (zone15.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "15";
} else if (zone16.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "16";
} else if (zone17.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "17";
} else if (zone18.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "18";
} else if (zone19.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "19";
} else if (zone20.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "20";
} else if (zone21.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "21";
} else if (zone22.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "22";
} else if (zone23.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "23";
} else if (zone24.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "24";
} else if (zone25.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "25";
} else if (zone26.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "26";
} else if (zone27.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "27";
} else if (zone28.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "28";
} else if (zone29.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "29";
} else if (zone30.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "30";
} else if (zone31.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "31";
} else if (zone32.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "32";
} else if (zone33.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "33";
} else if (zone34.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "34";
} else if (zone35.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "35";
} else if (zone36.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "36";
} else if (zone37.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "37";
} else if (zone38.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "38";
} else if (zone39.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "39";
} else if (zone40.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "40";
} else if (zone41.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "41";
} else if (zone42.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "42";
} else if (zone43.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "43";
} else if (zone44.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "44";
} else if (zone45.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "45";
} else if (zone46.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "46";
} else if (zone47.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "47";
} else if (zone48.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "48";
} else if (zone49.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "49";
} else if (zone50.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "50";
} else if (zone51.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "51";
} else if (zone52.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "52";
} else if (zone53.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "53";
} else if (zone54.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "54";
} else if (zone55.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "55";
} else if (zone56.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "56";
} else if (zone57.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "57";
} else if (zone58.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "58";
} else if (zone59.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "59";
} else if (zone60.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "60";
} else if (zone61.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "61";
} else if (zone62.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "62";
} else if (zone63.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "63";
} else if (zone64.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "64";
} else if (zone65.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "65";
} else if (track_mc.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "T";
} else {
aInterface[l][h] = "N";
}
h++;
}
l++;
}
_parent._parent.speaker.gotoAndPlay("FadeOut");
Instance of Symbol 1056 MovieClip "zone1" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1300;
dotYToGo = 180;
}
Instance of Symbol 1058 MovieClip "zone2" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1300;
dotYToGo = 580;
}
Instance of Symbol 1060 MovieClip "zone3" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1730;
dotYToGo = 380;
}
Instance of Symbol 1062 MovieClip "zone4" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1480;
dotYToGo = 500;
}
Instance of Symbol 1064 MovieClip "zone5" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 926;
dotYToGo = 430;
}
Instance of Symbol 1066 MovieClip "zone6" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 830;
dotYToGo = 280;
}
Instance of Symbol 1068 MovieClip "zone7" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 530;
dotYToGo = 870;
}
Instance of Symbol 1070 MovieClip "zone8" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 200;
dotYToGo = 920;
}
Instance of Symbol 1072 MovieClip "zone9" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1270;
dotYToGo = 1400;
}
Instance of Symbol 1074 MovieClip "zone10" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1750;
dotYToGo = 1250;
}
Instance of Symbol 1076 MovieClip "zone11" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 950;
dotYToGo = 1260;
}
Instance of Symbol 1078 MovieClip "zone12" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1800;
dotYToGo = 1100;
}
Instance of Symbol 1080 MovieClip "zone13" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1000;
dotYToGo = 960;
}
Instance of Symbol 1082 MovieClip "zone14" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1150;
dotYToGo = 850;
}
Instance of Symbol 1084 MovieClip "zone15" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1700;
dotYToGo = 450;
}
Instance of Symbol 1086 MovieClip "zone16" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1550;
dotYToGo = 300;
}
Instance of Symbol 1088 MovieClip "zone17" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1230;
dotYToGo = 200;
}
Instance of Symbol 1090 MovieClip "zone18" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1080;
dotYToGo = 420;
}
Instance of Symbol 1092 MovieClip "zone19" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1250;
dotYToGo = 810;
}
Instance of Symbol 1094 MovieClip "zone20" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1000;
dotYToGo = 600;
}
Instance of Symbol 1096 MovieClip "zone21" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1060;
dotYToGo = 950;
}
Instance of Symbol 1098 MovieClip "zone22" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 800;
dotYToGo = 550;
}
Instance of Symbol 1100 MovieClip "zone23" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 550;
dotYToGo = 1350;
}
Instance of Symbol 1102 MovieClip "zone24" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 530;
dotYToGo = 1540;
}
Instance of Symbol 1104 MovieClip "zone25" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 720;
dotYToGo = 570;
}
Instance of Symbol 1106 MovieClip "zone26" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 770;
dotYToGo = 650;
}
Instance of Symbol 1108 MovieClip "zone27" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 300;
dotYToGo = 1200;
}
Instance of Symbol 1110 MovieClip "zone28" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 200;
dotYToGo = 760;
}
Instance of Symbol 1112 MovieClip "zone29" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 850;
dotYToGo = 550;
}
Instance of Symbol 1114 MovieClip "zone30" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 200;
dotYToGo = 400;
}
Instance of Symbol 1116 MovieClip "zone31" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 760;
dotYToGo = 250;
}
Instance of Symbol 1118 MovieClip "zone32" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 930;
dotYToGo = 300;
}
Instance of Symbol 1120 MovieClip "zone33" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1330;
dotYToGo = 660;
}
Instance of Symbol 1122 MovieClip "zone34" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1515;
dotYToGo = 695;
}
Instance of Symbol 1124 MovieClip "zone35" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 960;
dotYToGo = 770;
}
Instance of Symbol 1126 MovieClip "zone36" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1370;
dotYToGo = 770;
}
Instance of Symbol 1128 MovieClip "zone37" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 670;
dotYToGo = 700;
}
Instance of Symbol 1130 MovieClip "zone38" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1340;
dotYToGo = 1180;
}
Instance of Symbol 1132 MovieClip "zone39" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1370;
dotYToGo = 1080;
}
Instance of Symbol 1134 MovieClip "zone40" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1385;
dotYToGo = 1000;
}
Instance of Symbol 1136 MovieClip "zone41" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1480;
dotYToGo = 800;
}
Instance of Symbol 1138 MovieClip "zone42" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1550;
dotYToGo = 675;
}
Instance of Symbol 1140 MovieClip "zone43" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1600;
dotYToGo = 400;
}
Instance of Symbol 1142 MovieClip "zone44" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1500;
dotYToGo = 500;
}
Instance of Symbol 1144 MovieClip "zone45" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1200;
dotYToGo = 320;
}
Instance of Symbol 1146 MovieClip "zone46" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1300;
dotYToGo = 330;
}
Instance of Symbol 1148 MovieClip "zone47" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1320;
dotYToGo = 300;
}
Instance of Symbol 1150 MovieClip "zone48" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1225;
dotYToGo = 400;
}
Instance of Symbol 1152 MovieClip "zone49" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 810;
dotYToGo = 760;
}
Instance of Symbol 1154 MovieClip "zone50" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 780;
dotYToGo = 800;
}
Instance of Symbol 1156 MovieClip "zone51" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 630;
dotYToGo = 680;
}
Instance of Symbol 1158 MovieClip "zone52" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 760;
dotYToGo = 380;
}
Instance of Symbol 1160 MovieClip "zone53" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 840;
dotYToGo = 340;
}
Instance of Symbol 1162 MovieClip "zone54" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 830;
dotYToGo = 300;
}
Instance of Symbol 1164 MovieClip "zone55" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 860;
dotYToGo = 300;
}
Instance of Symbol 1166 MovieClip "zone56" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 870;
dotYToGo = 290;
}
Instance of Symbol 1168 MovieClip "zone57" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 780;
dotYToGo = 300;
}
Instance of Symbol 1170 MovieClip "zone58" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 600;
dotYToGo = 400;
}
Instance of Symbol 1172 MovieClip "zone59" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 450;
dotYToGo = 500;
}
Instance of Symbol 1174 MovieClip "zone60" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 400;
dotYToGo = 560;
}
Instance of Symbol 1176 MovieClip "zone61" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 430;
dotYToGo = 760;
}
Instance of Symbol 1178 MovieClip "zone62" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 430;
dotYToGo = 1050;
}
Instance of Symbol 1180 MovieClip "zone63" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 460;
dotYToGo = 1180;
}
Instance of Symbol 1182 MovieClip "zone64" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 420;
dotYToGo = 1150;
}
Instance of Symbol 1184 MovieClip "zone65" in Symbol 1187 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 620;
dotYToGo = 1060;
}
Instance of Symbol 1187 MovieClip "ArrayGrid" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 833 MovieClip "carEnemi2" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1010);
nb = 1;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
jumping = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
checkCount = 3;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if ((lostControl == false) and (jumping == false)) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 1200) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 2);
LastCast = random(300) - 150;
}
}
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
} else {
checkCount++;
}
} else if ((lostControl == true) and (jumping == false)) {
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
} else {
checkCount++;
}
_parent._parent.Controler.SpinUp(this);
} else if ((jumping == true) and (lostControl == false)) {
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
} else {
checkCount++;
}
_parent._parent.Controler.fJumping(this);
} else {
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
} else {
checkCount++;
}
_parent._parent.Controler.fJumping(this);
_parent._parent.Controler.SpinUp(this);
}
}
}
Instance of Symbol 833 MovieClip "carEnemi1" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
nb = 1;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
jumping = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
checkCount = 3;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if ((lostControl == false) and (jumping == false)) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 1200) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 1);
LastCast = random(300) - 150;
}
}
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
} else if ((lostControl == true) and (jumping == false)) {
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.Controler.SpinUp(this);
} else if ((jumping == true) and (lostControl == false)) {
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.Controler.fJumping(this);
} else {
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.Controler.fJumping(this);
_parent._parent.Controler.SpinUp(this);
}
}
}
Instance of Symbol 1188 MovieClip "puceSystems" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1190 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 1187 MovieClip "ArrayGrid" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 833 MovieClip "carEnemi2" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1010);
nb = 1;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
jumping = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
checkCount = 3;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if ((lostControl == false) and (jumping == false)) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 1200) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 2);
LastCast = random(300) - 150;
}
}
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
} else {
checkCount++;
}
} else if ((lostControl == true) and (jumping == false)) {
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
} else {
checkCount++;
}
_parent._parent.Controler.SpinUp(this);
} else if ((jumping == true) and (lostControl == false)) {
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
} else {
checkCount++;
}
_parent._parent.Controler.fJumping(this);
} else {
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
} else {
checkCount++;
}
_parent._parent.Controler.fJumping(this);
_parent._parent.Controler.SpinUp(this);
}
}
}
Instance of Symbol 833 MovieClip "carEnemi1" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
nb = 1;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
jumping = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
checkCount = 3;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if ((lostControl == false) and (jumping == false)) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 1200) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 1);
LastCast = random(300) - 150;
}
}
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
} else if ((lostControl == true) and (jumping == false)) {
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.Controler.SpinUp(this);
} else if ((jumping == true) and (lostControl == false)) {
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.Controler.fJumping(this);
} else {
if (checkCount == 3) {
checkCount = 2;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.Controler.fJumping(this);
_parent._parent.Controler.SpinUp(this);
}
}
}
Instance of Symbol 1195 MovieClip "puceSystems" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1190 MovieClip in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 609 MovieClip "hutte2" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1196 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Symbol 1318 MovieClip Frame 1
aInterface = new Array();
l = 0;
while (l < 96) {
aInterface[l] = new Array();
h = 0;
while (h < 72) {
btester._x = l * 20;
btester._y = h * 20;
totalval = btester.getBounds(_parent._parent);
totalvalX = (totalval.xMax + totalval.xMin) / 2;
totalvalY = (totalval.yMax + totalval.yMin) / 2;
if (zone5.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "5";
} else if (zone6.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "6";
} else if (zone7.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "7";
} else if (zone8.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "8";
} else if (zone9.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "9";
} else if (zone10.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "10";
} else if (zone11.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "11";
} else if (zone12.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "12";
} else if (zone13.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "13";
} else if (zone14.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "14";
} else if (zone15.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "15";
} else if (zone16.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "16";
} else if (zone17.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "17";
} else if (zone18.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "18";
} else if (zone19.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "19";
} else if (zone20.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "20";
} else if (zone21.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "21";
} else if (zone22.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "22";
} else if (zone23.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "23";
} else if (zone24.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "24";
} else if (zone25.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "25";
} else if (zone26.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "26";
} else if (zone27.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "27";
} else if (zone28.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "28";
} else if (zone29.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "29";
} else if (zone30.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "30";
} else if (zone31.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "31";
} else if (zone32.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "32";
} else if (zone33.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "33";
} else if (zone34.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "34";
} else if (zone35.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "35";
} else if (zone36.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "36";
} else if (zone37.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "37";
} else if (zone38.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "38";
} else if (zone39.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "39";
} else if (zone40.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "40";
} else if (zone41.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "41";
} else if (zone42.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "42";
} else if (zone43.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "43";
} else if (zone44.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "44";
} else if (zone45.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "45";
} else if (zone46.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "46";
} else if (zone47.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "47";
} else if (zone48.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "48";
} else if (zone49.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "49";
} else if (zone50.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "50";
} else if (zone51.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "51";
} else if (zone52.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "52";
} else if (zone53.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "53";
} else if (zone54.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "54";
} else if (zone55.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "55";
} else if (zone56.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "56";
} else if (zone57.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "57";
} else if (zone58.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "58";
} else if (zone59.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "59";
} else if (zone60.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "60";
} else if (zone61.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "61";
} else if (zone62.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "62";
} else if (track_mc.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "T";
} else {
aInterface[l][h] = "N";
}
h++;
}
l++;
}
_parent._parent.speaker.gotoAndPlay("FadeOut");
Instance of Symbol 1201 MovieClip "zone5" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1120;
dotYToGo = 600;
}
Instance of Symbol 1203 MovieClip "zone6" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1450;
dotYToGo = 500;
}
Instance of Symbol 1205 MovieClip "zone7" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1650;
dotYToGo = 230;
}
Instance of Symbol 1207 MovieClip "zone8" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1600;
dotYToGo = 350;
}
Instance of Symbol 1209 MovieClip "zone9" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1550;
dotYToGo = 150;
}
Instance of Symbol 1211 MovieClip "zone10" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1350;
dotYToGo = 200;
}
Instance of Symbol 1213 MovieClip "zone11" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1450;
dotYToGo = 400;
}
Instance of Symbol 1215 MovieClip "zone12" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1300;
dotYToGo = 500;
}
Instance of Symbol 1217 MovieClip "zone13" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1230;
dotYToGo = 625;
}
Instance of Symbol 1219 MovieClip "zone14" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1300;
dotYToGo = 650;
}
Instance of Symbol 1221 MovieClip "zone15" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1500;
dotYToGo = 820;
}
Instance of Symbol 1223 MovieClip "zone16" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1580;
dotYToGo = 900;
}
Instance of Symbol 1225 MovieClip "zone17" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1620;
dotYToGo = 1050;
}
Instance of Symbol 1227 MovieClip "zone18" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1450;
dotYToGo = 1100;
}
Instance of Symbol 1229 MovieClip "zone19" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1405;
dotYToGo = 1000;
}
Instance of Symbol 1231 MovieClip "zone20" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1100;
dotYToGo = 875;
}
Instance of Symbol 1233 MovieClip "zone21" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 960;
dotYToGo = 700;
}
Instance of Symbol 1235 MovieClip "zone22" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 920;
dotYToGo = 690;
}
Instance of Symbol 1237 MovieClip "zone23" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 950;
dotYToGo = 350;
}
Instance of Symbol 1239 MovieClip "zone24" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 450;
dotYToGo = 350;
}
Instance of Symbol 1241 MovieClip "zone25" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 800;
dotYToGo = 700;
}
Instance of Symbol 1243 MovieClip "zone26" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 375;
dotYToGo = 615;
}
Instance of Symbol 1245 MovieClip "zone27" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 620;
dotYToGo = 770;
}
Instance of Symbol 1247 MovieClip "zone28" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 600;
dotYToGo = 840;
}
Instance of Symbol 1249 MovieClip "zone29" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 620;
dotYToGo = 850;
}
Instance of Symbol 1251 MovieClip "zone30" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 960;
dotYToGo = 640;
}
Instance of Symbol 1253 MovieClip "zone31" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 900;
dotYToGo = 900;
}
Instance of Symbol 1255 MovieClip "zone32" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1040;
dotYToGo = 1250;
}
Instance of Symbol 1257 MovieClip "zone33" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 660;
dotYToGo = 1260;
}
Instance of Symbol 1259 MovieClip "zone34" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 480;
dotYToGo = 1450;
}
Instance of Symbol 1261 MovieClip "zone35" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 200;
dotYToGo = 1300;
}
Instance of Symbol 1263 MovieClip "zone36" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 250;
dotYToGo = 600;
}
Instance of Symbol 1265 MovieClip "zone37" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 570;
dotYToGo = 870;
}
Instance of Symbol 1267 MovieClip "zone38" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 600;
dotYToGo = 710;
}
Instance of Symbol 1269 MovieClip "zone39" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 600;
dotYToGo = 900;
}
Instance of Symbol 1271 MovieClip "zone40" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 950;
dotYToGo = 600;
}
Instance of Symbol 1273 MovieClip "zone41" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 820;
dotYToGo = 900;
}
Instance of Symbol 1275 MovieClip "zone42" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1050;
dotYToGo = 700;
}
Instance of Symbol 1277 MovieClip "zone43" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 850;
dotYToGo = 930;
}
Instance of Symbol 1279 MovieClip "zone44" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1150;
dotYToGo = 830;
}
Instance of Symbol 1281 MovieClip "zone45" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1350;
dotYToGo = 1000;
}
Instance of Symbol 1283 MovieClip "zone46" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1550;
dotYToGo = 1000;
}
Instance of Symbol 1285 MovieClip "zone47" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1450;
dotYToGo = 900;
}
Instance of Symbol 1287 MovieClip "zone48" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1350;
dotYToGo = 510;
}
Instance of Symbol 1289 MovieClip "zone49" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1350;
dotYToGo = 350;
}
Instance of Symbol 1291 MovieClip "zone50" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1550;
dotYToGo = 250;
}
Instance of Symbol 1293 MovieClip "zone51" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1450;
dotYToGo = 300;
}
Instance of Symbol 1295 MovieClip "zone52" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 1020;
dotYToGo = 400;
}
Instance of Symbol 1297 MovieClip "zone53" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 650;
dotYToGo = 550;
}
Instance of Symbol 1299 MovieClip "zone54" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 450;
dotYToGo = 650;
}
Instance of Symbol 1301 MovieClip "zone55" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 350;
dotYToGo = 850;
}
Instance of Symbol 1303 MovieClip "zone56" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 260;
dotYToGo = 1100;
}
Instance of Symbol 1305 MovieClip "zone57" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 150;
dotYToGo = 1250;
}
Instance of Symbol 1307 MovieClip "zone58" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 350;
dotYToGo = 1350;
}
Instance of Symbol 1309 MovieClip "zone59" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 520;
dotYToGo = 1250;
}
Instance of Symbol 1311 MovieClip "zone60" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 650;
dotYToGo = 1150;
}
Instance of Symbol 1313 MovieClip "zone61" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 820;
dotYToGo = 1000;
}
Instance of Symbol 1315 MovieClip "zone62" in Symbol 1318 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 900;
dotYToGo = 950;
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 1318 MovieClip "ArrayGrid" in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 833 MovieClip "carEnemi1" in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
nb = 1;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
jumping = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
checkCount = 3;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if ((lostControl == false) and (jumping == false)) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 1200) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 1);
LastCast = random(300) - 150;
}
}
if (checkCount == 3) {
checkCount = 3;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
} else if ((lostControl == true) and (jumping == false)) {
if (checkCount == 3) {
checkCount = 3;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.Controler.SpinUp(this);
} else if ((jumping == true) and (lostControl == false)) {
if (checkCount == 3) {
checkCount = 3;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.Controler.fJumping(this);
} else {
if (checkCount == 3) {
checkCount = 3;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.Controler.fJumping(this);
_parent._parent.Controler.SpinUp(this);
}
}
}
Instance of Symbol 1319 MovieClip "puceSystems" in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1190 MovieClip in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 1318 MovieClip "ArrayGrid" in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 833 MovieClip "carEnemi1" in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
nb = 1;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
jumping = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
checkCount = 3;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if ((lostControl == false) and (jumping == false)) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 1200) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 1);
LastCast = random(300) - 150;
}
}
if (checkCount == 3) {
checkCount = 3;
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
} else if ((lostControl == true) and (jumping == false)) {
if (checkCount == 3) {
checkCount = 3;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.Controler.SpinUp(this);
} else if ((jumping == true) and (lostControl == false)) {
if (checkCount == 3) {
checkCount = 3;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.Controler.fJumping(this);
} else {
if (checkCount == 3) {
checkCount = 3;
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
checkCount++;
}
_parent._parent.Controler.fJumping(this);
_parent._parent.Controler.SpinUp(this);
}
}
}
Instance of Symbol 1329 MovieClip "puceSystems" in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1190 MovieClip in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 1190 MovieClip in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
MyRoleIs = "jump";
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Instance of Symbol 612 MovieClip "Boost1" in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_parent._parent.ControlerHT.FoundAName(this);
}
Symbol 1342 Button
on (release) {
gotoAndStop ("tuneShop");
}
Symbol 1349 Button
on (release) {
gotoAndPlay ("intro");
cupChallenge = "notChoose";
}
Symbol 1357 Button
on (release) {
_root.gotoAndPlay("intro2");
}
Symbol 1358 Button
on (release) {
gotoAndStop (2);
}
Symbol 1359 Button
on (release) {
gotoAndStop (1);
}
Symbol 1360 Button
on (release) {
gotoAndStop (3);
}
Symbol 1361 Button
on (release) {
gotoAndStop (4);
}
Symbol 1362 Button
on (release) {
gotoAndStop (5);
}
Symbol 1363 Button
on (release) {
gotoAndStop (6);
}
Symbol 1364 Button
on (release) {
gotoAndStop (7);
}
Symbol 1365 Button
on (release) {
gotoAndStop (8);
}
Symbol 1366 MovieClip Frame 1
stop();
cache.useHandCursor = false;
Symbol 1386 Button
on (release) {
gotoAndPlay ("selectChars");
cupChallenge = "notChoose";
}
Symbol 1387 Button
on (release) {
gotoAndPlay ("intro");
cupChallenge = "notChoose";
}
Symbol 1392 MovieClip Frame 1
aInterface = new Array();
l = 0;
while (l < 48) {
aInterface[l] = new Array();
h = 0;
while (h < 46) {
btester._x = l * 20;
btester._y = h * 20;
totalval = btester.getBounds(_parent._parent);
totalvalX = (totalval.xMax + totalval.xMin) / 2;
totalvalY = (totalval.yMax + totalval.yMin) / 2;
if (zone1.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "1";
} else if (track_mc.hitTest(totalvalX, totalvalY, true)) {
aInterface[l][h] = "T";
} else {
aInterface[l][h] = "N";
}
h++;
}
l++;
}
_parent._parent.speaker.gotoAndPlay("FadeOut");
Instance of Symbol 1389 MovieClip "track_mc" in Symbol 1392 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1391 MovieClip "zone1" in Symbol 1392 MovieClip Frame 1
onClipEvent (load) {
dotXToGo = 500;
dotYToGo = 450;
}
Symbol 1393 MovieClip Frame 4
_parent._parent._parent.ControlerENEMI.ShootFeathers();
stop();
Symbol 1394 MovieClip Frame 1
if (this._name != "feathersXY") {
_parent._parent.ControlerHT.FoundAName(this);
_parent.Xtofind = this._x;
_parent.Ytofind = this._y;
MyRoleIs = "money2";
}
stop();
Instance of Symbol 1392 MovieClip "ArrayGrid" in Symbol 1395 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 833 MovieClip "carEnemi3" in Symbol 1395 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1020);
nb = 1;
pointage = 0;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
CastPossible = true;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (lostControl == false) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 750) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 3);
LastCast = random(300) - 150;
}
}
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 3);
} else {
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 3);
_parent._parent.Controler.SpinUp(this);
_parent._parent.ControlerENEMI.ViewDirection(this);
}
}
}
Instance of Symbol 833 MovieClip "carEnemi1" in Symbol 1395 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1010);
nb = 1;
pointage = 0;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
CastPossible = true;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (lostControl == false) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 750) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 1);
LastCast = random(300) - 150;
}
}
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
} else {
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 1);
_parent._parent.Controler.SpinUp(this);
_parent._parent.ControlerENEMI.ViewDirection(this);
}
}
}
Instance of Symbol 833 MovieClip "carEnemi2" in Symbol 1395 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
nb = 1;
pointage = 0;
deStuckWall = false;
sDirection = "foward";
nSpeed = 0;
nRotation = 0;
CarRotation = this._rotation;
nSideFace = "right";
nDirection = this._rotation;
nDirectionCar = this._rotation;
lostControl = false;
nDirectionImpact = 0;
AngleACoisir = true;
lap = 1;
LastCast = random(650);
CastPossible = true;
}
onClipEvent (enterFrame) {
if (!_global.vPaused) {
if (lostControl == false) {
_parent._parent.ControlerENEMI.ViewDirection(this);
_parent._parent.ControlerENEMI.AutoDrive(this);
if ((nRotation > 2) or (nRotation < -2)) {
_parent._parent.Controler.CheckRotation(this);
}
LastCast++;
if (CastPossible == true) {
if (LastCast > 750) {
_parent._parent.Magik.IMcastingSpell(this, random(2) + 1, 2);
LastCast = random(300) - 150;
}
}
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
} else {
_parent._parent.ControlerHT.CheckHitTest(this, "enemi", 2);
_parent._parent.Controler.SpinUp(this);
_parent._parent.ControlerENEMI.ViewDirection(this);
}
}
}
Symbol 1396 MovieClip Frame 1
if (this._name == "myCar") {
nMaxSpeed = 25 + _global.modifMaxSpeed;
nAccel = 0.52 + _global.modifAccel;
nHandling = 3.2 + _global.modifhanding;
} else {
nMaxSpeed = 25 + _global.modifMaxSpeedComp;
nAccel = 0.52 + _global.modifAccelComp;
nHandling = 3.2 + _global.modifhandingComp;
}
nGripFactor = 3;
nWeight = 2;
noCar = 1;
Symbol 1396 MovieClip Frame 2
if (this._name == "myCar") {
nMaxSpeed = 27 + _global.modifMaxSpeed;
nAccel = 0.5 + _global.modifAccel;
nHandling = 3.1 + _global.modifhanding;
} else {
nMaxSpeed = 27 + _global.modifMaxSpeedComp;
nAccel = 0.5 + _global.modifAccelComp;
nHandling = 3.1 + _global.modifhandingComp;
}
nGripFactor = 3;
nWeight = 2.2;
noCar = 2;
Symbol 1396 MovieClip Frame 3
if (this._name == "myCar") {
nMaxSpeed = 24 + _global.modifMaxSpeed;
nAccel = 0.59 + _global.modifAccel;
nHandling = 3.4 + _global.modifhanding;
} else {
nMaxSpeed = 24 + _global.modifMaxSpeedComp;
nAccel = 0.59 + _global.modifAccelComp;
nHandling = 3.4 + _global.modifhandingComp;
}
nGripFactor = 3.2;
nWeight = 2;
noCar = 3;
Symbol 1396 MovieClip Frame 4
if (this._name == "myCar") {
nMaxSpeed = 30 + _global.modifMaxSpeed;
nAccel = 0.42 + _global.modifAccel;
nHandling = 2.8 + _global.modifhanding;
} else {
nMaxSpeed = 30 + _global.modifMaxSpeedComp;
nAccel = 0.42 + _global.modifAccelComp;
nHandling = 2.8 + _global.modifhandingComp;
}
nGripFactor = 2.3;
nWeight = 2.4;
noCar = 4;
Symbol 1396 MovieClip Frame 5
nMaxSpeed = 11;
nAccel = 0.4;
nHandling = 2.7;
nGripFactor = 2.3;
nWeight = 2.2;
Instance of Symbol 829 MovieClip in Symbol 1396 MovieClip Frame 5
onClipEvent (load) {
timeSpend = 0;
}
onClipEvent (enterFrame) {
timeSpend++;
if (timeSpend > 150) {
this.play();
}
}
Instance of Symbol 646 MovieClip "perso1" in Symbol 1396 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 674 MovieClip "perso2" in Symbol 1396 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Symbol 1396 MovieClip Frame 6
nMaxSpeed = 11;
nAccel = 0.4;
nHandling = 2.7;
nGripFactor = 2.3;
nWeight = 2.2;
Instance of Symbol 830 MovieClip in Symbol 1396 MovieClip Frame 6
onClipEvent (load) {
timeSpend = 0;
}
onClipEvent (enterFrame) {
timeSpend++;
if (timeSpend > 150) {
this.play();
}
}
Instance of Symbol 706 MovieClip "perso1" in Symbol 1396 MovieClip Frame 6
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 718 MovieClip "perso2" in Symbol 1396 MovieClip Frame 6
onClipEvent (load) {
this._visible = false;
}
Symbol 1396 MovieClip Frame 7
nMaxSpeed = 11;
nAccel = 0.4;
nHandling = 2.7;
nGripFactor = 2.3;
nWeight = 2.2;
Instance of Symbol 831 MovieClip in Symbol 1396 MovieClip Frame 7
onClipEvent (load) {
timeSpend = 0;
}
onClipEvent (enterFrame) {
timeSpend++;
if (timeSpend > 150) {
this.play();
}
}
Instance of Symbol 731 MovieClip "perso1" in Symbol 1396 MovieClip Frame 7
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 748 MovieClip "perso2" in Symbol 1396 MovieClip Frame 7
onClipEvent (load) {
this._visible = false;
}
Symbol 1396 MovieClip Frame 8
nMaxSpeed = 11;
nAccel = 0.4;
nHandling = 2.7;
nGripFactor = 2.3;
nWeight = 2.2;
Instance of Symbol 832 MovieClip in Symbol 1396 MovieClip Frame 8
onClipEvent (load) {
timeSpend = 0;
}
onClipEvent (enterFrame) {
timeSpend++;
if (timeSpend > 150) {
this.play();
}
}
Symbol 1407 Button
on (release) {
_global.feathers = 0;
_parent.gotoAndPlay("map");
}
Instance of Symbol 1042 MovieClip "instructions" in Symbol 1410 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (10);
}
Instance of Symbol 170 MovieClip "AlertPage" in Symbol 1410 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1429 Button
on (release) {
nextFrame();
}
Symbol 1430 Button
on (release) {
gotoAndStop(frameFrom);
}
Symbol 1431 Button
on (release) {
frameToGo = _currentframe;
imageName = "garden1";
gotoAndStop ("images");
}
Symbol 1432 Button
on (release) {
frameToGo = _currentframe;
imageName = "underwater";
gotoAndStop ("images");
}
Symbol 1433 Button
on (release) {
frameToGo = _currentframe;
imageName = "Tok";
gotoAndStop ("images");
}
Symbol 1434 Button
on (release) {
frameToGo = _currentframe;
imageName = "Monster3";
gotoAndStop ("images");
}
Symbol 1438 Button
on (release) {
prevFrame();
}
Symbol 1448 Button
on (release) {
if (ConceptArtUnlok == true) {
frameToGo = _currentframe;
imageName = "TaK";
gotoAndStop ("images");
}
}
Symbol 1449 Button
on (release) {
if (ConceptArtUnlok == true) {
frameToGo = _currentframe;
imageName = "Monster2";
gotoAndStop ("images");
}
}
Symbol 1450 Button
on (release) {
if (ConceptArtUnlok == true) {
frameToGo = _currentframe;
imageName = "Monster1";
gotoAndStop ("images");
}
}
Symbol 1451 Button
on (release) {
if (ConceptArtUnlok == true) {
frameToGo = _currentframe;
imageName = "waterfall";
gotoAndStop ("images");
}
}
Symbol 1456 Button
on (release) {
prevFrame();
}
Symbol 1466 Button
on (release) {
if (ConceptArtUnlok == true) {
frameToGo = _currentframe;
imageName = "rino";
gotoAndStop ("images");
} else {
this.enabled = false;
}
}
Symbol 1467 Button
on (release) {
if (ConceptArtUnlok == true) {
frameToGo = _currentframe;
imageName = "gramma";
gotoAndStop ("images");
}
}
Symbol 1468 Button
on (release) {
if (ConceptArtUnlok == true) {
frameToGo = _currentframe;
imageName = "Monkey";
gotoAndStop ("images");
}
}
Symbol 1469 Button
on (release) {
if (ConceptArtUnlok == true) {
frameToGo = _currentframe;
imageName = "vilage";
gotoAndStop ("images");
}
}
Symbol 1476 Button
on (release) {
gotoAndStop(frameToGo);
}