Frame 1
_root.gVersionNum = "1.0";
fscommand ("showmenu", "false");
pLoadInit = false;
pTrackLoadCalled = false;
if (/:gGameID eq "") {
Set("/:gGameID", "game_template_NO_ID");
}
if (/:gHSRoot_swf eq "") {
Set("/:gHSRoot_swf", "http://www2.warnerbros.com/games/med/");
}
if (/:gHSRoot_jsp eq "") {
Set("/:gHSRoot_jsp", "http://www2.warnerbros.com/web/load_variables/games/");
}
if (/:gHSRoot_top100 eq "") {
Set("/:gHSRoot_top100", "http://www2.warnerbros.com/web/games/");
}
function cTimer() {
this.startTime = getTimer();
}
cTimer.prototype.restartTimer = function () {
this.startTime = getTimer();
};
cTimer.prototype.milliseconds = function () {
return(getTimer() - this.startTime);
};
cTimer.prototype.seconds = function () {
return(int((getTimer() - this.startTime) / 1000));
};
iLevelPauseTimer = new cTimer();
Frame 4
Set("_level0:gWTE_FL", _framesloaded);
Set("_level0:gWTE_PL", int((_level0:gWTE_FL / _level0:gWTE_TF) * 100));
Set("_level0:gWTE_PLtxt", _level0:gWTE_PL add "%");
ifFrameLoaded (94) {
if ((/hs_scripts/:gLoaded == true) || (/:gHS_bypass == true)) {
gotoAndPlay (9);
}
}
if (pLoadInit != true) {
Set("/:gGameState", "LOADING");
pLoadStartTime = int(getTimer() / 1000);
tellTarget ("/hs_scripts") {
call("mLoading");
};
pLoadInit = true;
}
if (/:gHSTrackLoad && (pTrackLoadCalled != true)) {
loadVariablesNum ((((("/tracking.html?game=" add /:gGameID) add "&stage=0&timer=") add pLoadStartTime) add "&random_id=") add pLoadStartTime, 0);
pTrackLoadCalled = true;
}
Frame 6
gotoAndPlay (4);
Frame 9
tellTarget ("/hs_scripts") {
call("mLoaded");
};
Frame 15
stop();
stop();
Frame 20
stop();
stop();
Frame 22
tellTarget ("/hs_scripts") {
call("mPlay");
};
Frame 25
tellTarget ("/hs_scripts") {
call("mLevelStart");
};
Frame 33
tellTarget ("/hs_scripts") {
call("mLevelStart");
};
Instance of Symbol 271 MovieClip "Vars" in Frame 33
onClipEvent (load) {
IniTab = function (Niveau) {
Set("/Vars:Level", Niveau);
_root.gLevel = Niveau;
Set("_root.Pts:Sec", 0);
Set("_root.Pts:Min", 3);
if (Niveau == 1) {
i = 1;
while (i < 41) {
Set("/Vars:Food" + i, 24);
i++;
}
Set("/Vars:IntSamy", 0);
Set("/Vars:ImpactRatio", 3);
Set("/Vars:WaitGhost", 8);
Set("/Vars:MinGhost", 6);
Set("/Vars:RandGhost", 30);
Set("/Vars:MaxPousse", 10);
Set("/Vars:MaxX", 4);
Set("/Vars:ImpactGhost", 5);
Set("/Vars:NbLevel", eval ("/Vars:NbLevel" + Niveau));
} else if (Niveau == 2) {
i = 1;
while (i < 41) {
Set("/Vars:Food" + i, 24);
i++;
}
Set("/Vars:IntSamy", 0);
Set("/Vars:ImpactRatio", 3);
Set("/Vars:WaitGhost", 6);
Set("/Vars:MinGhost", 3);
Set("/Vars:RandGhost", 20);
Set("/Vars:MaxPousse", 10);
this.MaxX = 4;
Set("/Vars:ImpactGhost", 5);
Set("/Vars:NbLevel", eval ("/Vars:NbLevel" + Niveau));
} else {
i = 1;
while (i < 41) {
Set("/Vars:Food" + i, 24);
i++;
}
Set("/Vars:IntSamy", 0);
Set("/Vars:ImpactRatio", 3);
Set("/Vars:WaitGhost", 4);
Set("/Vars:MinGhost", 0);
Set("/Vars:RandGhost", 15);
Set("/Vars:MaxPousse", 10);
Set("/Vars:MaxX", 4);
Set("/Vars:ImpactGhost", 5);
Set("/Vars:NbLevel", eval ("/Vars:NbLevel" + Niveau));
}
};
this.NbLevel1 = 25;
this.NbLevel2 = 35;
this.NbLevel3 = 40;
this.ItemLevel1 = new Array();
this.ItemLevel1.push(0);
i = 1;
while (i < /Vars:NbLevel1) {
Temp = random(14) + 5;
if ((Temp == 7) or (Temp == 8)) {
Temp = 17;
} else if ((Temp == 14) or (Temp == 16)) {
Temp = 12;
} else if (Temp == 18) {
Temp = 5;
}
this.ItemLevel1.push(Temp);
i++;
}
this.ItemLevel1.push(22);
this.ItemLevel2 = new Array();
this.ItemLevel2.push(0);
this.ItemLevel2.push(20);
i = 2;
while (i < (/Vars:NbLevel2 - 1)) {
Temp = random(17) + 1;
if ((Temp == 2) or (Temp == 3)) {
Temp = 19;
} else if ((Temp == 4) or (Temp == 9)) {
Temp = 1;
} else if ((Temp == 10) or (Temp == 11)) {
Temp = 13;
} else if (Temp == 18) {
Temp = 16;
}
this.ItemLevel2.push(Temp);
i++;
}
this.ItemLevel2.push(21);
this.ItemLevel2.push(23);
this.ItemLevel3 = new Array();
this.ItemLevel3.push(0);
this.ItemLevel3.push(3);
i = 2;
while (i < /Vars:NbLevel3) {
Temp = random(19) + 1;
if (Temp == 3) {
Temp = 2;
} else if (Temp == 4) {
Temp = 1;
}
this.ItemLevel3.push(Temp);
i++;
}
this.ItemLevel3.push(4);
this.Win = false;
this.Level = 1;
this.Arret = false;
this.Sens = "GD";
this.CenterGD = 163;
this.CenterDG = 508;
this.FrTotal = 671;
this.NbItem = 0;
this.LoopSamy = 0;
this.ItemActif = 0;
this.ImpSouffle = 0;
this.InspireOk = false;
this.Inspire = false;
this.Souffle = false;
this.MinPenche = 9;
this.DirScoob = "Arret";
this.Penche = false;
this.PencheOk = false;
this.Ghost = false;
this.GhostRate = 0;
this.GhostPass = false;
this.FlagShake = 0;
this.RatioSouffle = 1.5;
this.VentModif = 8;
}
Instance of Symbol 271 MovieClip "Pts" in Frame 33
onClipEvent (load) {
this.Pts = 0;
this.TotalPts = 0;
this.ItemPts = 10;
this.GhostPts = 80;
this.SecPts = 5;
this.BlowPts = 1;
this.Sec = 0;
this.Min = 3;
}
Instance of Symbol 284 MovieClip "Score" in Frame 33
onClipEvent (load) {
Set("_root.Score:Score", _root.Pts:Pts);
Set("_root.Score:ScoreBg", _root.Pts:Pts);
}
Instance of Symbol 289 MovieClip "Stack" in Frame 33
onClipEvent (load) {
Set("_root.Stack:Stack", "00");
Set("_root.Stack:StackBg", "00");
}
Frame 34
_root.Vars.IniTab(1);
stop();
Frame 35
stop();
Instance of Symbol 418 MovieClip "Samy" in Frame 35
onClipEvent (load) {
this.gotoAndStop("Idle");
}
Instance of Symbol 440 MovieClip "ItemFall" in Frame 35
onClipEvent (load) {
this.gotoAndStop("Rien");
}
Frame 36
_root.Sand.Scoob.Obj.gotoAndStop("Gagne");
_root.Samy.gotoAndStop("Gagne");
_root.Timer.stop();
stop();
Frame 37
tellTarget ("/hs_scripts") {
call("mLevelStart");
};
Instance of Symbol 271 MovieClip "Vars" in Frame 38
onClipEvent (load) {
IniTab = function (Niveau) {
Set("/Vars:Level", Niveau);
_root.gLevel = Niveau;
Set("_root.Pts:Sec", 0);
Set("_root.Pts:Min", 3);
if (Niveau == 1) {
i = 1;
while (i < 41) {
Set("/Vars:Food" + i, 24);
i++;
}
Set("/Vars:IntSamy", 0);
Set("/Vars:ImpactRatio", 3);
Set("/Vars:WaitGhost", 8);
Set("/Vars:MinGhost", 6);
Set("/Vars:RandGhost", 30);
Set("/Vars:MaxPousse", 10);
Set("/Vars:MaxX", 4);
Set("/Vars:ImpactGhost", 5);
Set("/Vars:NbLevel", eval ("/Vars:NbLevel" + Niveau));
} else if (Niveau == 2) {
i = 1;
while (i < 41) {
Set("/Vars:Food" + i, 24);
i++;
}
Set("/Vars:IntSamy", 0);
Set("/Vars:ImpactRatio", 3);
Set("/Vars:WaitGhost", 6);
Set("/Vars:MinGhost", 3);
Set("/Vars:RandGhost", 20);
Set("/Vars:MaxPousse", 10);
this.MaxX = 4;
Set("/Vars:ImpactGhost", 5);
Set("/Vars:NbLevel", eval ("/Vars:NbLevel" + Niveau));
} else {
i = 1;
while (i < 41) {
Set("/Vars:Food" + i, 24);
i++;
}
Set("/Vars:IntSamy", 0);
Set("/Vars:ImpactRatio", 3);
Set("/Vars:WaitGhost", 4);
Set("/Vars:MinGhost", 0);
Set("/Vars:RandGhost", 15);
Set("/Vars:MaxPousse", 10);
Set("/Vars:MaxX", 4);
Set("/Vars:ImpactGhost", 5);
Set("/Vars:NbLevel", eval ("/Vars:NbLevel" + Niveau));
}
};
this.NbLevel1 = 20;
this.NbLevel2 = 30;
this.NbLevel3 = 40;
this.ItemLevel1 = new Array();
this.ItemLevel1.push(0);
i = 1;
while (i < /Vars:NbLevel1) {
Temp = random(14) + 5;
if ((Temp == 7) or (Temp == 8)) {
Temp = 17;
} else if ((Temp == 14) or (Temp == 16)) {
Temp = 12;
} else if (Temp == 18) {
Temp = 5;
}
this.ItemLevel1.push(Temp);
i++;
}
this.ItemLevel1.push(22);
this.ItemLevel2 = new Array();
this.ItemLevel2.push(0);
this.ItemLevel2.push(20);
i = 2;
while (i < (/Vars:NbLevel2 - 1)) {
Temp = random(17) + 1;
if ((Temp == 2) or (Temp == 3)) {
Temp = 19;
} else if ((Temp == 4) or (Temp == 9)) {
Temp = 1;
} else if ((Temp == 10) or (Temp == 11)) {
Temp = 13;
} else if (Temp == 18) {
Temp = 16;
}
this.ItemLevel2.push(Temp);
i++;
}
this.ItemLevel2.push(21);
this.ItemLevel2.push(23);
this.ItemLevel3 = new Array();
this.ItemLevel3.push(0);
this.ItemLevel3.push(3);
i = 2;
while (i < /Vars:NbLevel3) {
Temp = random(19) + 1;
if (Temp == 3) {
Temp = 2;
} else if (Temp == 4) {
Temp = 1;
}
this.ItemLevel3.push(Temp);
i++;
}
this.ItemLevel3.push(4);
this.Win = false;
this.Level = 1;
this.Arret = false;
this.Sens = "GD";
this.CenterGD = 163;
this.CenterDG = 508;
this.FrTotal = 671;
this.NbItem = 0;
this.LoopSamy = 0;
this.ItemActif = 0;
this.ImpSouffle = 0;
this.InspireOk = false;
this.Souffle = false;
this.MinPenche = 9;
this.DirScoob = "Arret";
this.Penche = false;
this.PencheOk = false;
this.Ghost = false;
this.GhostRate = 0;
this.GhostPass = false;
this.FlagShake = 0;
this.RatioSouffle = 1.5;
this.VentModif = 8;
}
Frame 39
_root.Vars.IniTab(2);
stop();
Frame 40
stop();
Instance of Symbol 418 MovieClip "Samy" in Frame 40
onClipEvent (load) {
this.gotoAndStop("Idle");
}
Instance of Symbol 440 MovieClip "ItemFall" in Frame 40
onClipEvent (load) {
this.gotoAndStop("Rien");
}
Frame 41
_root.Sand.Scoob.Obj.gotoAndStop("Gagne");
_root.Samy.gotoAndStop("Gagne");
_root.Timer.stop();
stop();
Frame 42
tellTarget ("/hs_scripts") {
call("mLevelStart");
};
Instance of Symbol 271 MovieClip "Vars" in Frame 43
onClipEvent (load) {
IniTab = function (Niveau) {
Set("/Vars:Level", Niveau);
_root.gLevel = Niveau;
Set("_root.Pts:Sec", 0);
Set("_root.Pts:Min", 3);
if (Niveau == 1) {
i = 1;
while (i < 41) {
Set("/Vars:Food" + i, 24);
i++;
}
Set("/Vars:IntSamy", 0);
Set("/Vars:ImpactRatio", 3);
Set("/Vars:WaitGhost", 8);
Set("/Vars:MinGhost", 6);
Set("/Vars:RandGhost", 30);
Set("/Vars:MaxPousse", 10);
Set("/Vars:MaxX", 4);
Set("/Vars:ImpactGhost", 5);
Set("/Vars:NbLevel", eval ("/Vars:NbLevel" + Niveau));
} else if (Niveau == 2) {
i = 1;
while (i < 41) {
Set("/Vars:Food" + i, 24);
i++;
}
Set("/Vars:IntSamy", 0);
Set("/Vars:ImpactRatio", 3);
Set("/Vars:WaitGhost", 6);
Set("/Vars:MinGhost", 3);
Set("/Vars:RandGhost", 20);
Set("/Vars:MaxPousse", 10);
this.MaxX = 4;
Set("/Vars:ImpactGhost", 5);
Set("/Vars:NbLevel", eval ("/Vars:NbLevel" + Niveau));
} else {
i = 1;
while (i < 41) {
Set("/Vars:Food" + i, 24);
i++;
}
Set("/Vars:IntSamy", 0);
Set("/Vars:ImpactRatio", 3);
Set("/Vars:WaitGhost", 4);
Set("/Vars:MinGhost", 0);
Set("/Vars:RandGhost", 15);
Set("/Vars:MaxPousse", 10);
Set("/Vars:MaxX", 4);
Set("/Vars:ImpactGhost", 5);
Set("/Vars:NbLevel", eval ("/Vars:NbLevel" + Niveau));
}
};
this.NbLevel1 = 20;
this.NbLevel2 = 30;
this.NbLevel3 = 40;
this.ItemLevel1 = new Array();
this.ItemLevel1.push(0);
i = 1;
while (i < /Vars:NbLevel1) {
Temp = random(14) + 5;
if ((Temp == 7) or (Temp == 8)) {
Temp = 17;
} else if ((Temp == 14) or (Temp == 16)) {
Temp = 12;
} else if (Temp == 18) {
Temp = 5;
}
this.ItemLevel1.push(Temp);
i++;
}
this.ItemLevel1.push(22);
this.ItemLevel2 = new Array();
this.ItemLevel2.push(0);
this.ItemLevel2.push(20);
i = 2;
while (i < (/Vars:NbLevel2 - 1)) {
Temp = random(17) + 1;
if ((Temp == 2) or (Temp == 3)) {
Temp = 19;
} else if ((Temp == 4) or (Temp == 9)) {
Temp = 1;
} else if ((Temp == 10) or (Temp == 11)) {
Temp = 13;
} else if (Temp == 18) {
Temp = 16;
}
this.ItemLevel2.push(Temp);
i++;
}
this.ItemLevel2.push(21);
this.ItemLevel2.push(23);
this.ItemLevel3 = new Array();
this.ItemLevel3.push(0);
this.ItemLevel3.push(3);
i = 2;
while (i < /Vars:NbLevel3) {
Temp = random(19) + 1;
if (Temp == 3) {
Temp = 2;
} else if (Temp == 4) {
Temp = 1;
}
this.ItemLevel3.push(Temp);
i++;
}
this.ItemLevel3.push(4);
this.Win = false;
this.Level = 1;
this.Arret = false;
this.Sens = "GD";
this.CenterGD = 163;
this.CenterDG = 508;
this.FrTotal = 671;
this.NbItem = 0;
this.LoopSamy = 0;
this.ItemActif = 0;
this.ImpSouffle = 0;
this.InspireOk = false;
this.Souffle = false;
this.MinPenche = 9;
this.DirScoob = "Arret";
this.Penche = false;
this.PencheOk = false;
this.Ghost = false;
this.GhostRate = 0;
this.GhostPass = false;
this.FlagShake = 0;
this.RatioSouffle = 1.5;
this.VentModif = 8;
}
Frame 44
_root.Vars.IniTab(3);
stop();
Frame 45
stop();
Instance of Symbol 418 MovieClip "Samy" in Frame 45
onClipEvent (load) {
this.gotoAndStop("Idle");
}
Instance of Symbol 440 MovieClip "ItemFall" in Frame 45
onClipEvent (load) {
this.gotoAndStop("Rien");
}
Frame 46
_root.Sand.Scoob.Obj.gotoAndStop("Gagne");
_root.Samy.gotoAndStop("Gagne");
_root.Timer.stop();
stop();
Frame 48
_root.iLevelPauseTimer.restartTimer();
_root.gLevel = _root.gLevel + 1;
_root.TempScore = _root.Pts:Pts;
_root.Time = ((_root.Pts:Min * 60) + _root.Pts:Sec) * _root.Pts:SecPts;
Set("_root.Pts:Pts", _root.Pts:Pts + int(_root:time));
_root.Total = _root.Pts:Pts;
stop();
Frame 53
_root.iLevelPauseTimer.restartTimer();
_root.gLevel = _root.gLevel + 1;
_root.TempScore = _root.Pts:Pts;
_root.Time = ((_root.Pts:Min * 60) + _root.Pts:Sec) * _root.Pts:SecPts;
Set("_root.Pts:Pts", _root.Pts:Pts + int(_root:time));
_root.Total = _root.Pts:Pts;
stop();
Frame 58
_root.iLevelPauseTimer.restartTimer();
_root.gLevel = _root.gLevel + 1;
_root.TempScore = _root.Pts:Pts;
_root.Time = ((_root.Pts:Min * 60) + _root.Pts:Sec) * _root.Pts:SecPts;
Set("_root.Pts:Pts", _root.Pts:Pts + int(_root:time));
_root.Total = _root.Pts:Pts;
_root.gScore = _root.Pts:Pts;
stop();
Frame 62
_root.Total = _root.Pts:Pts;
_root.gScore = _root.Pts:Pts;
stop();
Frame 75
gotoAndPlay (33);
Frame 78
gotoAndPlay (33);
Frame 81
tellTarget ("/hs_scripts") {
call("mGameOver");
};
stop();
Set("_root:TempScore", _root:SubScoreTemp);
Set("_root:Time", _root:SubTime);
Set("_root:Total", _root:SubTotal);
Frame 87
tellTarget ("/hs_scripts") {
call("mGameOver");
};
stop();
Set("_root:Total", _root:SubTotal);
Frame 102
stop();
Symbol 4 Button
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Symbol 5 Button
on (release) {
Set("/:gDebug", "");
}
Symbol 6 MovieClip Frame 1
if (/:gDebugMode == true) {
_x = 50;
}
Symbol 6 MovieClip Frame 5
stop();
Symbol 8 MovieClip Frame 1
loadMovie (/:gHSRoot_swf add "HSScripts.swf", "");
Symbol 8 MovieClip Frame 4
stop();
Symbol 18 MovieClip Frame 1
stop();
Instance of Symbol 18 MovieClip in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
Btotal = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
Bloaded = _root.getBytesLoaded();
if (Bloaded >= Btotal) {
_parent._parent.gotoAndPlay("title");
} else {
var percentage = (Bloaded / Btotal);
var ligne = Math.round(percentage * 40);
this.gotoAndStop(ligne);
}
}
Symbol 27 MovieClip Frame 1
_visible = 0;
loadMovie (/:gHSRoot_swf add "HSMinScore.swf", "");
Symbol 27 MovieClip Frame 4
stop();
Symbol 118 Button
on (release) {
_root.gotoAndPlay("Jeu");
}
Symbol 123 Button
on (release) {
_root.gotoAndStop("Instruct");
}
Symbol 135 Button
on (release) {
nextFrame();
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
stop();
Symbol 269 MovieClip Frame 84
_root.nextFrame();
Symbol 286 MovieClip Frame 1
stop();
Symbol 292 Button
on (release, keyPress "q") {
_root.gotoAndPlay("Loose");
}
Symbol 325 MovieClip Frame 34
_root.ItemFall.gotoAndStop(/Vars:ItemActif);
_parent.gotoAndStop("Idle");
Symbol 385 MovieClip Frame 38
_root.ItemFall.gotoAndStop(/Vars:ItemActif);
_parent.gotoAndStop("Idle");
Symbol 393 MovieClip Frame 25
if (/Vars:Arret == false) {
if (/Vars:NbItem == /Vars:NbLevel) {
Set("/Vars:Win", true);
} else if (/Vars:Ghost == false) {
RandGhost = random(/Vars:RandGhost);
if ((((RandGhost < 5) and (/Vars:GhostRate > /Vars:MinGhost)) or (/Vars:GhostRate > /Vars:WaitGhost)) and (/Vars:NbItem > (/Vars:MinPenche + 5))) {
Set("/Vars:GhostRate", 0);
Set("/Vars:Ghost", true);
_root.Ghost.play();
} else {
Set("/Vars:GhostRate", /Vars:GhostRate + 1);
if (/Vars:IntSamy == /Vars:LoopSamy) {
Set("/Vars:LoopSamy", 0);
if (/Vars:Level == 1) {
Set("/Vars:ItemActif", /Vars:ItemLevel1[/Vars:NbItem + 1]);
} else if (/Vars:Level == 2) {
Set("/Vars:ItemActif", /Vars:ItemLevel2[/Vars:NbItem + 1]);
} else {
Set("/Vars:ItemActif", /Vars:ItemLevel3[/Vars:NbItem + 1]);
}
_parent.gotoAndStop(/Vars:ItemActif);
} else {
Set("/Vars:LoopSamy", /Vars:LoopSamy + 1);
}
}
}
}
Symbol 403 MovieClip Frame 60
if (/Vars:Level == 1) {
_root.gotoAndStop("Win1");
} else if (/Vars:Level == 2) {
_root.gotoAndStop("Win2");
} else {
_root.gotoAndStop("Win3");
}
stop();
Symbol 417 MovieClip Frame 40
_root.Sand.Scoob.Obj.Obj.play();
stop();
Symbol 418 MovieClip Frame 1
stop();
Symbol 418 MovieClip Frame 24
stop();
Symbol 418 MovieClip Frame 25
stop();
Symbol 418 MovieClip Frame 31
stop();
Symbol 420 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 421 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 422 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 423 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 424 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 425 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 426 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 427 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 428 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 429 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 430 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 431 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 432 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 433 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 435 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 436 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 437 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 438 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 439 MovieClip Frame 5
if (/Vars:Arret == false) {
Set("/Vars:NbItem", /Vars:NbItem + 1);
Set("/Vars:Food" + /Vars:NbItem, /Vars:ItemActif);
tellTarget (("_root.Sand.Sand.M" + /Vars:NbItem) + ".Food") {
gotoAndStop(/Vars:ItemActif);
};
Set("/Vars:Impact", int(/Vars:NbItem / /Vars:ImpactRatio));
Set("/Pts:Pts", /Pts:Pts + /Pts:ItemPts);
}
_parent.gotoAndStop("Rien");
Symbol 440 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 24
stop();
Symbol 449 MovieClip Frame 33
if (random(10) < 5) {
gotoAndPlay (1);
}
Symbol 465 MovieClip Frame 3
_root.Sand.Sand._y = _root.Sand.Sand._y + 40;
Set("/Vars:PencheOk", true);
Symbol 465 MovieClip Frame 4
_root.Sand.Sand._y = _root.Sand.Sand._y + 40;
Symbol 465 MovieClip Frame 13
stop();
Instance of Symbol 464 MovieClip "Control" in Symbol 465 MovieClip Frame 13
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
} else {
_parent.play();
}
}
Symbol 465 MovieClip Frame 14
_root.Sand.Sand._y = _root.Sand.Sand._y - 30;
Symbol 465 MovieClip Frame 16
_root.Sand.Sand._y = _root.Sand.Sand._y - 24;
Set("/Vars:PencheOk", false);
Symbol 465 MovieClip Frame 17
_root.Sand.Sand._y = _root.Sand.Sand._y - 26;
Symbol 465 MovieClip Frame 18
_parent.gotoAndStop("Idle");
Symbol 479 MovieClip Frame 2
stop();
Symbol 479 MovieClip Frame 3
play();
Symbol 479 MovieClip Frame 9
_parent.gotoAndStop("Idle");
Symbol 492 MovieClip Frame 23
stop();
Symbol 503 MovieClip Frame 5
stop();
Symbol 503 MovieClip Frame 32
_root.gotoAndStop("Loose");
Symbol 504 MovieClip Frame 1
Set("/Vars:Penche", false);
Set("/Vars:Souffle", false);
stop();
Symbol 504 MovieClip Frame 6
stop();
Symbol 504 MovieClip Frame 11
stop();
Symbol 504 MovieClip Frame 16
stop();
Symbol 504 MovieClip Frame 21
stop();
Symbol 506 MovieClip Frame 3
_root.Sand.Sand._y = _root.Sand.Sand._y + 40;
Set("/Vars:PencheOk", true);
Symbol 506 MovieClip Frame 4
_root.Sand.Sand._y = _root.Sand.Sand._y + 40;
Symbol 506 MovieClip Frame 13
stop();
Instance of Symbol 464 MovieClip "Control" in Symbol 506 MovieClip Frame 13
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
} else {
_parent.play();
}
}
Symbol 506 MovieClip Frame 14
_root.Sand.Sand._y = _root.Sand.Sand._y - 30;
Symbol 506 MovieClip Frame 16
_root.Sand.Sand._y = _root.Sand.Sand._y - 24;
Set("/Vars:PencheOk", false);
Symbol 506 MovieClip Frame 17
_root.Sand.Sand._y = _root.Sand.Sand._y - 26;
Symbol 506 MovieClip Frame 18
_parent.gotoAndStop("Idle");
Symbol 508 MovieClip Frame 2
stop();
Symbol 508 MovieClip Frame 3
play();
Symbol 508 MovieClip Frame 9
_parent.gotoAndStop("Idle");
Symbol 509 MovieClip Frame 17
stop();
Symbol 510 MovieClip Frame 5
stop();
Symbol 510 MovieClip Frame 35
_root.gotoAndStop("Loose");
Symbol 511 MovieClip Frame 1
Set("/Vars:Penche", false);
Set("/Vars:Souffle", false);
stop();
Symbol 511 MovieClip Frame 6
stop();
Symbol 511 MovieClip Frame 11
stop();
Symbol 511 MovieClip Frame 16
stop();
Symbol 511 MovieClip Frame 21
stop();
Symbol 519 MovieClip Frame 2
stop();
Symbol 519 MovieClip Frame 3
play();
Symbol 519 MovieClip Frame 9
_parent.gotoAndStop("Idle");
Symbol 521 MovieClip Frame 13
stop();
Symbol 523 MovieClip Frame 6
stop();
Symbol 523 MovieClip Frame 26
_root.gotoAndStop("Loose");
Symbol 524 MovieClip Frame 1
Set("/Vars:Penche", false);
Set("/Vars:Souffle", false);
stop();
Symbol 524 MovieClip Frame 6
stop();
Symbol 524 MovieClip Frame 11
stop();
Symbol 524 MovieClip Frame 16
stop();
Symbol 524 MovieClip Frame 21
stop();
Symbol 525 MovieClip Frame 1
stop();
Symbol 525 MovieClip Frame 2
stop();
Symbol 525 MovieClip Frame 3
stop();
Instance of Symbol 558 MovieClip "Food" in Symbol 559 MovieClip Frame 1
onClipEvent (load) {
i = 1;
while (i < 41) {
setProperty(this, _x , 10 - (random(20) + 1));
setProperty(this, _rotation , (10 - (random(10) + 1)) / 2);
i++;
}
this.gotoAndStop(eval ("/Vars:Food" + (substring(getProperty("../", _name), 2, 2))));
}
Symbol 563 MovieClip Frame 43
stop();
Symbol 566 MovieClip Frame 33
stop();
Symbol 567 MovieClip Frame 1
stop();
Instance of Symbol 560 MovieClip "Sand" in Symbol 567 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(/Vars:CenterGD);
}
Symbol 567 MovieClip Frame 2
Set("/Vars:Arret", true);
stop();
Symbol 567 MovieClip Frame 3
Set("/Vars:Arret", true);
stop();
Symbol 594 MovieClip Frame 1
Set("/Vars:Ghost", false);
stop();
Symbol 594 MovieClip Frame 35
if (/Vars:PencheOk == false) {
Set("/Vars:Food" + /Vars:NbItem, 24);
Set(("/Vars:Food" + /Vars:NbItem) - 1, 24);
Set(("/Vars:Food" + /Vars:NbItem) - 2, 24);
Set(("/Vars:Food" + /Vars:NbItem) - 3, 24);
Set(("/Vars:Food" + /Vars:NbItem) - 4, 24);
_root.Sand.Sand["M" + /Vars:NbItem].Food.gotoAndStop("Vide");
_root.Sand.Sand["M" + (/Vars:NbItem - 1)].Food.gotoAndStop("Vide");
_root.Sand.Sand["M" + (/Vars:NbItem - 2)].Food.gotoAndStop("Vide");
_root.Sand.Sand["M" + (/Vars:NbItem - 3)].Food.gotoAndStop("Vide");
_root.Sand.Sand["M" + (/Vars:NbItem - 4)].Food.gotoAndStop("Vide");
Set("/Vars:NbItem", /Vars:NbItem - 5);
Set("/Vars:Impact", /Vars:ImpactGhost);
Set("/Pts:Pts", /Pts:Pts - /Pts:GhostPts);
}
Set("/Vars:GhostPass", false);
Symbol 596 MovieClip Frame 1
stop();
Instance of Symbol 464 MovieClip "Control" in Symbol 596 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
Set("/Vars:ImpSouffle", /Vars:VentModif);
Set("/Pts:Pts", /Pts:Pts - /Pts:BlowPts);
_parent.play();
} else {
Set("/Vars:ImpSouffle", 0);
_root.Sand.Scoob.Obj.Vent.gotoAndPlay("FinSouffle");
_parent.gotoAndStop(1);
}
}
Symbol 596 MovieClip Frame 30
Set("/Vars:ImpSouffle", 0);
_root.Sand.Scoob.Obj.Vent.gotoAndPlay("FinSouffle");
gotoAndStop (1);
Symbol 597 MovieClip Frame 1
if (/Pts:Pts < 0) {
Set("/Pts:Pts", 0);
}
_root.Score.Score = /Pts:Pts;
_root.Score.ScoreBg = /Pts:Pts;
TempNbStack = /Vars:NbItem;
if (TempNbStack < 10) {
TempNbStack = "0" + TempNbStack;
}
Set("_root.Stack:Stack", TempNbStack);
Set("_root.Stack:StackBg", TempNbStack);
if (/Vars:Win == true) {
Set("/Vars:Arret", true);
_root.gotoAndStop("End1");
}
if (/Vars:Arret == false) {
Set("/Vars:Deplace", 0);
if (Key.isDown(40) and (/Vars:Souffle == false)) {
Set("/Vars:Penche", true);
Set("/Vars:Bouge", "");
Set("/Vars:MoveX", 0);
Set("/Vars:Pousse", 0);
_root.Sand.Scoob.Obj.gotoAndStop("Bas");
} else if ((Key.isDown(32) and (/Vars:Souffle == false)) and (/Vars:Penche == false)) {
Set("/Vars:Souffle", true);
_root.Sand.Scoob.Obj.gotoAndStop("Vent");
_root.Souffle.gotoAndStop(2);
} else if ((/Vars:Penche == false) and (/Vars:Souffle == false)) {
if (Key.isDown(39) and (getProperty(_root.Sand, _x) < 283)) {
Set("/Vars:DirScoob", "Front");
Set("/Vars:Bouge", "R");
Set("/Vars:MoveX", /Vars:MaxX);
if (/Vars:NbItem > /Vars:MinPenche) {
Set("/Vars:Pousse", /Vars:MaxPousse * -1);
} else {
Set("/Vars:Pousse", 0);
}
} else if (Key.isDown(37) and (getProperty(_root.Sand, _x) > 84)) {
Set("/Vars:DirScoob", "Back");
Set("/Vars:Bouge", "L");
Set("/Vars:MoveX", /Vars:MaxX * -1);
if (/Vars:NbItem > /Vars:MinPenche) {
Set("/Vars:Pousse", /Vars:MaxPousse);
} else {
Set("/Vars:Pousse", 0);
}
} else {
Set("/Vars:DirScoob", "Arret");
Set("/Vars:Bouge", "");
Set("/Vars:MoveX", 0);
Set("/Vars:Pousse", 0);
}
} else {
Set("/Vars:Bouge", "");
Set("/Vars:MoveX", 0);
Set("/Vars:Pousse", 0);
}
_root.Sand.Scoob.gotoAndStop(/Vars:DirScoob);
Set("/Vars:Deplace", /Vars:Deplace + /Vars:Pousse);
if (/Vars:Sens eq "GD") {
if (getProperty("_root.Sand.Sand", _currentframe) < /Vars:CenterGD) {
if (/Vars:Bouge ne "R") {
if (/Vars:NbItem < /Vars:MinPenche) {
Set("/Vars:Gravite", 0);
} else if (/Vars:NbItem < 20) {
Set("/Vars:Gravite", -1);
} else {
Set("/Vars:Gravite", -2);
}
}
} else if (getProperty("_root.Sand.Sand", _currentframe) > /Vars:CenterGD) {
if (/Vars:Bouge ne "L") {
if (/Vars:NbItem < /Vars:MinPenche) {
Set("/Vars:Gravite", 0);
} else if (/Vars:NbItem < 20) {
Set("/Vars:Gravite", 1);
} else {
Set("/Vars:Gravite", 2);
}
}
} else {
Set("/Vars:Gravite", 0);
}
} else if (getProperty("_root.Sand.Sand", _currentframe) < /Vars:CenterDG) {
if (/Vars:Bouge ne "L") {
if (/Vars:NbItem < /Vars:MinPenche) {
Set("/Vars:Gravite", 0);
} else if (/Vars:NbItem < 20) {
Set("/Vars:Gravite", 1);
} else {
Set("/Vars:Gravite", 2);
}
}
} else if (getProperty("_root.Sand.Sand", _currentframe) > /Vars:CenterDG) {
if (/Vars:Bouge ne "R") {
if (/Vars:NbItem < /Vars:MinPenche) {
Set("/Vars:Gravite", 0);
} else if (/Vars:NbItem < 20) {
Set("/Vars:Gravite", -1);
} else {
Set("/Vars:Gravite", -2);
}
}
} else {
Set("/Vars:Gravite", 0);
}
Set("/Vars:Deplace", /Vars:Deplace + /Vars:Gravite);
if (/Vars:Impact > 0) {
if (getProperty("_root.Ecrase", _currentframe) == 1) {
_root.Ecrase.gotoAndPlay(2);
}
Set("/Vars:Deplace", /Vars:Deplace - /Vars:Impact);
Set("/Vars:Impact", /Vars:Impact - 1);
}
if (/Vars:ImpSouffle > 0) {
Set("/Vars:Deplace", /Vars:Deplace + /Vars:ImpSouffle);
}
if (/Vars:NbItem > /Vars:MinPenche) {
if (/Vars:Sens eq "GD") {
if (/Vars:Deplace < 0) {
Set("/Vars:Sens", "DG");
Set("/Vars:Deplace", /Vars:Deplace * -1);
tellTarget (_root.Sand.Sand) {
gotoAndStop(/Vars:FrTotal - getProperty("_root.Sand.Sand", _currentframe));
};
}
tellTarget (_root.Sand.Sand) {
gotoAndStop(getProperty("_root.Sand.Sand", _currentframe) + /Vars:Deplace);
};
} else {
if (/Vars:Deplace > 0) {
Set("/Vars:Sens", "GD");
tellTarget (_root.Sand.Sand) {
gotoAndStop(/Vars:FrTotal - getProperty("_root.Sand.Sand", _currentframe));
};
}
Set("/Vars:Deplace", /Vars:Deplace * -1);
tellTarget (_root.Sand.Sand) {
gotoAndStop(getProperty("_root.Sand.Sand", _currentframe) + /Vars:Deplace);
};
}
}
_root.Sand._x = _root.Sand._x + /Vars:MoveX;
if (((getProperty("_root.Sand.Sand", _currentframe) < 31) or ((getProperty("_root.Sand.Sand", _currentframe) > 294) and (getProperty("_root.Sand.Sand", _currentframe) < 377))) or (getProperty("_root.Sand.Sand", _currentframe) > 644)) {
_root.SonShake.gotoAndStop("Joue");
if (/Vars:FlagShake == 0) {
Set("/Vars:FlagShake", 1);
_root.Sand.Sand._x = _root.Sand.Sand._x + 1;
} else {
Set("/Vars:FlagShake", 0);
_root.Sand.Sand._x = _root.Sand.Sand._x - 1;
}
} else {
_root.SonShake.gotoAndStop("Arret");
}
if ((/Vars:Ghost == true) and (/Vars:Penche == false)) {
_root.GhostPos = new object();
_root.GhostPos.x = 0;
_root.GhostPos.y = 0;
_root.Sand.Sand["M" + /Vars:NbItem].localToGlobal(_root.GhostPos);
_root.Ghost._x = _root.GhostPos.x;
_root.Ghost._y = _root.GhostPos.y;
} else {
_root.FallPos = new object();
_root.FallPos.x = 0;
_root.FallPos.y = 0;
if (/Vars:NbItem > 0) {
_root.Sand.Sand["M" + /Vars:NbItem].localToGlobal(_root.FallPos);
} else {
_root.Sand.Sand.M1.localToGlobal(_root.FallPos);
}
_root.ItemFall._x = _root.FallPos.x;
_root.ItemFall._y = _root.FallPos.y;
}
if (/Vars:NbItem > /Vars:MinPenche) {
if ((getProperty("_root.Sand.Sand", _currentframe) == 1) or (getProperty("_root.Sand.Sand", _currentframe) == 670)) {
Set("/Vars:Arret", true);
_root.Timer.stop();
_root.ItemFall.gotoAndStop("Rien");
_root.Sand.gotoAndStop("FallG");
_root.Sand.Scoob.Obj.gotoAndStop("Perd");
_root.Samy.gotoAndStop("Perd");
} else if ((getProperty("_root.Sand.Sand", _currentframe) > 324) and (getProperty("_root.Sand.Sand", _currentframe) < 347)) {
Set("/Vars:Arret", true);
_root.Timer.stop();
_root.ItemFall.gotoAndStop("Rien");
_root.Sand.gotoAndStop("FallD");
_root.Sand.Scoob.Obj.gotoAndStop("Perd");
_root.Samy.gotoAndStop("Perd");
}
}
if ((_root.Pts:Min == 0) and (_root.Pts:Sec == 0)) {
Set("/Vars:Arret", true);
_root.Timer.stop();
_root.Sand.Scoob.Obj.gotoAndStop("Perd");
_root.Samy.gotoAndStop("Perd");
}
}
Symbol 597 MovieClip Frame 2
call(1);
Symbol 597 MovieClip Frame 3
call(1);
Symbol 597 MovieClip Frame 4
call(1);
Symbol 597 MovieClip Frame 5
call(1);
Symbol 597 MovieClip Frame 6
call(1);
Symbol 597 MovieClip Frame 7
call(1);
Symbol 597 MovieClip Frame 8
call(1);
Symbol 597 MovieClip Frame 9
call(1);
Symbol 597 MovieClip Frame 10
gotoAndPlay (1);
Symbol 598 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 2
_root.Sand._height = _root.Sand._height - 1;
Symbol 598 MovieClip Frame 3
_root.Sand._height = _root.Sand._height - 1;
Symbol 598 MovieClip Frame 4
_root.Sand._height = _root.Sand._height - 1;
Symbol 598 MovieClip Frame 5
_root.Sand._height = _root.Sand._height + 1;
Symbol 598 MovieClip Frame 6
_root.Sand._height = _root.Sand._height + 1;
Symbol 598 MovieClip Frame 7
_root.Sand._height = _root.Sand._height + 1;
Symbol 599 MovieClip Frame 2
stop();
Symbol 599 MovieClip Frame 3
stop();
Symbol 604 MovieClip Frame 30
if (_root.Pts:Sec == 0) {
Set("_root.Pts:Sec", 59);
Set("_root.Pts:Min", _root.Pts:Min - 1);
} else {
Set("_root.Pts:Sec", _root.Pts:Sec - 1);
}
Minute = "0" + _root.Pts:Min;
MinuteBg = Minute;
if (_root.Pts:Sec < 10) {
Second = "0" + _root.Pts:Sec;
} else {
Second = _root.Pts:Sec;
}
SecondBg = Second;
if ((_root.Pts:Sec < 6) and (_root.Pts:Min == 0)) {
_root.Bip.play();
}
Symbol 610 MovieClip Frame 84
_root.nextFrame();
Symbol 611 MovieClip Frame 1
if (/Pts:Pts < 0) {
Set("/Pts:Pts", 0);
}
_root.Score.Score = /Pts:Pts;
_root.Score.ScoreBg = /Pts:Pts;
TempNbStack = /Vars:NbItem;
if (TempNbStack < 10) {
TempNbStack = "0" + TempNbStack;
}
Set("_root.Stack:Stack", TempNbStack);
Set("_root.Stack:StackBg", TempNbStack);
if (/Vars:Win == true) {
Set("/Vars:Arret", true);
_root.gotoAndStop("End2");
}
if (/Vars:Arret == false) {
Set("/Vars:Deplace", 0);
if (Key.isDown(40) and (/Vars:Souffle == false)) {
Set("/Vars:Penche", true);
Set("/Vars:Bouge", "");
Set("/Vars:MoveX", 0);
Set("/Vars:Pousse", 0);
_root.Sand.Scoob.Obj.gotoAndStop("Bas");
} else if ((Key.isDown(32) and (/Vars:Souffle == false)) and (/Vars:Penche == false)) {
Set("/Vars:Souffle", true);
_root.Sand.Scoob.Obj.gotoAndStop("Vent");
_root.Souffle.gotoAndStop(2);
} else if ((/Vars:Penche == false) and (/Vars:Souffle == false)) {
if (Key.isDown(39) and (getProperty(_root.Sand, _x) < 283)) {
Set("/Vars:DirScoob", "Front");
Set("/Vars:Bouge", "R");
Set("/Vars:MoveX", /Vars:MaxX);
if (/Vars:NbItem > /Vars:MinPenche) {
Set("/Vars:Pousse", /Vars:MaxPousse * -1);
} else {
Set("/Vars:Pousse", 0);
}
} else if (Key.isDown(37) and (getProperty(_root.Sand, _x) > 84)) {
Set("/Vars:DirScoob", "Back");
Set("/Vars:Bouge", "L");
Set("/Vars:MoveX", /Vars:MaxX * -1);
if (/Vars:NbItem > /Vars:MinPenche) {
Set("/Vars:Pousse", /Vars:MaxPousse);
} else {
Set("/Vars:Pousse", 0);
}
} else {
Set("/Vars:DirScoob", "Arret");
Set("/Vars:Bouge", "");
Set("/Vars:MoveX", 0);
Set("/Vars:Pousse", 0);
}
} else {
Set("/Vars:Bouge", "");
Set("/Vars:MoveX", 0);
Set("/Vars:Pousse", 0);
}
_root.Sand.Scoob.gotoAndStop(/Vars:DirScoob);
Set("/Vars:Deplace", /Vars:Deplace + /Vars:Pousse);
if (/Vars:Sens eq "GD") {
if (getProperty("_root.Sand.Sand", _currentframe) < /Vars:CenterGD) {
if (/Vars:Bouge ne "R") {
if (/Vars:NbItem < /Vars:MinPenche) {
Set("/Vars:Gravite", 0);
} else if (/Vars:NbItem < 20) {
Set("/Vars:Gravite", -1);
} else {
Set("/Vars:Gravite", -2);
}
}
} else if (getProperty("_root.Sand.Sand", _currentframe) > /Vars:CenterGD) {
if (/Vars:Bouge ne "L") {
if (/Vars:NbItem < /Vars:MinPenche) {
Set("/Vars:Gravite", 0);
} else if (/Vars:NbItem < 20) {
Set("/Vars:Gravite", 1);
} else {
Set("/Vars:Gravite", 2);
}
}
} else {
Set("/Vars:Gravite", 0);
}
} else if (getProperty("_root.Sand.Sand", _currentframe) < /Vars:CenterDG) {
if (/Vars:Bouge ne "L") {
if (/Vars:NbItem < /Vars:MinPenche) {
Set("/Vars:Gravite", 0);
} else if (/Vars:NbItem < 20) {
Set("/Vars:Gravite", 1);
} else {
Set("/Vars:Gravite", 2);
}
}
} else if (getProperty("_root.Sand.Sand", _currentframe) > /Vars:CenterDG) {
if (/Vars:Bouge ne "R") {
if (/Vars:NbItem < /Vars:MinPenche) {
Set("/Vars:Gravite", 0);
} else if (/Vars:NbItem < 20) {
Set("/Vars:Gravite", -1);
} else {
Set("/Vars:Gravite", -2);
}
}
} else {
Set("/Vars:Gravite", 0);
}
Set("/Vars:Deplace", /Vars:Deplace + /Vars:Gravite);
if (/Vars:Impact > 0) {
if (getProperty("_root.Ecrase", _currentframe) == 1) {
_root.Ecrase.gotoAndPlay(2);
}
Set("/Vars:Deplace", /Vars:Deplace - /Vars:Impact);
Set("/Vars:Impact", /Vars:Impact - 1);
}
if (/Vars:ImpSouffle > 0) {
Set("/Vars:Deplace", /Vars:Deplace + /Vars:ImpSouffle);
}
if (/Vars:NbItem > /Vars:MinPenche) {
if (/Vars:Sens eq "GD") {
if (/Vars:Deplace < 0) {
Set("/Vars:Sens", "DG");
Set("/Vars:Deplace", /Vars:Deplace * -1);
tellTarget (_root.Sand.Sand) {
gotoAndStop(/Vars:FrTotal - getProperty("_root.Sand.Sand", _currentframe));
};
}
tellTarget (_root.Sand.Sand) {
gotoAndStop(getProperty("_root.Sand.Sand", _currentframe) + /Vars:Deplace);
};
} else {
if (/Vars:Deplace > 0) {
Set("/Vars:Sens", "GD");
tellTarget (_root.Sand.Sand) {
gotoAndStop(/Vars:FrTotal - getProperty("_root.Sand.Sand", _currentframe));
};
}
Set("/Vars:Deplace", /Vars:Deplace * -1);
tellTarget (_root.Sand.Sand) {
gotoAndStop(getProperty("_root.Sand.Sand", _currentframe) + /Vars:Deplace);
};
}
}
_root.Sand._x = _root.Sand._x + /Vars:MoveX;
if (((getProperty("_root.Sand.Sand", _currentframe) < 31) or ((getProperty("_root.Sand.Sand", _currentframe) > 294) and (getProperty("_root.Sand.Sand", _currentframe) < 377))) or (getProperty("_root.Sand.Sand", _currentframe) > 644)) {
_root.SonShake.gotoAndStop("Joue");
if (/Vars:FlagShake == 0) {
Set("/Vars:FlagShake", 1);
_root.Sand.Sand._x = _root.Sand.Sand._x + 1;
} else {
Set("/Vars:FlagShake", 0);
_root.Sand.Sand._x = _root.Sand.Sand._x - 1;
}
} else {
_root.SonShake.gotoAndStop("Arret");
}
if ((/Vars:Ghost == true) and (/Vars:Penche == false)) {
_root.GhostPos = new object();
_root.GhostPos.x = 0;
_root.GhostPos.y = 0;
_root.Sand.Sand["M" + /Vars:NbItem].localToGlobal(_root.GhostPos);
_root.Ghost._x = _root.GhostPos.x;
_root.Ghost._y = _root.GhostPos.y;
} else {
_root.FallPos = new object();
_root.FallPos.x = 0;
_root.FallPos.y = 0;
if (/Vars:NbItem > 0) {
_root.Sand.Sand["M" + /Vars:NbItem].localToGlobal(_root.FallPos);
} else {
_root.Sand.Sand.M1.localToGlobal(_root.FallPos);
}
_root.ItemFall._x = _root.FallPos.x;
_root.ItemFall._y = _root.FallPos.y;
}
if (/Vars:NbItem > /Vars:MinPenche) {
if ((getProperty("_root.Sand.Sand", _currentframe) == 1) or (getProperty("_root.Sand.Sand", _currentframe) == 670)) {
Set("/Vars:Arret", true);
_root.Timer.stop();
_root.ItemFall.gotoAndStop("Rien");
_root.Sand.gotoAndStop("FallG");
_root.Sand.Scoob.Obj.gotoAndStop("Perd");
_root.Samy.gotoAndStop("Perd");
} else if ((getProperty("_root.Sand.Sand", _currentframe) > 324) and (getProperty("_root.Sand.Sand", _currentframe) < 347)) {
Set("/Vars:Arret", true);
_root.Timer.stop();
_root.ItemFall.gotoAndStop("Rien");
_root.Sand.gotoAndStop("FallD");
_root.Sand.Scoob.Obj.gotoAndStop("Perd");
_root.Samy.gotoAndStop("Perd");
}
}
if ((_root.Pts:Min == 0) and (_root.Pts:Sec == 0)) {
Set("/Vars:Arret", true);
_root.Timer.stop();
_root.Sand.Scoob.Obj.gotoAndStop("Perd");
_root.Samy.gotoAndStop("Perd");
}
}
Symbol 611 MovieClip Frame 2
call(1);
Symbol 611 MovieClip Frame 3
call(1);
Symbol 611 MovieClip Frame 4
call(1);
Symbol 611 MovieClip Frame 5
call(1);
Symbol 611 MovieClip Frame 6
call(1);
Symbol 611 MovieClip Frame 7
call(1);
Symbol 611 MovieClip Frame 8
call(1);
Symbol 611 MovieClip Frame 9
call(1);
Symbol 611 MovieClip Frame 10
gotoAndPlay (1);
Symbol 617 MovieClip Frame 84
_root.nextFrame();
Symbol 618 MovieClip Frame 1
if (/Pts:Pts < 0) {
Set("/Pts:Pts", 0);
}
_root.Score.Score = /Pts:Pts;
_root.Score.ScoreBg = /Pts:Pts;
TempNbStack = /Vars:NbItem;
if (TempNbStack < 10) {
TempNbStack = "0" + TempNbStack;
}
Set("_root.Stack:Stack", TempNbStack);
Set("_root.Stack:StackBg", TempNbStack);
if (/Vars:Win == true) {
Set("/Vars:Arret", true);
_root.gotoAndStop("End3");
}
if (/Vars:Arret == false) {
Set("/Vars:Deplace", 0);
if (Key.isDown(40) and (/Vars:Souffle == false)) {
Set("/Vars:Penche", true);
Set("/Vars:Bouge", "");
Set("/Vars:MoveX", 0);
Set("/Vars:Pousse", 0);
_root.Sand.Scoob.Obj.gotoAndStop("Bas");
} else if ((Key.isDown(32) and (/Vars:Souffle == false)) and (/Vars:Penche == false)) {
Set("/Vars:Souffle", true);
_root.Sand.Scoob.Obj.gotoAndStop("Vent");
_root.Souffle.gotoAndStop(2);
} else if ((/Vars:Penche == false) and (/Vars:Souffle == false)) {
if (Key.isDown(39) and (getProperty(_root.Sand, _x) < 283)) {
Set("/Vars:DirScoob", "Front");
Set("/Vars:Bouge", "R");
Set("/Vars:MoveX", /Vars:MaxX);
if (/Vars:NbItem > /Vars:MinPenche) {
Set("/Vars:Pousse", /Vars:MaxPousse * -1);
} else {
Set("/Vars:Pousse", 0);
}
} else if (Key.isDown(37) and (getProperty(_root.Sand, _x) > 84)) {
Set("/Vars:DirScoob", "Back");
Set("/Vars:Bouge", "L");
Set("/Vars:MoveX", /Vars:MaxX * -1);
if (/Vars:NbItem > /Vars:MinPenche) {
Set("/Vars:Pousse", /Vars:MaxPousse);
} else {
Set("/Vars:Pousse", 0);
}
} else {
Set("/Vars:DirScoob", "Arret");
Set("/Vars:Bouge", "");
Set("/Vars:MoveX", 0);
Set("/Vars:Pousse", 0);
}
} else {
Set("/Vars:Bouge", "");
Set("/Vars:MoveX", 0);
Set("/Vars:Pousse", 0);
}
_root.Sand.Scoob.gotoAndStop(/Vars:DirScoob);
Set("/Vars:Deplace", /Vars:Deplace + /Vars:Pousse);
if (/Vars:Sens eq "GD") {
if (getProperty("_root.Sand.Sand", _currentframe) < /Vars:CenterGD) {
if (/Vars:Bouge ne "R") {
if (/Vars:NbItem < /Vars:MinPenche) {
Set("/Vars:Gravite", 0);
} else if (/Vars:NbItem < 20) {
Set("/Vars:Gravite", -1);
} else {
Set("/Vars:Gravite", -2);
}
}
} else if (getProperty("_root.Sand.Sand", _currentframe) > /Vars:CenterGD) {
if (/Vars:Bouge ne "L") {
if (/Vars:NbItem < /Vars:MinPenche) {
Set("/Vars:Gravite", 0);
} else if (/Vars:NbItem < 20) {
Set("/Vars:Gravite", 1);
} else {
Set("/Vars:Gravite", 2);
}
}
} else {
Set("/Vars:Gravite", 0);
}
} else if (getProperty("_root.Sand.Sand", _currentframe) < /Vars:CenterDG) {
if (/Vars:Bouge ne "L") {
if (/Vars:NbItem < /Vars:MinPenche) {
Set("/Vars:Gravite", 0);
} else if (/Vars:NbItem < 20) {
Set("/Vars:Gravite", 1);
} else {
Set("/Vars:Gravite", 2);
}
}
} else if (getProperty("_root.Sand.Sand", _currentframe) > /Vars:CenterDG) {
if (/Vars:Bouge ne "R") {
if (/Vars:NbItem < /Vars:MinPenche) {
Set("/Vars:Gravite", 0);
} else if (/Vars:NbItem < 20) {
Set("/Vars:Gravite", -1);
} else {
Set("/Vars:Gravite", -2);
}
}
} else {
Set("/Vars:Gravite", 0);
}
Set("/Vars:Deplace", /Vars:Deplace + /Vars:Gravite);
if (/Vars:Impact > 0) {
if (getProperty("_root.Ecrase", _currentframe) == 1) {
_root.Ecrase.gotoAndPlay(2);
}
Set("/Vars:Deplace", /Vars:Deplace - /Vars:Impact);
Set("/Vars:Impact", /Vars:Impact - 1);
}
if (/Vars:ImpSouffle > 0) {
Set("/Vars:Deplace", /Vars:Deplace + /Vars:ImpSouffle);
}
if (/Vars:NbItem > /Vars:MinPenche) {
if (/Vars:Sens eq "GD") {
if (/Vars:Deplace < 0) {
Set("/Vars:Sens", "DG");
Set("/Vars:Deplace", /Vars:Deplace * -1);
tellTarget (_root.Sand.Sand) {
gotoAndStop(/Vars:FrTotal - getProperty("_root.Sand.Sand", _currentframe));
};
}
tellTarget (_root.Sand.Sand) {
gotoAndStop(getProperty("_root.Sand.Sand", _currentframe) + /Vars:Deplace);
};
} else {
if (/Vars:Deplace > 0) {
Set("/Vars:Sens", "GD");
tellTarget (_root.Sand.Sand) {
gotoAndStop(/Vars:FrTotal - getProperty("_root.Sand.Sand", _currentframe));
};
}
Set("/Vars:Deplace", /Vars:Deplace * -1);
tellTarget (_root.Sand.Sand) {
gotoAndStop(getProperty("_root.Sand.Sand", _currentframe) + /Vars:Deplace);
};
}
}
_root.Sand._x = _root.Sand._x + /Vars:MoveX;
if (((getProperty("_root.Sand.Sand", _currentframe) < 31) or ((getProperty("_root.Sand.Sand", _currentframe) > 294) and (getProperty("_root.Sand.Sand", _currentframe) < 377))) or (getProperty("_root.Sand.Sand", _currentframe) > 644)) {
_root.SonShake.gotoAndStop("Joue");
if (/Vars:FlagShake == 0) {
Set("/Vars:FlagShake", 1);
_root.Sand.Sand._x = _root.Sand.Sand._x + 1;
} else {
Set("/Vars:FlagShake", 0);
_root.Sand.Sand._x = _root.Sand.Sand._x - 1;
}
} else {
_root.SonShake.gotoAndStop("Arret");
}
if ((/Vars:Ghost == true) and (/Vars:Penche == false)) {
_root.GhostPos = new object();
_root.GhostPos.x = 0;
_root.GhostPos.y = 0;
_root.Sand.Sand["M" + /Vars:NbItem].localToGlobal(_root.GhostPos);
_root.Ghost._x = _root.GhostPos.x;
_root.Ghost._y = _root.GhostPos.y;
} else {
_root.FallPos = new object();
_root.FallPos.x = 0;
_root.FallPos.y = 0;
if (/Vars:NbItem > 0) {
_root.Sand.Sand["M" + /Vars:NbItem].localToGlobal(_root.FallPos);
} else {
_root.Sand.Sand.M1.localToGlobal(_root.FallPos);
}
_root.ItemFall._x = _root.FallPos.x;
_root.ItemFall._y = _root.FallPos.y;
}
if (/Vars:NbItem > /Vars:MinPenche) {
if ((getProperty("_root.Sand.Sand", _currentframe) == 1) or (getProperty("_root.Sand.Sand", _currentframe) == 670)) {
Set("/Vars:Arret", true);
_root.Timer.stop();
_root.ItemFall.gotoAndStop("Rien");
_root.Sand.gotoAndStop("FallG");
_root.Sand.Scoob.Obj.gotoAndStop("Perd");
_root.Samy.gotoAndStop("Perd");
} else if ((getProperty("_root.Sand.Sand", _currentframe) > 324) and (getProperty("_root.Sand.Sand", _currentframe) < 347)) {
Set("/Vars:Arret", true);
_root.Timer.stop();
_root.ItemFall.gotoAndStop("Rien");
_root.Sand.gotoAndStop("FallD");
_root.Sand.Scoob.Obj.gotoAndStop("Perd");
_root.Samy.gotoAndStop("Perd");
}
}
if ((_root.Pts:Min == 0) and (_root.Pts:Sec == 0)) {
Set("/Vars:Arret", true);
_root.Timer.stop();
_root.Sand.Scoob.Obj.gotoAndStop("Perd");
_root.Samy.gotoAndStop("Perd");
}
}
Symbol 618 MovieClip Frame 2
call(1);
Symbol 618 MovieClip Frame 3
call(1);
Symbol 618 MovieClip Frame 4
call(1);
Symbol 618 MovieClip Frame 5
call(1);
Symbol 618 MovieClip Frame 6
call(1);
Symbol 618 MovieClip Frame 7
call(1);
Symbol 618 MovieClip Frame 8
call(1);
Symbol 618 MovieClip Frame 9
call(1);
Symbol 618 MovieClip Frame 10
gotoAndPlay (1);
Symbol 628 Button
on (release) {
_root.gotoAndPlay("Level2");
}
Symbol 644 Button
on (release) {
_root.gotoAndPlay("Level3");
}
Symbol 661 Button
on (release) {
_root.gotoAndPlay("AgainWin");
}
Symbol 676 Button
on (release) {
Set("_root:SubScoreTemp", _root:TempScore);
Set("_root:SubTime", _root:Time);
Set("_root:SubTotal", _root:Total);
_root.gotoAndStop("GameOver");
}
Symbol 680 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 693 MovieClip Frame 1
if (random(50) < 25) {
stop();
} else {
nextFrame();
}
Symbol 694 Button
on (release) {
Set("_root:SubTotal", _root:Total);
_root.gotoAndStop("GameOver2");
}
Symbol 695 Button
on (release) {
_root.gotoAndPlay("AgainLoose");
}
Symbol 705 Button
on (release) {
_root.gotoAndPlay("Jeu");
}
Symbol 708 MovieClip Frame 1
_visible = 0;
Symbol 708 MovieClip Frame 5
stop();