Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
mochi.as2.MochiAd.showPreGameAd({id:"17e4d3210f3afded", res:"800x440"});
__com_mochibot__("5f3017ae", this, 10301, true);
lavr = 1;
function menuChoiceOne() {
getURL ("http://www.pyrozen.com");
}
stop();
_root.user = SharedObject.getLocal("user_AngryChubby");
onEnterFrame = function () {
};
NewMenu = new ContextMenu();
NewMenu.hideBuiltInItems();
NewMenu.customItems.push(new ContextMenuItem("Pyrozen", menuChoiceOne));
this.menu = NewMenu;
Frame 3
stop();
onEnterFrame = function () {
if (_root.got2go == 2) {
_root.got2go = 1;
gotoAndPlay (4);
}
if (Key.isDown(32)) {
gotoAndStop (19);
}
};
Frame 4
gotoAndStop (19);
Frame 19
stop();
onEnterFrame = function () {
if (_root.got2go == 2) {
_root.got2go = 1;
gotoAndStop (20);
}
};
Frame 20
function SaveGame() {
_root.user.data.Score = _global.Score;
_root.user.data.TotalScore = _global.TotalScore;
_root.user.data.Upgrade = _global.Upgrade;
_root.user.data.NiveauCatapult = _global.NiveauCatapult;
_root.user.data.tabAchievement = _global.tabAchievement;
_root.user.data.tabAmmoSelection = _global.tabAmmoSelection;
_root.user.data.FirstTimeClerc1 = _global.FirstTimeClerc1;
_root.user.data.FirstTimeClerc2 = _global.FirstTimeClerc2;
_root.user.data.FirstTimeClerc3 = _global.FirstTimeClerc3;
_root.user.data.FirstTimeClerc4 = _global.FirstTimeClerc4;
_root.user.data.FirstTimeClerc5 = _global.FirstTimeClerc5;
_root.user.data.TriggerAchievement3 = _global.TriggerAchievement3;
_root.user.data.NbAmmoSelected = _global.NbAmmoSelected;
}
stop();
MenuTrack = new Sound();
MenuTrack.attachSound("track_Menu");
MenuTrack.stop();
MenuTrack.start(0, 999);
if (volume == undefined) {
volume = 50;
}
if ((_root.user.data.Score != undefined) && (_global.Score == undefined)) {
_global.Score = _root.user.data.Score;
_global.LoadGame = true;
}
if (_global.Score == undefined) {
_global.Score = 0;
_global.LoadGame = false;
}
if ((_root.user.data.TotalScore != undefined) && (_global.TotalScore == undefined)) {
_global.TotalScore = _root.user.data.TotalScore;
}
if (_global.TotalScore == undefined) {
_global.TotalScore = 0;
}
if ((_root.user.data.tabAchievement != undefined) && (_global.tabAchievement == undefined)) {
_global.tabAchievement = _root.user.data.tabAchievement;
}
if (_global.tabAchievement == undefined) {
_global.tabAchievement = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
if ((_root.user.data.Upgrade != undefined) && (_global.Upgrade == undefined)) {
_global.Upgrade = _root.user.data.Upgrade;
}
if (_global.Upgrade == undefined) {
_global.Upgrade = 0;
}
if ((_root.user.data.NiveauCatapult != undefined) && (_global.NiveauCatapult == undefined)) {
_global.NiveauCatapult = _root.user.data.NiveauCatapult;
}
if (_global.NiveauCatapult == undefined) {
_global.NiveauCatapult = 0;
}
if ((_root.user.data.tabAmmoSelection != undefined) && (_global.tabAmmoSelection == undefined)) {
_global.tabAmmoSelection = _root.user.data.tabAmmoSelection;
}
if (_global.tabAmmoSelection == undefined) {
_global.tabAmmoSelection = [1, 1, 1, 2, 1, 1, 2, 1, 2, 2, 2, 2, 2, 1, 1];
}
if ((_root.user.data.FirstTimeClerc1 != undefined) && (_global.FirstTimeClerc1 == undefined)) {
_global.FirstTimeClerc1 = _root.user.data.FirstTimeClerc1;
}
if (_global.FirstTimeClerc1 == undefined) {
_global.FirstTimeClerc1 = true;
}
if ((_root.user.data.FirstTimeClerc2 != undefined) && (_global.FirstTimeClerc2 == undefined)) {
_global.FirstTimeClerc2 = _root.user.data.FirstTimeClerc2;
}
if (_global.FirstTimeClerc2 == undefined) {
_global.FirstTimeClerc2 = true;
}
if ((_root.user.data.FirstTimeClerc3 != undefined) && (_global.FirstTimeClerc3 == undefined)) {
_global.FirstTimeClerc3 = _root.user.data.FirstTimeClerc3;
}
if (_global.FirstTimeClerc3 == undefined) {
_global.FirstTimeClerc3 = true;
}
if ((_root.user.data.FirstTimeClerc4 != undefined) && (_global.FirstTimeClerc4 == undefined)) {
_global.FirstTimeClerc4 = _root.user.data.FirstTimeClerc4;
}
if (_global.FirstTimeClerc4 == undefined) {
_global.FirstTimeClerc4 = true;
}
if ((_root.user.data.FirstTimeClerc5 != undefined) && (_global.FirstTimeClerc5 == undefined)) {
_global.FirstTimeClerc5 = _root.user.data.FirstTimeClerc5;
}
if (_global.FirstTimeClerc5 == undefined) {
_global.FirstTimeClerc5 = true;
}
if ((_root.user.data.TriggerAchievement3 != undefined) && (_global.TriggerAchievement3 == undefined)) {
_global.TriggerAchievement3 = _root.user.data.TriggerAchievement3;
}
if (_global.TriggerAchievement3 == undefined) {
_global.TriggerAchievement3 = false;
}
if ((_root.user.data.NbAmmoSelected != undefined) && (_global.NbAmmoSelected == undefined)) {
_global.NbAmmoSelected = _root.user.data.NbAmmoSelected;
}
if (_global.NbAmmoSelected == undefined) {
_global.NbAmmoSelected = 0;
}
_global.Action = "Troll";
_global.NbWallDestroyed = 0;
_global.NbRightWallDestroyed = 0;
_global.NbPplKilled = 0;
_global.GameFinished = false;
_global.ActualBuilding = 1;
_global.FirstMap = true;
_global.tabFoodCombo = [0, 0, 0, 0, 0, 0];
_global.TempScore = 0;
_global.CheatBouncy = false;
_global.CheatBeSmall = false;
_global.CheatWantMorePoints = false;
_global.CheatSlowBro = false;
_global.CheatGottaGoFast = false;
if (!_global.CheatWantMorePoints) {
_global.CheatWantMorePoints = false;
_global.FoodValue = 30;
_global.NoobValue = 60;
_global.ValueLeftWall = 100;
_global.ValueRightWall = 300;
} else {
_global.CheatWantMorePoints = true;
_global.FoodValue = 60;
_global.NoobValue = 120;
_global.ValueLeftWall = 200;
_global.ValueRightWall = 600;
}
_global.Achievement8Enabled = false;
_global.tabValueAchievement = [150, 200, 150, 300, 300, 400, 500, 500, 800, 1000];
_global.nbAchievementErned = 0;
_global.tabNewAchievement = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1];
_global.TriggerAchievement3 = false;
_global.tabDishDestroyed = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_global.tabUnlock = [0, 0, 0, 600, 0, 0, 1200, 0, 2200, 4000, 6300, 9000, 14000, 0, 0];
_global.tabUpgrade = [1200, 3000, 6000, 12000];
_global.tabPoid = [300, 400, 550, 750, 1000];
_global.tabUnlockExtras = [500, 1200, 1900, 2700, 4000, 5200, 6500, 8000, 10000, 15000];
_global.LastCutScene = 1;
_global.nbNoob = 0;
_root.Smaking = false;
uniqueItemId = 0;
if (_global.LoadGame) {
btnStart.Text.strText = "Load";
btnNew._visible = true;
} else {
btnStart.Text.strText = " Start";
btnNew._visible = false;
}
btnNew.Text.strText = "New Game";
Instance of Symbol 249 MovieClip "btnStart" in Frame 20
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
if (!_global.LoadGame) {
_global.Action = "FirstSrart";
_root.gotoAndStop("TUTO1");
} else {
_global.Action = "LoadGame";
_root.gotoAndStop("SUBMENU");
}
}
}
Instance of Symbol 249 MovieClip "btnNew" in Frame 20
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_global.Score = 0;
_global.TotalScore = 0;
_global.tabAchievement = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_global.Upgrade = 0;
_global.NiveauCatapult = 0;
_global.tabAmmoSelection = [1, 1, 1, 2, 1, 1, 2, 1, 2, 2, 2, 2, 2, 1, 1];
_global.FirstTimeClerc1 = true;
_global.FirstTimeClerc2 = true;
_global.FirstTimeClerc3 = true;
_global.FirstTimeClerc4 = true;
_global.FirstTimeClerc5 = true;
_global.TriggerAchievement3 = false;
_global.NbAmmoSelected = 0;
_global.Action = "FirstSrart";
_root.gotoAndStop("TUTO1");
}
}
Instance of Symbol 452 MovieClip "diadd" in Frame 20
onClipEvent (load) {
boxx.gotoAndStop(Math.round(_root.lavr));
boxx2.boxx.gotoAndStop(Math.round(_root.lavr));
if (_root.lavr != 0) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
boxx2.gotoAndStop(boxx.shade + 1);
}
Frame 21
stop();
MenuTrack = new Sound();
MenuTrack.attachSound("track_Menu");
MenuTrack.stop();
MenuTrack.start(0, 999);
if (_global.Action == "FirstSrart") {
SubMenu.gotoAndStop("CUSTOM");
} else if (_global.Action == "LevelDone") {
SubMenu.gotoAndStop("STATS");
} else if (_global.Action == "Selection") {
SubMenu.gotoAndStop("STATS");
} else if (_global.Action == "ENDGAME") {
SubMenu.gotoAndStop("ENDGAME");
}
Frame 22
stop();
Frame 23
stop();
Frame 24
function rotateHarm() {
Ratio1 = _root._ymouse / 440;
Ratio2 = (Ratio1 * 45) - 15;
Conteneur.Arrow._rotation = Ratio2;
}
function Launch() {
Conteneur.Catapulte.play();
speedx = 60;
}
function CameraSetting() {
if (act == 1) {
what = "Batiments";
} else if (act == 2) {
what = "Start";
} else if (act == 3) {
what = "Fatty";
} else if (act == 4) {
what = "Arrow";
}
if ((Conteneur._x - 1) > ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) {
Conteneur._x = Conteneur._x - (((Conteneur._x - 1) - ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) * camera_speed);
}
if ((Conteneur._x + 1) < ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) {
Conteneur._x = Conteneur._x + ((((game_width / 2) - eval (("Conteneur." + what) + "._x")) - (Conteneur._x + 1)) * camera_speed);
}
if ((Conteneur._y - 1) > ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) {
Conteneur._y = Conteneur._y - (((Conteneur._y - 1) - ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) * camera_speed);
}
if ((Conteneur._y + 1) < ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) {
Conteneur._y = Conteneur._y + ((((game_height / 2) - eval (("Conteneur." + what) + "._y")) - (Conteneur._y + 1)) * camera_speed);
}
}
function SmackWall() {
_root.Smaking = true;
speedy = 0;
speedx = 0;
Conteneur.Fatty.b_1.gotoAndStop(3);
Conteneur.Fatty.b_2.gotoAndStop(3);
Conteneur.Fatty.b_3.gotoAndStop(1);
}
stop();
speedx = 0;
speedy = 0;
_global.Action = "Wait";
act = 1;
camera_speed = 0.15;
game_width = 800;
game_height = 440;
onEnterFrame = function () {
rotateHarm();
CameraSetting();
};
Frame 25
stop();
Frame 39
stop();
Frame 40
stop();
Frame 51
function rotateHarm() {
Ratio1 = _root._ymouse / 440;
Ratio2 = Ratio1 * 45;
Conteneur.Arrow._rotation = Ratio2;
}
function Launch() {
Conteneur.Destroy.gotoAndStop(1);
Conteneur.Catapulte.Harm.play();
if (_global.NiveauCatapult == 0) {
if (!_global.CheatSlowBro) {
if (!_global.CheatGottaGoFast) {
speedx = 60;
} else {
speedx = 80;
}
} else {
speedx = 30;
}
} else if (_global.NiveauCatapult == 1) {
if (!_global.CheatSlowBro) {
if (!_global.CheatGottaGoFast) {
speedx = 75;
} else {
speedx = 100;
}
} else {
speedx = 35;
}
} else if (_global.NiveauCatapult == 2) {
if (!_global.CheatSlowBro) {
if (!_global.CheatGottaGoFast) {
speedx = 90;
} else {
speedx = 130;
}
} else {
speedx = 45;
}
} else if (_global.NiveauCatapult == 3) {
if (!_global.CheatSlowBro) {
if (!_global.CheatGottaGoFast) {
speedx = 120;
} else {
speedx = 160;
}
} else {
speedx = 60;
}
}
}
function CameraSetting() {
if (act == 1) {
what = "Batiments";
} else if (act == 2) {
what = "Start";
} else if (act == 3) {
what = "Fatty" + noProjectile;
} else if (act == 4) {
what = "Arrow";
}
if ((Conteneur._x - 1) > ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) {
Conteneur._x = Conteneur._x - (((Conteneur._x - 1) - ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) * camera_speed);
}
if ((Conteneur._x + 1) < ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) {
Conteneur._x = Conteneur._x + ((((game_width / 2) - eval (("Conteneur." + what) + "._x")) - (Conteneur._x + 1)) * camera_speed);
}
if ((Conteneur._y - 1) > ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) {
Conteneur._y = Conteneur._y - (((Conteneur._y - 1) - ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) * camera_speed);
}
if ((Conteneur._y + 1) < ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) {
Conteneur._y = Conteneur._y + ((((game_height / 2) - eval (("Conteneur." + what) + "._y")) - (Conteneur._y + 1)) * camera_speed);
}
}
function SetterAmmo() {
i = 0;
while (i < 6) {
position = tabSelection[i];
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_1").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_2.boxx").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_3").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_4").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_5").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_6").gotoAndStop(position + 1);
i++;
}
}
function setTabSelection() {
j = 0;
i = 0;
while (i < 15) {
if (_global.tabAmmoSelection[i] == 1) {
tabSelection[j] = i;
j++;
}
i++;
}
}
function SmackWall() {
_root.Smaking = true;
randomImpact = random(6) + 1;
ChubbyImpacy = new Sound();
ChubbyImpacy.attachSound("sd_Impact" + randomImpact);
ChubbyImpacy.start();
randomDeath = random(2) + 1;
ChubbyDie = new Sound();
ChubbyDie.attachSound((("perso" + (tabSelection[noProjectile - 1] + 1)) + "_die") + randomDeath);
ChubbyDie.start();
if ((_root.tabSelection[noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
speedy = 0;
speedx = 0;
ShakeNumber = (_global.Upgrade * 25) + 25;
Set(("Conteneur.Fatty" + noProjectile) + ".Bouncing", false);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie").gotoAndStop("SMACK");
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_1").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_2.boxx").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_3").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_4").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_5").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_6").gotoAndStop(tabSelection[noProjectile - 1] + 1);
}
function RandomPosition() {
randomPosition = random(4) + 1;
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie").gotoAndStop("Rnd" + randomPosition);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_1").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_2.boxx").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_3").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_4").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_5").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_6").gotoAndStop(tabSelection[noProjectile - 1] + 1);
}
function RandomAmmoOrder(Tableau) {
var _local5 = Tableau.length;
var _local3 = _local5;
while (_local3--) {
var _local2 = random(_local5);
var _local4 = Tableau[_local3];
Tableau[_local3] = Tableau[_local2];
Tableau[_local2] = _local4;
}
}
function RefreshLeftWalls() {
i = 1;
while (i < 6) {
if (eval (("Conteneur.Batiments.LWall" + i) + ".Hp") <= 0) {
if ((eval (("Conteneur.Batiments.LWall" + (i - 1)) + ".Hp") == 0) && (eval (("Conteneur.Batiments.LWall" + (i + 1)) + ".Hp") == 0)) {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(8);
eval ("Conteneur.WallingWall.CoverWall" + i).gotoAndStop(4);
} else if (eval (("Conteneur.Batiments.LWall" + (i - 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(6);
eval ("Conteneur.WallingWall.CoverWall" + i).gotoAndStop(2);
} else if (eval (("Conteneur.Batiments.LWall" + (i + 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(7);
eval ("Conteneur.WallingWall.CoverWall" + i).gotoAndStop(3);
} else {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(5);
eval ("Conteneur.WallingWall.CoverWall" + i).gotoAndStop(1);
}
}
i++;
}
}
function RefreshRightWalls() {
i = 1;
while (i < 7) {
if (eval (("Conteneur.Batiments.RWall" + i) + ".Hp") <= 0) {
if ((eval (("Conteneur.Batiments.RWall" + (i - 1)) + ".Hp") == 0) && (eval (("Conteneur.Batiments.RWall" + (i + 1)) + ".Hp") == 0)) {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(8);
eval ("Conteneur.PlatringPlatre.CoverPlatre" + i).gotoAndStop(4);
} else if (eval (("Conteneur.Batiments.RWall" + (i - 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(6);
eval ("Conteneur.PlatringPlatre.CoverPlatre" + i).gotoAndStop(2);
} else if (eval (("Conteneur.Batiments.RWall" + (i + 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(7);
eval ("Conteneur.PlatringPlatre.CoverPlatre" + i).gotoAndStop(3);
} else {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(5);
eval ("Conteneur.PlatringPlatre.CoverPlatre" + i).gotoAndStop(1);
}
}
i++;
}
}
function Spawn(ItemName, ItemType) {
Impacte = Conteneur.Batiments.DebrisSpawnPoint.attachMovie(ItemName, ItemName + _root.uniqueItemId, 1000 + _root.uniqueItemId);
_root.uniqueItemId++;
Impacte.Debri.gotoAndStop(ItemType);
Impacte._x = eval (("Conteneur.Fatty" + noProjectile) + "._x");
Impacte._y = eval (("Conteneur.Fatty" + noProjectile) + "._y");
}
function CumulTempScore(ZeScore) {
Score = Conteneur.attachMovie("AddScore", "AddScore" + _root.uniqueItemId, 1000 + _root.uniqueItemId);
_root.uniqueItemId++;
Score._x = (eval (("Conteneur.Fatty" + noProjectile) + "._x") + random(30)) - 15;
Score._y = (eval (("Conteneur.Fatty" + noProjectile) + "._y") + random(30)) - 15;
Score.AddScore.Pointage = ZeScore;
UiPointage.AddScore.AddScore.Pointage = ZeScore;
_global.TempScore = _global.TempScore + ZeScore;
if (((ExtraScore + _global.TempScore) >= _global.tabUnlockExtras[noActualExtra]) && (noActualExtra != -1)) {
NewExtra.play();
noActualExtra++;
}
}
function ScreenShaker() {
if (ShakeNumber > 0) {
ShakeNumber = ShakeNumber - 1;
Conteneur._x = Conteneur._x - (random(ShakeNumber * 2) - ShakeNumber);
Conteneur._y = Conteneur._y - (random(ShakeNumber * 2) - ShakeNumber);
} else {
Conteneur._x = Conteneur._x - 0;
Conteneur._y = Conteneur._y - 0;
}
}
function FindActualExtra() {
i = 0;
while (i < 10) {
if (_global.TotalScore < _global.tabUnlockExtras[i]) {
return(i);
}
i++;
}
return(-1);
}
stop();
_global.TempScore = _global.Score;
ExtraScore = _global.TotalScore - _global.Score;
speedx = 0;
speedy = 0;
Conteneur.Destroy.gotoAndStop(2);
randomMusic = random(3) + 1;
MenuTrack = new Sound();
MenuTrack.attachSound("track_InGame" + randomMusic);
MenuTrack.stop();
MenuTrack.start(0, 999);
Smaking = false;
_global.Achievement8Enabled = false;
randomBuilding = random(6) + 1;
_global.ActualBuilding = randomBuilding;
_global.Action = "Wait";
tabFatty = [Conteneur.Fatty1, Conteneur.Fatty2, Conteneur.Fatty3, Conteneur.Fatty4, Conteneur.Fatty5, Conteneur.Fatty6];
tabSelection = [0, 0, 0, 0, 0, 0];
tabSorted = [0, 0, 0, 0, 0, 0];
noProjectile = 1;
cntNbInside = 0;
cntFoodDestroyed = 0;
nbFood = 0;
nbRoof = 0;
nbCarz = 0;
ShakeNumber = 0;
nbTable = 0;
nbLiqueur = 0;
act = 1;
if (_global.NiveauCatapult == 0) {
camera_speed = 0.15;
} else if (_global.NiveauCatapult == 1) {
camera_speed = 0.15;
} else if (_global.NiveauCatapult == 2) {
camera_speed = 0.2;
} else if (_global.NiveauCatapult == 3) {
camera_speed = 0.2;
}
game_width = 800;
game_height = 440;
setTabSelection();
RandomAmmoOrder(tabSelection);
SetterAmmo();
noActualExtra = FindActualExtra();
_global.NbWallDestroyed = 0;
_global.NbPplKilled = 0;
if (_global.TriggerAchievement3 == true) {
_global.TriggerAchievement3 = false;
if (_global.tabAchievement[3] == 0) {
Achievement.gotoAndPlay(2);
Achievement.Feat.gotoAndStop(4);
_global.tabAchievement[3] = 1;
_global.nbAchievementErned++;
CumulTempScore(_global.tabValueAchievement[3]);
i = 0;
while (i < 10) {
if (_global.tabNewAchievement[i] == -1) {
_global.tabNewAchievement[i] = 3;
i = 10;
}
i++;
}
}
}
onEnterFrame = function () {
rotateHarm();
CameraSetting();
RefreshLeftWalls();
RefreshRightWalls();
ScreenShaker();
};
Instance of Symbol 452 MovieClip "diadd" in Frame 51
onClipEvent (load) {
boxx.gotoAndStop(Math.round(_root.lavr));
boxx2.boxx.gotoAndStop(Math.round(_root.lavr));
if (_root.lavr != 0) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
boxx2.gotoAndStop(boxx.shade + 1);
}
Frame 52
stop();
Instance of Symbol 452 MovieClip "diadd" in Frame 52
onClipEvent (load) {
boxx.gotoAndStop(Math.round(_root.lavr));
boxx2.boxx.gotoAndStop(Math.round(_root.lavr));
if (_root.lavr != 0) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
boxx2.gotoAndStop(boxx.shade + 1);
}
Frame 53
stop();
Frame 54
stop();
Frame 55
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
stop();
Symbol 176 MovieClip Frame 3
stop();
Symbol 176 MovieClip Frame 4
stop();
Symbol 176 MovieClip Frame 5
stop();
Symbol 176 MovieClip Frame 6
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 2
stop();
Symbol 182 MovieClip Frame 3
stop();
Symbol 182 MovieClip Frame 4
stop();
Symbol 182 MovieClip Frame 5
stop();
Symbol 182 MovieClip Frame 6
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
stop();
Symbol 189 MovieClip Frame 3
stop();
Symbol 189 MovieClip Frame 4
stop();
Symbol 189 MovieClip Frame 5
stop();
Symbol 189 MovieClip Frame 6
stop();
Symbol 190 MovieClip Frame 1
stop();
Brick.gotoAndStop(_global.ActualBuilding);
Symbol 190 MovieClip Frame 2
stop();
Brick.gotoAndStop(_global.ActualBuilding);
Symbol 190 MovieClip Frame 3
stop();
Brick.gotoAndStop(_global.ActualBuilding);
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 2
stop();
Symbol 194 MovieClip Frame 3
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 2
stop();
Symbol 200 MovieClip Frame 3
stop();
Symbol 200 MovieClip Frame 4
stop();
Symbol 200 MovieClip Frame 5
stop();
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 3
stop();
Symbol 207 MovieClip Frame 1
stop();
RandomBrick = random(3) + 1;
Brick.gotoAndStop(RandomBrick);
Symbol 207 MovieClip Frame 2
stop();
RandomWood = random(3) + 1;
MorningWood.gotoAndStop(RandomWood);
Symbol 207 MovieClip Frame 3
stop();
RandomGlass = random(5) + 1;
BrokenGlass.gotoAndStop(RandomGlass);
Symbol 207 MovieClip Frame 4
stop();
Platreux._rotation = random(360);
Platreux._xscale = random(20) + 80;
Platreux._yscale = random(20) + 80;
Symbol 207 MovieClip Frame 5
stop();
RandomSteel = random(3) + 1;
BrokenSteel._rotation = random(360);
BrokenSteel._xscale = random(20) + 80;
BrokenSteel._yscale = random(20) + 80;
BrokenSteel.gotoAndStop(RandomSteel);
Symbol 209 MovieClip Frame 400
onEnterFrame = function () {
_parent._alpha--;
};
Symbol 209 MovieClip Frame 500
_parent.removeMovieClip();
Symbol 210 MovieClip [DebrisAnimationLeft] Frame 1
speedx = random(15) - 15;
speedy = random(20) - 15;
_rotation = random(360);
turningSide = random(2);
randomScale = random(20) + 80;
_xscale = randomScale;
_yscale = randomScale;
onEnterFrame = function () {
if (_y < 480) {
_x = (_x + speedx);
_y = (_y + speedy);
if (turningSide) {
_rotation = (_rotation + 10);
} else {
_rotation = (_rotation - 10);
}
}
if (_y >= 440) {
speedx = speedx * 0.4;
speedy = speedy * -0.4;
}
speedx = speedx * 0.97;
if (speedy < -0.5) {
speedy = speedy * 0.8;
}
if ((speedy >= -0.5) && (speedy <= 0.5)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.2;
}
};
Symbol 211 MovieClip [DebrisAnimation] Frame 1
speedx = random(15) - 7;
speedy = random(15) - 10;
randomScale = random(20) + 80;
_xscale = randomScale;
_yscale = randomScale;
_rotation = random(360);
turningSide = random(2);
onEnterFrame = function () {
if (_y < 480) {
_x = (_x + speedx);
_y = (_y + speedy);
if (turningSide) {
_rotation = (_rotation + 10);
} else {
_rotation = (_rotation - 10);
}
}
if (_y >= 440) {
speedx = speedx * 0.5;
speedy = speedy * -0.5;
}
speedx = speedx * 0.97;
if (speedy < -0.5) {
speedy = speedy * 0.8;
}
if ((speedy >= -0.5) && (speedy <= 0.5)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.2;
}
};
Symbol 215 MovieClip [Craque] Frame 1
stop();
ThatCraque = random(3) + 1;
gotoAndStop(ThatCraque);
Symbol 215 MovieClip [Craque] Frame 2
stop();
Symbol 215 MovieClip [Craque] Frame 3
stop();
Symbol 219 MovieClip [AddScore] Frame 1
RandomColor = random(3);
if (RandomColor == 0) {
gotoAndPlay ("AOI");
} else if (RandomColor == 1) {
gotoAndPlay ("KIIROI");
} else if (RandomColor == 2) {
gotoAndPlay ("AKAI");
}
Symbol 219 MovieClip [AddScore] Frame 90
this.removeMovieClip();
Symbol 219 MovieClip [AddScore] Frame 179
this.removeMovieClip();
Symbol 219 MovieClip [AddScore] Frame 268
this.removeMovieClip();
Symbol 230 MovieClip Frame 150
stop();
Symbol 234 MovieClip Frame 1
_root.stop();
_root.PercentLoaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_root.PercentLoaded != 100) {
setProperty(bar, _xscale , _root.PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 234 MovieClip Frame 2
gotoAndPlay (1);
Symbol 234 MovieClip Frame 3
_root.play();
Symbol 1531 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local27);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local24 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local15 = _getRes(options);
var _local5 = _local15[0];
var _local14 = _local15[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local7._visible = false;
delete options.no_progress_bar;
} else {
_local7._x = 10;
_local7._y = _local14 - 20;
}
var _local23 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local25 = options.outline;
delete options.outline;
var _local6 = _local7.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local7.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local23);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local8 = _local7.createEmptyMovieClip("_outline", 3);
_local8.lineStyle(0, _local25, 100);
_local8.moveTo(0, 0);
_local8.lineTo(_local5 - 20, 0);
_local8.lineTo(_local5 - 20, 10);
_local8.lineTo(0, 10);
_local8.lineTo(0, 0);
chk.ad_msec = _local24;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local10 = this._parent._parent;
var _local3 = _local10;
while ((!_local3.getBytesTotal()) && (_local3)) {
_local3 = _local3._parent;
}
if (!_local3) {
_local3 = _root;
}
var _local13 = this._parent._mochiad_ctr;
var _local7 = getTimer() - this.started;
var _local5 = false;
var _local6 = _local3.getBytesTotal();
var _local9 = _local3.getBytesLoaded();
var _local4 = (100 * _local9) / _local6;
var _local12 = (100 * _local7) / chk.ad_msec;
var _local11 = this._mochiad_bar._inside;
var _local15 = Math.min(100, Math.min(_local4 || 0, _local12));
_local15 = Math.max(this.last_pcnt, _local15);
this.last_pcnt = _local15;
_local11._xscale = _local15;
options.ad_progress(_local15);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local4}, clip._mochiad._containerLCName);
if (_local4 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local8 = _local13.getBytesTotal();
if ((_local8 > 0) || (typeof(_local8) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local7 > chk.ad_timeout) && (_local4 == 100)) {
options.ad_failed();
_local5 = true;
}
}
if (_local7 > chk.ad_msec) {
_local5 = true;
}
if (((_local6 > 0) && (_local9 >= _local6)) && (_local5)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 1532 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 1533 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.9.4 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
onError("NotConnected");
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError("IOError");
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError(errorCode);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError("IOError");
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError("NotConnected");
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError("NotConnected");
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1534 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function getAchievements(properties) {
mochi.as2.MochiServices.send("events_getAchievements", properties);
}
static function unlockAchievement(properties) {
mochi.as2.MochiServices.send("events_unlockAchievement", properties);
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function showAwards(options) {
mochi.as2.MochiServices.send("events_showAwards", options, null, null);
}
static function setNotifications(style) {
mochi.as2.MochiServices.send("events_setNotifications", style, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENTS_OWNED = "AchievementOwned";
static var ACHIEVEMENT_NEW = "AchievementReceived";
static var GAME_ACHIEVEMENTS = "GameAchievements";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var IO_PENDING = "IOPending";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var FORMAT_NONE = "NoForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1535 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1536 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function showProfile(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showProfile", options);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 244 Button
on (release) {
act = 2;
_parent.hideTooltip();
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
_parent.hideTooltip();
gotoAndPlay (8);
}
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 2
MenuTrack = new Sound();
MenuTrack.attachSound("sd_RollOver");
MenuTrack.start();
Symbol 249 MovieClip Frame 7
stop();
Symbol 249 MovieClip Frame 13
gotoAndStop (1);
Symbol 249 MovieClip Frame 15
play();
Symbol 249 MovieClip Frame 20
play();
Symbol 249 MovieClip Frame 25
play();
Symbol 249 MovieClip Frame 30
play();
Symbol 249 MovieClip Frame 42
gotoAndStop (1);
Symbol 250 MovieClip Frame 150
stop();
btnStart.Text.strText = "Start";
Instance of Symbol 249 MovieClip "btnStart" in Symbol 250 MovieClip Frame 150
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_root.gotoAndPlay(19);
}
}
Symbol 269 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
gotoAndPlay (8);
}
Symbol 270 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 10
stop();
Symbol 273 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
gotoAndPlay (8);
}
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 10
stop();
Symbol 275 MovieClip Frame 1
_parent.Voice1.gotoAndStop(2);
Instance of Symbol 270 MovieClip "btnSkip" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_root.gotoAndStop(20);
}
}
Symbol 275 MovieClip Frame 130
stop();
Instance of Symbol 274 MovieClip in Symbol 275 MovieClip Frame 130
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.play();
}
}
Symbol 275 MovieClip Frame 131
_parent.Voice1.gotoAndStop(3);
_parent.Voice2.gotoAndStop(2);
Symbol 275 MovieClip Frame 284
stop();
Instance of Symbol 274 MovieClip in Symbol 275 MovieClip Frame 284
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.play();
}
}
Symbol 275 MovieClip Frame 285
_parent.Voice2.gotoAndStop(3);
_parent.Voice3.gotoAndStop(2);
Symbol 275 MovieClip Frame 450
stop();
Instance of Symbol 274 MovieClip in Symbol 275 MovieClip Frame 450
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.play();
}
}
Instance of Symbol 249 MovieClip "btnNew" in Symbol 275 MovieClip Frame 450
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_global.Score = 0;
_global.tabAchievement = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_global.UpgradePoid = 19;
_global.NiveauCatapult = 0;
_global.tabAmmoSelection = [1, 1, 1, 1, 1, 1, 0, 0, 2, 2, 2, 2, 2, 2, 2];
_global.Action = "FirstSrart";
_root.gotoAndStop("SUBMENU");
}
}
Symbol 275 MovieClip Frame 451
_parent.Voice3.gotoAndStop(3);
_parent.Voice4.gotoAndStop(2);
Symbol 275 MovieClip Frame 553
stop();
Instance of Symbol 274 MovieClip in Symbol 275 MovieClip Frame 553
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.play();
}
}
Instance of Symbol 249 MovieClip "btnNew" in Symbol 275 MovieClip Frame 553
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_global.Score = 0;
_global.tabAchievement = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_global.UpgradePoid = 19;
_global.NiveauCatapult = 0;
_global.tabAmmoSelection = [1, 1, 1, 1, 1, 1, 0, 0, 2, 2, 2, 2, 2, 2, 2];
_global.Action = "FirstSrart";
_root.gotoAndStop("SUBMENU");
}
}
Symbol 275 MovieClip Frame 554
_parent.Voice4.gotoAndStop(3);
_parent.Voice5.gotoAndStop(2);
Symbol 275 MovieClip Frame 924
_root.gotoAndStop(20);
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 2
stop();
Symbol 278 MovieClip Frame 3
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
stop();
Symbol 280 MovieClip Frame 3
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
stop();
Symbol 282 MovieClip Frame 3
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 2
stop();
Symbol 284 MovieClip Frame 3
stop();
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 2
stop();
Symbol 286 MovieClip Frame 3
stop();
Instance of Symbol 303 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (300);
}
Instance of Symbol 303 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (300);
}
Symbol 449 MovieClip Frame 1
lavr_link = "http://www.gamesfree.ca/";
shade = 0;
Symbol 449 MovieClip Frame 2
lavr_link = "http://www.andkon.com";
shade = 2;
Symbol 449 MovieClip Frame 3
lavr_link = "http://www.SolidGames.com";
shade = 0;
Symbol 449 MovieClip Frame 4
lavr_link = "http://www.girldressupgames.biz";
shade = 1;
Symbol 449 MovieClip Frame 5
lavr_link = "http://www.yepi.com";
shade = 0;
Symbol 449 MovieClip Frame 6
lavr_link = "http://www.bubblebox.com";
shade = 1;
Symbol 449 MovieClip Frame 7
lavr_link = "http://www.bunnygames.com";
shade = 1;
Symbol 449 MovieClip Frame 8
lavr_link = "http://www.dailyfreegames.com";
shade = 1;
Symbol 449 MovieClip Frame 9
lavr_link = "http://www.directgamez.com";
shade = 2;
Symbol 449 MovieClip Frame 10
lavr_link = "http://www.2flashgames.com";
shade = 2;
Symbol 449 MovieClip Frame 11
lavr_link = "http://www.flashninjaclan.com";
shade = 1;
Symbol 449 MovieClip Frame 12
lavr_link = "http://www.dailyaddictinggames.com/";
shade = 1;
Symbol 449 MovieClip Frame 13
lavr_link = "http://www.funny-games.biz";
shade = 1;
Symbol 449 MovieClip Frame 14
lavr_link = "http://www.gameitnow.com";
shade = 2;
Symbol 449 MovieClip Frame 15
lavr_link = "http://www.games1.com";
shade = 0;
Symbol 449 MovieClip Frame 16
lavr_link = "http://www.onjogos.com.br";
shade = 1;
Symbol 449 MovieClip Frame 17
lavr_link = "http://www.gamesfreak.net";
shade = 2;
Symbol 449 MovieClip Frame 18
lavr_link = "http://www.maxi-juegos.com";
shade = 1;
Symbol 449 MovieClip Frame 19
lavr_link = "http://www.jarkey.net";
shade = 2;
Symbol 449 MovieClip Frame 20
lavr_link = "http://www.gam123bee.com/";
shade = 1;
Symbol 449 MovieClip Frame 21
lavr_link = "http://www.keepbusy.net";
shade = 1;
Symbol 449 MovieClip Frame 22
lavr_link = "http://www.microjogos.com";
shade = 1;
Symbol 449 MovieClip Frame 23
lavr_link = "http://www.minijuegos.com";
shade = 2;
Symbol 449 MovieClip Frame 24
lavr_link = "http://www.oyunskor.com/";
shade = 1;
Symbol 449 MovieClip Frame 25
lavr_link = "http://www.mostfungames.com";
shade = 2;
Symbol 449 MovieClip Frame 26
lavr_link = "http://www.gameshot.org";
shade = 1;
Symbol 449 MovieClip Frame 27
lavr_link = "http://www.online-games-zone.com/";
shade = 2;
Symbol 449 MovieClip Frame 28
lavr_link = "http://www.puffgames.com";
shade = 2;
Symbol 449 MovieClip Frame 29
lavr_link = "http://www.spele.nl";
shade = 1;
Symbol 449 MovieClip Frame 30
lavr_link = "http://www.t45ol.com";
shade = 2;
Symbol 449 MovieClip Frame 31
lavr_link = "http://www.thegamesonline.com/";
shade = 1;
Symbol 449 MovieClip Frame 32
lavr_link = "http://www.ultimatearcade.com";
shade = 1;
Symbol 449 MovieClip Frame 33
lavr_link = "http://www.girlgames4u.com/";
shade = 1;
Symbol 449 MovieClip Frame 34
lavr_link = "http://www.beer-games.net";
shade = 0;
Symbol 449 MovieClip Frame 35
lavr_link = "http://www.stickpage.com/";
shade = 1;
Symbol 449 MovieClip Frame 36
lavr_link = "http://www.gamespond.net/";
shade = 2;
Symbol 449 MovieClip Frame 37
lavr_link = "http://www.flashgames.it/";
shade = 1;
Symbol 449 MovieClip Frame 38
lavr_link = "http://www.gamesgirl.ca/";
shade = 1;
Symbol 449 MovieClip Frame 39
lavr_link = "http://www.hallpass.com/";
shade = 2;
Symbol 449 MovieClip Frame 40
lavr_link = "http://www.gamegecko.com/";
shade = 0;
Symbol 449 MovieClip Frame 41
lavr_link = "http://www.benz.be";
shade = 2;
Symbol 449 MovieClip Frame 42
lavr_link = "http://www.net-games.co.il/";
shade = 1;
Symbol 449 MovieClip Frame 43
lavr_link = "http://www.bgames.com";
shade = 1;
Symbol 449 MovieClip Frame 44
lavr_link = "http://www.pinkyarcade.com/";
shade = 1;
Symbol 449 MovieClip Frame 45
lavr_link = "http://jayisgames.com/";
shade = 0;
Symbol 449 MovieClip Frame 46
lavr_link = "http://www.twizl.com/";
shade = 1;
Symbol 449 MovieClip Frame 47
lavr_link = "http://www.a10.com/";
shade = 1;
Symbol 449 MovieClip Frame 48
lavr_link = "http://www.bonniegames.com/";
shade = 1;
Symbol 449 MovieClip Frame 49
lavr_link = "http://www.ug2.com/";
shade = 0;
Symbol 449 MovieClip Frame 50
lavr_link = "http://www.agame.com";
shade = 1;
Symbol 449 MovieClip Frame 51
lavr_link = "http://www.gamesclub.com/";
shade = 1;
Symbol 449 MovieClip Frame 52
lavr_link = "http://www.killhours.com/";
shade = 1;
Symbol 449 MovieClip Frame 53
lavr_link = "http://www.flasharcadegamessite.com/";
shade = 1;
Symbol 449 MovieClip Frame 54
lavr_link = "http://www.roundgames.com/";
shade = 2;
Symbol 449 MovieClip Frame 55
lavr_link = "http://www.arcadegangsta.com/";
shade = 1;
Symbol 449 MovieClip Frame 56
lavr_link = "http://www.bored.com/";
shade = 0;
Symbol 449 MovieClip Frame 57
lavr_link = "http://www.flash-games.net/";
shade = 1;
Symbol 449 MovieClip Frame 58
lavr_link = "http://www.flash-game.net/";
shade = 1;
Symbol 449 MovieClip Frame 59
lavr_link = "http://www.kingofgames.net";
shade = 1;
Symbol 449 MovieClip Frame 60
lavr_link = "http://www.playhub.com/";
shade = 0;
Symbol 449 MovieClip Frame 61
lavr_link = "http://www.123spill.no/";
shade = 1;
Symbol 449 MovieClip Frame 62
lavr_link = "http://www.dailygames.com/";
shade = 1;
Symbol 449 MovieClip Frame 63
lavr_link = "http://www.octogames.com/";
shade = 2;
Symbol 449 MovieClip Frame 64
lavr_link = "http://www.ugotgames.com/";
shade = 1;
Symbol 449 MovieClip Frame 65
lavr_link = "http://www.fupa.com/";
shade = 1;
Symbol 449 MovieClip Frame 66
lavr_link = "http://www.kibagames.com/";
shade = 0;
Symbol 449 MovieClip Frame 67
lavr_link = "http://www.kraloyun.com/";
shade = 0;
Symbol 449 MovieClip Frame 68
lavr_link = "http://www.spielaffe.de/";
shade = 0;
Symbol 449 MovieClip Frame 69
lavr_link = "http://www.39games.com";
shade = 2;
Symbol 449 MovieClip Frame 70
lavr_link = "http://www.bijuegos.com";
shade = 0;
Symbol 449 MovieClip Frame 71
lavr_link = "http://www.mofunzone.com";
shade = 2;
Symbol 449 MovieClip Frame 72
lavr_link = "http://www.freegamespy.com/";
shade = 2;
Symbol 449 MovieClip Frame 73
lavr_link = "http://www.jogos10.com";
shade = 0;
Symbol 449 MovieClip Frame 74
lavr_link = "http://www.juegos10.com";
shade = 0;
Symbol 449 MovieClip Frame 75
lavr_link = "http://flash.178.com/";
shade = 0;
Symbol 449 MovieClip Frame 76
lavr_link = "http://www.papajogos.com.br";
shade = 0;
Symbol 449 MovieClip Frame 77
lavr_link = "http://www.arcadelots.com/";
shade = 0;
Symbol 449 MovieClip Frame 78
lavr_link = "http://www.minigamers.com/";
shade = 0;
Symbol 449 MovieClip Frame 79
lavr_link = "http://www.stickpage.com";
shade = 0;
Symbol 449 MovieClip Frame 80
lavr_link = "http://www.y8.com/";
shade = 1;
Symbol 449 MovieClip Frame 81
lavr_link = "http://www.y3.com/";
shade = 1;
Symbol 449 MovieClip Frame 83
lavr_link = "http://www.videobash.com/";
shade = 0;
Symbol 450 MovieClip Frame 1
stop();
Symbol 451 Button
on (release) {
getURL (boxx.lavr_link, "_blank");
}
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (21);
}
Symbol 452 MovieClip Frame 1
stop();
Symbol 452 MovieClip Frame 20
stop();
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 2
stop();
Symbol 477 MovieClip Frame 3
stop();
Symbol 477 MovieClip Frame 4
stop();
Symbol 477 MovieClip Frame 5
stop();
Symbol 477 MovieClip Frame 6
stop();
Symbol 477 MovieClip Frame 7
stop();
Symbol 477 MovieClip Frame 8
stop();
Symbol 477 MovieClip Frame 9
stop();
Symbol 477 MovieClip Frame 10
stop();
Symbol 477 MovieClip Frame 11
stop();
Symbol 477 MovieClip Frame 12
stop();
Symbol 477 MovieClip Frame 13
stop();
Symbol 477 MovieClip Frame 14
stop();
Symbol 477 MovieClip Frame 15
stop();
Symbol 493 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 2
stop();
Symbol 493 MovieClip Frame 3
stop();
Symbol 493 MovieClip Frame 4
stop();
Symbol 493 MovieClip Frame 5
stop();
Symbol 493 MovieClip Frame 6
stop();
Symbol 493 MovieClip Frame 7
stop();
Symbol 493 MovieClip Frame 8
stop();
Symbol 493 MovieClip Frame 9
stop();
Symbol 493 MovieClip Frame 10
stop();
Symbol 493 MovieClip Frame 11
stop();
Symbol 493 MovieClip Frame 12
stop();
Symbol 493 MovieClip Frame 13
stop();
Symbol 493 MovieClip Frame 14
stop();
Symbol 493 MovieClip Frame 15
stop();
Symbol 496 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 2
stop();
Symbol 499 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 2
stop();
Symbol 502 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 2
stop();
Symbol 505 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 2
stop();
Symbol 508 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 2
stop();
Symbol 511 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 2
stop();
Symbol 514 MovieClip Frame 1
stop();
Symbol 514 MovieClip Frame 2
stop();
Symbol 519 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 2
stop();
Symbol 525 MovieClip Frame 1
stop();
Symbol 525 MovieClip Frame 2
stop();
Symbol 528 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 2
stop();
Symbol 531 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 2
stop();
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 2
stop();
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 2
stop();
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 2
stop();
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 2
stop();
Symbol 544 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 2
stop();
Symbol 544 MovieClip Frame 3
stop();
Symbol 544 MovieClip Frame 4
stop();
Symbol 544 MovieClip Frame 5
stop();
Symbol 544 MovieClip Frame 6
stop();
Symbol 544 MovieClip Frame 7
stop();
Symbol 544 MovieClip Frame 8
stop();
Symbol 544 MovieClip Frame 9
stop();
Symbol 544 MovieClip Frame 10
stop();
Symbol 544 MovieClip Frame 11
stop();
Symbol 544 MovieClip Frame 12
stop();
Symbol 544 MovieClip Frame 13
stop();
Symbol 544 MovieClip Frame 14
stop();
Symbol 544 MovieClip Frame 15
stop();
Symbol 545 MovieClip Frame 1
stop();
Symbol 545 MovieClip Frame 2
play();
Symbol 550 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 2
stop();
Symbol 550 MovieClip Frame 3
stop();
Symbol 550 MovieClip Frame 4
stop();
Symbol 555 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 2
stop();
Symbol 555 MovieClip Frame 3
stop();
Symbol 555 MovieClip Frame 4
stop();
Symbol 560 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 2
stop();
Symbol 560 MovieClip Frame 3
stop();
Symbol 560 MovieClip Frame 4
stop();
Symbol 565 MovieClip Frame 1
stop();
Symbol 565 MovieClip Frame 2
stop();
Symbol 565 MovieClip Frame 3
stop();
Symbol 565 MovieClip Frame 4
stop();
Symbol 570 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 2
stop();
Symbol 570 MovieClip Frame 3
stop();
Symbol 570 MovieClip Frame 4
stop();
Symbol 575 MovieClip Frame 1
stop();
Symbol 575 MovieClip Frame 2
stop();
Symbol 575 MovieClip Frame 3
stop();
Symbol 575 MovieClip Frame 4
stop();
Symbol 580 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 2
stop();
Symbol 580 MovieClip Frame 3
stop();
Symbol 580 MovieClip Frame 4
stop();
Symbol 585 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 2
stop();
Symbol 585 MovieClip Frame 3
stop();
Symbol 585 MovieClip Frame 4
stop();
Symbol 590 MovieClip Frame 1
stop();
Symbol 590 MovieClip Frame 2
stop();
Symbol 590 MovieClip Frame 3
stop();
Symbol 590 MovieClip Frame 4
stop();
Symbol 595 MovieClip Frame 1
stop();
Symbol 595 MovieClip Frame 2
stop();
Symbol 595 MovieClip Frame 3
stop();
Symbol 595 MovieClip Frame 4
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 2
stop();
Symbol 600 MovieClip Frame 3
stop();
Symbol 600 MovieClip Frame 4
stop();
Symbol 605 MovieClip Frame 1
stop();
Symbol 605 MovieClip Frame 2
stop();
Symbol 605 MovieClip Frame 3
stop();
Symbol 605 MovieClip Frame 4
stop();
Symbol 610 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 2
stop();
Symbol 610 MovieClip Frame 3
stop();
Symbol 610 MovieClip Frame 4
stop();
Symbol 615 MovieClip Frame 1
stop();
Symbol 615 MovieClip Frame 2
stop();
Symbol 615 MovieClip Frame 3
stop();
Symbol 615 MovieClip Frame 4
stop();
Symbol 620 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 2
stop();
Symbol 620 MovieClip Frame 3
stop();
Symbol 620 MovieClip Frame 4
stop();
Symbol 621 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 2
stop();
Symbol 621 MovieClip Frame 3
stop();
Symbol 621 MovieClip Frame 4
stop();
Symbol 621 MovieClip Frame 5
stop();
Symbol 621 MovieClip Frame 6
stop();
Symbol 621 MovieClip Frame 7
stop();
Symbol 621 MovieClip Frame 8
stop();
Symbol 621 MovieClip Frame 9
stop();
Symbol 621 MovieClip Frame 10
stop();
Symbol 621 MovieClip Frame 11
stop();
Symbol 621 MovieClip Frame 12
stop();
Symbol 621 MovieClip Frame 13
stop();
Symbol 621 MovieClip Frame 14
stop();
Symbol 621 MovieClip Frame 15
stop();
Symbol 637 MovieClip Frame 1
stop();
Symbol 637 MovieClip Frame 2
stop();
Symbol 637 MovieClip Frame 3
stop();
Symbol 637 MovieClip Frame 4
stop();
Symbol 637 MovieClip Frame 5
stop();
Symbol 637 MovieClip Frame 6
stop();
Symbol 637 MovieClip Frame 7
stop();
Symbol 637 MovieClip Frame 8
stop();
Symbol 637 MovieClip Frame 9
stop();
Symbol 637 MovieClip Frame 10
stop();
Symbol 637 MovieClip Frame 11
stop();
Symbol 637 MovieClip Frame 12
stop();
Symbol 637 MovieClip Frame 13
stop();
Symbol 637 MovieClip Frame 14
stop();
Symbol 637 MovieClip Frame 15
stop();
Symbol 638 MovieClip Frame 1
MyName = _name;
MyNumber = MyName.substring(5, 6);
b_1.gotoAndStop(MyNumber);
b_1.head.gotoAndStop(3);
b_2.boxx.gotoAndStop(MyNumber);
b_3.gotoAndStop(MyNumber);
b_4.gotoAndStop(MyNumber);
b_5.gotoAndStop(MyNumber);
b_6.gotoAndStop(MyNumber);
stop();
if (!_global.CheatBeSmall) {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
}
Symbol 683 MovieClip Frame 71
stop();
Symbol 684 MovieClip Frame 100
gotoAndPlay ("ANIME1");
Symbol 684 MovieClip Frame 199
stop();
Symbol 685 MovieClip Frame 141
if (_global.FirstTimeClerc1) {
_global.FirstTimeClerc1 = false;
_root.SubMenu.gotoAndStop("STATS");
}
Symbol 685 MovieClip Frame 833
stop();
Symbol 686 MovieClip Frame 99
stop();
Symbol 687 MovieClip Frame 145
_global.FirstTimeClerc2 = false;
_parent.gotoAndStop(4);
stop();
Symbol 693 MovieClip Frame 112
stop();
if (_global.FirstTimeClerc3) {
_global.FirstTimeClerc3 = false;
_root.SubMenu.gotoAndStop("STATS");
}
Symbol 702 MovieClip Frame 1
ClerckSound = new Sound();
ClerckSound.attachSound("sd_Buldozer");
ClerckSound.start();
Symbol 702 MovieClip Frame 170
stop();
if (_global.FirstTimeClerc4) {
_global.FirstTimeClerc4 = false;
}
_parent.gotoAndStop(6);
Symbol 703 MovieClip Frame 75
stop();
Symbol 704 MovieClip Frame 74
stop();
if (_global.FirstTimeClerc5) {
_global.FirstTimeClerc5 = false;
_root.SubMenu.gotoAndStop("STATS");
}
Symbol 705 MovieClip Frame 1
stop();
if (((((_global.Action != "FirstSrart") && (_global.Action != "LoadGame")) && (_global.Action != "StatsDone")) && (_global.Action != "BluePrint")) && (_global.Action != "ENDGAME")) {
if (_global.FirstTimeClerc1 && (_global.Upgrade == 0)) {
gotoAndStop (2);
_parent.SubMenu.gotoAndStop("EMPTY");
} else if ((!_global.FirstTimeClerc1) && (_global.Upgrade == 0)) {
gotoAndStop (2);
} else if (_global.FirstTimeClerc2 && (_global.Upgrade == 1)) {
gotoAndStop (3);
_parent.SubMenu.gotoAndStop("EMPTY");
} else if (_global.FirstTimeClerc3 && (_global.Upgrade == 1)) {
gotoAndStop (4);
_parent.SubMenu.gotoAndStop("EMPTY");
} else if ((!_global.FirstTimeClerc3) && (_global.Upgrade == 1)) {
gotoAndStop (4);
} else if (_global.FirstTimeClerc4 && (_global.Upgrade == 2)) {
gotoAndStop (5);
_parent.SubMenu.gotoAndStop("EMPTY");
} else if (_global.FirstTimeClerc5 && (_global.Upgrade == 2)) {
gotoAndStop (6);
_parent.SubMenu.gotoAndStop("EMPTY");
} else if ((!_global.FirstTimeClerc5) && (_global.Upgrade >= 2)) {
gotoAndStop (6);
}
}
Symbol 705 MovieClip Frame 2
stop();
Symbol 705 MovieClip Frame 3
stop();
Symbol 705 MovieClip Frame 4
stop();
Symbol 705 MovieClip Frame 5
stop();
Symbol 705 MovieClip Frame 6
stop();
Symbol 711 MovieClip Frame 1
stop();
if (_parent.nbDestruction < _global.NbWallDestroyed) {
play();
} else if (_parent.nbDestruction2 < _global.NbRightWallDestroyed) {
play();
} else if (_parent.nbKills < _global.NbPplKilled) {
play();
} else if (_parent.nbAchievement < _global.nbAchievementErned) {
play();
} else if (_global.Action === "LevelDone") {
_root.SaveGame();
_global.Action = "StatsDone";
}
Symbol 711 MovieClip Frame 6
if (_parent.nbDestruction < _global.NbWallDestroyed) {
trace("_global.ValueLeftWall : " + _global.ValueLeftWall);
_parent.nbDestruction++;
_parent.WaveTotal = _parent.WaveTotal + _global.ValueLeftWall;
_parent.TotalDamage = _parent.TotalDamage + _global.ValueLeftWall;
if (_global.Action === "LevelDone") {
_global.TotalScore = _global.TotalScore + _global.ValueLeftWall;
_global.Score = _global.Score + _global.ValueLeftWall;
IncrementSound = new Sound();
IncrementSound.attachSound("sd_RollOver");
IncrementSound.start();
}
} else if (_parent.nbDestruction2 < _global.NbRightWallDestroyed) {
_parent.nbDestruction2++;
_parent.WaveTotal = _parent.WaveTotal + _global.ValueRightWall;
_parent.TotalDamage = _parent.TotalDamage + _global.ValueRightWall;
if (_global.Action === "LevelDone") {
_global.TotalScore = _global.TotalScore + _global.ValueRightWall;
_global.Score = _global.Score + _global.ValueRightWall;
IncrementSound = new Sound();
IncrementSound.attachSound("sd_RollOver");
IncrementSound.start();
}
} else if (_parent.noElement < 6) {
trace(_global.tabFoodCombo[_parent.noElement]);
if (_global.tabFoodCombo[_parent.noElement] == 0) {
gotoAndPlay (6);
}
_parent.WaveTotal = _parent.WaveTotal + (_global.tabFoodCombo[_parent.noElement] * _global.FoodValue);
_parent.TotalDamage = _parent.TotalDamage + (_global.tabFoodCombo[_parent.noElement] * _global.FoodValue);
if (_global.Action === "LevelDone") {
_global.TotalScore = _global.TotalScore + (_global.tabFoodCombo[_parent.noElement] * _global.FoodValue);
_global.Score = _global.Score + (_global.tabFoodCombo[_parent.noElement] * _global.FoodValue);
IncrementSound = new Sound();
IncrementSound.attachSound("sd_RollOver");
IncrementSound.start();
}
_parent.noElement++;
} else if (_parent.nbKills < _global.NbPplKilled) {
_parent.nbKills++;
_parent.WaveTotal = _parent.WaveTotal + _global.NoobValue;
if (_global.Action === "LevelDone") {
_global.Score = _global.Score + _global.NoobValue;
_global.TotalScore = _global.TotalScore + _global.NoobValue;
IncrementSound = new Sound();
IncrementSound.attachSound("sd_RollOver");
IncrementSound.start();
}
} else if (_parent.nbAchievement < _global.nbAchievementErned) {
_parent.AchBonus = _parent.AchBonus + _global.tabValueAchievement[_global.tabNewAchievement[_parent.nbAchievement]];
_parent.WaveTotal = _parent.WaveTotal + _global.tabValueAchievement[_global.tabNewAchievement[_parent.nbAchievement]];
if (_global.Action === "LevelDone") {
_global.Score = _global.Score + _global.tabValueAchievement[_global.tabNewAchievement[_parent.nbAchievement]];
_global.TotalScore = _global.TotalScore + _global.tabValueAchievement[_global.tabNewAchievement[_parent.nbAchievement]];
IncrementSound = new Sound();
IncrementSound.attachSound("sd_RollOver");
IncrementSound.start();
}
_parent.nbAchievement++;
}
Symbol 715 Button
on (release) {
_parent.act = 2;
_parent.hideTooltip();
}
on (rollOver) {
_parent.act = 3;
gotoAndPlay (2);
}
on (rollOut) {
_parent.act = 1;
_parent.hideTooltip();
gotoAndPlay (11);
}
Symbol 719 MovieClip Frame 1
stop();
Symbol 719 MovieClip Frame 2
MenuTrack = new Sound();
MenuTrack.attachSound("sd_RollOver");
MenuTrack.start();
Symbol 719 MovieClip Frame 10
stop();
Symbol 725 MovieClip Frame 1
onEnterFrame = function () {
Ratio = (_global.tabUpgrade[_global.UpgradePoid] - 300) / 700;
_rotation = (Ratio * 130);
};
Symbol 728 MovieClip Frame 1
stop();
Symbol 728 MovieClip Frame 101
stop();
Symbol 734 MovieClip Frame 1
stop();
BrokenBalance = false;
onEnterFrame = function () {
TotalScore = _global.Score;
if (_global.Upgrade < 5) {
Weigth = _global.tabPoid[_global.Upgrade];
}
if ((_global.UpgradePoid == 19) && (!BrokenBalance)) {
BrokenBalance = true;
Weigth = "Broken";
Balance.gotoAndPlay(2);
}
};
Symbol 742 MovieClip Frame 1
stop();
Symbol 744 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.Action == "LevelDone") {
_parent.btnGo._visible = false;
} else if (_global.Action == "StatsDone") {
_global.Action = "SpawnButton";
_parent.btnGo._visible = true;
_parent.btnOption.gotoAndPlay(30);
_parent.btnCheat.gotoAndPlay(25);
_parent.btnExtras.gotoAndPlay(20);
_parent.btnMore.gotoAndPlay(15);
_parent.btnAchievements.gotoAndPlay(20);
_parent.btnUpgrade2.gotoAndPlay(15);
}
};
Symbol 747 MovieClip Frame 1
stop();
Symbol 747 MovieClip Frame 2
gotoAndStop (1);
Symbol 747 MovieClip Frame 3
gotoAndStop (1);
Symbol 748 MovieClip Frame 1
stop();
Symbol 748 MovieClip Frame 2
gotoAndStop (1);
Symbol 748 MovieClip Frame 3
gotoAndStop (1);
Symbol 749 MovieClip Frame 1
stop();
Symbol 749 MovieClip Frame 2
gotoAndStop (1);
Symbol 749 MovieClip Frame 3
gotoAndStop (1);
Symbol 750 MovieClip Frame 1
stop();
Symbol 750 MovieClip Frame 2
gotoAndStop (1);
Symbol 750 MovieClip Frame 3
gotoAndStop (1);
Symbol 751 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 2
gotoAndStop (1);
Symbol 751 MovieClip Frame 3
gotoAndStop (1);
Symbol 752 MovieClip Frame 1
stop();
Symbol 752 MovieClip Frame 2
gotoAndStop (1);
Symbol 752 MovieClip Frame 3
gotoAndStop (1);
Symbol 753 MovieClip Frame 1
stop();
Symbol 753 MovieClip Frame 2
gotoAndStop (1);
Symbol 753 MovieClip Frame 3
gotoAndStop (1);
Symbol 754 MovieClip Frame 1
stop();
Symbol 754 MovieClip Frame 2
gotoAndStop (1);
Symbol 754 MovieClip Frame 3
gotoAndStop (1);
Symbol 755 MovieClip Frame 1
stop();
Symbol 755 MovieClip Frame 2
gotoAndStop (1);
Symbol 755 MovieClip Frame 3
gotoAndStop (1);
Symbol 756 MovieClip Frame 1
stop();
Symbol 756 MovieClip Frame 2
gotoAndStop (1);
Symbol 756 MovieClip Frame 3
gotoAndStop (1);
Symbol 757 MovieClip Frame 1
stop();
Symbol 757 MovieClip Frame 2
gotoAndStop (1);
Symbol 757 MovieClip Frame 3
gotoAndStop (1);
Symbol 758 MovieClip Frame 1
stop();
Symbol 758 MovieClip Frame 2
gotoAndStop (1);
Symbol 758 MovieClip Frame 3
gotoAndStop (1);
Symbol 759 MovieClip Frame 1
stop();
Symbol 759 MovieClip Frame 2
gotoAndStop (1);
Symbol 759 MovieClip Frame 3
gotoAndStop (1);
Symbol 760 MovieClip Frame 1
stop();
Symbol 760 MovieClip Frame 2
gotoAndStop (1);
Symbol 760 MovieClip Frame 3
gotoAndStop (1);
Symbol 761 MovieClip Frame 1
stop();
Symbol 761 MovieClip Frame 2
gotoAndStop (1);
Symbol 761 MovieClip Frame 3
gotoAndStop (1);
Symbol 778 MovieClip Frame 1
function StopAllSound() {
i = 1;
while (i < 16) {
eval (("Perso" + i) + "_RollOver").gotoAndPlay(3);
i++;
}
}
stop();
Symbol 782 MovieClip Frame 1
stop();
Symbol 782 MovieClip Frame 2
stop();
Symbol 783 MovieClip Frame 1
stop();
if (!_global.CheatBeSmall) {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
}
Symbol 783 MovieClip Frame 100
stop();
Symbol 784 MovieClip Frame 1
stop();
if (!_global.CheatBeSmall) {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
}
Symbol 784 MovieClip Frame 100
stop();
Symbol 788 MovieClip Frame 1
stop();
Symbol 788 MovieClip Frame 2
stop();
Symbol 788 MovieClip Frame 3
stop();
Symbol 788 MovieClip Frame 4
stop();
Symbol 788 MovieClip Frame 5
stop();
Symbol 788 MovieClip Frame 6
stop();
Symbol 788 MovieClip Frame 7
stop();
Symbol 788 MovieClip Frame 8
stop();
Symbol 788 MovieClip Frame 9
stop();
Symbol 788 MovieClip Frame 10
stop();
Symbol 788 MovieClip Frame 11
stop();
Symbol 788 MovieClip Frame 12
stop();
Symbol 788 MovieClip Frame 13
stop();
Symbol 788 MovieClip Frame 14
stop();
Symbol 788 MovieClip Frame 15
stop();
Symbol 792 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 2
stop();
Symbol 792 MovieClip Frame 3
stop();
Symbol 792 MovieClip Frame 4
stop();
Symbol 792 MovieClip Frame 5
stop();
Symbol 792 MovieClip Frame 6
stop();
Symbol 792 MovieClip Frame 7
stop();
Symbol 792 MovieClip Frame 8
stop();
Symbol 792 MovieClip Frame 9
stop();
Symbol 792 MovieClip Frame 10
stop();
Symbol 792 MovieClip Frame 11
stop();
Symbol 792 MovieClip Frame 12
stop();
Symbol 792 MovieClip Frame 13
stop();
Symbol 792 MovieClip Frame 14
stop();
Symbol 792 MovieClip Frame 15
stop();
Symbol 794 MovieClip Frame 1
function CalculerRatio() {
Pourcent = Target.Hp / Target.MaxHp;
if (Pourcent >= 0.75) {
return(1);
}
if (Pourcent >= 0.5) {
return(2);
}
if (Pourcent >= 0.25) {
return(3);
}
return(4);
}
function FetchTarget() {
if ((((this.hitTest(_root.Conteneur.Batiments.LWall1.Wall) || (this.hitTest(_root.Conteneur.Batiments.LWall2.Wall))) || (this.hitTest(_root.Conteneur.Batiments.LWall3.Wall))) || (this.hitTest(_root.Conteneur.Batiments.LWall4.Wall))) || (this.hitTest(_root.Conteneur.Batiments.LWall5.Wall))) {
if (this.hitTest(_root.Conteneur.Batiments.LWall1.Wall)) {
return(_root.Conteneur.Batiments.LWall1);
}
if (this.hitTest(_root.Conteneur.Batiments.LWall2.Wall)) {
return(_root.Conteneur.Batiments.LWall2);
}
if (this.hitTest(_root.Conteneur.Batiments.LWall3.Wall)) {
return(_root.Conteneur.Batiments.LWall3);
}
if (this.hitTest(_root.Conteneur.Batiments.LWall4.Wall)) {
return(_root.Conteneur.Batiments.LWall4);
}
if (this.hitTest(_root.Conteneur.Batiments.LWall5.Wall)) {
return(_root.Conteneur.Batiments.LWall5);
}
}
if (((((this.hitTest(_root.Conteneur.Batiments.RWall1.Wall) || (this.hitTest(_root.Conteneur.Batiments.RWall2.Wall))) || (this.hitTest(_root.Conteneur.Batiments.RWall3.Wall))) || (this.hitTest(_root.Conteneur.Batiments.RWall4.Wall))) || (this.hitTest(_root.Conteneur.Batiments.RWall5.Wall))) || (this.hitTest(_root.Conteneur.Batiments.RWall6.Wall))) {
if (this.hitTest(_root.Conteneur.Batiments.RWall1.Wall)) {
return(_root.Conteneur.Batiments.RWall1);
}
if (this.hitTest(_root.Conteneur.Batiments.RWall2.Wall)) {
return(_root.Conteneur.Batiments.RWall2);
}
if (this.hitTest(_root.Conteneur.Batiments.RWall3.Wall)) {
return(_root.Conteneur.Batiments.RWall3);
}
if (this.hitTest(_root.Conteneur.Batiments.RWall4.Wall)) {
return(_root.Conteneur.Batiments.RWall4);
}
if (this.hitTest(_root.Conteneur.Batiments.RWall5.Wall)) {
return(_root.Conteneur.Batiments.RWall5);
}
if (this.hitTest(_root.Conteneur.Batiments.RWall6.Wall)) {
return(_root.Conteneur.Batiments.RWall6);
}
}
}
function FetchMoreTargets() {
Conteur = 0;
tabHitRight = [0, 0, 0, 0, 0, 0, 0];
if (this.hitTest(_root.Conteneur.Batiments.RWall1.Wall)) {
tabHitRight[Conteur] = _root.Conteneur.Batiments.RWall1;
Conteur++;
}
if (this.hitTest(_root.Conteneur.Batiments.RWall2.Wall)) {
tabHitRight[Conteur] = _root.Conteneur.Batiments.RWall2;
Conteur++;
}
if (this.hitTest(_root.Conteneur.Batiments.RWall3.Wall)) {
tabHitRight[Conteur] = _root.Conteneur.Batiments.RWall3;
Conteur++;
}
if (this.hitTest(_root.Conteneur.Batiments.RWall4.Wall)) {
tabHitRight[Conteur] = _root.Conteneur.Batiments.RWall4;
Conteur++;
}
if (this.hitTest(_root.Conteneur.Batiments.RWall5.Wall)) {
tabHitRight[Conteur] = _root.Conteneur.Batiments.RWall5;
Conteur++;
}
if (this.hitTest(_root.Conteneur.Batiments.RWall6.Wall)) {
tabHitRight[Conteur] = _root.Conteneur.Batiments.RWall6;
Conteur++;
}
return(Conteur);
}
Target = undefined;
nbHitRightWall = 0;
tabHitRight = [0, 0, 0, 0, 0, 0, 0];
onEnterFrame = function () {
if (((((this.hitTest(_root.Conteneur.Batiments.RWall1.Wall.HitTest) || (this.hitTest(_root.Conteneur.Batiments.RWall2.Wall.HitTest))) || (this.hitTest(_root.Conteneur.Batiments.RWall3.Wall.HitTest))) || (this.hitTest(_root.Conteneur.Batiments.RWall4.Wall.HitTest))) || (this.hitTest(_root.Conteneur.Batiments.RWall5.Wall.HitTest))) || (this.hitTest(_root.Conteneur.Batiments.RWall6.Wall.HitTest))) {
nbHitRightWall = FetchMoreTargets();
q = 0;
while (q < nbHitRightWall) {
_global.Achievement8Enabled = true;
if (_global.Upgrade < 2) {
Set(("_root.Conteneur.Fatty" + _root.noProjectile) + "._x", 2250);
if (!_global.CheatBouncy) {
_root.speedx = _root.speedx * -1;
} else {
_root.speedx = _root.speedx * -1.3;
_root.speedy = _root.speedy * 1.3;
}
Set(("_root.Conteneur.Fatty" + _root.noProjectile) + "._xscale", eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._xscale") * -1);
randomImpact = random(6) + 1;
ChubbyImpacy = new Sound();
ChubbyImpacy.attachSound("sd_Impact" + randomImpact);
ChubbyImpacy.start();
randomBounce = random(2) + 1;
ChubbyBounce = new Sound();
ChubbyBounce.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_hit") + randomBounce);
ChubbyBounce.start();
if ((_root.tabSelection[_root.noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
i = 0;
while (i < 5) {
_root.Spawn("DebrisAnimationLeft", 4);
i++;
}
_root.RandomPosition();
} else if (((_global.Upgrade == 3) || (_global.Upgrade == 2)) && (tabHitRight[q].Hp > 1)) {
tabHitRight[q].Hp = 1;
tabHitRight[q].Wall.gotoAndStop(4);
i = 0;
while (i < 5) {
_root.Spawn("DebrisAnimationLeft", 4);
i++;
}
Set(("_root.Conteneur.Fatty" + _root.noProjectile) + "._x", 2250);
Set(("_root.Conteneur.Fatty" + _root.noProjectile) + "._xscale", eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._xscale") * -1);
if (!_global.CheatBouncy) {
_root.speedx = _root.speedx * -1;
} else {
_root.speedx = _root.speedx * -1.3;
_root.speedy = _root.speedy * 1.3;
}
randomImpact = random(6) + 1;
ChubbyImpacy = new Sound();
ChubbyImpacy.attachSound("sd_Impact" + randomImpact);
ChubbyImpacy.start();
randomBounce = random(2) + 1;
ChubbyBounce = new Sound();
ChubbyBounce.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_hit") + randomBounce);
ChubbyBounce.start();
if ((_root.tabSelection[_root.noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
_root.RandomPosition();
} else if (((_global.Upgrade == 4) && (tabHitRight[q].Hp >= 1)) || ((tabHitRight[q].Hp == 1) && ((_global.Upgrade == 2) || (_global.Upgrade == 3)))) {
tabHitRight[q].Hp = 0;
tabHitRight[q].Wall.gotoAndStop(5);
i = 0;
while (i < 5) {
_root.Spawn("DebrisAnimation", 4);
i++;
}
Set(("_root.Conteneur.Fatty" + _root.noProjectile) + "._x", 2250);
Set(("_root.Conteneur.Fatty" + _root.noProjectile) + "._xscale", eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._xscale") * -1);
if (!_global.CheatBouncy) {
_root.speedx = _root.speedx * -1;
} else {
_root.speedx = _root.speedx * -1.3;
_root.speedy = _root.speedy * 1.3;
}
randomImpact = random(6) + 1;
ChubbyImpacy = new Sound();
ChubbyImpacy.attachSound("sd_Impact" + randomImpact);
ChubbyImpacy.start();
randomBounce = random(2) + 1;
ChubbyBounce = new Sound();
ChubbyBounce.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_hit") + randomBounce);
ChubbyBounce.start();
if ((_root.tabSelection[_root.noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
if (_global.tabAchievement[4] == 0) {
_root.Achievement.play();
_global.tabAchievement[4] = 1;
_root.CumulTempScore(_global.tabValueAchievement[4]);
_global.nbAchievementErned++;
i = 0;
while (i < 10) {
if (_global.tabNewAchievement[i] == -1) {
_global.tabNewAchievement[i] = 0;
i = 10;
}
i++;
}
}
_global.NbRightWallDestroyed++;
_root.CumulTempScore(_global.ValueRightWall);
_root.RandomPosition();
} else if (tabHitRight[q].Hp == 0) {
}
q++;
}
}
if (eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") > 1700) {
i = 0;
while (i < _global.nbNoob) {
if (this.hitTest(eval ("_root.Conteneur.Batiments.Arrange.Nooblar" + (i + 1)))) {
Target = eval ("_root.Conteneur.Batiments.Arrange.Nooblar" + (i + 1));
if (Target.Hp > 0) {
Set(("_root.Conteneur.Fatty" + _root.noProjectile) + ".Power", eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Power") - Target.Hp);
Target.Hp = 0;
Target.xSpeed = _root.speedx * 0.7;
Target.ySpeed = -4 * (_global.Upgrade + 1);
_root.speedx = _root.speedx * 0.8;
randomBounce = random(2) + 1;
ChubbyBounce = new Sound();
ChubbyBounce.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_hit") + randomBounce);
ChubbyBounce.start();
if ((_root.tabSelection[_root.noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
_global.NbPplKilled++;
randomDeath = random(4) + 1;
Target.Noob.gotoAndPlay("Death" + randomDeath);
if (_global.tabAchievement[2] == 0) {
_root.Achievement.play();
_root.Achievement.Feat.gotoAndStop(3);
_global.tabAchievement[2] = 1;
_global.nbAchievementErned++;
_root.CumulTempScore(_global.tabValueAchievement[2]);
i = 0;
while (i < 10) {
if (_global.tabNewAchievement[i] == -1) {
_global.tabNewAchievement[i] = 2;
i = 10;
}
i++;
}
}
_root.CumulTempScore(60);
_root.RandomPosition();
}
}
i++;
}
}
if ((eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") > 1700) && (eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") < 2400)) {
i = 0;
while (i < _root.nbFood) {
if (this.hitTest(eval ("_root.Conteneur.Batiments.Arrange.Food" + (i + 1)))) {
Target = eval ("_root.Conteneur.Batiments.Arrange.Food" + (i + 1));
if (Target.Hp > 0) {
Target.Hp = 0;
_global.tabFoodCombo[_root.noProjectile - 1]++;
_root.cntFoodDestroyed++;
Target.xSpeed = _root.speedx * 0.7;
Target.ySpeed = _root.speedy * -0.8;
_root.speedx = _root.speedx * 0.9;
if ((_root.tabSelection[noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
if (_root.cntFoodDestroyed >= _root.nbFood) {
if (_global.tabAchievement[6] == 0) {
_root.Achievement.play();
_root.Achievement.Feat.gotoAndStop(7);
_global.tabAchievement[6] = 1;
_global.nbAchievementErned++;
_root.CumulTempScore(_global.tabValueAchievement[6]);
i = 0;
while (i < 10) {
if (_global.tabNewAchievement[i] == -1) {
_global.tabNewAchievement[i] = 6;
i = 10;
}
i++;
}
}
}
_global.tabDishDestroyed[DishType]++;
_root.CumulTempScore(_global.FoodValue);
}
}
i++;
}
}
if ((eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") > 1700) && (eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") < 2400)) {
i = 0;
while (i < _root.nbTable) {
if (this.hitTest(eval ("_root.Conteneur.Batiments.Arrange.Table" + (i + 1)))) {
Target = eval ("_root.Conteneur.Batiments.Arrange.Table" + (i + 1));
if (Target.Hp > 0) {
Target.Hp = 0;
Target.xSpeed = _root.speedx * 0.7;
Target.ySpeed = _root.speedy * -1.2;
_root.speedx = _root.speedx * 0.85;
_global.tabFoodCombo[_root.noProjectile - 1]++;
_global.tabDishDestroyed[DishType]++;
randomBounce = random(2) + 1;
ChubbyBounce = new Sound();
ChubbyBounce.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_hit") + randomBounce);
ChubbyBounce.start();
randomBreak = random(8) + 1;
BrokenTable = new Sound();
BrokenTable.attachSound("sd_Impact" + randomBreak);
BrokenTable.start();
if ((_root.tabSelection[noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
i = 0;
while (i < 6) {
_root.Spawn("DebrisAnimation", 2);
i++;
}
_root.CumulTempScore(_global.FoodValue);
_root.RandomPosition();
}
}
i++;
}
}
if ((eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") > 1700) && (eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") < 2400)) {
i = 0;
while (i < _root.nbRoof) {
if (this.hitTest(eval ("_root.Conteneur.Batiments.Arrange.Roof_" + (i + 1)))) {
Target = eval ("_root.Conteneur.Batiments.Arrange.Roof_" + (i + 1));
if (Target.Hp > 0) {
Target.Hp = 0;
_global.tabFoodCombo[_root.noProjectile - 1]++;
_root.cntFoodDestroyed++;
_global.tabDishDestroyed[DishType]++;
eval (("_root.Conteneur.Batiments.Arrange.Roof_" + (i + 1)) + ".Item").gotoAndStop(2);
Target.xSpeed = _root.speedx * 0.8;
Target.ySpeed = _root.speedy * -0.8;
_root.speedx = _root.speedx * 0.9;
randomBounce = random(2) + 1;
ChubbyBounce = new Sound();
ChubbyBounce.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_hit") + randomBounce);
ChubbyBounce.start();
randomBreak = random(8) + 1;
BrokenTable = new Sound();
BrokenTable.attachSound("sd_Impact" + randomBreak);
BrokenTable.start();
if ((_root.tabSelection[noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
i = 0;
while (i < 6) {
_root.Spawn("DebrisAnimation", 5);
i++;
}
_global.tabFoodCombo[_root.noProjectile - 1]++;
_root.CumulTempScore(_global.FoodValue);
_root.RandomPosition();
}
}
i++;
}
}
if (eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") > 2400) {
i = 0;
while (i < _root.nbCarz) {
if (this.hitTest(eval ("_root.Conteneur.Batiments.Arrange.Car_" + (i + 1)))) {
Target = eval ("_root.Conteneur.Batiments.Arrange.Car_" + (i + 1));
if (Target.Hp > 0) {
Target.Hp = 0;
eval (("_root.Conteneur.Batiments.Arrange.Car_" + (i + 1)) + ".Vehicule.Car").gotoAndStop(2);
_root.speedx = _root.speedx * 0.8;
randomBounce = random(2) + 1;
ChubbyBounce = new Sound();
ChubbyBounce.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_hit") + randomBounce);
ChubbyBounce.start();
randomBreak = random(9) + 1;
BrokenTable = new Sound();
BrokenTable.attachSound("sd_Impact" + randomBreak);
BrokenTable.start();
if ((_root.tabSelection[noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
randomAlarme = random(3);
if (randomAlarme == 2) {
_root.SoundEffects.Alarme_Char.gotoAndPlay(2);
}
i = 0;
while (i < 6) {
_root.Spawn("DebrisAnimation", 5);
i++;
}
_global.NbRightWallDestroyed++;
_root.CumulTempScore(_global.ValueRightWall);
_root.RandomPosition();
}
}
i++;
}
}
if (eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") > 2400) {
if (this.hitTest(_root.Conteneur.Batiments.Arrange.Flag)) {
Target = _root.Conteneur.Batiments.Arrange.Flag;
if (Target.Hp > 0) {
Target.Hp = 0;
_root.Conteneur.Batiments.Arrange.Flag.Flag.gotoAndStop(2);
_root.speedx = _root.speedx * 0.8;
randomBounce = random(2) + 1;
ChubbyBounce = new Sound();
ChubbyBounce.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_hit") + randomBounce);
ChubbyBounce.start();
randomBreak = random(8) + 1;
BrokenTable = new Sound();
BrokenTable.attachSound("sd_Impact" + randomBreak);
BrokenTable.start();
if ((_root.tabSelection[noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
i = 0;
while (i < 6) {
_root.Spawn("DebrisAnimation", 5);
i++;
}
_global.tabFoodCombo[_root.noProjectile - 1]++;
_root.CumulTempScore(_global.FoodValue);
_root.RandomPosition();
}
}
}
};
Symbol 795 MovieClip Frame 1
stop();
if (!_global.CheatBeSmall) {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
}
Symbol 795 MovieClip Frame 100
stop();
Symbol 796 MovieClip Frame 1
stop();
if (!_global.CheatBeSmall) {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
}
Symbol 796 MovieClip Frame 100
stop();
Symbol 797 MovieClip Frame 1
stop();
if (!_global.CheatBeSmall) {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
}
Symbol 797 MovieClip Frame 100
stop();
Symbol 798 MovieClip Frame 1
stop();
if (!_global.CheatBeSmall) {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
}
Symbol 798 MovieClip Frame 100
stop();
Symbol 799 MovieClip Frame 1
stop();
if (!_global.CheatBeSmall) {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
}
Symbol 799 MovieClip Frame 100
stop();
Symbol 800 MovieClip Frame 1
stop();
if (!_global.CheatBeSmall) {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
}
Symbol 800 MovieClip Frame 100
stop();
Symbol 801 MovieClip Frame 1
stop();
if (!_global.CheatBeSmall) {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
}
Symbol 801 MovieClip Frame 100
stop();
Symbol 802 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 2
stop();
Symbol 802 MovieClip Frame 3
stop();
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_1").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_2").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_3").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_4").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_5").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_6").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Progress.b_1.head.gotoAndStop(2);
Progress.b_7.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Symbol 802 MovieClip Frame 4
stop();
Progress.b_1.head.gotoAndStop(4);
Progress.b_2.gotoAndPlay(2);
Progress.b_2.boxx.body.gotoAndStop(2);
Symbol 802 MovieClip Frame 5
stop();
Progress.b_1.head.gotoAndStop(3);
Progress.b_2.play();
Progress.b_2.body.boxx.gotoAndStop(1);
Symbol 802 MovieClip Frame 6
stop();
Progress.b_2.gotoAndPlay(2);
Symbol 802 MovieClip Frame 7
stop();
Progress.b_2.gotoAndPlay(2);
Symbol 802 MovieClip Frame 8
stop();
Progress.b_2.gotoAndPlay(2);
Symbol 802 MovieClip Frame 9
stop();
Progress.b_2.gotoAndPlay(2);
Symbol 802 MovieClip Frame 10
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_1").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_2").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_3").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_4").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_5").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_6").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Progress.b_1.head.gotoAndStop(2);
Progress.b_7.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Symbol 802 MovieClip Frame 22
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_1").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_2").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_3").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_4").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_5").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_6").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Progress.b_1.head.gotoAndStop(2);
Progress.b_7.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Symbol 802 MovieClip Frame 34
gotoAndStop ("FLY");
Symbol 803 MovieClip Frame 1
canMove = false;
Bouncing = true;
Power = (_global.tabPoid[_global.Upgrade] * 0.8) * (1 + (_global.NiveauCatapult * 0.15));
MyName = _name;
MyNumber = MyName.substring(5, 6);
onEnterFrame = function () {
if (MyNumber == _root.noProjectile) {
if (_x > 1720) {
if (this.getDepth() > eval ("_root.Conteneur.HideOut" + _root.noProjectile).getDepth()) {
this.swapDepths(eval ("_root.Conteneur.HideOut" + _root.noProjectile));
}
_root.Conteneur.Front.gotoAndStop(3);
_root.Conteneur.PlatringPlatre.gotoAndStop(2);
} else {
_root.Conteneur.Front.gotoAndStop(2);
_root.Conteneur.PlatringPlatre.gotoAndStop(3);
}
}
if ((_global.Action == "Fire") && (MyNumber == _root.noProjectile)) {
_x = _parent.Start._x;
_y = _parent.Start._y;
}
if (canMove && (_y < 450)) {
_x = (_x + _root.speedx);
_y = (_y + _root.speedy);
if (_root.speedx != 0) {
if (!_global.CheatSlowBro) {
_root.speedx = _root.speedx * 0.98;
} else {
_root.speedx = _root.speedx * 0.99;
}
}
} else if (canMove) {
_root.speedx = 0;
}
if ((((_root.speedx > -10) && (_root.speedx < 10)) && (canMove)) && (Bouncing)) {
Bouncing = false;
}
if ((((_y >= 440) && (Bouncing)) && (MyNumber == _root.noProjectile)) && (canMove)) {
if (!_global.CheatBouncy) {
_root.speedy = _root.speedy * -1;
} else {
_root.speedx = _root.speedx * 1.3;
_root.speedy = _root.speedy * -1.3;
}
_y = 438;
_root.RandomPosition();
randomBounce = random(2) + 1;
ChubbyBounce = new Sound();
ChubbyBounce.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_hit") + randomBounce);
ChubbyBounce.start();
if (!_global.CheatSlowBro) {
if ((_root.speedy > -10) && (_root.speedy < 10)) {
Bouncing = false;
}
} else if ((_root.speedy > -5) && (_root.speedy < 5)) {
Bouncing = false;
}
}
if (((canMove && (_y >= 420)) && (!Bouncing)) && (!_root.Smaking)) {
canMove = false;
Chobbie.gotoAndStop("FELT");
Chobbie.Progress.b_1.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Chobbie.Progress.b_2.gotoAndPlay(2);
Chobbie.Progress.b_2.boxx.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Chobbie.Progress.b_3.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Chobbie.Progress.b_4.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Chobbie.Progress.b_5.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Chobbie.Progress.b_6.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.ShakeNumber = ((25 * _global.Upgrade) + 25) * 0.7;
_root.SoundEffects.StopAllSound();
randomDeath = random(2) + 1;
ChubbyDie = new Sound();
ChubbyDie.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_die") + randomDeath);
ChubbyDie.start();
if (_x > 2400) {
if (_global.tabAchievement[9] == 0) {
_root.Achievement.play();
_root.Achievement.Feat.gotoAndStop(10);
_global.tabAchievement[9] = 1;
_global.nbAchievementErned++;
_root.CumulTempScore(_global.tabValueAchievement[9]);
i = 0;
while (i < 10) {
if (_global.tabNewAchievement[i] == -1) {
_global.tabNewAchievement[i] = 9;
i = 10;
}
i++;
}
}
}
if ((_x < 1600) && (_global.Achievement8Enabled)) {
if (_global.tabAchievement[8] == 0) {
_root.Achievement.play();
_root.Achievement.Feat.gotoAndStop(9);
_global.tabAchievement[8] = 1;
_global.nbAchievementErned++;
_root.CumulTempScore(_global.tabValueAchievement[8]);
i = 0;
while (i < 10) {
if (_global.tabNewAchievement[i] == -1) {
_global.tabNewAchievement[i] = 8;
i = 10;
}
i++;
}
}
}
if ((_x > 1800) && (_x < 2600)) {
if (_root.cntNbInside >= 4) {
if (_global.tabAchievement[5] == 0) {
_root.Achievement.play();
_global.tabAchievement[5] = 1;
_global.nbAchievementErned++;
_root.CumulTempScore(_global.tabValueAchievement[5]);
i = 0;
while (i < 10) {
if (_global.tabNewAchievement[i] == -1) {
_global.tabNewAchievement[i] = 5;
i = 10;
}
i++;
}
}
}
}
_root.Timer3.play();
} else if ((((canMove && (_y >= 440)) && (_root.speedx > -1)) && (_root.speedx < 1)) && (_root.Smaking)) {
canMove = false;
Chobbie.gotoAndStop("FELT");
Chobbie.Progress.b_1.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Chobbie.Progress.b_2.gotoAndPlay(2);
Chobbie.Progress.b_2.boxx.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Chobbie.Progress.b_3.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Chobbie.Progress.b_4.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Chobbie.Progress.b_5.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Chobbie.Progress.b_6.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.ShakeNumber = ((25 * _global.Upgrade) + 25) * 0.7;
_root.Timer3.play();
}
if (_root.speedy < -0.5) {
if (!_global.CheatSlowBro) {
_root.speedy = _root.speedy * 0.98;
} else {
_root.speedy = _root.speedy * 0.99;
}
}
if ((_root.speedy >= -0.5) && (_root.speedy <= 0.5)) {
_root.speedy = 1;
}
if (!_root.Smaking) {
if (_root.speedy > 0.5) {
if (_root.speedy < 25) {
if (!_global.CheatSlowBro) {
_root.speedy = _root.speedy * 1.02;
} else {
_root.speedy = _root.speedy * 1.01;
}
}
}
} else if (_root.speedy > 0.5) {
if (_root.speedy < 25) {
_root.speedy = _root.speedy * 1.005;
}
}
};
Symbol 804 MovieClip Frame 1
stop();
NomChobbie = _parent._name;
NumeroChobbie = NomChobbie.substring(7, 9);
GoThere = NumeroChobbie;
Fatty.Chobbie.Progress.b_1.gotoAndStop(GoThere);
Fatty.Chobbie.Progress.b_2.boxx.gotoAndStop(GoThere);
Fatty.Chobbie.Progress.b_3.gotoAndStop(GoThere);
Fatty.Chobbie.Progress.b_4.gotoAndStop(GoThere);
Fatty.Chobbie.Progress.b_5.gotoAndStop(GoThere);
Fatty.Chobbie.Progress.b_6.gotoAndStop(GoThere);
Ratio = (((_global.Upgrade - 4) * -1) * 15) + 40;
trace(Ratio);
Fatty._xscale = Ratio;
Fatty._yscale = Ratio;
Fatty._x = Fatty._x + (_global.Upgrade * 5);
Symbol 807 MovieClip Frame 1
stop();
Symbol 807 MovieClip Frame 2
stop();
Symbol 809 Button
on (release) {
act = 2;
}
on (rollOver) {
NomChobbie = _name;
NumeroChobbie = NomChobbie.substring(7, 9);
act = 3;
}
Symbol 819 Button
on (release) {
_parent.hideTooltip();
}
on (rollOver) {
act = 4;
}
on (rollOut) {
act = 1;
_parent.hideTooltip();
}
Symbol 820 MovieClip Frame 1
stop();
NomChobbie = _name;
NumeroChobbie = NomChobbie.substring(7, 9);
if ((_global.tabAmmoSelection[NumeroChobbie - 1] == 2) && (_global.TotalScore >= _global.tabUnlock[NumeroChobbie - 1])) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 3;
}
onEnterFrame = function () {
if (_global.tabAmmoSelection[NumeroChobbie - 1] == 1) {
Chk.gotoAndStop(2);
} else if (_global.tabAmmoSelection[NumeroChobbie - 1] == 2) {
gotoAndStop (3);
} else if (_global.tabAmmoSelection[NumeroChobbie - 1] == 3) {
gotoAndStop (2);
} else if (_global.tabAmmoSelection[NumeroChobbie - 1] == 0) {
Chk.gotoAndStop(1);
}
};
Symbol 820 MovieClip Frame 2
stop();
Symbol 820 MovieClip Frame 3
stop();
Symbol 822 MovieClip Frame 1
stop();
Symbol 822 MovieClip Frame 80
if (_global.Action == "FirstSrart") {
_root.gotoAndStop("GAME");
} else {
_parent.gotoAndStop("SELECTION");
}
Symbol 831 MovieClip Frame 1
this.ratio = 0;
dragger.onPress = function () {
this.startDrag(true, 0, 0, line._width, 0);
this.onEnterFrame = function () {
ratio = Math.round((this._x * 100) / line._width);
_root.volume = ratio;
};
};
dragger.onRelease = (dragger.onReleaseOutside = function () {
this.stopDrag();
MenuTrack = new Sound();
MenuTrack.attachSound("track_Menu");
MenuTrack.stop();
MenuTrack.setVolume(_root.volume);
MenuTrack.start(0, 9999);
});
Symbol 836 Button
on (release) {
act = 2;
_parent.hideTooltip();
}
on (rollOver) {
act = 3;
}
on (rollOut) {
act = 1;
_parent.hideTooltip();
}
Symbol 837 MovieClip Frame 1
stop();
Symbol 840 MovieClip Frame 1
stop();
Symbol 840 MovieClip Frame 2
stop();
Symbol 842 MovieClip Frame 1
stop();
Symbol 842 MovieClip Frame 2
stop();
Symbol 844 MovieClip Frame 1
stop();
Symbol 844 MovieClip Frame 2
stop();
Symbol 846 MovieClip Frame 1
stop();
Symbol 846 MovieClip Frame 2
stop();
Symbol 848 MovieClip Frame 1
stop();
Symbol 848 MovieClip Frame 2
stop();
Symbol 850 MovieClip Frame 1
stop();
Symbol 850 MovieClip Frame 2
stop();
Symbol 852 MovieClip Frame 1
stop();
Symbol 852 MovieClip Frame 2
stop();
Symbol 854 MovieClip Frame 1
stop();
Symbol 854 MovieClip Frame 2
stop();
Symbol 856 MovieClip Frame 1
stop();
Symbol 856 MovieClip Frame 2
stop();
Symbol 858 MovieClip Frame 1
stop();
Symbol 858 MovieClip Frame 2
stop();
Symbol 859 MovieClip Frame 1
onEnterFrame = function () {
if (_parent._parent.CheatInput.text == "") {
_visible = true;
} else {
_visible = false;
}
};
Symbol 863 MovieClip Frame 1
stop();
Symbol 870 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
gotoAndPlay (11);
}
Symbol 871 MovieClip Frame 1
stop();
Symbol 871 MovieClip Frame 2
stop();
Symbol 871 MovieClip Frame 10
stop();
Symbol 871 MovieClip Frame 20
gotoAndStop (2);
Symbol 876 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
gotoAndPlay (11);
}
Symbol 877 MovieClip Frame 1
stop();
Symbol 877 MovieClip Frame 2
stop();
Symbol 877 MovieClip Frame 10
stop();
Symbol 877 MovieClip Frame 20
gotoAndStop (2);
Symbol 881 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
gotoAndPlay (11);
}
Symbol 882 MovieClip Frame 1
stop();
Symbol 882 MovieClip Frame 2
stop();
Symbol 882 MovieClip Frame 10
stop();
Symbol 882 MovieClip Frame 20
gotoAndStop (2);
Symbol 886 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
gotoAndPlay (11);
}
Symbol 887 MovieClip Frame 1
stop();
Symbol 887 MovieClip Frame 2
stop();
Symbol 887 MovieClip Frame 10
stop();
Symbol 887 MovieClip Frame 20
gotoAndStop (2);
Symbol 891 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
gotoAndPlay (11);
}
Symbol 892 MovieClip Frame 1
stop();
Symbol 892 MovieClip Frame 2
stop();
Symbol 892 MovieClip Frame 10
stop();
Symbol 892 MovieClip Frame 20
gotoAndStop (2);
Symbol 896 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
gotoAndPlay (11);
}
Symbol 897 MovieClip Frame 1
stop();
Symbol 897 MovieClip Frame 2
stop();
Symbol 897 MovieClip Frame 10
stop();
Symbol 897 MovieClip Frame 20
gotoAndStop (2);
Symbol 901 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
gotoAndPlay (11);
}
Symbol 902 MovieClip Frame 1
stop();
Symbol 902 MovieClip Frame 2
stop();
Symbol 902 MovieClip Frame 10
stop();
Symbol 902 MovieClip Frame 20
gotoAndStop (2);
Symbol 906 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
gotoAndPlay (11);
}
Symbol 907 MovieClip Frame 1
stop();
Symbol 907 MovieClip Frame 2
stop();
Symbol 907 MovieClip Frame 10
stop();
Symbol 907 MovieClip Frame 20
gotoAndStop (2);
Symbol 911 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
gotoAndPlay (11);
}
Symbol 912 MovieClip Frame 1
stop();
Symbol 912 MovieClip Frame 2
stop();
Symbol 912 MovieClip Frame 10
stop();
Symbol 912 MovieClip Frame 20
gotoAndStop (2);
Symbol 916 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
gotoAndPlay (11);
}
Symbol 917 MovieClip Frame 1
stop();
Symbol 917 MovieClip Frame 2
stop();
Symbol 917 MovieClip Frame 10
stop();
Symbol 917 MovieClip Frame 20
gotoAndStop (2);
Symbol 921 MovieClip Frame 629
stop();
_parent.gotoAndStop("Ending");
Symbol 923 MovieClip Frame 1
function showTooltip(_msg_head, _msg_body) {
tooltip_mc = pathToRoot.attachMovie("tooltip", "tooltip" + pathToRoot.getNextHighestDepth(), pathToRoot.getNextHighestDepth());
tooltip_mc.head_txt.text = _msg_head;
tooltip_mc.body_txt.text = _msg_body;
tooltip_mc.head_txt.autoSize = true;
tooltip_mc.body_txt.autoSize = true;
tooltip_mc.bg_mc._width = 150;
tooltip_mc.head_txt._width = 130;
tooltip_mc.body_txt._width = 130;
var _local2 = (tooltip_mc.head_txt._height + tooltip_mc.body_txt._height) + 10;
var _local3 = tooltip_mc.body_txt._width + 10;
tooltip_mc.bg_mc._height = _local2;
tooltip_mc._x = -tooltip_mc._width;
tooltip_mc._y = -tooltip_mc._height;
tooltip_mc.onEnterFrame = function () {
this.tempX = pathToRoot._xmouse + paddingX;
this.tempY = pathToRoot._ymouse + paddingY;
if ((this.tempX + tooltip_mc._width) > gameWidth) {
this._x = this.tempX - tooltip_mc._width;
} else {
this._x = this.tempX;
}
if ((this.tempY + tooltip_mc._height) > gameHeight) {
this._y = (this.tempY - tooltip_mc._height) - paddingY;
} else {
this._y = this.tempY;
}
};
}
function hideTooltip() {
delete tooltip_mc.onEnterFrame;
removeMovieClip(tooltip_mc);
}
stop();
if ((_global.Action != "LevelDone") && (_global.Action != "FirstSrart")) {
_global.Action = "StatsDone";
}
btnOption.gotoAndPlay(14);
btnCheat.gotoAndPlay(14);
btnExtras.gotoAndPlay(14);
btnMore.gotoAndPlay(14);
btnAchievements.gotoAndPlay(14);
btnUpgrade2.gotoAndPlay(14);
btnGo.Text.strText = "Go";
TotalDamage = 0;
nbDestruction = 0;
nbDestruction2 = 0;
nbKills = 0;
WaveTotal = 0;
noElement = 0;
nbAchievement = 0;
AchBonus = 0;
onEnterFrame = function () {
TxtDamage.Text.strText = TotalDamage;
TxtKills.Text.strText = nbKills;
TxtBonus.Text.strText = AchBonus;
TxtTotal.Text.strText = WaveTotal;
btnAchievements.Text.strText = "Achievements";
btnUpgrade2.Text.strText = "Upgrades";
btnOption.Text.strText = "Options";
btnCheat.Text.strText = "Cheats";
btnExtras.Text.strText = "Extras";
btnMore.Text.strText = "More Games";
};
var pathToRoot = _root;
var tooltip_mc;
var paddingX = 0;
var paddingY = 20;
var gameWidth = 800;
var gameHeight = 440;
Instance of Symbol 249 MovieClip "btnOption" in Symbol 923 MovieClip Frame 1
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_global.Action = "Options";
_parent.gotoAndStop("OPTIONS");
}
}
Instance of Symbol 249 MovieClip "btnCheat" in Symbol 923 MovieClip Frame 1
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.gotoAndStop("CHEATS");
}
}
Instance of Symbol 249 MovieClip "btnExtras" in Symbol 923 MovieClip Frame 1
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.gotoAndStop("EXTRAS");
}
}
Instance of Symbol 249 MovieClip "btnMore" in Symbol 923 MovieClip Frame 1
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.gamesfree.ca/", "_blank");
}
}
Instance of Symbol 720 MovieClip "btnGo" in Symbol 923 MovieClip Frame 1
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_global.Action = "SELECTION";
_parent.gotoAndStop("SELECTION");
}
}
Instance of Symbol 249 MovieClip "btnUpgrade2" in Symbol 923 MovieClip Frame 1
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
if ((_global.Upgrade < 4) && (_global.Score >= _global.tabUpgrade[_global.Upgrade])) {
_global.Action = "Upgrade";
_root.gotoAndStop("UPGRADES");
}
}
if (((act == 3) && (_global.Upgrade < 4)) && (_global.Score < _global.tabUpgrade[_global.Upgrade])) {
pointsNeeded = _global.tabUpgrade[_global.Upgrade] - _global.Score;
_parent.showTooltip("Unlock", ("Next upgrade in " + pointsNeeded) + " points");
act = 1;
}
}
Instance of Symbol 249 MovieClip "btnAchievements" in Symbol 923 MovieClip Frame 1
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_global.Action = "Achievements";
_parent.gotoAndStop("ACHIEVEMENT");
}
}
Symbol 923 MovieClip Frame 2
function showTooltip(_msg_head, _msg_body) {
tooltip_mc = pathToRoot.attachMovie("tooltip", "tooltip" + pathToRoot.getNextHighestDepth(), pathToRoot.getNextHighestDepth());
tooltip_mc.head_txt.text = _msg_head;
tooltip_mc.body_txt.text = _msg_body;
tooltip_mc.head_txt.autoSize = true;
tooltip_mc.body_txt.autoSize = true;
tooltip_mc.bg_mc._width = 150;
tooltip_mc.head_txt._width = 130;
tooltip_mc.body_txt._width = 130;
var _local2 = (tooltip_mc.head_txt._height + tooltip_mc.body_txt._height) + 10;
var _local3 = tooltip_mc.body_txt._width + 10;
tooltip_mc.bg_mc._height = _local2;
tooltip_mc._x = -tooltip_mc._width;
tooltip_mc._y = -tooltip_mc._height;
tooltip_mc.onEnterFrame = function () {
this.tempX = pathToRoot._xmouse + paddingX;
this.tempY = pathToRoot._ymouse + paddingY;
if ((this.tempX + tooltip_mc._width) > gameWidth) {
this._x = this.tempX - tooltip_mc._width;
} else {
this._x = this.tempX;
}
if ((this.tempY + tooltip_mc._height) > gameHeight) {
this._y = (this.tempY - tooltip_mc._height) - paddingY;
} else {
this._y = this.tempY;
}
};
}
function hideTooltip() {
delete tooltip_mc.onEnterFrame;
removeMovieClip(tooltip_mc);
}
stop();
btnCustom.Text.strText = "Select your";
btnCustom.Text2.strText = "Chubby";
btnBack.Text.strText = " Back";
onEnterFrame = function () {
btnStart.Text.strText = " Start";
};
_root.SaveGame();
var pathToRoot = _root;
var tooltip_mc;
var paddingX = 0;
var paddingY = 20;
var gameWidth = 800;
var gameHeight = 440;
Instance of Symbol 249 MovieClip "btnStart" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_global.NbAmmoSelected != 6) {
gotoAndStop (14);
}
if (act == 2) {
act = 1;
_global.NbWallDestroyed = 0;
_global.NbPplKilled = 0;
_global.tabFoodCombo = [0, 0, 0, 0, 0, 0];
_global.nbAchievementErned = 0;
_global.tabNewAchievement = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1];
if ((_global.NiveauCatapult == 0) && (_global.Upgrade < 1)) {
_global.Action = "Wait";
_root.gotoAndStop("GAME");
} else if ((_global.NiveauCatapult == 0) && (_global.Upgrade >= 1)) {
_global.Action = "Wait";
_root.gotoAndStop("BROKEN1");
} else if ((_global.NiveauCatapult == 1) && (_global.Upgrade < 2)) {
_global.Action = "Wait";
_root.gotoAndStop("GAME");
} else if ((_global.NiveauCatapult == 1) && (_global.Upgrade >= 2)) {
_global.Action = "Wait";
_root.gotoAndStop("BROKEN2");
} else if ((_global.NiveauCatapult == 2) && (_global.Upgrade < 3)) {
_global.Action = "Wait";
_root.gotoAndStop("GAME");
} else if ((_global.NiveauCatapult == 2) && (_global.Upgrade >= 3)) {
_global.Action = "Wait";
_root.gotoAndStop("BROKEN3");
} else if (_global.NiveauCatapult == 3) {
_global.Action = "Wait";
_root.gotoAndStop("GAME");
}
}
}
Instance of Symbol 249 MovieClip "btnBack" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_global.Action = "StatsDone";
_parent.gotoAndStop("STATS");
}
}
Instance of Symbol 820 MovieClip "Chobbie1" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Need " + pointsNeeded) + " more points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie2" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Need " + pointsNeeded) + " more points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie3" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Need " + pointsNeeded) + " more points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie4" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Unlock in " + pointsNeeded) + " points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie5" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Need " + pointsNeeded) + " more points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie6" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Need " + pointsNeeded) + " more points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie7" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Unlock in " + pointsNeeded) + " points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie8" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Unlock in " + pointsNeeded) + " points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie9" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Unlock in " + pointsNeeded) + " points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie10" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Unlock in " + pointsNeeded) + " points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie11" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Unlock in " + pointsNeeded) + " points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie12" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Unlock in " + pointsNeeded) + " points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie13" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Unlock in " + pointsNeeded) + " points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie14" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Unlock in " + pointsNeeded) + " points");
act = 1;
}
}
Instance of Symbol 820 MovieClip "Chobbie15" in Symbol 923 MovieClip Frame 2
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
} else if ((_global.NbAmmoSelected == 6) && (_global.tabAmmoSelection[NumeroChobbie - 1] == 1)) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
if ((_global.NbAmmoSelected == 6) && (_parent.btnStart._currentFrame == 14)) {
_parent.btnStart.gotoAndPlay(30);
} else if (_global.NbAmmoSelected != 6) {
_parent.btnStart.gotoAndStop(14);
}
}
if (act == 4) {
pointsNeeded = _global.tabUnlock[NumeroChobbie - 1] - _global.TotalScore;
_parent.showTooltip("Unlock", ("Unlock in " + pointsNeeded) + " points");
act = 1;
}
}
Symbol 923 MovieClip Frame 3
stop();
btnBack.Text.strText = "Back";
btnStart.Text.strText = "Start";
_global.NbAmmoSelected = 0;
i = 0;
while (i < 15) {
if (_global.tabAmmoSelection[i] != 2) {
_global.tabAmmoSelection[i] = 0;
}
i++;
}
Instance of Symbol 820 MovieClip "Chobbie1" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie2" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie3" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie4" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie5" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie6" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie7" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie8" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie9" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie10" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie11" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie12" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie13" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie14" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Instance of Symbol 820 MovieClip "Chobbie15" in Symbol 923 MovieClip Frame 3
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
NomChobbie = this._name;
NumeroChobbie = NomChobbie.substring(7, 9);
if (_global.NbAmmoSelected < 6) {
if (_global.tabAmmoSelection[NumeroChobbie - 1] != 1) {
_global.tabAmmoSelection[NumeroChobbie - 1] = 1;
_global.NbAmmoSelected++;
_root.SubMenu.SoundEffects.StopAllSound();
eval (("_root.SubMenu.SoundEffects.Perso" + NumeroChobbie) + "_RollOver").gotoAndPlay(2);
} else {
_global.tabAmmoSelection[NumeroChobbie - 1] = 0;
_global.NbAmmoSelected--;
}
}
if (_global.NbAmmoSelected == 6) {
_parent.TimerGoing.play();
}
}
}
Symbol 923 MovieClip Frame 4
stop();
btnLow.Text.strText = "Low";
btnMedium.Text.strText = "Medium";
btnHigh.Text.strText = "High";
btnBack.Text.strText = "Back";
Instance of Symbol 249 MovieClip "btnBack" in Symbol 923 MovieClip Frame 4
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_global.Action = "StatsDone";
_parent.gotoAndStop("STATS");
}
}
Instance of Symbol 249 MovieClip "btnLow" in Symbol 923 MovieClip Frame 4
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_root._quality = "low";
}
}
Instance of Symbol 249 MovieClip "btnMedium" in Symbol 923 MovieClip Frame 4
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_root._quality = "medium";
}
}
Instance of Symbol 249 MovieClip "btnHigh" in Symbol 923 MovieClip Frame 4
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_root._quality = "high";
}
}
Symbol 923 MovieClip Frame 5
function showTooltip(_msg_head, _msg_body) {
tooltip_mc = pathToRoot.attachMovie("tooltip", "tooltip" + pathToRoot.getNextHighestDepth(), pathToRoot.getNextHighestDepth());
tooltip_mc.head_txt.text = _msg_head;
tooltip_mc.body_txt.text = _msg_body;
tooltip_mc.head_txt.autoSize = true;
tooltip_mc.body_txt.autoSize = true;
tooltip_mc.bg_mc._width = 150;
tooltip_mc.head_txt._width = 130;
tooltip_mc.body_txt._width = 130;
var _local2 = (tooltip_mc.head_txt._height + tooltip_mc.body_txt._height) + 10;
var _local3 = tooltip_mc.body_txt._width + 10;
tooltip_mc.bg_mc._height = _local2;
tooltip_mc._x = -tooltip_mc._width;
tooltip_mc._y = -tooltip_mc._height;
tooltip_mc.onEnterFrame = function () {
this.tempX = pathToRoot._xmouse + paddingX;
this.tempY = pathToRoot._ymouse + paddingY;
if ((this.tempX + tooltip_mc._width) > gameWidth) {
this._x = this.tempX - tooltip_mc._width;
} else {
this._x = this.tempX;
}
if ((this.tempY + tooltip_mc._height) > gameHeight) {
this._y = (this.tempY - tooltip_mc._height) - paddingY;
} else {
this._y = this.tempY;
}
};
}
function hideTooltip() {
delete tooltip_mc.onEnterFrame;
removeMovieClip(tooltip_mc);
}
stop();
btnBack.Text.strText = "Back";
var pathToRoot = _root;
var tooltip_mc;
var paddingX = 0;
var paddingY = 20;
var gameWidth = 800;
var gameHeight = 440;
Instance of Symbol 837 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
}
if (act == 3) {
act = 1;
_parent.showTooltip("Blow a hole", "Break the first wall");
}
}
Instance of Symbol 837 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
}
if (act == 3) {
act = 1;
_parent.showTooltip("Flippin table", "Flip a table to the roof");
}
}
Instance of Symbol 837 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
}
if (act == 3) {
act = 1;
_parent.showTooltip("Murderous hunger", "Squash a customer");
}
}
Instance of Symbol 837 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
}
if (act == 3) {
act = 1;
_parent.showTooltip("I am no fat, I have big bones", "Break the catapult");
}
}
Instance of Symbol 837 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
}
if (act == 3) {
act = 1;
_parent.showTooltip("Seeing trough", "Destroy the inside wall");
}
}
Instance of Symbol 837 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
}
if (act == 3) {
act = 1;
_parent.showTooltip("Party time", "Get 5 chubbies inside");
}
}
Instance of Symbol 837 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
}
if (act == 3) {
act = 1;
_parent.showTooltip("All of your foods are belong to us", "Destroy all the food inside");
}
}
Instance of Symbol 837 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
}
if (act == 3) {
act = 1;
_parent.showTooltip("Is the gate big enoft?", "Destroy the front wall");
}
}
Instance of Symbol 837 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
}
if (act == 3) {
act = 1;
_parent.showTooltip("Take out", "Bounce back outside");
}
}
Instance of Symbol 837 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
}
if (act == 3) {
act = 1;
_parent.showTooltip("Getting through", "Go through the building");
}
}
Instance of Symbol 840 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_global.tabAchievement[1] == 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 842 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_global.tabAchievement[2] == 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 844 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_global.tabAchievement[3] == 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 846 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_global.tabAchievement[4] == 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 848 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_global.tabAchievement[5] == 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 850 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_global.tabAchievement[6] == 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 852 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_global.tabAchievement[7] == 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 854 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_global.tabAchievement[8] == 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 856 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_global.tabAchievement[9] == 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 858 MovieClip in Symbol 923 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_global.tabAchievement[0] == 0) {
this.gotoAndStop(2);
}
}
Symbol 923 MovieClip Frame 6
stop();
CheatInput.Text = "";
btnBack.Text.strText = "Back";
btnApply.Text.strText = "Apply";
btnView.Text.strText = "View Cheats";
Instance of Symbol 249 MovieClip "btnView" in Symbol 923 MovieClip Frame 6
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.gamesfree.ca/customPage/123/", "_blank");
}
}
Instance of Symbol 249 MovieClip "btnApply" in Symbol 923 MovieClip Frame 6
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
if ((((((((_parent.CheatInput.text == "4321") || (_parent.CheatInput.text == "0777")) || (_parent.CheatInput.text == "3355")) || (_parent.CheatInput.text == "9999")) || (_parent.CheatInput.text == "1234")) || (_parent.CheatInput.text == "2468")) || (_parent.CheatInput.text == "6543")) || (_parent.CheatInput.text == "4680")) {
_parent.CheatSuccess.gotoAndPlay(2);
switch (_parent.CheatInput.text) {
case "4321" :
_global.tabUnlock = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
break;
case "0777" :
_global.Score = _global.Score + 2000;
break;
case "3355" :
if (!_global.CheatBouncy) {
_global.CheatBouncy = true;
} else {
_global.CheatBouncy = false;
}
break;
case "9999" :
_global.Upgrade = 4;
break;
case "1234" :
if (!_global.CheatBeSmall) {
_global.CheatBeSmall = true;
} else {
_global.CheatBeSmall = false;
}
break;
case "2468" :
if (!_global.CheatWantMorePoints) {
_global.CheatWantMorePoints = true;
_global.FoodValue = 60;
_global.NoobValue = 120;
_global.ValueLeftWall = 200;
_global.ValueRightWall = 600;
} else {
_global.CheatWantMorePoints = false;
_global.FoodValue = 30;
_global.NoobValue = 60;
_global.ValueLeftWall = 100;
_global.ValueRightWall = 300;
}
break;
case "6543" :
if (!_global.CheatSlowBro) {
_global.CheatSlowBro = true;
} else {
_global.CheatSlowBro = false;
}
break;
case "4680" :
if (!_global.CheatGottaGoFast) {
_global.CheatGottaGoFast = true;
} else {
_global.CheatGottaGoFast = false;
}
}
}
_parent.CheatInput.text = "";
}
}
Symbol 923 MovieClip Frame 7
stop();
btnBack.Text.strText = "Back";
btnView.Text.strText = "View Achievements";
Instance of Symbol 871 MovieClip in Symbol 923 MovieClip Frame 7
onClipEvent (load) {
if (_global.TotalScore >= _global.tabUnlockExtras[0]) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.gamesfree.ca/customPage/124", "_blank");
}
}
Instance of Symbol 877 MovieClip in Symbol 923 MovieClip Frame 7
onClipEvent (load) {
if (_global.TotalScore >= _global.tabUnlockExtras[1]) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.gamesfree.ca/customPage/125", "_blank");
}
}
Instance of Symbol 882 MovieClip in Symbol 923 MovieClip Frame 7
onClipEvent (load) {
if (_global.TotalScore >= _global.tabUnlockExtras[2]) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.gamesfree.ca/customPage/126", "_blank");
}
}
Instance of Symbol 887 MovieClip in Symbol 923 MovieClip Frame 7
onClipEvent (load) {
if (_global.TotalScore >= _global.tabUnlockExtras[3]) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.gamesfree.ca/customPage/127", "_blank");
}
}
Instance of Symbol 892 MovieClip in Symbol 923 MovieClip Frame 7
onClipEvent (load) {
if (_global.TotalScore >= _global.tabUnlockExtras[4]) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.gamesfree.ca/customPage/128", "_blank");
}
}
Instance of Symbol 897 MovieClip in Symbol 923 MovieClip Frame 7
onClipEvent (load) {
if (_global.TotalScore >= _global.tabUnlockExtras[5]) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.gamesfree.ca/customPage/129", "_blank");
}
}
Instance of Symbol 902 MovieClip in Symbol 923 MovieClip Frame 7
onClipEvent (load) {
if (_global.TotalScore >= _global.tabUnlockExtras[6]) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.gamesfree.ca/customPage/130", "_blank");
}
}
Instance of Symbol 907 MovieClip in Symbol 923 MovieClip Frame 7
onClipEvent (load) {
if (_global.TotalScore >= _global.tabUnlockExtras[7]) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.gamesfree.ca/customPage/131", "_blank");
}
}
Instance of Symbol 912 MovieClip in Symbol 923 MovieClip Frame 7
onClipEvent (load) {
if (_global.TotalScore >= _global.tabUnlockExtras[8]) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.gamesfree.ca/customPage/132", "_blank");
}
}
Instance of Symbol 917 MovieClip in Symbol 923 MovieClip Frame 7
onClipEvent (load) {
if (_global.TotalScore >= _global.tabUnlockExtras[9]) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.gamesfree.ca/customPage/131", "_blank");
}
}
Symbol 923 MovieClip Frame 8
stop();
Symbol 923 MovieClip Frame 9
stop();
btnReplay.Text.strText = "Replay";
btnContinue.Text.strText = "Continue";
Instance of Symbol 249 MovieClip "btnReplay" in Symbol 923 MovieClip Frame 9
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_global.Score = 0;
_global.TotalScore = 0;
_global.tabAchievement = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_global.Upgrade = 0;
_global.NiveauCatapult = 0;
_global.tabAmmoSelection = [1, 1, 1, 2, 1, 1, 2, 1, 2, 2, 2, 2, 2, 1, 1];
_global.FirstTimeClerc1 = true;
_global.FirstTimeClerc2 = true;
_global.FirstTimeClerc3 = true;
_global.FirstTimeClerc4 = true;
_global.FirstTimeClerc5 = true;
_global.NbWallDestroyed = 0;
_global.NbRightWallDestroyed = 0;
_global.NbPplKilled = 0;
_global.TriggerAchievement3 = false;
_global.NbAmmoSelected = 0;
_global.Action = "FirstSrart";
_parent.gotoAndStop("CUSTOM");
}
}
Instance of Symbol 249 MovieClip "btnContinue" in Symbol 923 MovieClip Frame 9
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_global.GameFinished = true;
_global.Action = "LevelDone";
_parent.gotoAndStop("STATS");
}
}
Symbol 923 MovieClip Frame 10
stop();
Symbol 929 MovieClip Frame 1
stop();
gotoAndStop(_global.NiveauCatapult + 1);
Symbol 929 MovieClip Frame 2
stop();
Symbol 929 MovieClip Frame 3
stop();
Symbol 929 MovieClip Frame 4
stop();
Symbol 948 MovieClip Frame 1
stop();
Symbol 948 MovieClip Frame 698
_root.gotoAndStop("TUTORIAL");
Symbol 961 MovieClip Frame 1
stop();
Symbol 961 MovieClip Frame 2
MenuTrack = new Sound();
MenuTrack.attachSound("sd_Doc");
MenuTrack.start();
Symbol 961 MovieClip Frame 30
MachineNoise = new Sound();
MachineNoise.attachSound("sd_FeedingMachine");
MachineNoise.stop();
MenuTrack = new Sound();
MenuTrack.attachSound("sd_Switch");
MenuTrack.start();
Symbol 961 MovieClip Frame 41
MachineNoise = new Sound();
MachineNoise.attachSound("sd_FeedingMachine");
MachineNoise.start(0, 999);
FeedSound = new Sound();
FeedSound.attachSound("sd_Feeder");
FeedSound.start();
Symbol 961 MovieClip Frame 69
stop();
Symbol 966 MovieClip Frame 1
if (_global.Action != "FeedingTime") {
stop();
}
Symbol 973 MovieClip Frame 1
stop();
Symbol 973 MovieClip Frame 220
FeedSound = new Sound();
FeedSound.attachSound("sd_Feeding");
FeedSound.stop();
Symbol 979 MovieClip Frame 1
stop();
onEnterFrame = function () {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
};
Symbol 981 MovieClip Frame 1
stop();
onEnterFrame = function () {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
};
Symbol 983 MovieClip Frame 1
stop();
onEnterFrame = function () {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
};
Symbol 984 MovieClip Frame 1
stop();
onEnterFrame = function () {
ZePosition = _global.Upgrade * 25;
gotoAndStop(ZePosition);
};
Symbol 985 MovieClip Frame 1
stop();
Symbol 985 MovieClip Frame 187
_global.Upgrade++;
Symbol 985 MovieClip Frame 220
stop();
Symbol 986 MovieClip Frame 1
stop();
Symbol 986 MovieClip Frame 2
FattyFatFat.gotoAndPlay(2);
Symbol 986 MovieClip Frame 220
_root.SaveGame();
_global.Action = "Wait";
_parent.Assistant.gotoAndStop(1);
_parent.btnFat.gotoAndPlay(30);
_parent.btnContinue.gotoAndPlay(30);
_parent.Texty.gotoAndStop(1);
Symbol 991 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.Upgrade >= 4) {
gotoAndStop (2);
_parent.btnFat.gotoAndStop(14);
}
if (_global.Upgrade < 4) {
PointsNeeded = _global.tabUpgrade[_global.Upgrade];
}
};
Symbol 991 MovieClip Frame 2
stop();
Symbol 991 MovieClip Frame 3
stop();
Symbol 992 MovieClip Frame 1
MenuTrack = new Sound();
MenuTrack.stop();
onEnterFrame = function () {
btnFat.Text.strText = "Upgrade";
btnContinue.Text.strText = "Back";
};
Instance of Symbol 249 MovieClip "btnFat" in Symbol 992 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((act == 2) && (_global.Action != "FeedingTime")) {
if ((_global.Upgrade < 4) && (_global.Score >= _global.tabUpgrade[_global.Upgrade])) {
act = 1;
_global.Score = _global.Score - _global.tabUpgrade[_global.Upgrade];
_global.Action = "FeedingTime";
_parent.Prof.play();
_parent.Assistant.play();
_parent.MachineAGraisse.play();
_parent.MachineAGraisse.Tube.play();
gotoAndStop (14);
_parent.btnContinue.gotoAndStop(14);
_parent.Texty.gotoAndStop(3);
}
}
}
Instance of Symbol 249 MovieClip "btnContinue" in Symbol 992 MovieClip Frame 1
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_global.Action = "StatsDone";
_root.gotoAndStop("SUBMENU");
MenuTrack = new Sound();
MenuTrack.attachSound("track_Menu");
MenuTrack.stop();
MenuTrack.start(0, 999);
}
}
Symbol 995 MovieClip Frame 524
_root.gotoAndStop("SUBMENU");
Symbol 998 MovieClip Frame 629
_root.gotoAndStop("SUBMENU");
Symbol 1001 MovieClip Frame 478
_root.gotoAndStop("SUBMENU");
Symbol 1002 MovieClip Frame 1
stop();
if (_global.LastCutScene < 3) {
_global.LastCutScene++;
gotoAndStop(_global.LastCutScene);
} else {
_global.LastCutScene = 1;
gotoAndStop(_global.LastCutScene);
}
Instance of Symbol 270 MovieClip "btnSkip" in Symbol 1002 MovieClip Frame 1
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_root.gotoAndStop("SUBMENU");
}
}
Symbol 1002 MovieClip Frame 2
stop();
Symbol 1002 MovieClip Frame 3
stop();
Symbol 1015 MovieClip Frame 1
stop();
Symbol 1015 MovieClip Frame 2
CataLaunch = new Sound();
CataLaunch.attachSound("sd_Catapult1Shoot");
CataLaunch.start();
Symbol 1015 MovieClip Frame 5
_global.Action = "Wait";
_root.speedy = -13;
_root.act = 3;
_root.Conteneur.Fatty.canMove = true;
_root.Conteneur.Fatty.b_1.gotoAndStop(2);
_root.Conteneur.Fatty.b_2.gotoAndStop(2);
_root.Conteneur.Fatty.b_3.gotoAndStop(2);
_root.Conteneur.Fatty._rotation = 90;
_parent.Fatty._y = 80;
_parent.Fatty._x = 30;
Symbol 1020 MovieClip Frame 1
stop();
Symbol 1020 MovieClip Frame 2
stop();
Symbol 1020 MovieClip Frame 3
stop();
Symbol 1020 MovieClip Frame 4
stop();
Symbol 1025 MovieClip Frame 1
stop();
Symbol 1025 MovieClip Frame 2
stop();
Symbol 1025 MovieClip Frame 3
stop();
Symbol 1025 MovieClip Frame 4
stop();
Symbol 1031 MovieClip Frame 1
stop();
Symbol 1031 MovieClip Frame 2
stop();
Symbol 1031 MovieClip Frame 3
stop();
Symbol 1032 MovieClip Frame 1
canMove = false;
Power = 10;
MyName = _name;
MyNumber = MyName.substring(5, 6);
onEnterFrame = function () {
if (_global.Action == "Fire") {
_x = _parent.Start._x;
_y = _parent.Start._y;
}
if (canMove && (_y < 460)) {
_x = (_x + _root.speedx);
_y = (_y + _root.speedy);
if (_root.speedx != 0) {
_root.speedx = _root.speedx * 0.98;
}
} else if (canMove) {
_root.speedx = 0;
}
if ((((_y >= 440) && (canMove)) && ((_root.speedx < -4) || (_root.speedx > 4))) && (Power > 50)) {
_y = 438;
_root.speedx = _root.speedx * 0.8;
_root.speedy = _root.speedy * -0.8;
_root.RandomPosition();
}
if (canMove && (_y >= 440)) {
_x = (_x - 100);
b_1.gotoAndStop(4);
b_1._rotation = -45;
b_2.gotoAndStop(4);
b_3.gotoAndStop(4);
canMove = false;
_parent.Gratz.gotoAndPlay(2);
}
if ((_x > 1280) && (!_root.Smaking)) {
ChubbyDie = new Sound();
ChubbyDie.attachSound("sd_MouseImpact");
ChubbyDie.start();
b_1.gotoAndStop(3);
b_2.gotoAndStop(3);
b_3.gotoAndStop(3);
_root.speedx = 0;
_root.speedy = 1.5;
_root.Smaking = true;
_rotation = 0;
}
if (_root.speedy < -0.5) {
_root.speedy = _root.speedy * 0.98;
}
if ((_root.speedy >= -0.5) && (_root.speedy <= 0.5)) {
_root.speedy = 1;
}
if (!_root.Smaking) {
if (_root.speedy > 0.5) {
if (_root.speedy < 25) {
_root.speedy = _root.speedy * 1.02;
}
}
} else if (_root.speedy > 0.5) {
if (_root.speedy < 25) {
_root.speedy = _root.speedy * 1.005;
}
}
};
Symbol 1034 MovieClip Frame 1
stop();
Symbol 1034 MovieClip Frame 182
_global.Action = "FirstSrart";
_root.gotoAndStop("SUBMENU");
Symbol 1036 MovieClip Frame 1
stop();
Symbol 1039 Button
on (release) {
if (_global.Action == "Fire") {
_root.Launch();
}
}
Symbol 1040 MovieClip Frame 150
_root.act = 2;
Symbol 1040 MovieClip Frame 218
_root.act = 4;
_global.Action = "Fire";
stop();
Symbol 1042 MovieClip Frame 113
stop();
Step1.Step2.Step3.Step4.play();
Symbol 1043 MovieClip Frame 150
_root.act = 2;
randomLaunch = random(2) + 1;
ChubbyCall = new Sound();
ChubbyCall.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_beforelaunch") + randomLaunch);
ChubbyCall.start();
Symbol 1043 MovieClip Frame 218
_root.act = 4;
_global.Action = "Fire";
stop();
Symbol 1044 MovieClip Frame 1
stop();
Symbol 1044 MovieClip Frame 100
if (((_global.Upgrade == 4) && (_global.TempScore >= 20000)) && (!_global.GameFinished)) {
_global.Action = "ENDGAME";
_root.gotoAndStop("SUBMENU");
} else {
_global.Action = "LevelDone";
_root.gotoAndStop("CUTSCENE");
}
Symbol 1045 MovieClip Frame 1
stop();
Symbol 1045 MovieClip Frame 100
_root.SoundEffects.Alarme_Char.gotoAndPlay(3);
if ((eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") > 1700) && (eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") < 2300)) {
_root.cntNbInside++;
if (_root.cntNbInside >= 5) {
if (_global.tabAchievement[5] == 0) {
_root.Achievement.play();
_root.Achievement.Feat.gotoAndStop(6);
_global.tabAchievement[5] = 1;
_global.nbAchievementErned++;
_root.CumulTempScore(_global.tabValueAchievement[5]);
i = 0;
while (i < 10) {
if (_global.tabNewAchievement[i] == -1) {
_global.tabNewAchievement[i] = 5;
i = 10;
}
i++;
}
}
}
}
_root.Smaking = false;
_root.noProjectile++;
if (_root.noProjectile <= 6) {
Set(("_root.Conteneur.Fatty" + _root.noProjectile) + "._x", _root.Conteneur.Start._x);
Set(("_root.Conteneur.Fatty" + _root.noProjectile) + "._y", _root.Conteneur.Start._y);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie").gotoAndStop("SIT");
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_1").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_2.boxx").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_3").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_4").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_5").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_6").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
randomLaunch = random(2) + 1;
ChubbyCall = new Sound();
ChubbyCall.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_beforelaunch") + randomLaunch);
ChubbyCall.start();
}
Symbol 1045 MovieClip Frame 172
if (_root.noProjectile <= 6) {
_global.Achievement8Enabled = false;
_global.Action = "Fire";
_root.act = 4;
} else {
_root.act = 1;
_global.Action = "LevelDone";
_root.Timer2.play();
}
Symbol 1052 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1052 MovieClip Frame 2
stop();
Symbol 1052 MovieClip Frame 3
stop();
Symbol 1052 MovieClip Frame 4
stop();
Symbol 1052 MovieClip Frame 5
stop();
Symbol 1052 MovieClip Frame 6
stop();
Symbol 1060 MovieClip Frame 1
stop();
Symbol 1060 MovieClip Frame 2
stop();
Symbol 1060 MovieClip Frame 3
stop();
Symbol 1060 MovieClip Frame 4
stop();
Symbol 1060 MovieClip Frame 5
stop();
Symbol 1067 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1067 MovieClip Frame 2
stop();
Symbol 1067 MovieClip Frame 3
stop();
Symbol 1067 MovieClip Frame 4
stop();
Symbol 1067 MovieClip Frame 5
stop();
Symbol 1067 MovieClip Frame 6
stop();
Symbol 1076 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1076 MovieClip Frame 2
stop();
Symbol 1076 MovieClip Frame 3
stop();
Symbol 1076 MovieClip Frame 4
stop();
Symbol 1076 MovieClip Frame 5
stop();
Symbol 1076 MovieClip Frame 6
stop();
Symbol 1084 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1084 MovieClip Frame 2
stop();
Symbol 1084 MovieClip Frame 3
stop();
Symbol 1084 MovieClip Frame 4
stop();
Symbol 1084 MovieClip Frame 5
stop();
Symbol 1084 MovieClip Frame 6
stop();
Symbol 1092 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1092 MovieClip Frame 2
stop();
Symbol 1092 MovieClip Frame 3
stop();
Symbol 1092 MovieClip Frame 4
stop();
Symbol 1092 MovieClip Frame 5
stop();
Symbol 1092 MovieClip Frame 6
stop();
Symbol 1100 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1100 MovieClip Frame 2
stop();
Symbol 1100 MovieClip Frame 3
stop();
Symbol 1100 MovieClip Frame 4
stop();
Symbol 1100 MovieClip Frame 5
stop();
Symbol 1100 MovieClip Frame 6
stop();
Symbol 1108 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1108 MovieClip Frame 2
stop();
Symbol 1108 MovieClip Frame 3
stop();
Symbol 1108 MovieClip Frame 4
stop();
Symbol 1108 MovieClip Frame 5
stop();
Symbol 1108 MovieClip Frame 6
stop();
Symbol 1116 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1116 MovieClip Frame 2
stop();
Symbol 1116 MovieClip Frame 3
stop();
Symbol 1116 MovieClip Frame 4
stop();
Symbol 1116 MovieClip Frame 5
stop();
Symbol 1116 MovieClip Frame 6
stop();
Symbol 1124 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1124 MovieClip Frame 2
stop();
Symbol 1124 MovieClip Frame 3
stop();
Symbol 1124 MovieClip Frame 4
stop();
Symbol 1124 MovieClip Frame 5
stop();
Symbol 1124 MovieClip Frame 6
stop();
Symbol 1126 MovieClip Frame 1
stop();
Symbol 1126 MovieClip Frame 2
stop();
Symbol 1126 MovieClip Frame 3
stop();
Symbol 1126 MovieClip Frame 4
stop();
Symbol 1126 MovieClip Frame 5
stop();
Symbol 1126 MovieClip Frame 6
stop();
Symbol 1126 MovieClip Frame 7
stop();
Symbol 1126 MovieClip Frame 8
stop();
Symbol 1127 MovieClip Frame 1
Hp = 4;
MaxHp = Hp;
Wall.gotoAndStop(1);
onEnterFrame = function () {
if (Wall.HitTest.hitTest(eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_2"))) {
if ((eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") < 1700) && (_root.speedx > 0)) {
if ((_global.Upgrade == 0) && (Hp > 1)) {
Hp = 1;
Wall.gotoAndStop(4);
randomBounce = random(2) + 1;
ChubbyBounce = new Sound();
ChubbyBounce.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_hit") + randomBounce);
ChubbyBounce.start();
if ((_root.tabSelection[_root.noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
i = 0;
while (i < 5) {
_root.Spawn("DebrisAnimationLeft", 1);
i++;
}
Set(("_root.Conteneur.Fatty" + _root.noProjectile) + "._x", eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") + 30);
_root.SmackWall();
Set(("_root.Conteneur.Fatty" + _root.noProjectile) + "._x", eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") - (_root.noProjectile * 15));
} else if (((_global.Upgrade == 0) && (Hp == 1)) || ((_global.Upgrade == 1) && (Hp >= 1))) {
Hp = 0;
_global.NbWallDestroyed++;
randomBounce = random(2) + 1;
ChubbyBounce = new Sound();
ChubbyBounce.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_hit") + randomBounce);
ChubbyBounce.start();
if ((_root.tabSelection[_root.noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
i = 0;
while (i < 5) {
_root.Spawn("DebrisAnimation", 1);
i++;
}
if (!_global.CheatBouncy) {
_root.speedx = _root.speedx * -1;
_root.speedy = _root.speedy * 1;
} else {
_root.speedx = _root.speedx * -1.2;
_root.speedy = _root.speedy * 1.2;
}
Set(("_root.Conteneur.Fatty" + _root.noProjectile) + "._xscale", eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._xscale") * -1);
if (_global.tabAchievement[0] == 0) {
_root.Achievement.play();
_root.Achievement.Feat.gotoAndStop(1);
_global.tabAchievement[0] = 1;
_root.CumulTempScore(_global.tabValueAchievement[0]);
_global.nbAchievementErned++;
i = 0;
while (i < 10) {
if (_global.tabNewAchievement[i] == -1) {
_global.tabNewAchievement[i] = 0;
i = 10;
}
i++;
}
}
if (((((_root.Conteneur.Batiments.LWall1.Hp <= 0) && (_root.Conteneur.Batiments.LWall2.Hp <= 0)) && (_root.Conteneur.Batiments.LWall3.Hp <= 0)) && (_root.Conteneur.Batiments.LWall4.Hp <= 0)) && (_root.Conteneur.Batiments.LWall5.Hp <= 0)) {
if (_global.tabAchievement[7] == 0) {
_root.Achievement.play();
_root.Achievement.Feat.gotoAndStop(8);
_global.tabAchievement[7] = 1;
_global.nbAchievementErned++;
_root.CumulTempScore(_global.tabValueAchievement[7]);
i = 0;
while (i < 10) {
if (_global.tabNewAchievement[i] == -1) {
_global.tabNewAchievement[i] = 7;
i = 10;
}
i++;
}
}
}
_root.CumulTempScore(_global.ValueLeftWall);
_root.RandomPosition();
} else if (((_global.Upgrade == 0) && (Hp == 0)) || ((_global.Upgrade == 1) && (Hp == 0))) {
Venteux = new Sound();
Venteux.attachSound("sd_GetTroughHole");
Venteux.start();
} else if ((_global.Upgrade >= 2) && (Hp > 0)) {
Hp = 0;
_global.NbWallDestroyed++;
randomBounce = random(2) + 1;
ChubbyBounce = new Sound();
ChubbyBounce.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_hit") + randomBounce);
ChubbyBounce.start();
if ((_root.tabSelection[_root.noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
i = 0;
while (i < 5) {
_root.Spawn("DebrisAnimation", 1);
i++;
}
i = 0;
while (i < 5) {
_root.Spawn("DebrisAnimationRight", 1);
i++;
}
if (((((_root.Conteneur.Batiments.LWall1.Hp <= 0) && (_root.Conteneur.Batiments.LWall2.Hp <= 0)) && (_root.Conteneur.Batiments.LWall3.Hp <= 0)) && (_root.Conteneur.Batiments.LWall4.Hp <= 0)) && (_root.Conteneur.Batiments.LWall5.Hp <= 0)) {
if (_global.tabAchievement[7] == 0) {
_root.Achievement.play();
_root.Achievement.Feat.gotoAndStop(8);
_global.tabAchievement[7] = 1;
_global.nbAchievementErned++;
_root.CumulTempScore(_global.tabValueAchievement[7]);
i = 0;
while (i < 10) {
if (_global.tabNewAchievement[i] == -1) {
_global.tabNewAchievement[i] = 7;
i = 10;
}
i++;
}
}
}
_root.RandomPosition();
}
} else if ((eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._x") >= 1700) && (_root.speedx < 0)) {
if (Hp > 0) {
if (!_global.CheatBouncy) {
_root.speedx = _root.speedx * -1;
_root.speedy = _root.speedy * 1;
} else {
_root.speedx = _root.speedx * -1.2;
_root.speedy = _root.speedy * 1.2;
}
randomImpact = random(6) + 1;
ChubbyImpacy = new Sound();
ChubbyImpacy.attachSound("sd_Impact" + randomImpact);
ChubbyImpacy.start();
randomDeath = random(2) + 1;
ChubbyBounce = new Sound();
ChubbyBounce.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_hit") + randomDeath);
ChubbyBounce.start();
if ((_root.tabSelection[_root.noProjectile - 1] + 1) == 9) {
CoinSound = new Sound();
CoinSound.attachSound("sd_Coin");
CoinSound.start();
}
i = 0;
while (i < 5) {
_root.Spawn("DebrisAnimationRight", 1);
i++;
}
Set(("_root.Conteneur.Fatty" + _root.noProjectile) + "._xscale", eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._xscale") * -1);
_root.RandomPosition();
}
}
}
};
Symbol 1139 MovieClip Frame 1
stop();
Symbol 1139 MovieClip Frame 2
stop();
Symbol 1139 MovieClip Frame 3
stop();
Symbol 1139 MovieClip Frame 4
stop();
Symbol 1139 MovieClip Frame 5
stop();
Symbol 1139 MovieClip Frame 6
stop();
Symbol 1139 MovieClip Frame 7
stop();
Symbol 1139 MovieClip Frame 8
stop();
Symbol 1140 MovieClip Frame 1
Hp = 6;
MaxHp = Hp;
Wall.gotoAndStop(1);
Symbol 1143 MovieClip Frame 1
stop();
Symbol 1143 MovieClip Frame 2
stop();
Symbol 1146 MovieClip Frame 1
stop();
Symbol 1146 MovieClip Frame 2
stop();
Symbol 1149 MovieClip Frame 1
stop();
Symbol 1149 MovieClip Frame 2
stop();
Symbol 1152 MovieClip Frame 1
stop();
Symbol 1152 MovieClip Frame 2
stop();
Symbol 1155 MovieClip Frame 1
stop();
Symbol 1155 MovieClip Frame 2
stop();
Symbol 1156 MovieClip Frame 1
stop();
RandomCar = random(5) + 1;
gotoAndStop(RandomCar);
Symbol 1156 MovieClip Frame 2
stop();
Symbol 1156 MovieClip Frame 3
stop();
Symbol 1156 MovieClip Frame 4
stop();
Symbol 1156 MovieClip Frame 5
stop();
Symbol 1157 MovieClip Frame 1
Hp = 30;
Matiere = 5;
_root.nbCarz++;
Symbol 1160 MovieClip Frame 1
stop();
Symbol 1160 MovieClip Frame 2
stop();
Symbol 1163 MovieClip Frame 1
stop();
Symbol 1163 MovieClip Frame 2
stop();
Symbol 1164 MovieClip Frame 1
stop();
randomByke = random(2) + 1;
gotoAndStop(randomByke);
Symbol 1164 MovieClip Frame 2
stop();
Symbol 1165 MovieClip Frame 1
Hp = 30;
Matiere = 5;
_root.nbCarz++;
Symbol 1168 MovieClip Frame 1
stop();
Symbol 1168 MovieClip Frame 2
stop();
Symbol 1169 MovieClip Frame 1
Hp = 30;
Matiere = 5;
Symbol 1174 MovieClip Frame 1
stop();
Symbol 1182 MovieClip Frame 1
stop();
Symbol 1190 MovieClip Frame 1
stop();
Symbol 1198 MovieClip Frame 1
stop();
Symbol 1206 MovieClip Frame 1
stop();
Symbol 1216 MovieClip Frame 1
stop();
Symbol 1224 MovieClip Frame 1
stop();
Symbol 1225 MovieClip Frame 1
stop();
Symbol 1225 MovieClip Frame 30
stop();
Symbol 1225 MovieClip Frame 60
stop();
Symbol 1225 MovieClip Frame 90
stop();
Symbol 1225 MovieClip Frame 120
stop();
Symbol 1226 MovieClip Frame 1
function SetBodieParts() {
RandomPerso = random(9) + 1;
Noob.head.gotoAndStop(RandomPerso);
Noob.body.gotoAndStop(RandomPerso);
Noob.arm1.gotoAndStop(RandomPerso);
Noob.arm2.gotoAndStop(RandomPerso);
Noob.bassin.gotoAndStop(RandomPerso);
Noob.cuisse1.gotoAndStop(RandomPerso);
Noob.cuisse2.gotoAndStop(RandomPerso);
Noob.leg1.gotoAndStop(RandomPerso);
Noob.leg2.gotoAndStop(RandomPerso);
}
_global.nbNoob++;
Hp = 80;
xSpeed = 0;
ySpeed = 0;
watashi = this._name;
SetBodieParts();
onEnterFrame = function () {
if ((eval (("_parent." + watashi) + "._y") < 290) && (xSpeed != 0)) {
Set(("_parent." + watashi) + "._x", eval (("_parent." + watashi) + "._x") + xSpeed);
Set(("_parent." + watashi) + "._y", eval (("_parent." + watashi) + "._y") + ySpeed);
}
if ((eval (("_parent." + watashi) + "._y") >= 300) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * 0.7;
ySpeed = ySpeed * -0.7;
}
if ((eval (("_parent." + watashi) + "._x") >= 200) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * -0.9;
ySpeed = ySpeed * 1.1;
}
if ((eval (("_parent." + watashi) + "._x") <= -90) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * -0.9;
ySpeed = ySpeed * 1.1;
}
if (eval (("_parent." + watashi) + "._y") <= 110) {
xSpeed = xSpeed * 0.8;
ySpeed = ySpeed * -0.8;
}
if (ySpeed != 0) {
if (ySpeed < -0.5) {
ySpeed = ySpeed * 0.8;
}
if ((ySpeed >= -0.5) && (ySpeed <= 0.5)) {
ySpeed = 1;
}
if (ySpeed >= 1) {
ySpeed = ySpeed * 1.2;
}
}
};
Symbol 1233 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1233 MovieClip Frame 2
stop();
Symbol 1233 MovieClip Frame 3
stop();
Symbol 1233 MovieClip Frame 4
stop();
Symbol 1233 MovieClip Frame 5
stop();
Symbol 1233 MovieClip Frame 6
stop();
Symbol 1240 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1240 MovieClip Frame 2
stop();
Symbol 1240 MovieClip Frame 3
stop();
Symbol 1240 MovieClip Frame 4
stop();
Symbol 1240 MovieClip Frame 5
stop();
Symbol 1240 MovieClip Frame 6
stop();
Symbol 1240 MovieClip Frame 7
stop();
Symbol 1241 MovieClip Frame 1
stop();
Symbol 1241 MovieClip Frame 2
stop();
Symbol 1242 MovieClip Frame 1
xSpeed = 0;
ySpeed = 0;
_root.nbTable++;
Hp = 30;
Matiere = 2;
watashi = this._name;
turningSide = random(2);
onEnterFrame = function () {
if ((eval (("_parent." + watashi) + "._y") < 280) && (xSpeed != 0)) {
Set(("_parent." + watashi) + "._x", eval (("_parent." + watashi) + "._x") + xSpeed);
Set(("_parent." + watashi) + "._y", eval (("_parent." + watashi) + "._y") + ySpeed);
if (turningSide) {
Set(("_parent." + watashi) + "._rotation", eval (("_parent." + watashi) + "._rotation") + 10);
} else {
Set(("_parent." + watashi) + "._rotation", eval (("_parent." + watashi) + "._rotation") - 10);
}
} else if (eval (("_parent." + watashi) + "._y") >= 280) {
Table.gotoAndStop(2);
}
if ((eval (("_parent." + watashi) + "._y") >= 300) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * 1;
ySpeed = ySpeed * -1;
}
if ((eval (("_parent." + watashi) + "._x") >= 200) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * -0.9;
}
if ((eval (("_parent." + watashi) + "._x") <= -90) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * -0.9;
}
if (eval (("_parent." + watashi) + "._y") <= 110) {
ySpeed = ySpeed * -1;
if (_global.tabAchievement[1] == 0) {
_root.Achievement.play();
_root.Achievement.Feat.gotoAndStop(2);
_global.tabAchievement[1] = 1;
_global.nbAchievementErned++;
_root.CumulTempScore(_global.tabValueAchievement[1]);
i = 0;
while (i < 10) {
if (_global.tabNewAchievement[i] == -1) {
_global.tabNewAchievement[i] = 1;
i = 10;
}
i++;
}
}
}
if (ySpeed != 0) {
if (ySpeed < -0.5) {
ySpeed = ySpeed * 0.8;
}
if ((ySpeed >= -0.5) && (ySpeed <= 0.5)) {
ySpeed = 1;
}
if (ySpeed >= 1) {
ySpeed = ySpeed * 1.2;
}
}
};
Symbol 1245 MovieClip Frame 1
stop();
Symbol 1245 MovieClip Frame 2
stop();
Symbol 1248 MovieClip Frame 1
stop();
Symbol 1248 MovieClip Frame 2
stop();
Symbol 1251 MovieClip Frame 1
stop();
Symbol 1251 MovieClip Frame 2
stop();
Symbol 1254 MovieClip Frame 1
stop();
Symbol 1254 MovieClip Frame 2
stop();
Symbol 1257 MovieClip Frame 1
stop();
Symbol 1257 MovieClip Frame 2
stop();
Symbol 1258 MovieClip Frame 1
stop();
randomFood = random(6) + 1;
gotoAndStop(randomFood);
Symbol 1258 MovieClip Frame 2
stop();
Symbol 1258 MovieClip Frame 3
stop();
Symbol 1258 MovieClip Frame 4
stop();
Symbol 1258 MovieClip Frame 5
stop();
Symbol 1258 MovieClip Frame 6
stop();
Symbol 1259 MovieClip Frame 1
_root.nbFood++;
xSpeed = 0;
ySpeed = 0;
Hp = 30;
turningSide = random(2);
watashi = this._name;
FoodDestroyed = false;
onEnterFrame = function () {
if ((eval (("_parent." + watashi) + "._y") < 290) && (xSpeed != 0)) {
Set(("_parent." + watashi) + "._x", eval (("_parent." + watashi) + "._x") + xSpeed);
Set(("_parent." + watashi) + "._y", eval (("_parent." + watashi) + "._y") + ySpeed);
if (turningSide) {
Set(("_parent." + watashi) + "._rotation", eval (("_parent." + watashi) + "._rotation") + 10);
} else {
Set(("_parent." + watashi) + "._rotation", eval (("_parent." + watashi) + "._rotation") - 10);
}
} else if ((eval (("_parent." + watashi) + "._y") >= 290) && (!FoodDestroyed)) {
FoodDestroyed = true;
Food.FoodType.gotoAndStop(2);
trace("Destroy food");
}
if ((eval (("_parent." + watashi) + "._y") >= 300) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * 0.5;
ySpeed = ySpeed * -0.5;
}
if ((eval (("_parent." + watashi) + "._x") >= 200) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * -0.9;
ySpeed = ySpeed * 1.1;
}
if ((eval (("_parent." + watashi) + "._x") <= -90) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * -0.9;
ySpeed = ySpeed * 1.1;
}
if (eval (("_parent." + watashi) + "._y") <= 110) {
xSpeed = xSpeed * 0.8;
ySpeed = ySpeed * -0.8;
}
if (ySpeed != 0) {
if (ySpeed < -0.5) {
ySpeed = ySpeed * 0.8;
}
if ((ySpeed >= -0.5) && (ySpeed <= 0.5)) {
ySpeed = 1;
}
if (ySpeed >= 1) {
ySpeed = ySpeed * 1.2;
}
}
};
Symbol 1262 MovieClip Frame 1
stop();
Symbol 1262 MovieClip Frame 2
stop();
Symbol 1263 MovieClip Frame 1
Hp = 30;
Matiere = 5;
_root.nbRoof++;
Symbol 1266 MovieClip Frame 1
stop();
Symbol 1266 MovieClip Frame 2
stop();
Symbol 1267 MovieClip Frame 1
Hp = 30;
Matiere = 5;
_root.nbRoof++;
Symbol 1270 MovieClip Frame 1
stop();
Symbol 1270 MovieClip Frame 2
stop();
Symbol 1271 MovieClip Frame 1
Hp = 30;
_root.nbRoof++;
xSpeed = 0;
ySpeed = 0;
turningSide = random(2);
watashi = this._name;
onEnterFrame = function () {
if ((eval (("_parent." + watashi) + "._y") < 290) && (xSpeed != 0)) {
Set(("_parent." + watashi) + "._x", eval (("_parent." + watashi) + "._x") + xSpeed);
Set(("_parent." + watashi) + "._y", eval (("_parent." + watashi) + "._y") + ySpeed);
if (turningSide) {
Set(("_parent." + watashi) + "._rotation", eval (("_parent." + watashi) + "._rotation") + 10);
} else {
Set(("_parent." + watashi) + "._rotation", eval (("_parent." + watashi) + "._rotation") - 10);
}
} else if (eval (("_parent." + watashi) + "._y") >= 290) {
Item.gotoAndStop(2);
}
if ((eval (("_parent." + watashi) + "._y") >= 300) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * 0.5;
ySpeed = ySpeed * -0.5;
}
if ((eval (("_parent." + watashi) + "._x") >= 200) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * -0.9;
ySpeed = ySpeed * 1.1;
}
if ((eval (("_parent." + watashi) + "._x") <= -90) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * -0.9;
ySpeed = ySpeed * 1.1;
}
if (eval (("_parent." + watashi) + "._y") <= 110) {
xSpeed = xSpeed * 0.8;
ySpeed = ySpeed * -0.8;
}
if (ySpeed != 0) {
if (ySpeed < -0.5) {
ySpeed = ySpeed * 0.8;
}
if ((ySpeed >= -0.5) && (ySpeed <= 0.5)) {
ySpeed = 1;
}
if (ySpeed >= 1) {
ySpeed = ySpeed * 1.2;
}
}
};
Symbol 1274 MovieClip Frame 1
stop();
Symbol 1274 MovieClip Frame 2
stop();
Symbol 1275 MovieClip Frame 1
Hp = 30;
_root.nbRoof++;
xSpeed = 0;
ySpeed = 0;
turningSide = random(2);
watashi = this._name;
onEnterFrame = function () {
if ((eval (("_parent." + watashi) + "._y") < 290) && (xSpeed != 0)) {
Set(("_parent." + watashi) + "._x", eval (("_parent." + watashi) + "._x") + xSpeed);
Set(("_parent." + watashi) + "._y", eval (("_parent." + watashi) + "._y") + ySpeed);
if (turningSide) {
Set(("_parent." + watashi) + "._rotation", eval (("_parent." + watashi) + "._rotation") + 10);
} else {
Set(("_parent." + watashi) + "._rotation", eval (("_parent." + watashi) + "._rotation") - 10);
}
} else if (eval (("_parent." + watashi) + "._y") >= 290) {
Item.gotoAndStop(2);
}
if ((eval (("_parent." + watashi) + "._y") >= 300) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * 0.5;
ySpeed = ySpeed * -0.5;
}
if ((eval (("_parent." + watashi) + "._x") >= 200) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * -0.9;
ySpeed = ySpeed * 1.1;
}
if ((eval (("_parent." + watashi) + "._x") <= -90) && ((xSpeed > 1) || (xSpeed < -1))) {
xSpeed = xSpeed * -0.9;
ySpeed = ySpeed * 1.1;
}
if (eval (("_parent." + watashi) + "._y") <= 110) {
xSpeed = xSpeed * 0.8;
ySpeed = ySpeed * -0.8;
}
if (ySpeed != 0) {
if (ySpeed < -0.5) {
ySpeed = ySpeed * 0.8;
}
if ((ySpeed >= -0.5) && (ySpeed <= 0.5)) {
ySpeed = 1;
}
if (ySpeed >= 1) {
ySpeed = ySpeed * 1.2;
}
}
};
Symbol 1276 MovieClip Frame 1
stop();
RandomAssortiment = random(5) + 1;
gotoAndStop(RandomAssortiment);
Symbol 1276 MovieClip Frame 2
stop();
Symbol 1276 MovieClip Frame 3
stop();
Symbol 1276 MovieClip Frame 4
stop();
Symbol 1276 MovieClip Frame 5
stop();
Symbol 1284 MovieClip Frame 1
onEnterFrame = function () {
if ((CollisionDetection.checkForCollision(HitAble, eval ("_root.Conteneur.Fatty" + _root.noProjectile), 120) && (!CollisionDetection.checkForCollision(_parent.LWall1, eval ("_root.Conteneur.Fatty" + _root.noProjectile)))) && (!CollisionDetection.checkForCollision(_parent.RWall1, eval ("_root.Conteneur.Fatty" + _root.noProjectile)))) {
if (eval (("_root.Conteneur.Fatty" + _root.noProjectile) + "._y") > 0) {
_root.speedy = 15;
_root.speedx = _root.speedx * 0.9;
} else {
_root.speedy = -5;
_root.speedx = _root.speedx * 0.9;
}
}
};
Symbol 1305 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1305 MovieClip Frame 2
stop();
Symbol 1305 MovieClip Frame 3
stop();
Symbol 1305 MovieClip Frame 4
stop();
Symbol 1305 MovieClip Frame 5
stop();
Symbol 1305 MovieClip Frame 6
stop();
Symbol 1310 MovieClip Frame 1
stop();
if (_global.FirstMap) {
gotoAndStop (2);
_global.FirstMap = false;
}
Symbol 1310 MovieClip Frame 2
stop();
Symbol 1328 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1328 MovieClip Frame 2
stop();
Symbol 1328 MovieClip Frame 3
stop();
Symbol 1328 MovieClip Frame 4
stop();
Symbol 1328 MovieClip Frame 5
stop();
Symbol 1328 MovieClip Frame 6
stop();
Symbol 1329 MovieClip Frame 1
stop();
Symbol 1329 MovieClip Frame 2
stop();
Symbol 1329 MovieClip Frame 3
stop();
Symbol 1336 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1336 MovieClip Frame 2
stop();
Symbol 1336 MovieClip Frame 3
stop();
Symbol 1336 MovieClip Frame 4
stop();
Symbol 1336 MovieClip Frame 5
stop();
Symbol 1336 MovieClip Frame 6
stop();
Symbol 1344 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1344 MovieClip Frame 2
stop();
Symbol 1344 MovieClip Frame 3
stop();
Symbol 1344 MovieClip Frame 4
stop();
Symbol 1344 MovieClip Frame 5
stop();
Symbol 1344 MovieClip Frame 6
stop();
Symbol 1352 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1352 MovieClip Frame 2
stop();
Symbol 1352 MovieClip Frame 3
stop();
Symbol 1352 MovieClip Frame 4
stop();
Symbol 1352 MovieClip Frame 5
stop();
Symbol 1352 MovieClip Frame 6
stop();
Symbol 1360 MovieClip Frame 1
stop();
gotoAndStop(_global.ActualBuilding);
Symbol 1360 MovieClip Frame 2
stop();
Symbol 1360 MovieClip Frame 3
stop();
Symbol 1360 MovieClip Frame 4
stop();
Symbol 1360 MovieClip Frame 5
stop();
Symbol 1360 MovieClip Frame 6
stop();
Symbol 1361 MovieClip Frame 1
stop();
Symbol 1361 MovieClip Frame 2
stop();
Symbol 1361 MovieClip Frame 3
stop();
Symbol 1361 MovieClip Frame 4
stop();
Symbol 1362 MovieClip Frame 1
i = 1;
while (i < 6) {
eval ("CoverWall" + i).gotoAndStop(5);
i++;
}
Symbol 1367 MovieClip Frame 1
stop();
Symbol 1367 MovieClip Frame 2
stop();
Symbol 1367 MovieClip Frame 3
stop();
Symbol 1367 MovieClip Frame 4
stop();
Symbol 1372 MovieClip Frame 1
stop();
Symbol 1372 MovieClip Frame 2
stop();
Symbol 1372 MovieClip Frame 3
stop();
Symbol 1372 MovieClip Frame 4
stop();
Symbol 1373 MovieClip Frame 1
stop();
Symbol 1373 MovieClip Frame 2
i = 1;
while (i < 7) {
eval ("CoverPlatre" + i).gotoAndStop(5);
i++;
}
Symbol 1373 MovieClip Frame 3
stop();
Symbol 1380 MovieClip Frame 1
stop();
Symbol 1380 MovieClip Frame 2
CataLaunch = new Sound();
CataLaunch.attachSound("sd_Catapult1Shoot");
CataLaunch.start();
Symbol 1380 MovieClip Frame 15
_global.Action = "Wait";
randomLaunch = random(2) + 1;
eval ((("_root.SoundEffects.Perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_Fly") + randomLaunch).gotoAndPlay(2);
if (!_global.CheatSlowBro) {
_root.speedy = (((_root.Conteneur.Arrow._rotation - 45) * -1) / 45) * -19;
} else {
_root.speedy = ((((_root.Conteneur.Arrow._rotation - 45) * -1) / 45) * -19) * 0.8;
}
_root.act = 3;
_root.tabFatty[_root.noProjectile - 1].canMove = true;
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie").gotoAndPlay("FLY");
Symbol 1383 MovieClip Frame 1
stop();
Symbol 1384 MovieClip Frame 1
onEnterFrame = function () {
_y = ((_parent.Catapulte._y + _parent.Catapulte.Harm._y) + _parent.Catapulte.Harm.Insigna._y);
_x = ((_parent.Catapulte._x + _parent.Catapulte.Harm._x) + _parent.Catapulte.Harm.Insigna._x);
};
Symbol 1390 MovieClip Frame 1
stop();
Symbol 1390 MovieClip Frame 2
CataLaunch = new Sound();
CataLaunch.attachSound("sd_Catapult2Shoot");
CataLaunch.start();
Symbol 1390 MovieClip Frame 15
_global.Action = "Wait";
_root.speedy = (((_root.Conteneur.Arrow._rotation - 45) * -1) / 45) * -19;
randomLaunch = random(2) + 1;
eval ((("_root.SoundEffects.Perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_Fly") + randomLaunch).gotoAndPlay(2);
_root.act = 3;
_root.tabFatty[_root.noProjectile - 1].canMove = true;
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie").gotoAndPlay("FLY");
Symbol 1393 MovieClip Frame 1
stop();
Symbol 1403 MovieClip Frame 1
stop();
Symbol 1403 MovieClip Frame 2
play();
Symbol 1408 MovieClip Frame 1
stop();
onEnterFrame = function () {
RatioAngle = _root.Conteneur.Arrow._rotation / 45;
NewAngle = RatioAngle * 35;
_rotation = NewAngle;
};
Symbol 1408 MovieClip Frame 2
stop();
Symbol 1411 MovieClip Frame 1
stop();
Symbol 1411 MovieClip Frame 2
_global.Action = "Wait";
CataLaunch = new Sound();
CataLaunch.attachSound("sd_Canon1Shoot");
CataLaunch.start();
Boucanne.play();
if (!_global.CheatSlowBro) {
_root.speedy = (((_root.Conteneur.Arrow._rotation - 45) * -1) / 45) * -43;
} else {
_root.speedy = (((_root.Conteneur.Arrow._rotation - 45) * -1) / 45) * -23;
}
if (_root.speedy > -5) {
_root.speedy = -5;
}
randomLaunch = random(2) + 1;
eval ((("_root.SoundEffects.Perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_Fly") + randomLaunch).gotoAndPlay(2);
_root.act = 3;
_root.tabFatty[_root.noProjectile - 1].canMove = true;
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie").gotoAndPlay("POP");
gotoAndStop (1);
Symbol 1411 MovieClip Frame 3
Boucanne.play();
Kanon.gotoAndStop(2);
Symbol 1411 MovieClip Frame 100
_root.gotoAndPlay("BLUEPRINT");
Symbol 1412 MovieClip Frame 1
stop();
Symbol 1422 MovieClip Frame 1
stop();
Insigna._y = 0;
Insigna._x = 50;
Symbol 1422 MovieClip Frame 2
CataLaunch = new Sound();
CataLaunch.attachSound("sd_Canon2Shoot");
CataLaunch.start();
Smoke.play();
Ratio = _parent.AngleRatio;
Location = Ratio * 390;
Insigna._y = (Location + 150) - 540;
if (Insigna._y > -100) {
Insigna._y = -100;
}
if (Insigna._y < -300) {
Insigna._y = -300;
}
trace(Insigna._y);
Insigna._x = 800;
Symbol 1422 MovieClip Frame 5
_global.Action = "Wait";
if (!_global.CheatSlowBro) {
_root.speedy = (((_root.Conteneur.Arrow._rotation - 45) * -1) / 45) * -15;
} else {
_root.speedy = (((_root.Conteneur.Arrow._rotation - 45) * -1) / 45) * -8;
}
trace(_root.speedy);
if (_root.speedy > -3) {
_root.speedy = -3;
}
randomLaunch = random(2) + 1;
eval ((("_root.SoundEffects.Perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_Fly") + randomLaunch).gotoAndPlay(2);
_root.act = 3;
_root.tabFatty[_root.noProjectile - 1].canMove = true;
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie").gotoAndPlay("POP");
Symbol 1425 MovieClip Frame 1
stop();
onEnterFrame = function () {
AngleRatio = _root.Conteneur.Arrow._rotation / 45;
NewAngle = (AngleRatio * 20) + 20;
Harm._rotation = NewAngle;
};
Symbol 1426 MovieClip Frame 1
stop();
_parent.SetterAmmo();
_root.Conteneur.Fatty1.Chobbie.gotoAndStop("SIT");
_root.Conteneur.Fatty1.Chobbie.Progress.b_1.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_2.boxx.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_3.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_4.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_5.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_6.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
gotoAndStop(_global.NiveauCatapult + 1);
Symbol 1426 MovieClip Frame 2
stop();
_parent.SetterAmmo();
_root.Conteneur.Fatty1.Chobbie.gotoAndStop("SIT");
_root.Conteneur.Fatty1.Chobbie.Progress.b_1.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_2.boxx.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_3.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_4.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_5.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_6.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Arrow._x = -563;
Arrow._y = 336;
Symbol 1426 MovieClip Frame 3
stop();
_parent.SetterAmmo();
_root.Conteneur.Fatty1.Chobbie.gotoAndStop("SIT");
_root.Conteneur.Fatty1.Chobbie.Progress.b_1.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_2.boxx.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_3.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_4.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_5.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_6.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Arrow._alpha = 0;
Arrow._x = -1010;
Arrow._y = 280;
Symbol 1426 MovieClip Frame 4
stop();
_parent.SetterAmmo();
_root.Conteneur.Fatty1.Chobbie.gotoAndStop("SIT");
_root.Conteneur.Fatty1.Chobbie.Progress.b_1.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_2.boxx.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_3.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_4.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_5.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
_root.Conteneur.Fatty1.Chobbie.Progress.b_6.gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
Arrow._alpha = 0;
Arrow._x = -1650;
Arrow._y = 190;
Symbol 1431 MovieClip Frame 1
stop();
Symbol 1431 MovieClip Frame 2
play();
Symbol 1434 MovieClip Frame 1
stop();
Symbol 1434 MovieClip Frame 2
play();
Symbol 1439 MovieClip Frame 1
stop();
BrokenBalance = false;
onEnterFrame = function () {
TotalScore = _global.TempScore;
};
Symbol 1440 MovieClip Frame 1
stop();
Symbol 1440 MovieClip Frame 2
gotoAndStop (1);
Symbol 1440 MovieClip Frame 3
gotoAndStop (1);
Symbol 1441 MovieClip Frame 1
stop();
Symbol 1441 MovieClip Frame 2
gotoAndStop (1);
Symbol 1441 MovieClip Frame 3
gotoAndStop (1);
Symbol 1443 MovieClip Frame 1
stop();
Symbol 1443 MovieClip Frame 2
gotoAndStop (1);
Symbol 1443 MovieClip Frame 3
gotoAndStop (1);
Symbol 1444 MovieClip Frame 1
stop();
Symbol 1444 MovieClip Frame 2
gotoAndStop (1);
Symbol 1444 MovieClip Frame 3
gotoAndStop (1);
Symbol 1445 MovieClip Frame 1
stop();
Symbol 1445 MovieClip Frame 2
gotoAndStop (1);
Symbol 1445 MovieClip Frame 3
gotoAndStop (1);
Symbol 1446 MovieClip Frame 1
stop();
Symbol 1446 MovieClip Frame 2
gotoAndStop (1);
Symbol 1446 MovieClip Frame 3
gotoAndStop (1);
Symbol 1447 MovieClip Frame 1
stop();
Symbol 1447 MovieClip Frame 2
gotoAndStop (1);
Symbol 1447 MovieClip Frame 3
gotoAndStop (1);
Symbol 1448 MovieClip Frame 1
stop();
Symbol 1448 MovieClip Frame 2
gotoAndStop (1);
Symbol 1448 MovieClip Frame 3
gotoAndStop (1);
Symbol 1449 MovieClip Frame 1
stop();
Symbol 1449 MovieClip Frame 2
gotoAndStop (1);
Symbol 1449 MovieClip Frame 3
gotoAndStop (1);
Symbol 1450 MovieClip Frame 1
stop();
Symbol 1450 MovieClip Frame 2
gotoAndStop (1);
Symbol 1450 MovieClip Frame 3
gotoAndStop (1);
Symbol 1451 MovieClip Frame 1
stop();
Symbol 1451 MovieClip Frame 2
gotoAndStop (1);
Symbol 1451 MovieClip Frame 3
gotoAndStop (1);
Symbol 1452 MovieClip Frame 1
stop();
Symbol 1452 MovieClip Frame 2
gotoAndStop (1);
Symbol 1452 MovieClip Frame 3
gotoAndStop (1);
Symbol 1453 MovieClip Frame 1
stop();
Symbol 1453 MovieClip Frame 2
gotoAndStop (1);
Symbol 1453 MovieClip Frame 3
gotoAndStop (1);
Symbol 1454 MovieClip Frame 1
stop();
Symbol 1454 MovieClip Frame 2
gotoAndStop (1);
Symbol 1454 MovieClip Frame 3
gotoAndStop (1);
Symbol 1455 MovieClip Frame 1
stop();
Symbol 1455 MovieClip Frame 2
gotoAndStop (1);
Symbol 1455 MovieClip Frame 3
gotoAndStop (1);
Symbol 1456 MovieClip Frame 1
stop();
Symbol 1456 MovieClip Frame 2
gotoAndStop (1);
Symbol 1456 MovieClip Frame 3
gotoAndStop (1);
Symbol 1457 MovieClip Frame 1
stop();
Symbol 1457 MovieClip Frame 2
gotoAndStop (1);
Symbol 1457 MovieClip Frame 3
gotoAndStop (1);
Symbol 1458 MovieClip Frame 1
stop();
Symbol 1458 MovieClip Frame 2
gotoAndStop (1);
Symbol 1458 MovieClip Frame 3
gotoAndStop (1);
Symbol 1459 MovieClip Frame 1
stop();
Symbol 1459 MovieClip Frame 2
gotoAndStop (1);
Symbol 1459 MovieClip Frame 3
gotoAndStop (1);
Symbol 1460 MovieClip Frame 1
stop();
Symbol 1460 MovieClip Frame 2
gotoAndStop (1);
Symbol 1460 MovieClip Frame 3
gotoAndStop (1);
Symbol 1461 MovieClip Frame 1
stop();
Symbol 1461 MovieClip Frame 2
gotoAndStop (1);
Symbol 1461 MovieClip Frame 3
gotoAndStop (1);
Symbol 1462 MovieClip Frame 1
stop();
Symbol 1462 MovieClip Frame 2
gotoAndStop (1);
Symbol 1462 MovieClip Frame 3
gotoAndStop (1);
Symbol 1463 MovieClip Frame 1
stop();
Symbol 1463 MovieClip Frame 2
gotoAndStop (1);
Symbol 1463 MovieClip Frame 3
gotoAndStop (1);
Symbol 1464 MovieClip Frame 1
stop();
Symbol 1464 MovieClip Frame 2
gotoAndStop (1);
Symbol 1464 MovieClip Frame 3
gotoAndStop (1);
Symbol 1465 MovieClip Frame 1
stop();
Symbol 1465 MovieClip Frame 2
gotoAndStop (1);
Symbol 1465 MovieClip Frame 3
gotoAndStop (1);
Symbol 1466 MovieClip Frame 1
stop();
Symbol 1466 MovieClip Frame 2
gotoAndStop (1);
Symbol 1466 MovieClip Frame 3
gotoAndStop (1);
Symbol 1467 MovieClip Frame 1
stop();
Symbol 1467 MovieClip Frame 2
gotoAndStop (1);
Symbol 1467 MovieClip Frame 3
gotoAndStop (1);
Symbol 1468 MovieClip Frame 1
stop();
Symbol 1468 MovieClip Frame 2
gotoAndStop (1);
Symbol 1468 MovieClip Frame 3
gotoAndStop (1);
Symbol 1469 MovieClip Frame 1
stop();
Symbol 1469 MovieClip Frame 2
gotoAndStop (1);
Symbol 1469 MovieClip Frame 3
gotoAndStop (1);
Symbol 1470 MovieClip Frame 1
stop();
Symbol 1470 MovieClip Frame 2
gotoAndStop (1);
Symbol 1470 MovieClip Frame 3
gotoAndStop (1);
Symbol 1471 MovieClip Frame 1
stop();
Symbol 1471 MovieClip Frame 2
gotoAndStop (1);
Symbol 1471 MovieClip Frame 3
gotoAndStop (1);
Symbol 1474 MovieClip Frame 1
function StopAllSound() {
i = 1;
while (i < 16) {
j = 1;
while (j < 3) {
eval ((("Perso" + i) + "_Fly") + j).gotoAndPlay(3);
j++;
}
i++;
}
}
stop();
Symbol 1477 MovieClip Frame 150
_root.Conteneur.act = 2;
randomLaunch = random(2) + 1;
ChubbyCall = new Sound();
ChubbyCall.attachSound((("perso" + (_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1)) + "_beforelaunch") + randomLaunch);
ChubbyCall.start();
trace((("perso" + (_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1)) + "_beforelaunch") + randomLaunch);
Symbol 1477 MovieClip Frame 218
_root.Conteneur.act = 4;
_global.Action = "Fire";
stop();
Symbol 1482 MovieClip Frame 1
stop();
Fatty1.Chobbie.gotoAndStop("SIT");
Fatty1.Chobbie.Progress.b_1.gotoAndStop(_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1);
Fatty1.Chobbie.Progress.b_2.boxx.gotoAndStop(_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1);
Fatty1.Chobbie.Progress.b_3.gotoAndStop(_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1);
Fatty1.Chobbie.Progress.b_4.gotoAndStop(_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1);
Fatty1.Chobbie.Progress.b_5.gotoAndStop(_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1);
Fatty1.Chobbie.Progress.b_6.gotoAndStop(_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1);
Symbol 1482 MovieClip Frame 2
CatapultFail = new Sound();
CatapultFail.attachSound("sd_Catapult1Fail");
CatapultFail.start();
Symbol 1482 MovieClip Frame 100
_global.TriggerAchievement3 = true;
_root.gotoAndPlay("BLUEPRINT");
Symbol 1483 MovieClip Frame 1
stop();
_parent.SetterAmmo();
Front.gotoAndStop(2);
Symbol 1484 Button
on (release) {
if (_global.Action == "Fire") {
_parent.Launch();
_root.Conteneur.Conteneur.Catapulte.play();
_global.Action = "Wait";
}
}
Symbol 1485 MovieClip Frame 1
function rotateHarm() {
Ratio1 = _root._ymouse / 440;
Ratio2 = Ratio1 * 45;
Conteneur.Arrow._rotation = Ratio2;
}
function Launch() {
trace("Launch");
Conteneur.Catapulte.play();
}
function CameraSetting() {
if (act == 1) {
what = "Batiments";
} else if (act == 2) {
what = "Start";
} else if (act == 3) {
what = "Fatty" + noProjectile;
} else if (act == 4) {
what = "Arrow";
}
if ((Conteneur._x - 1) > ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) {
Conteneur._x = Conteneur._x - (((Conteneur._x - 1) - ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) * camera_speed);
}
if ((Conteneur._x + 1) < ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) {
Conteneur._x = Conteneur._x + ((((game_width / 2) - eval (("Conteneur." + what) + "._x")) - (Conteneur._x + 1)) * camera_speed);
}
if ((Conteneur._y - 1) > ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) {
Conteneur._y = Conteneur._y - (((Conteneur._y - 1) - ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) * camera_speed);
}
if ((Conteneur._y + 1) < ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) {
Conteneur._y = Conteneur._y + ((((game_height / 2) - eval (("Conteneur." + what) + "._y")) - (Conteneur._y + 1)) * camera_speed);
}
}
function SetterAmmo() {
i = 0;
while (i < 6) {
position = tabSelection[i];
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_1").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_2.boxx").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_3").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_4").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_5").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_6").gotoAndStop(position + 1);
i++;
}
}
function SetterBuilding() {
Conteneur.Front.Cover.gotoAndStop(_global.ActualBuilding);
Conteneur.Batiments.BackGround.gotoAndStop(_global.ActualBuilding);
}
function setTabSelection() {
j = 0;
i = 0;
while (i < 15) {
if (_global.tabAmmoSelection[i] == 1) {
tabSelection[j] = i;
j++;
}
i++;
}
}
function SmackWall() {
trace("Smaking");
randomDeath = random(2) + 1;
ChubbyDie = new Sound();
ChubbyDie.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_die") + randomDeath);
ChubbyDie.start();
speedy = 0;
speedx = 0;
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie").gotoAndStop("SMACK");
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_1").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_2.boxx").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_3").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_4").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_5").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_6").gotoAndStop(tabSelection[noProjectile - 1] + 1);
}
function RandomPosition() {
randomPosition = random(5) + 1;
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie").gotoAndStop("Rnd" + randomPosition);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_1").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_2.boxx").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_3").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_4").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_5").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_6").gotoAndStop(tabSelection[noProjectile - 1] + 1);
}
function RandomAmmoOrder(Tableau) {
var _local5 = Tableau.length;
var _local3 = _local5;
while (_local3--) {
var _local2 = random(_local5);
var _local4 = Tableau[_local3];
Tableau[_local3] = Tableau[_local2];
Tableau[_local2] = _local4;
}
}
function RefreshLeftWalls() {
i = 1;
while (i < 6) {
if (eval (("Conteneur.Batiments.LWall" + i) + ".Hp") <= 0) {
if ((eval (("Conteneur.Batiments.LWall" + (i - 1)) + ".Hp") == 0) && (eval (("Conteneur.Batiments.LWall" + (i + 1)) + ".Hp") == 0)) {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(8);
} else if (eval (("Conteneur.Batiments.LWall" + (i - 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(6);
} else if (eval (("Conteneur.Batiments.LWall" + (i + 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(7);
} else {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(5);
}
}
i++;
}
}
function RefreshRightWalls() {
i = 1;
while (i < 7) {
if (eval (("Conteneur.Batiments.RWall" + i) + ".Hp") <= 0) {
if ((eval (("Conteneur.Batiments.RWall" + (i - 1)) + ".Hp") == 0) && (eval (("Conteneur.Batiments.RWall" + (i + 1)) + ".Hp") == 0)) {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(8);
} else if (eval (("Conteneur.Batiments.RWall" + (i - 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(6);
} else if (eval (("Conteneur.Batiments.RWall" + (i + 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(7);
} else {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(5);
}
}
i++;
}
}
speedx = 0;
speedy = 0;
randomMusic = random(3) + 1;
MenuTrack = new Sound();
MenuTrack.attachSound("track_InGame" + randomMusic);
MenuTrack.stop();
MenuTrack.start(0, 999);
randomBuilding = random(6) + 1;
_global.ActualBuilding = randomBuilding;
_global.Action = "Wait";
tabFatty = [Conteneur.Fatty1, Conteneur.Fatty2, Conteneur.Fatty3, Conteneur.Fatty4, Conteneur.Fatty5, Conteneur.Fatty6];
tabSelection = [0, 0, 0, 0, 0, 0];
tabSorted = [0, 0, 0, 0, 0, 0];
noProjectile = 1;
cntNbInside = 0;
cntFoodDestroyed = 0;
nbFood = 0;
ShakeNumber = 0;
act = 1;
if (_global.NiveauCatapult == 0) {
camera_speed = 0.15;
} else if (_global.NiveauCatapult == 1) {
camera_speed = 0.2;
} else if (_global.NiveauCatapult == 2) {
camera_speed = 0.15;
} else if (_global.NiveauCatapult == 3) {
camera_speed = 0.15;
}
game_width = 800;
game_height = 440;
setTabSelection();
RandomAmmoOrder(tabSelection);
SetterAmmo();
SetterBuilding();
_global.NbWallDestroyed = 0;
_global.NbPplKilled = 0;
stop();
onEnterFrame = function () {
rotateHarm();
CameraSetting();
};
Symbol 1497 MovieClip Frame 1
stop();
Fatty1.Chobbie.gotoAndStop("SIT");
Fatty1.Chobbie.Progress.b_1.gotoAndStop(_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1);
Fatty1.Chobbie.Progress.b_2.boxx.gotoAndStop(_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1);
Fatty1.Chobbie.Progress.b_3.gotoAndStop(_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1);
Fatty1.Chobbie.Progress.b_4.gotoAndStop(_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1);
Fatty1.Chobbie.Progress.b_5.gotoAndStop(_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1);
Fatty1.Chobbie.Progress.b_6.gotoAndStop(_root.Conteneur.tabSelection[_root.Conteneur.noProjectile - 1] + 1);
Symbol 1497 MovieClip Frame 2
CatapultFail = new Sound();
CatapultFail.attachSound("sd_Catapult2Fail");
CatapultFail.start();
Symbol 1497 MovieClip Frame 100
_root.gotoAndPlay("BLUEPRINT");
Symbol 1499 MovieClip Frame 1
stop();
_parent.SetterAmmo();
Front.gotoAndStop(2);
Symbol 1500 Button
on (release) {
if (_global.Action == "Fire") {
_parent.Launch();
_root.Conteneur.Conteneur.Catapulte.Harm.play();
_global.Action = "Wait";
}
}
Symbol 1501 MovieClip Frame 1
function rotateHarm() {
Ratio1 = _root._ymouse / 440;
Ratio2 = Ratio1 * 45;
Conteneur.Arrow._rotation = Ratio2;
}
function Launch() {
trace("Launch");
Conteneur.Catapulte.play();
}
function CameraSetting() {
if (act == 1) {
what = "Batiments";
} else if (act == 2) {
what = "Start";
} else if (act == 3) {
what = "Fatty" + noProjectile;
} else if (act == 4) {
what = "Arrow";
}
if ((Conteneur._x - 1) > ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) {
Conteneur._x = Conteneur._x - (((Conteneur._x - 1) - ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) * camera_speed);
}
if ((Conteneur._x + 1) < ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) {
Conteneur._x = Conteneur._x + ((((game_width / 2) - eval (("Conteneur." + what) + "._x")) - (Conteneur._x + 1)) * camera_speed);
}
if ((Conteneur._y - 1) > ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) {
Conteneur._y = Conteneur._y - (((Conteneur._y - 1) - ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) * camera_speed);
}
if ((Conteneur._y + 1) < ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) {
Conteneur._y = Conteneur._y + ((((game_height / 2) - eval (("Conteneur." + what) + "._y")) - (Conteneur._y + 1)) * camera_speed);
}
}
function SetterAmmo() {
i = 0;
while (i < 6) {
position = tabSelection[i];
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_1").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_2.boxx").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_3").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_4").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_5").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_6").gotoAndStop(position + 1);
i++;
}
}
function SetterBuilding() {
Conteneur.Front.Cover.gotoAndStop(_global.ActualBuilding);
Conteneur.Batiments.BackGround.gotoAndStop(_global.ActualBuilding);
}
function setTabSelection() {
j = 0;
i = 0;
while (i < 15) {
if (_global.tabAmmoSelection[i] == 1) {
tabSelection[j] = i;
j++;
}
i++;
}
}
function SmackWall() {
trace("Smaking");
randomDeath = random(2) + 1;
ChubbyDie = new Sound();
ChubbyDie.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_die") + randomDeath);
ChubbyDie.start();
speedy = 0;
speedx = 0;
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie").gotoAndStop("SMACK");
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_1").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_2.boxx").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_3").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_4").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_5").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_6").gotoAndStop(tabSelection[noProjectile - 1] + 1);
}
function RandomPosition() {
randomPosition = random(5) + 1;
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie").gotoAndStop("Rnd" + randomPosition);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_1").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_2.boxx").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_3").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_4").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_5").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_6").gotoAndStop(tabSelection[noProjectile - 1] + 1);
}
function RandomAmmoOrder(Tableau) {
var _local5 = Tableau.length;
var _local3 = _local5;
while (_local3--) {
var _local2 = random(_local5);
var _local4 = Tableau[_local3];
Tableau[_local3] = Tableau[_local2];
Tableau[_local2] = _local4;
}
}
function RefreshLeftWalls() {
i = 1;
while (i < 6) {
if (eval (("Conteneur.Batiments.LWall" + i) + ".Hp") <= 0) {
if ((eval (("Conteneur.Batiments.LWall" + (i - 1)) + ".Hp") == 0) && (eval (("Conteneur.Batiments.LWall" + (i + 1)) + ".Hp") == 0)) {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(8);
} else if (eval (("Conteneur.Batiments.LWall" + (i - 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(6);
} else if (eval (("Conteneur.Batiments.LWall" + (i + 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(7);
} else {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(5);
}
}
i++;
}
}
function RefreshRightWalls() {
i = 1;
while (i < 7) {
if (eval (("Conteneur.Batiments.RWall" + i) + ".Hp") <= 0) {
if ((eval (("Conteneur.Batiments.RWall" + (i - 1)) + ".Hp") == 0) && (eval (("Conteneur.Batiments.RWall" + (i + 1)) + ".Hp") == 0)) {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(8);
} else if (eval (("Conteneur.Batiments.RWall" + (i - 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(6);
} else if (eval (("Conteneur.Batiments.RWall" + (i + 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(7);
} else {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(5);
}
}
i++;
}
}
speedx = 0;
speedy = 0;
randomMusic = random(3) + 1;
MenuTrack = new Sound();
MenuTrack.attachSound("track_InGame" + randomMusic);
MenuTrack.stop();
MenuTrack.start(0, 999);
randomBuilding = random(6) + 1;
_global.ActualBuilding = randomBuilding;
_global.Action = "Wait";
tabFatty = [Conteneur.Fatty1, Conteneur.Fatty2, Conteneur.Fatty3, Conteneur.Fatty4, Conteneur.Fatty5, Conteneur.Fatty6];
tabSelection = [0, 0, 0, 0, 0, 0];
tabSorted = [0, 0, 0, 0, 0, 0];
noProjectile = 1;
cntNbInside = 0;
cntFoodDestroyed = 0;
nbFood = 0;
ShakeNumber = 0;
act = 1;
if (_global.NiveauCatapult == 0) {
camera_speed = 0.15;
} else if (_global.NiveauCatapult == 1) {
camera_speed = 0.2;
} else if (_global.NiveauCatapult == 2) {
camera_speed = 0.15;
} else if (_global.NiveauCatapult == 3) {
camera_speed = 0.15;
}
game_width = 800;
game_height = 440;
setTabSelection();
RandomAmmoOrder(tabSelection);
SetterAmmo();
SetterBuilding();
_global.NbWallDestroyed = 0;
_global.NbPplKilled = 0;
stop();
onEnterFrame = function () {
rotateHarm();
CameraSetting();
};
Symbol 1504 MovieClip Frame 1
stop();
onEnterFrame = function () {
RatioAngle = _root.Conteneur.Conteneur.Arrow._rotation / 45;
NewAngle = RatioAngle * 35;
_rotation = NewAngle;
};
Symbol 1504 MovieClip Frame 2
stop();
trace("Kaboum");
onEnterFrame = function () {
RatioAngle = _root.Conteneur.Conteneur.Arrow._rotation / 45;
NewAngle = RatioAngle * 35;
_rotation = NewAngle;
};
Symbol 1505 MovieClip Frame 1
stop();
Symbol 1505 MovieClip Frame 2
_global.Action = "Wait";
CataLaunch = new Sound();
CataLaunch.attachSound("sd_Canon1Shoot");
CataLaunch.start();
Boucanne.play();
_root.speedy = (((_root.Conteneur.Arrow._rotation - 45) * -1) / 45) * -43;
if (_root.speedy > -5) {
_root.speedy = -5;
}
eval ((("_root.SoundEffects.Perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_Fly") + randomLaunch).gotoAndPlay(2);
_root.act = 3;
_root.tabFatty[_root.noProjectile - 1].canMove = true;
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie").gotoAndStop("FLY");
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_1").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_2").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_3").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_4").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_5").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
eval (("_root.Conteneur.Fatty" + _root.noProjectile) + ".Chobbie.Progress.b_6").gotoAndStop(_root.tabSelection[_root.noProjectile - 1] + 1);
gotoAndStop (1);
Symbol 1505 MovieClip Frame 3
Boucanne.play();
Kanon.gotoAndStop(2);
Symbol 1505 MovieClip Frame 100
_root.gotoAndPlay("BLUEPRINT");
Symbol 1506 MovieClip Frame 1
stop();
Symbol 1507 MovieClip Frame 1
stop();
_parent.SetterAmmo();
Front.gotoAndStop(2);
Symbol 1508 Button
on (release) {
if (_global.Action == "Fire") {
_parent.Launch();
_root.Conteneur.Conteneur.Catapulte.Harm.gotoAndPlay(3);
_global.Action = "Wait";
CataLaunch = new Sound();
CataLaunch.attachSound("sd_Canon1Fail");
CataLaunch.start();
}
}
Symbol 1509 MovieClip Frame 1
function rotateHarm() {
Ratio1 = _root._ymouse / 440;
Ratio2 = Ratio1 * 45;
Conteneur.Arrow._rotation = Ratio2;
}
function Launch() {
trace("Launch");
Conteneur.Catapulte.play();
}
function CameraSetting() {
if (act == 1) {
what = "Batiments";
} else if (act == 2) {
what = "Start";
} else if (act == 3) {
what = "Fatty" + noProjectile;
} else if (act == 4) {
what = "Arrow";
}
if ((Conteneur._x - 1) > ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) {
Conteneur._x = Conteneur._x - (((Conteneur._x - 1) - ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) * camera_speed);
}
if ((Conteneur._x + 1) < ((game_width / 2) - eval (("Conteneur." + what) + "._x"))) {
Conteneur._x = Conteneur._x + ((((game_width / 2) - eval (("Conteneur." + what) + "._x")) - (Conteneur._x + 1)) * camera_speed);
}
if ((Conteneur._y - 1) > ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) {
Conteneur._y = Conteneur._y - (((Conteneur._y - 1) - ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) * camera_speed);
}
if ((Conteneur._y + 1) < ((game_height / 2) - eval (("Conteneur." + what) + "._y"))) {
Conteneur._y = Conteneur._y + ((((game_height / 2) - eval (("Conteneur." + what) + "._y")) - (Conteneur._y + 1)) * camera_speed);
}
}
function SetterAmmo() {
i = 0;
while (i < 6) {
position = tabSelection[i];
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_1").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_2.boxx").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_3").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_4").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_5").gotoAndStop(position + 1);
eval (("Conteneur.Fatty" + (i + 1)) + ".Chobbie.Progress.b_6").gotoAndStop(position + 1);
i++;
}
}
function SetterBuilding() {
Conteneur.Front.Cover.gotoAndStop(_global.ActualBuilding);
Conteneur.Batiments.BackGround.gotoAndStop(_global.ActualBuilding);
}
function setTabSelection() {
j = 0;
i = 0;
while (i < 15) {
if (_global.tabAmmoSelection[i] == 1) {
tabSelection[j] = i;
j++;
}
i++;
}
}
function SmackWall() {
trace("Smaking");
randomDeath = random(2) + 1;
ChubbyDie = new Sound();
ChubbyDie.attachSound((("perso" + (_root.tabSelection[_root.noProjectile - 1] + 1)) + "_die") + randomDeath);
ChubbyDie.start();
speedy = 0;
speedx = 0;
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie").gotoAndStop("SMACK");
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_1").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_2.boxx").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_3").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_4").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_5").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_6").gotoAndStop(tabSelection[noProjectile - 1] + 1);
}
function RandomPosition() {
randomPosition = random(5) + 1;
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie").gotoAndStop("Rnd" + randomPosition);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_1").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_2.boxx").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_3").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_4").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_5").gotoAndStop(tabSelection[noProjectile - 1] + 1);
eval (("Conteneur.Fatty" + noProjectile) + ".Chobbie.Progress.b_6").gotoAndStop(tabSelection[noProjectile - 1] + 1);
}
function RandomAmmoOrder(Tableau) {
var _local5 = Tableau.length;
var _local3 = _local5;
while (_local3--) {
var _local2 = random(_local5);
var _local4 = Tableau[_local3];
Tableau[_local3] = Tableau[_local2];
Tableau[_local2] = _local4;
}
}
function RefreshLeftWalls() {
i = 1;
while (i < 6) {
if (eval (("Conteneur.Batiments.LWall" + i) + ".Hp") <= 0) {
if ((eval (("Conteneur.Batiments.LWall" + (i - 1)) + ".Hp") == 0) && (eval (("Conteneur.Batiments.LWall" + (i + 1)) + ".Hp") == 0)) {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(8);
} else if (eval (("Conteneur.Batiments.LWall" + (i - 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(6);
} else if (eval (("Conteneur.Batiments.LWall" + (i + 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(7);
} else {
eval (("Conteneur.Batiments.LWall" + i) + ".Wall").gotoAndStop(5);
}
}
i++;
}
}
function RefreshRightWalls() {
i = 1;
while (i < 7) {
if (eval (("Conteneur.Batiments.RWall" + i) + ".Hp") <= 0) {
if ((eval (("Conteneur.Batiments.RWall" + (i - 1)) + ".Hp") == 0) && (eval (("Conteneur.Batiments.RWall" + (i + 1)) + ".Hp") == 0)) {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(8);
} else if (eval (("Conteneur.Batiments.RWall" + (i - 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(6);
} else if (eval (("Conteneur.Batiments.RWall" + (i + 1)) + ".Hp") == 0) {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(7);
} else {
eval (("Conteneur.Batiments.RWall" + i) + ".Wall").gotoAndStop(5);
}
}
i++;
}
}
speedx = 0;
speedy = 0;
randomMusic = random(3) + 1;
MenuTrack = new Sound();
MenuTrack.attachSound("track_InGame" + randomMusic);
MenuTrack.stop();
MenuTrack.start(0, 999);
randomBuilding = random(6) + 1;
_global.ActualBuilding = randomBuilding;
_global.Action = "Wait";
tabFatty = [Conteneur.Fatty1, Conteneur.Fatty2, Conteneur.Fatty3, Conteneur.Fatty4, Conteneur.Fatty5, Conteneur.Fatty6];
tabSelection = [0, 0, 0, 0, 0, 0];
tabSorted = [0, 0, 0, 0, 0, 0];
noProjectile = 1;
cntNbInside = 0;
cntFoodDestroyed = 0;
nbFood = 0;
ShakeNumber = 0;
act = 1;
if (_global.NiveauCatapult == 0) {
camera_speed = 0.15;
} else if (_global.NiveauCatapult == 1) {
camera_speed = 0.2;
} else if (_global.NiveauCatapult == 2) {
camera_speed = 0.15;
} else if (_global.NiveauCatapult == 3) {
camera_speed = 0.15;
}
game_width = 800;
game_height = 440;
setTabSelection();
RandomAmmoOrder(tabSelection);
SetterAmmo();
SetterBuilding();
_global.NbWallDestroyed = 0;
_global.NbPplKilled = 0;
stop();
onEnterFrame = function () {
rotateHarm();
CameraSetting();
};
Symbol 1529 MovieClip Frame 112
if (_global.NiveauCatapult == 0) {
_global.NiveauCatapult = 1;
gotoAndPlay ("CATA2");
} else if (_global.NiveauCatapult == 1) {
_global.NiveauCatapult = 2;
gotoAndPlay ("CANON1");
} else if (_global.NiveauCatapult == 2) {
_global.NiveauCatapult = 3;
gotoAndPlay ("CANON2");
}
Symbol 1529 MovieClip Frame 144
stop();
_root.TimerCata.play();
Symbol 1529 MovieClip Frame 176
stop();
_root.TimerCata.play();
Symbol 1529 MovieClip Frame 202
stop();
_root.TimerCata.play();
Symbol 1530 MovieClip Frame 1
stop();
Symbol 1530 MovieClip Frame 100
_global.Action = "BluePrint";
_root.gotoAndStop("SUBMENU");