Frame 1
System.security.allowDomain("dev.www2.warnerbros.com");
System.security.allowDomain("preview.www2.warnerbros.com");
System.security.allowDomain("www2.warnerbros.com");
Challenge = false;
_focusrect = false;
ifFrameLoaded (552) {
gotoAndStop (3);
}
Frame 2
stop();
Instance of Symbol 41 MovieClip "LoadBar" in Frame 2
onClipEvent (load) {
var TotalLoad = 1494984;
}
onClipEvent (enterFrame) {
var TempLoad = _root.getBytesLoaded();
var Pourcent = ((TempLoad / TotalLoad) * 100);
Pourcent = Math.round(Pourcent);
if (getProperty("_root.LoadBar", _currentframe) < 100) {
_root.LoadBar.gotoAndStop(Pourcent);
}
ifFrameLoaded (31) {
if (getProperty("_root.InsButton", _currentframe) < 3) {
_root.InsButton.play();
}
}
}
Frame 3
stop();
Frame 9
stop();
Frame 13
stop();
Frame 22
stop();
Frame 32
gotoAndPlay (69);
Frame 38
play();
Frame 68
gotoAndStop (436);
Frame 69
g_episode_name = "scooby_episode_4";
Frame 380
loadVariablesNum (/:TrackingUrl add "?episode=4&stage=1", 0);
Frame 381
if (/:Challenge == true) {
loadMovie ("/sd_brand/med/timer/timerstart.swf", "MovieTimer");
stop();
}
Instance of Symbol 488 MovieClip "Fonct" in Frame 382
onClipEvent (load) {
ChangeBaril = function () {
_root.Samy._x = _root.Ss._x;
_root.Samy._y = _root.Ss._y;
Set("/Vars:EtatSs", "PasLa");
Set("/Vars:EtatSamy", "Idle");
Set("/Vars:PersActif", "Samy");
_root.Ss.Obj.gotoAndStop("PasLa");
_root.Samy.Obj.gotoAndStop("Idle");
};
Math.roundTo = function (num, dp) {
var d = Math.pow(10, dp);
return(Math.round(num * (d + 1E-8)) / d);
};
UseBad = function (Qui) {
Son = random(5);
if ((Son == 0) or (Son == 1)) {
} else {
if (Son == 2) {
Set("/Vars:Dialog", "NeedSomeElse");
} else if (Son == 3) {
Set("/Vars:Dialog", "NotThatWay");
} else {
Set("/Vars:Dialog", "NoUse");
}
Set("/Vars:FinMove", "Parle");
_root.Fonct.MoveAuto(Qui);
}
};
IniTab = function (PosX, PosY, Dir, Niveau) {
Set("/Vars:PersActif", "Ss");
Set("/Vars:SsX", PosX);
Set("/Vars:SsY", PosY);
Set("/Vars:EtatSs", "Idle");
Set("/Vars:EtatSamy", "PasLa");
Set("/Vars:EtatScooby", "PasLa");
Set("/Vars:DirSs", Dir);
Set("/Vars:NiveauScooby", Niveau);
Set("/Vars:NiveauSamy", Niveau);
Set("/Vars:NiveauSs", Niveau);
i = 0;
i = 0;
while (i < _root.Vars:TabAgpNom.length) {
Set("/Vars:" + /Vars:TabAgpNom[i], 1);
i++;
}
Set("/Vars:TabAgpNom", new Array());
Set("/Vars:FinMove", "");
Set("/Vars:Pause", false);
Set("/Vars:LostControl", false);
Set("/Vars:AgpActif", "");
Set("/Vars:Haut", false);
Set("/Vars:Bas", false);
Set("/Vars:Gauche", false);
Set("/Vars:Droite", false);
if (/Vars:KeepInv == false) {
Set("/Vars:ObjSelect", 1);
Set("/Vars:InvArray", "1");
_root.Interface.Inv.ObjSelect.gotoAndStop(1);
Set("/Vars:KeepInv", false);
}
};
PersSplit = function (PersSplit, PersResult1, PersResult2) {
PtPers1 = new object();
PtPers1.x = 0;
PtPers1.y = 0;
Nom = "Feet" + PersResult1;
_root[PersSplit][Nom].localToGlobal(PtPers1);
_root[PersResult1]._x = PtPers1.x;
_root[PersResult1]._y = PtPers1.y;
PtPers2 = new object();
PtPers2.x = 0;
PtPers2.y = 0;
Nom = "Feet" + PersResult2;
_root[PersSplit][Nom].localToGlobal(PtPers2);
_root[PersResult2]._x = PtPers2.x;
_root[PersResult2]._y = PtPers2.y;
Set("/Vars:Niveau" + PersResult1, eval ("/Vars:Niveau" + PersSplit));
Set("/Vars:Niveau" + PersResult2, eval ("/Vars:Niveau" + PersSplit));
Set("/Vars:PersActif", PersResult1);
Set("/Vars:Dir" + PersResult1, eval ("/Vars:Dir" + PersSplit));
Set("/Vars:Dir" + PersResult2, eval ("/Vars:Dir" + PersSplit));
Set("/Vars:Etat" + PersResult1, "Idle");
Set("/Vars:Etat" + PersResult2, "Idle");
Set("/Vars:Etat" + PersSplit, "PasLa");
tellTarget ("_root." + PersResult1) {
gotoAndStop(eval ("/Vars:Dir" + PersSplit));
};
tellTarget ("_root." + PersResult2) {
gotoAndStop(eval ("/Vars:Dir" + PersSplit));
};
_root.Samy.swapDepths(/Vars:NiveauSamy - 20);
_root.Scooby.swapDepths(/Vars:NiveauScooby - 10);
_root.Ss.swapDepths(/Vars:NiveauSs - 30);
Set("/Vars:VoirPrit", true);
};
MoveAuto = function (Perso) {
Set("/Vars:LostControl", true);
Set("/Vars:MoveAuto", true);
StartX = _root[Perso]._x;
StartY = _root[Perso]._y;
a = /Vars:DestX - StartX;
b = StartY - /Vars:DestY;
c = Math.sqrt((a * a) + (b * b));
alpha = Math.acos(a / c);
alpha = (alpha * 180) / Math.PI;
if (b < 0) {
alpha = 360 - alpha;
}
if ((alpha < 10) or (alpha > 350)) {
Set("/Vars:Dir" + Perso, 8);
} else if (alpha < 80) {
Set("/Vars:Dir" + Perso, 7);
} else if (alpha < 100) {
Set("/Vars:Dir" + Perso, 6);
} else if (alpha < 170) {
Set("/Vars:Dir" + Perso, 5);
} else if (alpha < 190) {
Set("/Vars:Dir" + Perso, 4);
} else if (alpha < 260) {
Set("/Vars:Dir" + Perso, 3);
} else if (alpha < 280) {
Set("/Vars:Dir" + Perso, 2);
} else if (alpha <= 350) {
Set("/Vars:Dir" + Perso, 1);
}
Set("/Vars:Etat" + Perso, "Marche");
tellTarget ("_root." + Perso) {
gotoAndStop(eval ("/Vars:Dir" + Perso));
};
tellTarget (("_root." + Perso) + ".Obj") {
gotoAndStop ("Marche");
};
alpha = (alpha * Math.PI) / 180;
Set("/Vars:MoveXAgp", /Vars:MoveDiag * Math.cos(alpha));
Set("/Vars:MoveYAgp", Math.sqrt((/Vars:MoveDiag * /Vars:MoveDiag) - (/Vars:MoveXAgp * /Vars:MoveXAgp)));
if (/Vars:DestY < StartY) {
Set("/Vars:MoveYAgp", /Vars:MoveYAgp * -1);
}
Set("/Vars:MoveXAgp", Math.roundTo(/Vars:MoveXAgp, 2));
Set("/Vars:MoveYAgp", Math.roundTo(/Vars:MoveYAgp, 2));
};
MoveAutoPeur = function (Perso) {
Set("/Vars:LostControl", true);
Set("/Vars:MoveAuto", true);
StartX = _root[Perso]._x;
StartY = _root[Perso]._y;
a = /Vars:DestX - StartX;
b = StartY - /Vars:DestY;
c = Math.sqrt((a * a) + (b * b));
alpha = Math.acos(a / c);
alpha = (alpha * 180) / Math.PI;
if (b < 0) {
alpha = 360 - alpha;
}
Set("/Vars:Dir" + Perso, 1);
tellTarget ("_root." + Perso) {
gotoAndStop (1);
};
Set("/Vars:Etat" + Perso, "Peur");
tellTarget (("_root." + Perso) + ".Obj") {
gotoAndStop ("Peur");
};
alpha = (alpha * Math.PI) / 180;
Set("/Vars:MoveXAgp", /Vars:MoveDiag * Math.cos(alpha));
Set("/Vars:MoveYAgp", Math.sqrt((/Vars:MoveDiag * /Vars:MoveDiag) - (/Vars:MoveXAgp * /Vars:MoveXAgp)));
if (/Vars:DestY < StartY) {
Set("/Vars:MoveYAgp", /Vars:MoveYAgp * -1);
}
Set("/Vars:MoveXAgp", Math.roundTo(/Vars:MoveXAgp, 2));
Set("/Vars:MoveYAgp", Math.roundTo(/Vars:MoveYAgp, 2));
};
SetMoves = function (Ref) {
Set("/Vars:ScalePers", Ref / 100);
Set("/Vars:MoveDiag", /Vars:MoveDiagRef * /Vars:ScalePers);
Set("/Vars:MoveXdr", /Vars:DiagX * /Vars:ScalePers);
Set("/Vars:MoveYdr", /Vars:DiagY * /Vars:ScalePers);
Set("/Vars:MoveXd", 0);
Set("/Vars:MoveYd", /Vars:MoveY * /Vars:ScalePers);
Set("/Vars:MoveXdl", (/Vars:DiagX * /Vars:ScalePers) * -1);
Set("/Vars:MoveYdl", /Vars:DiagY * /Vars:ScalePers);
Set("/Vars:MoveXl", (/Vars:MoveX * /Vars:ScalePers) * -1);
Set("/Vars:MoveYl", 0);
Set("/Vars:MoveXul", (/Vars:DiagX * /Vars:ScalePers) * -1);
Set("/Vars:MoveYul", (/Vars:DiagY * /Vars:ScalePers) * -1);
Set("/Vars:MoveXu", 0);
Set("/Vars:MoveYu", (/Vars:MoveY * /Vars:ScalePers) * -1);
Set("/Vars:MoveXur", /Vars:DiagX * /Vars:ScalePers);
Set("/Vars:MoveYur", (/Vars:DiagY * /Vars:ScalePers) * -1);
Set("/Vars:MoveXr", /Vars:MoveX * /Vars:ScalePers);
Set("/Vars:MoveYr", 0);
};
Save = function () {
Set("/Vars:SortTab", false);
Set("/Vars:SsX", _root.Ss._x);
Set("/Vars:SsY", _root.Ss._y);
Set("/Vars:SamyX", _root.Samy._x);
Set("/Vars:SamyY", _root.Samy._y);
Set("/Vars:ScoobyX", _root.Scooby._x);
Set("/Vars:ScoobyY", _root.Scooby._y);
Set("/Vars:ScaleIni", _root.Ss._xscale);
i = 0;
while (i < _root.Vars:TabAgpNom.length) {
Set("/Vars:Fr" + _root.Vars:TabAgpNom[i], getProperty("_root." + _root.Vars:TabAgpNom[i], _currentframe));
i++;
}
ObjSave = SharedObject.getLocal("ScoobEpi4");
ObjSave.data.Valeurs = _root.Vars;
ObjSave.flush();
delete ObjSave;
};
Load = function () {
ObjSave = SharedObject.getLocal("ScoobEpi4");
_root.Vars = ObjSave.data.Valeurs;
delete ObjSave;
Set("/Vars:ObjRemove", new Array());
Set("/Vars:TabAgpNom", new Array());
Set("/Vars:Haut", false);
Set("/Vars:Bas", false);
Set("/Vars:Gauche", false);
Set("/Vars:Droite", false);
tellTarget (_root) {
gotoAndStop(/Vars:Tableau);
};
tellTarget (_root.SaveLoad) {
gotoAndPlay ("FinLoad");
};
Set("/Vars:Load", true);
};
DeleteObj = function () {
i = 0;
i = 0;
while (i < _root.Vars:ObjRemove.length) {
_root[/Vars:ObjRemove[i]].removeMovieClip();
i++;
}
Set("/Vars:ObjRemove", new Array());
};
AddInv = function (NoObj, NomVar) {
Set("_root.Vars:" + NomVar, true);
Set("/Vars:InvArray", /Vars:InvArray + NoObj);
Set("/Vars:PtInvArray", /Vars:InvArray.length - 1);
Set("/Vars:ObjSelect", /Vars:InvArray.charAt(/Vars:PtInvArray));
tellTarget (_root.Interface.Inv.ObjSelect) {
gotoAndStop(/Vars:InvArray.charAt(/Vars:PtInvArray));
};
};
RetourPers = function (PersMove, PersDest, PersMixt) {
Set("/Vars:Dir" + PersMixt, eval ("/Vars:Dir" + PersDest));
tellTarget (_root[PersMixt]) {
gotoAndStop(eval ("/Vars:Dir" + PersMixt));
};
FeetPersDest = "Feet" + PersDest;
_root[PersMixt]._x = _root[PersDest]._x - (_root[PersMixt][FeetPersDest]._x * /Vars:ScalePers);
_root[PersMixt]._y = _root[PersDest]._y - (_root[PersMixt][FeetPersDest]._y * /Vars:ScalePers);
PtPers = new object();
PtPers.x = 0;
PtPers.y = 0;
Nom = "Feet" + PersMove;
_root[PersMixt][Nom].localToGlobal(PtPers);
Set("/Vars:DestX", PtPers.x);
Set("/Vars:DestY", PtPers.y);
Set("/Vars:FinMove", "MergePers");
Set("/Vars:PersActif", PersMove);
_root.Fonct.MoveAuto(PersMove);
};
RemoveObj = function (Item) {
i = 0;
InvTemp = "";
while (i < /Vars:InvArray.length) {
if (i != Item) {
InvTemp = InvTemp + /Vars:InvArray.charAt(i);
}
i = i + 1;
}
Set("/Vars:InvArray", "");
Set("/Vars:InvArray", InvTemp);
Set("/Vars:ObjSelect", 1);
Set("/Vars:PtInvArray", 0);
tellTarget (_root.Interface.Inv.ObjSelect) {
gotoAndStop (1);
};
};
SortCollider = function () {
VarieX = 0;
VarieY = 0;
i = 5;
while ((VarieX == 0) and (VarieY == 0)) {
if (!_root.Collider.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y - (i * /Vars:ScalePers), true)) {
VarieX = 0;
VarieY = -10 * /Vars:ScalePers;
} else if (!_root.Collider.hitTest(_root[/Vars:PersActif]._x - (i * /Vars:ScalePers), _root[/Vars:PersActif]._y - (i * /Vars:ScalePers), true)) {
VarieX = -10 * /Vars:ScalePers;
VarieY = -10 * /Vars:ScalePers;
} else if (!_root.Collider.hitTest(_root[/Vars:PersActif]._x - (i * /Vars:ScalePers), _root[/Vars:PersActif]._y, true)) {
VarieX = -10 * /Vars:ScalePers;
VarieY = 0;
} else if (!_root.Collider.hitTest(_root[/Vars:PersActif]._x - (i * /Vars:ScalePers), _root[/Vars:PersActif]._y + (i * /Vars:ScalePers), true)) {
VarieX = -10 * /Vars:ScalePers;
VarieY = 10 * /Vars:ScalePers;
} else if (!_root.Collider.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y + (i * /Vars:ScalePers), true)) {
VarieX = 0;
VarieY = 10 * /Vars:ScalePers;
} else if (!_root.Collider.hitTest(_root[/Vars:PersActif]._x + (i * /Vars:ScalePers), _root[/Vars:PersActif]._y + (i * /Vars:ScalePers), true)) {
VarieX = 10 * /Vars:ScalePers;
VarieY = 10 * /Vars:ScalePers;
} else if (!_root.Collider.hitTest(_root[/Vars:PersActif]._x + (i * /Vars:ScalePers), _root[/Vars:PersActif]._y, true)) {
VarieX = 10 * /Vars:ScalePers;
VarieY = 0;
} else if (!_root.Collider.hitTest(_root[/Vars:PersActif]._x + (i * /Vars:ScalePers), _root[/Vars:PersActif]._y - (i * /Vars:ScalePers), true)) {
VarieX = 10 * /Vars:ScalePers;
VarieY = -10 * /Vars:ScalePers;
}
i = i + 5;
}
Set("/Vars:DestX", _root[/Vars:PersActif]._x + VarieX);
Set("/Vars:DestY", _root[/Vars:PersActif]._y + VarieY);
Set("/Vars:FinMove", "FinMarche");
MoveAuto(/Vars:PersActif);
};
FinAgp = function () {
Set("/Vars:Etat" + /Vars:PersActif, "Idle");
Set("/Vars:AgpActif", "");
Set("/Vars:VoirPrit", true);
Set("/Vars:LostControl", false);
};
MoveFish = function () {
var StartXFish = _root.Fish._x;
var StartYFish = _root.Fish._y;
Set("/Vars:MoveXFish", (/Vars:FDestX - StartXFish) / _root.Vars:NbMoveFish);
Set("/Vars:MoveYFish", (/Vars:FDestY - StartYFish) / _root.Vars:NbMoveFish);
Set("/Vars:MoveXFish", Math.roundTo(/Vars:MoveXFish, 2));
Set("/Vars:MoveYFish", Math.roundTo(/Vars:MoveYFish, 2));
};
MoveBoss = function (NomBoss) {
BStartX = _root[NomBoss]._x;
BStartY = _root[NomBoss]._y;
d = /Vars:BDestX - BStartX;
e = BStartY - /Vars:BDestY;
f = Math.sqrt((d * d) + (e * e));
Balpha = Math.acos(d / f);
Balpha = (Balpha * 180) / Math.PI;
if (e < 0) {
Balpha = 360 - Balpha;
}
Balpha = (Balpha * Math.PI) / 180;
Set("/Vars:MoveXBoss", /Vars:MoveDiagB * Math.cos(Balpha));
Set("/Vars:MoveYBoss", Math.sqrt((/Vars:MoveDiagB * /Vars:MoveDiagB) - (/Vars:MoveXBoss * /Vars:MoveXBoss)));
if (/Vars:BDestY < BStartY) {
Set("/Vars:MoveYBoss", /Vars:MoveYBoss * -1);
}
Set("/Vars:MoveXBoss", /Vars:MoveXBoss * /Vars:PercentMoveB);
Set("/Vars:MoveYBoss", /Vars:MoveYBoss * /Vars:PercentMoveB);
Set("/Vars:MoveXBoss", Math.roundTo(/Vars:MoveXBoss, 2));
Set("/Vars:MoveYBoss", Math.roundTo(/Vars:MoveYBoss, 2));
};
}
Instance of Symbol 493 MovieClip "Mus" in Frame 383
onClipEvent (load) {
Mus = new Sound(this);
this.Fade = 10;
this.VolDest = 0;
}
Instance of Symbol 488 MovieClip "IniVar" in Frame 383
onClipEvent (load) {
ObjVars = function () {
this.Saving = false;
this.Mort = false;
this.ObjRemove = new Array();
this.TabAgpNom = new Array();
this.InvArray = "1";
this.From = "Debut";
this.TempsIdle = 950;
this.WaitFear = 0;
this.Fear = 0;
this.DegreFear = 0;
this.Peur = false;
this.Spin = false;
this.Tableau = "Tab1";
this.Pause = false;
this.SortTab = false;
this.LostControl = false;
this.MoveAuto = false;
this.VoirPrit = false;
this.StartPlay = 1;
this.EtatGen = "Idle";
this.DirGen = "d";
this.Haut = false;
this.Bas = false;
this.Droite = false;
this.Gauche = false;
this.PersActif = "Ss";
this.DestX = 0;
this.DestY = 0;
this.FinAgpX = 0;
this.FinAgpY = 0;
this.TempDestX = 0;
this.TempDestY = 0;
this.TempDirFin = 1;
this.TempPers = "Samy";
this.DirFin = 1;
this.MoveXAgp = 0;
this.MoveYAgp = 0;
this.FinMove = "Agp";
this.Dialog = "";
this.VDialog = "";
this.PtObjDel = 0;
this.PathPlace = "";
this.FramePlace = 1;
this.VarChange = "";
this.VarValue = false;
this.InvOuvert = false;
this.HelpOuvert = false;
this.InvCle = false;
this.InvHache = false;
this.InvRame = false;
this.InvCorde = false;
this.InvBaril = false;
this.InvTorche = false;
this.InvFilet = false;
this.InvFlag = false;
this.PtInvArray = 0;
this.ObjSelect = 1;
this.KeepInv = false;
this.TrappeOpen = false;
this.PanierBas = true;
this.CanonTombe = false;
this.CanonAttache = false;
this.ScoobPanier = false;
this.CanonEau = false;
this.CanonPlonge = false;
this.Corde1Coupe = false;
this.HachePos2 = false;
this.HachePos1 = false;
this.SamyGrimpe = false;
this.CleSol = false;
this.WaitRame = false;
this.Rats1 = false;
this.Rats2 = false;
this.Rats3 = false;
this.Rats4 = false;
this.BouletTombe = false;
this.WaitRats = 0;
this.PeurRats = false;
this.BarilX = 532;
this.BarilY = -53;
this.Poudre = false;
this.Boom = false;
this.BossActif = "Boss1";
this.WaitHench1 = 0;
this.BossWait = 300;
this.Boss1Grille = false;
this.Boss2Toit = false;
this.BossPause = false;
this.Boss3Filet = false;
this.CanonTourne = false;
this.FiletCanon = false;
this.DepthFlag = 71;
this.EtatFlag = 1;
this.FlagX = -360;
this.FlagY = 275;
this.BossStop = false;
this.EtatFlag = 1;
this.Pers1 = "Samy";
this.DirSamy = 1;
this.NiveauSamy = 100;
this.EtatSamy = "Idle";
this.Pers2 = "Scooby";
this.DirScooby = 1;
this.NiveauScooby = 100;
this.EtatScooby = "PasLa";
this.Pers3 = "Ss";
this.DirSs = 1;
this.NiveauSs = 300;
this.EtatSs = "PasLa";
this.SsX = 100;
this.SsY = 227;
this.SamyX = -60;
this.SamyY = 220;
this.ScoobyX = -120;
this.ScoobyY = 220;
this.MoveX = 10;
this.MoveY = 8;
this.RatioDiag = 0.666666666666667;
this.MoveDiagRef = Math.sqrt((this.MoveX * this.MoveX) + (this.MoveY * this.MoveY));
this.MoveDiagRef = Math.roundTo(this.MoveDiagRef, 2);
this.MoveDiag = 0;
this.AngDiag = Math.acos(this.MoveX / this.MoveDiagRef);
this.AngDiag = (this.AngDiag * 180) / Math.PI;
this.AngDiag = Math.roundTo(this.AngDiag, 2);
this.DiagX = Math.round(this.MoveX * this.RatioDiag);
this.DiagY = Math.round(this.MoveY * this.RatioDiag);
this.ScalePers = 100;
this.MoveXdr = 0;
this.MoveYdr = 0;
this.MoveXd = 0;
this.MoveYd = 0;
this.MoveXdl = 0;
this.MoveYdl = 0;
this.MoveXl = 0;
this.MoveYl = 0;
this.MoveXul = 0;
this.MoveYul = 0;
this.MoveXu = 0;
this.MoveYu = 0;
this.MoveXur = 0;
this.MoveYur = 0;
this.MoveXr = 0;
this.MoveYr = 0;
this.EtatBoss = "Idle";
this.DirBoss = "lu";
this.DirBFinIdle = "rd";
this.SensBoss = "Va";
this.BossX = -100;
this.BossY = -100;
this.BScale = 0.417;
this.BDestX = 0;
this.BDestY = 0;
this.MoveXBoss = 0;
this.MoveYBoss = 0;
this.PtBoss = 1;
this.NiveauBoss = 800;
this.PercentMoveB = 0.5;
this.MoveDiagB = 8.83;
this.Sec = 0;
this.Min = 0;
this.Heure = 0;
};
_root.Vars = new ObjVars();
}
Instance of Symbol 488 MovieClip "Txt" in Frame 383
onClipEvent (load) {
this.NomItem = new Array("Axe", "Key", "Oar", "Rope", "Powder keg", "Torch", "Net", "Pirate flag");
}
Instance of Symbol 519 MovieClip "Voix" in Frame 383
onClipEvent (load) {
Parle = false;
Locked = false;
cle = false;
Meche = false;
Grille = false;
TasBaril = false;
Cale = false;
}
Instance of Symbol 600 MovieClip "Interface" in Frame 385
onClipEvent (load) {
this.swapDepths(500000);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 604 MovieClip "Pause" in Frame 385
onClipEvent (load) {
this.swapDepths(500100);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 631 MovieClip "SaveLoad" in Frame 385
onClipEvent (load) {
this.swapDepths(1000000);
_root.Vars:ObjRemove.push(this._name);
}
Frame 387
_root.Fonct.IniTab(290, 240, 1, 700);
Frame 388
Set("/Vars:Tableau", "Tab1");
_root.Fonct.SetMoves(47.4);
Instance of Symbol 661 MovieClip "Poteau" in Frame 388
onClipEvent (load) {
this.swapDepths(100);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 663 MovieClip "Corde1" in Frame 388
onClipEvent (load) {
this.swapDepths(500);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 665 MovieClip "Poteau2" in Frame 388
onClipEvent (load) {
this.swapDepths(800);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 696 MovieClip "Rebord1" in Frame 388
onClipEvent (load) {
this.swapDepths(600);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 698 MovieClip "Rampe2" in Frame 388
onClipEvent (load) {
this.swapDepths(300);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 700 MovieClip "Rampe1" in Frame 388
onClipEvent (load) {
this.swapDepths(200);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 702 MovieClip "Filet" in Frame 388
onClipEvent (load) {
this.swapDepths(1100);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 704 MovieClip "Rebord2" in Frame 388
onClipEvent (load) {
this.swapDepths(1000);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 720 MovieClip "FermeTab" in Frame 388
onClipEvent (load) {
this.swapDepths(600000);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 822 MovieClip "AgpCale" in Frame 388
onClipEvent (load) {
this.swapDepths(301);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1017 MovieClip "AgpPanier" in Frame 388
onClipEvent (load) {
this.swapDepths(900);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1160 MovieClip "AgpCordeCanon" in Frame 388
onClipEvent (load) {
this.swapDepths(999);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1479 MovieClip "AgpCanon" in Frame 388
onClipEvent (load) {
this.swapDepths(700);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1491 MovieClip "AgpCorde" in Frame 388
onClipEvent (load) {
this.swapDepths(302);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1507 MovieClip "AgpCoupe1" in Frame 388
onClipEvent (load) {
this.swapDepths(201);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1619 MovieClip "AgpCleRame" in Frame 388
onClipEvent (load) {
this.swapDepths(501);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1639 MovieClip "AgpDown" in Frame 388
onClipEvent (load) {
this.swapDepths(502);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1671 MovieClip "AgpEscalier" in Frame 388
onClipEvent (load) {
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1673 MovieClip "Hache2" in Frame 388
onClipEvent (load) {
this.swapDepths(202);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 1679 MovieClip "AgpDown2" in Frame 388
onClipEvent (load) {
this.swapDepths(101);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1753 MovieClip "AgpBoom" in Frame 388
onClipEvent (load) {
this.swapDepths(400);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2078 MovieClip "Ss" in Frame 388
onClipEvent (load) {
this.swapDepths(70);
_root.Vars:ObjRemove.push(this._name);
this._x = /Vars:SsX;
this._y = /Vars:SsY;
this.gotoAndStop(/Vars:DirSs);
this.Obj.gotoAndStop(/Vars:EtatSs);
}
Instance of Symbol 2084 MovieClip "Samy" in Frame 388
onClipEvent (load) {
this.swapDepths(90);
_root.Vars:ObjRemove.push(this._name);
this._x = /Vars:SamyX;
this._y = /Vars:SamyY;
this.gotoAndStop(/Vars:DirSamy);
this.Obj.gotoAndStop(/Vars:EtatSamy);
}
Instance of Symbol 2090 MovieClip "Scooby" in Frame 388
onClipEvent (load) {
this.swapDepths(80);
_root.Vars:ObjRemove.push(this._name);
this._x = /Vars:ScoobyX;
this._y = /Vars:ScoobyY;
this.gotoAndStop(/Vars:DirScooby);
this.Obj.gotoAndStop(/Vars:EtatScooby);
}
Frame 389
stop();
Instance of Symbol 2092 MovieClip "HitSautCorde" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2106 MovieClip "Collider" in Frame 389
onClipEvent (load) {
}
Instance of Symbol 2107 MovieClip "Control" in Frame 389
onClipEvent (enterFrame) {
XPers = _root[/Vars:PersActif]._x;
YPers = _root[/Vars:PersActif]._y;
if (_root.Hito10.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 1000);
} else if (_root.Hito1.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 100);
} else if (_root.Hito2.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 200);
} else if (_root.Hito3.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 300);
} else if (_root.Hito4.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 400);
} else if (_root.Hito5.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 500);
} else if (_root.Hito6.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 600);
} else if (_root.Hito7.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 700);
} else if (_root.Hito8.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 800);
} else if (_root.Hito9.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 900);
} else {
Set("/Vars:Niveau" + /Vars:PersActif, 1000);
}
if (/Vars:PersActif ne "Ss") {
if (getProperty("_root.Samy", _y) < getProperty("_root.Scooby", _y)) {
_root.Samy.swapDepths(/Vars:NiveauSamy - 20);
_root.Scooby.swapDepths(/Vars:NiveauScooby - 10);
} else {
_root.Samy.swapDepths(/Vars:NiveauSamy - 10);
_root.Scooby.swapDepths(/Vars:NiveauScooby - 20);
}
} else {
_root.Ss.swapDepths(/Vars:NiveauSs - 30);
}
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (((/Vars:LostControl == false) and (/Vars:MoveAuto == false)) and (/Vars:VoirPrit == true)) {
if (/Vars:PersActif eq "Ss") {
setProperty("_root.Collider.CachePers", _x , -100);
setProperty("_root.Collider.CachePers", _y , -100);
} else if (/Vars:PersActif eq "Samy") {
if (/Vars:EtatScooby eq "PasLa") {
setProperty("_root.Collider.CachePers", _x , -100);
setProperty("_root.Collider.CachePers", _y , -100);
} else {
setProperty("_root.Collider.CachePers", _x , getProperty("_root.Scooby", _x));
setProperty("_root.Collider.CachePers", _y , getProperty("_root.Scooby", _y));
}
} else if (/Vars:EtatSamy eq "PasLa") {
setProperty("_root.Collider.CachePers", _x , -100);
setProperty("_root.Collider.CachePers", _y , -100);
} else {
setProperty("_root.Collider.CachePers", _x , getProperty("_root.Samy", _x));
setProperty("_root.Collider.CachePers", _y , getProperty("_root.Samy", _y));
}
if (_root.Collider.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y, true)) {
_root.Fonct.SortCollider();
}
Set("/Vars:VoirPrit", false);
}
if (/Vars:LostControl == false) {
if (Key.isDown(32)) {
if (/Vars:PersActif eq "Ss") {
if (_root.HitHache.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:InvHache == false)) {
_root.Fonct.AddInv(2, "InvHache");
_root.SonGet.play();
tellTarget (_root.Hache) {
nextFrame();
};
}
if ((_root.HitCle.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:InvCle == false)) and (/Vars:CleSol == true)) {
_root.Fonct.AddInv(3, "InvCle");
_root.SonGet.play();
tellTarget (_root.CleSol) {
nextFrame();
};
}
if (_root.HitCoupeCanon.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:HachePos1 == true)) {
Set("/Vars:HachePos1", false);
_root.Fonct.AddInv(2, "InvHache");
_root.SonGet.play();
tellTarget (_root.HachePlante) {
nextFrame();
};
}
if (_root.HitCordeHaut.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpCorde");
Set("/Vars:DestX", 505.1);
Set("/Vars:DestY", 125.5);
Set("/Vars:FinAgpX", 531.2);
Set("/Vars:FinAgpY", 357.3);
Set("/Vars:DirFin", 5);
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("ScoobWait");
}
_root.Fonct.PersSplit("Ss", "Samy", "Scooby");
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
}
if (((_root.HitPousseCanon.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Voix:Parle == false)) and (/Vars:CanonEau == false)) and (/Vars:ScoobPanier == false)) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("NotNow");
}
if (_root.HitSautCorde.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:Corde1Coupe == true)) {
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpCleRame");
Set("/Vars:DestX", 397.5);
Set("/Vars:DestY", 97.8);
Set("/Vars:FinAgpX", 301);
Set("/Vars:FinAgpY", 281.8);
Set("/Vars:DirFin", 3);
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("ScoobWait");
}
_root.Fonct.PersSplit("Ss", "Samy", "Scooby");
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
}
if (_root.HitCoupeCorde1.hitTest(_root.Ss._x, _root.Ss._y, true)) {
if ((/Vars:ObjSelect == 2) and (/Vars:Corde1Coupe == false)) {
Set("/Vars:PtObjDel", /Vars:PtInvArray);
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpCoupe1");
Set("/Vars:TempDestX", 418.9);
Set("/Vars:TempDestY", 91);
Set("/Vars:TempDirFin", 4);
Set("/Vars:DestX", 373);
Set("/Vars:DestY", 54);
Set("/Vars:FinAgpX", 418.9);
Set("/Vars:FinAgpY", 91);
Set("/Vars:DirFin", 1);
Set("/Vars:TempPers", "Samy");
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("ScoobWait");
}
_root.Fonct.PersSplit("Ss", "Scooby", "Samy");
Set("/Vars:FinMove", "Tasse");
_root.Fonct.MoveAuto("Scooby");
} else if (/Vars:HachePos2 == true) {
Set("/Vars:HachePos2", false);
_root.Fonct.AddInv(2, "InvHache");
_root.SonGet.play();
tellTarget (_root.Hache2) {
nextFrame();
};
}
}
if ((((_root.HitClimbPanier.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:PanierBas == true)) and (/Vars:ScoobPanier == false)) and (/Vars:InvCle == false)) and (/Vars:CleSol == false)) {
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpPanier");
Set("/Vars:DestX", 202.7);
Set("/Vars:DestY", 350.8);
Set("/Vars:FinAgpX", 202.7);
Set("/Vars:FinAgpY", 350.8);
Set("/Vars:DirFin", 5);
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("ScoobWait");
}
_root.Fonct.PersSplit("Ss", "Scooby", "Samy");
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Scooby");
}
if (_root.HitCordeCanon.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:CanonAttache == false)) {
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpCordeCanon");
Set("/Vars:TempDestX", 270.1);
Set("/Vars:TempDestY", 380.9);
Set("/Vars:TempDirFin", 6);
Set("/Vars:DestX", 213);
Set("/Vars:DestY", 367);
Set("/Vars:FinAgpX", 274.6);
Set("/Vars:FinAgpY", 359.8);
Set("/Vars:DirFin", 1);
Set("/Vars:TempPers", "Samy");
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("ScoobWait");
}
_root.Fonct.PersSplit("Ss", "Scooby", "Samy");
Set("/Vars:FinMove", "Tasse");
_root.Fonct.MoveAuto("Scooby");
}
if (_root.HitEscalierBas.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpEscalier");
Set("/Vars:DestX", 229.5);
Set("/Vars:DestY", 147.8);
Set("/Vars:FinAgpX", 284.6);
Set("/Vars:FinAgpY", 55.5);
Set("/Vars:DirFin", 7);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Ss");
}
if (_root.HitEscalierHaut.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:StartPlay", 16);
Set("/Vars:AgpActif", "AgpEscalier");
Set("/Vars:DestX", 279.4);
Set("/Vars:DestY", 49.5);
Set("/Vars:FinAgpX", 217.8);
Set("/Vars:FinAgpY", 142.9);
Set("/Vars:DirFin", 3);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Ss");
}
if (_root.HitCale.hitTest(_root.Ss._x, _root.Ss._y, true)) {
if (/Vars:ObjSelect == 3) {
if (/Vars:CleSol == true) {
loadVariablesNum (/:TrackingUrl add "?episode=4&stage=2", 0);
} else {
loadVariablesNum (/:TrackingUrl add "?episode=4&stage=3", 0);
}
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpCale");
Set("/Vars:DestX", 310.5);
Set("/Vars:DestY", 185);
Set("/Vars:FinAgpX", 310.5);
Set("/Vars:FinAgpY", 185);
Set("/Vars:DirFin", 7);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Ss");
} else if ((/Voix:Parle == false) and (/Voix:Locked == false)) {
Set("/Vars:Dialog", "Locked");
Set("/Vars:VDialog", "Locked");
Set("/Vars:DestX", 310.5);
Set("/Vars:DestY", 185);
Set("/Vars:DirFin", 7);
Set("/Vars:FinMove", "Parle");
_root.Fonct.MoveAuto("Ss");
}
}
if ((((_root.HitVoitCle.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:InvCle == false)) and (/Vars:CleSol == false)) and (/Voix:Cle == false)) and (/Voix:Parle == false)) {
Set("/Voix:Parle", true);
Set("/Voix:Cle", true);
_root.Voix.gotoAndPlay("HowKey");
}
if (_root.HitGotFlag.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Voix:Parle == false)) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("NoUse");
}
if (_root.HitGotFilet.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Voix:Parle == false)) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("ScNope");
}
if (_root.HitGotBaril.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Voix:Parle == false)) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("No");
}
if (_root.HitTorche.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Voix:Parle == false)) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("No");
}
if ((_root.HitMeche.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Voix:Parle == false)) and (/Voix:TasBaril == false)) {
Set("/Voix:Parle", true);
Set("/Voix:TasBaril", true);
_root.Voix.gotoAndPlay("CantTake");
}
if ((_root.HitGrille.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Voix:Parle == false)) and (/Voix:Grille == false)) {
Set("/Voix:Parle", true);
Set("/Voix:Grille", true);
_root.Voix.gotoAndPlay("NotMove");
}
}
if (/Vars:PersActif eq "Samy") {
if ((_root.HitCle.hitTest(_root.Samy._x, _root.Samy._y, true) and (/Vars:InvCle == false)) and (/Vars:CleSol == true)) {
_root.Fonct.AddInv(3, "InvCle");
_root.SonGet.play();
tellTarget (_root.CleSol) {
nextFrame();
};
}
if (_root.HitCordeBas.hitTest(_root.Samy._x, _root.Samy._y, true)) {
if (/Vars:InvRame == false) {
_root.Fonct.AddInv(4, "InvRame");
_root.SonGet.play();
tellTarget (_root.Rame) {
nextFrame();
};
} else {
Set("/Vars:StartPlay", 41);
Set("/Vars:AgpActif", "AgpCorde");
Set("/Vars:DestX", 531.2);
Set("/Vars:DestY", 357.3);
Set("/Vars:FinAgpX", 505.1);
Set("/Vars:FinAgpY", 125.5);
Set("/Vars:DirFin", 1);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
}
}
if (_root.HitSautCorde.hitTest(_root.Samy._x, _root.Samy._y, true) and (/Vars:Corde1Coupe == true)) {
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpCleRame");
Set("/Vars:DestX", 397.5);
Set("/Vars:DestY", 97.8);
Set("/Vars:FinAgpX", 397.5);
Set("/Vars:FinAgpY", 97.8);
Set("/Vars:DirFin", 3);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
}
if (_root.HitCoupeCorde1.hitTest(_root.Samy._x, _root.Samy._y, true)) {
if ((/Vars:ObjSelect == 2) and (/Vars:Corde1Coupe == false)) {
Set("/Vars:PtObjDel", /Vars:PtInvArray);
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpCoupe1");
Set("/Vars:DestX", 418.9);
Set("/Vars:DestY", 91);
Set("/Vars:FinAgpX", 418.9);
Set("/Vars:FinAgpY", 91);
Set("/Vars:DirFin", 4);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
} else if (/Vars:HachePos2 == true) {
Set("/Vars:HachePos2", false);
_root.Fonct.AddInv(2, "InvHache");
_root.SonGet.play();
tellTarget (_root.Hache2) {
nextFrame();
};
}
}
if (_root.HitCordeHaut.hitTest(_root.Samy._x, _root.Samy._y, true)) {
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpCorde");
Set("/Vars:DestX", 505.1);
Set("/Vars:DestY", 125.5);
Set("/Vars:FinAgpX", 531.2);
Set("/Vars:FinAgpY", 357.3);
Set("/Vars:DirFin", 5);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
}
if (_root.HitCordeCanon.hitTest(_root.Samy._x, _root.Samy._y, true) and (/Vars:CanonAttache == false)) {
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpCordeCanon");
Set("/Vars:DestX", 270.1);
Set("/Vars:DestY", 380.9);
Set("/Vars:FinAgpX", 274.6);
Set("/Vars:FinAgpY", 359.8);
Set("/Vars:DirFin", 6);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
}
if ((_root.HitPousseCanon.hitTest(_root.Samy._x, _root.Samy._y, true) and (/Vars:CanonAttache == true)) and (/Vars:CanonEau == false)) {
Set("/Vars:StartPlay", 3);
Set("/Vars:AgpActif", "AgpCanon");
Set("/Vars:DestX", 274.4);
Set("/Vars:DestY", 333.4);
Set("/Vars:FinAgpX", 274.4);
Set("/Vars:FinAgpY", 333.4);
Set("/Vars:DirFin", 1);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
}
if (_root.HitEscalierBas.hitTest(_root.Samy._x, _root.Samy._y, true)) {
Set("/Vars:StartPlay", 30);
Set("/Vars:AgpActif", "AgpEscalier");
Set("/Vars:DestX", 229.8);
Set("/Vars:DestY", 140.9);
Set("/Vars:FinAgpX", 280.3);
Set("/Vars:FinAgpY", 55.1);
Set("/Vars:DirFin", 7);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
}
if (_root.HitEscalierHaut.hitTest(_root.Samy._x, _root.Samy._y, true)) {
Set("/Vars:StartPlay", 44);
Set("/Vars:AgpActif", "AgpEscalier");
Set("/Vars:DestX", 279.9);
Set("/Vars:DestY", 56.6);
Set("/Vars:FinAgpX", 226.2);
Set("/Vars:FinAgpY", 145.3);
Set("/Vars:DirFin", 3);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
}
if (_root.HitCoupeCanon.hitTest(_root.Samy._x, _root.Samy._y, true)) {
if (((/Vars:CanonPlonge == false) and (/Vars:CanonEau == true)) and (/Vars:ObjSelect == 2)) {
if (/Vars:InvCle == true) {
Set("/Vars:PtObjDel", /Vars:PtInvArray);
Set("/Vars:StartPlay", 49);
Set("/Vars:AgpActif", "AgpCanon");
Set("/Vars:DestX", 285.6);
Set("/Vars:DestY", 358.3);
Set("/Vars:FinAgpX", 285.6);
Set("/Vars:FinAgpY", 358.3);
Set("/Vars:DirFin", 8);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
} else if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("NotNow");
}
} else if (/Vars:HachePos1 == true) {
Set("/Vars:HachePos1", false);
_root.Fonct.AddInv(2, "InvHache");
_root.SonGet.play();
tellTarget (_root.HachePlante) {
nextFrame();
};
}
}
if (_root.HitCale.hitTest(_root.Samy._x, _root.Samy._y, true)) {
if (/Vars:ObjSelect == 3) {
Set("/Vars:StartPlay", 41);
Set("/Vars:AgpActif", "AgpCale");
Set("/Vars:DestX", 311.3);
Set("/Vars:DestY", 184.7);
Set("/Vars:FinAgpX", 311.3);
Set("/Vars:FinAgpY", 184.7);
Set("/Vars:DirFin", 7);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
} else if ((/Voix:Parle == false) and (/Voix:Locked == false)) {
Set("/Vars:Dialog", "Locked");
Set("/Vars:VDialog", "Locked");
Set("/Vars:DestX", 311.3);
Set("/Vars:DestY", 184.7);
Set("/Vars:DirFin", 7);
Set("/Vars:FinMove", "Parle");
_root.Fonct.MoveAuto("Samy");
}
}
if (_root.HitHache.hitTest(_root.Samy._x, _root.Samy._y, true) and (/Vars:InvHache == false)) {
_root.Fonct.AddInv(2, "InvHache");
_root.SonGet.play();
tellTarget (_root.Hache) {
nextFrame();
};
}
if ((((_root.HitVoitCle.hitTest(_root.Samy._x, _root.Samy._y, true) and (/Vars:InvCle == false)) and (/Vars:CleSol == false)) and (/Voix:Cle == false)) and (/Voix:Parle == false)) {
Set("/Voix:Parle", true);
Set("/Voix:Cle", true);
_root.Voix.gotoAndPlay("HowKey");
}
if (_root.HitGotFlag.hitTest(_root.Samy._x, _root.Samy._y, true) and (/Voix:Parle == false)) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("NoUse");
}
if (_root.HitGotFilet.hitTest(_root.Samy._x, _root.Samy._y, true) and (/Voix:Parle == false)) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("No");
}
if (_root.HitGotBaril.hitTest(_root.Samy._x, _root.Samy._y, true) and (/Voix:Parle == false)) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("NoUse");
}
if ((_root.HitMeche.hitTest(_root.Samy._x, _root.Samy._y, true) and (/Voix:Parle == false)) and (/Voix:TasBaril == false)) {
Set("/Voix:Parle", true);
Set("/Voix:TasBaril", true);
_root.Voix.gotoAndPlay("CantTake");
}
if ((_root.HitGrille.hitTest(_root.Samy._x, _root.Samy._y, true) and (/Voix:Parle == false)) and (/Voix:Grille == false)) {
Set("/Voix:Parle", true);
Set("/Voix:Grille", true);
_root.Voix.gotoAndPlay("NotMove");
}
if (_root.HitTorche.hitTest(_root.Samy._x, _root.Samy._y, true) and (/Voix:Parle == false)) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("No");
}
}
}
}
if (/Vars:Peur == true) {
if (/Vars:WaitFear > 0) {
Set("/Vars:WaitFear", /Vars:WaitFear - 1);
}
if (/Vars:WaitFear == 0) {
Set("/Vars:WaitFear", -100);
Set("/Vars:Fear", /Vars:Fear + /Vars:DegreFear);
_root.Fonct.MoveAutoPeur(/Vars:PersActif);
}
}
if (getProperty(_root.Interface.FearGauge, _currentframe) < (/Vars:Fear + 1)) {
tellTarget (_root.Interface.FearGauge) {
nextFrame();
};
}
if (/Vars:LostControl == false) {
if ((((/Vars:Haut == false) and (/Vars:Bas == true)) and (/Vars:Gauche == false)) and (/Vars:Droite == true)) {
Set("/Vars:Dir" + /Vars:PersActif, 1);
MoveX = /Vars:MoveXdr;
MoveY = /Vars:MoveYdr;
} else if ((((/Vars:Haut == false) and (/Vars:Bas == true)) and (/Vars:Gauche == true)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 3);
MoveX = /Vars:MoveXdl;
MoveY = /Vars:MoveYdl;
} else if ((((/Vars:Haut == true) and (/Vars:Bas == false)) and (/Vars:Gauche == false)) and (/Vars:Droite == true)) {
Set("/Vars:Dir" + /Vars:PersActif, 7);
MoveX = /Vars:MoveXur;
MoveY = /Vars:MoveYur;
} else if ((((/Vars:Haut == true) and (/Vars:Bas == false)) and (/Vars:Gauche == true)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 5);
MoveX = /Vars:MoveXul;
MoveY = /Vars:MoveYul;
} else if ((((/Vars:Haut == false) and (/Vars:Bas == true)) and (/Vars:Gauche == false)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 2);
MoveX = /Vars:MoveXd;
MoveY = /Vars:MoveYdr;
} else if ((((/Vars:Haut == false) and (/Vars:Bas == false)) and (/Vars:Gauche == true)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 4);
MoveX = /Vars:MoveXl;
MoveY = /Vars:MoveYl;
} else if ((((/Vars:Haut == true) and (/Vars:Bas == false)) and (/Vars:Gauche == false)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 6);
MoveX = /Vars:MoveXu;
MoveY = /Vars:MoveYu;
} else if ((((/Vars:Haut == false) and (/Vars:Bas == false)) and (/Vars:Gauche == false)) and (/Vars:Droite == true)) {
Set("/Vars:Dir" + /Vars:PersActif, 8);
MoveX = /Vars:MoveXr;
MoveY = /Vars:MoveYr;
}
tellTarget ("_root." + /Vars:PersActif) {
gotoAndStop(eval ("/Vars:Dir" + /Vars:PersActif));
};
if ((((/Vars:Haut == true) or (/Vars:Bas == true)) or (/Vars:Droite == true)) or (/Vars:Gauche == true)) {
Set("/Vars:Etat" + /Vars:PersActif, "Marche");
} else {
Set("/Vars:Etat" + /Vars:PersActif, "Idle");
}
if ((eval ("/Vars:Etat" + /Vars:PersActif) eq "Marche") and (!_root.Collider.hitTest(_root[/Vars:PersActif]._x + MoveX, _root[/Vars:PersActif]._y + MoveY, true))) {
setProperty(_root[/Vars:PersActif], _x , getProperty("_root." + /Vars:PersActif, _x) + MoveX);
setProperty(_root[/Vars:PersActif], _y , getProperty("_root." + /Vars:PersActif, _y) + MoveY);
}
}
if (/Vars:MoveAuto == true) {
if ((Math.abs(/Vars:MoveXAgp) >= Math.abs(_root[/Vars:PersActif]._x - /Vars:DestX)) or (Math.abs(/Vars:MoveYAgp) >= Math.abs(_root[/Vars:PersActif]._y - /Vars:DestY))) {
if (/Vars:FinMove eq "Agp") {
Set("/Vars:Etat" + /Vars:PersActif, "PasLa");
tellTarget (("_root." + /Vars:PersActif) + ".Obj") {
gotoAndStop ("PasLa");
};
tellTarget ("_root." + /Vars:AgpActif) {
gotoAndPlay(/Vars:StartPlay);
};
_root[/Vars:PersActif]._x = /Vars:FinAgpX;
_root[/Vars:PersActif]._y = /Vars:FinAgpY;
Set("/Vars:Dir" + /Vars:PersActif, /Vars:DirFin);
tellTarget ("_root." + /Vars:PersActif) {
gotoAndStop(eval ("/Vars:Dir" + /Vars:PersActif));
};
Set("/Vars:MoveAuto", false);
} else if (/Vars:FinMove eq "FinMarche") {
_root[/Vars:PersActif]._x = _root[/Vars:PersActif]._x + /Vars:MoveX;
_root[/Vars:PersActif]._y = _root[/Vars:PersActif]._y + /Vars:MoveY;
Set("/Vars:Peur", false);
Set("/Vars:LostControl", false);
Set("/Vars:MoveAuto", false);
} else if (/Vars:FinMove eq "MergePers") {
Set("/Vars:EtatSamy", "PasLa");
Set("/Vars:EtatScooby", "PasLa");
Set("/Vars:EtatSs", "Idle");
Set("/Vars:PersActif", "Ss");
Set("/Vars:LostControl", false);
Set("/Vars:MoveAuto", false);
} else if (/Vars:FinMove eq "Parle") {
Set("/Vars:LostControl", false);
if (/Vars:Dialog ne "") {
_root.Voix.gotoAndPlay(/Vars:Dialog);
}
if (/Vars:VDialog ne "") {
Set("/Voix:" + /Vars:VDialog, true);
}
Set("/Vars:Etat" + /Vars:PersActif, "Idle");
tellTarget (("_root." + /Vars:PersActif) + ".Obj") {
gotoAndStop ("Idle");
};
Set("/Vars:Dir" + /Vars:PersActif, /Vars:DirFin);
tellTarget ("_root." + /Vars:PersActif) {
gotoAndStop(eval ("/Vars:Dir" + /Vars:PersActif));
};
Set("/Vars:MoveAuto", false);
} else if (/Vars:FinMove eq "Tasse") {
Set("/Vars:Etat" + /Vars:PersActif, "Idle");
Set("/Vars:Dir" + /Vars:PersActif, /Vars:DirFin);
tellTarget ("_root." + /Vars:PersActif) {
gotoAndStop(eval ("/Vars:Dir" + /Vars:PersActif));
};
Set("/Vars:DestX", /Vars:TempDestX);
Set("/Vars:DestY", /Vars:TempDestY);
Set("/Vars:DirFin", /Vars:TempDirFin);
Set("/Vars:FinMove", "Agp");
Set("/Vars:MoveAuto", false);
Set("/Vars:PersActif", /Vars:TempPers);
_root.Fonct.MoveAuto(/Vars:TempPers);
}
} else {
setProperty(_root[/Vars:PersActif], _x , getProperty("_root." + /Vars:PersActif, _x) + /Vars:MoveXAgp);
setProperty(_root[/Vars:PersActif], _y , getProperty("_root." + /Vars:PersActif, _y) + /Vars:MoveYAgp);
}
}
}
if (/Vars:SortTab == false) {
tellTarget ("_root.Scooby.Obj") {
gotoAndStop(/Vars:EtatScooby);
};
tellTarget ("_root.Samy.Obj") {
gotoAndStop(/Vars:EtatSamy);
};
tellTarget ("_root.Ss.Obj") {
gotoAndStop(/Vars:EtatSs);
};
if (/Vars:Pause == true) {
if (/Vars:InvTorche == false) {
_root.Rebord1.Torche.stop();
}
tellTarget (_root.Samy.Obj.Etat) {
stop();
};
tellTarget (_root.Scooby.Obj.Etat) {
stop();
};
tellTarget (_root.Ss.Obj.Etat1) {
stop();
};
tellTarget (_root.Ss.Obj.Etat2) {
stop();
};
} else {
if (/Vars:InvTorche == false) {
_root.Rebord1.Torche.play();
}
tellTarget (_root.Samy.Obj.Etat) {
play();
};
tellTarget (_root.Scooby.Obj.Etat) {
play();
};
tellTarget (_root.Ss.Obj.Etat1) {
play();
};
tellTarget (_root.Ss.Obj.Etat2) {
play();
};
}
if (/Vars:Mort == true) {
Set("/Vars:Pause", true);
Set("/Vars:Mort", false);
_root.gotoAndPlay("Mort");
}
if ((/Vars:Saving == true) and (/Vars:Mort == false)) {
Set("/Vars:Pause", true);
Set("/Vars:Saving", false);
_root.SaveLoad.gotoAndPlay("Save");
}
}
}
Instance of Symbol 2092 MovieClip "HitClimbPanier" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 488 MovieClip in Frame 389
onClipEvent (keyUp) {
if (/Vars:Bas == true) {
if (!Key.isDown(Key.Down)) {
Set("/Vars:Bas", false);
}
}
if (/Vars:Haut == true) {
if (!Key.isDown(Key.Up)) {
Set("/Vars:Haut", false);
}
}
if (/Vars:Gauche == true) {
if (!Key.isDown(Key.Left)) {
Set("/Vars:Gauche", false);
}
}
if (/Vars:Droite == true) {
if (!Key.isDown(Key.Right)) {
Set("/Vars:Droite", false);
}
}
}
Instance of Symbol 2092 MovieClip "HitCordeCanon" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitPousseCanon" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitEscalierBas" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitEscalierHaut" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitHache" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitCoupeCanon" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitCale" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitCordeHaut" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitCordeBas" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitCoupeCorde1" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitCle" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitVoitCle" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitGotFlag" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitGotFilet" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitGotBaril" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitMeche" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitGrille" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitTorche" in Frame 389
onClipEvent (load) {
_visible = 0;
}
Frame 390
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:InvOuvert", false);
_root.Interface.Inv.gotoAndStop("Close");
_root.FermeTab.play();
Frame 399
_root.Fonct.IniTab(444.8, 87.3, 1, 100);
Set("/Vars:SortTab", false);
Set("/Vars:PtBoss", 2);
Set("/Vars:BDestX", 394.7);
Set("/Vars:BDestY", 213);
Set("/Vars:SensBoss", "Vient");
Set("/Vars:DirBoss", "lu");
Set("/Vars:EtatBoss", "Idle");
Set("/Vars:DirBFinIdle", "r");
Set("/Vars:MoveXBoss", 4.3);
Set("/Vars:MoveYBoss", 0.99);
Frame 400
Set("/Vars:Tableau", "Tab2");
_root.Fonct.SetMoves(47.7);
Instance of Symbol 2126 MovieClip "HitFear1" in Frame 400
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2128 MovieClip "HitFear2" in Frame 400
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2130 MovieClip "HitFear3" in Frame 400
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2132 MovieClip "HitFear4" in Frame 400
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2134 MovieClip "HitFear5" in Frame 400
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2136 MovieClip "HitFear6" in Frame 400
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2251 MovieClip "Boss" in Frame 400
onClipEvent (load) {
this.swapDepths(460);
_root.Vars:ObjRemove.push(this._name);
if (/Vars:BossX == -100) {
Set("/Vars:BossX", _root.p1._x);
}
if (/Vars:BossY == -100) {
Set("/Vars:BossY", _root.p1._y);
}
this._x = /Vars:BossX;
this._y = /Vars:BossY;
this.gotoAndStop(/Vars:DirBoss);
this.Obj.gotoAndStop(/Vars:EtatBoss);
}
Instance of Symbol 2261 MovieClip "Baril4" in Frame 400
onClipEvent (load) {
this.swapDepths(700);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 2264 MovieClip "Baril5" in Frame 400
onClipEvent (load) {
this.swapDepths(1200);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 2266 MovieClip "Canon1" in Frame 400
onClipEvent (load) {
this.swapDepths(200);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 2268 MovieClip "Canon2" in Frame 400
onClipEvent (load) {
this.swapDepths(500);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 2270 MovieClip "Canon3" in Frame 400
onClipEvent (load) {
this.swapDepths(800);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 2275 MovieClip "FermeTab" in Frame 400
onClipEvent (load) {
this.swapDepths(600000);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 2278 MovieClip "AgpBaril" in Frame 400
onClipEvent (load) {
this.swapDepths(300);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2287 MovieClip "Rats4" in Frame 400
onClipEvent (load) {
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2288 MovieClip "Baril3" in Frame 400
onClipEvent (load) {
this.swapDepths(600);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2289 MovieClip "Baril2" in Frame 400
onClipEvent (load) {
this.swapDepths(400);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 2291 MovieClip "Echelle" in Frame 400
onClipEvent (load) {
this.swapDepths(100);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 2298 MovieClip "AgpSauve1a" in Frame 400
onClipEvent (load) {
this.swapDepths(601);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2299 MovieClip "AgpSauve1b" in Frame 400
onClipEvent (load) {
this.swapDepths(101);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2300 MovieClip "AgpSauve1c" in Frame 400
onClipEvent (load) {
this.swapDepths(401);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2301 MovieClip "AgpSauve1d" in Frame 400
onClipEvent (load) {
this.swapDepths(402);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2302 MovieClip "AgpSauve1e" in Frame 400
onClipEvent (load) {
this.swapDepths(403);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2305 MovieClip "AgpSauve1f" in Frame 400
onClipEvent (load) {
this.swapDepths(49);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2312 MovieClip "AgpSauve2a" in Frame 400
onClipEvent (load) {
this.swapDepths(602);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2313 MovieClip "AgpSauve2b" in Frame 400
onClipEvent (load) {
this.swapDepths(102);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2314 MovieClip "AgpSauve2c" in Frame 400
onClipEvent (load) {
this.swapDepths(404);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2315 MovieClip "AgpSauve2d" in Frame 400
onClipEvent (load) {
this.swapDepths(405);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2316 MovieClip "AgpSauve2e" in Frame 400
onClipEvent (load) {
this.swapDepths(406);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2320 MovieClip "AgpSauve2f" in Frame 400
onClipEvent (load) {
this.swapDepths(50);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2321 MovieClip "Rats2" in Frame 400
onClipEvent (load) {
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2322 MovieClip "Rats3" in Frame 400
onClipEvent (load) {
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2323 MovieClip "Rats1" in Frame 400
onClipEvent (load) {
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2325 MovieClip "AgpSort1" in Frame 400
onClipEvent (load) {
this.swapDepths(801);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2333 MovieClip "AgpSort2" in Frame 400
onClipEvent (load) {
this.swapDepths(802);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2078 MovieClip "Ss" in Frame 400
onClipEvent (load) {
this.swapDepths(70);
_root.Vars:ObjRemove.push(this._name);
this._x = /Vars:SsX;
this._y = /Vars:SsY;
this.gotoAndStop(/Vars:DirSs);
this.Obj.gotoAndStop(/Vars:EtatSs);
}
Instance of Symbol 2342 MovieClip "Samy" in Frame 400
onClipEvent (load) {
this.swapDepths(90);
_root.Vars:ObjRemove.push(this._name);
this._x = /Vars:SamyX;
this._y = /Vars:SamyY;
this.gotoAndStop(/Vars:DirSamy);
this.Obj.gotoAndStop(/Vars:EtatSamy);
}
Instance of Symbol 2344 MovieClip "AgpUseBaril" in Frame 400
onClipEvent (load) {
this.swapDepths(/Vars:NiveauSamy - 35);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this._x = /Vars:BarilX;
this._y = /Vars:BarilY;
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Frame 401
stop();
Instance of Symbol 2348 MovieClip "Collider" in Frame 401
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 488 MovieClip in Frame 401
onClipEvent (keyUp) {
if (/Vars:Bas == true) {
if (!Key.isDown(Key.Down)) {
Set("/Vars:Bas", false);
}
}
if (/Vars:Haut == true) {
if (!Key.isDown(Key.Up)) {
Set("/Vars:Haut", false);
}
}
if (/Vars:Gauche == true) {
if (!Key.isDown(Key.Left)) {
Set("/Vars:Gauche", false);
}
}
if (/Vars:Droite == true) {
if (!Key.isDown(Key.Right)) {
Set("/Vars:Droite", false);
}
}
}
Instance of Symbol 2092 MovieClip "HitEntreBaril1" in Frame 401
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2107 MovieClip "Control" in Frame 401
onClipEvent (enterFrame) {
XPers = _root[/Vars:PersActif]._x;
YPers = _root[/Vars:PersActif]._y;
if (_root.Hito10.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 1000);
} else if (_root.Hito1.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 100);
} else if (_root.Hito2.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 200);
} else if (_root.Hito3.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 300);
} else if (_root.Hito4.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 400);
} else if (_root.Hito5.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 500);
} else if (_root.Hito6.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 600);
} else if (_root.Hito7.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 700);
} else if (_root.Hito8.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 800);
} else {
Set("/Vars:Niveau" + /Vars:PersActif, 1000);
}
XPers = _root.Boss._x;
YPers = _root.Boss._y;
if (_root.Hito5.hitTest(XPers, YPers, true)) {
Set("/Vars:NiveauBoss", 500);
} else if (_root.Hito6.hitTest(XPers, YPers, true)) {
Set("/Vars:NiveauBoss", 600);
} else {
Set("/Vars:NiveauBoss", 700);
}
if (/Vars:PersActif ne "Ss") {
_root.Samy.swapDepths(/Vars:NiveauSamy - 20);
} else {
_root.Ss.swapDepths(/Vars:NiveauSs - 30);
}
if (/Vars:PersActif eq "Ss") {
if (_root.Boss._y >= _root.Ss._y) {
_root.Ss.swapDepths(/Vars:NiveauSs - 40);
_root.Boss.swapDepths(/Vars:NiveauBoss - 30);
} else {
_root.Ss.swapDepths(/Vars:NiveauSs - 30);
_root.Boss.swapDepths(/Vars:NiveauBoss - 40);
}
} else if (_root.Boss._y >= _root.Samy._y) {
_root.Samy.swapDepths(/Vars:NiveauSamy - 40);
_root.Boss.swapDepths(/Vars:NiveauBoss - 20);
} else {
_root.Samy.swapDepths(/Vars:NiveauSamy - 20);
_root.Boss.swapDepths(/Vars:NiveauBoss - 40);
}
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (((/Vars:LostControl == false) and (/Vars:MoveAuto == false)) and (/Vars:VoirPrit == true)) {
if (_root.Collider.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y, true)) {
_root.Fonct.SortCollider();
}
Set("/Vars:VoirPrit", false);
}
if (/Vars:LostControl == false) {
if (Key.isDown(32) and (/Vars:WaitFear <= 0)) {
if (/Vars:PersActif eq "Ss") {
if ((_root.HitCle.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:InvCle == false)) and (/Vars:CleSol == true)) {
_root.Fonct.AddInv(3, "InvCle");
_root.SonGet.play();
tellTarget (_root.CleSol) {
nextFrame();
};
}
if (_root.HitEntreBaril1.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpBaril");
Set("/Vars:DestX", 562.8);
Set("/Vars:DestY", 94.8);
Set("/Vars:FinAgpX", 562.8);
Set("/Vars:FinAgpY", 94.8);
Set("/Vars:DirFin", 3);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Ss");
}
if (_root.HitSort.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpSort1");
Set("/Vars:DestX", 192.1);
Set("/Vars:DestY", 286.6);
Set("/Vars:FinAgpX", 192.1);
Set("/Vars:FinAgpY", 286.6);
Set("/Vars:DirFin", 3);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Ss");
}
if (_root.HitEntreBaril2.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:StartPlay", 28);
Set("/Vars:AgpActif", "AgpBaril");
Set("/Vars:DestX", 471.8);
Set("/Vars:DestY", 147.9);
Set("/Vars:FinAgpX", 471.8);
Set("/Vars:FinAgpY", 147.9);
Set("/Vars:DirFin", 7);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Ss");
}
}
if (/Vars:PersActif eq "Samy") {
if (/Vars:EtatSamy ne "PasLa") {
if (_root.HitSort.hitTest(_root.Samy._x, _root.Samy._y, true)) {
loadVariablesNum (/:TrackingUrl add "?episode=4&stage=4", 0);
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpSort2");
Set("/Vars:DestX", 201.9);
Set("/Vars:DestY", 296.4);
Set("/Vars:FinAgpX", 201.9);
Set("/Vars:FinAgpY", 296.4);
Set("/Vars:DirFin", 3);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
} else {
_root.AgpUseBaril._x = _root.Samy._x;
_root.AgpUseBaril._y = _root.Samy._y;
_root.AgpUseBaril.swapDepths(/Vars:NiveauSamy - 35);
Set("/Vars:StartPlay", 11);
Set("/Vars:AgpActif", "AgpUseBaril");
Set("/Vars:DestX", _root.Samy._x);
Set("/Vars:DestY", _root.Samy._y);
Set("/Vars:FinAgpX", _root.Samy._x);
Set("/Vars:FinAgpY", _root.Samy._y);
Set("/Vars:DirFin", 1);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Samy");
}
}
}
}
if (/Vars:PersActif eq "Samy") {
if (_root.HitBaril3.hitTest(_root.Samy._x, _root.Samy._y, true) and (getProperty("_root.Baril3", _currentframe) == 1)) {
_root.Baril3.play();
}
if (_root.HitBaril4.hitTest(_root.Samy._x, _root.Samy._y, true) and (getProperty("_root.Baril4", _currentframe) == 1)) {
_root.Baril4.play();
}
if (_root.HitBaril5.hitTest(_root.Samy._x, _root.Samy._y, true) and (getProperty("_root.Baril5", _currentframe) == 1)) {
_root.Baril5.play();
}
}
}
if (/Vars:WaitRats > 70) {
Set("/Vars:WaitRats", 0);
RatRand = random(4) + 1;
if (RatRand == 4) {
Set("/Vars:Rats1", true);
_root.Rats1.play();
} else if (RatRand == 3) {
Set("/Vars:Rats2", true);
_root.Rats2.play();
} else if (RatRand == 2) {
Set("/Vars:Rats3", true);
_root.Rats3.play();
} else {
Set("/Vars:Rats4", true);
_root.Rats4.play();
}
} else {
Set("/Vars:WaitRats", /Vars:WaitRats + 1);
}
if ((eval ("/Vars:Etat" + /Vars:PersActif) ne "PasLa") and (eval ("/Vars:Etat" + /Vars:PersActif) ne "Peur")) {
if ((/Vars:Rats1 == true) and _root.Rats1.HitRat.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y, true)) {
Set("/Vars:PeurRats", true);
} else if ((/Vars:Rats2 == true) and _root.Rats2.HitRat.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y, true)) {
Set("/Vars:PeurRats", true);
} else if ((/Vars:Rats3 == true) and _root.Rats3.HitRat.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y, true)) {
Set("/Vars:PeurRats", true);
} else if ((/Vars:Rats4 == true) and _root.Rats4.HitRat.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y, true)) {
Set("/Vars:PeurRats", true);
}
if (/Vars:PeurRats == true) {
Set("/Vars:PeurRats", false);
Set("/Vars:Peur", true);
Set("/Vars:DirFin", 1);
Set("/Vars:DegreFear", 20);
Set("/Vars:WaitFear", 0);
Set("/Vars:FinMove", "Agp");
if (_root.HitFear1.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y, true)) {
if (/Vars:PersActif eq "Ss") {
Set("/Vars:AgpActif", "AgpSauve1f");
} else {
Set("/Vars:AgpActif", "AgpSauve2f");
}
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 454);
Set("/Vars:PeurDestY", 82);
Set("/Vars:FinAgpX", 454);
Set("/Vars:FinAgpY", 82);
} else if (_root.HitFear2.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y, true)) {
if (/Vars:PersActif eq "Ss") {
Set("/Vars:AgpActif", "AgpSauve1b");
} else {
Set("/Vars:AgpActif", "AgpSauve2b");
}
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 260);
Set("/Vars:PeurDestY", 129);
Set("/Vars:FinAgpX", 260);
Set("/Vars:FinAgpY", 129);
} else if (_root.HitFear3.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y, true)) {
if (/Vars:PersActif eq "Ss") {
Set("/Vars:AgpActif", "AgpSauve1a");
} else {
Set("/Vars:AgpActif", "AgpSauve2a");
}
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 174);
Set("/Vars:PeurDestY", 235);
Set("/Vars:FinAgpX", 174);
Set("/Vars:FinAgpY", 235);
} else if (_root.HitFear4.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y, true)) {
if (/Vars:PersActif eq "Ss") {
Set("/Vars:AgpActif", "AgpSauve1e");
} else {
Set("/Vars:AgpActif", "AgpSauve2e");
}
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 288);
Set("/Vars:PeurDestY", 327);
Set("/Vars:FinAgpX", 288);
Set("/Vars:FinAgpY", 327);
} else if (_root.HitFear5.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y, true)) {
if (/Vars:PersActif eq "Ss") {
Set("/Vars:AgpActif", "AgpSauve1d");
} else {
Set("/Vars:AgpActif", "AgpSauve2d");
}
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 498);
Set("/Vars:PeurDestY", 300);
Set("/Vars:FinAgpX", 498);
Set("/Vars:FinAgpY", 300);
} else if (_root.HitFear6.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y, true)) {
if (/Vars:PersActif eq "Ss") {
Set("/Vars:AgpActif", "AgpSauve1c");
} else {
Set("/Vars:AgpActif", "AgpSauve2c");
}
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 524);
Set("/Vars:PeurDestY", 172);
Set("/Vars:FinAgpX", 524);
Set("/Vars:FinAgpY", 172);
}
}
}
if (/Vars:Peur == true) {
if (/Vars:WaitFear > 0) {
Set("/Vars:WaitFear", /Vars:WaitFear - 1);
}
if (/Vars:WaitFear == 0) {
Set("/Vars:WaitFear", -100);
Set("/Vars:Fear", /Vars:Fear + /Vars:DegreFear);
Set("/Vars:DestX", /Vars:PeurDestX);
Set("/Vars:DestY", /Vars:PeurDestY);
_root.Fonct.MoveAutoPeur(/Vars:PersActif);
}
}
if (getProperty(_root.Interface.FearGauge, _currentframe) < (/Vars:Fear + 1)) {
tellTarget (_root.Interface.FearGauge) {
nextFrame();
};
}
if (/Vars:LostControl == false) {
if ((((/Vars:Haut == false) and (/Vars:Bas == true)) and (/Vars:Gauche == false)) and (/Vars:Droite == true)) {
Set("/Vars:Dir" + /Vars:PersActif, 1);
MoveX = /Vars:MoveXdr;
MoveY = /Vars:MoveYdr;
} else if ((((/Vars:Haut == false) and (/Vars:Bas == true)) and (/Vars:Gauche == true)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 3);
MoveX = /Vars:MoveXdl;
MoveY = /Vars:MoveYdl;
} else if ((((/Vars:Haut == true) and (/Vars:Bas == false)) and (/Vars:Gauche == false)) and (/Vars:Droite == true)) {
Set("/Vars:Dir" + /Vars:PersActif, 7);
MoveX = /Vars:MoveXur;
MoveY = /Vars:MoveYur;
} else if ((((/Vars:Haut == true) and (/Vars:Bas == false)) and (/Vars:Gauche == true)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 5);
MoveX = /Vars:MoveXul;
MoveY = /Vars:MoveYul;
} else if ((((/Vars:Haut == false) and (/Vars:Bas == true)) and (/Vars:Gauche == false)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 2);
MoveX = /Vars:MoveXd;
MoveY = /Vars:MoveYdr;
} else if ((((/Vars:Haut == false) and (/Vars:Bas == false)) and (/Vars:Gauche == true)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 4);
MoveX = /Vars:MoveXl;
MoveY = /Vars:MoveYl;
} else if ((((/Vars:Haut == true) and (/Vars:Bas == false)) and (/Vars:Gauche == false)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 6);
MoveX = /Vars:MoveXu;
MoveY = /Vars:MoveYu;
} else if ((((/Vars:Haut == false) and (/Vars:Bas == false)) and (/Vars:Gauche == false)) and (/Vars:Droite == true)) {
Set("/Vars:Dir" + /Vars:PersActif, 8);
MoveX = /Vars:MoveXr;
MoveY = /Vars:MoveYr;
}
tellTarget ("_root." + /Vars:PersActif) {
gotoAndStop(eval ("/Vars:Dir" + /Vars:PersActif));
};
if ((((/Vars:Haut == true) or (/Vars:Bas == true)) or (/Vars:Droite == true)) or (/Vars:Gauche == true)) {
Set("/Vars:Etat" + /Vars:PersActif, "Marche");
} else {
Set("/Vars:Etat" + /Vars:PersActif, "Idle");
}
if ((eval ("/Vars:Etat" + /Vars:PersActif) eq "Marche") and (!_root.Collider.hitTest(_root[/Vars:PersActif]._x + MoveX, _root[/Vars:PersActif]._y + MoveY, true))) {
setProperty(_root[/Vars:PersActif], _x , getProperty("_root." + /Vars:PersActif, _x) + MoveX);
setProperty(_root[/Vars:PersActif], _y , getProperty("_root." + /Vars:PersActif, _y) + MoveY);
}
}
if (/Vars:MoveAuto == true) {
if ((Math.abs(/Vars:MoveXAgp) >= Math.abs(_root[/Vars:PersActif]._x - /Vars:DestX)) or (Math.abs(/Vars:MoveYAgp) >= Math.abs(_root[/Vars:PersActif]._y - /Vars:DestY))) {
if (/Vars:FinMove eq "Agp") {
Set("/Vars:Etat" + /Vars:PersActif, "PasLa");
tellTarget (("_root." + /Vars:PersActif) + ".Obj") {
gotoAndStop ("PasLa");
};
tellTarget ("_root." + /Vars:AgpActif) {
gotoAndPlay(/Vars:StartPlay);
};
_root[/Vars:PersActif]._x = /Vars:FinAgpX;
_root[/Vars:PersActif]._y = /Vars:FinAgpY;
Set("/Vars:Dir" + /Vars:PersActif, /Vars:DirFin);
tellTarget ("_root." + /Vars:PersActif) {
gotoAndStop(eval ("/Vars:Dir" + /Vars:PersActif));
};
Set("/Vars:MoveAuto", false);
} else if (/Vars:FinMove eq "FinMarche") {
_root[/Vars:PersActif]._x = _root[/Vars:PersActif]._x + /Vars:MoveX;
_root[/Vars:PersActif]._y = _root[/Vars:PersActif]._y + /Vars:MoveY;
Set("/Vars:Peur", false);
Set("/Vars:LostControl", false);
Set("/Vars:MoveAuto", false);
} else if (/Vars:FinMove eq "MergePers") {
Set("/Vars:EtatSamy", "PasLa");
Set("/Vars:EtatScooby", "PasLa");
Set("/Vars:EtatSs", "Idle");
Set("/Vars:PersActif", "Ss");
Set("/Vars:LostControl", false);
Set("/Vars:MoveAuto", false);
} else if (/Vars:FinMove eq "Parle") {
Set("/Vars:LostControl", false);
if (/Vars:Dialog ne "") {
_root.Voix.gotoAndPlay(/Vars:Dialog);
}
if (/Vars:VDialog ne "") {
Set("/Voix:" + /Vars:VDialog, true);
}
Set("/Vars:Etat" + /Vars:PersActif, "Idle");
tellTarget (("_root." + /Vars:PersActif) + ".Obj") {
gotoAndStop ("Idle");
};
Set("/Vars:Dir" + /Vars:PersActif, /Vars:DirFin);
tellTarget ("_root." + /Vars:PersActif) {
gotoAndStop(eval ("/Vars:Dir" + /Vars:PersActif));
};
Set("/Vars:MoveAuto", false);
} else if (/Vars:FinMove eq "Tasse") {
Set("/Vars:Etat" + /Vars:PersActif, "Idle");
Set("/Vars:Dir" + /Vars:PersActif, /Vars:DirFin);
tellTarget ("_root." + /Vars:PersActif) {
gotoAndStop(eval ("/Vars:Dir" + /Vars:PersActif));
};
Set("/Vars:DestX", /Vars:TempDestX);
Set("/Vars:DestY", /Vars:TempDestY);
Set("/Vars:DirFin", /Vars:TempDirFin);
Set("/Vars:FinMove", "Agp");
Set("/Vars:MoveAuto", false);
Set("/Vars:PersActif", /Vars:TempPers);
_root.Fonct.MoveAuto(/Vars:TempPers);
}
} else {
setProperty(_root[/Vars:PersActif], _x , getProperty("_root." + /Vars:PersActif, _x) + /Vars:MoveXAgp);
setProperty(_root[/Vars:PersActif], _y , getProperty("_root." + /Vars:PersActif, _y) + /Vars:MoveYAgp);
}
}
if (/Vars:EtatBoss eq "Marche") {
if ((Math.abs(/Vars:MoveXBoss) >= Math.abs(_root.Boss._x - /Vars:BDestX)) or (Math.abs(/Vars:MoveYBoss) >= Math.abs(_root.Boss._y - /Vars:BDestY))) {
_root.Boss._x = /Vars:BDestX;
_root.Boss._y = /Vars:BDestY;
if (/Vars:SensBoss eq "Va") {
if (/Vars:PtBoss == 1) {
Set("/Vars:PtBoss", 2);
Set("/Vars:BDestX", _root.p2._x);
Set("/Vars:BDestY", _root.p2._y);
Set("/Vars:SensBoss", "Vient");
Set("/Vars:DirBoss", "lu");
Set("/Vars:EtatBoss", "Idle");
Set("/Vars:DirBFinIdle", "r");
_root.Fonct.MoveBoss("Boss");
}
} else if (/Vars:SensBoss eq "Vient") {
if (/Vars:PtBoss == 2) {
Set("/Vars:PtBoss", 1);
Set("/Vars:BDestX", _root.p1._x);
Set("/Vars:BDestY", _root.p1._y);
Set("/Vars:SensBoss", "Va");
if (random(100) < 50) {
Set("/Vars:DirBoss", "ru");
} else {
Set("/Vars:DirBoss", "rd");
}
Set("/Vars:EtatBoss", "Idle");
Set("/Vars:DirBFinIdle", "l");
_root.Fonct.MoveBoss("Boss");
}
}
} else {
_root.Boss._x = _root.Boss._x + /Vars:MoveXBoss;
_root.Boss._y = _root.Boss._y + /Vars:MoveYBoss;
}
}
if (/Vars:PersActif eq "Ss") {
if ((((/Vars:EtatBoss ne "Fear") and (/Vars:EtatSs ne "PasLa")) and (/Vars:EtatSs ne "Peur")) and (!_root.HitCache.hitTest(_root.Ss._x, _root.Ss._y, true))) {
XCentre = _root.Boss._x + (_root.Boss.See3._x * /Vars:BScale);
YCentre = _root.Boss._y + (_root.Boss.See3._y * /Vars:BScale);
XSs = _root.Ss._x;
YSs = _root.Ss._y;
X1 = _root.Boss._x + (_root.Boss.See1._x * /Vars:BScale);
Y1 = _root.Boss._y + (_root.Boss.See1._y * /Vars:BScale);
X2 = _root.Boss._x + (_root.Boss.See2._x * /Vars:BScale);
Y2 = _root.Boss._y + (_root.Boss.See2._y * /Vars:BScale);
M1 = (Y2 - Y1) / (X2 - X1);
B1 = Y1 - (M1 * X1);
if ((YCentre - (M1 * XCentre)) > B1) {
if ((YSs - (M1 * XSs)) >= B1) {
Set("/Vars:EtatBoss", "Fear");
}
} else if ((YSs - (M1 * XSs)) <= B1) {
Set("/Vars:EtatBoss", "Fear");
}
if (/Vars:EtatBoss eq "Fear") {
if (_root.Ss._x <= _root.Boss._x) {
if (_root.Ss._y <= _root.Boss._y) {
Set("/Vars:DirBoss", "lu");
_root.Boss.gotoAndStop(3);
} else {
Set("/Vars:DirBoss", "ld");
_root.Boss.gotoAndStop(2);
}
} else if (_root.Ss._y <= _root.Boss._y) {
Set("/Vars:DirBoss", "ru");
_root.Boss.gotoAndStop(4);
} else {
Set("/Vars:DirBoss", "rd");
_root.Boss.gotoAndStop(1);
}
Set("/Vars:Peur", true);
Set("/Vars:DirFin", 1);
Set("/Vars:DegreFear", 20);
Set("/Vars:WaitFear", 8);
Set("/Vars:FinMove", "Agp");
if (_root.HitFear1.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpSauve1f");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 454);
Set("/Vars:PeurDestY", 82);
Set("/Vars:FinAgpX", 454);
Set("/Vars:FinAgpY", 82);
} else if (_root.HitFear2.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpSauve1b");
Set("/Vars:StartPlay", 2);
Set("/Vars:DestX", 260);
Set("/Vars:DestY", 129);
Set("/Vars:FinAgpX", 260);
Set("/Vars:FinAgpY", 129);
} else if (_root.HitFear3.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpSauve1a");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 174);
Set("/Vars:PeurDestY", 235);
Set("/Vars:FinAgpX", 174);
Set("/Vars:FinAgpY", 235);
} else if (_root.HitFear4.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpSauve1e");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 288);
Set("/Vars:PeurDestY", 327);
Set("/Vars:FinAgpX", 288);
Set("/Vars:FinAgpY", 327);
} else if (_root.HitFear5.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpSauve1d");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 498);
Set("/Vars:PeurDestY", 300);
Set("/Vars:FinAgpX", 498);
Set("/Vars:FinAgpY", 300);
} else if (_root.HitFear6.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpSauve1c");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 524);
Set("/Vars:PeurDestY", 172);
Set("/Vars:FinAgpX", 524);
Set("/Vars:FinAgpY", 172);
}
}
}
} else if (((((/Vars:EtatBoss ne "Fear") and (/Vars:EtatSamy ne "PasLa")) and (/Vars:EtatSamy ne "Peur")) and (!_root.HitCache.hitTest(_root.Samy._x, _root.Samy._y, true))) or (/Vars:BouletTombe == true)) {
if (/Vars:BouletTombe == false) {
XCentre = _root.Boss._x + (_root.Boss.See3._x * /Vars:BScale);
YCentre = _root.Boss._y + (_root.Boss.See3._y * /Vars:BScale);
XSs = _root.Samy._x;
YSs = _root.Samy._y;
X1 = _root.Boss._x + (_root.Boss.See1._x * /Vars:BScale);
Y1 = _root.Boss._y + (_root.Boss.See1._y * /Vars:BScale);
X2 = _root.Boss._x + (_root.Boss.See2._x * /Vars:BScale);
Y2 = _root.Boss._y + (_root.Boss.See2._y * /Vars:BScale);
M1 = (Y2 - Y1) / (X2 - X1);
B1 = Y1 - (M1 * X1);
if ((YCentre - (M1 * XCentre)) > B1) {
if ((YSs - (M1 * XSs)) >= B1) {
Set("/Vars:EtatBoss", "Fear");
}
} else if ((YSs - (M1 * XSs)) <= B1) {
Set("/Vars:EtatBoss", "Fear");
}
} else {
Set("/Vars:BouletTombe", false);
if (eval (/Vars:Etat + /Vars:PersActif) ne "Peur") {
Set("/Vars:EtatBoss", "Fear");
}
}
if (/Vars:EtatBoss eq "Fear") {
if (_root.Samy._x <= _root.Boss._x) {
if (_root.Samy._y <= _root.Boss._y) {
Set("/Vars:DirBoss", "lu");
_root.Boss.gotoAndStop(6);
} else {
Set("/Vars:DirBoss", "ld");
_root.Boss.gotoAndStop(5);
}
} else if (_root.Samy._y <= _root.Boss._y) {
Set("/Vars:DirBoss", "ru");
_root.Boss.gotoAndStop(3);
} else {
Set("/Vars:DirBoss", "rd");
_root.Boss.gotoAndStop(2);
}
Set("/Vars:Peur", true);
Set("/Vars:DirFin", 1);
Set("/Vars:DegreFear", 20);
Set("/Vars:WaitFear", 8);
Set("/Vars:FinMove", "Agp");
if (_root.HitFear1.hitTest(_root.Samy._x, _root.Samy._y, true)) {
Set("/Vars:AgpActif", "AgpSauve2f");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 454);
Set("/Vars:PeurDestY", 82);
Set("/Vars:FinAgpX", 454);
Set("/Vars:FinAgpY", 82);
} else if (_root.HitFear2.hitTest(_root.Samy._x, _root.Samy._y, true)) {
Set("/Vars:AgpActif", "AgpSauve2b");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 260);
Set("/Vars:PeurDestY", 129);
Set("/Vars:FinAgpX", 260);
Set("/Vars:FinAgpY", 129);
} else if (_root.HitFear3.hitTest(_root.Samy._x, _root.Samy._y, true)) {
Set("/Vars:AgpActif", "AgpSauve2a");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 174);
Set("/Vars:PeurDestY", 235);
Set("/Vars:FinAgpX", 174);
Set("/Vars:FinAgpY", 235);
} else if (_root.HitFear4.hitTest(_root.Samy._x, _root.Samy._y, true)) {
Set("/Vars:AgpActif", "AgpSauve2e");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 288);
Set("/Vars:PeurDestY", 327);
Set("/Vars:FinAgpX", 288);
Set("/Vars:FinAgpY", 327);
} else if (_root.HitFear5.hitTest(_root.Samy._x, _root.Samy._y, true)) {
Set("/Vars:AgpActif", "AgpSauve2d");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 498);
Set("/Vars:PeurDestY", 300);
Set("/Vars:FinAgpX", 498);
Set("/Vars:FinAgpY", 300);
} else if (_root.HitFear6.hitTest(_root.Samy._x, _root.Samy._y, true)) {
Set("/Vars:AgpActif", "AgpSauve2c");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 524);
Set("/Vars:PeurDestY", 172);
Set("/Vars:FinAgpX", 524);
Set("/Vars:FinAgpY", 172);
}
}
}
tellTarget ("_root.Boss") {
gotoAndStop(/Vars:DirBoss);
};
tellTarget ("_root.Boss.Obj") {
gotoAndStop(/Vars:EtatBoss);
};
}
if (/Vars:SortTab == false) {
tellTarget ("_root.Samy.Obj") {
gotoAndStop(/Vars:EtatSamy);
};
tellTarget ("_root.Ss.Obj") {
gotoAndStop(/Vars:EtatSs);
};
if (/Vars:Pause == true) {
tellTarget (_root.Boss.Obj.Etat) {
stop();
};
tellTarget (_root.Samy.Obj.Etat) {
stop();
};
tellTarget (_root.Ss.Obj.Etat1) {
stop();
};
tellTarget (_root.Ss.Obj.Etat2) {
stop();
};
} else {
tellTarget (_root.Boss.Obj.Etat) {
play();
};
tellTarget (_root.Samy.Obj.Etat) {
play();
};
tellTarget (_root.Ss.Obj.Etat1) {
play();
};
tellTarget (_root.Ss.Obj.Etat2) {
play();
};
}
if (/Vars:Mort == true) {
Set("/Vars:Pause", true);
Set("/Vars:Mort", false);
_root.gotoAndPlay("Mort");
}
if ((/Vars:Saving == true) and (/Vars:Mort == false)) {
Set("/Vars:Pause", true);
Set("/Vars:Saving", false);
_root.SaveLoad.gotoAndPlay("Save");
}
}
}
Instance of Symbol 2351 MovieClip "HitBaril4" in Frame 401
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2351 MovieClip "HitBaril3" in Frame 401
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2351 MovieClip "HitBaril5" in Frame 401
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitEntreBaril2" in Frame 401
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitSort" in Frame 401
onClipEvent (load) {
_visible = 0;
}
Frame 402
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:InvOuvert", false);
_root.Interface.Inv.gotoAndStop("Close");
_root.FermeTab.play();
Frame 411
Set("/Vars:SortTab", false);
Set("/Vars:EtatBoss", "PasLa");
Set("/Vars:DirBoss", "ru");
Set("/Vars:DirBFinIdle", "ru");
Set("/Vars:SensBoss", "Va");
Set("/Vars:BossX", -100);
Set("/Vars:BossY", -100);
Set("/Vars:BScale", 0.417);
Set("/Vars:BDestX", 0);
Set("/Vars:BDestY", 0);
Set("/Vars:MoveXBoss", 0);
Set("/Vars:MoveYBoss", 0);
Set("/Vars:PtBoss", 1);
Set("/Vars:NiveauBoss", 800);
_root.Fonct.IniTab(312, 177, 3, 400);
_root.Mus.gotoAndPlay(1);
Frame 412
Set("/Vars:Tableau", "Tab3");
_root.Fonct.SetMoves(47.4);
Instance of Symbol 661 MovieClip "Poteau" in Frame 412
onClipEvent (load) {
this.swapDepths(100);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 663 MovieClip "Corde1" in Frame 412
onClipEvent (load) {
this.swapDepths(500);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 665 MovieClip "Poteau2" in Frame 412
onClipEvent (load) {
this.swapDepths(800);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 696 MovieClip "Rebord1" in Frame 412
onClipEvent (load) {
this.swapDepths(600);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 698 MovieClip "Rampe2" in Frame 412
onClipEvent (load) {
this.swapDepths(300);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 700 MovieClip "Rampe1" in Frame 412
onClipEvent (load) {
this.swapDepths(200);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 702 MovieClip "Filet" in Frame 412
onClipEvent (load) {
this.swapDepths(1100);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 704 MovieClip "Rebord2" in Frame 412
onClipEvent (load) {
this.swapDepths(1000);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 2381 MovieClip "FermeTab" in Frame 412
onClipEvent (load) {
this.swapDepths(600000);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 2437 MovieClip "AgpTrappe" in Frame 412
onClipEvent (load) {
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1017 MovieClip "AgpPanier" in Frame 412
onClipEvent (load) {
this.swapDepths(900);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1160 MovieClip "AgpCordeCanon" in Frame 412
onClipEvent (load) {
this.swapDepths(999);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1479 MovieClip "AgpCanon" in Frame 412
onClipEvent (load) {
this.swapDepths(700);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1507 MovieClip "AgpCoupe1" in Frame 412
onClipEvent (load) {
this.swapDepths(201);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2455 MovieClip "AgpFilet" in Frame 412
onClipEvent (load) {
this.swapDepths(503);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2527 MovieClip "AgpBoss2" in Frame 412
onClipEvent (load) {
this.swapDepths(102);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1671 MovieClip "AgpEscalier" in Frame 412
onClipEvent (load) {
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1673 MovieClip "Hache2" in Frame 412
onClipEvent (load) {
this.swapDepths(202);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 1679 MovieClip "AgpDown2" in Frame 412
onClipEvent (load) {
this.swapDepths(101);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2528 MovieClip "Corde" in Frame 412
onClipEvent (load) {
this.swapDepths(302);
_root.Vars:ObjRemove.push(this._name);
}
Instance of Symbol 2542 MovieClip "AgpSsTrappe" in Frame 412
onClipEvent (load) {
this.swapDepths(901);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2555 MovieClip "AgpPoudre" in Frame 412
onClipEvent (load) {
this.swapDepths(303);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2558 MovieClip "AgpAllume" in Frame 412
onClipEvent (load) {
this.swapDepths(304);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1753 MovieClip "AgpBoom" in Frame 412
onClipEvent (load) {
this.swapDepths(400);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2563 MovieClip "AgpFall" in Frame 412
onClipEvent (load) {
this.swapDepths(305);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2576 MovieClip "AgpFuite1" in Frame 412
onClipEvent (load) {
this.swapDepths(103);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2577 MovieClip "AgpFuite2" in Frame 412
onClipEvent (load) {
this.swapDepths(104);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2578 MovieClip "AgpFuite3" in Frame 412
onClipEvent (load) {
this.swapDepths(105);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2579 MovieClip "AgpFuite4" in Frame 412
onClipEvent (load) {
this.swapDepths(106);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2580 MovieClip "AgpFuite5" in Frame 412
onClipEvent (load) {
this.swapDepths(107);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2581 MovieClip "AgpFuite6" in Frame 412
onClipEvent (load) {
this.swapDepths(108);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2582 MovieClip "AgpFuite7" in Frame 412
onClipEvent (load) {
this.swapDepths(109);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2583 MovieClip "AgpFuite8" in Frame 412
onClipEvent (load) {
this.swapDepths(110);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2584 MovieClip "AgpFuite9" in Frame 412
onClipEvent (load) {
this.swapDepths(111);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2587 MovieClip "AgpFuite10" in Frame 412
onClipEvent (load) {
this.swapDepths(902);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2589 MovieClip "AgpFuite11" in Frame 412
onClipEvent (load) {
this.swapDepths(903);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2590 MovieClip "AgpFuite12" in Frame 412
onClipEvent (load) {
this.swapDepths(904);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2594 MovieClip "AgpBoss3" in Frame 412
onClipEvent (load) {
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2595 MovieClip "AgpSsTrappe1" in Frame 412
onClipEvent (load) {
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2601 MovieClip "AgpFilet2" in Frame 412
onClipEvent (load) {
this.swapDepths(504);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1619 MovieClip "AgpCleRame" in Frame 412
onClipEvent (load) {
this.swapDepths(501);
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2603 MovieClip "AgpBoss1" in Frame 412
onClipEvent (load) {
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2078 MovieClip "Ss" in Frame 412
onClipEvent (load) {
this.swapDepths(70);
_root.Vars:ObjRemove.push(this._name);
this._x = /Vars:SsX;
this._y = /Vars:SsY;
this.gotoAndStop(/Vars:DirSs);
this.Obj.gotoAndStop(/Vars:EtatSs);
}
Instance of Symbol 2084 MovieClip "Samy" in Frame 412
onClipEvent (load) {
this.swapDepths(90);
_root.Vars:ObjRemove.push(this._name);
this._x = /Vars:SamyX;
this._y = /Vars:SamyY;
this.gotoAndStop(/Vars:DirSamy);
this.Obj.gotoAndStop(/Vars:EtatSamy);
}
Instance of Symbol 2090 MovieClip "Scooby" in Frame 412
onClipEvent (load) {
this.swapDepths(80);
_root.Vars:ObjRemove.push(this._name);
this._x = /Vars:ScoobyX;
this._y = /Vars:ScoobyY;
this.gotoAndStop(/Vars:DirScooby);
this.Obj.gotoAndStop(/Vars:EtatScooby);
}
Instance of Symbol 2687 MovieClip "Boss1" in Frame 412
onClipEvent (load) {
this.swapDepths(31);
_root.Vars:ObjRemove.push(this._name);
if (/Vars:BossActif eq "Boss1") {
if (/Vars:BossX == -100) {
Set("/Vars:BossX", _root.p1._x);
Set("/Vars:BDestX", _root.p1._x);
}
if (/Vars:BossY == -100) {
Set("/Vars:BossY", _root.p1._y);
Set("/Vars:BDestY", _root.p1._y);
}
}
if ((/Vars:BossActif eq "Boss1") or (/Vars:BossActif eq "Boss2")) {
this._x = /Vars:BossX;
this._y = /Vars:BossY;
this.gotoAndStop(/Vars:DirBoss);
this.Obj.gotoAndStop(/Vars:EtatBoss);
} else {
this._x = -100;
this._y = -100;
this.Obj.gotoAndStop("PasLa");
}
}
Instance of Symbol 2251 MovieClip "Boss3" in Frame 412
onClipEvent (load) {
this.swapDepths(30);
_root.Vars:ObjRemove.push(this._name);
if (/Vars:BossActif eq "Boss3") {
this._x = /Vars:BossX;
this._y = /Vars:BossY;
this.gotoAndStop(/Vars:DirBoss);
this.Obj.gotoAndStop(/Vars:EtatBoss);
} else {
this._x = -100;
this._y = -100;
this.Obj.gotoAndStop("PasLa");
}
}
Instance of Symbol 2740 MovieClip "AgpUseFlag" in Frame 412
onClipEvent (load) {
this.swapDepths(/Vars:DepthFlag);
this._x = /Vars:FlagX;
this._y = /Vars:FlagY;
_root.Vars:ObjRemove.push(this._name);
_root.Vars:TabAgpNom.push(this._name);
if (eval ("/Vars:Fr" + _name) != null) {
this.gotoAndStop(eval ("/Vars:Fr" + _name));
} else {
this.gotoAndStop(1);
}
}
Frame 413
stop();
Instance of Symbol 2742 MovieClip "HitCachette2" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2106 MovieClip "Collider" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 488 MovieClip in Frame 413
onClipEvent (keyUp) {
if (/Vars:Bas == true) {
if (!Key.isDown(Key.Down)) {
Set("/Vars:Bas", false);
}
}
if (/Vars:Haut == true) {
if (!Key.isDown(Key.Up)) {
Set("/Vars:Haut", false);
}
}
if (/Vars:Gauche == true) {
if (!Key.isDown(Key.Left)) {
Set("/Vars:Gauche", false);
}
}
if (/Vars:Droite == true) {
if (!Key.isDown(Key.Right)) {
Set("/Vars:Droite", false);
}
}
}
Instance of Symbol 2092 MovieClip "HitTrappe" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitCordeHaut" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitEscalierBas" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitEscalierHaut" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitBaril" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitUseBaril" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitTorche" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitPoudre" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2107 MovieClip "Control" in Frame 413
onClipEvent (enterFrame) {
XPers = _root[/Vars:PersActif]._x;
YPers = _root[/Vars:PersActif]._y;
if (_root.Hito10.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 1000);
} else if (_root.Hito1.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 100);
} else if (_root.Hito2.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 200);
} else if (_root.Hito3.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 300);
} else if (_root.Hito4.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 400);
} else if (_root.Hito5.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 500);
} else if (_root.Hito6.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 600);
} else if (_root.Hito7.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 700);
} else if (_root.Hito8.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 800);
} else if (_root.Hito9.hitTest(XPers, YPers, true)) {
Set("/Vars:Niveau" + /Vars:PersActif, 900);
} else {
Set("/Vars:Niveau" + /Vars:PersActif, 1000);
}
if (/Vars:BossActif eq "Boss1") {
XPers = _root.Boss1._x;
YPers = _root.Boss1._y;
if (_root.Hito5.hitTest(XPers, YPers, true)) {
Set("/Vars:NiveauBoss", 500);
} else if (_root.Hito6.hitTest(XPers, YPers, true)) {
Set("/Vars:NiveauBoss", 600);
} else if (_root.Hito7.hitTest(XPers, YPers, true)) {
Set("/Vars:NiveauBoss", 700);
} else if (_root.Hito8.hitTest(XPers, YPers, true)) {
Set("/Vars:NiveauBoss", 800);
} else if (_root.Hito9.hitTest(XPers, YPers, true)) {
Set("/Vars:NiveauBoss", 900);
} else {
Set("/Vars:NiveauBoss", 1000);
}
} else if (/Vars:BossActif eq "Boss2") {
XPers = _root.Boss1._x;
YPers = _root.Boss1._y;
if (_root.Hito10.hitTest(XPers, YPers, true)) {
Set("/Vars:NiveauBoss", 1000);
} else if (_root.Hito2.hitTest(XPers, YPers, true)) {
Set("/Vars:NiveauBoss", 200);
} else if (_root.Hito3.hitTest(XPers, YPers, true)) {
Set("/Vars:NiveauBoss", 300);
} else {
Set("/Vars:NiveauBoss", 1000);
}
} else if (/Vars:BossActif eq "Boss3") {
XPers = _root.Boss3._x;
YPers = _root.Boss3._y;
if (_root.Hito4.hitTest(XPers, YPers, true)) {
Set("/Vars:NiveauBoss", 400);
} else if (_root.Hito5.hitTest(XPers, YPers, true)) {
Set("/Vars:NiveauBoss", 500);
} else if (_root.Hito6.hitTest(XPers, YPers, true)) {
Set("/Vars:NiveauBoss", 600);
} else {
Set("/Vars:NiveauBoss", 700);
}
}
if ((/Vars:BossActif eq "Boss1") or (/Vars:BossActif eq "Boss2")) {
if (_root.Boss1._y >= _root.Ss._y) {
if (/Vars:EtatSs eq "Cache") {
_root.AgpUseFlag.swapDepths(/Vars:NiveauSs - 39);
} else {
_root.Ss.swapDepths(/Vars:NiveauSs - 40);
}
_root.Boss1.swapDepths(/Vars:NiveauBoss - 30);
} else {
if (/Vars:EtatSs eq "Cache") {
_root.AgpUseFlag.swapDepths(/Vars:NiveauSs - 29);
} else {
_root.Ss.swapDepths(/Vars:NiveauSs - 30);
}
_root.Boss1.swapDepths(/Vars:NiveauBoss - 40);
}
} else if (/Vars:BossActif eq "Boss3") {
if (_root.Boss3._y >= _root.Ss._y) {
if (/Vars:EtatSs eq "Cache") {
_root.AgpUseFlag.swapDepths(/Vars:NiveauSs - 39);
} else {
_root.Ss.swapDepths(/Vars:NiveauSs - 40);
}
_root.Boss3.swapDepths(/Vars:NiveauBoss - 30);
} else {
if (/Vars:EtatSs eq "Cache") {
_root.AgpUseFlag.swapDepths(/Vars:NiveauSs - 29);
} else {
_root.Ss.swapDepths(/Vars:NiveauSs - 30);
}
_root.Boss3.swapDepths(/Vars:NiveauBoss - 40);
}
}
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (((/Vars:LostControl == false) and (/Vars:MoveAuto == false)) and (/Vars:VoirPrit == true)) {
if (_root.Collider.hitTest(_root[/Vars:PersActif]._x, _root[/Vars:PersActif]._y, true)) {
_root.Fonct.SortCollider();
}
Set("/Vars:VoirPrit", false);
}
if (/Vars:LostControl == false) {
if (Key.isDown(32) and (/Vars:WaitFear <= 0)) {
if (_root.HitCordeHaut.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:InvCorde == false)) {
_root.Fonct.AddInv(5, "InvCorde");
_root.SonGet.play();
tellTarget (_root.Corde) {
nextFrame();
};
} else if (_root.HitFlag.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:InvFlag == false)) {
_root.Fonct.AddInv(9, "InvFlag");
_root.GetFlag.gotoAndPlay(2);
_root.SonGet.play();
tellTarget (_root.Flag) {
nextFrame();
};
} else if (_root.HitFilet.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:InvFilet == false)) {
_root.Fonct.AddInv(8, "InvFilet");
_root.SonGet.play();
tellTarget (_root.Filet) {
nextFrame();
};
} else if (_root.HitBaril.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:InvBaril == false)) {
_root.Fonct.AddInv(6, "InvBaril");
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("Powder");
} else {
_root.SonGet.play();
}
tellTarget (_root.Baril) {
nextFrame();
};
} else if (_root.HitTorche.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:InvTorche == false)) {
_root.Fonct.AddInv(7, "InvTorche");
_root.SonGet.play();
tellTarget (_root.Rebord1) {
nextFrame();
};
} else if ((_root.HitTrappe.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:TrappeOpen == false)) and (/Vars:ObjSelect == 5)) {
Set("/Vars:BossPause", true);
Set("/Vars:StartPlay", 2);
Set("/Vars:PtObjDel", /Vars:PtInvArray);
Set("/Vars:AgpActif", "AgpSsTrappe1");
Set("/Vars:DestX", 177.3);
Set("/Vars:DestY", 284.6);
Set("/Vars:FinAgpX", 173.2);
Set("/Vars:FinAgpY", 363.1);
Set("/Vars:DirFin", 1);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Ss");
} else if ((_root.HitUseBaril.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:Poudre == false)) and (/Vars:ObjSelect == 6)) {
Set("/Vars:StartPlay", 2);
Set("/Vars:PtObjDel", /Vars:PtInvArray);
Set("/Vars:AgpActif", "AgpPoudre");
Set("/Vars:TempDestX", 365.3);
Set("/Vars:TempDestY", 233.1);
Set("/Vars:TempDirFin", 1);
Set("/Vars:DestX", 282);
Set("/Vars:DestY", 192);
Set("/Vars:FinAgpX", 263.4);
Set("/Vars:FinAgpY", 157.8);
Set("/Vars:DirFin", 1);
Set("/Vars:TempPers", "Samy");
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("ScoobWait");
}
_root.Fonct.PersSplit("Ss", "Scooby", "Samy");
Set("/Vars:FinMove", "Tasse");
_root.Fonct.MoveAuto("Scooby");
} else if ((((_root.HitPoudre.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:Poudre == true)) and (/Vars:ObjSelect == 7)) and (/Vars:Boom == false)) and (/Vars:Boss2Toit == true)) {
Set("/Vars:BossStop", true);
loadVariablesNum (/:TrackingUrl add "?episode=4&stage=6", 0);
Set("/Vars:StartPlay", 2);
Set("/Vars:PtObjDel", /Vars:PtInvArray);
Set("/Vars:AgpActif", "AgpAllume");
Set("/Vars:TempDestX", 246.5);
Set("/Vars:TempDestY", 162);
Set("/Vars:TempDirFin", 1);
Set("/Vars:DestX", 191);
Set("/Vars:DestY", 159);
Set("/Vars:FinAgpX", 246.5);
Set("/Vars:FinAgpY", 162);
Set("/Vars:DirFin", 7);
Set("/Vars:TempPers", "Samy");
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("ScoobWait");
}
_root.Fonct.PersSplit("Ss", "Scooby", "Samy");
Set("/Vars:FinMove", "Tasse");
_root.Fonct.MoveAuto("Scooby");
} else if ((_root.HitUseFilet.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:ObjSelect == 8)) and (/Vars:BossActif eq "Boss3")) {
Set("/Vars:StartPlay", 2);
Set("/Vars:PtObjDel", /Vars:PtInvArray);
Set("/Vars:AgpActif", "AgpFilet");
Set("/Vars:DestX", 308.3);
Set("/Vars:DestY", 331.4);
Set("/Vars:FinAgpX", 308.3);
Set("/Vars:FinAgpY", 331.4);
Set("/Vars:DirFin", 8);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Ss");
} else if (_root.HitEscalierBas.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpEscalier");
Set("/Vars:DestX", 229.5);
Set("/Vars:DestY", 147.8);
Set("/Vars:FinAgpX", 284.6);
Set("/Vars:FinAgpY", 55.5);
Set("/Vars:DirFin", 7);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Ss");
} else if (_root.HitEscalierHaut.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:StartPlay", 16);
Set("/Vars:AgpActif", "AgpEscalier");
Set("/Vars:DestX", 279.4);
Set("/Vars:DestY", 49.5);
Set("/Vars:FinAgpX", 217.8);
Set("/Vars:FinAgpY", 142.9);
Set("/Vars:DirFin", 3);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Ss");
} else if (((((_root.HitCanon.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:CanonAttache == false)) and (/Vars:CanonTombe == false)) and (/Vars:CanonEau == false)) and (/Vars:CanonPlonge == false)) and ((/Vars:CanonTourne == false) or (/Vars:ObjSelect == 8))) {
if (/Vars:CanonTourne == false) {
Set("/Vars:StartPlay", 98);
Set("/Vars:AgpActif", "AgpCanon");
Set("/Vars:DestX", 266.5);
Set("/Vars:DestY", 356);
Set("/Vars:FinAgpX", 308.9);
Set("/Vars:FinAgpY", 339.9);
Set("/Vars:DirFin", 7);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Ss");
} else if (/Vars:ObjSelect == 8) {
Set("/Vars:StartPlay", 132);
Set("/Vars:PtObjDel", /Vars:PtInvArray);
Set("/Vars:AgpActif", "AgpCanon");
Set("/Vars:DestX", 273.9);
Set("/Vars:DestY", 328.4);
Set("/Vars:FinAgpX", 273.9);
Set("/Vars:FinAgpY", 328.4);
Set("/Vars:DirFin", 2);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Ss");
}
} else if (((_root.HitTirFilet.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:FiletCanon == true)) and (/Vars:ObjSelect == 7)) and (/Vars:Boss3Filet == true)) {
Set("/Vars:BossStop", true);
_root.AgpCanon.gotoAndStop("Attend");
Set("/Vars:StartPlay", 158);
Set("/Vars:AgpActif", "AgpCanon");
Set("/Vars:TempDestX", 291.6);
Set("/Vars:TempDestY", 366.9);
Set("/Vars:TempDirFin", 8);
Set("/Vars:DestX", 244);
Set("/Vars:DestY", 358);
Set("/Vars:FinAgpX", 291.6);
Set("/Vars:FinAgpY", 366.9);
Set("/Vars:DirFin", 5);
Set("/Vars:TempPers", "Samy");
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("ScoobWait");
}
_root.Fonct.PersSplit("Ss", "Scooby", "Samy");
Set("/Vars:FinMove", "Tasse");
_root.Fonct.MoveAuto("Scooby");
} else if (((/Vars:ObjSelect == 9) and (getProperty("_root.AgpUseFlag", _currentframe) == 1)) and (getProperty("_root.GetFlag", _currentframe) == 1)) {
Set("/Vars:LostControl", true);
_root.AgpUseFlag._x = _root.Ss._x;
_root.AgpUseFlag._y = _root.Ss._y;
_root.AgpUseFlag.swapDepths(/Vars:NiveauSs - 29);
_root.AgpUseFlag.gotoAndStop(getProperty("_root.Ss", _currentframe) + 1);
Set("/Vars:EtatSs", "Cache");
} else if ((((_root.HitPoudre.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:Poudre == true)) and (/Vars:ObjSelect == 7)) and (/Vars:Boom == false)) and (/Vars:Boss2Toit == false)) {
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("NotNow");
}
} else if (_root.HitUseFilet.hitTest(_root.Ss._x, _root.Ss._y, true)) {
if (/Vars:ObjSelect != 8) {
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("WeNeedSome");
}
} else if (/Vars:BossActif ne "Boss3") {
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("NotNow");
}
}
} else if (((_root.HitTirFilet.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:FiletCanon == true)) and (/Vars:ObjSelect == 7)) and (/Vars:Boss3Filet == false)) {
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("NotNow");
}
} else if ((_root.HitMeche.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Voix:Parle == false)) and (/Voix:Meche == false)) {
Set("/Voix:Parle", true);
Set("/Voix:Meche", true);
_root.Voix.gotoAndPlay("Meche");
} else if ((_root.HitCale.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Voix:Parle == false)) and (/Voix:Cale == false)) {
Set("/Voix:Parle", true);
Set("/Voix:Cale", true);
_root.Voix.gotoAndPlay("NoGo");
} else if (((_root.HitTrappe.hitTest(_root.Ss._x, _root.Ss._y, true) and (/Vars:TrappeOpen == false)) and (/Vars:ObjSelect != 5)) and (/Voix:Parle == false)) {
Set("/Voix:Parle", true);
Set("/Voix:Cale", true);
_root.Voix.gotoAndPlay("NotThatWay");
}
}
}
if (/Vars:Peur == true) {
if (/Vars:WaitFear > 0) {
Set("/Vars:WaitFear", /Vars:WaitFear - 1);
}
if (/Vars:WaitFear == 0) {
Set("/Vars:WaitFear", -100);
Set("/Vars:Fear", /Vars:Fear + /Vars:DegreFear);
Set("/Vars:DestX", /Vars:PeurDestX);
Set("/Vars:DestY", /Vars:PeurDestY);
_root.Fonct.MoveAutoPeur(/Vars:PersActif);
}
}
if (getProperty(_root.Interface.FearGauge, _currentframe) < (/Vars:Fear + 1)) {
tellTarget (_root.Interface.FearGauge) {
nextFrame();
};
}
if (/Vars:LostControl == false) {
if ((((/Vars:Haut == false) and (/Vars:Bas == true)) and (/Vars:Gauche == false)) and (/Vars:Droite == true)) {
Set("/Vars:Dir" + /Vars:PersActif, 1);
MoveX = /Vars:MoveXdr;
MoveY = /Vars:MoveYdr;
} else if ((((/Vars:Haut == false) and (/Vars:Bas == true)) and (/Vars:Gauche == true)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 3);
MoveX = /Vars:MoveXdl;
MoveY = /Vars:MoveYdl;
} else if ((((/Vars:Haut == true) and (/Vars:Bas == false)) and (/Vars:Gauche == false)) and (/Vars:Droite == true)) {
Set("/Vars:Dir" + /Vars:PersActif, 7);
MoveX = /Vars:MoveXur;
MoveY = /Vars:MoveYur;
} else if ((((/Vars:Haut == true) and (/Vars:Bas == false)) and (/Vars:Gauche == true)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 5);
MoveX = /Vars:MoveXul;
MoveY = /Vars:MoveYul;
} else if ((((/Vars:Haut == false) and (/Vars:Bas == true)) and (/Vars:Gauche == false)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 2);
MoveX = /Vars:MoveXd;
MoveY = /Vars:MoveYdr;
} else if ((((/Vars:Haut == false) and (/Vars:Bas == false)) and (/Vars:Gauche == true)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 4);
MoveX = /Vars:MoveXl;
MoveY = /Vars:MoveYl;
} else if ((((/Vars:Haut == true) and (/Vars:Bas == false)) and (/Vars:Gauche == false)) and (/Vars:Droite == false)) {
Set("/Vars:Dir" + /Vars:PersActif, 6);
MoveX = /Vars:MoveXu;
MoveY = /Vars:MoveYu;
} else if ((((/Vars:Haut == false) and (/Vars:Bas == false)) and (/Vars:Gauche == false)) and (/Vars:Droite == true)) {
Set("/Vars:Dir" + /Vars:PersActif, 8);
MoveX = /Vars:MoveXr;
MoveY = /Vars:MoveYr;
}
tellTarget ("_root." + /Vars:PersActif) {
gotoAndStop(eval ("/Vars:Dir" + /Vars:PersActif));
};
if ((((/Vars:Haut == true) or (/Vars:Bas == true)) or (/Vars:Droite == true)) or (/Vars:Gauche == true)) {
Set("/Vars:Etat" + /Vars:PersActif, "Marche");
} else {
Set("/Vars:Etat" + /Vars:PersActif, "Idle");
}
if ((eval ("/Vars:Etat" + /Vars:PersActif) eq "Marche") and (!_root.Collider.hitTest(_root[/Vars:PersActif]._x + MoveX, _root[/Vars:PersActif]._y + MoveY, true))) {
setProperty(_root[/Vars:PersActif], _x , getProperty("_root." + /Vars:PersActif, _x) + MoveX);
setProperty(_root[/Vars:PersActif], _y , getProperty("_root." + /Vars:PersActif, _y) + MoveY);
}
}
if (/Vars:MoveAuto == true) {
if ((Math.abs(/Vars:MoveXAgp) >= Math.abs(_root[/Vars:PersActif]._x - /Vars:DestX)) or (Math.abs(/Vars:MoveYAgp) >= Math.abs(_root[/Vars:PersActif]._y - /Vars:DestY))) {
if (/Vars:FinMove eq "Agp") {
Set("/Vars:Etat" + /Vars:PersActif, "PasLa");
tellTarget (("_root." + /Vars:PersActif) + ".Obj") {
gotoAndStop ("PasLa");
};
tellTarget ("_root." + /Vars:AgpActif) {
gotoAndPlay(/Vars:StartPlay);
};
_root[/Vars:PersActif]._x = /Vars:FinAgpX;
_root[/Vars:PersActif]._y = /Vars:FinAgpY;
Set("/Vars:Dir" + /Vars:PersActif, /Vars:DirFin);
tellTarget ("_root." + /Vars:PersActif) {
gotoAndStop(eval ("/Vars:Dir" + /Vars:PersActif));
};
Set("/Vars:MoveAuto", false);
} else if (/Vars:FinMove eq "FinMarche") {
_root[/Vars:PersActif]._x = _root[/Vars:PersActif]._x + /Vars:MoveX;
_root[/Vars:PersActif]._y = _root[/Vars:PersActif]._y + /Vars:MoveY;
Set("/Vars:Peur", false);
Set("/Vars:LostControl", false);
Set("/Vars:MoveAuto", false);
} else if (/Vars:FinMove eq "MergePers") {
Set("/Vars:EtatSamy", "PasLa");
Set("/Vars:EtatScooby", "PasLa");
Set("/Vars:EtatSs", "Idle");
Set("/Vars:PersActif", "Ss");
Set("/Vars:LostControl", false);
Set("/Vars:MoveAuto", false);
} else if (/Vars:FinMove eq "Parle") {
Set("/Vars:LostControl", false);
if (/Vars:Dialog ne "") {
_root.Voix.gotoAndPlay(/Vars:Dialog);
}
if (/Vars:VDialog ne "") {
Set("/Voix:" + /Vars:VDialog, true);
}
Set("/Vars:Etat" + /Vars:PersActif, "Idle");
tellTarget (("_root." + /Vars:PersActif) + ".Obj") {
gotoAndStop ("Idle");
};
Set("/Vars:Dir" + /Vars:PersActif, /Vars:DirFin);
tellTarget ("_root." + /Vars:PersActif) {
gotoAndStop(eval ("/Vars:Dir" + /Vars:PersActif));
};
Set("/Vars:MoveAuto", false);
} else if (/Vars:FinMove eq "Tasse") {
Set("/Vars:Etat" + /Vars:PersActif, "Idle");
Set("/Vars:Dir" + /Vars:PersActif, /Vars:DirFin);
tellTarget ("_root." + /Vars:PersActif) {
gotoAndStop(eval ("/Vars:Dir" + /Vars:PersActif));
};
Set("/Vars:DestX", /Vars:TempDestX);
Set("/Vars:DestY", /Vars:TempDestY);
Set("/Vars:DirFin", /Vars:TempDirFin);
Set("/Vars:FinMove", "Agp");
Set("/Vars:MoveAuto", false);
Set("/Vars:PersActif", /Vars:TempPers);
_root.Fonct.MoveAuto(/Vars:TempPers);
}
} else {
setProperty(_root[/Vars:PersActif], _x , getProperty("_root." + /Vars:PersActif, _x) + /Vars:MoveXAgp);
setProperty(_root[/Vars:PersActif], _y , getProperty("_root." + /Vars:PersActif, _y) + /Vars:MoveYAgp);
}
}
if (/Vars:BossActif eq "Boss1") {
if ((/Vars:EtatBoss eq "PasLa") and (getProperty(_root.AgpBoss1, _currentframe) == 1)) {
if (/Vars:WaitBoss1 < /Vars:BossWait) {
if (/Vars:BossPause == false) {
Set("/Vars:WaitBoss1", /Vars:WaitBoss1 + 1);
}
} else {
Set("/Vars:WaitBoss1", 0);
Set("/Vars:SensBoss", "Va");
Set("/Vars:PtBoss", 1);
Set("/Vars:BossX", _root.p1._x);
Set("/Vars:BDestX", _root.p1._x);
Set("/Vars:BossY", _root.p1._y);
Set("/Vars:BDestY", _root.p1._y);
Set("/Vars:MoveXBoss", 0);
Set("/Vars:MoveYBoss", 0);
_root.Boss1._x = /Vars:BossX;
_root.Boss1._y = /Vars:BossY;
_root.AgpBoss1.play();
}
}
if ((((_root.Boss1._x >= (_root.p3._x - 3)) and (_root.Boss1._x <= (_root.p3._x + 3))) and (_root.Boss1._y >= (_root.p3._y - 3))) and (_root.Boss1._y <= (_root.p3._y + 3))) {
Set("/Vars:Boss1Grille", true);
} else {
Set("/Vars:Boss1Grille", false);
}
if (/Vars:EtatBoss eq "Marche") {
if ((Math.abs(/Vars:MoveXBoss) >= Math.abs(_root.Boss1._x - /Vars:BDestX)) or (Math.abs(/Vars:MoveYBoss) >= Math.abs(_root.Boss1._y - /Vars:BDestY))) {
_root.Boss1._x = /Vars:BDestX;
_root.Boss1._y = /Vars:BDestY;
if (/Vars:SensBoss eq "Va") {
if (/Vars:PtBoss == 1) {
Set("/Vars:PtBoss", 2);
Set("/Vars:BDestX", _root.p2._x);
Set("/Vars:BDestY", _root.p2._y);
Set("/Vars:DirBoss", "ru");
Set("/Vars:DirBFinIdle", "ru");
_root.Fonct.MoveBoss("Boss1");
} else if (/Vars:PtBoss == 2) {
Set("/Vars:PtBoss", 3);
Set("/Vars:BDestX", _root.p3._x);
Set("/Vars:BDestY", _root.p3._y);
Set("/Vars:DirBoss", "rd");
Set("/Vars:DirBFinIdle", "rd");
_root.Fonct.MoveBoss("Boss1");
} else if (/Vars:PtBoss == 3) {
Set("/Vars:PtBoss", 2);
Set("/Vars:BDestX", _root.p2._x);
Set("/Vars:BDestY", _root.p2._y);
Set("/Vars:SensBoss", "Vient");
Set("/Vars:EtatBoss", "Idle");
Set("/Vars:DirBFinIdle", "lu");
_root.Fonct.MoveBoss("Boss1");
}
} else if (/Vars:SensBoss eq "Vient") {
if (/Vars:PtBoss == 2) {
Set("/Vars:PtBoss", 1);
Set("/Vars:BDestX", _root.p1._x);
Set("/Vars:BDestY", _root.p1._y);
Set("/Vars:DirBoss", "ld");
Set("/Vars:DirBFinIdle", "ld");
_root.Fonct.MoveBoss("Boss1");
} else if (/Vars:PtBoss == 1) {
Set("/Vars:PtBoss", 1);
Set("/Vars:BDestX", _root.p1._x);
Set("/Vars:BDestY", _root.p1._y);
Set("/Vars:SensBoss", "Va");
Set("/Vars:DirBoss", "ru");
Set("/Vars:DirBFinIdle", "ru");
Set("/Vars:EtatBoss", "PasLa");
_root.AgpBoss1.gotoAndStop(1);
}
}
} else {
_root.Boss1._x = _root.Boss1._x + /Vars:MoveXBoss;
_root.Boss1._y = _root.Boss1._y + /Vars:MoveYBoss;
}
}
} else if (/Vars:BossActif eq "Boss2") {
if ((((_root.Boss1._x >= (_root.p6._x - 3)) and (_root.Boss1._x <= (_root.p6._x + 3))) and (_root.Boss1._y >= (_root.p6._y - 3))) and (_root.Boss1._y <= (_root.p6._y + 3))) {
Set("/Vars:Boss2Toit", true);
} else {
Set("/Vars:Boss2Toit", false);
}
if ((/Vars:EtatBoss eq "PasLa") and (getProperty(_root.AgpBoss2, _currentframe) == 1)) {
if (/Vars:WaitBoss1 < /Vars:BossWait) {
if (/Vars:BossPause == false) {
Set("/Vars:WaitBoss1", /Vars:WaitBoss1 + 1);
}
} else {
Set("/Vars:WaitBoss1", 0);
Set("/Vars:SensBoss", "Va");
Set("/Vars:PtBoss", 4);
Set("/Vars:BossX", _root.p4._x);
Set("/Vars:BDestX", _root.p4._x);
Set("/Vars:BossY", _root.p4._y);
Set("/Vars:BDestY", _root.p4._y);
Set("/Vars:MoveXBoss", 0);
Set("/Vars:MoveYBoss", 0);
_root.Boss1._x = /Vars:BossX;
_root.Boss1._y = /Vars:BossY;
_root.AgpBoss2.play();
}
}
if (/Vars:EtatBoss eq "Marche") {
if ((Math.abs(/Vars:MoveXBoss) >= Math.abs(_root.Boss1._x - /Vars:BDestX)) or (Math.abs(/Vars:MoveYBoss) >= Math.abs(_root.Boss1._y - /Vars:BDestY))) {
_root.Boss1._x = /Vars:BDestX;
_root.Boss1._y = /Vars:BDestY;
if (/Vars:SensBoss eq "Va") {
if (/Vars:PtBoss == 4) {
Set("/Vars:PtBoss", 5);
Set("/Vars:BDestX", _root.p5._x);
Set("/Vars:BDestY", _root.p5._y);
Set("/Vars:EtatBoss", "Marche");
Set("/Vars:DirBFinIdle", "rd");
_root.Fonct.MoveBoss("Boss1");
} else if (/Vars:PtBoss == 5) {
Set("/Vars:PtBoss", 6);
Set("/Vars:BDestX", _root.p6._x);
Set("/Vars:BDestY", _root.p6._y);
Set("/Vars:EtatBoss", "Marche");
Set("/Vars:DirBoss", "ld");
Set("/Vars:DirBFinIdle", "ld");
_root.Fonct.MoveBoss("Boss1");
} else if (/Vars:PtBoss == 6) {
Set("/Vars:PtBoss", 5);
Set("/Vars:BDestX", _root.p5._x);
Set("/Vars:BDestY", _root.p5._y);
Set("/Vars:SensBoss", "Vient");
Set("/Vars:EtatBoss", "Idle");
Set("/Vars:DirBFinIdle", "ru");
_root.Fonct.MoveBoss("Boss1");
}
} else if (/Vars:SensBoss eq "Vient") {
if (/Vars:PtBoss == 5) {
Set("/Vars:PtBoss", 4);
Set("/Vars:BDestX", _root.p4._x);
Set("/Vars:BDestY", _root.p4._y);
Set("/Vars:EtatBoss", "Marche");
Set("/Vars:DirBoss", "lu");
Set("/Vars:DirBFinIdle", "lu");
_root.Fonct.MoveBoss("Boss1");
} else if (/Vars:PtBoss == 4) {
Set("/Vars:PtBoss", 4);
Set("/Vars:BDestX", _root.p4._x);
Set("/Vars:BDestY", _root.p4._y);
Set("/Vars:SensBoss", "Va");
Set("/Vars:EtatBoss", "Idle");
_root.AgpBoss2.play();
}
}
} else {
_root.Boss1._x = _root.Boss1._x + /Vars:MoveXBoss;
_root.Boss1._y = _root.Boss1._y + /Vars:MoveYBoss;
}
}
} else if (/Vars:BossActif eq "Boss3") {
if ((((_root.Boss3._x >= (_root.p8._x - 3)) and (_root.Boss3._x <= (_root.p8._x + 3))) and (_root.Boss3._y >= (_root.p8._y - 3))) and (_root.Boss3._y <= (_root.p8._y + 3))) {
Set("/Vars:Boss3Filet", true);
} else {
Set("/Vars:Boss3Filet", false);
}
if ((/Vars:EtatBoss eq "PasLa") and (getProperty(_root.AgpBoss3, _currentframe) == 1)) {
if (/Vars:WaitBoss1 < /Vars:BossWait) {
if (/Vars:BossPause == false) {
Set("/Vars:WaitBoss1", /Vars:WaitBoss1 + 1);
}
} else {
Set("/Vars:WaitBoss1", 0);
Set("/Vars:SensBoss", "Va");
Set("/Vars:PtBoss", 7);
Set("/Vars:BossX", _root.p7._x);
Set("/Vars:BDestX", _root.p7._x);
Set("/Vars:BossY", _root.p7._y);
Set("/Vars:BDestY", _root.p7._y);
Set("/Vars:MoveXBoss", 0);
Set("/Vars:MoveYBoss", 0);
_root.Boss3._x = /Vars:BossX;
_root.Boss3._y = /Vars:BossY;
_root.AgpBoss3.play();
}
}
if (/Vars:EtatBoss eq "Marche") {
if ((Math.abs(/Vars:MoveXBoss) >= Math.abs(_root.Boss3._x - /Vars:BDestX)) or (Math.abs(/Vars:MoveYBoss) >= Math.abs(_root.Boss3._y - /Vars:BDestY))) {
_root.Boss3._x = /Vars:BDestX;
_root.Boss3._y = /Vars:BDestY;
if (/Vars:SensBoss eq "Va") {
if (/Vars:PtBoss == 7) {
Set("/Vars:PtBoss", 8);
Set("/Vars:BDestX", _root.p8._x);
Set("/Vars:BDestY", _root.p8._y);
Set("/Vars:EtatBoss", "Marche");
Set("/Vars:DirBFinIdle", "ld");
_root.Fonct.MoveBoss("Boss3");
} else if (/Vars:PtBoss == 8) {
Set("/Vars:PtBoss", 7);
Set("/Vars:BDestX", _root.p7._x);
Set("/Vars:BDestY", _root.p7._y);
Set("/Vars:DirBoss", "lu");
Set("/Vars:SensBoss", "Vient");
Set("/Vars:EtatBoss", "Idle");
Set("/Vars:DirBFinIdle", "ru");
_root.Fonct.MoveBoss("Boss3");
}
} else if (/Vars:SensBoss eq "Vient") {
if (/Vars:PtBoss == 7) {
Set("/Vars:PtBoss", 7);
Set("/Vars:BDestX", _root.p7._x);
Set("/Vars:BDestY", _root.p7._y);
Set("/Vars:SensBoss", "Va");
_root.AgpBoss3.play();
}
}
} else {
_root.Boss3._x = _root.Boss3._x + /Vars:MoveXBoss;
_root.Boss3._y = _root.Boss3._y + /Vars:MoveYBoss;
}
}
}
if ((/Vars:BossActif eq "Boss1") or (/Vars:BossActif eq "Boss2")) {
if ((((((((/Vars:BossActif eq "Boss1") and (_root.Boss1._y < 292)) and (!_root.HitCachette3.hitTest(_root.Ss._x, _root.Ss._y, true))) or (((/Vars:BossActif eq "Boss2") and (!_root.HitCachette1.hitTest(_root.Ss._x, _root.Ss._y, true))) and (!_root.HitCachette2.hitTest(_root.Ss._x, _root.Ss._y, true)))) and (/Vars:EtatBoss ne "Fear")) and (/Vars:EtatBoss ne "PasLa")) and (/Vars:EtatSs ne "Peur")) and (/Vars:EtatSs ne "Cache")) {
XCentre = _root.Boss1._x + (_root.Boss1.See3._x * /Vars:BScale);
YCentre = _root.Boss1._y + (_root.Boss1.See3._y * /Vars:BScale);
XSs = _root.Ss._x;
YSs = _root.Ss._y;
X1 = _root.Boss1._x + (_root.Boss1.See1._x * /Vars:BScale);
Y1 = _root.Boss1._y + (_root.Boss1.See1._y * /Vars:BScale);
X2 = _root.Boss1._x + (_root.Boss1.See2._x * /Vars:BScale);
Y2 = _root.Boss1._y + (_root.Boss1.See2._y * /Vars:BScale);
M1 = (Y2 - Y1) / (X2 - X1);
B1 = Y1 - (M1 * X1);
if ((YCentre - (M1 * XCentre)) > B1) {
if ((YSs - (M1 * XSs)) >= B1) {
if ((/Vars:EtatSs eq "PasLa") and (/Vars:Peur == false)) {
Set("/Vars:EtatBoss", "Wait");
} else {
Set("/Vars:EtatBoss", "Fear");
}
}
} else if ((YSs - (M1 * XSs)) <= B1) {
if ((/Vars:EtatSs eq "PasLa") and (/Vars:Peur == false)) {
Set("/Vars:EtatBoss", "Wait");
} else {
Set("/Vars:EtatBoss", "Fear");
}
}
if ((/Vars:EtatBoss eq "Fear") or (/Vars:EtatBoss eq "Wait")) {
if (_root.Ss._x <= _root.Boss1._x) {
if (_root.Ss._y <= _root.Boss1._y) {
Set("/Vars:DirBoss", "lu");
_root.Boss1.gotoAndStop(3);
} else {
Set("/Vars:DirBoss", "ld");
_root.Boss1.gotoAndStop(2);
}
} else if (_root.Ss._y <= _root.Boss1._y) {
Set("/Vars:DirBoss", "ru");
_root.Boss1.gotoAndStop(4);
} else {
Set("/Vars:DirBoss", "rd");
_root.Boss1.gotoAndStop(1);
}
if (/Vars:EtatBoss eq "Fear") {
Set("/Vars:Peur", true);
Set("/Vars:DirFin", 1);
Set("/Vars:DegreFear", 20);
Set("/Vars:WaitFear", 8);
Set("/Vars:FinMove", "Agp");
if (_root.HitFear1.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite1");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 469.9);
Set("/Vars:PeurDestY", 54);
Set("/Vars:FinAgpX", 469.9);
Set("/Vars:FinAgpY", 54);
} else if (_root.HitFear2.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite2");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 445.4);
Set("/Vars:PeurDestY", 90);
Set("/Vars:FinAgpX", 445.4);
Set("/Vars:FinAgpY", 90);
} else if (_root.HitFear3.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite3");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 317.8);
Set("/Vars:PeurDestY", 26.3);
Set("/Vars:FinAgpX", 317.8);
Set("/Vars:FinAgpY", 26.3);
} else if (_root.HitFear4.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite4");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 196.7);
Set("/Vars:PeurDestY", 169.3);
Set("/Vars:FinAgpX", 196.7);
Set("/Vars:FinAgpY", 169.3);
} else if (_root.HitFear5.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite5");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 82.1);
Set("/Vars:PeurDestY", 254.7);
Set("/Vars:FinAgpX", 82.1);
Set("/Vars:FinAgpY", 254.7);
} else if (_root.HitFear6.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite6");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 285);
Set("/Vars:PeurDestY", 202.6);
Set("/Vars:FinAgpX", 285);
Set("/Vars:FinAgpY", 202.6);
} else if (_root.HitFear7.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite7");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 308.9);
Set("/Vars:PeurDestY", 278.4);
Set("/Vars:FinAgpX", 308.9);
Set("/Vars:FinAgpY", 278.4);
} else if (_root.HitFear8.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite8");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 203.8);
Set("/Vars:PeurDestY", 362.4);
Set("/Vars:FinAgpX", 203.8);
Set("/Vars:FinAgpY", 362.4);
} else if (_root.HitFear9.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite9");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 181.6);
Set("/Vars:PeurDestY", 279.3);
Set("/Vars:FinAgpX", 181.6);
Set("/Vars:FinAgpY", 279.3);
} else if (_root.HitFear11.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite11");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 18.9);
Set("/Vars:PeurDestY", 393.5);
Set("/Vars:FinAgpX", 18.9);
Set("/Vars:FinAgpY", 393.5);
}
}
}
}
} else if (/Vars:BossActif eq "Boss3") {
if (((((/Vars:EtatBoss ne "Fear") and (/Vars:EtatBoss ne "PasLa")) and (/Vars:EtatSs ne "Peur")) and (/Vars:EtatSs ne "Cache")) and (!_root.HitCachette3.hitTest(_root.Ss._x, _root.Ss._y, true))) {
XCentre = _root.Boss3._x + (_root.Boss3.See3._x * /Vars:BScale);
YCentre = _root.Boss3._y + (_root.Boss3.See3._y * /Vars:BScale);
XSs = _root.Ss._x;
YSs = _root.Ss._y;
X1 = _root.Boss3._x + (_root.Boss3.See1._x * /Vars:BScale);
Y1 = _root.Boss3._y + (_root.Boss3.See1._y * /Vars:BScale);
X2 = _root.Boss3._x + (_root.Boss3.See2._x * /Vars:BScale);
Y2 = _root.Boss3._y + (_root.Boss3.See2._y * /Vars:BScale);
M1 = (Y2 - Y1) / (X2 - X1);
B1 = Y1 - (M1 * X1);
if ((YCentre - (M1 * XCentre)) > B1) {
if ((YSs - (M1 * XSs)) >= B1) {
if ((/Vars:EtatSs eq "PasLa") and (/Vars:Peur == false)) {
Set("/Vars:EtatBoss", "Wait");
} else {
Set("/Vars:EtatBoss", "Fear");
}
}
} else if ((YSs - (M1 * XSs)) <= B1) {
if ((/Vars:EtatSs eq "PasLa") and (/Vars:Peur == false)) {
Set("/Vars:EtatBoss", "Wait");
} else {
Set("/Vars:EtatBoss", "Fear");
}
}
if ((/Vars:EtatBoss eq "Fear") or (/Vars:EtatBoss eq "Wait")) {
if (_root.Ss._x <= _root.Boss3._x) {
if (_root.Ss._y <= _root.Boss3._y) {
Set("/Vars:DirBoss", "lu");
_root.Boss3.gotoAndStop(6);
} else {
Set("/Vars:DirBoss", "ld");
_root.Boss3.gotoAndStop(5);
}
} else if (_root.Ss._y <= _root.Boss3._y) {
Set("/Vars:DirBoss", "ru");
_root.Boss3.gotoAndStop(3);
} else {
Set("/Vars:DirBoss", "rd");
_root.Boss3.gotoAndStop(2);
}
if (/Vars:EtatBoss eq "Fear") {
Set("/Vars:Peur", true);
Set("/Vars:DirFin", 1);
Set("/Vars:DegreFear", 20);
Set("/Vars:WaitFear", 8);
Set("/Vars:FinMove", "Agp");
if (_root.HitFear1.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite1");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 469.9);
Set("/Vars:PeurDestY", 54);
Set("/Vars:FinAgpX", 469.9);
Set("/Vars:FinAgpY", 54);
} else if (_root.HitFear2.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite2");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 445.4);
Set("/Vars:PeurDestY", 90);
Set("/Vars:FinAgpX", 445.4);
Set("/Vars:FinAgpY", 90);
} else if (_root.HitFear3.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite3");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 317.8);
Set("/Vars:PeurDestY", 26.3);
Set("/Vars:FinAgpX", 317.8);
Set("/Vars:FinAgpY", 26.3);
} else if (_root.HitFear4.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite4");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 196.7);
Set("/Vars:PeurDestY", 169.3);
Set("/Vars:FinAgpX", 196.7);
Set("/Vars:FinAgpY", 169.3);
} else if (_root.HitFear5.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite5");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 82.1);
Set("/Vars:PeurDestY", 254.7);
Set("/Vars:FinAgpX", 82.1);
Set("/Vars:FinAgpY", 254.7);
} else if (_root.HitFear6.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite6");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 285);
Set("/Vars:PeurDestY", 202.6);
Set("/Vars:FinAgpX", 285);
Set("/Vars:FinAgpY", 202.6);
} else if (_root.HitFear7.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite7");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 308.9);
Set("/Vars:PeurDestY", 278.4);
Set("/Vars:FinAgpX", 308.9);
Set("/Vars:FinAgpY", 278.4);
} else if (_root.HitFear8.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite8");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 203.8);
Set("/Vars:PeurDestY", 362.4);
Set("/Vars:FinAgpX", 203.8);
Set("/Vars:FinAgpY", 362.4);
} else if (_root.HitFear9.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite9");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 181.6);
Set("/Vars:PeurDestY", 279.3);
Set("/Vars:FinAgpX", 181.6);
Set("/Vars:FinAgpY", 279.3);
} else if (_root.HitFear11.hitTest(_root.Ss._x, _root.Ss._y, true)) {
Set("/Vars:AgpActif", "AgpFuite11");
Set("/Vars:StartPlay", 2);
Set("/Vars:PeurDestX", 18.9);
Set("/Vars:PeurDestY", 393.5);
Set("/Vars:FinAgpX", 18.9);
Set("/Vars:FinAgpY", 393.5);
}
}
}
}
}
if (/Vars:BossActif ne "Boss3") {
tellTarget (_root.Boss1) {
gotoAndStop(/Vars:DirBoss);
};
tellTarget (_root.Boss1.Obj) {
gotoAndStop(/Vars:EtatBoss);
};
} else {
tellTarget (_root.Boss3) {
gotoAndStop(/Vars:DirBoss);
};
tellTarget (_root.Boss3.Obj) {
gotoAndStop(/Vars:EtatBoss);
};
}
}
if (/Vars:SortTab == false) {
tellTarget ("_root.Scooby.Obj") {
gotoAndStop(/Vars:EtatScooby);
};
tellTarget ("_root.Samy.Obj") {
gotoAndStop(/Vars:EtatSamy);
};
tellTarget ("_root.Ss.Obj") {
gotoAndStop(/Vars:EtatSs);
};
if (/Vars:Pause == true) {
if (/Vars:InvTorche == false) {
_root.Rebord1.Torche.stop();
}
if ((/Vars:BossActif eq "Boss1") or (/Vars:BossActif eq "Boss2")) {
tellTarget (_root.Boss1.Obj.Etat) {
stop();
};
}
if (/Vars:BossActif eq "Boss3") {
tellTarget (_root.Boss3.Obj.Etat) {
stop();
};
}
tellTarget (_root.Samy.Obj.Etat) {
stop();
};
tellTarget (_root.Scooby.Obj.Etat) {
stop();
};
tellTarget (_root.Ss.Obj.Etat1) {
stop();
};
tellTarget (_root.Ss.Obj.Etat2) {
stop();
};
} else {
if (/Vars:InvTorche == false) {
_root.Rebord1.Torche.play();
}
if ((/Vars:BossActif eq "Boss1") or (/Vars:BossActif eq "Boss2")) {
tellTarget (_root.Boss1.Obj.Etat) {
play();
};
}
if (/Vars:BossActif eq "Boss3") {
tellTarget (_root.Boss3.Obj.Etat) {
play();
};
}
tellTarget (_root.Samy.Obj.Etat) {
play();
};
tellTarget (_root.Scooby.Obj.Etat) {
play();
};
tellTarget (_root.Ss.Obj.Etat1) {
play();
};
tellTarget (_root.Ss.Obj.Etat2) {
play();
};
}
if (/Vars:Mort == true) {
Set("/Vars:Pause", true);
Set("/Vars:Mort", false);
_root.gotoAndPlay("Mort");
}
if ((/Vars:Saving == true) and (/Vars:Mort == false)) {
Set("/Vars:Pause", true);
Set("/Vars:Saving", false);
_root.SaveLoad.gotoAndPlay("Save");
}
}
}
Instance of Symbol 2745 MovieClip "HitCachette1" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2747 MovieClip "HitCachette3" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitFlag" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitFilet" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitUseFilet" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitCanon" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitTirFilet" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitMeche" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 2092 MovieClip "HitCale" in Frame 413
onClipEvent (load) {
_visible = 0;
}
Frame 414
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:InvOuvert", false);
_root.Interface.Inv.gotoAndStop("Close");
_root.FermeTab.play();
Frame 431
stopAllSounds();
_root.Fonct:DeleteObj();
_root.Fonct:Load();
Frame 436
_root.Fonct:Load();
Set("/Vars:Pause", true);
Frame 440
stopAllSounds();
_root.Fonct:DeleteObj();
Frame 443
Set("/Vars:SortTab", false);
stop();
Frame 444
stopAllSounds();
_root.Fonct:DeleteObj();
Frame 447
Set("/Vars:SortTab", false);
stop();
Frame 449
stopAllSounds();
Set("/Vars:SortTab", false);
Set("/Vars:Sec", /Vars:Sec * 1000);
Set("/Vars:Min", /Vars:Min * 60000);
Set("/Vars:Heure", /Vars:Heure * 3600000);
Set("/:g_total_time", int((/Vars:Heure + /Vars:Min) + /Vars:Sec));
if (/:g_frame != 20) {
Set("/:g_frame", int((/:g_frame * 1000) / 20));
Set("/:g_total_time", /:g_total_time + /:g_frame);
}
_root.Fonct:DeleteObj();
Frame 450
ifFrameLoaded (2721) {
gotoAndPlay (553);
}
Frame 451
stop();
Instance of Symbol 3160 MovieClip in Frame 451
onClipEvent (enterFrame) {
ifFrameLoaded (2721) {
tellTarget ("_parent") {
nextFrame();
};
}
}
Frame 452
gotoAndPlay (553);
Frame 461
gotoAndPlay (553);
Frame 462
stopAllSounds();
_root.Fonct:DeleteObj();
delete Vars;
Frame 463
gotoAndPlay (467);
Frame 552
gotoAndStop (3);
Frame 2619
loadVariablesNum (/:TrackingUrl add "?episode=4&stage=8", 0);
Instance of Symbol 488 MovieClip in Frame 2716
/* no clip actions */
Frame 2721
if (/:Challenge == true) {
loadMovie ("/sd_brand/med/timer/lowtime.swf", "MovieTimer");
stop();
} else {
gotoAndStop (3);
}
Symbol 40 MovieClip Frame 14
_root.gotoAndStop("Joue");
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 100
nextFrame();
Symbol 41 MovieClip Frame 101
stop();
Symbol 47 Button
on (release) {
_root.gotoAndStop("Instruct1");
}
Symbol 48 MovieClip Frame 1
ifFrameLoaded (31) {
_root.InsButton.gotoAndPlay(3);
}
Symbol 48 MovieClip Frame 2
stop();
Symbol 48 MovieClip Frame 3
play();
Symbol 48 MovieClip Frame 13
stop();
Symbol 51 Button
on (release) {
getURL (/:QuitUrl, "_self");
}
Symbol 52 MovieClip Frame 11
stop();
Symbol 54 Button
on (release) {
tellTarget ("_root") {
gotoAndStop ("Choose");
};
}
Symbol 55 MovieClip Frame 11
stop();
Symbol 57 Button
on (release) {
Set("/:Challenge", false);
tellTarget ("_root") {
gotoAndPlay ("Loading");
};
}
Symbol 58 MovieClip Frame 11
stop();
Symbol 59 MovieClip Frame 1
ObjSave = SharedObject.getLocal("ScoobEpi4");
if (ObjSave.data.Valeurs != null) {
delete ObjSave;
gotoAndPlay (2);
} else {
delete ObjSave;
gotoAndPlay (16);
}
Symbol 59 MovieClip Frame 15
stop();
Symbol 59 MovieClip Frame 26
stop();
Symbol 61 Button
on (release) {
Set("/:Challenge", false);
_root.gotoAndStop("Joue");
}
Symbol 62 MovieClip Frame 11
stop();
Symbol 64 Button
on (release) {
Set("/:Challenge", true);
_root.gotoAndPlay("New");
}
Symbol 65 MovieClip Frame 11
stop();
Symbol 67 Button
on (release) {
Set("/:Challenge", false);
_root.gotoAndPlay("New");
}
Symbol 68 MovieClip Frame 11
stop();
Symbol 73 Button
on (release) {
_root.gotoAndStop("Instruct2");
}
Symbol 74 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 141 Button
on (release) {
_root.gotoAndStop("Instruct1");
}
Symbol 155 MovieClip Frame 31
stop();
Symbol 493 MovieClip Frame 3
_root.Mus.Mus.setVolume(100);
Symbol 493 MovieClip Frame 4
stop();
Symbol 493 MovieClip Frame 5
stop();
Instance of Symbol 492 MovieClip "Control" in Symbol 493 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_parent.Mus.getVolume() != _parent:VolDest) {
if (_parent.Mus.getVolume() > _parent:VolDest) {
_parent.Mus.setVolume(_parent.Mus.getVolume() - _parent:Fade);
} else {
_parent.Mus.setVolume(_parent.Mus.getVolume() + _parent:Fade);
}
} else {
_parent.prevFrame();
}
}
Symbol 497 MovieClip Frame 1
Set("/Voix:Parle", false);
stop();
Symbol 497 MovieClip Frame 5
Set("/Voix:Parle", true);
if (random(100) < 50) {
gotoAndPlay (6);
} else {
gotoAndPlay (28);
}
Symbol 497 MovieClip Frame 7
gotoAndStop (1);
Symbol 497 MovieClip Frame 29
gotoAndStop (1);
Symbol 499 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 3
gotoAndStop (1);
Symbol 501 MovieClip Frame 5
gotoAndStop (1);
Symbol 502 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 1
Parle = false;
stop();
Symbol 519 MovieClip Frame 2
Parle = true;
Symbol 519 MovieClip Frame 34
gotoAndStop (1);
Symbol 519 MovieClip Frame 35
Parle = true;
Symbol 519 MovieClip Frame 67
gotoAndStop (1);
Symbol 519 MovieClip Frame 68
Parle = true;
Symbol 519 MovieClip Frame 93
gotoAndStop (1);
Symbol 519 MovieClip Frame 94
Parle = true;
Symbol 519 MovieClip Frame 134
gotoAndStop (1);
Symbol 519 MovieClip Frame 135
Parle = true;
Symbol 519 MovieClip Frame 172
gotoAndStop (1);
Symbol 519 MovieClip Frame 173
Parle = true;
Symbol 519 MovieClip Frame 226
gotoAndStop (1);
Symbol 519 MovieClip Frame 227
Parle = true;
Symbol 519 MovieClip Frame 244
gotoAndStop (1);
Symbol 519 MovieClip Frame 245
Parle = true;
Symbol 519 MovieClip Frame 268
gotoAndStop (1);
Symbol 519 MovieClip Frame 269
Parle = true;
Symbol 519 MovieClip Frame 298
gotoAndStop (1);
Symbol 519 MovieClip Frame 299
Parle = true;
Symbol 519 MovieClip Frame 322
gotoAndStop (1);
Symbol 519 MovieClip Frame 323
Parle = true;
Symbol 519 MovieClip Frame 371
gotoAndStop (1);
Symbol 519 MovieClip Frame 372
Parle = true;
Symbol 519 MovieClip Frame 397
gotoAndStop (1);
Symbol 519 MovieClip Frame 398
Parle = true;
Symbol 519 MovieClip Frame 449
gotoAndStop (1);
Symbol 519 MovieClip Frame 450
Parle = true;
Symbol 519 MovieClip Frame 451
gotoAndStop (1);
Symbol 519 MovieClip Frame 452
Parle = true;
Symbol 519 MovieClip Frame 485
gotoAndStop (1);
Symbol 519 MovieClip Frame 486
Parle = true;
Symbol 519 MovieClip Frame 521
gotoAndStop (1);
Symbol 519 MovieClip Frame 522
Parle = true;
Symbol 519 MovieClip Frame 551
gotoAndStop (1);
Symbol 524 MovieClip Frame 100
Set("/Vars:Mort", true);
Symbol 524 MovieClip Frame 101
Set("/Vars:Mort", true);
Symbol 524 MovieClip Frame 102
Set("/Vars:Mort", true);
Symbol 524 MovieClip Frame 103
Set("/Vars:Mort", true);
Symbol 524 MovieClip Frame 104
Set("/Vars:Mort", true);
Symbol 527 MovieClip Frame 20
_root:Vars.Sec = _root:Vars.Sec + 1;
if (_root:Vars.Sec >= 60) {
_root:Vars.Sec = 0;
_root:Vars.Min = _root:Vars.Min + 1;
}
if (_root:Vars.Min >= 60) {
_root:Vars.Min = 0;
_root:Vars.Heure = _root:Vars.Heure + 1;
}
if (_root:Vars.Sec < 10) {
TempSec = "0" + _root:Vars.Sec;
} else {
TempSec = _root:Vars.Sec;
}
if (_root:Vars.Min < 10) {
TempMin = "0" + _root:Vars.Min;
} else {
TempMin = _root:Vars.Min;
}
if (_root:Vars.Heure < 10) {
TempHeure = "0" + _root:Vars.Heure;
} else {
TempHeure = _root:Vars.Heure;
}
_parent.Temps = (((TempHeure + ":") + TempMin) + ":") + TempSec;
Instance of Symbol 527 MovieClip "Counter" in Symbol 530 MovieClip Frame 1
onClipEvent (load) {
if (_root:Vars.Sec < 10) {
TempSec = "0" + _root:Vars.Sec;
} else {
TempSec = _root:Vars.Sec;
}
if (_root:Vars.Min < 10) {
TempMin = "0" + _root:Vars.Min;
} else {
TempMin = _root:Vars.Min;
}
if (_root:Vars.Heure < 10) {
TempHeure = "0" + _root:Vars.Heure;
} else {
TempHeure = _root:Vars.Heure;
}
_parent.Temps = (((TempHeure + ":") + TempMin) + ":") + TempSec;
}
onClipEvent (unload) {
Set("/:g_frame", this._currentframe);
}
Instance of Symbol 529 MovieClip in Symbol 530 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.Vars:Pause == true) and (_root.Vars:InvOuvert == false)) {
_parent.Counter.stop();
} else {
_parent.Counter.play();
}
}
Symbol 531 MovieClip Frame 1
if (/:Challenge == true) {
nextFrame();
} else {
stop();
}
Symbol 531 MovieClip Frame 2
stop();
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 2
stop();
Symbol 546 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 2
stop();
Symbol 549 MovieClip Frame 1
stop();
Symbol 549 MovieClip Frame 2
stop();
Symbol 551 MovieClip Frame 1
stop();
Symbol 551 MovieClip Frame 2
stop();
Symbol 564 MovieClip Frame 1
stop();
Symbol 564 MovieClip Frame 2
stop();
Symbol 571 MovieClip Frame 1
stop();
Symbol 571 MovieClip Frame 2
stop();
Symbol 576 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 2
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 2
stop();
Symbol 580 MovieClip Frame 1
gotoAndStop(/Vars:ObjSelect);
Instance of Symbol 488 MovieClip in Symbol 580 MovieClip Frame 1
/* no clip actions */
Symbol 585 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 2
stop();
Symbol 586 MovieClip Frame 1
No = _name;
No = int(No.slice(3));
if ((_root.Vars:InvArray.charAt(No) != null) and (_root.Vars:InvArray.charAt(No) ne "")) {
gotoAndStop(_root.Vars:InvArray.charAt(No));
} else {
stop();
}
Instance of Symbol 488 MovieClip in Symbol 586 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 586 MovieClip Frame 2
onClipEvent (enterFrame) {
if (("Obj" + /Vars:PtInvArray) == _parent._name) {
_parent.Item.gotoAndStop(2);
_parent.Rond.gotoAndStop(2);
} else {
_parent.Item.gotoAndStop(1);
_parent.Rond.gotoAndStop(1);
}
}
Symbol 589 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (enterFrame) {
Mot = /Txt:NomItem[/Vars:ObjSelect - 2];
Set("_parent:NomItem", Mot);
if (Mot.length > 0) {
_parent.NomBarre.gotoAndStop(Mot.length);
} else {
_parent.NomBarre.gotoAndStop(50);
}
}
Symbol 593 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 2
stop();
Symbol 600 MovieClip Frame 1
stop();
Instance of Symbol 524 MovieClip "FearGauge" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(/Vars:Fear + 1);
}
Symbol 600 MovieClip Frame 2
stop();
Symbol 604 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 604 MovieClip Frame 1
/* no clip actions */
Symbol 604 MovieClip Frame 2
play();
Symbol 604 MovieClip Frame 10
stop();
Symbol 604 MovieClip Frame 14
Set("/Vars:Pause", false);
gotoAndStop (1);
Symbol 631 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 631 MovieClip Frame 1
/* no clip actions */
Symbol 631 MovieClip Frame 2
Set("/Vars:Pause", true);
Symbol 631 MovieClip Frame 12
_root.Fonct.Save();
Instance of Symbol 488 MovieClip in Symbol 631 MovieClip Frame 48
/* no clip actions */
Symbol 631 MovieClip Frame 49
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
gotoAndStop (1);
Symbol 631 MovieClip Frame 50
Set("/Vars:Pause", true);
Symbol 631 MovieClip Frame 80
tellTarget (_root) {
gotoAndStop ("Load");
};
stop();
Symbol 631 MovieClip Frame 81
Set("/Vars:Pause", true);
play();
Symbol 631 MovieClip Frame 96
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
gotoAndStop (1);
Symbol 631 MovieClip Frame 97
Set("/Vars:Pause", true);
Symbol 631 MovieClip Frame 142
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
gotoAndStop (1);
Symbol 654 MovieClip Frame 1
if (/Vars:InvHache == true) {
nextFrame();
} else {
stop();
}
Symbol 696 MovieClip Frame 1
if (/Vars:InvTorche == true) {
nextFrame();
} else {
stop();
}
Symbol 705 MovieClip Frame 1
if (/Vars:InvCle == true) {
nextFrame();
} else {
stop();
}
Symbol 706 MovieClip Frame 1
if (/Vars:InvRame == true) {
nextFrame();
} else {
stop();
}
Symbol 707 MovieClip Frame 1
if (/Vars:InvBaril == true) {
nextFrame();
} else {
stop();
}
Symbol 712 MovieClip Frame 1
if (/Vars:InvFilet == true) {
nextFrame();
} else {
stop();
}
Symbol 720 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 720 MovieClip Frame 1
/* no clip actions */
Symbol 720 MovieClip Frame 44
tellTarget ("_root") {
gotoAndPlay ("ExitTab1");
};
Symbol 722 MovieClip Frame 1
if (/Vars:InvFlag == true) {
nextFrame();
} else {
stop();
}
Symbol 724 MovieClip Frame 1
if (/Vars:VoixStart == true) {
stop();
}
Symbol 724 MovieClip Frame 2
Set("/Vars:VoixStart", true);
Symbol 822 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 822 MovieClip Frame 1
/* no clip actions */
Symbol 822 MovieClip Frame 2
Set("/Vars:EtatSamy", "PasLa");
_root.Samy.Obj.gotoAndStop("PasLa");
Instance of Symbol 488 MovieClip in Symbol 822 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 822 MovieClip Frame 40
Set("/Vars:FrAgpCorde", 1);
Set("/Vars:FrAgpBoom", 1);
Set("/Vars:FrAgpDown", 1);
Set("/Vars:FrAgpCleRame", getProperty("_root.AgpCleRame", _currentframe));
Set("/Vars:FrAgpCoupe1", getProperty("_root.AgpCoupe1", _currentframe));
Set("/Vars:FrAgpPanier", getProperty("_root.AgpPanier", _currentframe));
Set("/Vars:FrAgpCanon", getProperty("_root.AgpCanon", _currentframe));
Set("/Vars:FrAgpEscalier", getProperty("_root.AgpEscalier", _currentframe));
Set("/Vars:FrAgpDown2", getProperty("_root.AgpDown2", _currentframe));
Set("/Vars:FrAgpCordeCanon", getProperty("_root.AgpCordeCanon", _currentframe));
Set("/Vars:SortTab", true);
Set("/Vars:LostControl", true);
_root.gotoAndStop("CloseTab1");
stop();
Symbol 822 MovieClip Frame 41
Set("/Vars:EtatSamy", "Idle");
_root.Samy.Obj.gotoAndStop("Idle");
_root.AgpPanier.gotoAndStop("Debarque");
Instance of Symbol 488 MovieClip in Symbol 822 MovieClip Frame 41
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 822 MovieClip Frame 42
stop();
Symbol 1017 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 1017 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 1017 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1017 MovieClip Frame 14
Set("/Vars:ScoobPanier", true);
Set("/Vars:PersActif", "Samy");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Symbol 1017 MovieClip Frame 15
stop();
Instance of Symbol 488 MovieClip in Symbol 1017 MovieClip Frame 16
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1017 MovieClip Frame 76
_root.Collider.CachePanier.gotoAndStop(2);
Set("/Vars:PanierBas", false);
Symbol 1017 MovieClip Frame 91
Set("/Vars:InvCle", true);
tellTarget (_root.Cle) {
nextFrame();
};
Symbol 1017 MovieClip Frame 95
if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("HowDown");
}
Symbol 1017 MovieClip Frame 97
stop();
Instance of Symbol 488 MovieClip in Symbol 1017 MovieClip Frame 98
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1017 MovieClip Frame 158
_root.Fonct.AddInv(3, "InvCle");
Set("/Vars:PanierBas", true);
_root.Collider.CachePanier.gotoAndStop(1);
_root.Scooby._x = 170.5;
_root.Scooby._y = 387.6;
Symbol 1017 MovieClip Frame 159
_root.Fonct.FinAgp();
_root.Fonct.RetourPers("Scooby", "Samy", "Ss");
Symbol 1017 MovieClip Frame 160
stop();
Symbol 1017 MovieClip Frame 161
_root.Scooby._x = 198.3;
_root.Scooby._y = 378.1;
Instance of Symbol 488 MovieClip in Symbol 1017 MovieClip Frame 161
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1017 MovieClip Frame 172
if (/Vars:WaitRame == true) {
_root.Fonct.FinAgp();
_root.Fonct.RetourPers("Scooby", "Samy", "Ss");
Set("/Vars:StartPlay", 30);
Set("/Vars:AgpActif", "AgpDown");
Set("/Vars:DestX", 310.5);
Set("/Vars:DestY", 185);
Set("/Vars:FinAgpX", 310.5);
Set("/Vars:FinAgpY", 185);
Set("/Vars:DirFin", 7);
Set("/Vars:FinMove", "Agp");
Set("/Vars:WaitRame", false);
} else {
_root.Fonct.FinAgp();
_root.Fonct.RetourPers("Scooby", "Samy", "Ss");
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpCale");
Set("/Vars:DestX", 310.5);
Set("/Vars:DestY", 185);
Set("/Vars:FinAgpX", 310.5);
Set("/Vars:FinAgpY", 185);
Set("/Vars:DirFin", 7);
Set("/Vars:FinMove", "Agp");
}
Symbol 1017 MovieClip Frame 173
stop();
Symbol 1160 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 1160 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 1160 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1160 MovieClip Frame 91
Set("/Vars:CanonAttache", true);
Set("/Vars:PersActif", "Samy");
Set("/Vars:VoirPrit", true);
_root.AgpCanon.gotoAndStop(2);
if (/Vars:EtatScooby ne "PasLa") {
Set("/Vars:EtatSamy", "Idle");
_root.Samy.Obj.gotoAndStop("Idle");
_root.Fonct.FinAgp();
_root.Fonct.RetourPers("Scooby", "Samy", "Ss");
} else {
_root.Fonct.FinAgp();
}
Symbol 1160 MovieClip Frame 92
stop();
Symbol 1320 MovieClip Frame 30
if (random(1000) < /Vars:TempsIdle) {
gotoAndPlay (1);
}
Symbol 1325 MovieClip Frame 30
if (random(1000) < /Vars:TempsIdle) {
gotoAndPlay (1);
}
Symbol 1479 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 1479 MovieClip Frame 1
/* no clip actions */
Symbol 1479 MovieClip Frame 2
stop();
Symbol 1479 MovieClip Frame 3
_root.AgpPanier.play();
Instance of Symbol 488 MovieClip in Symbol 1479 MovieClip Frame 3
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1479 MovieClip Frame 47
Set("/Vars:CanonEau", true);
_root.Collider.CacheCanon.gotoAndStop(2);
Set("/Vars:PersActif", "Samy");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Symbol 1479 MovieClip Frame 48
stop();
Symbol 1479 MovieClip Frame 49
_root.AgpPanier.gotoAndPlay("Baisse");
Instance of Symbol 488 MovieClip in Symbol 1479 MovieClip Frame 49
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1479 MovieClip Frame 96
Set("/Vars:CanonPlonge", true);
Set("/Vars:HachePos1", true);
_root.HachePlante.gotoAndStop(1);
_root.Fonct.RemoveObj(/Vars:PtObjDel);
Set("/Vars:EtatSamy", "Idle");
_root.Samy.Obj.gotoAndStop("Idle");
Symbol 1479 MovieClip Frame 97
stop();
Instance of Symbol 488 MovieClip in Symbol 1479 MovieClip Frame 98
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1479 MovieClip Frame 130
Set("/Vars:CanonTourne", true);
Set("/Vars:PersActif", "Ss");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Symbol 1479 MovieClip Frame 131
stop();
Instance of Symbol 488 MovieClip in Symbol 1479 MovieClip Frame 132
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1479 MovieClip Frame 155
_root.Fonct.RemoveObj(/Vars:PtObjDel);
Set("/Vars:FiletCanon", true);
Set("/Vars:PersActif", "Ss");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Symbol 1479 MovieClip Frame 156
stop();
Symbol 1479 MovieClip Frame 157
Set("/Vars:BossActif", "abc");
Set("/Vars:EtatBoss", "PasLa");
_root.Boss3.Obj.gotoAndStop("PasLa");
stop();
Instance of Symbol 488 MovieClip in Symbol 1479 MovieClip Frame 158
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1479 MovieClip Frame 249
Set("/Vars:BossStop", false);
Set("/Vars:SortTab", true);
Set("/Vars:LostControl", true);
loadVariablesNum (/:TrackingUrl add "?episode=4&stage=7", 0);
_root.gotoAndStop("CloseTab3");
stop();
Symbol 1491 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 1491 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 1491 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1491 MovieClip Frame 39
Set("/Vars:PersActif", "Samy");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Symbol 1491 MovieClip Frame 40
stop();
Instance of Symbol 488 MovieClip in Symbol 1491 MovieClip Frame 41
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1491 MovieClip Frame 165
Set("/Vars:VoirPrit", true);
if (/Vars:EtatScooby ne "PasLa") {
Set("/Vars:EtatSamy", "Idle");
_root.Samy.Obj.gotoAndStop("Idle");
_root.Fonct.FinAgp();
_root.Fonct.RetourPers("Scooby", "Samy", "Ss");
} else {
_root.Fonct.FinAgp();
}
Symbol 1491 MovieClip Frame 166
stop();
Symbol 1507 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 1507 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 1507 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1507 MovieClip Frame 60
Set("/Vars:Corde1Coupe", true);
Set("/Vars:HachePos2", true);
_root.Hache2.gotoAndStop(1);
_root.Fonct.RemoveObj(/Vars:PtObjDel);
Set("/Vars:EtatSamy", "Idle");
_root.Samy.Obj.gotoAndStop("Idle");
if (/Vars:EtatScooby ne "PasLa") {
Set("/Vars:EtatSamy", "Idle");
_root.Samy.Obj.gotoAndStop("Idle");
_root.Fonct.FinAgp();
_root.Fonct.RetourPers("Scooby", "Samy", "Ss");
} else {
_root.Fonct.FinAgp();
}
Symbol 1507 MovieClip Frame 61
stop();
Symbol 1507 MovieClip Frame 62
stop();
Symbol 1508 MovieClip Frame 1
if (/Vars:InvCle == true) {
nextFrame();
} else {
stop();
}
Symbol 1509 MovieClip Frame 1
if (/Vars:InvCle == true) {
nextFrame();
} else {
stop();
}
Instance of Symbol 488 MovieClip in Symbol 1561 MovieClip Frame 2
onClipEvent (enterFrame) {
Set("/Vars:FrBalance", getProperty("_parent", _currentframe));
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1561 MovieClip Frame 46
Set("/Vars:FrBalance", 46);
stop();
Symbol 1619 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 1619 MovieClip Frame 1
/* no clip actions */
Symbol 1619 MovieClip Frame 2
_root.AgpCoupe1.nextFrame();
Instance of Symbol 488 MovieClip in Symbol 1619 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1619 MovieClip Frame 20
Set("/Vars:FrBalance", 0);
Instance of Symbol 1561 MovieClip "Balance" in Symbol 1619 MovieClip Frame 21
onClipEvent (load) {
if ((/Vars:FrBalance != null) and (/Vars:FrBalance != 0)) {
this.gotoAndStop(/Vars:FrBalance);
} else {
this.gotoAndPlay(1);
}
}
Symbol 1619 MovieClip Frame 31
Set("/Vars:SamyGrimpe", true);
stop();
Instance of Symbol 488 MovieClip in Symbol 1619 MovieClip Frame 31
onClipEvent (enterFrame) {
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (Key.isDown(32)) {
Set("/Vars:SamyGrimpe", false);
if (((/Vars:ObjSelect == 4) and (/Vars:InvCle == false)) and (/Vars:CleSol == false)) {
_parent.gotoAndPlay("Cle");
} else {
_root.AgpDown.gotoAndPlay(2);
_parent.nextFrame();
}
}
}
}
Symbol 1619 MovieClip Frame 32
stop();
Symbol 1619 MovieClip Frame 33
_root.Poteau2.swapDepths(401);
Instance of Symbol 488 MovieClip in Symbol 1619 MovieClip Frame 33
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1619 MovieClip Frame 52
_root.Cle.gotoAndStop(2);
Symbol 1619 MovieClip Frame 96
Set("/Vars:CleSol", true);
_root.CleSol.gotoAndStop(1);
_root.AgpDown.gotoAndPlay(2);
_root.Poteau2.swapDepths(800);
nextFrame();
Symbol 1619 MovieClip Frame 97
stop();
Symbol 1639 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 1639 MovieClip Frame 1
/* no clip actions */
Symbol 1639 MovieClip Frame 2
_root.AgpCleRame.Key.nextFrame();
Instance of Symbol 488 MovieClip in Symbol 1639 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1639 MovieClip Frame 21
_root.Samy._x = 301;
_root.Samy._y = 281.8;
Set("/Vars:DirSamy", 3);
_root.Samy.gotoAndStop(3);
Symbol 1639 MovieClip Frame 22
if (/Vars:EtatScooby ne "PasLa") {
_root.Ss._x = 301;
_root.Ss._y = 281.8;
Set("/Vars:DirSs", 3);
_root.Ss.gotoAndStop(3);
Set("/Vars:PersActif", "Scooby");
Set("/Vars:StartPlay", 2);
Set("/Vars:AgpActif", "AgpDown2");
Set("/Vars:DestX", 291);
Set("/Vars:DestY", 46);
Set("/Vars:FinAgpX", 531.2);
Set("/Vars:FinAgpY", 357.3);
Set("/Vars:DirFin", 3);
Set("/Vars:FinMove", "Agp");
_root.Fonct.MoveAuto("Scooby");
stop();
} else if ((/Vars:CleSol == true) and (/Vars:ScoobPanier == true)) {
Set("/Vars:WaitRame", true);
_root.Ss._x = 301;
_root.Ss._y = 281.8;
Set("/Vars:DirSs", 3);
_root.Ss.gotoAndStop(3);
Set("/Vars:PersActif", "Scooby");
_root.AgpPanier.gotoAndPlay("Debarque");
gotoAndStop (30);
} else {
Set("/Vars:PersActif", "Samy");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
gotoAndPlay (28);
}
Instance of Symbol 488 MovieClip in Symbol 1639 MovieClip Frame 23
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1639 MovieClip Frame 25
Set("/Vars:PersActif", "Ss");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Symbol 1639 MovieClip Frame 26
stop();
Instance of Symbol 488 MovieClip in Symbol 1639 MovieClip Frame 27
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1639 MovieClip Frame 29
stop();
Symbol 1639 MovieClip Frame 30
Set("/Vars:EtatSamy", "Idle");
_root.Samy.Obj.gotoAndStop("Idle");
stop();
Symbol 1639 MovieClip Frame 31
Set("/Vars:EtatSamy", "PasLa");
_root.Samy.Obj.gotoAndStop("PasLa");
Set("/Vars:PersActif", "Ss");
Set("/Vars:EtatSs", "Idle");
_root.Ss.Obj.gotoAndStop("Idle");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Symbol 1639 MovieClip Frame 32
stop();
Symbol 1671 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 1671 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 1671 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1671 MovieClip Frame 14
Set("/Vars:PersActif", "Ss");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Symbol 1671 MovieClip Frame 15
stop();
Instance of Symbol 488 MovieClip in Symbol 1671 MovieClip Frame 16
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1671 MovieClip Frame 28
Set("/Vars:PersActif", "Ss");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Symbol 1671 MovieClip Frame 29
stop();
Instance of Symbol 488 MovieClip in Symbol 1671 MovieClip Frame 30
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1671 MovieClip Frame 42
Set("/Vars:PersActif", "Samy");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Symbol 1671 MovieClip Frame 43
stop();
Instance of Symbol 488 MovieClip in Symbol 1671 MovieClip Frame 44
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1671 MovieClip Frame 56
Set("/Vars:PersActif", "Samy");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Symbol 1671 MovieClip Frame 57
stop();
Symbol 1672 MovieClip Frame 1
if (/Vars:HachePos1 == true) {
stop();
} else {
nextFrame();
}
Symbol 1673 MovieClip Frame 1
if (/Vars:HachePos2 == true) {
stop();
} else {
nextFrame();
}
Symbol 1679 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 1679 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 1679 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1679 MovieClip Frame 5
_root.AgpDown.play();
Symbol 1679 MovieClip Frame 13
stop();
Symbol 1680 MovieClip Frame 1
if ((/Vars:CleSol == true) and (/Vars:InvCle == false)) {
stop();
} else {
nextFrame();
}
Symbol 1750 MovieClip Frame 7
stop();
Symbol 1753 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 1753 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 1753 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 1753 MovieClip Frame 74
_root.Tache.nextFrame();
_root.Collider.CacheBarils.nextFrame();
_root.Collider.CacheBoom.nextFrame();
Symbol 1753 MovieClip Frame 99
Set("/Vars:Boom", true);
_root.AgpFall.play();
Symbol 1753 MovieClip Frame 100
stop();
Symbol 1838 MovieClip Frame 30
if (random(1000) < /Vars:TempsIdle) {
gotoAndPlay (1);
}
Symbol 1843 MovieClip Frame 30
if (random(1000) < /Vars:TempsIdle) {
gotoAndPlay (1);
}
Symbol 1849 MovieClip Frame 8
gotoAndPlay (3);
Symbol 1867 MovieClip Frame 22
gotoAndPlay (5);
Symbol 1869 MovieClip Frame 1
stop();
Symbol 1869 MovieClip Frame 7
stop();
Symbol 1869 MovieClip Frame 13
stop();
Symbol 1869 MovieClip Frame 19
stop();
Symbol 1869 MovieClip Frame 20
stop();
Symbol 1887 MovieClip Frame 30
if (random(1000) < /Vars:TempsIdle) {
gotoAndPlay (1);
}
Symbol 1893 MovieClip Frame 30
if (random(1000) < /Vars:TempsIdle) {
gotoAndPlay (1);
}
Symbol 1894 MovieClip Frame 1
stop();
Symbol 1894 MovieClip Frame 7
stop();
Symbol 1894 MovieClip Frame 13
stop();
Symbol 1894 MovieClip Frame 19
stop();
Symbol 1894 MovieClip Frame 20
stop();
Symbol 1895 MovieClip Frame 1
stop();
Symbol 1895 MovieClip Frame 7
stop();
Symbol 1895 MovieClip Frame 13
stop();
Symbol 1895 MovieClip Frame 19
stop();
Symbol 1895 MovieClip Frame 20
stop();
Symbol 1947 MovieClip Frame 30
if (random(1000) < /Vars:TempsIdle) {
gotoAndPlay (1);
}
Symbol 1982 MovieClip Frame 30
if (random(1000) < /Vars:TempsIdle) {
gotoAndPlay (1);
}
Symbol 1983 MovieClip Frame 1
stop();
Symbol 1983 MovieClip Frame 7
stop();
Symbol 1983 MovieClip Frame 13
stop();
Symbol 1983 MovieClip Frame 19
stop();
Symbol 1983 MovieClip Frame 20
stop();
Symbol 2004 MovieClip Frame 1
stop();
Symbol 2004 MovieClip Frame 7
stop();
Symbol 2004 MovieClip Frame 13
stop();
Symbol 2004 MovieClip Frame 19
stop();
Symbol 2004 MovieClip Frame 20
stop();
Symbol 2053 MovieClip Frame 30
if (random(1000) < /Vars:TempsIdle) {
gotoAndPlay (1);
}
Symbol 2074 MovieClip Frame 30
if (random(1000) < /Vars:TempsIdle) {
gotoAndPlay (1);
}
Symbol 2075 MovieClip Frame 1
stop();
Symbol 2075 MovieClip Frame 7
stop();
Symbol 2075 MovieClip Frame 13
stop();
Symbol 2075 MovieClip Frame 19
stop();
Symbol 2075 MovieClip Frame 20
stop();
Symbol 2076 MovieClip Frame 1
stop();
Symbol 2076 MovieClip Frame 7
stop();
Symbol 2076 MovieClip Frame 13
stop();
Symbol 2076 MovieClip Frame 19
stop();
Symbol 2076 MovieClip Frame 20
stop();
Symbol 2077 MovieClip Frame 1
stop();
Symbol 2077 MovieClip Frame 7
stop();
Symbol 2077 MovieClip Frame 13
stop();
Symbol 2077 MovieClip Frame 19
stop();
Symbol 2077 MovieClip Frame 20
stop();
Symbol 2078 MovieClip Frame 1
stop();
Instance of Symbol 1869 MovieClip "Obj" in Symbol 2078 MovieClip Frame 1
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 1894 MovieClip "Obj" in Symbol 2078 MovieClip Frame 2
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 1895 MovieClip "Obj" in Symbol 2078 MovieClip Frame 3
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 1983 MovieClip "Obj" in Symbol 2078 MovieClip Frame 4
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2004 MovieClip "Obj" in Symbol 2078 MovieClip Frame 5
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2075 MovieClip "Obj" in Symbol 2078 MovieClip Frame 6
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2076 MovieClip "Obj" in Symbol 2078 MovieClip Frame 7
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2077 MovieClip "Obj" in Symbol 2078 MovieClip Frame 8
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Symbol 2079 MovieClip Frame 1
stop();
Symbol 2079 MovieClip Frame 7
stop();
Symbol 2079 MovieClip Frame 13
stop();
Symbol 2079 MovieClip Frame 19
stop();
Symbol 2080 MovieClip Frame 1
stop();
Symbol 2080 MovieClip Frame 7
stop();
Symbol 2080 MovieClip Frame 13
stop();
Symbol 2080 MovieClip Frame 19
stop();
Symbol 2081 MovieClip Frame 1
stop();
Symbol 2081 MovieClip Frame 7
stop();
Symbol 2081 MovieClip Frame 13
stop();
Symbol 2081 MovieClip Frame 19
stop();
Symbol 2082 MovieClip Frame 1
stop();
Symbol 2082 MovieClip Frame 7
stop();
Symbol 2082 MovieClip Frame 13
stop();
Symbol 2082 MovieClip Frame 19
stop();
Symbol 2083 MovieClip Frame 1
stop();
Symbol 2083 MovieClip Frame 7
stop();
Symbol 2083 MovieClip Frame 13
stop();
Symbol 2083 MovieClip Frame 19
stop();
Symbol 2084 MovieClip Frame 1
stop();
Instance of Symbol 2079 MovieClip "Obj" in Symbol 2084 MovieClip Frame 1
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2080 MovieClip "Obj" in Symbol 2084 MovieClip Frame 2
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2079 MovieClip "Obj" in Symbol 2084 MovieClip Frame 3
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2081 MovieClip "Obj" in Symbol 2084 MovieClip Frame 4
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2082 MovieClip "Obj" in Symbol 2084 MovieClip Frame 5
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2083 MovieClip "Obj" in Symbol 2084 MovieClip Frame 6
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2082 MovieClip "Obj" in Symbol 2084 MovieClip Frame 7
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2081 MovieClip "Obj" in Symbol 2084 MovieClip Frame 8
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Symbol 2085 MovieClip Frame 1
stop();
Symbol 2085 MovieClip Frame 7
stop();
Symbol 2085 MovieClip Frame 13
stop();
Symbol 2085 MovieClip Frame 19
stop();
Symbol 2086 MovieClip Frame 1
stop();
Symbol 2086 MovieClip Frame 7
stop();
Symbol 2086 MovieClip Frame 13
stop();
Symbol 2086 MovieClip Frame 19
stop();
Symbol 2087 MovieClip Frame 1
stop();
Symbol 2087 MovieClip Frame 7
stop();
Symbol 2087 MovieClip Frame 13
stop();
Symbol 2087 MovieClip Frame 19
stop();
Symbol 2088 MovieClip Frame 1
stop();
Symbol 2088 MovieClip Frame 7
stop();
Symbol 2088 MovieClip Frame 13
stop();
Symbol 2088 MovieClip Frame 19
stop();
Symbol 2089 MovieClip Frame 1
stop();
Symbol 2089 MovieClip Frame 7
stop();
Symbol 2089 MovieClip Frame 13
stop();
Symbol 2089 MovieClip Frame 19
stop();
Symbol 2090 MovieClip Frame 1
stop();
Instance of Symbol 2085 MovieClip "Obj" in Symbol 2090 MovieClip Frame 1
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2086 MovieClip "Obj" in Symbol 2090 MovieClip Frame 2
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2085 MovieClip "Obj" in Symbol 2090 MovieClip Frame 3
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2087 MovieClip "Obj" in Symbol 2090 MovieClip Frame 4
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2088 MovieClip "Obj" in Symbol 2090 MovieClip Frame 5
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2089 MovieClip "Obj" in Symbol 2090 MovieClip Frame 6
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2088 MovieClip "Obj" in Symbol 2090 MovieClip Frame 7
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Instance of Symbol 2087 MovieClip "Obj" in Symbol 2090 MovieClip Frame 8
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Symbol 2095 MovieClip Frame 1
if (/Vars:CanonEau == true) {
nextFrame();
} else {
stop();
}
Symbol 2097 MovieClip Frame 1
if (/Vars:TrappeOpen == true) {
stop();
} else {
nextFrame();
}
Symbol 2099 MovieClip Frame 1
if (/Vars:PanierBas == true) {
stop();
} else {
nextFrame();
}
Symbol 2101 MovieClip Frame 1
if (/Vars:Boom == true) {
nextFrame();
} else {
stop();
}
Symbol 2105 MovieClip Frame 1
if (/Vars:Boom == true) {
nextFrame();
} else {
stop();
}
Symbol 2109 Button
on (keyPress "<Down>") {
if (((/Vars:Pause == false) and (/Vars:LostControl == false)) and (/Vars:InvOuvert == false)) {
if (/Vars:Bas == false) {
if (Key.isDown(Key.Down)) {
Set("/Vars:Bas", true);
}
}
}
}
on (keyPress "<Up>") {
if (((/Vars:Pause == false) and (/Vars:LostControl == false)) and (/Vars:InvOuvert == false)) {
if (/Vars:Haut == false) {
if (Key.isDown(Key.Up)) {
Set("/Vars:Haut", true);
}
}
}
}
on (keyPress "<Left>") {
if (/Vars:Pause == false) {
if (/Vars:LostControl == false) {
if (/Vars:Gauche == false) {
if (Key.isDown(Key.Left)) {
Set("/Vars:Gauche", true);
}
}
}
}
if ((/Vars:InvOuvert == true) and (/Vars:InvArray.length > 2)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray - 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if (/Vars:PtInvArray > 0) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", /Vars:InvArray.length - 1);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
}
}
on (keyPress "<Right>") {
if (/Vars:Pause == false) {
if (/Vars:LostControl == false) {
if (/Vars:Droite == false) {
if (Key.isDown(Key.Right)) {
Set("/Vars:Droite", true);
}
}
}
}
if ((/Vars:InvOuvert == true) and (/Vars:InvArray.length > 2)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 1);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
}
}
on (keyPress "s") {
if (/:Challenge == false) {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Saving", true);
}
}
}
on (keyPress "S") {
if (/:Challenge == false) {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Saving", true);
}
}
}
on (keyPress "l") {
if (/:Challenge == false) {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
ObjSave = SharedObject.getLocal("ScoobEpi4");
if (ObjSave.data.Valeurs != null) {
delete ObjSave;
Set("/Vars:Pause", true);
_root.SaveLoad.gotoAndPlay("Load");
} else {
Set("/Vars:Pause", true);
_root.SaveLoad.gotoAndPlay("NoSave");
delete ObjSave;
}
}
}
}
on (keyPress "L") {
if (/:Challenge == false) {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
ObjSave = SharedObject.getLocal("ScoobEpi4");
if (ObjSave.data.Valeurs != null) {
delete ObjSave;
Set("/Vars:Pause", true);
_root.SaveLoad.gotoAndPlay("Load");
} else {
Set("/Vars:Pause", true);
_root.SaveLoad.gotoAndPlay("NoSave");
delete ObjSave;
}
}
}
}
on (keyPress "t") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) and ((/Vars:LostControl == false) or (/Vars:SamyGrimpe == true))) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 0);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
tellTarget (_root.Interface.Inv.ObjSelect) {
gotoAndStop(/Vars:InvArray.charAt(/Vars:PtInvArray));
};
}
if ((/Vars:InvOuvert == true) and (/Vars:InvArray.length > 2)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 1);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
}
}
on (keyPress "T") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) and ((/Vars:LostControl == false) or (/Vars:SamyGrimpe == true))) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 0);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
tellTarget (_root.Interface.Inv.ObjSelect) {
gotoAndStop(/Vars:InvArray.charAt(/Vars:PtInvArray));
};
}
if ((/Vars:InvOuvert == true) and (/Vars:InvArray.length > 2)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 1);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
}
}
on (keyPress "i") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 20;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
Set("/Vars:InvOuvert", true);
_root.HitI.gotoAndStop("Open");
_root.Interface.Inv.gotoAndStop("Open");
} else if ((/Vars:InvOuvert == true) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
Set("/Vars:InvOuvert", false);
_root.HitI.gotoAndStop("Close");
_root.Interface.Inv.gotoAndStop("Close");
}
}
on (keyPress "I") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 20;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
Set("/Vars:InvOuvert", true);
_root.HitI.gotoAndStop("Open");
_root.Interface.Inv.gotoAndStop("Open");
} else if ((/Vars:InvOuvert == true) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
Set("/Vars:InvOuvert", false);
_root.HitI.gotoAndStop("Close");
_root.Interface.Inv.gotoAndStop("Close");
}
}
on (keyPress "p") {
if (/:Challenge == false) {
if (((/Vars:InvOuvert == false) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
if (/Vars:Pause == false) {
_root.Mus.VolDest = 10;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
_root.Pause.gotoAndPlay(2);
} else {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
_root.Pause.play();
}
}
}
}
on (keyPress "P") {
if (/:Challenge == false) {
if (((/Vars:InvOuvert == false) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
if (/Vars:Pause == false) {
_root.Mus.VolDest = 10;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
_root.Pause.gotoAndPlay(2);
} else {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
_root.Pause.play();
}
}
}
}
on (keyPress "h") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 20;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
Set("/Vars:HelpOuvert", true);
_root.HitI.gotoAndStop("Open");
_root.Interface.gotoAndStop("Help");
} else if ((/Vars:HelpOuvert == true) and (/Vars:InvOuvert == false)) {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
Set("/Vars:HelpOuvert", false);
_root.HitI.gotoAndStop("Close");
_root.Interface.gotoAndStop(1);
}
}
on (keyPress "H") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 20;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
Set("/Vars:HelpOuvert", true);
_root.HitI.gotoAndStop("Open");
_root.Interface.gotoAndStop("Help");
} else if ((/Vars:HelpOuvert == true) and (/Vars:InvOuvert == false)) {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
Set("/Vars:HelpOuvert", false);
_root.HitI.gotoAndStop("Close");
_root.Interface.gotoAndStop(1);
}
}
Symbol 2225 MovieClip Frame 56
Set("/Vars:EtatBoss", "Idle");
Symbol 2227 MovieClip Frame 150
if (/Vars:BossStop == true) {
gotoAndPlay (1);
} else {
Set("/Vars:DirBoss", /Vars:DirBFinIdle);
Set("/Vars:EtatBoss", "Marche");
}
Symbol 2229 MovieClip Frame 65
gotoAndPlay (7);
Symbol 2230 MovieClip Frame 1
stop();
Symbol 2230 MovieClip Frame 8
stop();
Symbol 2230 MovieClip Frame 15
stop();
Symbol 2243 MovieClip Frame 56
Set("/Vars:EtatBoss", "Idle");
Symbol 2246 MovieClip Frame 150
if (/Vars:BossStop == true) {
gotoAndPlay (1);
} else {
Set("/Vars:DirBoss", /Vars:DirBFinIdle);
Set("/Vars:EtatBoss", "Marche");
}
Symbol 2248 MovieClip Frame 57
gotoAndPlay (7);
Symbol 2249 MovieClip Frame 1
stop();
Symbol 2249 MovieClip Frame 8
stop();
Symbol 2249 MovieClip Frame 15
stop();
Symbol 2249 MovieClip Frame 22
stop();
Symbol 2249 MovieClip Frame 28
stop();
Symbol 2250 MovieClip Frame 1
stop();
Symbol 2250 MovieClip Frame 8
stop();
Symbol 2250 MovieClip Frame 15
stop();
Symbol 2250 MovieClip Frame 22
stop();
Symbol 2251 MovieClip Frame 1
stop();
Instance of Symbol 2230 MovieClip "Obj" in Symbol 2251 MovieClip Frame 1
onClipEvent (load) {
if (/Vars:Tableau eq "Tab3") {
if (/Vars:BossActif eq "Boss3") {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
} else {
gotoAndStop (1);
}
} else {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
}
}
Symbol 2251 MovieClip Frame 2
stop();
Instance of Symbol 2249 MovieClip "Obj" in Symbol 2251 MovieClip Frame 2
onClipEvent (load) {
if (/Vars:Tableau eq "Tab3") {
if (/Vars:BossActif eq "Boss3") {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
} else {
gotoAndStop (1);
}
} else {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
}
}
Symbol 2251 MovieClip Frame 3
stop();
Instance of Symbol 2230 MovieClip "Obj" in Symbol 2251 MovieClip Frame 3
onClipEvent (load) {
if (/Vars:Tableau eq "Tab3") {
if (/Vars:BossActif eq "Boss3") {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
} else {
gotoAndStop (1);
}
} else {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
}
}
Symbol 2251 MovieClip Frame 4
stop();
Instance of Symbol 2250 MovieClip "Obj" in Symbol 2251 MovieClip Frame 4
onClipEvent (load) {
if (/Vars:Tableau eq "Tab3") {
if (/Vars:BossActif eq "Boss3") {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
} else {
gotoAndStop (1);
}
} else {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
}
}
Symbol 2251 MovieClip Frame 5
stop();
Instance of Symbol 2249 MovieClip "Obj" in Symbol 2251 MovieClip Frame 5
onClipEvent (load) {
if (/Vars:Tableau eq "Tab3") {
if (/Vars:BossActif eq "Boss3") {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
} else {
gotoAndStop (1);
}
} else {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
}
}
Symbol 2251 MovieClip Frame 6
stop();
Instance of Symbol 2250 MovieClip "Obj" in Symbol 2251 MovieClip Frame 6
onClipEvent (load) {
if (/Vars:Tableau eq "Tab3") {
if (/Vars:BossActif eq "Boss3") {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
} else {
gotoAndStop (1);
}
} else {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
}
}
Symbol 2261 MovieClip Frame 1
stop();
Symbol 2261 MovieClip Frame 51
Set("/Vars:BouletTombe", true);
Symbol 2261 MovieClip Frame 63
stop();
Symbol 2264 MovieClip Frame 1
stop();
Symbol 2264 MovieClip Frame 51
Set("/Vars:BouletTombe", true);
Symbol 2264 MovieClip Frame 63
stop();
Symbol 2275 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2275 MovieClip Frame 1
/* no clip actions */
Symbol 2275 MovieClip Frame 44
tellTarget ("_root") {
gotoAndPlay ("ExitTab2");
};
Symbol 2278 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2278 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2278 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2278 MovieClip Frame 26
_root.AgpUseBaril._x = 517.7;
_root.AgpUseBaril._y = 117.1;
_root.AgpUseBaril.gotoAndStop("Leve");
nextFrame();
Symbol 2278 MovieClip Frame 27
stop();
Instance of Symbol 488 MovieClip in Symbol 2278 MovieClip Frame 28
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2278 MovieClip Frame 52
_root.AgpUseBaril._x = 517.7;
_root.AgpUseBaril._y = 117.1;
_root.AgpUseBaril.gotoAndStop("Leve");
nextFrame();
Symbol 2278 MovieClip Frame 53
stop();
Symbol 2287 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2287 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 2285 MovieClip "HitRat" in Symbol 2287 MovieClip Frame 2
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 488 MovieClip in Symbol 2287 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2287 MovieClip Frame 70
Set("/Vars:Rats4", false);
gotoAndStop (1);
Symbol 2288 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2288 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2288 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2288 MovieClip Frame 51
Set("/Vars:BouletTombe", true);
Symbol 2288 MovieClip Frame 63
stop();
Symbol 2298 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2298 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2298 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2298 MovieClip Frame 5
_root.AgpSauve1f.gotoAndPlay(2);
Symbol 2299 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2299 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2299 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2299 MovieClip Frame 4
_root.AgpSauve1f.gotoAndPlay(2);
Symbol 2300 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2300 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2300 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2300 MovieClip Frame 3
_root.AgpSauve1f.gotoAndPlay(2);
Symbol 2301 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2301 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2301 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2301 MovieClip Frame 4
_root.AgpSauve1f.gotoAndPlay(2);
Symbol 2302 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2302 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2302 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2302 MovieClip Frame 5
_root.AgpSauve1f.gotoAndPlay(2);
Symbol 2305 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2305 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2305 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2305 MovieClip Frame 37
_root.Ss._x = 444.8;
_root.Ss._y = 87.3;
Set("/Vars:DirSs", 1);
Set("/Vars:EtatSs", "Idle");
_root.Ss.gotoAndStop(1);
_root.Ss.Obj.gotoAndStop("Idle");
Set("/Vars:PersActif", "Ss");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Set("/Vars:WaitFear", -100);
Set("/Vars:Peur", false);
nextFrame();
Symbol 2305 MovieClip Frame 38
stop();
Symbol 2312 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2312 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2312 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2312 MovieClip Frame 5
_root.AgpSauve2f.gotoAndPlay(2);
Symbol 2313 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2313 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2313 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2313 MovieClip Frame 4
_root.AgpSauve2f.gotoAndPlay(2);
Symbol 2314 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2314 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2314 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2314 MovieClip Frame 3
_root.AgpSauve2f.gotoAndPlay(2);
Symbol 2315 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2315 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2315 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2315 MovieClip Frame 3
_root.AgpSauve2f.gotoAndPlay(2);
Symbol 2316 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2316 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2316 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2316 MovieClip Frame 5
_root.AgpSauve2f.gotoAndPlay(2);
Symbol 2320 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2320 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2320 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2320 MovieClip Frame 20
_root.AgpSauve1f.gotoAndPlay(29);
_root.AgpBaril.gotoAndStop(1);
nextFrame();
Symbol 2320 MovieClip Frame 21
stop();
Symbol 2321 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2321 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 2285 MovieClip "HitRat" in Symbol 2321 MovieClip Frame 2
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 488 MovieClip in Symbol 2321 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2321 MovieClip Frame 71
Set("/Vars:Rats2", false);
gotoAndStop (1);
Symbol 2322 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2322 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 2285 MovieClip "HitRat" in Symbol 2322 MovieClip Frame 2
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 488 MovieClip in Symbol 2322 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2322 MovieClip Frame 68
Set("/Vars:Rats3", false);
gotoAndStop (1);
Symbol 2323 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2323 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 2285 MovieClip "HitRat" in Symbol 2323 MovieClip Frame 2
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 488 MovieClip in Symbol 2323 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2323 MovieClip Frame 65
Set("/Vars:Rats1", false);
gotoAndStop (1);
Symbol 2325 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2325 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2325 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2325 MovieClip Frame 47
Set("/Vars:SortTab", true);
Set("/Vars:LostControl", true);
_root.gotoAndStop("CloseTab2");
stop();
Symbol 2333 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2333 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2333 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2333 MovieClip Frame 29
Set("/Vars:SortTab", true);
Set("/Vars:LostControl", true);
_root.gotoAndStop("CloseTab2");
stop();
Symbol 2339 MovieClip Frame 30
if (random(1000) < /Vars:TempsIdle) {
gotoAndPlay (1);
}
Symbol 2340 MovieClip Frame 15
gotoAndPlay (4);
Symbol 2341 MovieClip Frame 1
stop();
Symbol 2341 MovieClip Frame 7
stop();
Symbol 2341 MovieClip Frame 13
_root.AgpUseBaril.gotoAndStop(1);
stop();
Symbol 2341 MovieClip Frame 19
stop();
Symbol 2342 MovieClip Frame 1
stop();
Instance of Symbol 2341 MovieClip "Obj" in Symbol 2342 MovieClip Frame 1
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(eval ("/Vars:Etat" + _parent._name));
};
}
Symbol 2344 MovieClip Frame 1
stop();
Symbol 2344 MovieClip Frame 2
stop();
Instance of Symbol 488 MovieClip in Symbol 2344 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (Key.isDown(32)) {
_parent.nextFrame();
}
}
}
Symbol 2344 MovieClip Frame 3
play();
Instance of Symbol 488 MovieClip in Symbol 2344 MovieClip Frame 3
onClipEvent (enterFrame) {
if (/Vars:Pause == false) {
tellTarget (_parent) {
play();
};
} else {
tellTarget (_parent) {
stop();
};
}
}
Symbol 2344 MovieClip Frame 9
_root.Samy._x = this._x;
_root.Samy._y = this._y;
Set("/Vars:EtatSamy", "Idle");
Set("/Vars:PersActif", "Samy");
Set("/Vars:LostControl", false);
_root.Samy.Obj.gotoAndStop("Idle");
_root.Collider.CacheBaril1.nextFrame();
Symbol 2344 MovieClip Frame 10
stop();
Instance of Symbol 488 MovieClip in Symbol 2344 MovieClip Frame 11
onClipEvent (enterFrame) {
if (/Vars:Pause == false) {
tellTarget (_parent) {
play();
};
} else {
tellTarget (_parent) {
stop();
};
}
}
Symbol 2344 MovieClip Frame 23
gotoAndStop (2);
Symbol 2347 MovieClip Frame 1
if (/Vars:PersActif eq "Samy") {
nextFrame();
} else {
stop();
}
Symbol 2349 Button
on (keyPress "<Down>") {
if (((/Vars:Pause == false) and (/Vars:LostControl == false)) and (/Vars:InvOuvert == false)) {
if (/Vars:Bas == false) {
if (Key.isDown(Key.Down)) {
Set("/Vars:Bas", true);
}
}
}
}
on (keyPress "<Up>") {
if (((/Vars:Pause == false) and (/Vars:LostControl == false)) and (/Vars:InvOuvert == false)) {
if (/Vars:Haut == false) {
if (Key.isDown(Key.Up)) {
Set("/Vars:Haut", true);
}
}
}
}
on (keyPress "<Left>") {
if (/Vars:Pause == false) {
if (/Vars:LostControl == false) {
if (/Vars:Gauche == false) {
if (Key.isDown(Key.Left)) {
Set("/Vars:Gauche", true);
}
}
}
}
if ((/Vars:InvOuvert == true) and (/Vars:InvArray.length > 2)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray - 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if (/Vars:PtInvArray > 0) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", /Vars:InvArray.length - 1);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
}
}
on (keyPress "<Right>") {
if (/Vars:Pause == false) {
if (/Vars:LostControl == false) {
if (/Vars:Droite == false) {
if (Key.isDown(Key.Right)) {
Set("/Vars:Droite", true);
}
}
}
}
if ((/Vars:InvOuvert == true) and (/Vars:InvArray.length > 2)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 1);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
}
}
on (keyPress "s") {
if (/:Challenge == false) {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:BarilX", _root.AgpUseBaril._x);
Set("/Vars:BarilY", _root.AgpUseBaril._y);
Set("/Vars:BossX", _root.Boss._x);
Set("/Vars:BossY", _root.Boss._y);
Set("/Vars:Saving", true);
}
}
}
on (keyPress "S") {
if (/:Challenge == false) {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:BarilX", _root.AgpUseBaril._x);
Set("/Vars:BarilY", _root.AgpUseBaril._y);
Set("/Vars:BossX", _root.Boss._x);
Set("/Vars:BossY", _root.Boss._y);
Set("/Vars:Saving", true);
}
}
}
on (keyPress "l") {
if (/:Challenge == false) {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
ObjSave = SharedObject.getLocal("ScoobEpi4");
if (ObjSave.data.Valeurs != null) {
delete ObjSave;
Set("/Vars:Pause", true);
_root.SaveLoad.gotoAndPlay("Load");
} else {
Set("/Vars:Pause", true);
_root.SaveLoad.gotoAndPlay("NoSave");
delete ObjSave;
}
}
}
}
on (keyPress "L") {
if (/:Challenge == false) {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
ObjSave = SharedObject.getLocal("ScoobEpi4");
if (ObjSave.data.Valeurs != null) {
delete ObjSave;
Set("/Vars:Pause", true);
_root.SaveLoad.gotoAndPlay("Load");
} else {
Set("/Vars:Pause", true);
_root.SaveLoad.gotoAndPlay("NoSave");
delete ObjSave;
}
}
}
}
on (keyPress "t") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) and (/Vars:LostControl == false)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 0);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
tellTarget (_root.Interface.Inv.ObjSelect) {
gotoAndStop(/Vars:InvArray.charAt(/Vars:PtInvArray));
};
}
if ((/Vars:InvOuvert == true) and (/Vars:InvArray.length > 2)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 1);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
}
}
on (keyPress "T") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) and (/Vars:LostControl == false)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 0);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
tellTarget (_root.Interface.Inv.ObjSelect) {
gotoAndStop(/Vars:InvArray.charAt(/Vars:PtInvArray));
};
}
if ((/Vars:InvOuvert == true) and (/Vars:InvArray.length > 2)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 1);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
}
}
on (keyPress "i") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 20;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
Set("/Vars:InvOuvert", true);
_root.HitI.gotoAndStop("Open");
_root.Interface.Inv.gotoAndStop("Open");
} else if ((/Vars:InvOuvert == true) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
Set("/Vars:InvOuvert", false);
_root.HitI.gotoAndStop("Close");
_root.Interface.Inv.gotoAndStop("Close");
}
}
on (keyPress "I") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 20;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
Set("/Vars:InvOuvert", true);
_root.HitI.gotoAndStop("Open");
_root.Interface.Inv.gotoAndStop("Open");
} else if ((/Vars:InvOuvert == true) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
Set("/Vars:InvOuvert", false);
_root.HitI.gotoAndStop("Close");
_root.Interface.Inv.gotoAndStop("Close");
}
}
on (keyPress "p") {
if (/:Challenge == false) {
if (((/Vars:InvOuvert == false) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
if (/Vars:Pause == false) {
_root.Mus.VolDest = 10;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
_root.Pause.gotoAndPlay(2);
} else {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
_root.Pause.play();
}
}
}
}
on (keyPress "P") {
if (/:Challenge == false) {
if (((/Vars:InvOuvert == false) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
if (/Vars:Pause == false) {
_root.Mus.VolDest = 10;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
_root.Pause.gotoAndPlay(2);
} else {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
_root.Pause.play();
}
}
}
}
on (keyPress "h") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 20;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
Set("/Vars:HelpOuvert", true);
_root.HitI.gotoAndStop("Open");
_root.Interface.gotoAndStop("Help");
} else if ((/Vars:HelpOuvert == true) and (/Vars:InvOuvert == false)) {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
Set("/Vars:HelpOuvert", false);
_root.HitI.gotoAndStop("Close");
_root.Interface.gotoAndStop(1);
}
}
on (keyPress "H") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 20;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
Set("/Vars:HelpOuvert", true);
_root.HitI.gotoAndStop("Open");
_root.Interface.gotoAndStop("Help");
} else if ((/Vars:HelpOuvert == true) and (/Vars:InvOuvert == false)) {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
Set("/Vars:HelpOuvert", false);
_root.HitI.gotoAndStop("Close");
_root.Interface.gotoAndStop(1);
}
}
Symbol 2376 MovieClip Frame 1
if (/Vars:Boom == true) {
nextFrame();
} else {
stop();
}
Symbol 2381 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2381 MovieClip Frame 1
/* no clip actions */
Symbol 2381 MovieClip Frame 44
tellTarget ("_root") {
gotoAndPlay ("Finale");
};
Symbol 2437 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2437 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2437 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2437 MovieClip Frame 27
_root.Boss1._x = -200;
Set("/Vars:BossStop", false);
Set("/Vars:EtatBoss", "PasLa");
Set("/Vars:BossActif", "Boss2");
Symbol 2437 MovieClip Frame 28
stop();
Symbol 2455 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2455 MovieClip Frame 1
/* no clip actions */
Symbol 2455 MovieClip Frame 2
Set("/Vars:EtatSs", "Cache");
Instance of Symbol 488 MovieClip in Symbol 2455 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2455 MovieClip Frame 30
stop();
Instance of Symbol 488 MovieClip in Symbol 2455 MovieClip Frame 30
onClipEvent (enterFrame) {
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
tellTarget (_parent.Attend) {
play();
};
if (Key.isDown(32)) {
if (/Vars:Boss3Filet == true) {
Set("/Vars:BossStop", true);
Set("/Vars:EtatBoss", "PasLa");
Set("/Vars:BossActif", "abc");
_root.Boss3.Obj.gotoAndStop("PasLa");
_root.AgpFilet2.gotoAndPlay(2);
_parent.nextFrame();
}
}
} else {
tellTarget (_parent.Attend) {
stop();
};
}
}
Symbol 2455 MovieClip Frame 31
stop();
Symbol 2527 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2527 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2527 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2527 MovieClip Frame 56
Set("/Vars:EtatBoss", "Marche");
Set("/Vars:DirBoss", "rd");
_root.Boss1.gotoAndStop(/Vars:DirBoss);
_root.Boss1.Obj.gotoAndStop(/Vars:EtatBoss);
Symbol 2527 MovieClip Frame 57
stop();
Symbol 2527 MovieClip Frame 58
Set("/Vars:EtatBoss", "PasLa");
_root.Boss1.Obj.gotoAndStop("PasLa");
Instance of Symbol 488 MovieClip in Symbol 2527 MovieClip Frame 58
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2527 MovieClip Frame 74
Set("/Vars:Arret", true);
gotoAndStop (1);
Symbol 2528 MovieClip Frame 1
if (/Vars:InvCorde == true) {
nextFrame();
} else {
stop();
}
Symbol 2542 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2542 MovieClip Frame 1
/* no clip actions */
Symbol 2542 MovieClip Frame 2
Set("/Vars:BossPause", false);
Set("/Vars:EtatSs", "Cache");
Instance of Symbol 488 MovieClip in Symbol 2542 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2542 MovieClip Frame 12
stop();
Instance of Symbol 488 MovieClip in Symbol 2542 MovieClip Frame 12
onClipEvent (enterFrame) {
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (Key.isDown(32)) {
if (/Vars:Boss1Grille == true) {
loadVariablesNum (/:TrackingUrl add "?episode=4&stage=5", 0);
Set("/Vars:BossStop", true);
_parent.nextFrame();
} else if (/Voix:Parle == false) {
Set("/Voix:Parle", true);
_root.Voix.gotoAndPlay("NotNow");
}
}
}
}
Instance of Symbol 488 MovieClip in Symbol 2542 MovieClip Frame 13
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2542 MovieClip Frame 22
Set("/Vars:EtatBoss", "PasLa");
Set("/Vars:BossActif", "abc");
Set("/Vars:TrappeOpen", true);
_root.Collider.CacheTrappe.gotoAndStop(1);
_root.Boss1.Obj.gotoAndStop("PasLa");
_root.AgpTrappe.gotoAndPlay(2);
Symbol 2542 MovieClip Frame 38
Set("/Vars:PersActif", "Ss");
Set("/Vars:VoirPrit", true);
Set("/Vars:NiveauSs", 1000);
_root.Ss.swapDepths(970);
_root.Fonct.FinAgp();
Symbol 2542 MovieClip Frame 39
stop();
Symbol 2555 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2555 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2555 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2555 MovieClip Frame 89
Set("/Vars:Poudre", true);
_root.Fonct.RemoveObj(/Vars:PtObjDel);
_root.Samy._x = 263.4;
_root.Samy._y = 157.8;
Set("/Vars:DirSamy", 1);
_root.Scooby.gotoAndStop(1);
_root.Fonct.FinAgp();
_root.Fonct.RetourPers("Scooby", "Samy", "Ss");
Symbol 2555 MovieClip Frame 90
stop();
Symbol 2555 MovieClip Frame 91
stop();
Symbol 2558 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2558 MovieClip Frame 1
/* no clip actions */
Symbol 2558 MovieClip Frame 2
Set("/Vars:EtatBoss", "PasLa");
Set("/Vars:BossActif", "abc");
_root.Boss1.Obj.gotoAndStop("PasLa");
_root.AgpPoudre.nextFrame();
_root.AgpBoom.gotoAndPlay(2);
Instance of Symbol 488 MovieClip in Symbol 2558 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2558 MovieClip Frame 90
Set("/Vars:Boom", true);
_root.Scooby.gotoAndStop(1);
_root.Fonct.FinAgp();
_root.Fonct.RetourPers("Scooby", "Samy", "Ss");
Symbol 2558 MovieClip Frame 134
stop();
Symbol 2563 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2563 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2563 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2563 MovieClip Frame 29
_root.Boss1._x = -200;
Set("/Vars:BossStop", false);
Set("/Vars:BossActif", "Boss3");
Symbol 2563 MovieClip Frame 30
stop();
Symbol 2576 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2576 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2576 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2576 MovieClip Frame 16
_root.AgpFuite10.gotoAndPlay(2);
Symbol 2576 MovieClip Frame 22
gotoAndStop (1);
Symbol 2577 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2577 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2577 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2577 MovieClip Frame 14
_root.AgpFuite10.gotoAndPlay(2);
Symbol 2577 MovieClip Frame 20
gotoAndStop (1);
Symbol 2578 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2578 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2578 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2578 MovieClip Frame 12
_root.AgpFuite10.gotoAndPlay(2);
Symbol 2578 MovieClip Frame 18
gotoAndStop (1);
Symbol 2579 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2579 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2579 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2579 MovieClip Frame 10
_root.AgpFuite10.gotoAndPlay(2);
Symbol 2579 MovieClip Frame 16
gotoAndStop (1);
Symbol 2580 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2580 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2580 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2580 MovieClip Frame 8
_root.AgpFuite10.gotoAndPlay(2);
Symbol 2580 MovieClip Frame 14
gotoAndStop (1);
Symbol 2581 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2581 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2581 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2581 MovieClip Frame 10
_root.AgpFuite12.gotoAndPlay(2);
Symbol 2581 MovieClip Frame 17
gotoAndStop (1);
Symbol 2582 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2582 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2582 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2582 MovieClip Frame 9
_root.AgpFuite12.gotoAndPlay(2);
Symbol 2582 MovieClip Frame 16
gotoAndStop (1);
Symbol 2583 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2583 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2583 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2583 MovieClip Frame 7
_root.AgpFuite12.gotoAndPlay(2);
Symbol 2583 MovieClip Frame 14
gotoAndStop (1);
Symbol 2584 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2584 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2584 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2584 MovieClip Frame 9
_root.AgpFuite12.gotoAndPlay(2);
Symbol 2584 MovieClip Frame 16
gotoAndStop (1);
Symbol 2587 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2587 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2587 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2587 MovieClip Frame 8
_root.Ss._x = 84.8;
_root.Ss._y = 369.4;
Set("/Vars:NiveauSs", 1000);
_root.Ss.swapDepths(2000);
Set("/Vars:DirSs", 7);
Set("/Vars:EtatSs", "Idle");
_root.Ss.gotoAndStop(7);
_root.Ss.Obj.gotoAndStop("Idle");
Set("/Vars:PersActif", "Ss");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Set("/Vars:WaitFear", -100);
Set("/Vars:Peur", false);
nextFrame();
Symbol 2587 MovieClip Frame 9
stop();
Symbol 2589 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2589 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2589 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2589 MovieClip Frame 15
_root.Ss._x = 84.8;
_root.Ss._y = 369.4;
Set("/Vars:NiveauSs", 1000);
_root.Ss.swapDepths(2000);
Set("/Vars:DirSs", 7);
Set("/Vars:EtatSs", "Idle");
_root.Ss.gotoAndStop(7);
_root.Ss.Obj.gotoAndStop("Idle");
Set("/Vars:PersActif", "Ss");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Set("/Vars:WaitFear", -100);
Set("/Vars:Peur", false);
nextFrame();
Symbol 2589 MovieClip Frame 16
stop();
Symbol 2590 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2590 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2590 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2590 MovieClip Frame 10
_root.Ss._x = 84.8;
_root.Ss._y = 369.4;
Set("/Vars:NiveauSs", 1000);
_root.Ss.swapDepths(2000);
Set("/Vars:DirSs", 7);
Set("/Vars:EtatSs", "Idle");
_root.Ss.gotoAndStop(7);
_root.Ss.Obj.gotoAndStop("Idle");
Set("/Vars:PersActif", "Ss");
Set("/Vars:VoirPrit", true);
_root.Fonct.FinAgp();
Set("/Vars:WaitFear", -100);
Set("/Vars:Peur", false);
nextFrame();
Symbol 2590 MovieClip Frame 11
stop();
Symbol 2594 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2594 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2594 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2594 MovieClip Frame 67
Set("/Vars:EtatBoss", "Marche");
Set("/Vars:DirBoss", "ld");
_root.Boss3.gotoAndStop(/Vars:DirBoss);
_root.Boss3.Obj.gotoAndStop(/Vars:EtatBoss);
nextFrame();
Symbol 2594 MovieClip Frame 68
stop();
Symbol 2594 MovieClip Frame 69
Set("/Vars:EtatBoss", "PasLa");
_root.Boss3.Obj.gotoAndStop("PasLa");
Instance of Symbol 488 MovieClip in Symbol 2594 MovieClip Frame 69
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2594 MovieClip Frame 81
gotoAndStop (1);
Symbol 2595 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2595 MovieClip Frame 1
/* no clip actions */
Symbol 2595 MovieClip Frame 2
Set("/Vars:EtatSs", "Cache");
Instance of Symbol 488 MovieClip in Symbol 2595 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2595 MovieClip Frame 46
_root.Fonct.RemoveObj(/Vars:PtObjDel);
_root.AgpSsTrappe.gotoAndPlay(2);
Symbol 2595 MovieClip Frame 47
stop();
Symbol 2601 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2601 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2601 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2601 MovieClip Frame 37
Set("/Vars:BossStop", false);
Set("/Vars:SortTab", true);
Set("/Vars:LostControl", true);
loadVariablesNum (/:TrackingUrl add "?episode=4&stage=7", 0);
_root.gotoAndStop("CloseTab3");
stop();
Symbol 2603 MovieClip Frame 1
stop();
Instance of Symbol 488 MovieClip in Symbol 2603 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 488 MovieClip in Symbol 2603 MovieClip Frame 2
onClipEvent (enterFrame) {
if (/Vars:Pause == true) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2603 MovieClip Frame 39
Set("/Vars:EtatBoss", "Marche");
Set("/Vars:DirBoss", "ru");
_root.Boss1.gotoAndStop(/Vars:DirBoss);
_root.Boss1.Obj.gotoAndStop(/Vars:EtatBoss);
Symbol 2603 MovieClip Frame 40
stop();
Symbol 2630 MovieClip Frame 1
if (random(100) < 50) {
gotoAndPlay (2);
} else {
gotoAndPlay (34);
}
Symbol 2630 MovieClip Frame 33
stop();
Symbol 2630 MovieClip Frame 67
stop();
Symbol 2637 MovieClip Frame 38
Set("/Vars:EtatBoss", "Idle");
Symbol 2638 MovieClip Frame 110
if (/Vars:BossStop == true) {
gotoAndPlay (1);
} else {
Set("/Vars:DirBoss", /Vars:DirBFinIdle);
Set("/Vars:EtatBoss", "Marche");
}
Symbol 2645 MovieClip Frame 71
gotoAndPlay (7);
Symbol 2660 MovieClip Frame 38
Set("/Vars:EtatBoss", "Idle");
Symbol 2661 MovieClip Frame 44
if (/Vars:BossStop == true) {
gotoAndPlay (1);
} else {
Set("/Vars:DirBoss", /Vars:DirBFinIdle);
Set("/Vars:EtatBoss", "Marche");
}
Symbol 2685 MovieClip Frame 57
gotoAndPlay (7);
Symbol 2687 MovieClip Frame 1
stop();
Instance of Symbol 2646 MovieClip "Obj" in Symbol 2687 MovieClip Frame 1
onClipEvent (load) {
if ((/Vars:BossActif eq "Boss1") or (/Vars:BossActif eq "Boss2")) {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2686 MovieClip "Obj" in Symbol 2687 MovieClip Frame 3
onClipEvent (load) {
if ((/Vars:BossActif eq "Boss1") or (/Vars:BossActif eq "Boss2")) {
tellTarget (this) {
gotoAndStop(/Vars:EtatBoss);
};
} else {
gotoAndStop (1);
}
}
Instance of Symbol 488 MovieClip in Symbol 2706 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2706 MovieClip Frame 11
stop();
Instance of Symbol 488 MovieClip in Symbol 2706 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (Key.isDown(32)) {
_parent.nextFrame();
}
}
}
Symbol 2706 MovieClip Frame 12
play();
Instance of Symbol 488 MovieClip in Symbol 2706 MovieClip Frame 12
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2706 MovieClip Frame 22
_root.Ss._x = _parent._x;
_root.Ss._y = _parent._y;
Set("/Vars:EtatSs", "Idle");
Set("/Vars:DirSs", 1);
Set("/Vars:PersActif", "Ss");
Set("/Vars:LostControl", false);
_root.Ss.gotoAndStop(1);
_root.Ss.Obj.gotoAndStop("Idle");
Symbol 2706 MovieClip Frame 23
Set("/Vars:EtatFlag", 1);
_parent.gotoAndStop(1);
Instance of Symbol 488 MovieClip in Symbol 2709 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2709 MovieClip Frame 11
stop();
Instance of Symbol 488 MovieClip in Symbol 2709 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (Key.isDown(32)) {
_parent.nextFrame();
}
}
}
Symbol 2709 MovieClip Frame 12
play();
Instance of Symbol 488 MovieClip in Symbol 2709 MovieClip Frame 12
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2709 MovieClip Frame 22
_root.Ss._x = _parent._x;
_root.Ss._y = _parent._y;
Set("/Vars:EtatSs", "Idle");
Set("/Vars:DirSs", 2);
Set("/Vars:PersActif", "Ss");
Set("/Vars:LostControl", false);
_root.Ss.gotoAndStop(2);
_root.Ss.Obj.gotoAndStop("Idle");
Symbol 2709 MovieClip Frame 23
Set("/Vars:EtatFlag", 1);
_parent.gotoAndStop(1);
Instance of Symbol 488 MovieClip in Symbol 2710 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2710 MovieClip Frame 11
stop();
Instance of Symbol 488 MovieClip in Symbol 2710 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (Key.isDown(32)) {
_parent.nextFrame();
}
}
}
Symbol 2710 MovieClip Frame 12
play();
Instance of Symbol 488 MovieClip in Symbol 2710 MovieClip Frame 12
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2710 MovieClip Frame 22
_root.Ss._x = _parent._x;
_root.Ss._y = _parent._y;
Set("/Vars:EtatSs", "Idle");
Set("/Vars:DirSs", 3);
Set("/Vars:PersActif", "Ss");
Set("/Vars:LostControl", false);
_root.Ss.gotoAndStop(3);
_root.Ss.Obj.gotoAndStop("Idle");
Symbol 2710 MovieClip Frame 23
Set("/Vars:EtatFlag", 1);
_parent.gotoAndStop(1);
Instance of Symbol 488 MovieClip in Symbol 2725 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2725 MovieClip Frame 11
stop();
Instance of Symbol 488 MovieClip in Symbol 2725 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (Key.isDown(32)) {
_parent.nextFrame();
}
}
}
Symbol 2725 MovieClip Frame 12
play();
Instance of Symbol 488 MovieClip in Symbol 2725 MovieClip Frame 12
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2725 MovieClip Frame 22
_root.Ss._x = _parent._x;
_root.Ss._y = _parent._y;
Set("/Vars:EtatSs", "Idle");
Set("/Vars:DirSs", 4);
Set("/Vars:PersActif", "Ss");
Set("/Vars:LostControl", false);
_root.Ss.gotoAndStop(4);
_root.Ss.Obj.gotoAndStop("Idle");
Symbol 2725 MovieClip Frame 23
Set("/Vars:EtatFlag", 1);
_parent.gotoAndStop(1);
Instance of Symbol 488 MovieClip in Symbol 2734 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2734 MovieClip Frame 11
stop();
Instance of Symbol 488 MovieClip in Symbol 2734 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (Key.isDown(32)) {
_parent.nextFrame();
}
}
}
Instance of Symbol 488 MovieClip in Symbol 2734 MovieClip Frame 12
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2734 MovieClip Frame 22
_root.Ss._x = _parent._x;
_root.Ss._y = _parent._y;
Set("/Vars:EtatSs", "Idle");
Set("/Vars:DirSs", 5);
Set("/Vars:PersActif", "Ss");
Set("/Vars:LostControl", false);
_root.Ss.gotoAndStop(5);
_root.Ss.Obj.gotoAndStop("Idle");
Symbol 2734 MovieClip Frame 23
Set("/Vars:EtatFlag", 1);
_parent.gotoAndStop(1);
Instance of Symbol 488 MovieClip in Symbol 2737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2737 MovieClip Frame 11
stop();
Instance of Symbol 488 MovieClip in Symbol 2737 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (Key.isDown(32)) {
_parent.nextFrame();
}
}
}
Instance of Symbol 488 MovieClip in Symbol 2737 MovieClip Frame 12
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2737 MovieClip Frame 22
_root.Ss._x = _parent._x;
_root.Ss._y = _parent._y;
Set("/Vars:EtatSs", "Idle");
Set("/Vars:DirSs", 6);
Set("/Vars:PersActif", "Ss");
Set("/Vars:LostControl", false);
_root.Ss.gotoAndStop(6);
_root.Ss.Obj.gotoAndStop("Idle");
Symbol 2737 MovieClip Frame 23
Set("/Vars:EtatFlag", 1);
_parent.gotoAndStop(1);
Instance of Symbol 488 MovieClip in Symbol 2738 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2738 MovieClip Frame 11
stop();
Instance of Symbol 488 MovieClip in Symbol 2738 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (Key.isDown(32)) {
_parent.nextFrame();
}
}
}
Instance of Symbol 488 MovieClip in Symbol 2738 MovieClip Frame 12
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2738 MovieClip Frame 22
_root.Ss._x = _parent._x;
_root.Ss._y = _parent._y;
Set("/Vars:EtatSs", "Idle");
Set("/Vars:DirSs", 7);
Set("/Vars:PersActif", "Ss");
Set("/Vars:LostControl", false);
_root.Ss.gotoAndStop(7);
_root.Ss.Obj.gotoAndStop("Idle");
Symbol 2738 MovieClip Frame 23
Set("/Vars:EtatFlag", 1);
_parent.gotoAndStop(1);
Instance of Symbol 488 MovieClip in Symbol 2739 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2739 MovieClip Frame 11
stop();
Instance of Symbol 488 MovieClip in Symbol 2739 MovieClip Frame 11
onClipEvent (enterFrame) {
if (((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) {
if (Key.isDown(32)) {
_parent.nextFrame();
}
}
}
Instance of Symbol 488 MovieClip in Symbol 2739 MovieClip Frame 12
onClipEvent (enterFrame) {
if (((/Vars:Pause == true) or (/Vars:InvOuvert == true)) or (/Vars:HelpOuvert == true)) {
tellTarget (_parent) {
stop();
};
} else {
tellTarget (_parent) {
play();
};
}
}
Symbol 2739 MovieClip Frame 22
_root.Ss._x = _parent._x;
_root.Ss._y = _parent._y;
Set("/Vars:EtatSs", "Idle");
Set("/Vars:DirSs", 8);
Set("/Vars:PersActif", "Ss");
Set("/Vars:LostControl", false);
_root.Ss.gotoAndStop(8);
_root.Ss.Obj.gotoAndStop("Idle");
Symbol 2739 MovieClip Frame 23
Set("/Vars:EtatFlag", 1);
_parent.gotoAndStop(1);
Symbol 2740 MovieClip Frame 1
stop();
Instance of Symbol 2706 MovieClip "Etat" in Symbol 2740 MovieClip Frame 2
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(/Vars:EtatFlag);
};
}
Instance of Symbol 2709 MovieClip "Etat" in Symbol 2740 MovieClip Frame 3
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(/Vars:EtatFlag);
};
}
Instance of Symbol 2710 MovieClip "Etat" in Symbol 2740 MovieClip Frame 4
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(/Vars:EtatFlag);
};
}
Instance of Symbol 2725 MovieClip "Etat" in Symbol 2740 MovieClip Frame 5
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(/Vars:EtatFlag);
};
}
Instance of Symbol 2734 MovieClip "Etat" in Symbol 2740 MovieClip Frame 6
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(/Vars:EtatFlag);
};
}
Instance of Symbol 2737 MovieClip "Etat" in Symbol 2740 MovieClip Frame 7
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(/Vars:EtatFlag);
};
}
Instance of Symbol 2738 MovieClip "Etat" in Symbol 2740 MovieClip Frame 8
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(/Vars:EtatFlag);
};
}
Instance of Symbol 2739 MovieClip "Etat" in Symbol 2740 MovieClip Frame 9
onClipEvent (load) {
tellTarget (this) {
gotoAndStop(/Vars:EtatFlag);
};
}
Symbol 2743 Button
on (keyPress "<Down>") {
if (((/Vars:Pause == false) and (/Vars:LostControl == false)) and (/Vars:InvOuvert == false)) {
if (/Vars:Bas == false) {
if (Key.isDown(Key.Down)) {
Set("/Vars:Bas", true);
}
}
}
}
on (keyPress "<Up>") {
if (((/Vars:Pause == false) and (/Vars:LostControl == false)) and (/Vars:InvOuvert == false)) {
if (/Vars:Haut == false) {
if (Key.isDown(Key.Up)) {
Set("/Vars:Haut", true);
}
}
}
}
on (keyPress "<Left>") {
if (/Vars:Pause == false) {
if (/Vars:LostControl == false) {
if (/Vars:Gauche == false) {
if (Key.isDown(Key.Left)) {
Set("/Vars:Gauche", true);
}
}
}
}
if ((/Vars:InvOuvert == true) and (/Vars:InvArray.length > 2)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray - 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if (/Vars:PtInvArray > 0) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", /Vars:InvArray.length - 1);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
}
}
on (keyPress "<Right>") {
if (/Vars:Pause == false) {
if (/Vars:LostControl == false) {
if (/Vars:Droite == false) {
if (Key.isDown(Key.Right)) {
Set("/Vars:Droite", true);
}
}
}
}
if ((/Vars:InvOuvert == true) and (/Vars:InvArray.length > 2)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 1);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
}
}
on (keyPress "s") {
if (/:Challenge == false) {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
if ((/Vars:BossActif eq "Boss1") or (/Vars:BossActif eq "Boss2")) {
Set("/Vars:BossX", _root.Boss1._x);
Set("/Vars:BossY", _root.Boss1._y);
} else {
Set("/Vars:BossX", _root.Boss3._x);
Set("/Vars:BossY", _root.Boss3._y);
}
Set("/Vars:EtatFlag", getProperty("_root.AgpUseFlag.Etat", _currentframe));
Set("/Vars:FlagX", _root.AgpUseFlag._x);
Set("/Vars:FlagY", _root.AgpUseFlag._y);
Set("/Vars:DepthFlag", _root.AgpUseFlag.getDepth());
Set("/Vars:Saving", true);
}
}
}
on (keyPress "S") {
if (/:Challenge == false) {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
if ((/Vars:BossActif eq "Boss1") or (/Vars:BossActif eq "Boss2")) {
Set("/Vars:BossX", _root.Boss1._x);
Set("/Vars:BossY", _root.Boss1._y);
} else {
Set("/Vars:BossX", _root.Boss3._x);
Set("/Vars:BossY", _root.Boss3._y);
}
Set("/Vars:EtatFlag", getProperty("_root.AgpUseFlag.Etat", _currentframe));
Set("/Vars:FlagX", _root.AgpUseFlag._x);
Set("/Vars:FlagY", _root.AgpUseFlag._y);
Set("/Vars:DepthFlag", _root.AgpUseFlag.getDepth());
Set("/Vars:Saving", true);
}
}
}
on (keyPress "l") {
if (/:Challenge == false) {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
ObjSave = SharedObject.getLocal("ScoobEpi4");
if (ObjSave.data.Valeurs != null) {
delete ObjSave;
Set("/Vars:Pause", true);
_root.SaveLoad.gotoAndPlay("Load");
} else {
Set("/Vars:Pause", true);
_root.SaveLoad.gotoAndPlay("NoSave");
delete ObjSave;
}
}
}
}
on (keyPress "L") {
if (/:Challenge == false) {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 0;
_root.Mus.gotoAndStop("Fade");
ObjSave = SharedObject.getLocal("ScoobEpi4");
if (ObjSave.data.Valeurs != null) {
delete ObjSave;
Set("/Vars:Pause", true);
_root.SaveLoad.gotoAndPlay("Load");
} else {
Set("/Vars:Pause", true);
_root.SaveLoad.gotoAndPlay("NoSave");
delete ObjSave;
}
}
}
}
on (keyPress "t") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) and ((/Vars:LostControl == false) or (/Vars:SamyGrimpe == true))) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 0);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
tellTarget (_root.Interface.Inv.ObjSelect) {
gotoAndStop(/Vars:InvArray.charAt(/Vars:PtInvArray));
};
}
if ((/Vars:InvOuvert == true) and (/Vars:InvArray.length > 2)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 1);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
}
}
on (keyPress "T") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:HelpOuvert == false)) and ((/Vars:LostControl == false) or (/Vars:SamyGrimpe == true))) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 0);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
tellTarget (_root.Interface.Inv.ObjSelect) {
gotoAndStop(/Vars:InvArray.charAt(/Vars:PtInvArray));
};
}
if ((/Vars:InvOuvert == true) and (/Vars:InvArray.length > 2)) {
Set("/Vars:PtInvArray", /Vars:PtInvArray + 1);
if ((_root.Vars.InvArray.charAt(1) != null) and (_root.Vars.InvArray.charAt(1) ne "")) {
_root.TabInv.play();
}
if ((_root.Vars:InvArray.charAt(/Vars:PtInvArray) != null) and (_root.Vars.InvArray.charAt(/Vars:PtInvArray) ne "")) {
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
} else {
Set("/Vars:PtInvArray", 1);
Set("/Vars:ObjSelect", _root.Vars:InvArray.charAt(/Vars:PtInvArray));
}
}
}
on (keyPress "i") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 20;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
Set("/Vars:InvOuvert", true);
_root.HitI.gotoAndStop("Open");
_root.Interface.Inv.gotoAndStop("Open");
} else if ((/Vars:InvOuvert == true) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
Set("/Vars:InvOuvert", false);
_root.HitI.gotoAndStop("Close");
_root.Interface.Inv.gotoAndStop("Close");
}
}
on (keyPress "I") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 20;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
Set("/Vars:InvOuvert", true);
_root.HitI.gotoAndStop("Open");
_root.Interface.Inv.gotoAndStop("Open");
} else if ((/Vars:InvOuvert == true) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
Set("/Vars:InvOuvert", false);
_root.HitI.gotoAndStop("Close");
_root.Interface.Inv.gotoAndStop("Close");
}
}
on (keyPress "p") {
if (/:Challenge == false) {
if (((/Vars:InvOuvert == false) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
if (/Vars:Pause == false) {
_root.Mus.VolDest = 10;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
_root.Pause.gotoAndPlay(2);
} else {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
_root.Pause.play();
}
}
}
}
on (keyPress "P") {
if (/:Challenge == false) {
if (((/Vars:InvOuvert == false) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
if (/Vars:Pause == false) {
_root.Mus.VolDest = 10;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
_root.Pause.gotoAndPlay(2);
} else {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
_root.Pause.play();
}
}
}
}
on (keyPress "h") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 20;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
Set("/Vars:HelpOuvert", true);
_root.HitI.gotoAndStop("Open");
_root.Interface.gotoAndStop("Help");
} else if ((/Vars:HelpOuvert == true) and (/Vars:InvOuvert == false)) {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
Set("/Vars:HelpOuvert", false);
_root.HitI.gotoAndStop("Close");
_root.Interface.gotoAndStop(1);
}
}
on (keyPress "H") {
if ((((/Vars:Pause == false) and (/Vars:InvOuvert == false)) and (/Vars:SortTab == false)) and (/Vars:HelpOuvert == false)) {
_root.Mus.VolDest = 20;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", true);
Set("/Vars:HelpOuvert", true);
_root.HitI.gotoAndStop("Open");
_root.Interface.gotoAndStop("Help");
} else if ((/Vars:HelpOuvert == true) and (/Vars:InvOuvert == false)) {
_root.Mus.VolDest = 100;
_root.Mus.gotoAndStop("Fade");
Set("/Vars:Pause", false);
Set("/Vars:HelpOuvert", false);
_root.HitI.gotoAndStop("Close");
_root.Interface.gotoAndStop(1);
}
}
Symbol 2938 MovieClip Frame 407
tellTarget ("_root") {
gotoAndPlay ("Tab2Set");
};
Symbol 3153 MovieClip Frame 804
tellTarget ("_root") {
gotoAndPlay ("Tab3Set");
};
Symbol 3609 MovieClip Frame 73
stop();
Symbol 3610 MovieClip Frame 100
stop();