Frame 1
firstGAME = true;
stop();
Instance of Symbol 11 MovieClip "loader" in Frame 1
onClipEvent (load) {
Btotal = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
Bloaded = _root.getBytesLoaded();
if (Bloaded >= Btotal) {
_parent.nextFrame();
} else {
var percentage = Math.round((Bloaded / Btotal) * 100);
trace(percentage);
this.gotoAndStop(percentage);
}
}
Instance of Symbol 28 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(9000002);
}
Frame 2
stop();
Frame 4
function fsdPlayAgain() {
var _local1 = _root;
_local1.LevelKontroller.DEBUTCHARGEMENTJEU = true;
_local1.LevelKontroller.TOTALSCORE = 0;
_local1.LevelKontroller.LEVELGLOBAL = 1;
_local1.LevelKontroller.TimerHelpDebut = 0;
_local1.LevelKontroller.TimerHelpFin = 0;
_local1.LevelKontroller.TimerHelpTampon = 0;
_local1.LevelKontroller.TimerHelpTotal = 0;
_local1.LevelKontroller.TimerQuitDebut = 0;
_local1.LevelKontroller.TimerQuitFin = 0;
_local1.LevelKontroller.TimerQuitTampon = 0;
_local1.LevelKontroller.TimerQuitTotal = 0;
gotoAndPlay ("Level");
}
function fsdLaunchScoresDisplay() {
playerScore = _root.LevelKontroller.TOTALSCORE;
gotoAndStop ("hs_display");
}
LEVEL = 1;
TempsDebut = getTimer();
Bonus = 0;
_focusrect = false;
TempsFin = 0;
TempsFinal = 0;
_root.LevelKontroller.TimerHelpDebut = 0;
_root.LevelKontroller.TimerHelpFin = 0;
_root.LevelKontroller.TimerHelpTampon = 0;
_root.LevelKontroller.TimerHelpTotal = 0;
_root.LevelKontroller.TimerQuitDebut = 0;
_root.LevelKontroller.TimerQuitFin = 0;
_root.LevelKontroller.TimerQuitTampon = 0;
_root.LevelKontroller.TimerQuitTotal = 0;
stopAllSounds();
var playerScore;
var eventID = "zd_ept";
Instance of Symbol 80 MovieClip "Hita0a1" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita0a2" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita0a3" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita0a4" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita0a5" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita0a6" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita0a7" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 177 MovieClip "Hita0a0" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita1a5" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita1a1" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita1a2" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita1a4" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita1a3" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 81 MovieClip "Hita1a0" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 82 MovieClip "Hita1a6" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a1" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a2" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a3" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a4" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a5" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a6" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a7" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a0" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita3a5" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita3a1" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita3a2" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita3a4" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita3a3" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 81 MovieClip "Hita3a0" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 82 MovieClip "Hita3a6" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a1" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a2" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a3" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a4" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a5" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a6" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a7" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a0" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita5a5" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita5a1" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita5a2" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita5a4" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita5a3" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 81 MovieClip "Hita5a0" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 82 MovieClip "Hita5a6" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a1" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a2" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a3" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a4" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a5" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a6" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a7" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a0" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita7a5" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita7a1" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita7a2" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita7a4" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita7a3" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 81 MovieClip "Hita7a0" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 82 MovieClip "Hita7a6" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a1" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a2" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a3" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a4" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a5" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a6" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a7" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a0" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita9a5" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita9a1" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita9a2" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita9a4" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita9a3" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 81 MovieClip "Hita9a0" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 82 MovieClip "Hita9a6" in Frame 4
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 374 MovieClip "shot" in Frame 4
onClipEvent (load) {
VITESSE = 20;
DERNIERMURFRAPPE = null;
MURGAUCHE = 1;
MURDROIT = 2;
left = _root.Variables.world.left;
right = _root.Variables.world.right;
top = _root.Variables.world.top;
centreDuCanon = 253;
if (String(_name) != "shot") {
cannonLength = 70;
sechoirPoint = _root.Sechoir._rotation + 90;
angle = ((sechoirPoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
this._x = (xcomponent + _root.Sechoir._x) - 10;
this._y = ycomponent + _root.Sechoir._y;
xmove = (xcomponent / cannonLength) * VITESSE;
ymove = (ycomponent / cannonLength) * VITESSE;
if (_x < centreDuCanon) {
TirGauche = true;
} else {
TirDroit = true;
}
}
}
onClipEvent (enterFrame) {
if (String(_name) != "shot") {
if (TirGauche == true) {
this._x = this._x + xmove;
this._y = this._y + ymove;
PositionCourantX = Math.floor(this._x);
PositionCourantY = Math.floor(this._y);
if (_x < left) {
DERNIERMURFRAPPE = MURGAUCHE;
xcomponent = cannonLength * Math.sin(-angle);
xmove = (xcomponent / cannonLength) * VITESSE;
ycomponent = (-cannonLength) * Math.cos(angle);
ymove = (ycomponent / cannonLength) * VITESSE;
} else if (_x > right) {
DERNIERMURFRAPPE = MURDROIT;
xcomponent = cannonLength * Math.sin(angle);
xmove = (xcomponent / cannonLength) * VITESSE;
ycomponent = (-cannonLength) * Math.cos(angle);
ymove = (ycomponent / cannonLength) * VITESSE;
}
} else if (TirDroit == true) {
this._x = this._x + xmove;
this._y = this._y + ymove;
PositionCourantX = Math.floor(this._x);
PositionCourantY = Math.floor(this._y);
if (_x > right) {
DERNIERMURFRAPPE = MURDROIT;
xcomponent = cannonLength * Math.sin(-angle);
xmove = (xcomponent / cannonLength) * VITESSE;
ycomponent = (-cannonLength) * Math.cos(angle);
ymove = (ycomponent / cannonLength) * VITESSE;
} else if (_x < left) {
DERNIERMURFRAPPE = MURGAUCHE;
xcomponent = cannonLength * Math.sin(angle);
xmove = (xcomponent / cannonLength) * VITESSE;
ycomponent = (-cannonLength) * Math.cos(angle);
ymove = (ycomponent / cannonLength) * VITESSE;
}
}
}
}
Instance of Symbol 380 MovieClip "Sechoir" in Frame 4
onClipEvent (load) {
NONE = 0;
RED = 1;
GREEN = 2;
BROWN = 3;
ORANGE = 4;
BLUE = 5;
WHITE = 6;
YELLOW = 7;
PURPLE = 8;
VILLAINSHOT = 0;
COMPTEURBALLETIRE = 0;
STOPSECHOIRFINJEU = false;
}
onClipEvent (enterFrame) {
if ((this._rotation + 90) >= -69) {
if (Key.isDown(37)) {
this._rotation = this._rotation - 3;
}
}
if ((this._rotation + 90) <= 69) {
if (Key.isDown(39)) {
this._rotation = this._rotation + 3;
}
}
if (((((((Key.isDown(32) && (shotTimer <= 0)) && (_root.Messages.SechoirArme == true)) && (_root.Variables.BOULESURLEJEU == true)) && (_root.Messages.ACTIONDESCENDRE == false)) && (_root.Sechoir.STOPSECHOIRFINJEU == false)) && (_root.GameStopped != true)) && (_root.instructions._currentframe == 1)) {
trace(COMPTEURBALLETIRE);
_root.Variables.FINREINITIALISATIONPARAM = false;
_root.Variables.CYCLETIR = true;
_root.BSound.Play();
_root.Messages.SechoirArme = false;
_root.Variables.BOULESURLEJEU = false;
shotCount++;
ShotName = "shot" + shotCount;
_root.Variables.NomTir = ShotName;
duplicateMovieClip (_root.shot, ShotName, (shotCount % 100) + 1100);
NomTir = eval ("_root." + ShotName);
VILLAINSHOT = _root.Messages.CURRENTVILLAIN;
if (VILLAINSHOT == RED) {
NomTir.gotoAndStop("Drakken");
} else if (VILLAINSHOT == GREEN) {
NomTir.gotoAndStop("Shego");
} else if (VILLAINSHOT == BROWN) {
NomTir.gotoAndStop("Gill");
} else if (VILLAINSHOT == ORANGE) {
NomTir.gotoAndStop("Monkey");
} else if (VILLAINSHOT == BLUE) {
NomTir.gotoAndStop("SenorSr");
} else if (VILLAINSHOT == WHITE) {
NomTir.gotoAndStop("Duff");
} else if (VILLAINSHOT == YELLOW) {
NomTir.gotoAndStop("SenorJr");
} else if (VILLAINSHOT == PURPLE) {
NomTir.gotoAndStop("Sorciere");
}
shotTimer = 20;
shotCount = 0;
}
shotTimer--;
}
Instance of Symbol 397 MovieClip "Messages" in Frame 4
onClipEvent (load) {
function RegardeCouleurs() {
var _local1 = _root;
k = 0;
FLAGNONE = false;
FLAGBLUE = false;
FLAGGREEN = false;
FLAGYELLOW = false;
FLAGPURPLE = false;
FLAGWHITE = false;
FLAGRED = false;
FLAGORANGE = false;
FLAGBROWN = false;
j = 0;
while (j < _local1.Variables.hauteurMatrice) {
if (((j % 2) == 0) || (j == 0)) {
i = 0;
while (i < _local1.Variables.largeurMatrice) {
ListeCouleursPresentes[k] = _local1.Variables.matrice[j][i].color;
if (ListeCouleursPresentes[k] == BLUE) {
FLAGBLUE = true;
} else if (ListeCouleursPresentes[k] == GREEN) {
FLAGGREEN = true;
} else if (ListeCouleursPresentes[k] == YELLOW) {
FLAGYELLOW = true;
} else if (ListeCouleursPresentes[k] == PURPLE) {
FLAGPURPLE = true;
} else if (ListeCouleursPresentes[k] == WHITE) {
FLAGWHITE = true;
} else if (ListeCouleursPresentes[k] == RED) {
FLAGRED = true;
} else if (ListeCouleursPresentes[k] == ORANGE) {
FLAGORANGE = true;
} else if (ListeCouleursPresentes[k] == BROWN) {
FLAGBROWN = true;
}
k++;
i++;
}
} else if ((j % 2) != 0) {
i = 0;
while (i < (_local1.Variables.largeurMatrice - 1)) {
ListeCouleursPresentes[k] = _local1.Variables.matrice[j][i].color;
if (ListeCouleursPresentes[k] == BLUE) {
FLAGBLUE = true;
} else if (ListeCouleursPresentes[k] == GREEN) {
FLAGGREEN = true;
} else if (ListeCouleursPresentes[k] == YELLOW) {
FLAGYELLOW = true;
} else if (ListeCouleursPresentes[k] == PURPLE) {
FLAGPURPLE = true;
} else if (ListeCouleursPresentes[k] == WHITE) {
FLAGWHITE = true;
} else if (ListeCouleursPresentes[k] == RED) {
FLAGRED = true;
} else if (ListeCouleursPresentes[k] == ORANGE) {
FLAGORANGE = true;
} else if (ListeCouleursPresentes[k] == BROWN) {
FLAGBROWN = true;
}
k++;
i++;
}
}
j++;
}
}
function BouleRandom() {
BouleTrouve = false;
i = 0;
while (i < 200) {
NumeroBoule = Math.floor(Math.random() * 8) + 1;
if (NumeroBoule == BLUE) {
if (FLAGBLUE == true) {
BouleTrouve = true;
break;
}
} else if (NumeroBoule == GREEN) {
if (FLAGGREEN == true) {
BouleTrouve = true;
break;
}
} else if (NumeroBoule == YELLOW) {
if (FLAGYELLOW == true) {
BouleTrouve = true;
break;
}
} else if (NumeroBoule == PURPLE) {
if (FLAGPURPLE == true) {
BouleTrouve = true;
break;
}
} else if (NumeroBoule == WHITE) {
if (FLAGWHITE == true) {
BouleTrouve = true;
break;
}
} else if (NumeroBoule == RED) {
if (FLAGRED == true) {
return(NumeroBoule);
}
} else if (NumeroBoule == ORANGE) {
if (FLAGORANGE == true) {
return(NumeroBoule);
}
} else if (NumeroBoule == BROWN) {
if (FLAGBROWN == true) {
return(NumeroBoule);
}
}
i++;
}
return(NumeroBoule);
}
function AfficheBouleSechoir(NumeroBouleSechoir) {
var _local1 = _root;
var _local2 = NumeroBouleSechoir;
BouleAffiche = false;
if (_local2 == RED) {
_local1.Sechoir.BouleSechoir.gotoAndStop("Drakken");
} else if (_local2 == GREEN) {
_local1.Sechoir.BouleSechoir.gotoAndStop("Shego");
} else if (_local2 == BROWN) {
_local1.Sechoir.BouleSechoir.gotoAndStop("Gill");
} else if (_local2 == ORANGE) {
_local1.Sechoir.BouleSechoir.gotoAndStop("Monkey");
} else if (_local2 == BLUE) {
_local1.Sechoir.BouleSechoir.gotoAndStop("SenorSr");
} else if (_local2 == WHITE) {
_local1.Sechoir.BouleSechoir.gotoAndStop("Duff");
} else if (_local2 == YELLOW) {
_local1.Sechoir.BouleSechoir.gotoAndStop("SenorJr");
} else if (_local2 == PURPLE) {
_local1.Sechoir.BouleSechoir.gotoAndStop("Sorciere");
}
BouleAffiche = true;
return(BouleAffiche);
}
function AfficheBouleViewer(NumeroBouleViewer) {
var _local1 = NumeroBouleViewer;
var _local2 = _root;
BouleAffiche = false;
if (_local1 == RED) {
_local2.VillainViewer.gotoAndStop("Drakken");
} else if (_local1 == GREEN) {
_local2.VillainViewer.gotoAndStop("Shego");
} else if (_local1 == BROWN) {
_local2.VillainViewer.gotoAndStop("Gill");
} else if (_local1 == ORANGE) {
_local2.VillainViewer.gotoAndStop("Monkey");
} else if (_local1 == BLUE) {
_local2.VillainViewer.gotoAndStop("SenorSr");
} else if (_local1 == WHITE) {
_local2.VillainViewer.gotoAndStop("Duff");
} else if (_local1 == YELLOW) {
_local2.VillainViewer.gotoAndStop("SenorJr");
} else if (_local1 == PURPLE) {
_local2.VillainViewer.gotoAndStop("Sorciere");
}
BouleAffiche = true;
return(BouleAffiche);
}
function DangerMeterTimer() {
TEMPO = TEMPO + 24;
BaremeTemps = TEMPO;
return(BaremeTemps);
}
function AfficheDangerMeter() {
var _local1 = _root;
if (_local1.Sechoir.COMPTEURBALLETIRE <= 0) {
_local1.Screen.Meter.Anim.gotoAndStop("Level0");
LEVEL = 0;
COMPTEURBALLETIRE = 0;
} else if (_local1.Sechoir.COMPTEURBALLETIRE == 1) {
_local1.Screen.Meter.Anim.gotoAndStop("Level1");
LEVEL = 1;
} else if (_local1.Sechoir.COMPTEURBALLETIRE == 2) {
_local1.Screen.Meter.Anim.gotoAndStop("Level2");
LEVEL = 2;
} else if (_local1.Sechoir.COMPTEURBALLETIRE == 3) {
_local1.Screen.Meter.Anim.gotoAndStop("Level3");
LEVEL = 3;
} else if (_local1.Sechoir.COMPTEURBALLETIRE == 4) {
_local1.Screen.Meter.Anim.gotoAndStop("Level4");
LEVEL = 4;
} else if (_local1.Sechoir.COMPTEURBALLETIRE == 5) {
_local1.Screen.Meter.Anim.gotoAndStop("Level5");
LEVEL = 5;
} else if (_local1.Sechoir.COMPTEURBALLETIRE == 6) {
_local1.Screen.Meter.Anim.gotoAndStop("Level6");
LEVEL = 6;
} else if (_local1.Sechoir.COMPTEURBALLETIRE == 7) {
_local1.Screen.Meter.Anim.gotoAndStop("Level7");
LEVEL = 7;
} else if (_local1.Sechoir.COMPTEURBALLETIRE == 8) {
_local1.Screen.Meter.Anim.gotoAndStop("Level8");
LEVEL = 8;
} else if (_local1.Sechoir.COMPTEURBALLETIRE == 9) {
_local1.Screen.Meter.Anim.gotoAndStop("Level9");
LEVEL = 9;
} else if (_local1.Sechoir.COMPTEURBALLETIRE == 10) {
_local1.Screen.Meter.Anim.gotoAndStop("Level10");
LEVEL = 10;
DESCENTE++;
}
}
function PlafondDescend(DESCENTE) {
var DiffPlafond = 20;
if (LEVEL == 10) {
if (DESCENTE == 1) {
ACTIONDESCENDRE = true;
_root.Plafond._y = 72 - DiffPlafond;
_root.Sechoir.COMPTEURBALLETIRE = 0;
if (_root.Sechoir.COMPTEURBALLETIRE == 0) {
_root.Screen.Meter.Anim.gotoAndStop("Level0");
LEVEL = 0;
}
i = 0;
while (i < (largeurMatrice - 1)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 9;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == true) {
LINEGAMEOVER = true;
return(LINEGAMEOVER);
}
i++;
}
ACTIONDESCENDRE = false;
} else if (DESCENTE == 2) {
ACTIONDESCENDRE = true;
_root.Plafond._y = 94 - DiffPlafond;
_root.Sechoir.COMPTEURBALLETIRE = 0;
if (_root.Sechoir.COMPTEURBALLETIRE == 0) {
_root.Screen.Meter.Anim.gotoAndStop("Level0");
LEVEL = 0;
}
i = 0;
while (i < largeurMatrice) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 8;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == true) {
LINEGAMEOVER = true;
return(LINEGAMEOVER);
}
i++;
}
ACTIONDESCENDRE = false;
} else if (DESCENTE == 3) {
ACTIONDESCENDRE = true;
_root.Plafond._y = 116 - DiffPlafond;
_root.Sechoir.COMPTEURBALLETIRE = 0;
if (_root.Sechoir.COMPTEURBALLETIRE == 0) {
_root.Screen.Meter.Anim.gotoAndStop("Level0");
LEVEL = 0;
}
i = 0;
while (i < (largeurMatrice - 1)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 7;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == true) {
LINEGAMEOVER = true;
return(LINEGAMEOVER);
}
i++;
}
ACTIONDESCENDRE = false;
} else if (DESCENTE == 4) {
ACTIONDESCENDRE = true;
_root.Plafond._y = 138 - DiffPlafond;
_root.Sechoir.COMPTEURBALLETIRE = 0;
if (_root.Sechoir.COMPTEURBALLETIRE == 0) {
_root.Screen.Meter.Anim.gotoAndStop("Level0");
LEVEL = 0;
}
i = 0;
while (i < largeurMatrice) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 6;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == true) {
LINEGAMEOVER = true;
return(LINEGAMEOVER);
}
i++;
}
ACTIONDESCENDRE = false;
} else if (DESCENTE == 5) {
ACTIONDESCENDRE = true;
_root.Plafond._y = 160 - DiffPlafond;
_root.Sechoir.COMPTEURBALLETIRE = 0;
if (_root.Sechoir.COMPTEURBALLETIRE == 0) {
_root.Screen.Meter.Anim.gotoAndStop("Level0");
LEVEL = 0;
}
i = 0;
while (i < (largeurMatrice - 1)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 5;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == true) {
LINEGAMEOVER = true;
return(LINEGAMEOVER);
}
i++;
}
ACTIONDESCENDRE = false;
} else if (DESCENTE == 6) {
ACTIONDESCENDRE = true;
_root.Plafond._y = 182 - DiffPlafond;
_root.Sechoir.COMPTEURBALLETIRE = 0;
if (_root.Sechoir.COMPTEURBALLETIRE == 0) {
_root.Screen.Meter.Anim.gotoAndStop("Level0");
LEVEL = 0;
}
i = 0;
while (i < largeurMatrice) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 4;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == true) {
LINEGAMEOVER = true;
return(LINEGAMEOVER);
}
i++;
}
ACTIONDESCENDRE = false;
} else if (DESCENTE == 7) {
ACTIONDESCENDRE = true;
_root.Plafond._y = 204 - DiffPlafond;
_root.Sechoir.COMPTEURBALLETIRE = 0;
if (_root.Sechoir.COMPTEURBALLETIRE == 0) {
_root.Screen.Meter.Anim.gotoAndStop("Level0");
LEVEL = 0;
}
i = 0;
while (i < (largeurMatrice - 1)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 3;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == true) {
LINEGAMEOVER = true;
return(LINEGAMEOVER);
}
i++;
}
ACTIONDESCENDRE = false;
} else if (DESCENTE == 8) {
ACTIONDESCENDRE = true;
_root.Plafond._y = 226 - DiffPlafond;
_root.Sechoir.COMPTEURBALLETIRE = 0;
if (_root.Sechoir.COMPTEURBALLETIRE == 0) {
_root.Screen.Meter.Anim.gotoAndStop("Level0");
LEVEL = 0;
}
i = 0;
while (i < largeurMatrice) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 2;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == true) {
LINEGAMEOVER = true;
return(LINEGAMEOVER);
}
i++;
}
ACTIONDESCENDRE = false;
} else if (DESCENTE == 9) {
ACTIONDESCENDRE = true;
_root.Plafond._y = 248 - DiffPlafond;
_root.Sechoir.COMPTEURBALLETIRE = 0;
if (_root.Sechoir.COMPTEURBALLETIRE == 0) {
_root.Screen.Meter.Anim.gotoAndStop("Level0");
LEVEL = 0;
}
i = 0;
while (i < (largeurMatrice - 1)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 1;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == true) {
LINEGAMEOVER = true;
return(LINEGAMEOVER);
}
i++;
}
ACTIONDESCENDRE = false;
} else if (DESCENTE == 10) {
ACTIONDESCENDRE = true;
_root.Plafond._y = 270 - DiffPlafond;
_root.Sechoir.COMPTEURBALLETIRE = 0;
if (_root.Sechoir.COMPTEURBALLETIRE == 0) {
_root.Screen.Meter.Anim.gotoAndStop("Level0");
LEVEL = 0;
}
i = 0;
while (i < largeurMatrice) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 0;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == true) {
LINEGAMEOVER = true;
return(LINEGAMEOVER);
}
i++;
}
ACTIONDESCENDRE = false;
}
j = 0;
while (j < _root.Variables.hauteurMatrice) {
if (((j % 2) == 0) || (j == 0)) {
i = 0;
while (i < _root.Variables.largeurMatrice) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal._y = TempoTotal._y + 22;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
TempoTotal = eval ("_root." + temp);
TempoTotal._y = TempoTotal._y + 22;
matrice[j][i].y = matrice[j][i].y + 22;
i++;
}
} else if ((j % 2) != 0) {
i = 0;
while (i < (_root.Variables.largeurMatrice - 1)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal._y = TempoTotal._y + 22;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
TempTotal = eval ("_root." + temp);
TempTotal._y = TempTotal._y + 22;
matrice[j][i].y = matrice[j][i].y + 22;
i++;
}
}
j++;
}
_root.Variables.LIGNE9MIN = _root.Variables.LIGNE9MIN + 22;
_root.Variables.LIGNE9MAX = _root.Variables.LIGNE9MAX + 22;
_root.Variables.LIGNE8MIN = _root.Variables.LIGNE8MIN + 22;
_root.Variables.LIGNE8MAX = _root.Variables.LIGNE8MAX + 22;
_root.Variables.LIGNE7MIN = _root.Variables.LIGNE7MIN + 22;
_root.Variables.LIGNE7MAX = _root.Variables.LIGNE7MAX + 22;
_root.Variables.LIGNE6MIN = _root.Variables.LIGNE6MIN + 22;
_root.Variables.LIGNE6MAX = _root.Variables.LIGNE6MAX + 22;
_root.Variables.LIGNE5MIN = _root.Variables.LIGNE5MIN + 22;
_root.Variables.LIGNE5MAX = _root.Variables.LIGNE5MAX + 22;
_root.Variables.LIGNE4MIN = _root.Variables.LIGNE4MIN + 22;
_root.Variables.LIGNE4MAX = _root.Variables.LIGNE4MAX + 22;
_root.Variables.LIGNE3MIN = _root.Variables.LIGNE3MIN + 22;
_root.Variables.LIGNE3MAX = _root.Variables.LIGNE3MAX + 22;
_root.Variables.LIGNE2MIN = _root.Variables.LIGNE2MIN + 22;
_root.Variables.LIGNE2MAX = _root.Variables.LIGNE2MAX + 22;
_root.Variables.LIGNE1MIN = _root.Variables.LIGNE1MIN + 22;
_root.Variables.LIGNE1MAX = _root.Variables.LIGNE1MAX + 22;
_root.Variables.LIGNE0MIN = _root.Variables.LIGNE0MIN + 22;
_root.Variables.LIGNE0MAX = _root.Variables.LIGNE0MAX + 22;
_root.Variables.LIGNEPLAFONDMIN = _root.Variables.LIGNEPLAFONDMIN + 22;
_root.Variables.LIGNEPLAFONDMAX = _root.Variables.LIGNEPLAFONDMAX + 22;
}
}
function RegardeLevelFini() {
CompteurHitNonOccupe = 0;
j = 0;
while (j < _root.Variables.hauteurMatrice) {
if (((j % 2) == 0) || (j == 0)) {
i = 0;
while (i < _root.Variables.largeurMatrice) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
CompteurHitNonOccupe++;
}
i++;
}
} else if ((j % 2) != 0) {
i = 0;
while (i < (_root.Variables.largeurMatrice - 1)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
CompteurHitNonOccupe++;
}
i++;
}
}
j++;
}
if (CompteurHitNonOccupe == 75) {
NomTir._visible = false;
_root.Sechoir.STOPSECHOIRFINJEU = true;
LEVELFINI = true;
return(LEVELFINI);
}
LEVELFINI = false;
return(LEVELFINI);
}
NONE = 0;
RED = 1;
GREEN = 2;
BROWN = 3;
ORANGE = 4;
BLUE = 5;
WHITE = 6;
YELLOW = 7;
PURPLE = 8;
NEXTVILLAIN = 0;
CURRENTVILLAIN = 0;
NumeroBouleSechoir = 0;
NumeroBouleViewer = 0;
BouleAffiche = false;
SechoirArme = false;
DepartSechoir = true;
FLAGNONE = false;
FLAGBLUE = false;
FLAGGREEN = false;
FLAGYELLOW = false;
FLAGPURPLE = false;
FLAGWHITE = false;
FLAGRED = false;
FLAGORANGE = false;
FLAGBROWN = false;
hauteurMatrice = 10;
largeurMatrice = 8;
level = hauteurMatrice * largeurMatrice;
ListeCouleursPresentes = new Array(level);
BaremeTemps = 0;
LEVEL = 1;
DESCENTE = 0;
LINEGAMEOVER = false;
ACTIONDESCENDRE = false;
LEVELFINI = false;
LEVELFINICHECK = false;
}
onClipEvent (enterFrame) {
if (_root.Variables.PARTIECOMMENCE == true) {
if (LEVELFINICHECK == true) {
LEVELFINI = RegardeLevelFini();
if (LEVELFINI == true) {
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
if (_root.LevelKontroller.LEVELGLOBAL == 7) {
_root.gotoAndPlay("ToFinale");
}
_root.play();
}
LEVELFINICHECK = false;
}
}
AfficheDangerMeter();
if (LEVEL == 10) {
PlafondDescend(DESCENTE);
if (LINEGAMEOVER == true) {
NomTir._visible = false;
_root.Sechoir.STOPSECHOIRFINJEU = true;
matrice = new Array(hauteurMatrice);
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
_root.AllerAGameOver.gotoAndStop("GameOver");
}
LEVEL = 0;
_root.Screen.Meter.Anim.gotoAndStop("Level0");
TamponTimer = 0;
BaremeTemps = 0;
TEMPO = 0;
}
if ((SechoirArme == false) && (DepartSechoir == true)) {
BouleAffiche = false;
RegardeCouleurs();
NumeroBouleSechoir = BouleRandom();
CURRENTVILLAIN = NumeroBouleSechoir;
BouleAfficheSechoir = AfficheBouleSechoir(NumeroBouleSechoir);
NumeroBouleViewer = BouleRandom();
NEXTVILLAIN = NumeroBouleViewer;
BouleAfficheViewer = AfficheBouleViewer(NumeroBouleViewer);
SechoirArme = true;
} else if ((SechoirArme == false) && (DepartSechoir == false)) {
BouleAffiche = false;
RegardeCouleurs();
CURRENTVILLAIN = NEXTVILLAIN;
BouleAfficheSechoir = AfficheBouleSechoir(NEXTVILLAIN);
NumeroBouleViewer = BouleRandom();
NEXTVILLAIN = NumeroBouleViewer;
BouleAfficheViewer = AfficheBouleViewer(NumeroBouleViewer);
SechoirArme = true;
}
DepartSechoir = false;
}
Instance of Symbol 409 MovieClip "Variables" in Frame 4
onClipEvent (load) {
function FrappeHitZoneOccupe(NomTir, ObjetCourantCouleur) {
PositionEnY = eval (("_root." + NomTir) + "._y");
ObjetCourant = eval ("_root." + NomTir);
PositionEnY = Math.floor(PositionEnY);
NUMEROMUR = _root.shot1.DERNIERMURFRAPPE;
BOULEDANGER = false;
if (BOULEDANGER == false) {
if ((LIGNE9MIN <= PositionEnY) && (PositionEnY <= LIGNE9MAX)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 9;
tempo = tempo + "a";
i = 0;
while (i < (largeurMatrice - 1)) {
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.hitTest(ObjetCourant.Zone)) {
PileDanger.push(TempoTotal);
PtrPileDanger++;
if (TempoTotal.Occupied == true) {
Etat = true;
HitZoneTrouve = TempoTotal;
ObjetFrappe = ObjetCourant;
ObjetFrappePosX = ObjetCourant._x;
ObjetFrappePosY = ObjetCourant._y;
ObjetFrappeCouleur = ObjetCourantCouleur;
removeMovieClip(ObjetCourant);
AllerAFRAPPEHITZONEOCCUPE = false;
FINFRAPPEHITZONEOCCUPE = true;
return(Etat);
}
}
tempo = substring(tempo, 0, 6);
i++;
}
} else if ((LIGNE8MIN <= PositionEnY) && (PositionEnY <= LIGNE8MAX)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 8;
tempo = tempo + "a";
i = 0;
while (i < largeurMatrice) {
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.hitTest(ObjetCourant.Zone)) {
PileDanger.push(TempoTotal);
PtrPileDanger++;
if (TempoTotal.Occupied == true) {
Etat = true;
HitZoneTrouve = TempoTotal;
ObjetFrappe = ObjetCourant;
ObjetFrappePosX = ObjetCourant._x;
ObjetFrappePosY = ObjetCourant._y;
ObjetFrappeCouleur = ObjetCourantCouleur;
removeMovieClip(ObjetCourant);
AllerAFRAPPEHITZONEOCCUPE = false;
FINFRAPPEHITZONEOCCUPE = true;
return(Etat);
}
}
tempo = substring(tempo, 0, 6);
i++;
}
} else if ((LIGNE7MIN <= PositionEnY) && (PositionEnY <= LIGNE7MAX)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 7;
tempo = tempo + "a";
i = 0;
while (i < (largeurMatrice - 1)) {
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.hitTest(ObjetCourant.Zone)) {
PileDanger.push(TempoTotal);
PtrPileDanger++;
if (TempoTotal.Occupied == true) {
Etat = true;
HitZoneTrouve = TempoTotal;
ObjetFrappe = ObjetCourant;
ObjetFrappePosX = ObjetCourant._x;
ObjetFrappePosY = ObjetCourant._y;
ObjetFrappeCouleur = ObjetCourantCouleur;
removeMovieClip(ObjetCourant);
AllerAFRAPPEHITZONEOCCUPE = false;
FINFRAPPEHITZONEOCCUPE = true;
return(Etat);
}
}
tempo = substring(tempo, 0, 6);
i++;
}
} else if ((LIGNE6MIN <= PositionEnY) && (PositionEnY <= LIGNE6MAX)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 6;
tempo = tempo + "a";
i = 0;
while (i < largeurMatrice) {
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.hitTest(ObjetCourant.Zone)) {
PileDanger.push(TempoTotal);
PtrPileDanger++;
if (TempoTotal.Occupied == true) {
Etat = true;
HitZoneTrouve = TempoTotal;
ObjetFrappe = ObjetCourant;
ObjetFrappePosX = ObjetCourant._x;
ObjetFrappePosY = ObjetCourant._y;
ObjetFrappeCouleur = ObjetCourantCouleur;
removeMovieClip(ObjetCourant);
AllerAFRAPPEHITZONEOCCUPE = false;
FINFRAPPEHITZONEOCCUPE = true;
return(Etat);
}
}
tempo = substring(tempo, 0, 6);
i++;
}
} else if ((LIGNE5MIN <= PositionEnY) && (PositionEnY <= LIGNE5MAX)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 5;
tempo = tempo + "a";
i = 0;
while (i < (largeurMatrice - 1)) {
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.hitTest(ObjetCourant.Zone)) {
PileDanger.push(TempoTotal);
PtrPileDanger++;
if (TempoTotal.Occupied == true) {
Etat = true;
HitZoneTrouve = TempoTotal;
ObjetFrappe = ObjetCourant;
ObjetFrappePosX = ObjetCourant._x;
ObjetFrappePosY = ObjetCourant._y;
ObjetFrappeCouleur = ObjetCourantCouleur;
removeMovieClip(ObjetCourant);
AllerAFRAPPEHITZONEOCCUPE = false;
FINFRAPPEHITZONEOCCUPE = true;
return(Etat);
}
}
tempo = substring(tempo, 0, 6);
i++;
}
} else if ((LIGNE4MIN <= PositionEnY) && (PositionEnY <= LIGNE4MAX)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 4;
tempo = tempo + "a";
i = 0;
while (i < largeurMatrice) {
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.hitTest(ObjetCourant.Zone)) {
PileDanger.push(TempoTotal);
PtrPileDanger++;
if (TempoTotal.Occupied == true) {
Etat = true;
HitZoneTrouve = TempoTotal;
ObjetFrappe = ObjetCourant;
ObjetFrappePosX = ObjetCourant._x;
ObjetFrappePosY = ObjetCourant._y;
ObjetFrappeCouleur = ObjetCourantCouleur;
removeMovieClip(ObjetCourant);
AllerAFRAPPEHITZONEOCCUPE = false;
FINFRAPPEHITZONEOCCUPE = true;
return(Etat);
}
}
tempo = substring(tempo, 0, 6);
i++;
}
} else if ((LIGNE3MIN <= PositionEnY) && (PositionEnY <= LIGNE3MAX)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 3;
tempo = tempo + "a";
i = 0;
while (i < (largeurMatrice - 1)) {
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.hitTest(ObjetCourant.Zone)) {
PileDanger.push(TempoTotal);
PtrPileDanger++;
if (TempoTotal.Occupied == true) {
Etat = true;
HitZoneTrouve = TempoTotal;
ObjetFrappe = ObjetCourant;
ObjetFrappePosX = ObjetCourant._x;
ObjetFrappePosY = ObjetCourant._y;
ObjetFrappeCouleur = ObjetCourantCouleur;
removeMovieClip(ObjetCourant);
AllerAFRAPPEHITZONEOCCUPE = false;
FINFRAPPEHITZONEOCCUPE = true;
return(Etat);
}
}
tempo = substring(tempo, 0, 6);
i++;
}
} else if ((LIGNE2MIN <= PositionEnY) && (PositionEnY <= LIGNE2MAX)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 2;
tempo = tempo + "a";
i = 0;
while (i < largeurMatrice) {
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.hitTest(ObjetCourant.Zone)) {
PileDanger.push(TempoTotal);
PtrPileDanger++;
if (TempoTotal.Occupied == true) {
Etat = true;
HitZoneTrouve = TempoTotal;
ObjetFrappe = ObjetCourant;
ObjetFrappePosX = ObjetCourant._x;
ObjetFrappePosY = ObjetCourant._y;
ObjetFrappeCouleur = ObjetCourantCouleur;
removeMovieClip(ObjetCourant);
AllerAFRAPPEHITZONEOCCUPE = false;
FINFRAPPEHITZONEOCCUPE = true;
return(Etat);
}
}
tempo = substring(tempo, 0, 6);
i++;
}
} else if ((LIGNE1MIN <= PositionEnY) && (PositionEnY <= LIGNE1MAX)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 1;
tempo = tempo + "a";
i = 0;
while (i < (largeurMatrice - 1)) {
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.hitTest(ObjetCourant.Zone)) {
PileDanger.push(TempoTotal);
PtrPileDanger++;
if (TempoTotal.Occupied == true) {
Etat = true;
HitZoneTrouve = TempoTotal;
ObjetFrappe = ObjetCourant;
ObjetFrappePosX = ObjetCourant._x;
ObjetFrappePosY = ObjetCourant._y;
ObjetFrappeCouleur = ObjetCourantCouleur;
removeMovieClip(ObjetCourant);
AllerAFRAPPEHITZONEOCCUPE = false;
FINFRAPPEHITZONEOCCUPE = true;
return(Etat);
}
}
tempo = substring(tempo, 0, 6);
i++;
}
} else if ((LIGNE0MIN <= PositionEnY) && (PositionEnY <= LIGNE0MAX)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 0;
tempo = tempo + "a";
i = 0;
while (i < largeurMatrice) {
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.hitTest(ObjetCourant.Zone)) {
PileDanger.push(TempoTotal);
PtrPileDanger++;
if (TempoTotal.Occupied == true) {
Etat = true;
HitZoneTrouve = TempoTotal;
ObjetFrappe = ObjetCourant;
ObjetFrappePosX = ObjetCourant._x;
ObjetFrappePosY = ObjetCourant._y;
ObjetFrappeCouleur = ObjetCourantCouleur;
removeMovieClip(ObjetCourant);
AllerAFRAPPEHITZONEOCCUPE = false;
FINFRAPPEHITZONEOCCUPE = true;
return(Etat);
}
ObjetCourant._x = TempoTotal._x;
ObjetCourant._y = TempoTotal._y;
TempoTotal.Occupied = true;
temp = "Boule";
temp = temp + "a";
temp = temp + 0;
temp = temp + "a";
temp = temp + i;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetCourantCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetCourant._x;
_parent[temp]._y = ObjetCourant._y;
removeMovieClip(ObjetCourant);
ObjetFrappeCouleur = ObjetCourantCouleur;
HitZonePlace = TempoTotal;
matrice[0][i] = new Object();
matrice[0][i].x = TempoTotal._x;
matrice[0][i].y = TempoTotal._y;
matrice[0][i].clip = temp;
matrice[0][i].exist = true;
matrice[0][i].color = ObjetCourantCouleur;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 0;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal.Occupied = true;
Etat = false;
AllerAFRAPPEHITZONEOCCUPE = false;
FINFRAPPEHITZONEOCCUPE = true;
AllerDETECTIONCOULEURSEMBLABLE = true;
_root.Sechoir.COMPTEURBALLETIRE++;
return(Etat);
}
tempo = substring(tempo, 0, 6);
i++;
}
} else if ((LIGNEPLAFONDMIN < PositionEnY) && (PositionEnY <= LIGNEPLAFONDMAX)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 0;
tempo = tempo + "a";
i = 0;
while (i < largeurMatrice) {
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.hitTest(ObjetCourant.Zone)) {
PileDanger.push(TempoTotal);
PtrPileDanger++;
if (TempoTotal.Occupied == true) {
Etat = true;
HitZoneTrouve = TempoTotal;
ObjetFrappe = ObjetCourant;
ObjetFrappePosX = ObjetCourant._x;
ObjetFrappePosY = ObjetCourant._y;
ObjetFrappeCouleur = ObjetCourantCouleur;
removeMovieClip(ObjetCourant);
AllerAFRAPPEHITZONEOCCUPE = false;
FINFRAPPEHITZONEOCCUPE = true;
return(Etat);
}
ObjetCourant._x = TempoTotal._x;
ObjetCourant._y = TempoTotal._y;
TempoTotal.Occupied = true;
temp = "Boule";
temp = temp + "a";
temp = temp + 0;
temp = temp + "a";
temp = temp + i;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetCourantCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetCourant._x;
_parent[temp]._y = ObjetCourant._y;
removeMovieClip(ObjetCourant);
ObjetFrappeCouleur = ObjetCourantCouleur;
HitZonePlace = TempoTotal;
matrice[0][i] = new Object();
matrice[0][i].x = TempoTotal._x;
matrice[0][i].y = TempoTotal._y;
matrice[0][i].clip = temp;
matrice[0][i].exist = true;
matrice[0][i].color = ObjetCourantCouleur;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + 0;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal.Occupied = true;
Etat = false;
AllerAFRAPPEHITZONEOCCUPE = false;
FINFRAPPEHITZONEOCCUPE = true;
AllerDETECTIONCOULEURSEMBLABLE = true;
_root.Sechoir.COMPTEURBALLETIRE++;
return(Etat);
}
tempo = substring(tempo, 0, 6);
i++;
}
}
BOULEDANGER = true;
} else if (BOULEDANGER == true) {
BOULEDANGER = true;
Etat = false;
return(Etat);
}
}
function NewPlaceShot(HitZoneTrouve, ObjetFrappe, ObjetFrappePosX, ObjetFrappePosY, ObjetFrappeCouleur) {
j = int(substring(HitZoneTrouve, 13, 1));
i = int(substring(HitZoneTrouve, 15, 1));
if (((j % 2) == 0) || (j == 0)) {
if ((j == 8) && (_root.Messages.DESCENTE == 1)) {
NomTir._visible = false;
_root.Sechoir.STOPSECHOIRFINJEU = true;
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
_root.AllerAGameOver.gotoAndStop("GameOver");
}
if ((j == 6) && (_root.Messages.DESCENTE == 3)) {
NomTir._visible = false;
_root.Sechoir.STOPSECHOIRFINJEU = true;
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
_root.AllerAGameOver.gotoAndStop("GameOver");
}
if ((j == 4) && (_root.Messages.DESCENTE == 5)) {
NomTir._visible = false;
_root.Sechoir.STOPSECHOIRFINJEU = true;
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
_root.AllerAGameOver.gotoAndStop("GameOver");
}
if ((j == 2) && (_root.Messages.DESCENTE == 7)) {
NomTir._visible = false;
_root.Sechoir.STOPSECHOIRFINJEU = true;
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
_root.AllerAGameOver.gotoAndStop("GameOver");
}
if ((j == 0) && (_root.Messages.DESCENTE == 9)) {
NomTir._visible = false;
_root.Sechoir.STOPSECHOIRFINJEU = true;
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
_root.AllerAGameOver.gotoAndStop("GameOver");
}
if (j == 10) {
NomTir._visible = false;
_root.Sechoir.STOPSECHOIRFINJEU = true;
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
_root.AllerAGameOver.gotoAndStop("GameOver");
}
if (NUMEROMUR == 1) {
if ((i == 0) || (i == 7)) {
if (i == 0) {
j = j + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
if (i == 7) {
j = j + 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
} else {
j = j + 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
}
}
if (NUMEROMUR == 2) {
if ((i == 0) || (i == 7)) {
if (i == 0) {
j = j + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j + 1;
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
if (i == 7) {
j = j + 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
} else {
j = j + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
}
}
if ((i == 0) || (i == 7)) {
if (i == 0) {
j = j + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j + 1;
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
if (i == 7) {
j = j + 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
} else if (ObjetFrappePosX <= HitZoneTrouve._x) {
j = j + 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
i = i + 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
}
}
} else if (ObjetFrappePosX > HitZoneTrouve._x) {
j = j + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
i = i + 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
i = i - 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
}
}
}
} else if ((j % 2) != 0) {
if ((j == 9) && (_root.Messages.DESCENTE == 0)) {
NomTir._visible = false;
_root.Sechoir.STOPSECHOIRFINJEU = true;
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
_root.AllerAGameOver.gotoAndStop("GameOver");
}
if ((j == 7) && (_root.Messages.DESCENTE == 2)) {
NomTir._visible = false;
_root.Sechoir.STOPSECHOIRFINJEU = true;
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
_root.AllerAGameOver.gotoAndStop("GameOver");
}
if ((j == 5) && (_root.Messages.DESCENTE == 4)) {
NomTir._visible = false;
_root.Sechoir.STOPSECHOIRFINJEU = true;
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
_root.AllerAGameOver.gotoAndStop("GameOver");
}
if ((j == 3) && (_root.Messages.DESCENTE == 6)) {
NomTir._visible = false;
_root.Sechoir.STOPSECHOIRFINJEU = true;
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
_root.AllerAGameOver.gotoAndStop("GameOver");
}
if ((j == 1) && (_root.Messages.DESCENTE == 8)) {
NomTir._visible = false;
_root.Sechoir.STOPSECHOIRFINJEU = true;
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = tampon;
matrice[j][i].exist = false;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
_root.AllerAGameOver.gotoAndStop("GameOver");
}
if (NUMEROMUR == 1) {
if ((i == 0) || (i == 6)) {
if (i == 0) {
j = j + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
if (i == 6) {
j = j + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
} else {
j = j + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
}
}
if (NUMEROMUR == 2) {
if ((i == 0) || (i == 6)) {
if (i == 0) {
j = j + 1;
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
if (i == 6) {
j = j + 1;
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
} else {
j = j + 1;
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
}
}
if (ObjetFrappePosX <= HitZoneTrouve._x) {
if (i == (largeurMatrice - 2)) {
j = j + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
i = i - 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
}
}
if (i == 0) {
j = j + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
}
}
j = j + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
i = i - 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
i = i + 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
}
}
} else if (ObjetFrappePosX > HitZoneTrouve._x) {
if (i == (largeurMatrice - 2)) {
j = j + 1;
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
}
} else if (i == 0) {
j = j + 1;
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
}
}
j = j + 1;
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
j = j - 1;
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
if (TempoTotal.Occupied == true) {
i = i - 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (TempoTotal.Occupied == false) {
ObjetFrappePosX = TempoTotal._x;
ObjetFrappePosY = TempoTotal._y;
TempoTotal.Occupied = true;
HitZonePlace = TempoTotal;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = TempoTotal._x;
matrice[j][i].y = TempoTotal._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetFrappeCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = TempoTotal._x;
BOULETIRECOULEURY = TempoTotal._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
BouleAccroche = true;
AllerANEWPLACESHOT = false;
FINNEWPLACESHOT = false;
return(BouleAccroche);
}
}
}
}
}
}
}
function DetectionCouleurSemblable(ObjetFrappeCouleur) {
j = int(substring(HitZonePlace, 13, 1));
i = int(substring(HitZonePlace, 15, 1));
PileVoisinsMemeCouleur = [];
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal.Visite = true;
COMPTEURVRAIBOULES = 0;
SPECIAL = false;
while (CptrVoisinsMemeCouleur != 0) {
popped = PileVoisinsMemeCouleur.pop();
j = int(substring(popped, 7, 1));
i = int(substring(popped, 9, 1));
ListeExplosion[PtrListeExplosion] = popped;
CptrVoisinsMemeCouleur--;
PtrListeExplosion++;
if (j == 0) {
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
i = i + 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
j = j + 1;
i = i - 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
} else if ((j % 2) == 0) {
j = j - 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
j = j + 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
i = i + 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
j = j + 1;
i = i - 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
} else if ((j % 2) != 0) {
j = j - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
j = j + 1;
i = i - 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
i = i + 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
j = j + 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((ObjetFrappeCouleur == matrice[j][i].color) && (TempoTotal.Visite == false)) {
pushed = PileVoisinsMemeCouleur.push(matrice[j][i].clip);
CptrVoisinsMemeCouleur++;
TempoTotal.Visite = true;
}
}
}
z = 0;
while (z < PtrListeExplosion) {
tampon = ListeExplosion[z];
BouleTest = tampon.substring(0, 5);
if (BouleTest == "Boule") {
COMPTEURVRAIBOULES++;
if (tampon == "Boulea0a0") {
SPECIAL = true;
}
}
z++;
}
if (COMPTEURVRAIBOULES < 3) {
ListeExplosion = new Array();
PtrListeExplosion = 0;
}
if ((SPECIAL == true) && (COMPTEURVRAIBOULES == 1)) {
ListeExplosion = new Array();
PtrListeExplosion = 0;
}
if (PtrListeExplosion >= 3) {
DetectionCouleur = true;
FINDETECTIONCOULEURSEMBLABLE = true;
AllerDETECTIONCOULEURSEMBLABLE = false;
return(DetectionCouleur);
}
DetectionCouleur = false;
FINDETECTIONCOULEURSEMBLABLE = true;
AllerDETECTIONCOULEURSEMBLABLE = false;
return(DetectionCouleur);
}
function RegardeRacine() {
if (PtrListeExplosion >= 3) {
k = 0;
while (k < PtrListeExplosion) {
tampon = ListeExplosion[k];
j = int(substring(tampon, 7, 1));
i = int(substring(tampon, 9, 1));
if (j == 0) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal.RacineExplose = true;
}
k++;
}
}
AllerREGARDERACINE = false;
FINREGARDERACINE = true;
}
function DetectionSupporte() {
PileSupporte = [];
CptrPileSupporte = 0;
i = 0;
while (i < largeurMatrice) {
j = 0;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if (((TempoTotal.Occupied == true) && (matrice[j][i].exist == true)) && (TempoTotal.RacineExplose == false)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
while (CptrPileSupporte != 0) {
popped = PileSupporte.pop();
j = int(substring(popped, 7, 1));
i = int(substring(popped, 9, 1));
ListeSupporte[PtrListeSupporte] = popped;
CptrPileSupporte--;
PtrListeSupporte++;
if (j == 0) {
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
i = i + 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
j = j + 1;
i = i - 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
} else if ((j % 2) == 0) {
j = j - 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
j = j + 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
i = i + 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
j = j + 1;
i = i - 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
} else if ((j % 2) != 0) {
j = j - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
j = j + 1;
i = i - 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
i = i + 2;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
j = j + 1;
i = i - 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
i = i + 1;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Visite == false) && (matrice[j][i].exist == true)) {
pushed = PileSupporte.push(matrice[j][i].clip);
CptrPileSupporte++;
TempoTotal.Visite = true;
}
}
}
}
i++;
}
BouleSupporte = true;
AllerDETECTIONSUPPORTE = false;
FINDETECTIONSUPPORTE = true;
return(BouleSupporte);
}
function DetectionNonSupporte() {
j = 0;
while (j < hauteurMatrice) {
if (((j % 2) == 0) || (j == 0)) {
i = 0;
while (i < largeurMatrice) {
if (matrice[j][i].exist == true) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Occupied == true) && (TempoTotal.Visite == false)) {
ListeNonSupporte[PtrListeNonSupporte] = matrice[j][i].clip;
PtrListeNonSupporte++;
}
}
i++;
}
} else if ((j % 2) != 0) {
i = 0;
while (i < (largeurMatrice - 1)) {
if (matrice[j][i].exist == true) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
if ((TempoTotal.Occupied == true) && (TempoTotal.Visite == false)) {
ListeNonSupporte[PtrListeNonSupporte] = matrice[j][i].clip;
PtrListeNonSupporte++;
}
}
i++;
}
}
j++;
}
BouleNonSupporte = true;
AllerDETECTIONNONSUPPORTE = false;
FINDETECTIONNONSUPPORTE = true;
return(BouleNonSupporte);
}
function Explosion() {
TOTALEXPLOSE = 0;
TOTALNONEXPLOSE = 0;
COMPTEUR = 0;
if (PtrListeExplosion >= 3) {
COMPTEUR++;
k = 0;
while (k < PtrListeExplosion) {
if (COMPTEUR == 1) {
TOTALEXPLOSE = PtrListeExplosion * POINTSEXPLOSION;
_root.LevelKontroller.TOTALSCORE = _root.LevelKontroller.TOTALSCORE + TOTALEXPLOSE;
COMPTEUR++;
}
tampon = ListeExplosion[k];
if (tampon == BOULETIRE) {
removeMovieClip(TamponTotal);
if (BOULETIRECOULEUR == RED) {
_root.Sound.gotoAndStop("Drakken");
} else if (BOULETIRECOULEUR == GREEN) {
_root.Sound.gotoAndStop("Shego");
} else if (BOULETIRECOULEUR == BROWN) {
_root.Sound.gotoAndStop("Gill");
} else if (BOULETIRECOULEUR == ORANGE) {
_root.Sound.gotoAndStop("Monkey");
} else if (BOULETIRECOULEUR == BLUE) {
_root.Sound.gotoAndStop("Senior");
} else if (BOULETIRECOULEUR == WHITE) {
_root.Sound.gotoAndStop("Duff");
} else if (BOULETIRECOULEUR == YELLOW) {
_root.Sound.gotoAndStop("Junior");
} else if (BOULETIRECOULEUR == PURPLE) {
_root.Sound.gotoAndStop("Sorciere");
}
} else if (tampon != BOULETIRE) {
TamponTotal = eval ("_root." + tampon);
TamponTotal.play();
}
j = int(substring(tampon, 7, 1));
i = int(substring(tampon, 9, 1));
delete matrice[j][i];
matrice[j][i] = new Object();
matrice[j][i].exist = false;
matrice[j][i].color = 0;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal.Occupied = false;
TempoTotal.Visite = false;
k++;
}
k = 0;
while (k < PtrListeNonSupporte) {
if ((COMPTEUR = 2)) {
TOTALNONSUPPORTE = PtrListeNonSupporte * POINTSNONSUPPORTE;
COMPTEUR++;
}
tampon = ListeNonSupporte[k];
TamponTotal = eval ("_root." + tampon);
TamponTotal.play();
j = int(substring(tampon, 7, 1));
i = int(substring(tampon, 9, 1));
delete matrice[j][i];
matrice[j][i] = new Object();
matrice[j][i].exist = false;
matrice[j][i].color = 0;
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal.Occupied = false;
TempoTotal.Visite = false;
k++;
}
_root.Sechoir.COMPTEURBALLETIRE = _root.Sechoir.COMPTEURBALLETIRE - PtrListeNonSupporte;
if (_root.Sechoir.COMPTEURBALLETIRE <= 0) {
_root.Sechoir.COMPTEURBALLETIRE = 0;
}
if (COMPTEUR == 3) {
_root.LevelKontroller.TOTALSCORE = _root.LevelKontroller.TOTALSCORE + TOTALNONSUPPORTE;
COMPTEUR++;
}
ListeExplosion = new Array(level);
PtrListeExplosion = 0;
ListeNonSupporte = new Array(level);
PtrListeNonSupporte = 0;
BouleExplose = true;
FINEXPLOSION = true;
return(BouleExplose);
}
ListeExplosion = new Array(level);
PtrListeExplosion = 0;
ListeNonSupporte = new Array(level);
PtrListeNonSupporte = 0;
BouleExplose = false;
AllerEXPLOSION = false;
FINEXPLOSION = true;
return(BouleExplose);
}
function ReInitialisationParam() {
Etat = null;
HitFlag = false;
HitZoneTrouve = null;
HitZonePlace = null;
ObjetFrappe = null;
ObjetFrappePosX = 0;
ObjetFrappePosY = 0;
ObjetFrappeCouleur = NONE;
BienAccroche = false;
BouleSupporte = false;
BouleNonSupporte = false;
BouleExplose = false;
CptrVoisinsMemeCouleur = 0;
PtrListeExplosion = 0;
ListeExplosion = new Array(level);
DetectionCouleur = false;
PtrListeSupporte = 0;
ListeSupporte = new Array(level);
PtrListeNonSupporte = 0;
ListeNonSupporte = new Array(level);
BOULEDANGER = false;
PileDanger = [];
PtrPileDanger = 0;
FINFRAPPEHITZONEOCCUPE = false;
FINNEWPLACESHOT = false;
FINDETECTIONCOULEURSEMBLABLE = false;
FINDETECTIONSUPPORTE = false;
FINDETECTIONNONSUPPORTE = false;
FINEXPLOSION = false;
FINREGARDERACINE = false;
j = 0;
while (j < hauteurMatrice) {
if (((j % 2) == 0) || (j == 0)) {
i = 0;
while (i < largeurMatrice) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal.Visite = false;
if (j == 0) {
TempoTotal.RacineExplose = false;
}
i++;
}
} else if ((j % 2) != 0) {
i = 0;
while (i < (largeurMatrice - 1)) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal.Visite = false;
i++;
}
}
j++;
}
FINREINITIALISATIONPARAM = true;
}
function ChargementJeu() {
var _local1 = _root;
if (_local1.LevelKontroller.LEVELGLOBAL == 1) {
type = new Array(BROWN, YELLOW, BROWN, GREEN, BLUE, WHITE, GREEN, BLUE, GREEN, RED, WHITE, BROWN, BROWN, BLUE, BLUE, YELLOW, PURPLE, RED, PURPLE, GREEN, BLUE, GREEN, PURPLE, PURPLE, ORANGE, YELLOW, YELLOW, BLUE, GREEN, GREEN, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE);
_local1.Villains.gotoAndStop("Duff");
_local1.Backgrounds.gotoAndStop("Level1");
_local1.LevelIndicator.gotoAndStop("Level1");
}
if (_local1.LevelKontroller.LEVELGLOBAL == 2) {
type = new Array(RED, RED, RED, RED, BLUE, WHITE, RED, BROWN, RED, RED, WHITE, RED, RED, BROWN, BROWN, PURPLE, PURPLE, RED, PURPLE, ORANGE, BROWN, BROWN, PURPLE, PURPLE, BROWN, YELLOW, YELLOW, BROWN, GREEN, GREEN, PURPLE, PURPLE, BLUE, BROWN, PURPLE, ORANGE, BROWN, PURPLE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE);
_local1.Villains.gotoAndStop("Monkey");
_local1.Backgrounds.gotoAndStop("Level2");
_local1.LevelIndicator.gotoAndStop("Level2");
}
if (_local1.LevelKontroller.LEVELGLOBAL == 3) {
type = new Array(RED, PURPLE, GREEN, PURPLE, BLUE, WHITE, BLUE, BLUE, WHITE, WHITE, PURPLE, RED, GREEN, WHITE, WHITE, WHITE, GREEN, WHITE, GREEN, ORANGE, WHITE, PURPLE, PURPLE, WHITE, GREEN, YELLOW, YELLOW, PURPLE, GREEN, GREEN, WHITE, WHITE, GREEN, YELLOW, GREEN, BLUE, BLUE, WHITE, PURPLE, WHITE, GREEN, GREEN, WHITE, WHITE, PURPLE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE);
_local1.Villains.gotoAndStop("SenorSrJr");
_local1.Backgrounds.gotoAndStop("Level3");
_local1.LevelIndicator.gotoAndStop("Level3");
}
if (_local1.LevelKontroller.LEVELGLOBAL == 4) {
type = new Array(GREEN, GREEN, GREEN, BROWN, BLUE, WHITE, BLUE, BLUE, GREEN, PURPLE, BLUE, RED, BLUE, GREEN, BLUE, RED, RED, YELLOW, WHITE, ORANGE, RED, WHITE, PURPLE, RED, RED, YELLOW, YELLOW, BLUE, BROWN, GREEN, GREEN, GREEN, BLUE, WHITE, ORANGE, RED, BLUE, RED, GREEN, GREEN, BROWN, WHITE, YELLOW, GREEN, PURPLE, RED, YELLOW, GREEN, BROWN, BROWN, ORANGE, WHITE, WHITE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE);
_local1.Villains.gotoAndStop("SenorSrSr");
_local1.Backgrounds.gotoAndStop("Level4");
_local1.LevelIndicator.gotoAndStop("Level4");
}
if (_local1.LevelKontroller.LEVELGLOBAL == 5) {
type = new Array(ORANGE, WHITE, WHITE, BLUE, BLUE, RED, BLUE, BLUE, ORANGE, ORANGE, BLUE, WHITE, RED, RED, RED, RED, WHITE, RED, BLUE, RED, ORANGE, WHITE, BLUE, BLUE, GREEN, RED, RED, YELLOW, RED, RED, BLUE, RED, GREEN, GREEN, GREEN, YELLOW, BLUE, BLUE, PURPLE, PURPLE, RED, WHITE, YELLOW, WHITE, RED, PURPLE, BLUE, RED, WHITE, BLUE, WHITE, RED, BLUE, RED, WHITE, RED, WHITE, RED, GREEN, GREEN, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE);
_local1.Villains.gotoAndStop("Gill");
_local1.Backgrounds.gotoAndStop("Level5");
_local1.LevelIndicator.gotoAndStop("Level5");
}
if (_local1.LevelKontroller.LEVELGLOBAL == 6) {
type = new Array(PURPLE, PURPLE, RED, PURPLE, BROWN, WHITE, PURPLE, BROWN, PURPLE, PURPLE, PURPLE, RED, PURPLE, BROWN, BROWN, RED, RED, PURPLE, PURPLE, ORANGE, BROWN, BROWN, PURPLE, PURPLE, PURPLE, WHITE, YELLOW, BROWN, WHITE, GREEN, PURPLE, PURPLE, BROWN, PURPLE, BROWN, PURPLE, BROWN, BROWN, PURPLE, PURPLE, GREEN, BROWN, PURPLE, BROWN, BROWN, PURPLE, PURPLE, GREEN, GREEN, BROWN, YELLOW, ORANGE, PURPLE, PURPLE, RED, PURPLE, WHITE, PURPLE, PURPLE, PURPLE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE);
_local1.Villains.gotoAndStop("Shego");
_local1.Backgrounds.gotoAndStop("Level6");
_local1.LevelIndicator.gotoAndStop("Level6");
}
if (_local1.LevelKontroller.LEVELGLOBAL == 7) {
type = new Array(GREEN, PURPLE, RED, PURPLE, BLUE, WHITE, GREEN, BLUE, PURPLE, GREEN, PURPLE, RED, PURPLE, BLUE, BLUE, RED, RED, GREEN, GREEN, ORANGE, BLUE, ORANGE, PURPLE, GREEN, WHITE, WHITE, YELLOW, WHITE, WHITE, GREEN, GREEN, ORANGE, BLUE, PURPLE, BLUE, GREEN, BLUE, BLUE, GREEN, GREEN, GREEN, BLUE, PURPLE, BLUE, BLUE, ORANGE, YELLOW, GREEN, GREEN, BLUE, YELLOW, ORANGE, YELLOW, PURPLE, ORANGE, RED, WHITE, RED, ORANGE, YELLOW, RED, BLUE, ORANGE, RED, WHITE, BLUE, RED, BLUE, NONE, NONE, NONE, NONE, NONE, NONE, NONE);
_local1.Villains.gotoAndStop("Drakken");
_local1.Backgrounds.gotoAndStop("Level7");
_local1.LevelIndicator.gotoAndStop("Level7");
}
if (_local1.LevelKontroller.LEVELGLOBAL == 8) {
type = new Array(GREEN, PURPLE, RED, PURPLE, BLUE, WHITE, GREEN, BLUE, PURPLE, GREEN, PURPLE, RED, PURPLE, BLUE, BLUE, RED, RED, GREEN, GREEN, ORANGE, BLUE, ORANGE, PURPLE, GREEN, WHITE, WHITE, YELLOW, WHITE, WHITE, GREEN, GREEN, ORANGE, BLUE, PURPLE, BLUE, GREEN, BLUE, BLUE, GREEN, GREEN, GREEN, BLUE, PURPLE, BLUE, BLUE, ORANGE, YELLOW, GREEN, GREEN, BLUE, YELLOW, ORANGE, YELLOW, PURPLE, ORANGE, RED, WHITE, RED, ORANGE, YELLOW, RED, BLUE, RED, BLUE, RED, BLUE, RED, BLUE, NONE, NONE, NONE, NONE, NONE, NONE, NONE);
_local1.Villains.gotoAndStop("Diable");
_local1.Backgrounds.gotoAndStop("Level8");
_local1.LevelIndicator.gotoAndStop("Level8");
}
}
world = new Object();
world.left = 165;
world.right = 348;
world.top = 42;
world.bottom = 250;
timer = 0;
d = 0;
NONE = 0;
RED = 1;
GREEN = 2;
BROWN = 3;
ORANGE = 4;
BLUE = 5;
WHITE = 6;
YELLOW = 7;
PURPLE = 8;
positionX = 0;
positionY = 0;
hauteurMatrice = 10;
largeurMatrice = 8;
level = hauteurMatrice * largeurMatrice;
var addition = 20;
LIGNE9MIN = 209 + addition;
LIGNE9MAX = 229 + addition;
LIGNE8MIN = 187 + addition;
LIGNE8MAX = 207 + addition;
LIGNE7MIN = 165 + addition;
LIGNE7MAX = 185 + addition;
LIGNE6MIN = 143 + addition;
LIGNE6MAX = 163 + addition;
LIGNE5MIN = 121 + addition;
LIGNE5MAX = 141 + addition;
LIGNE4MIN = 99 + addition;
LIGNE4MAX = 119 + addition;
LIGNE3MIN = 77 + addition;
LIGNE3MAX = 97 + addition;
LIGNE2MIN = 55 + addition;
LIGNE2MAX = 75 + addition;
LIGNE1MIN = 33 + addition;
LIGNE1MAX = 53 + addition;
LIGNE0MIN = 11 + addition;
LIGNE0MAX = 31 + addition;
LIGNEPLAFONDMIN = 0;
LIGNEPLAFONDMAX = 27;
NomTir = "shot";
RandomColor = NONE;
Etat = null;
HitFlag = false;
HitZoneTrouve = null;
HitZonePlace = null;
ObjetFrappe = null;
ObjetFrappePosX = 0;
ObjetFrappePosY = 0;
ObjetFrappeCouleur = NONE;
BienAccroche = false;
BouleSupporte = false;
BouleNonSupporte = false;
BouleExplose = false;
ObjetCourant = null;
BOULETIRE = null;
BOULETIRECOULEUR = 0;
BOULETIRECOULEURX = 0;
BOULETIRECOULEURY = 0;
BOULESURLEJEU = true;
PARTIECOMMENCE = false;
NUMEROMUR = null;
CYCLETIR = false;
BOULEDANGER = false;
PileDanger = [];
PtrPileDanger = 0;
FINFRAPPEHITZONEOCCUPE = false;
FINNEWPLACESHOT = false;
FINDETECTIONCOULEURSEMBLABLE = false;
FINDETECTIONSUPPORTE = false;
FINDETECTIONNONSUPPORTE = false;
FINEXPLOSION = false;
FINREGARDERACINE = false;
FINREINITIALISATIONPARAM = false;
CptrVoisinsMemeCouleur = 0;
PtrListeExplosion = 0;
ListeExplosion = new Array(level);
DetectionCouleur = false;
PtrListeSupporte = 0;
ListeSupporte = new Array(level);
PtrListeNonSupporte = 0;
ListeNonSupporte = new Array(level);
POINTSEXPLOSION = 50;
POINTSNONSUPPORTE = 100;
matrice = new Array(hauteurMatrice);
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = "Boulea" + tampon;
matrice[j][i].exist = false;
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
matrice[j][i] = new Object();
matrice[j][i].x = positionX;
matrice[j][i].y = positionY;
matrice[j][i].clip = "Boulea" + tampon;
matrice[j][i].exist = false;
i++;
}
}
j++;
}
}
onClipEvent (enterFrame) {
if (_root.LevelKontroller.DEBUTCHARGEMENTJEU == true) {
ChargementJeu();
_root.LevelKontroller.DEBUTCHARGEMENTJEU = false;
}
if (String(NomTir) == "shot1") {
PARTIECOMMENCE = true;
if (FINREINITIALISATIONPARAM == false) {
ReInitialisationParam();
AllerAFRAPPEHITZONEOCCUPE = true;
}
ObjetCourantCouleur = _root.Sechoir.VILLAINSHOT;
if ((FINFRAPPEHITZONEOCCUPE == false) && (AllerAFRAPPEHITZONEOCCUPE == true)) {
Etat = FrappeHitZoneOccupe(NomTir, ObjetCourantCouleur);
AllerANEWPLACESHOT = true;
}
if ((BOULEDANGER == true) && (Etat == false)) {
tampon = PtrPileDanger;
s = 0;
while (s < tampon) {
poppedDanger = PileDanger.pop();
PtrPileDanger--;
if (poppedDanger.Occupied == false) {
j = int(substring(poppedDanger, 13, 1));
i = int(substring(poppedDanger, 15, 1));
ObjetFrappePosX = poppedDanger._x;
ObjetFrappePosY = poppedDanger._y;
poppedDanger.Occupied = true;
HitZonePlace = poppedDanger;
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
matrice[j][i] = new Object();
matrice[j][i].x = poppedDanger._x;
matrice[j][i].y = poppedDanger._y;
matrice[j][i].clip = temp;
matrice[j][i].exist = true;
matrice[j][i].color = ObjetCourantCouleur;
BOULETIRE = temp;
BOULETIRECOULEUR = ObjetFrappeCouleur;
BOULETIRECOULEURX = poppedDanger._x;
BOULETIRECOULEURY = poppedDanger._y;
BOULESURLEJEU = true;
_parent.d++;
tampon = "Boule";
tampon = tampon + ObjetCourantCouleur;
TamponTotal = eval ("_root." + tampon);
duplicateMovieClip (TamponTotal, temp, (_parent.d % 100) + 500);
_parent[temp]._x = ObjetFrappePosX;
_parent[temp]._y = ObjetFrappePosY;
}
tampon++;
}
Etat = false;
}
if (Etat == true) {
if ((FINNEWPLACESHOT == false) && (AllerANEWPLACESHOT == true)) {
BienAccroche = NewPlaceShot(HitZoneTrouve, ObjetFrappe, ObjetFrappePosX, ObjetFrappePosY, ObjetFrappeCouleur);
_root.Sechoir.COMPTEURBALLETIRE++;
AllerDETECTIONCOULEURSEMBLABLE = true;
}
NUMEROMUR = null;
if (BienAccroche == true) {
if ((FINDETECTIONCOULEURSEMBLABLE == false) && (AllerDETECTIONCOULEURSEMBLABLE == true)) {
DetectionCouleur = DetectionCouleurSemblable(ObjetFrappeCouleur);
AllerREGARDERACINE = true;
}
if ((DetectionCouleur == true) && (AllerREGARDERACINE == true)) {
if ((FINREGARDERACINE == false) && (AllerREGARDERACINE == true)) {
RegardeRacine();
AllerDETECTIONSUPPORTE = true;
}
if ((FINDETECTIONSUPPORTE == false) && (AllerDETECTIONSUPPORTE == true)) {
BouleSupporte = DetectionSupporte();
AllerDETECTIONNONSUPPORTE = true;
}
if (BouleSupporte == true) {
if ((FINDETECTIONNONSUPPORTE == false) && (AllerDETECTIONNONSUPPORTE == true)) {
BouleNonSupporte = DetectionNonSupporte();
AllerEXPLOSION = true;
}
if (BouleNonSupporte == true) {
if ((FINEXPLOSION == false) && (AllerEXPLOSION == true)) {
BouleExplose = Explosion();
_root.Messages.LEVELFINICHECK = true;
}
}
}
}
}
} else if (Etat == false) {
if ((FINDETECTIONCOULEURSEMBLABLE == false) && (AllerDETECTIONCOULEURSEMBLABLE == true)) {
DetectionCouleur = DetectionCouleurSemblable(ObjetFrappeCouleur);
AllerREGARDERACINE = true;
}
if ((DetectionCouleur == true) && (AllerREGARDERACINE == true)) {
if ((FINREGARDERACINE == false) && (AllerREGARDERACINE == true)) {
RegardeRacine();
AllerDETECTIONSUPPORTE = true;
}
if ((FINDETECTIONSUPPORTE == false) && (AllerDETECTIONSUPPORTE == true)) {
BouleSupporte = DetectionSupporte();
AllerDETECTIONNONSUPPORTE = true;
}
if (BouleSupporte == true) {
if ((FINDETECTIONNONSUPPORTE == false) && (AllerDETECTIONNONSUPPORTE == true)) {
BouleNonSupporte = DetectionNonSupporte();
AllerEXPLOSION = true;
}
if (BouleNonSupporte == true) {
if ((FINEXPLOSION == false) && (AllerEXPLOSION == true)) {
BouleExplose = Explosion();
_root.Messages.LEVELFINICHECK = true;
}
}
}
}
}
}
}
Instance of Symbol 411 MovieClip "LevelKontroller" in Frame 4
onClipEvent (load) {
soundVolume = new Sound();
volume = 100;
soundVolume.setVolume(volume);
LEVELGLOBAL = 1;
DEBUTCHARGEMENTJEU = true;
TOTALSCORE = 0;
TimerHelpDebut = 0;
TimerHelpFin = 0;
TimerHelpTampon = 0;
TimerHelpTotal = 0;
TimerQuitDebut = 0;
TimerQuitFin = 0;
TimerQuitTampon = 0;
TimerQuitTotal = 0;
}
onClipEvent (enterFrame) {
if (SortieHelp == true) {
TimerHelpTampon = 0;
TimerHelpTampon = TimerHelpFin - TimerHelpDebut;
TimerHelpTotal = TimerHelpTampon + TimerHelpTotal;
SortieHelp = false;
}
if (SortieQuit == true) {
TimerQuitTampon = 0;
TimerQuitTampon = TimerQuitFin - TimerQuitDebut;
TimerQuitTotal = TimerQuitTampon + TimerQuitTotal;
SortieQuit = false;
}
}
Instance of Symbol 424 MovieClip "QuitPage" in Frame 4
onClipEvent (load) {
this.swapDepths(5000);
}
Instance of Symbol 174 MovieClip "instructions" in Frame 4
onClipEvent (load) {
this.swapDepths(5000002);
}
Frame 5
k = 0;
z = 0;
positionX = 166;
positionY = 41;
minuPosX = 174;
MaxTableauType = _root.Variables.hauteurMatrice * _root.Variables.largeurMatrice;
j = 0;
while (j < _root.Variables.hauteurMatrice) {
positionX = 340 - minuPosX;
if ((j % 2) != 0) {
positionX = 353 - minuPosX;
}
if (((j % 2) == 0) || (j == 0)) {
i = 0;
while (i < _root.Variables.largeurMatrice) {
if (_root.Variables.type[k] != 0) {
tampon = j;
tampon = (tampon + "a") + i;
_root.Variables.matrice[j][i] = new Object();
_root.Variables.matrice[j][i].x = positionX;
_root.Variables.matrice[j][i].y = positionY;
_root.Variables.matrice[j][i].clip = "Boulea" + tampon;
_root.Variables.matrice[j][i].exist = true;
_root.Variables.matrice[j][i].color = _root.Variables.type[k];
temp = "Boule" + _root.Variables.type[k];
duplicateMovieClip (_root.temp, "Boulea" + tampon, k);
positionX = positionX + 26.3;
k++;
} else {
_root.Variables.matrice[j][i] = new Object();
_root.Variables.matrice[j][i].exist = false;
_root.Variables.matrice[j][i].color = 0;
positionX = positionX + 26.3;
k++;
}
i++;
}
} else {
i = 0;
while (i < (_root.Variables.largeurMatrice - 1)) {
if (_root.Variables.type[k] != 0) {
tampon = j;
tampon = (tampon + "a") + i;
_root.Variables.matrice[j][i] = new Object();
_root.Variables.matrice[j][i].x = positionX;
_root.Variables.matrice[j][i].y = positionY;
_root.Variables.matrice[j][i].clip = "Boulea" + tampon;
_root.Variables.matrice[j][i].exist = true;
_root.Variables.matrice[j][i].color = _root.Variables.type[k];
temp = "Boule" + _root.Variables.type[k];
duplicateMovieClip (_root.temp, "Boulea" + tampon, k);
positionX = positionX + 26.1;
k++;
} else {
_root.Variables.matrice[j][i] = new Object();
_root.Variables.matrice[j][i].exist = false;
_root.Variables.matrice[j][i].color = 0;
positionX = positionX + 26.1;
k++;
}
i++;
}
}
positionY = positionY + 22.1;
j++;
}
j = 0;
while (j < _root.Variables.hauteurMatrice) {
if (((j % 2) == 0) || (j == 0)) {
i = 0;
while (i < _root.Variables.largeurMatrice) {
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
setProperty(temp, _x , _root.Variables.matrice[j][i].x);
setProperty(temp, _y , _root.Variables.matrice[j][i].y);
if (_root.Variables.matrice[j][i].exist == true) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal.Occupied = true;
} else if (_root.Variables.matrice[j][i].exist == false) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal.Occupied = false;
}
i++;
}
} else if ((j % 2) != 0) {
i = 0;
while (i < (_root.Variables.largeurMatrice - 1)) {
temp = "Boule";
temp = temp + "a";
temp = temp + j;
temp = temp + "a";
temp = temp + i;
setProperty(temp, _x , _root.Variables.matrice[j][i].x);
setProperty(temp, _y , _root.Variables.matrice[j][i].y);
if (_root.Variables.matrice[j][i].exist == true) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal.Occupied = true;
} else if (_root.Variables.matrice[j][i].exist == false) {
tempo = "Hit";
tempo = tempo + "a";
tempo = tempo + j;
tempo = tempo + "a";
tempo = tempo + i;
TempoTotal = eval ("_root." + tempo);
TempoTotal.Occupied = false;
}
i++;
}
}
j++;
}
stop();
Frame 19
_root.LevelKontroller.LEVELGLOBAL++;
Frame 20
TempsFin = getTimer();
TempsFinal = TempsFin - /:TempsDebut;
TempsFinal = TempsFinal - _root.LevelKontroller.TimerHelpTotal;
TempsFinal = TempsFinal - _root.LevelKontroller.TimerQuitTotal;
if (TempsFinal > 240000) {
Set("/:Bonus", 0);
} else {
Set("/:Bonus", Math.floor((240000 - TempsFinal) / 100));
}
_root.LevelKontroller.TOTALSCORE = _root.LevelKontroller.TOTALSCORE + Bonus;
stop();
Instance of Symbol 28 MovieClip in Frame 21
onClipEvent (load) {
this.swapDepths(9000002);
}
Frame 23
stop();
TempsFin = getTimer();
TempsFinal = TempsFin - /:TempsDebut;
TempsFinal = TempsFinal - _root.LevelKontroller.TimerHelpTotal;
TempsFinal = TempsFinal - _root.LevelKontroller.TimerQuitTotal;
if (TempsFinal > 240000) {
Set("/:Bonus", 0);
} else {
Set("/:Bonus", Math.floor((240000 - TempsFinal) / 100));
}
_root.LevelKontroller.TOTALSCORE = _root.LevelKontroller.TOTALSCORE + Bonus;
Frame 28
stop();
Frame 32
i = 0;
while (i < 3) {
_root.shot1._visible = false;
i++;
}
stop();
Frame 40
_root.Sechoir.STOPSECHOIRFINJEU = true;
_root.Sechoir.BouleSechoir._visible = false;
j = 0;
while (j < 10) {
if ((j % 2) == 0) {
i = 0;
while (i < 8) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < 7) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
scores.loadMovie("fsd.swf", "1");
stop();
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 101
Symbol 11 MovieClip Frame 104
tellTarget ("_root") {
gotoAndPlay ("Intro");
};
trace("STI");
Symbol 11 MovieClip Frame 107
tellTarget ("_root") {
gotoAndPlay ("Intro");
};
trace("STI");
Symbol 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 36 MovieClip Frame 7
this.removeMovieClip();
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 38 MovieClip Frame 8
this.removeMovieClip();
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 41 MovieClip Frame 8
this.removeMovieClip();
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 74 Button
on (release) {
if (firstGAME) {
firstGAME = false;
instructions.gotoAndStop(2);
}
gotoAndPlay ("Level");
}
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 135 Button
on (release) {
play();
}
Symbol 151 MovieClip Frame 8
stop();
Symbol 151 MovieClip Frame 16
stop();
Symbol 151 MovieClip Frame 23
stop();
Symbol 151 MovieClip Frame 30
stop();
Symbol 151 MovieClip Frame 37
stop();
Symbol 151 MovieClip Frame 44
stop();
Symbol 151 MovieClip Frame 51
stop();
Symbol 151 MovieClip Frame 58
stop();
Symbol 151 MovieClip Frame 65
stop();
Symbol 151 MovieClip Frame 72
stop();
Symbol 151 MovieClip Frame 80
stop();
Symbol 173 Button
on (release) {
gotoAndStop (2);
getURL ("supervillainfaceoffmusicoff.html", "midi");
}
Symbol 174 MovieClip Frame 1
stop();
hauteurMatrice = 10;
largeurMatrice = 8;
_root.GameStopped = false;
j = 0;
while (j < hauteurMatrice) {
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
TamponTotal = eval ("_root." + tampon);
TamponTotal._visible = true;
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
TamponTotal = eval ("_root." + tampon);
TamponTotal._visible = true;
i++;
}
}
j++;
}
Symbol 174 MovieClip Frame 2
stop();
btn.useHandCursor = false;
hauteurMatrice = 10;
largeurMatrice = 8;
_root.GameStopped = true;
_root.GameStopped = false;
j = 0;
while (j < hauteurMatrice) {
matrice[j] = new Array(largeurMatrice);
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
TamponTotal = eval ("_root." + tampon);
TamponTotal._visible = false;
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
TamponTotal = eval ("_root." + tampon);
TamponTotal._visible = false;
i++;
}
}
j++;
}
Instance of Symbol 80 MovieClip "Hita0a1" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita0a2" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita0a3" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita0a4" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita0a5" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita0a6" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita0a7" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita0a0" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
RacineExplose = false;
}
Instance of Symbol 80 MovieClip "Hita1a5" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita1a1" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita1a2" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita1a4" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita1a3" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 81 MovieClip "Hita1a0" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 82 MovieClip "Hita1a6" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a1" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a2" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a3" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a4" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a5" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a6" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a7" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita2a0" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita3a5" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita3a1" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita3a2" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita3a4" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita3a3" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 81 MovieClip "Hita3a0" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 82 MovieClip "Hita3a6" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a1" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a2" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a3" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a4" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a5" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a6" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a7" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita4a0" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita5a5" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita5a1" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita5a2" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita5a4" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita5a3" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 81 MovieClip "Hita5a0" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 82 MovieClip "Hita5a6" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a1" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a2" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a3" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a4" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a5" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a6" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a7" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita6a0" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita7a5" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita7a1" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita7a2" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita7a4" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita7a3" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 81 MovieClip "Hita7a0" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 82 MovieClip "Hita7a6" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a1" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a2" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a3" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a4" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a5" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a6" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a7" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita8a0" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita9a5" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita9a1" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita9a2" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita9a4" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 80 MovieClip "Hita9a3" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 81 MovieClip "Hita9a0" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Instance of Symbol 82 MovieClip "Hita9a6" in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
Occupied = false;
Visite = false;
}
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 2
stop();
Symbol 207 MovieClip Frame 7
stop();
Symbol 207 MovieClip Frame 12
stop();
Symbol 207 MovieClip Frame 17
stop();
Symbol 207 MovieClip Frame 22
stop();
Symbol 207 MovieClip Frame 27
stop();
Symbol 207 MovieClip Frame 32
stop();
Symbol 207 MovieClip Frame 37
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 11
stop();
Symbol 365 MovieClip Frame 21
stop();
Symbol 365 MovieClip Frame 31
stop();
Symbol 365 MovieClip Frame 41
stop();
Symbol 365 MovieClip Frame 51
stop();
Symbol 365 MovieClip Frame 61
stop();
Symbol 365 MovieClip Frame 71
stop();
Symbol 366 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 366 MovieClip Frame 7
this.removeMovieClip();
Symbol 367 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 367 MovieClip Frame 9
this.removeMovieClip();
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 368 MovieClip Frame 8
this.removeMovieClip();
Symbol 369 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 369 MovieClip Frame 8
this.removeMovieClip();
Symbol 373 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 2
tellTarget ("_parent." + _root.Variables.BOULETIRE) {
play();
};
Symbol 373 MovieClip Frame 8
this.removeMovieClip();
Symbol 374 MovieClip Frame 8
stop();
Symbol 374 MovieClip Frame 15
stop();
Symbol 374 MovieClip Frame 16
stop();
Symbol 374 MovieClip Frame 22
stop();
Symbol 374 MovieClip Frame 23
stop();
Symbol 374 MovieClip Frame 27
stop();
Symbol 374 MovieClip Frame 28
stop();
Symbol 374 MovieClip Frame 36
stop();
Symbol 374 MovieClip Frame 37
stop();
Symbol 374 MovieClip Frame 44
stop();
Symbol 374 MovieClip Frame 45
stop();
Symbol 374 MovieClip Frame 51
stop();
Symbol 374 MovieClip Frame 52
stop();
Symbol 374 MovieClip Frame 59
stop();
Symbol 374 MovieClip Frame 60
stop();
Symbol 374 MovieClip Frame 67
stop();
Symbol 379 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 8
play();
Symbol 379 MovieClip Frame 18
stop();
Symbol 379 MovieClip Frame 22
play();
Symbol 379 MovieClip Frame 32
stop();
Symbol 379 MovieClip Frame 36
play();
Symbol 379 MovieClip Frame 46
stop();
Symbol 379 MovieClip Frame 49
play();
Symbol 379 MovieClip Frame 59
stop();
Symbol 379 MovieClip Frame 63
play();
Symbol 379 MovieClip Frame 73
stop();
Symbol 379 MovieClip Frame 77
play();
Symbol 379 MovieClip Frame 87
stop();
Symbol 379 MovieClip Frame 93
play();
Symbol 379 MovieClip Frame 102
stop();
Symbol 379 MovieClip Frame 106
play();
Symbol 379 MovieClip Frame 115
stop();
Instance of Symbol 379 MovieClip "BouleSechoir" in Symbol 380 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this._rotation = this._rotation + 3;
if (_root.Sechoir._rotation <= -161) {
this._rotation = 161;
}
}
if (Key.isDown(39)) {
this._rotation = this._rotation - 3;
if (_root.Sechoir._rotation >= -21) {
this._rotation = 21;
}
}
}
Symbol 387 Button
on (release) {
tellTarget ("Instructions") {
gotoAndStop (2);
};
}
Symbol 388 Button
on (release) {
_root.QuitPage._visible = true;
_root.LevelKontroller.TimerQuitDebut = getTimer();
mc_empty._visible = false;
tellTarget ("QuitPage") {
gotoAndStop (2);
};
}
Symbol 389 Button
on (release) {
gotoAndStop (2);
getURL ("supervillainfaceoffmusicoff.html", "midi");
}
Symbol 390 Button
on (release) {
play();
}
Symbol 393 MovieClip Frame 1
_root.LevelKontroller.volume = 100;
_root.LevelKontroller.soundVolume.setVolume(_root.LevelKontroller.volume);
_root.backMusic.gotoAndStop("play");
stop();
Symbol 393 MovieClip Frame 2
_root.LevelKontroller.volume = 100;
_root.LevelKontroller.soundVolume.setVolume(_root.LevelKontroller.volume);
_root.backMusic.gotoAndStop("stop");
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 6
gotoAndStop (1);
Symbol 405 MovieClip Frame 11
gotoAndStop (1);
Symbol 405 MovieClip Frame 17
gotoAndStop (1);
Symbol 405 MovieClip Frame 21
gotoAndStop (1);
Symbol 405 MovieClip Frame 26
gotoAndStop (1);
Symbol 405 MovieClip Frame 32
gotoAndStop (1);
Symbol 405 MovieClip Frame 37
gotoAndStop (1);
Symbol 405 MovieClip Frame 42
gotoAndStop (1);
Symbol 408 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 4
gotoAndStop (1);
Symbol 412 MovieClip Frame 1
gotoAndStop ("Level1");
Symbol 412 MovieClip Frame 6
stop();
Symbol 412 MovieClip Frame 11
stop();
Symbol 412 MovieClip Frame 16
stop();
Symbol 412 MovieClip Frame 21
stop();
Symbol 412 MovieClip Frame 26
stop();
Symbol 412 MovieClip Frame 31
stop();
Symbol 412 MovieClip Frame 36
stop();
Symbol 412 MovieClip Frame 41
stop();
Symbol 420 Button
on (release) {
getURL ("javascript:window.close();");
}
Symbol 423 Button
on (release) {
_root.LevelKontroller.TimerQuitFin = getTimer();
_root.LevelKontroller.SortieQuit = true;
gotoAndStop (1);
}
Symbol 424 MovieClip Frame 1
stop();
_root.GameStopped = false;
hauteurMatrice = 10;
largeurMatrice = 8;
_root.GameStopped = false;
j = 0;
while (j < hauteurMatrice) {
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
TamponTotal = eval ("_root." + tampon);
TamponTotal._visible = true;
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
TamponTotal = eval ("_root." + tampon);
TamponTotal._visible = true;
i++;
}
}
j++;
}
Symbol 424 MovieClip Frame 2
_root.GameStopped = true;
hauteurMatrice = 10;
largeurMatrice = 8;
j = 0;
while (j < hauteurMatrice) {
if ((j % 2) == 0) {
i = 0;
while (i < largeurMatrice) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
TamponTotal = eval ("_root." + tampon);
TamponTotal._visible = false;
i++;
}
} else {
i = 0;
while (i < (largeurMatrice - 1)) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
TamponTotal = eval ("_root." + tampon);
TamponTotal._visible = false;
i++;
}
}
j++;
}
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 2
_root.Sechoir.STOPSECHOIRFINJEU = true;
_root.Sechoir.BouleSechoir._visible = false;
play();
Symbol 427 MovieClip Frame 45
stop();
j = 0;
while (j < 10) {
if ((j % 2) == 0) {
i = 0;
while (i < 8) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
} else {
i = 0;
while (i < 7) {
tampon = j;
tampon = (tampon + "a") + i;
tampon = "Boulea" + tampon;
TamponTotal = eval ("_root." + tampon);
removeMovieClip(TamponTotal);
i++;
}
}
j++;
}
_root.gotoAndStop("GameOver");
Symbol 429 MovieClip Frame 1
tmpMusic = new Sound();
tmpMusic.attachSound("FaceOffW");
tmpMusic.start(0, 99999);
stop();
Symbol 429 MovieClip Frame 5
tmpMusic.stop();
Symbol 436 Button
on (release) {
_root.LevelKontroller.DEBUTCHARGEMENTJEU = true;
gotoAndPlay ("Level");
}
Symbol 462 Button
on (release) {
_root.LevelKontroller.TimerHelpFin = getTimer();
_root.LevelKontroller.SortieHelp = true;
gotoAndStop (2);
}
Symbol 468 Button
on (release) {
_root.LevelKontroller.TimerHelpFin = getTimer();
_root.LevelKontroller.SortieHelp = true;
stopAllSounds();
gotoAndStop (2);
}