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:"0062962635f39d83", res:"800x440"});
__com_mochibot__("6183989e", this, 10301, true);
lavr = 13;
function menuChoiceOne() {
getURL ("http://www.pyrozen.com");
}
stop();
_root.user = SharedObject.getLocal("user_BrainBuffet");
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 19
stop();
onEnterFrame = function () {
if (_root.got2go == 2) {
_root.got2go = 1;
gotoAndStop (20);
}
};
Frame 20
function SaveGame() {
_global.NewGame = false;
_root.user.data.NewGame = _global.NewGame;
_root.user.data.DamageUpgrade = _global.DamageUpgrade;
_root.user.data.SpeedUpgrade = _global.SpeedUpgrade;
_root.user.data.RangeUpgrade = _global.RangeUpgrade;
_root.user.data.PlayerHealtUpgrade = _global.PlayerHealtUpgrade;
_root.user.data.nbBrains = _global.nbBrains;
_root.user.data.Level = _global.Level;
_root.user.data.tabAccesLevel = _global.tabAccesLevel;
_root.user.data.HardcoreMode = _global.HardcoreMode;
_root.user.data.TabLockedSkin = _global.TabLockedSkin;
_root.user.data.TabLockedExtras = _global.TabLockedExtras;
}
stop();
if (volume == undefined) {
volume = 75;
}
if ((_root.user.data.NewGame != undefined) && (_global.NewGame == undefined)) {
_global.NewGame = false;
_global.LoadGame = true;
}
if (_global.NewGame == undefined) {
_global.NewGame = true;
_global.LoadGame = false;
}
if ((_root.user.data.DamageUpgrade != undefined) && (_global.DamageUpgrade == undefined)) {
_global.DamageUpgrade = _root.user.data.DamageUpgrade;
}
if (_global.DamageUpgrade == undefined) {
_global.DamageUpgrade = 0;
}
if ((_root.user.data.SpeedUpgrade != undefined) && (_global.SpeedUpgrade == undefined)) {
_global.SpeedUpgrade = _root.user.data.SpeedUpgrade;
}
if (_global.SpeedUpgrade == undefined) {
_global.SpeedUpgrade = 0;
}
if ((_root.user.data.RangeUpgrade != undefined) && (_global.RangeUpgrade == undefined)) {
_global.RangeUpgrade = _root.user.data.RangeUpgrade;
}
if (_global.RangeUpgrade == undefined) {
_global.RangeUpgrade = 0;
}
if ((_root.user.data.PlayerHealtUpgrade != undefined) && (_global.PlayerHealtUpgrade == undefined)) {
_global.PlayerHealtUpgrade = _root.user.data.PlayerHealtUpgrade;
}
if (_global.PlayerHealtUpgrade == undefined) {
_global.PlayerHealtUpgrade = 0;
}
if ((_root.user.data.nbBrains != undefined) && (_global.nbBrains == undefined)) {
_global.nbBrains = _root.user.data.nbBrains;
}
if (_global.nbBrains == undefined) {
_global.nbBrains = 0;
}
if ((_root.user.data.Level != undefined) && (_global.Level == undefined)) {
_global.Level = _root.user.data.Level;
}
if (_global.Level == undefined) {
_global.Level = 0;
}
if ((_root.user.data.tabAccesLevel != undefined) && (_global.tabAccesLevel == undefined)) {
_global.tabAccesLevel = _root.user.data.tabAccesLevel;
}
if (_global.tabAccesLevel == undefined) {
_global.tabAccesLevel = [1, 1, 1, 1, 1, 1];
}
if ((_root.user.data.HardcoreMode != undefined) && (_global.HardcoreMode == undefined)) {
_global.HardcoreMode = _root.user.data.HardcoreMode;
}
if (_global.HardcoreMode == undefined) {
_global.HardcoreMode = false;
}
if ((_root.user.data.TabLockedSkin != undefined) && (_global.TabLockedSkin == undefined)) {
_global.TabLockedSkin = _root.user.data.TabLockedSkin;
}
if (_global.TabLockedSkin == undefined) {
_global.TabLockedSkin = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
}
if ((_root.user.data.TabLockedExtras != undefined) && (_global.TabLockedExtras == undefined)) {
_global.TabLockedExtras = _root.user.data.TabLockedExtras;
}
if (_global.TabLockedExtras == undefined) {
_global.TabLockedExtras = [1, 1, 1, 1, 1];
}
_global.ActualHead = 1;
_global.ActualBody = 1;
_global.BodyLocked = false;
_global.HeadLocked = false;
_global.tabPlayerDamage = [3, 5, 7, 9, 12];
_global.tabPlayerDamageCost = [5, 15, 30, 50, "MAXED"];
_global.tabSpeed = [6, 9, 12, 16, 20];
_global.tabSpeedUpgradeCost = ["LOCKED", 15, 30, 50, "MAXED"];
_global.tabAttackRange = [50, 65, 80, 95, 110];
_global.tabAttackRangeUpgradeCost = [5, 15, 30, 50, "MAXED"];
_global.tabPlayerHealt = [200, 300, 400, 550, 800];
_global.tabPlayerHealtUpgradeCost = [5, 15, 30, 50, "MAXED"];
_global.tabEnnemyDamage = [2, 5, 10];
_global.tabEnnemyFireRange = [140, 150, 155];
_global.tabEnnemyAggroRange = [150, 170, 190, 210, 230, 150];
_global.tabEnnemyFireRate = [900, 600, 200];
_global.tabNbEnnemy = [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8];
_global.tabPopulation = [20, 25, 35, 50, 65, 20];
_global.ActualCity = 1;
_global.StadeTuto = 1;
_global.Reputation = 0;
_global.nbRock = 0;
_global.PoliceStade = 0;
_global.AtsuNingen = 0;
_global.nbSpittBall = 0;
_global.tabMapSizeX = [2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000];
_global.tabMapSizeY = [200, 200, 200, 200, 200, 200, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 200, 200, 200, 200, 200, 200, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000];
_global.SpawnGameOver = false;
_global.LevelFinished = false;
_global.CanDoDamage = true;
_global.ActualLocked = false;
_global.AnimeIt = true;
_global.Toche = false;
_global.Castor = false;
_global.Kuma = false;
_global.Mime = false;
_global.Panda = false;
Instance of Symbol 637 MovieClip "btn2" in Frame 20
onClipEvent (load) {
boxx.txx = "Load Game";
if (_global.LoadGame) {
_alpha = 100;
} else {
_alpha = 50;
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
if (_global.LoadGame) {
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
_root.gotoAndStop("SUBMENU");
}
}
}
Instance of Symbol 637 MovieClip "btn1" in Frame 20
onClipEvent (load) {
boxx.txx = "More Games";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.gamesfree.ca/", "_blank");
}
}
Instance of Symbol 637 MovieClip "btn3" in Frame 20
onClipEvent (load) {
if (_global.LoadGame) {
boxx.txx = "New Game";
} else {
boxx.txx = "Start";
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
if (boxx.txx == "New Game") {
_global.NewGame = true;
_global.DamageUpgrade = 0;
_global.SpeedUpgrade = 0;
_global.RangeUpgrade = 0;
_global.PlayerHealtUpgrade = 0;
_global.nbBrains = 0;
_global.Level = 0;
_global.tabAccesLevel = [1, 0, 0, 0, 0, 0];
_global.HardcoreMode = false;
_global.TabLockedSkin = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
_global.TabLockedExtras = [1, 1, 1, 1, 1];
_global.Level = 0;
}
_global.StadeTuto = 1;
_root.gotoAndStop("SUBMENU");
}
}
Instance of Symbol 876 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_Menu2");
MenuTrack.stop();
MenuTrack.setVolume(_root.volume);
MenuTrack.start(0, 9999);
_global.StadeTuto = 0;
onEnterFrame = function () {
strBrains = "Brains x" + _global.nbBrains;
};
Frame 22
_global.HardcoreMode = true;
stop();
Instance of Symbol 637 MovieClip "btn2" in Frame 22
onClipEvent (load) {
boxx.txx = "Hardcore Mode";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
_root.SaveGame();
_root.gotoAndStop("SUBMENU");
}
}
Frame 23
stop();
Frame 24
stop();
Frame 39
stop();
Frame 40
stop();
Frame 51
function Controlz() {
if (Key.isDown(81) && (!QualityLock)) {
QualityLock = true;
if (_root._quality == "HIGH") {
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
_root._quality = "LOW";
} else {
_root._quality = "HIGH";
}
}
if ((!Key.isDown(81)) && (QualityLock)) {
QualityLock = false;
}
if ((!Player.Dead) && (_global.StadeTuto >= 2)) {
if ((((Key.isDown(38) && (!Key.isDown(32))) && (!Jumping)) && (ActualStatus != "Bumbed")) && (ActualStatus != "GetShot")) {
if (!_global.CheatGottaGoFast) {
Player._y = Player._y - _global.tabSpeed[_global.SpeedUpgrade];
} else {
Player._y = Player._y - 20;
}
if (ActualStatus != "Walking") {
Player.Mang.gotoAndPlay("StartWalking");
ActualStatus = "Walking";
}
}
if ((((Key.isDown(40) && (!Key.isDown(32))) && (!Jumping)) && (ActualStatus != "Bumbed")) && (ActualStatus != "GetShot")) {
if (!_global.CheatGottaGoFast) {
Player._y = Player._y + _global.tabSpeed[_global.SpeedUpgrade];
} else {
Player._y = Player._y + 20;
}
if (ActualStatus != "Walking") {
Player.Mang.gotoAndPlay("StartWalking");
ActualStatus = "Walking";
}
}
if ((((Key.isDown(37) && (!Key.isDown(32))) && (!Jumping)) && (ActualStatus != "Bumbed")) && (ActualStatus != "GetShot")) {
if (!_global.CheatGottaGoFast) {
Player._x = Player._x - _global.tabSpeed[_global.SpeedUpgrade];
} else {
Player._x = Player._x - 20;
}
if (ActualStatus != "Walking") {
Player.Mang.gotoAndPlay("StartWalking");
ActualStatus = "Walking";
}
Player.Mang._xscale = -40;
}
if ((((Key.isDown(39) && (!Key.isDown(32))) && (!Jumping)) && (ActualStatus != "Bumbed")) && (ActualStatus != "GetShot")) {
if (!_global.CheatGottaGoFast) {
Player._x = Player._x + _global.tabSpeed[_global.SpeedUpgrade];
} else {
Player._x = Player._x + 20;
}
if (ActualStatus != "Walking") {
Player.Mang.gotoAndPlay("StartWalking");
ActualStatus = "Walking";
}
Player.Mang._xscale = 40;
}
if (((((((Key.isDown(88) && (!Jumping)) && (!Key.isDown(39))) && (!Key.isDown(37))) && (JumpSpeed == 0)) && (ActualStatus != "Bumbed")) && (!Key.isDown(32))) && (ActualStatus != "GetShot")) {
ActualStatus = "JumpTransition";
_global.ActualTarget = "None";
Player.Mang.gotoAndPlay("Jump2");
BaseJump = Player._y;
Jumping = true;
}
if ((((((Key.isDown(88) && (!Jumping)) && (Key.isDown(39))) && (JumpSpeed == 0)) && (ActualStatus != "Bumbed")) && (!Key.isDown(32))) && (ActualStatus != "GetShot")) {
ActualStatus = "JumpTransition";
Player.Mang.gotoAndPlay("Jump");
BaseJump = Player._y;
Jumping = true;
_global.ActualTarget = "None";
SideJumpRight = true;
}
if ((((((Key.isDown(88) && (!Jumping)) && (Key.isDown(37))) && (JumpSpeed == 0)) && (ActualStatus != "Bumbed")) && (!Key.isDown(32))) && (ActualStatus != "GetShot")) {
ActualStatus = "JumpTransition";
Player.Mang.gotoAndPlay("Jump");
BaseJump = Player._y;
Jumping = true;
_global.ActualTarget = "None";
SideJumpLeft = true;
}
if ((((((((Key.isDown(90) && (!Jumping)) && (!Key.isDown(39))) && (!Key.isDown(37))) && (JumpSpeed == 0)) && (ActualStatus != "Bumbed")) && (!Key.isDown(32))) && (!Spitting)) && (_global.nbBrains >= 1)) {
Spitting = true;
ActualStatus = "Spit";
_global.ActualTarget = "None";
Player.Mang.gotoAndPlay("Spit");
}
if (!Key.isDown(90)) {
Spitting = false;
}
if (((((((!Key.isDown(39)) && (!Key.isDown(37))) && (!Key.isDown(38))) && (!Key.isDown(40))) && (ActualStatus == "Walking")) && (!Jumping)) && (_global.ActualTarget == "None")) {
ActualStatus = "Chilling";
Player.Mang.gotoAndPlay("StartChilling");
}
if (((!Key.isDown(32)) && (ActualStatus == "Eating")) && (ActualStatus != "Bumbed")) {
ActualStatus = "GetUp";
Player.Mang.gotoAndPlay("GetUp");
}
if (((((!Key.isDown(32)) && (CanAttack)) && (Prey.Hurted)) && (ActualStatus != "Bumbed")) && (!Prey.OnGround)) {
if (Prey.mode != "Hurted") {
Prey.mode = "Hurted";
Prey.OnGround = true;
if (!Prey.Felt) {
Prey.Felt = true;
Prey.Mang.gotoAndPlay("Hurt");
}
}
}
if (!Key.isDown(32)) {
if ((ActualStatus == "Walking") && ((_root.Conteneur.Player.Mang._currentframe > 200) || (_root.Conteneur.Player.Mang._currentframe < 101))) {
_root.Conteneur.Player.Mang.gotoAndStop("StartWalking");
}
_global.ActualTarget.mode = "Hurted";
_global.ActualTarget = "None";
}
if ((((Key.isDown(32) && (CanAttack)) && (!Jumping)) && (ActualStatus != "Hurt")) && (ActualStatus != "Bumbed")) {
if (_global.ActualTarget == "None") {
_global.ActualTarget = Prey;
}
if (!_global.ActualTarget.OnGround) {
if (_global.ActualTarget.mode != "BeeingEaten") {
Player.Mang.gotoAndPlay("Eating");
_global.ActualTarget.mode = "BeeingEaten";
_global.ActualTarget.Mang.gotoAndPlay("BeeingEaten");
}
} else if ((ActualStatus != "GetShot") && (ActualStatus != "Bumped")) {
if (_global.ActualTarget.mode != "BeeingEaten") {
if (_global.ActualTarget.Mang._xscale == 40) {
Player.Mang._xscale = 40;
} else if ((_global.ActualTarget.Mang._xscale = -40)) {
Player.Mang._xscale = -40;
}
if (!_global.ActualTarget.onFace) {
_global.ActualTarget.Mang.gotoAndPlay("Bleed2_1");
} else {
_global.ActualTarget.Mang.gotoAndPlay("Bleed2_2");
Player.Mang._xscale = Player.Mang._xscale * -1;
}
Player.Mang.gotoAndPlay("Eating2");
_global.ActualTarget.mode = "BeeingEaten";
}
}
_global.ActualTarget.Hurted = true;
Player._x = _global.ActualTarget._x;
Player._y = _global.ActualTarget._y + 1;
if (_root.Conteneur.Player.Mang._currentframe < 201) {
_root.Conteneur.Player.Mang.gotoAndPlay(202);
}
if ((_global.ActualTarget.Hp > 0) && (_global.CanDoDamage)) {
ActualStatus = "Eating";
_global.ActualTarget.HealtTimer.gotoAndPlay(2);
_global.ActualTarget.HealtBar._alpha = 100;
_global.ActualTarget.Hp = _global.ActualTarget.Hp - _global.tabPlayerDamage[_global.DamageUpgrade];
if (_global.ActualTarget.Hp < 0) {
_global.ActualTarget.Hp = 0;
}
BrainPower = BrainPower + _global.tabPlayerDamage[_global.DamageUpgrade];
_global.ActualTarget.HealtBar.Healt._xscale = (_global.ActualTarget.Hp / _global.ActualTarget.MaxHp) * 100;
if (_global.ActualTarget.Hp <= 0) {
if (!_global.ActualTarget.OnGround) {
_global.ActualTarget.Mang.gotoAndPlay("Dying1");
}
if ((substring(_global.ActualTarget._name, 1, 1)) == "S") {
nbShooterKilled++;
IncreaseReput();
} else {
SpawnOneEnnemy();
}
nbHumanKilled++;
_global.ActualTarget.Dead = true;
Prey = "None";
ActualStatus = "GetUp";
Player.Mang.gotoAndPlay("GetUp");
IncreaseReput();
}
}
}
}
}
function CameraSetting() {
if (act == 1) {
what = "Player";
}
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._x > 1050) {
Conteneur._x = 1050;
}
if (Conteneur._x < -200) {
Conteneur._x = -200;
}
}
function AssignerDepth() {
i = 0;
tempVar = 0;
while (i < tabAllElements.length) {
if ((i == 0) || (tabAllElements[i - 1]._y <= tabAllElements[i]._y)) {
i++;
} else {
tempVar = tabAllElements[i];
tabAllElements[i] = tabAllElements[i - 1];
tabAllElements[--i] = tempVar;
}
}
i = 0;
while (i < tabAllElements.length) {
tabAllElements[i].swapDepths(4000 + i);
i++;
}
if (Jumping && (JumpSpeed != 0)) {
Player.swapDepths(4000 + i);
}
}
function SetTableauElement() {
tabAllElements.push(Conteneur.Player);
i = 0;
while (i < _global.tabNbEnnemy[_global.Level]) {
tabAllElements.push(eval ("Conteneur.Ennemy_" + i));
i++;
}
}
function createEnemies() {
nombreEnnemy = nombreEnnemy;
while (nombreEnnemy < _global.tabNbEnnemy[_global.Level]) {
tempEnemy = _root.Conteneur.attachMovie("Ennemy", "Ennemy_" + nombreEnnemy, _root.getNextHighestDepth() + nombreEnnemy);
tempEnemy._x = random(2000) - 1000;
tempEnemy._y = random(145) + 65;
tempEnemy.Hurted = false;
tempEnemy.Dead = false;
tempEnemy.Felt = false;
tempEnemy.MaxHp = 100;
tempEnemy.Hp = 100;
tempEnemy.speed = 2;
tempEnemy.turnRate = 0.2;
tempEnemy.agroRange = 180;
tempEnemy.mode = "run";
tempEnemy.Mang.gotoAndPlay("StartRunning");
tempEnemy.destinationX = tempEnemy._x - 150;
tempEnemy.destinationY = tempEnemy._y;
tempEnemy.CallPlayed = false;
tempEnemy.VelocityX = 0;
tempEnemy.VelocityY = 0;
tempEnemy.speedY = 1;
tempEnemy.RunningSide = random(2);
if (tempEnemy.RunningSide == 1) {
tempEnemy.RunningSide = "LEFT";
} else if (tempEnemy.RunningSide == 0) {
tempEnemy.RunningSide = "RIGHT";
}
tempEnemy.Altitude = random(2);
if (tempEnemy.Altitude == 1) {
tempEnemy.Altitude = "UP";
} else if (tempEnemy.Altitude == 0) {
tempEnemy.Altitude = "DOWN";
}
tempEnemy.distanceX = 0;
tempEnemy.distanceY = 0;
tempEnemy.distanceTotal = 0;
tempEnemy.moveDistanceX = 0;
tempEnemy.moveDistanceY = 0;
tempEnemy.moveX = 0;
tempEnemy.moveY = 0;
tempEnemy.totalmove = 0;
enemiesArray.push(tempEnemy);
nombreEnnemy++;
}
}
function createFiremen() {
tempEnemy = _root.Conteneur.attachMovie("Shooter", "Shooter_" + nombreShooter, (_root.getNextHighestDepth() + 100) + nombreShooter);
tempEnemy._x = 1100;
tempEnemy._y = random(145) + 65;
tempEnemy.Hurted = false;
tempEnemy.Dead = false;
tempEnemy.Felt = false;
tempEnemy.speed = 2;
tempEnemy.turnRate = 0.2;
tempEnemy.agroRange = 180;
tempEnemy.mode = "run";
tempEnemy.Mang.gotoAndPlay("StartRunning");
tempEnemy.destinationX = tempEnemy._x - 50;
tempEnemy.destinationY = tempEnemy._y;
tempEnemy.DistanceX = 0;
tempEnemy.DistanceY = 0;
tempEnemy.VelocityX = 0;
tempEnemy.VelocityY = 0;
tempEnemy.speedY = 1;
tempEnemy.RunningSide = random(2);
if (tempEnemy.RunningSide == 1) {
tempEnemy.RunningSide = "LEFT";
} else if (tempEnemy.RunningSide == 0) {
tempEnemy.RunningSide = "RIGHT";
}
tempEnemy.Altitude = random(2);
if (tempEnemy.Altitude == 1) {
tempEnemy.Altitude = "UP";
} else if (tempEnemy.Altitude == 0) {
tempEnemy.Altitude = "DOWN";
}
tempEnemy.distanceX = 0;
tempEnemy.distanceY = 0;
tempEnemy.distanceTotal = 0;
tempEnemy.moveDistanceX = 0;
tempEnemy.moveDistanceY = 0;
tempEnemy.moveX = 0;
tempEnemy.moveY = 0;
tempEnemy.totalmove = 0;
tabShootingEnnemy.push(tempEnemy);
tabAllElements.push(tempEnemy);
nombreShooter++;
}
function updateEnemies() {
SpaceBar.gotoAndStop(2);
CanAttack = false;
Prey = "None";
var _local1 = 0;
while (_local1 < enemiesArray.length) {
updatePosition(enemiesArray[_local1], Player);
_local1++;
}
_local1 = 0;
while (_local1 < tabShootingEnnemy.length) {
updatePosition(tabShootingEnnemy[_local1], Player);
_local1++;
}
}
function updatePosition(follower, target) {
if (!follower.Dead) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
follower.moveX = follower.speed;
follower.moveY = follower.speedY;
if (!follower.Hurted) {
if ((((follower._x < (_root.Conteneur.Player._x + 150)) && (follower._x > (_root.Conteneur.Player._x - 150))) && (!follower.CallPlayed)) && (_global.VoiceEnable)) {
randomCinquieme = random(6) + 1;
if (randomCinquieme == 1) {
if ((substring(follower._name, 1, 1)) != "S") {
_global.VoiceEnable = false;
_root.VoiceTimer.play();
follower.CallPlayed = true;
if (follower.Mang.b_1._currentframe < 5) {
randomCall = random(3) + 1;
CallSound = new Sound();
CallSound.attachSound("sd_GuyCall" + randomCall);
CallSound.start();
} else {
randomCall = random(4) + 1;
CallSound = new Sound();
CallSound.attachSound("sd_WomenCall" + randomCall);
CallSound.start();
}
}
}
}
if (follower.RunningSide == "LEFT") {
follower._x = follower._x - follower.moveX;
follower.Mang._xscale = 40;
} else if (follower.RunningSide == "RIGHT") {
follower._x = follower._x + follower.moveX;
follower.Mang._xscale = -40;
} else {
follower.removeMovieClip();
}
if (follower.Altitude == "UP") {
follower._y = follower._y - follower.moveY;
} else if (follower.Altitude == "DOWN") {
follower._y = follower._y + follower.moveY;
}
if (follower._x < -1200) {
follower.CallPlayed = false;
follower._x = 1200;
follower._y = random(145) + 65;
} else if (follower._x > 1200) {
follower.CallPlayed = false;
follower._x = -1200;
follower._y = random(145) + 65;
}
if (follower._y < 80) {
follower.Altitude = "DOWN";
} else if (follower._y > 200) {
follower.Altitude = "UP";
}
}
if ((follower.distanceTotal <= _global.tabAttackRange[_global.RangeUpgrade]) && (Prey == "None")) {
if (follower.distanceY < 0) {
follower.newHauteur = follower.distanceY * -1;
} else {
follower.newHauteur = follower.distanceY;
}
if (follower.newHauteur <= (_global.tabAttackRange[_global.RangeUpgrade] / 2)) {
CanAttack = true;
Prey = follower;
SpaceBar.gotoAndStop(1);
}
}
if (follower.mode == "Hurted") {
if (follower.Hp > 0) {
follower.HealtTimer.gotoAndPlay(2);
follower.HealtBar._alpha = 100;
follower.Hp = follower.Hp - 0.2;
follower.HealtBar.Healt._xscale = (follower.Hp / follower.MaxHp) * 100;
if (follower.Hp <= 0) {
follower.Mang.gotoAndPlay("Dead2");
follower.Dead = true;
if ((substring(Prey._name, 1, 1)) == "S") {
nbShooterKilled++;
} else {
SpawnOneEnnemy();
}
nbHumanKilled++;
IncreaseReput();
}
}
}
}
}
function getRandomDestination(Target) {
if (((!Target.Hurted) && (!Target.Dead)) && (Target.mode != "firing")) {
Target.mode = "run";
Target.Mang.gotoAndPlay("StartRunning");
Target.destinationX = Target._x - 300;
Target.destinationY = Target._y;
if (Target.destinationX > Target._x) {
Target.Mang._xscale = -40;
} else {
Target.Mang._xscale = 40;
}
}
}
function getDistance(delta_x, delta_y) {
return(Math.sqrt((delta_x * delta_x) + (delta_y * delta_y)));
}
function FinLevel() {
_root.SaveGame();
_root.gotoAndStop("SUBMENU");
}
function DoJump() {
if (Jumping) {
if (JumpSpeed > 5) {
JumpSpeed = JumpSpeed * 0.9;
if (JumpSpeed <= 5) {
JumpSpeed = JumpSpeed * -1;
}
} else if (JumpSpeed < 0) {
JumpSpeed = JumpSpeed * 1.2;
}
if (Player._y <= BaseJump) {
JumpXSpeed = JumpXSpeed * 0.96;
Player._x = Player._x + JumpXSpeed;
Player._y = Player._y - JumpSpeed;
} else {
JumpXSpeed = 0;
JumpSpeed = 0;
Jumping = false;
}
}
}
function SpawnVehicule() {
Conteneur.HitVehicule.nbRun = 0;
Conteneur.HitVehicule.Roll = true;
Conteneur.HitVehicule.RunningSide = random(2);
if (Conteneur.HitVehicule.RunningSide == 1) {
Conteneur.HitVehicule.RunningSide = "RIGHT";
Conteneur.HitVehicule.Car._xscale = 100;
Conteneur.HitVehicule._x = -1100;
} else {
Conteneur.HitVehicule.RunningSide = "LEFT";
Conteneur.HitVehicule.Car._xscale = -100;
Conteneur.HitVehicule._x = 1100;
}
RandomAlt = random(2);
if (RandomAlt == 1) {
Conteneur.HitVehicule._y = 120;
} else {
Conteneur.HitVehicule._y = 170;
}
randomVoiture = random(5) + 1;
Conteneur.HitVehicule.Car.gotoAndStop(randomVoiture);
}
function ReleaseTarget() {
if (_global.ActualTarget.mode != "Hurted") {
_global.ActualTarget.mode = "Hurted";
_global.ActualTarget.OnGround = true;
if (!_global.ActualTarget.Felt) {
_global.ActualTarget.Felt = true;
_global.ActualTarget.Mang.gotoAndPlay("Hurt");
}
}
}
stop();
trace("LEVEL:" + _global.Level);
RandomSong = random(2);
_global.ActualTarget = "None";
nombreEnnemy = 0;
nombreShooter = 0;
_global.Reputation = 0;
_global.ActualCity = 1;
if (RandomSong == 1) {
MenuTrack = new Sound();
MenuTrack.attachSound("Track_Muz1");
MenuTrack.stop();
MenuTrack.start(0, 999);
} else {
MenuTrack = new Sound();
MenuTrack.attachSound("Track_Muz2");
MenuTrack.stop();
MenuTrack.start(0, 999);
}
DestinationX = 0;
DestinationY = 0;
JumpSpeed = 0;
BaseJump = 0;
JumpXSpeed = 0;
Player = Conteneur.Player;
tabAllElements = [];
enemiesArray = [];
tabShootingEnnemy = [];
tabFire = [];
tabArbres = [];
tabBuilding = [];
TempsActuel = 0;
TempsTotal = 3000;
moveSpeedMax = 1500;
BrainPower = 0;
ActualStatus = "Chilling";
uniqueItemId = 0;
uniqueBloodId = 0;
Objective1 = "";
Objective1Text = "";
Objective2 = "";
Objective2Text = "";
Ojvective3 = "";
Objective3Text = "";
Objective1Completed = false;
Objective2Completed = false;
Objective3Completed = false;
getInPlane = false;
CanAttack = false;
Jumping = false;
SideJumpRight = false;
SideJumpLeft = false;
QualityLock = false;
Spitting = false;
_global.SpawnGameOver = false;
_global.LevelFinished = false;
_global.CanDoDamage = false;
_global.Toche = false;
_global.Castor = false;
_global.Kuma = false;
_global.Mime = false;
_global.Panda = false;
nbHumanKilled = 0;
nbShooterKilled = 0;
nbBrainObtained = 0;
nbArbre = 0;
nbBuilding = 0;
_global.AtsuNingen = 0;
Prey = "None";
act = 1;
camera_speed = 0.1;
game_width = 800;
game_height = 440;
_root.createEmptyMovieClip("movFrameRate", 100);
_root.movFrameRate.onEnterFrame = function () {
this.t = getTimer();
this.frameRate = Math.round(1000 / (this.t - this.o));
_root.FramePerSec = this.frameRate;
this.o = this.t;
};
onEnterFrame = function () {
strBrains = "Brains x" + _global.nbBrains;
DoJump();
CameraSetting();
Controlz();
AssignerDepth();
updateEnemies();
};
Instance of Symbol 876 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
function Controlz() {
if (Key.isDown(81) && (!QualityLock)) {
QualityLock = true;
if (_root._quality == "HIGH") {
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
_root._quality = "LOW";
} else {
_root._quality = "HIGH";
}
}
if ((!Key.isDown(81)) && (QualityLock)) {
QualityLock = false;
}
if (!Player.Dead) {
if ((((Key.isDown(38) && (!Key.isDown(32))) && (!Jumping)) && (ActualStatus != "Bumbed")) && (ActualStatus != "GetShot")) {
if (!_global.CheatGottaGoFast) {
Player._y = Player._y - _global.tabSpeed[_global.SpeedUpgrade];
} else {
Player._y = Player._y - 25;
}
if (ActualStatus != "Walking") {
Player.Mang.gotoAndPlay("StartWalking");
ActualStatus = "Walking";
}
}
if ((((Key.isDown(40) && (!Key.isDown(32))) && (!Jumping)) && (ActualStatus != "Bumbed")) && (ActualStatus != "GetShot")) {
if (!_global.CheatGottaGoFast) {
Player._y = Player._y + _global.tabSpeed[_global.SpeedUpgrade];
} else {
Player._y = Player._y + 25;
}
if (ActualStatus != "Walking") {
Player.Mang.gotoAndPlay("StartWalking");
ActualStatus = "Walking";
}
}
if ((((Key.isDown(37) && (!Key.isDown(32))) && (!Jumping)) && (ActualStatus != "Bumbed")) && (ActualStatus != "GetShot")) {
if (!_global.CheatGottaGoFast) {
Player._x = Player._x - _global.tabSpeed[_global.SpeedUpgrade];
} else {
Player._x = Player._x - 25;
}
if (ActualStatus != "Walking") {
Player.Mang.gotoAndPlay("StartWalking");
ActualStatus = "Walking";
}
Player.Mang._xscale = -40;
}
if ((((Key.isDown(39) && (!Key.isDown(32))) && (!Jumping)) && (ActualStatus != "Bumbed")) && (ActualStatus != "GetShot")) {
if (!_global.CheatGottaGoFast) {
Player._x = Player._x + _global.tabSpeed[_global.SpeedUpgrade];
} else {
Player._x = Player._x + 25;
}
if (ActualStatus != "Walking") {
Player.Mang.gotoAndPlay("StartWalking");
ActualStatus = "Walking";
}
Player.Mang._xscale = 40;
}
if (((((((Key.isDown(88) && (!Jumping)) && (!Key.isDown(39))) && (!Key.isDown(37))) && (JumpSpeed == 0)) && (ActualStatus != "Bumbed")) && (!Key.isDown(32))) && (ActualStatus != "GetShot")) {
ActualStatus = "JumpTransition";
_global.ActualTarget = "None";
Player.Mang.gotoAndPlay("Jump2");
BaseJump = Player._y;
Jumping = true;
}
if ((((((Key.isDown(88) && (!Jumping)) && (Key.isDown(39))) && (JumpSpeed == 0)) && (ActualStatus != "Bumbed")) && (!Key.isDown(32))) && (ActualStatus != "GetShot")) {
ActualStatus = "JumpTransition";
Player.Mang.gotoAndPlay("Jump");
BaseJump = Player._y;
Jumping = true;
_global.ActualTarget = "None";
SideJumpRight = true;
}
if ((((((Key.isDown(88) && (!Jumping)) && (Key.isDown(37))) && (JumpSpeed == 0)) && (ActualStatus != "Bumbed")) && (!Key.isDown(32))) && (ActualStatus != "GetShot")) {
ActualStatus = "JumpTransition";
Player.Mang.gotoAndPlay("Jump");
BaseJump = Player._y;
Jumping = true;
_global.ActualTarget = "None";
SideJumpLeft = true;
}
if ((((((((Key.isDown(90) && (!Jumping)) && (!Key.isDown(39))) && (!Key.isDown(37))) && (JumpSpeed == 0)) && (ActualStatus != "Bumbed")) && (!Key.isDown(32))) && (!Spitting)) && (_global.nbBrains >= 1)) {
Spitting = true;
ActualStatus = "Spit";
_global.ActualTarget = "None";
Player.Mang.gotoAndPlay("Spit");
}
if (!Key.isDown(90)) {
Spitting = false;
}
if (((((((!Key.isDown(39)) && (!Key.isDown(37))) && (!Key.isDown(38))) && (!Key.isDown(40))) && (ActualStatus == "Walking")) && (!Jumping)) && (_global.ActualTarget == "None")) {
ActualStatus = "Chilling";
Player.Mang.gotoAndPlay("StartChilling");
}
if (((!Key.isDown(32)) && (ActualStatus == "Eating")) && (ActualStatus != "Bumbed")) {
ActualStatus = "GetUp";
Player.Mang.gotoAndPlay("GetUp");
}
if (((((!Key.isDown(32)) && (CanAttack)) && (Prey.Hurted)) && (ActualStatus != "Bumbed")) && (!Prey.OnGround)) {
if (Prey.mode != "Hurted") {
Prey.mode = "Hurted";
Prey.OnGround = true;
if (!Prey.Felt) {
Prey.Felt = true;
Prey.Mang.gotoAndPlay("Hurt");
}
}
}
if (!Key.isDown(32)) {
if ((ActualStatus == "Walking") && ((_root.Conteneur.Player.Mang._currentframe > 200) || (_root.Conteneur.Player.Mang._currentframe < 101))) {
_root.Conteneur.Player.Mang.gotoAndStop("StartWalking");
}
_global.ActualTarget.mode = "Hurted";
_global.ActualTarget = "None";
}
if ((((Key.isDown(32) && (CanAttack)) && (!Jumping)) && (ActualStatus != "Hurt")) && (ActualStatus != "Bumbed")) {
if (_global.ActualTarget == "None") {
_global.ActualTarget = Prey;
}
if (!_global.ActualTarget.OnGround) {
if (_global.ActualTarget.mode != "BeeingEaten") {
Player.Mang.gotoAndPlay("Eating");
_global.ActualTarget.mode = "BeeingEaten";
_global.ActualTarget.Mang.gotoAndPlay("BeeingEaten");
}
} else if ((ActualStatus != "GetShot") && (ActualStatus != "Bumped")) {
if (_global.ActualTarget.mode != "BeeingEaten") {
if (_global.ActualTarget.Mang._xscale == 40) {
Player.Mang._xscale = 40;
} else if ((_global.ActualTarget.Mang._xscale = -40)) {
Player.Mang._xscale = -40;
}
if (!_global.ActualTarget.onFace) {
_global.ActualTarget.Mang.gotoAndPlay("Bleed2_1");
} else {
_global.ActualTarget.Mang.gotoAndPlay("Bleed2_2");
Player.Mang._xscale = Player.Mang._xscale * -1;
}
Player.Mang.gotoAndPlay("Eating2");
_global.ActualTarget.mode = "BeeingEaten";
}
}
_global.ActualTarget.Hurted = true;
Player._x = _global.ActualTarget._x;
Player._y = _global.ActualTarget._y + 1;
if (_root.Conteneur.Player.Mang._currentframe < 201) {
if (!_global.ActualTarget.OnGround) {
_root.Conteneur.Player.Mang.gotoAndPlay(202);
} else {
_root.Conteneur.Player.Mang.gotoAndPlay(571);
}
}
if ((_global.ActualTarget.Hp > 0) && (_global.CanDoDamage)) {
ActualStatus = "Eating";
_global.ActualTarget.HealtTimer.gotoAndPlay(2);
_global.ActualTarget.HealtBar._alpha = 100;
_global.ActualTarget.Hp = _global.ActualTarget.Hp - _global.tabPlayerDamage[_global.DamageUpgrade];
if (_global.ActualTarget.Hp < 0) {
_global.ActualTarget.Hp = 0;
}
BrainPower = BrainPower + _global.tabPlayerDamage[_global.DamageUpgrade];
_global.ActualTarget.HealtBar.Healt._xscale = (_global.ActualTarget.Hp / _global.ActualTarget.MaxHp) * 100;
if (_global.ActualTarget.Hp <= 0) {
if (!_global.ActualTarget.OnGround) {
_global.ActualTarget.Mang.gotoAndPlay("Dying1");
}
if ((substring(_global.ActualTarget._name, 1, 1)) == "S") {
nbShooterKilled++;
IncreaseReput();
} else {
SpawnOneEnnemy();
}
nbHumanKilled++;
_global.ActualTarget.Dead = true;
Prey = "None";
ActualStatus = "GetUp";
Player.Mang.gotoAndPlay("GetUp");
IncreaseReput();
}
}
}
}
}
function CameraSetting() {
if (act == 1) {
what = "Player";
}
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._x > 1050) {
Conteneur._x = 1050;
}
if (Conteneur._x < -200) {
Conteneur._x = -200;
}
}
function AssignerDepth() {
i = 0;
tempVar = 0;
while (i < tabAllElements.length) {
if ((i == 0) || (tabAllElements[i - 1]._y <= tabAllElements[i]._y)) {
i++;
} else {
tempVar = tabAllElements[i];
tabAllElements[i] = tabAllElements[i - 1];
tabAllElements[--i] = tempVar;
}
}
i = 0;
while (i < tabAllElements.length) {
tabAllElements[i].swapDepths(4000 + i);
i++;
}
if (Jumping && (JumpSpeed != 0)) {
Player.swapDepths(4000 + i);
}
}
function SetTableauElement() {
tabAllElements.push(Conteneur.Player);
i = 0;
while (i < _global.tabNbEnnemy[_global.Level]) {
tabAllElements.push(eval ("Conteneur.Ennemy_" + i));
i++;
}
if (_global.HardcoreMode) {
i = 0;
while (i < _global.tabNbFire[_global.Level]) {
tabAllElements.push(eval ("Conteneur.Fire_" + i));
i++;
}
}
}
function SpawnOneEnnemy() {
tempEnemy = _root.Conteneur.attachMovie("Ennemy", "Ennemy_" + nombreEnnemy, _root.getNextHighestDepth() + nombreEnnemy);
tempEnemy._x = random(200) + 1000;
tempEnemy._y = random(145) + 65;
tempEnemy.RunningSide = random(2);
if (tempEnemy.RunningSide == 1) {
tempEnemy.RunningSide = "LEFT";
} else if (tempEnemy.RunningSide == 0) {
tempEnemy.RunningSide = "RIGHT";
}
tempEnemy.Altitude = random(2);
if (tempEnemy.Altitude == 1) {
tempEnemy.Altitude = "UP";
} else if (tempEnemy.Altitude == 0) {
tempEnemy.Altitude = "DOWN";
}
tempEnemy.Hurted = false;
tempEnemy.Dead = false;
tempEnemy.Felt = false;
tempEnemy.MaxHp = 100;
tempEnemy.Hp = 100;
tempEnemy.speed = 2;
tempEnemy.turnRate = 0.2;
tempEnemy.agroRange = 180;
tempEnemy.mode = "run";
tempEnemy.Mang.gotoAndPlay("StartRunning");
tempEnemy.destinationX = tempEnemy._x;
tempEnemy.destinationY = tempEnemy._y;
tempEnemy.CallPlayed = false;
tempEnemy.VelocityX = 0;
tempEnemy.VelocityY = 0;
tempEnemy.distanceX = 0;
tempEnemy.distanceY = 0;
tempEnemy.distanceTotal = 0;
tempEnemy.moveDistanceX = 0;
tempEnemy.moveDistanceY = 0;
tempEnemy.moveX = 0;
tempEnemy.moveY = 0;
tempEnemy.totalmove = 0;
_root.enemiesArray.push(tempEnemy);
_root.tabAllElements.push(tempEnemy);
nombreEnnemy++;
}
function createEnemies() {
nombreEnnemy = nombreEnnemy;
while (nombreEnnemy < _global.tabNbEnnemy[_global.Level]) {
tempEnemy = _root.Conteneur.attachMovie("Ennemy", "Ennemy_" + nombreEnnemy, _root.getNextHighestDepth() + nombreEnnemy);
tempEnemy._x = random(2000) - 1000;
tempEnemy._y = random(145) + 65;
tempEnemy.Hurted = false;
tempEnemy.Dead = false;
tempEnemy.Felt = false;
tempEnemy.MaxHp = 100;
tempEnemy.Hp = 100;
tempEnemy.speed = 2;
tempEnemy.turnRate = 0.2;
tempEnemy.agroRange = 180;
tempEnemy.mode = "run";
tempEnemy.Mang.gotoAndPlay("StartRunning");
tempEnemy.destinationX = tempEnemy._x - 150;
tempEnemy.destinationY = tempEnemy._y;
tempEnemy.CallPlayed = false;
tempEnemy.VelocityX = 0;
tempEnemy.VelocityY = 0;
tempEnemy.speedY = 1;
tempEnemy.RunningSide = random(2);
if (tempEnemy.RunningSide == 1) {
tempEnemy.RunningSide = "LEFT";
} else if (tempEnemy.RunningSide == 0) {
tempEnemy.RunningSide = "RIGHT";
}
tempEnemy.Altitude = random(2);
if (tempEnemy.Altitude == 1) {
tempEnemy.Altitude = "UP";
} else if (tempEnemy.Altitude == 0) {
tempEnemy.Altitude = "DOWN";
}
tempEnemy.distanceX = 0;
tempEnemy.distanceY = 0;
tempEnemy.distanceTotal = 0;
tempEnemy.moveDistanceX = 0;
tempEnemy.moveDistanceY = 0;
tempEnemy.moveX = 0;
tempEnemy.moveY = 0;
tempEnemy.totalmove = 0;
enemiesArray.push(tempEnemy);
nombreEnnemy++;
}
}
function createFiremen() {
tempEnemy = _root.Conteneur.attachMovie("Shooter", "Shooter_" + nombreShooter, (_root.getNextHighestDepth() + 100) + nombreShooter);
tempEnemy._x = 1100;
tempEnemy._y = random(145) + 65;
tempEnemy.Hurted = false;
tempEnemy.Dead = false;
tempEnemy.Felt = false;
tempEnemy.speed = 2;
tempEnemy.turnRate = 0.2;
tempEnemy.agroRange = 180;
tempEnemy.mode = "run";
tempEnemy.Mang.gotoAndPlay("StartRunning");
tempEnemy.destinationX = tempEnemy._x - 50;
tempEnemy.destinationY = tempEnemy._y;
tempEnemy.DistanceX = 0;
tempEnemy.DistanceY = 0;
tempEnemy.VelocityX = 0;
tempEnemy.VelocityY = 0;
tempEnemy.speedY = 1;
tempEnemy.RunningSide = random(2);
if (tempEnemy.RunningSide == 1) {
tempEnemy.RunningSide = "LEFT";
} else if (tempEnemy.RunningSide == 0) {
tempEnemy.RunningSide = "RIGHT";
}
tempEnemy.Altitude = random(2);
if (tempEnemy.Altitude == 1) {
tempEnemy.Altitude = "UP";
} else if (tempEnemy.Altitude == 0) {
tempEnemy.Altitude = "DOWN";
}
tempEnemy.distanceX = 0;
tempEnemy.distanceY = 0;
tempEnemy.distanceTotal = 0;
tempEnemy.moveDistanceX = 0;
tempEnemy.moveDistanceY = 0;
tempEnemy.moveX = 0;
tempEnemy.moveY = 0;
tempEnemy.totalmove = 0;
tabShootingEnnemy.push(tempEnemy);
tabAllElements.push(tempEnemy);
nombreShooter++;
}
function updateEnemies() {
SpaceBar.gotoAndStop(2);
CanAttack = false;
Prey = "None";
var _local1 = 0;
while (_local1 < enemiesArray.length) {
updatePosition(enemiesArray[_local1], Player);
_local1++;
}
_local1 = 0;
while (_local1 < tabShootingEnnemy.length) {
updatePosition(tabShootingEnnemy[_local1], Player);
_local1++;
}
}
function updatePosition(follower, target) {
if (!follower.Dead) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
follower.moveX = follower.speed;
follower.moveY = follower.speedY;
if (!follower.Hurted) {
if ((((follower._x < (_root.Conteneur.Player._x + 150)) && (follower._x > (_root.Conteneur.Player._x - 150))) && (!follower.CallPlayed)) && (_global.VoiceEnable)) {
randomCinquieme = random(6) + 1;
if (randomCinquieme == 1) {
if ((substring(follower._name, 1, 1)) != "S") {
_global.VoiceEnable = false;
_root.VoiceTimer.play();
follower.CallPlayed = true;
if (follower.Mang.b_1._currentframe < 5) {
randomCall = random(3) + 1;
CallSound = new Sound();
CallSound.attachSound("sd_GuyCall" + randomCall);
CallSound.start();
} else {
randomCall = random(4) + 1;
CallSound = new Sound();
CallSound.attachSound("sd_WomenCall" + randomCall);
CallSound.start();
}
}
}
}
if (follower.RunningSide == "LEFT") {
follower._x = follower._x - follower.moveX;
follower.Mang._xscale = 40;
} else if (follower.RunningSide == "RIGHT") {
follower._x = follower._x + follower.moveX;
follower.Mang._xscale = -40;
} else {
follower.removeMovieClip();
}
if (follower.Altitude == "UP") {
follower._y = follower._y - follower.moveY;
} else if (follower.Altitude == "DOWN") {
follower._y = follower._y + follower.moveY;
}
if (follower._x < -1200) {
follower.CallPlayed = false;
follower._x = 1200;
follower._y = random(145) + 65;
} else if (follower._x > 1200) {
follower.CallPlayed = false;
follower._x = -1200;
follower._y = random(145) + 65;
}
if (follower._y < 80) {
follower.Altitude = "DOWN";
} else if (follower._y > 200) {
follower.Altitude = "UP";
}
}
if ((follower.distanceTotal <= _global.tabAttackRange[_global.RangeUpgrade]) && (Prey == "None")) {
if (follower.distanceY < 0) {
follower.newHauteur = follower.distanceY * -1;
} else {
follower.newHauteur = follower.distanceY;
}
if (follower.newHauteur <= (_global.tabAttackRange[_global.RangeUpgrade] / 2)) {
CanAttack = true;
Prey = follower;
SpaceBar.gotoAndStop(1);
}
}
if (follower.mode == "Hurted") {
if (follower.Hp > 0) {
follower.HealtTimer.gotoAndPlay(2);
follower.HealtBar._alpha = 100;
follower.Hp = follower.Hp - 0.2;
follower.HealtBar.Healt._xscale = (follower.Hp / follower.MaxHp) * 100;
if (follower.Hp <= 0) {
follower.Mang.gotoAndPlay("Dead2");
follower.Dead = true;
if ((substring(Prey._name, 1, 1)) == "S") {
nbShooterKilled++;
} else {
SpawnOneEnnemy();
}
nbHumanKilled++;
IncreaseReput();
}
}
}
}
}
function getRandomDestination(Target) {
if (((!Target.Hurted) && (!Target.Dead)) && (Target.mode != "firing")) {
Target.mode = "run";
Target.Mang.gotoAndPlay("StartRunning");
Target.destinationX = Target._x - 300;
Target.destinationY = Target._y;
if (Target.destinationX > Target._x) {
Target.Mang._xscale = -40;
} else {
Target.Mang._xscale = 40;
}
}
}
function getDistance(delta_x, delta_y) {
return(Math.sqrt((delta_x * delta_x) + (delta_y * delta_y)));
}
function SetObjectives() {
Quests = eval ("_global.tabObjective" + _global.Level);
Objective1 = substring(Quests, 0, 4);
Objective2 = substring(Quests, 6, 4);
Objective3 = substring(Quests, 11, 4);
i = 1;
while (i < 4) {
TempNumber = 0;
TempText = "";
if ((substring(eval ("Objective" + i), 1, 1)) == "K") {
TempText = TempText + "Kill ";
} else if ((substring(eval ("Objective" + i), 1, 1)) == "E") {
TempText = TempText + "Eat ";
}
if ((substring(eval ("Objective" + i), 2, 1)) == "0") {
TempText = TempText + ((substring(eval ("Objective" + i), 3, 1)) + " ");
TempNumber = substring(eval ("Objective" + i), 3, 1);
} else {
TempText = TempText + ((substring(eval ("Objective" + i), 2, 2)) + " ");
TempNumber = substring(eval ("Objective" + i), 2, 2);
}
if ((substring(eval ("Objective" + i), 4, 1)) == "H") {
TempText = TempText + "humans.";
} else if ((substring(eval ("Objective" + i), 4, 1)) == "S") {
TempText = TempText + "firemens.";
} else if ((substring(eval ("Objective" + i), 4, 1)) == "B") {
TempText = TempText + "brains.";
}
Set(("Objective" + i) + "Text", TempText);
if (TempNumber != 0) {
eval ("Obj" + i).strObj = eval (("Objective" + i) + "Text");
} else {
eval ("Obj" + i)._alpha = 0;
eval ("Obj" + i).strObj = "";
}
i++;
}
}
function FinLevel() {
if (_global.TabLockedExtras[3]) {
_global.TabLockedExtras[3] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(2);
}
if (_global.TabLockedSkin[8] && ((Player.Hp / _global.tabPlayerHealt[PlayerHealtUpgrade]) < 0.1)) {
_global.TabLockedSkin[8] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
_global.Level++;
_root.SaveGame();
if (_global.HardcoreMode) {
_global.Level = 11;
}
if ((_global.Level <= 10) || (_global.HardcoreMode)) {
_root.gotoAndStop("SUBMENU");
} else {
_root.gotoAndStop("HARDCORE");
}
}
function DoJump() {
if (Jumping) {
if (JumpSpeed > 5) {
JumpSpeed = JumpSpeed * 0.9;
if (JumpSpeed <= 5) {
JumpSpeed = JumpSpeed * -1;
}
} else if (JumpSpeed < 0) {
JumpSpeed = JumpSpeed * 1.2;
}
if (Player._y <= BaseJump) {
JumpXSpeed = JumpXSpeed * 0.96;
Player._x = Player._x + JumpXSpeed;
Player._y = Player._y - JumpSpeed;
} else {
JumpXSpeed = 0;
JumpSpeed = 0;
Jumping = false;
}
}
}
function SpawnVehicule() {
Conteneur.HitVehicule.nbRun = 0;
Conteneur.HitVehicule.Roll = true;
Conteneur.HitVehicule.RunningSide = random(2);
if (Conteneur.HitVehicule.RunningSide == 1) {
Conteneur.HitVehicule.RunningSide = "RIGHT";
Conteneur.HitVehicule.Car._xscale = 100;
Conteneur.HitVehicule._x = -1100;
} else {
Conteneur.HitVehicule.RunningSide = "LEFT";
Conteneur.HitVehicule.Car._xscale = -100;
Conteneur.HitVehicule._x = 1100;
}
RandomAlt = random(2);
if (RandomAlt == 1) {
Conteneur.HitVehicule._y = 120;
} else {
Conteneur.HitVehicule._y = 170;
}
randomVoiture = random(5) + 1;
Conteneur.HitVehicule.Car.gotoAndStop(randomVoiture);
}
function SpawnSpecial(Numero) {
switch (Numero) {
case 1 :
NewSpecial = _root.Conteneur.attachMovie("Special1", "Special_" + Numero, _root.getNextHighestDepth() + nombreEnnemy);
randomSide = random(2);
if (randomSide == 1) {
NewSpecial._x = 1100;
NewSpecial.RunningSide = "LEFT";
} else {
NewSpecial._x = -1100;
NewSpecial.RunningSide = "RIGHT";
}
NewSpecial._y = random(145) + 65;
break;
case 2 :
NewSpecial = _root.Conteneur.attachMovie("Special2", "Special_" + Numero, _root.getNextHighestDepth() + nombreEnnemy);
randomSide = random(2);
if (randomSide == 1) {
NewSpecial._x = 1100;
NewSpecial.RunningSide = "LEFT";
} else {
NewSpecial._x = -1100;
NewSpecial.RunningSide = "RIGHT";
}
NewSpecial._y = random(145) + 65;
break;
case 3 :
NewSpecial = _root.Conteneur.attachMovie("Special3", "Special_" + Numero, _root.getNextHighestDepth() + nombreEnnemy);
randomSide = random(2);
if (randomSide == 1) {
NewSpecial._x = 1100;
NewSpecial.RunningSide = "LEFT";
} else {
NewSpecial._x = -1100;
NewSpecial.RunningSide = "RIGHT";
}
NewSpecial._y = random(145) + 65;
break;
case 4 :
NewSpecial = _root.Conteneur.attachMovie("Special4", "Special_" + Numero, _root.getNextHighestDepth() + nombreEnnemy);
if ((_root.Conteneur.Player._x + 550) <= 1000) {
NewSpecial._x = _root.Conteneur.Player._x + 550;
NewSpecial.RunningSide = "LEFT";
} else {
NewSpecial._x = _root.Conteneur.Player._x - 550;
NewSpecial.RunningSide = "RIGHT";
}
NewSpecial._y = random(130) + 80;
}
NewSpecial.Altitude = random(2);
if (NewSpecial.Altitude == 1) {
NewSpecial.Altitude = "UP";
} else if (NewSpecial.Altitude == 0) {
NewSpecial.Altitude = "DOWN";
}
if (Numero < 5) {
NewSpecial.Hurted = false;
NewSpecial.Dead = false;
NewSpecial.Felt = false;
NewSpecial.MaxHp = 10;
NewSpecial.Hp = 10;
NewSpecial.speed = 2;
NewSpecial.turnRate = 0.2;
NewSpecial.agroRange = 180;
NewSpecial.mode = "run";
NewSpecial.Mang.gotoAndPlay("StartRunning");
NewSpecial.destinationX = tempEnemy._x;
NewSpecial.destinationY = tempEnemy._y;
NewSpecial.DistanceX = 0;
NewSpecial.DistanceY = 0;
NewSpecial.VelocityX = 0;
NewSpecial.VelocityY = 0;
NewSpecial.distanceX = 0;
NewSpecial.distanceY = 0;
NewSpecial.distanceTotal = 0;
NewSpecial.moveDistanceX = 0;
NewSpecial.moveDistanceY = 0;
NewSpecial.moveX = 0;
NewSpecial.moveY = 0;
NewSpecial.totalmove = 0;
enemiesArray.push(NewSpecial);
tabAllElements.push(NewSpecial);
nombreEnnemy++;
}
if (Numero == 5) {
NewSpecial = _root.Conteneur.attachMovie("Special5", "Special_" + Numero, _root.getNextHighestDepth() + nombreEnnemy);
randomSide = random(2);
if (randomSide == 1) {
NewSpecial._x = 1100;
NewSpecial.RunningSide = "LEFT";
NewSpecial._xscale = NewSpecial._xscale * -1;
} else {
NewSpecial._x = -1100;
NewSpecial.RunningSide = "RIGHT";
}
NewPosition = random(2);
if (NewPosition == 1) {
NewSpecial._y = 120;
} else {
NewSpecial._y = 170;
}
tabAllElements.push(NewSpecial);
}
}
function IncreaseReput() {
_global.Reputation++;
if (_global.Reputation == 1) {
ReputationStar.play();
} else if (_global.Reputation == 10) {
ReputationStar.play();
} else if (_global.Reputation == 20) {
ReputationStar.play();
} else if (_global.Reputation == 30) {
ReputationStar.play();
} else if (_global.Reputation == 40) {
ReputationStar.play();
}
}
function ReleaseTarget() {
if (_global.ActualTarget.mode != "Hurted") {
_global.ActualTarget.mode = "Hurted";
_global.ActualTarget.OnGround = true;
if (!_global.ActualTarget.Felt) {
_global.ActualTarget.Felt = true;
_global.ActualTarget.Mang.gotoAndPlay("Hurt");
}
}
}
stop();
trace("LEVEL:" + _global.Level);
RandomSong = random(2);
_global.ActualTarget = "None";
nombreEnnemy = 0;
nombreShooter = 0;
_global.Reputation = 0;
_global.ActualCity = 1;
if (RandomSong == 1) {
MenuTrack = new Sound();
MenuTrack.attachSound("Track_Muz1");
MenuTrack.stop();
MenuTrack.start(0, 999);
} else {
MenuTrack = new Sound();
MenuTrack.attachSound("Track_Muz2");
MenuTrack.stop();
MenuTrack.start(0, 999);
}
DestinationX = 0;
DestinationY = 0;
JumpSpeed = 0;
BaseJump = 0;
JumpXSpeed = 0;
Player = Conteneur.Player;
tabAllElements = [];
enemiesArray = [];
tabShootingEnnemy = [];
tabFire = [];
tabArbres = [];
tabBuilding = [];
TempsActuel = 0;
TempsTotal = 3000;
moveSpeedMax = 1500;
BrainPower = 0;
ActualStatus = "Chilling";
uniqueItemId = 0;
uniqueBloodId = 0;
Objective1 = "";
Objective1Text = "";
Objective2 = "";
Objective2Text = "";
Ojvective3 = "";
Objective3Text = "";
Objective1Completed = false;
Objective2Completed = false;
Objective3Completed = false;
getInPlane = false;
CanAttack = false;
Jumping = false;
SideJumpRight = false;
SideJumpLeft = false;
QualityLock = false;
Spitting = false;
_global.SpawnGameOver = false;
_global.LevelFinished = false;
_global.CanDoDamage = false;
_global.Toche = false;
_global.Castor = false;
_global.Kuma = false;
_global.Mime = false;
_global.Panda = false;
nbHumanKilled = 0;
nbShooterKilled = 0;
nbBrainObtained = 0;
nbArbre = 0;
nbBuilding = 0;
_global.AtsuNingen = 0;
_global.nbSpittBall = 0;
Prey = "None";
act = 1;
camera_speed = 0.1;
game_width = 800;
game_height = 440;
_root.createEmptyMovieClip("movFrameRate", 100);
_root.movFrameRate.onEnterFrame = function () {
this.t = getTimer();
this.frameRate = Math.round(1000 / (this.t - this.o));
_root.FramePerSec = this.frameRate;
this.o = this.t;
};
onEnterFrame = function () {
strBrains = "Brains x" + _global.nbBrains;
DoJump();
CameraSetting();
Controlz();
AssignerDepth();
updateEnemies();
};
Instance of Symbol 876 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);
}
Symbol 101 MovieClip Frame 35
_parent.play();
Symbol 101 MovieClip Frame 50
stop();
Symbol 108 MovieClip [BlackRock] Frame 1
stop();
Symbol 108 MovieClip [BlackRock] Frame 9
randomBomb = random(3) + 1;
BombSound = new Sound();
BombSound.attachSound("sd_Expl" + randomBomb);
BombSound.start();
Instance of Symbol 107 MovieClip in Symbol 108 MovieClip [BlackRock] Frame 10
onClipEvent (enterFrame) {
trace(_parent._name);
if (((this.hitTest(_root.Conteneur.Player.Mang.b_2) || (this.hitTest(_root.Conteneur.Player.Mang.b_3))) || (this.hitTest(_root.Conteneur.Player.Mang.b_4))) || (this.hitTest(_root.Conteneur.Player.Mang.b_5))) {
_root.ReleaseTarget();
if (!_global.HardcoreMode) {
_root.Conteneur.Player.Hp = _root.Conteneur.Player.Hp - 150;
} else {
_root.Conteneur.Player.Hp = _root.Conteneur.Player.Hp - 600;
}
_root.Face.play();
if (_root.ActualStatus != "Bumbed") {
_root.ActualStatus = "Bumbed";
}
if (_root.Conteneur.Player.Hp > 0) {
_root.Conteneur.Player.Mang.gotoAndPlay("Explode3");
} else if ((_root.Conteneur.Player.Mang._xscale < 0) && (_root.Conteneur.Player._x < _parent._x)) {
_root.Conteneur.Player.Mang.gotoAndPlay("Explode2");
} else if ((_root.Conteneur.Player.Mang._xscale < 0) && (_root.Conteneur.Player._x > _parent._x)) {
_root.Conteneur.Player.Mang.gotoAndPlay("Explode1");
} else if ((_root.Conteneur.Player.Mang._xscale > 0) && (_root.Conteneur.Player._x < _parent._x)) {
_root.Conteneur.Player.Mang.gotoAndPlay("Explode1");
} else if ((_root.Conteneur.Player.Mang._xscale > 0) && (_root.Conteneur.Player._x > _parent._x)) {
_root.Conteneur.Player.Mang.gotoAndPlay("Explode2");
}
}
}
Symbol 108 MovieClip [BlackRock] Frame 44
this.removeMovieClip();
Symbol 109 MovieClip Frame 50
_parent._alpha = _parent._alpha - 10;
Symbol 109 MovieClip Frame 100
_parent._alpha = _parent._alpha - 10;
Symbol 109 MovieClip Frame 150
_parent._alpha = _parent._alpha - 10;
Symbol 109 MovieClip Frame 200
_parent._alpha = _parent._alpha - 10;
Symbol 109 MovieClip Frame 250
_parent._alpha = _parent._alpha - 10;
Symbol 109 MovieClip Frame 300
_parent._alpha = _parent._alpha - 10;
Symbol 109 MovieClip Frame 350
_parent._alpha = _parent._alpha - 10;
Symbol 109 MovieClip Frame 400
_parent._alpha = _parent._alpha - 10;
Symbol 109 MovieClip Frame 450
_parent._alpha = _parent._alpha - 10;
Symbol 109 MovieClip Frame 500
_parent.removeMovieClip();
Symbol 113 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
this.removeMovieClip();
};
Symbol 113 MovieClip Frame 2
_visible = true;
BloodName = _name;
MyNumber = substring(BloodName, 9, 2);
if (_parent.bloodboostx != undefined) {
boostx = _parent.bloodboostx;
} else {
boostx = 1;
}
if (_parent.bloodboosty != undefined) {
boosty = _parent.bloodboosty;
} else {
boosty = 1;
}
speedx = (random(20) - 10) + boostx;
speedy = (random(10) - 5) + boosty;
_alpha = (random(50) + 50);
_xscale = (random(80) + 20);
_yscale = _xscale;
stop();
onEnterFrame = function () {
_x = (_x + speedx);
_y = (_y + speedy);
speedx = speedx * 0.92;
if (speedy < -0.5) {
speedy = speedy * 0.88;
}
if ((speedy >= -0.5) && (speedy <= 0.5)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.12;
}
if (_root.Conteneur.Player.Mang._currentframe >= 570) {
randomBlood = random(50) + 15;
if (_y >= randomBlood) {
gotoAndStop (3);
}
} else {
randomBlood = random(40) + 50;
if (_y >= randomBlood) {
gotoAndStop (3);
}
}
_alpha = (_alpha - 2);
if (_alpha <= 0) {
gotoAndStop (1);
}
};
Symbol 113 MovieClip Frame 3
_visible = true;
_xscale = (_xscale * 1.5);
_yscale = (_yscale * 0.5);
speedscale = (random(10) + 1) / 100;
timerscale = random(100) + 100;
stop();
if (_root.uniqueBloodId < 2000) {
_parent.swapDepths(2000 + _root.uniqueBloodId);
_root.uniqueBloodId++;
} else {
_root.uniqueBloodId = 1;
_parent.swapDepths(2000 + _root.uniqueBloodId);
_root.uniqueBloodId++;
}
onEnterFrame = function () {
if (timerscale >= 0) {
timerscale = timerscale - 1;
_xscale = (_xscale + (speedscale * 2));
_yscale = (_yscale + (speedscale * 2));
}
};
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 75
onEnterFrame = function () {
if (_currentframe >= 75) {
_parent.HealtBar._alpha = _parent.HealtBar._alpha - 5;
}
};
Symbol 123 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.ShooterType + 1);
Symbol 128 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.ShooterType + 1);
Symbol 131 MovieClip Frame 1
stop();
randomLampe = random(2) + 1;
gotoAndStop(randomLampe);
Symbol 136 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.ShooterType + 1);
Symbol 141 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.ShooterType + 1);
Symbol 145 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.ShooterType + 1);
Symbol 150 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.ShooterType + 1);
Symbol 155 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.ShooterType + 1);
Symbol 159 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.ShooterType + 1);
Symbol 164 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent.ShooterType + 1);
Symbol 182 MovieClip Frame 1
stop();
if (_parent._parent.ShooterType < 2) {
gotoAndStop(_parent._parent.ShooterType + 1);
} else {
randomGun = random(2) + 3;
gotoAndStop(randomGun);
}
Symbol 227 MovieClip Frame 1
onEnterFrame = function () {
_parent._parent._parent._alpha = _parent._parent._parent._alpha - 2;
};
Symbol 228 MovieClip Frame 151
stop();
_parent._parent._alpha = 0;
Symbol 248 MovieClip Frame 1
randomChill = random(99) + 2;
gotoAndPlay(randomChill);
Symbol 248 MovieClip Frame 100
gotoAndPlay ("Chilling");
Symbol 248 MovieClip Frame 101
randomWalk = random(82) + 102;
gotoAndPlay(randomWalk);
Symbol 248 MovieClip Frame 183
gotoAndPlay ("Walking");
Symbol 248 MovieClip Frame 185
_parent.BaseSpeed = random(4) + 14;
_parent.BaseSpeedY = random(6);
onEnterFrame = function () {
_parent.speed = _parent.speed * 0.85;
_parent.speedY = _parent.speedY * 0.85;
};
randomWalk = random(20) + 186;
gotoAndPlay(randomWalk);
Symbol 248 MovieClip Frame 186
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 248 MovieClip Frame 197
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 248 MovieClip Frame 210
stop();
if (_parent.Dead) {
trace("Why you not dead");
trace(_parent.mode);
gotoAndPlay ("Burn1");
} else {
gotoAndPlay ("Running");
}
Symbol 248 MovieClip Frame 211
stop();
Symbol 248 MovieClip Frame 219
gotoAndPlay ("Attack");
Symbol 248 MovieClip Frame 228
gotoAndPlay ("Attack");
Symbol 248 MovieClip Frame 229
randomChokeSound = random(9) + 1;
ChokeSound1 = new Sound();
ChokeSound1.attachSound("sd_Men_Choke_" + randomChokeSound);
ChokeSound1.start();
randomYell = random(10) + 1;
YellSound1 = new Sound();
YellSound1.attachSound("sd_Men_Yell_" + randomChokeSound);
YellSound1.start();
Symbol 248 MovieClip Frame 237
randomChokeSound = random(9) + 1;
ChokeSound2 = new Sound();
ChokeSound2.attachSound("sd_Men_Choke_" + randomChokeSound);
ChokeSound2.start();
Symbol 248 MovieClip Frame 246
randomChokeSound = random(9) + 1;
ChokeSound3 = new Sound();
ChokeSound3.attachSound("sd_Men_Choke_" + randomChokeSound);
ChokeSound3.start();
Symbol 248 MovieClip Frame 253
if (_root.ActualStatus == "Eating") {
if (_parent.Hp > 0) {
gotoAndPlay ("Bleed");
} else {
gotoAndPlay ("Dying1");
}
} else {
gotoAndPlay ("Hurt");
}
Symbol 248 MovieClip Frame 283
stop();
Symbol 248 MovieClip Frame 301
trace(_parent.Hp);
if (_root.ActualStatus == "Eating") {
if (_parent.Hp > 0) {
gotoAndPlay ("Bleed1_2");
} else {
gotoAndStop ("Dead1");
}
} else {
gotoAndStop ("Dead1");
}
Symbol 248 MovieClip Frame 332
trace("I got burned");
Symbol 248 MovieClip Frame 345
b_2.gotoAndStop(4);
b_3.gotoAndStop(4);
b_5.gotoAndStop(4);
b_6.gotoAndStop(4);
b_7.gotoAndStop(4);
b_8.gotoAndStop(4);
b_9.gotoAndStop(4);
b_10.gotoAndStop(4);
b_11.gotoAndStop(4);
b_12.gotoAndStop(4);
b_13.gotoAndStop(4);
b_14.gotoAndStop(5);
b_15.gotoAndStop(4);
Symbol 248 MovieClip Frame 427
stop();
Symbol 248 MovieClip Frame 440
b_2.gotoAndStop(4);
b_3.gotoAndStop(4);
b_5.gotoAndStop(4);
b_6.gotoAndStop(4);
b_7.gotoAndStop(4);
b_8.gotoAndStop(4);
b_9.gotoAndStop(4);
b_10.gotoAndStop(4);
b_11.gotoAndStop(4);
b_12.gotoAndStop(4);
b_13.gotoAndStop(4);
b_14.gotoAndStop(5);
b_15.gotoAndStop(4);
Symbol 248 MovieClip Frame 484
stop();
Symbol 248 MovieClip Frame 511
stop();
_parent.mode = "Hurted";
_parent.OnGround = true;
_parent.Hurted = true;
Symbol 248 MovieClip Frame 534
stop();
_parent.mode = "Hurted";
_parent.OnGround = true;
_parent.Hurted = true;
_parent.onFace = true;
Symbol 248 MovieClip Frame 541
randomChokeSound = random(9) + 1;
ChokeSound1 = new Sound();
ChokeSound1.attachSound("sd_Men_Choke_" + randomChokeSound);
ChokeSound1.start();
Symbol 248 MovieClip Frame 552
randomChokeSound = random(9) + 1;
ChokeSound2 = new Sound();
ChokeSound2.attachSound("sd_Men_Choke_" + randomChokeSound);
ChokeSound2.start();
Symbol 248 MovieClip Frame 556
if (_root.ActualStatus == "Eating") {
if (_parent.Hp > 0) {
gotoAndPlay ("Bleed2_2");
} else {
gotoAndStop ("Dead3");
}
} else {
gotoAndStop ("Bleed2_2");
}
gotoAndStop ("Dead3");
Symbol 248 MovieClip Frame 557
stop();
Symbol 250 MovieClip Frame 1
Symbol 255 MovieClip Frame 1
stop();
Symbol 256 MovieClip [Shooter] Frame 1
function Fire(target) {
distanceX = target._x - _x;
distanceY = target._y - _y;
if (distanceX < 0) {
distanceX = distanceX * -1;
}
if (distanceY < 0) {
distanceY = distanceY * -1;
}
if ((distanceX <= _global.tabEnnemyFireRange[ShooterType]) && (distanceY <= (_global.tabEnnemyFireRange[ShooterType] / 4))) {
if ((Mang._xscale < 0) && ((target._x - _x) > 0)) {
GoodSide = true;
} else if ((Mang._xscale > 0) && ((target._x - _x) < 0)) {
GoodSide = true;
} else {
GoodSide = false;
if (mode == "firing") {
Mang.gotoAndPlay("StartRunning");
mode = "run";
}
}
if ((mode == "run") && (GoodSide)) {
mode = "firing";
Mang.gotoAndPlay("Attack");
}
if ((!CallPlayed) && (_global.VoiceEnable)) {
_global.VoiceEnable = false;
_root.VoiceTimer.play();
CallPlayed = true;
randomCallTodo = random(2) + 1;
if (randomCallTodo == 1) {
randomCall = random(7) + 1;
PoliceCall = new Sound();
PoliceCall.attachSound("sd_PoliceCall" + randomCall);
PoliceCall.start();
}
}
if ((((((mode == "firing") && (!_parent.Player.Dead)) && (GoodSide)) && (_root.JumpSpeed == 0)) && (!_root.Jumping)) && (_parent.Player.Hp > 0)) {
if (ReadyToFire) {
if (_parent.Player.Hp > 0) {
_root.ReleaseTarget();
_root.ActualStatus = "GetShot";
_parent.Player.Mang.gotoAndPlay("GetShot");
trace("Damage :" + _global.tabEnnemyDamage[ShooterType]);
if (!_global.HardcoreMode) {
_parent.Player.Hp = _parent.Player.Hp - _global.tabEnnemyDamage[ShooterType];
} else {
_parent.Player.Hp = _parent.Player.Hp - (_global.tabEnnemyDamage[ShooterType] * 10);
}
_root.Face.gotoAndPlay(2);
if ((_parent.Player.Hp <= 0) && (!Dead)) {
_parent.Player.Hp = 0;
if (_root.ActualStatus == "run") {
_parent.Player.Mang.gotoAndPlay("Dying2");
} else {
_parent.Player.Mang.gotoAndPlay("Dying1");
}
_root.EndGame.gotoAndStop(3);
_parent.Player.Dead = true;
}
} else {
_global.SpawnGameOver = true;
_parent.Player.Dead = true;
randomDeadth = random(2) + 1;
_parent.Player.Mang.gotoAndPlay("Dying" + randomDeadth);
}
ReadyToFire = false;
Mang.gotoAndPlay("Fire");
PistolSound = new Sound();
PistolSound.attachSound("sd_Gun");
PistolSound.start();
currentTime = getTimer();
} else if ((currentTime + cooldown) <= getTimer()) {
ReadyToFire = true;
}
} else if (mode == "wait") {
mode = "firing";
}
} else if (mode == "firing") {
Mang.gotoAndPlay("StartRunning");
mode = "run";
}
}
ReadyToFire = false;
GoodSide = false;
onFace = false;
if (_global.Reputation < 10) {
ShooterType = 0;
} else if (_global.Reputation < 20) {
ShooterType = random(2);
} else if (_global.Reputation < 30) {
ShooterType = 1;
} else if (_global.Reputation < 40) {
ShooterType = random(2) + 1;
} else {
ShooterType = 2;
}
MaxHp = 100 * (ShooterType + 1);
Hp = 100 * (ShooterType + 1);
cooldown = _global.tabEnnemyFireRate[ShooterType];
onEnterFrame = function () {
if ((!Dead) && (!Hurted)) {
Fire(_root.Conteneur.Player);
}
};
Instance of Symbol 250 MovieClip "Left" in Symbol 256 MovieClip [Shooter] Frame 1
onClipEvent (enterFrame) {
if ((!_parent.Dead) && (!_parent.Hurted)) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.Conteneur.HitVehicule.Car.Hit.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_name == "Left") {
_parent._x = _parent._x + _root.Conteneur.HitVehicule.Speed;
_parent._y = _parent._y + 15;
_parent._x = _parent._x + 30;
}
if (_name == "Right") {
_parent._x = _parent._x - _root.Conteneur.HitVehicule.Speed;
_parent._y = _parent._y + 15;
_parent._x = _parent._x - 30;
}
}
if (_root.Conteneur.Obstacle.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_name == "Left") {
_parent._x = _parent._x + _global.moveX;
_parent._y = _parent._y + _parent.moveY;
}
if (_name == "Right") {
_parent._x = _parent._x - _global.moveX;
_parent._y = _parent._y + _parent.moveY;
}
}
i++;
}
}
}
Instance of Symbol 250 MovieClip "Right" in Symbol 256 MovieClip [Shooter] Frame 1
onClipEvent (enterFrame) {
if ((!_parent.Dead) && (!_parent.Hurted)) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.Conteneur.HitVehicule.Car.Hit.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_name == "Left") {
_parent._x = _parent._x + _root.Conteneur.HitVehicule.Speed;
_parent._y = _parent._y + 15;
_parent._x = _parent._x + 30;
}
if (_name == "Right") {
_parent._x = _parent._x - _root.Conteneur.HitVehicule.Speed;
_parent._y = _parent._y + 15;
_parent._x = _parent._x - 30;
}
}
if (_root.Conteneur.Obstacle.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_name == "Left") {
_parent._x = _parent._x + _global.moveX;
_parent._y = _parent._y + _parent.moveY;
}
if (_name == "Right") {
_parent._x = _parent._x - _global.moveX;
_parent._y = _parent._y + _parent.moveY;
}
}
i++;
}
}
}
Symbol 264 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_global.ActualCity);
};
Symbol 308 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_global.ActualCity);
};
Symbol 315 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_global.ActualCity);
};
Symbol 322 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_global.ActualCity);
};
Symbol 329 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_global.ActualCity);
};
Symbol 336 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_global.ActualCity);
};
Symbol 337 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 1
onEnterFrame = function () {
if (_parent._parent.RunningSide == "LEFT") {
_parent._parent._x = _parent._parent._x - _parent._parent.moveX;
_parent._parent.Mang._xscale = 40;
} else if (_parent._parent.RunningSide == "RIGHT") {
_parent._parent._x = _parent._parent._x + _parent._parent.moveX;
_parent._parent.Mang._xscale = -40;
}
};
Symbol 375 MovieClip Frame 100
gotoAndPlay ("Chilling");
Symbol 375 MovieClip Frame 101
randomWalk = random(97) + 103;
gotoAndPlay(randomWalk);
Symbol 375 MovieClip Frame 200
gotoAndPlay ("Walking");
Symbol 375 MovieClip Frame 201
_parent.BaseSpeed = random(4) + 14;
_parent.BaseSpeedY = random(6);
onEnterFrame = function () {
_parent.speed = _parent.speed * 0.9;
_parent.speedY = _parent.speedY * 0.9;
};
randomWalk = random(3) + 1;
gotoAndPlay("Running" + randomWalk);
Symbol 375 MovieClip Frame 202
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 375 MovieClip Frame 214
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 375 MovieClip Frame 227
stop();
if (_parent.Dead) {
trace("Wont die by acid");
trace("Name :" + _parent._name);
trace("Status :" + _parent.mode);
gotoAndPlay ("Burn");
} else {
gotoAndPlay ("Running");
}
Symbol 375 MovieClip Frame 228
if (b_1._currentframe < 5) {
randomChokeSound = random(9) + 1;
ChokeSound1 = new Sound();
ChokeSound1.attachSound("sd_Men_Choke_" + randomChokeSound);
ChokeSound1.start();
randomYell = random(10) + 1;
YellSound1 = new Sound();
YellSound1.attachSound("sd_Men_Yell_" + randomChokeSound);
YellSound1.start();
} else {
randomChokeSound = random(7) + 1;
ChokeSound1 = new Sound();
ChokeSound1.attachSound("sd_Women_Choke_" + randomChokeSound);
ChokeSound1.start();
randomYell = random(6) + 1;
YellSound1 = new Sound();
YellSound1.attachSound("sd_Women_Yell_" + randomChokeSound);
YellSound1.start();
}
Symbol 375 MovieClip Frame 254
if (b_1._currentframe < 5) {
randomChokeSound = random(9) + 1;
ChokeSound2 = new Sound();
ChokeSound2.attachSound("sd_Men_Choke_" + randomChokeSound);
ChokeSound2.start();
} else {
randomChokeSound = random(7) + 1;
ChokeSound2 = new Sound();
ChokeSound2.attachSound("sd_Women_Choke_" + randomChokeSound);
ChokeSound2.start();
}
Symbol 375 MovieClip Frame 272
if (_root.ActualStatus == "Eating") {
if (_parent.Hp > 0) {
gotoAndPlay ("Bleed");
} else {
gotoAndPlay ("Dying1");
}
} else {
play();
}
if (b_1._currentframe < 5) {
randomChokeSound = random(9) + 1;
ChokeSound3 = new Sound();
ChokeSound3.attachSound("sd_Men_Choke_" + randomChokeSound);
ChokeSound3.start();
} else {
randomChokeSound = random(7) + 1;
ChokeSound3 = new Sound();
ChokeSound3.attachSound("sd_Women_Choke_" + randomChokeSound);
ChokeSound3.start();
}
Symbol 375 MovieClip Frame 297
stop();
Symbol 375 MovieClip Frame 298
stop();
Symbol 375 MovieClip Frame 324
stop();
Symbol 375 MovieClip Frame 349
stop();
Symbol 375 MovieClip Frame 350
stop();
Symbol 375 MovieClip Frame 351
if (b_1._currentframe < 5) {
randomChokeSound = random(9) + 1;
ChokeSound1 = new Sound();
ChokeSound1.attachSound("sd_Men_Choke_" + randomChokeSound);
ChokeSound1.start();
} else {
randomChokeSound = random(7) + 1;
ChokeSound1 = new Sound();
ChokeSound1.attachSound("sd_Women_Choke_" + randomChokeSound);
ChokeSound1.start();
}
Symbol 375 MovieClip Frame 362
if (b_1._currentframe < 5) {
randomChokeSound = random(9) + 1;
ChokeSound1 = new Sound();
ChokeSound1.attachSound("sd_Men_Choke_" + randomChokeSound);
ChokeSound1.start();
} else {
randomChokeSound = random(7) + 1;
ChokeSound1 = new Sound();
ChokeSound1.attachSound("sd_Women_Choke_" + randomChokeSound);
ChokeSound1.start();
}
Symbol 375 MovieClip Frame 368
if (_root.ActualStatus == "Eating") {
if (_parent.Hp > 0) {
gotoAndPlay ("Bleed2");
} else {
gotoAndStop ("Dead2");
}
} else {
gotoAndStop ("Bleed2_1");
}
gotoAndStop ("Dead2");
Symbol 375 MovieClip Frame 369
randomChill = random(4) + 1;
switch (randomChill) {
case 1 :
gotoAndPlay ("Chilling");
break;
case 2 :
gotoAndPlay ("Chilling2");
break;
case 3 :
gotoAndPlay ("Chilling3");
break;
case 4 :
gotoAndPlay ("Chilling4");
}
Symbol 375 MovieClip Frame 391
gotoAndPlay ("StartChilling");
Symbol 375 MovieClip Frame 435
gotoAndPlay ("StartChilling");
Symbol 375 MovieClip Frame 460
gotoAndPlay ("StartChilling");
Symbol 375 MovieClip Frame 475
gotoAndPlay ("StartChilling");
Symbol 375 MovieClip Frame 476
stop();
Symbol 375 MovieClip Frame 490
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 375 MovieClip Frame 502
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 375 MovieClip Frame 503
if (_parent.Dead) {
trace("Why you not dead");
gotoAndPlay ("Burn");
}
if (!_parent.Dead) {
gotoAndPlay ("Running2");
}
Symbol 375 MovieClip Frame 517
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 375 MovieClip Frame 529
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 375 MovieClip Frame 530
if (_parent.Dead) {
trace("Why you not dead");
gotoAndPlay ("Burn");
}
if (!_parent.Dead) {
gotoAndPlay ("Running3");
}
Symbol 375 MovieClip Frame 540
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 375 MovieClip Frame 543
b_2.gotoAndStop(7);
b_3.gotoAndStop(7);
b_4.gotoAndStop(7);
b_5.gotoAndStop(7);
b_6.gotoAndStop(7);
b_7.gotoAndStop(7);
b_9.gotoAndStop(7);
b_10.gotoAndStop(7);
b_12.gotoAndStop(7);
b_13.gotoAndStop(7);
Symbol 375 MovieClip Frame 553
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 375 MovieClip Frame 566
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 375 MovieClip Frame 575
stop();
Symbol 375 MovieClip Frame 603
stop();
_parent.mode = "Hurted";
_parent.OnGround = true;
_parent.Hurted = true;
Symbol 375 MovieClip Frame 635
stop();
_parent.mode = "Hurted";
_parent.OnGround = true;
_parent.Hurted = true;
_parent.onFace = true;
Symbol 375 MovieClip Frame 641
if (b_1._currentframe < 5) {
randomChokeSound = random(9) + 1;
ChokeSound2 = new Sound();
ChokeSound2.attachSound("sd_Men_Choke_" + randomChokeSound);
ChokeSound2.start();
} else {
randomChokeSound = random(7) + 1;
ChokeSound2 = new Sound();
ChokeSound2.attachSound("sd_Women_Choke_" + randomChokeSound);
ChokeSound2.start();
}
Symbol 375 MovieClip Frame 651
if (_root.ActualStatus == "Eating") {
if (_parent.Hp > 0) {
gotoAndPlay ("Bleed2_2");
} else {
gotoAndStop ("Dead3");
}
} else {
gotoAndStop ("Bleed2_2");
}
gotoAndStop ("Dead3");
if (b_1._currentframe < 5) {
randomChokeSound = random(9) + 1;
ChokeSound2 = new Sound();
ChokeSound2.attachSound("sd_Men_Choke_" + randomChokeSound);
ChokeSound2.start();
} else {
randomChokeSound = random(7) + 1;
ChokeSound2 = new Sound();
ChokeSound2.attachSound("sd_Women_Choke_" + randomChokeSound);
ChokeSound2.start();
}
Symbol 375 MovieClip Frame 652
stop();
Symbol 376 MovieClip [EnnemyTutoriel] Frame 1
Hurted = false;
Dead = false;
MaxHp = 100;
Hp = 100;
speed = 2;
turnRate = 0.2;
agroRange = 100;
mode = "walking";
destinationX = _x;
destinationY = _y;
DistanceX = 0;
DistanceY = 0;
VelocityX = 0;
VelocityY = 0;
distanceX = 0;
distanceY = 0;
distanceTotal = 0;
moveDistanceX = 0;
moveDistanceY = 0;
moveX = 0;
moveY = 0;
totalmove = 0;
_global.tabNbEnnemy[_global.Level]++;
_root.enemiesArray.push(this);
_root.tabAllElements.push(this);
Instance of Symbol 250 MovieClip "Left" in Symbol 376 MovieClip [EnnemyTutoriel] Frame 1
onClipEvent (enterFrame) {
if (((!_parent.Dead) && (_parent.distanceX < 900)) && (!_parent.Hurted)) {
_parent._alpha = 100;
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.Conteneur.HitVehicule.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_name == "Top") {
_parent._y = _parent._y + _root.Conteneur.HitVehicule.Speed;
_parent.Hp = _parent.Hp - 10;
_parent.HealtTimer.gotoAndPlay(2);
_parent.HealtBar._alpha = 100;
_parent.HealtBar.Healt._xscale = (_parent.Hp / _parent.MaxHp) * 100;
if (_parent.Hp <= 0) {
_parent.Hp = 0;
_parent.Dead = true;
_parent.Mang.gotoAndStop("RoadKill");
}
if (_root.Conteneur.HitVehicule._y > _parent._y) {
_parent._y = _parent._y - 20;
} else if (_root.Conteneur.HitVehicule._y <= _parent._y) {
_parent._y = _parent._y + 20;
}
}
if (_name == "Bot") {
_parent._y = _parent._y + _root.Conteneur.HitVehicule.Speed;
_parent.Hp = _parent.Hp - 10;
_parent.HealtTimer.gotoAndPlay(2);
_parent.HealtBar._alpha = 100;
_parent.HealtBar.Healt._xscale = (_parent.Hp / _parent.MaxHp) * 100;
if (_parent.Hp <= 0) {
_parent.Hp = 0;
_parent.Dead = true;
_parent.Mang.gotoAndStop("RoadKill");
}
if (_root.Conteneur.HitVehicule._y > _parent._y) {
_parent._y = _parent._y - 20;
} else if (_root.Conteneur.HitVehicule._y <= _parent._y) {
_parent._y = _parent._y + 20;
}
}
if (_name == "Left") {
_parent._x = _parent._x + _root.Conteneur.HitVehicule.Speed;
_parent.Hp = _parent.Hp - 10;
_parent.HealtTimer.gotoAndPlay(2);
_parent.HealtBar._alpha = 100;
_parent.HealtBar.Healt._xscale = (_parent.Hp / _parent.MaxHp) * 100;
if (_parent.Hp <= 0) {
_parent.Hp = 0;
_parent.Dead = true;
_parent.Mang.gotoAndStop("RoadKill");
}
if (_root.Conteneur.HitVehicule._y > _parent._y) {
_parent._y = _parent._y - 20;
_parent._x = _parent._x + 30;
} else if (_root.Conteneur.HitVehicule._y <= _parent._y) {
_parent._y = _parent._y + 20;
_parent._x = _parent._x + 30;
}
}
if (_name == "Right") {
_parent._x = _parent._x - _root.Conteneur.HitVehicule.Speed;
_parent.Hp = _parent.Hp - 10;
_parent.HealtTimer.gotoAndPlay(2);
_parent.HealtBar._alpha = 100;
_parent.HealtBar.Healt._xscale = (_parent.Hp / _parent.MaxHp) * 100;
if (_parent.Hp <= 0) {
_parent.Hp = 0;
_parent.Dead = true;
_parent.Mang.gotoAndStop("RoadKill");
}
if (_root.Conteneur.HitVehicule._y > _parent._y) {
_parent._y = _parent._y - 20;
_parent._x = _parent._x - 30;
} else if (_root.Conteneur.HitVehicule._y <= _parent._y) {
_parent._y = _parent._y + 20;
_parent._x = _parent._x - 30;
}
}
}
if (_root.Conteneur.Obstacle.hitTest(hitpts[i].x, hitpts[i].y, true) && (!_root.Jumping)) {
if (_name == "Top") {
_parent._y = _parent._y + _parent.moveY;
}
if (_name == "Bot") {
_parent._y = _parent._y - _global.moveY;
}
if (_name == "Left") {
_parent._x = _parent._x + _global.moveX;
}
if (_name == "Right") {
_parent._x = _parent._x - _global.moveX;
}
}
i++;
}
}
}
Instance of Symbol 250 MovieClip "Right" in Symbol 376 MovieClip [EnnemyTutoriel] Frame 1
onClipEvent (enterFrame) {
if (((!_parent.Dead) && (_parent.distanceX < 900)) && (!_parent.Hurted)) {
_parent._alpha = 100;
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.Conteneur.HitVehicule.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_name == "Top") {
_parent._y = _parent._y + _root.Conteneur.HitVehicule.Speed;
_parent.Hp = _parent.Hp - 10;
_parent.HealtTimer.gotoAndPlay(2);
_parent.HealtBar._alpha = 100;
_parent.HealtBar.Healt._xscale = (_parent.Hp / _parent.MaxHp) * 100;
if (_parent.Hp <= 0) {
_parent.Hp = 0;
_parent.Dead = true;
_parent.Mang.gotoAndStop("RoadKill");
}
if (_root.Conteneur.HitVehicule._y > _parent._y) {
_parent._y = _parent._y - 20;
} else if (_root.Conteneur.HitVehicule._y <= _parent._y) {
_parent._y = _parent._y + 20;
}
}
if (_name == "Bot") {
_parent._y = _parent._y + _root.Conteneur.HitVehicule.Speed;
_parent.Hp = _parent.Hp - 10;
_parent.HealtTimer.gotoAndPlay(2);
_parent.HealtBar._alpha = 100;
_parent.HealtBar.Healt._xscale = (_parent.Hp / _parent.MaxHp) * 100;
if (_parent.Hp <= 0) {
_parent.Hp = 0;
_parent.Dead = true;
_parent.Mang.gotoAndStop("RoadKill");
}
if (_root.Conteneur.HitVehicule._y > _parent._y) {
_parent._y = _parent._y - 20;
} else if (_root.Conteneur.HitVehicule._y <= _parent._y) {
_parent._y = _parent._y + 20;
}
}
if (_name == "Left") {
_parent._x = _parent._x + _root.Conteneur.HitVehicule.Speed;
_parent.Hp = _parent.Hp - 10;
_parent.HealtTimer.gotoAndPlay(2);
_parent.HealtBar._alpha = 100;
_parent.HealtBar.Healt._xscale = (_parent.Hp / _parent.MaxHp) * 100;
if (_parent.Hp <= 0) {
_parent.Hp = 0;
_parent.Dead = true;
_parent.Mang.gotoAndStop("RoadKill");
}
if (_root.Conteneur.HitVehicule._y > _parent._y) {
_parent._y = _parent._y - 20;
_parent._x = _parent._x + 30;
} else if (_root.Conteneur.HitVehicule._y <= _parent._y) {
_parent._y = _parent._y + 20;
_parent._x = _parent._x + 30;
}
}
if (_name == "Right") {
_parent._x = _parent._x - _root.Conteneur.HitVehicule.Speed;
_parent.Hp = _parent.Hp - 10;
_parent.HealtTimer.gotoAndPlay(2);
_parent.HealtBar._alpha = 100;
_parent.HealtBar.Healt._xscale = (_parent.Hp / _parent.MaxHp) * 100;
if (_parent.Hp <= 0) {
_parent.Hp = 0;
_parent.Dead = true;
_parent.Mang.gotoAndStop("RoadKill");
}
if (_root.Conteneur.HitVehicule._y > _parent._y) {
_parent._y = _parent._y - 20;
_parent._x = _parent._x - 30;
} else if (_root.Conteneur.HitVehicule._y <= _parent._y) {
_parent._y = _parent._y + 20;
_parent._x = _parent._x - 30;
}
}
}
if (_root.Conteneur.Obstacle.hitTest(hitpts[i].x, hitpts[i].y, true) && (!_root.Jumping)) {
if (_name == "Top") {
_parent._y = _parent._y + _parent.moveY;
}
if (_name == "Bot") {
_parent._y = _parent._y - _global.moveY;
}
if (_name == "Left") {
_parent._x = _parent._x + _global.moveX;
}
if (_name == "Right") {
_parent._x = _parent._x - _global.moveX;
}
}
i++;
}
}
}
Symbol 377 MovieClip [Ennemy] Frame 1
stop();
onFace = false;
randomPersonnage = random(6) + 1;
randomFace = randomPersonnage;
Mang.b_1.gotoAndStop(randomFace);
Mang.b_2.gotoAndStop(randomPersonnage);
Mang.b_3.gotoAndStop(randomPersonnage);
Mang.b_4.gotoAndStop(randomPersonnage);
Mang.b_5.gotoAndStop(randomPersonnage);
Mang.b_6.gotoAndStop(randomPersonnage);
Mang.b_7.gotoAndStop(randomPersonnage);
Mang.b_8.gotoAndStop(randomPersonnage);
Mang.b_9.gotoAndStop(randomPersonnage);
Mang.b_10.gotoAndStop(randomPersonnage);
Mang.b_11.gotoAndStop(randomPersonnage);
Mang.b_12.gotoAndStop(randomPersonnage);
Mang.b_13.gotoAndStop(randomPersonnage);
Instance of Symbol 250 MovieClip "Left" in Symbol 377 MovieClip [Ennemy] Frame 1
onClipEvent (enterFrame) {
if ((!_parent.Dead) && (!_parent.Hurted)) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.Conteneur.HitVehicule.Car.Hit.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_name == "Left") {
_parent._x = _parent._x + _root.Conteneur.HitVehicule.Speed;
_parent._y = _parent._y + 15;
_parent._x = _parent._x + 30;
}
if (_name == "Right") {
_parent._x = _parent._x - _root.Conteneur.HitVehicule.Speed;
_parent._y = _parent._y + 15;
_parent._x = _parent._x - 30;
}
}
if (_root.Conteneur.Obstacle.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_name == "Left") {
_parent._y = _parent._y + 30;
}
if (_name == "Right") {
_parent._y = _parent._y + 30;
}
}
i++;
}
}
}
Instance of Symbol 250 MovieClip "Right" in Symbol 377 MovieClip [Ennemy] Frame 1
onClipEvent (enterFrame) {
if ((!_parent.Dead) && (!_parent.Hurted)) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.Conteneur.HitVehicule.Car.Hit.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_name == "Left") {
_parent._x = _parent._x + _root.Conteneur.HitVehicule.Speed;
_parent._y = _parent._y + 15;
_parent._x = _parent._x + 30;
}
if (_name == "Right") {
_parent._x = _parent._x - _root.Conteneur.HitVehicule.Speed;
_parent._y = _parent._y + 15;
_parent._x = _parent._x - 30;
}
}
if (_root.Conteneur.Obstacle.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_name == "Left") {
_parent._y = _parent._y + 10;
}
if (_name == "Right") {
_parent._y = _parent._y + 10;
}
}
i++;
}
}
}
Symbol 395 MovieClip Frame 1
_parent.BaseSpeed = random(3) + 8;
_parent.BaseSpeedY = random(4);
onEnterFrame = function () {
_parent.speed = _parent.speed * 0.85;
_parent.speedY = _parent.speedY * 0.85;
};
randomWalk = random(40) + 1;
gotoAndPlay(randomWalk);
Symbol 395 MovieClip Frame 11
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 395 MovieClip Frame 34
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 395 MovieClip Frame 45
if (_parent.Dead) {
gotoAndPlay ("BeeingEaten");
} else {
gotoAndPlay ("Running");
}
Symbol 395 MovieClip Frame 71
stop();
_root.Conteneur.Ville.gotoAndPlay(2);
_root.Conteneur.Ville.ZBuilding.gotoAndStop(4);
_global.ActualCity = 6;
Symbol 413 MovieClip Frame 1
_parent.BaseSpeed = 4;
_parent.BaseSpeedY = random(2);
onEnterFrame = function () {
_parent.speed = _parent.speed * 0.98;
_parent.speedY = _parent.speedY * 0.98;
};
randomWalk = random(80) + 1;
gotoAndPlay(randomWalk);
Symbol 413 MovieClip Frame 22
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 413 MovieClip Frame 89
if (_parent.Dead) {
gotoAndPlay ("BeeingEaten");
} else {
gotoAndPlay ("Running");
}
Symbol 413 MovieClip Frame 112
stop();
_root.Conteneur.Ville.gotoAndPlay(2);
_root.Conteneur.Ville.ZBuilding.gotoAndStop(5);
_global.ActualCity = 5;
Symbol 463 MovieClip Frame 1
_parent.BaseSpeed = random(3) + 8;
_parent.BaseSpeedY = random(4);
onEnterFrame = function () {
_parent.speed = _parent.speed * 0.85;
_parent.speedY = _parent.speedY * 0.85;
};
randomWalk = random(105) + 1;
gotoAndPlay(randomWalk);
Symbol 463 MovieClip Frame 15
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 463 MovieClip Frame 44
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 463 MovieClip Frame 81
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 463 MovieClip Frame 103
_parent.speed = _parent.BaseSpeed;
_parent.speedY = _parent.BaseSpeedY;
Symbol 463 MovieClip Frame 112
if (_parent.Dead) {
gotoAndPlay ("BeeingEaten");
} else {
gotoAndPlay ("Running");
}
Symbol 463 MovieClip Frame 171
stop();
_root.Conteneur.Ville.gotoAndPlay(2);
_root.Conteneur.Ville.ZBuilding.gotoAndStop(2);
_global.ActualCity = 4;
Symbol 492 MovieClip Frame 1
_parent.BaseSpeed = 0;
_parent.BaseSpeedY = 0;
_parent.speed = 0;
_parent.speedY = 0;
randomWalk = random(95) + 1;
gotoAndPlay (2);
Symbol 492 MovieClip Frame 101
if (_parent.Dead) {
gotoAndPlay ("BeeingEaten");
} else {
gotoAndPlay ("Running");
}
Symbol 492 MovieClip Frame 144
stop();
_root.Conteneur.Ville.gotoAndPlay(2);
_root.Conteneur.Ville.ZBuilding.gotoAndStop(1);
_global.ActualCity = 2;
Symbol 507 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 2
BoxSound = new Sound();
BoxSound.attachSound("sd_WodenBox");
BoxSound.start();
Symbol 507 MovieClip Frame 7
NewSpecial = _root.Conteneur.attachMovie("Special6", "Special_6", (_root.getNextHighestDepth() + _root.nombreEnnemy) + 987);
if (_root.Conteneur.Special_5.RunningSide == "LEFT") {
NewSpecial._x = _root.Conteneur.Special_5._x - _root.Conteneur.Special_5.Car.Crate._x;
} else {
NewSpecial._x = _root.Conteneur.Special_5._x + _root.Conteneur.Special_5.Car.Crate._x;
}
NewSpecial._y = _root.Conteneur.Special_5._y - 10;
NewSpecial.Hurted = false;
NewSpecial.Dead = false;
NewSpecial.MaxHp = 10;
NewSpecial.Hp = 10;
NewSpecial.speed = 0;
NewSpecial.turnRate = 0.2;
NewSpecial.agroRange = 180;
NewSpecial.mode = "run";
NewSpecial.Mang.gotoAndPlay("StartRunning");
NewSpecial.RunningSide = "LEFT";
_root.enemiesArray.push(NewSpecial);
_root.tabAllElements.push(NewSpecial);
_root.nombreEnnemy++;
Symbol 507 MovieClip Frame 10
stop();
Symbol 529 MovieClip Frame 1
CrateOk = true;
onEnterFrame = function () {
if (_root.Jumping && (_root.JumpSpeed != 0)) {
if (_root.Conteneur.Player.hitTest(Crate) && (CrateOk)) {
CrateOk = false;
Crate.play();
}
}
};
Symbol 530 MovieClip [Special5] Frame 1
nbRun = 0;
Roll = true;
Speed = 10;
PositionTop = 120;
PositionBot = 170;
onEnterFrame = function () {
if (nbRun >= 1) {
Roll = false;
}
if (Roll) {
if (RunningSide == "LEFT") {
_x = (_x - Speed);
} else if (RunningSide == "RIGHT") {
_x = (_x + Speed);
}
if (_x < -1200) {
if (!Car.CrateOk) {
nbRun++;
}
RunningSide = "RIGHT";
_xscale = (_xscale * -1);
NewPosition = random(2);
if (NewPosition == 1) {
_y = PositionTop;
} else {
_y = PositionBot;
}
} else if (_x > 1200) {
if (!Car.CrateOk) {
nbRun++;
}
RunningSide = "LEFT";
_xscale = (_xscale * -1);
NewPosition = random(2);
if (NewPosition == 1) {
_y = PositionTop;
} else {
_y = PositionBot;
}
}
}
};
Symbol 552 MovieClip Frame 1
_parent.BaseSpeed = 0;
_parent.BaseSpeedY = 0;
randomWalk = random(65) + 1;
gotoAndPlay(randomWalk);
Symbol 552 MovieClip Frame 70
if (_parent.Dead) {
gotoAndPlay ("BeeingEaten");
} else {
gotoAndPlay ("Running");
}
Symbol 552 MovieClip Frame 84
stop();
_root.Conteneur.Ville.gotoAndPlay(2);
_root.Conteneur.Ville.ZBuilding.gotoAndStop(3);
_global.ActualCity = 3;
Symbol 559 MovieClip Frame 1
stop();
Symbol 559 MovieClip Frame 5
_parent.removeMovieClip();
Symbol 560 MovieClip [SpitBall] Frame 1
if (_root.Conteneur.Player.Mang._xscale < 0) {
SpeedBall = -9;
_xscale = (_xscale * -1);
} else {
SpeedBall = 9;
}
Target = "None";
Intacte = true;
onEnterFrame = function () {
_x = (_x + SpeedBall);
i = 0;
while (i < _root.enemiesArray.length) {
if (((this.hitTest(_root.enemiesArray[i].Mang.b_2) && (Intacte)) && (!_root.enemiesArray[i].Dead)) && (!_root.enemiesArray[i].Hurted)) {
AcidSound = new Sound();
AcidSound.attachSound("sd_Acid");
AcidSound.start();
Target = _root.enemiesArray[i];
Intacte = false;
Target.Hp = 0;
Target.Dead = true;
Target.mode = "Burn";
Target.Mang.gotoAndPlay("Burn");
_root.IncreaseReput();
_root.nbHumanKilled++;
_global.AtsuNingen++;
_root.SpawnOneEnnemy();
if (_global.TabLockedSkin[6] && (_global.AtsuNingen == 5)) {
_global.TabLockedSkin[6] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
if (_global.TabLockedSkin[7] && (_global.AtsuNingen == 15)) {
_global.TabLockedSkin[7] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
TimerDissipate.play();
}
i++;
}
i = 0;
while (i < _root.tabShootingEnnemy.length) {
if (((((this.hitTest(_root.tabShootingEnnemy[i].Mang.b_3) || (this.hitTest(_root.tabShootingEnnemy[i].Mang.b_2))) || (this.hitTest(_root.tabShootingEnnemy[i].Mang.b_1))) && (Intacte)) && (!_root.tabShootingEnnemy[i].Dead)) && (!_root.tabShootingEnnemy[i].Hurted)) {
AcidSound = new Sound();
AcidSound.attachSound("sd_Acid");
AcidSound.start();
Target = _root.tabShootingEnnemy[i];
Intacte = false;
Target.Hp = 0;
Target.Dead = true;
Target.mode = "Burn";
randomBurn = random(2) + 1;
Target.Mang.gotoAndPlay("Burn" + randomBurn);
_root.IncreaseReput();
_root.IncreaseReput();
_root.nbShooterKilled++;
_global.AtsuNingen++;
_root.nbHumanKilled++;
if (_global.TabLockedSkin[7] && (_global.AtsuNingen == 5)) {
_global.TabLockedSkin[7] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
if (_global.TabLockedSkin[8] && (_global.AtsuNingen == 15)) {
_global.TabLockedSkin[8] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
TimerDissipate.play();
}
i++;
}
};
Symbol 567 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 597 MovieClip Frame 1
stop();
Symbol 608 MovieClip Frame 1
stop();
Symbol 609 MovieClip Frame 1
stop();
Symbol 610 MovieClip [VoitureTest] Frame 1
function Klackson() {
if (((_x < (_root.Conteneur.Player._x + 150)) && (_x > (_root.Conteneur.Player._x - 150))) && (!ClacksonPlayed)) {
ClacksonPlayed = true;
ClacksonSound = new Sound();
ClacksonSound.attachSound("sd_Clakson");
ClacksonSound.start();
}
}
nbRun = 0;
Roll = false;
Speed = 20;
PositionTop = 120;
PositionBot = 170;
ClacksonPlayed = false;
_root.tabAllElements.push(this);
onEnterFrame = function () {
Klackson();
if (nbRun >= 1) {
Roll = false;
ClacksonPlayed = false;
}
if (Roll) {
if (RunningSide == "LEFT") {
_x = (_x - Speed);
} else if (RunningSide == "RIGHT") {
_x = (_x + Speed);
}
if (_x < -1200) {
nbRun++;
_x = 1200;
NewPosition = random(2);
if (NewPosition == 1) {
_y = PositionTop;
} else {
_y = PositionBot;
}
} else if (_x > 1200) {
nbRun++;
_x = -1200;
NewPosition = random(2);
if (NewPosition == 1) {
_y = PositionTop;
} else {
_y = PositionBot;
}
}
}
};
Symbol 628 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 628 MovieClip Frame 2
gotoAndPlay (1);
Symbol 628 MovieClip Frame 3
_root.play();
Symbol 1676 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 1677 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 1678 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 1679 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 1680 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 1681 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 636 Button
on (release) {
act = 2;
}
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
act = 4;
gotoAndPlay (16);
}
Symbol 637 MovieClip Frame 1
stop();
Symbol 637 MovieClip Frame 5
act = 3;
Symbol 637 MovieClip Frame 15
stop();
Symbol 638 MovieClip Frame 200
stop();
btn1.strText = "PLAY";
Instance of Symbol 637 MovieClip in Symbol 638 MovieClip Frame 200
onClipEvent (load) {
boxx.txx = "PLAY";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_root.play();
}
}
Symbol 714 MovieClip Frame 669
_root.gotoAndStop(20);
Instance of Symbol 722 MovieClip in Symbol 723 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (300);
}
Instance of Symbol 722 MovieClip in Symbol 723 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (300);
}
Symbol 873 MovieClip Frame 1
lavr_link = "http://www.gamesfree.ca/";
shade = 0;
Symbol 873 MovieClip Frame 2
lavr_link = "http://www.andkon.com";
shade = 2;
Symbol 873 MovieClip Frame 3
lavr_link = "http://www.SolidGames.com";
shade = 0;
Symbol 873 MovieClip Frame 4
lavr_link = "http://www.girldressupgames.biz";
shade = 1;
Symbol 873 MovieClip Frame 5
lavr_link = "http://www.yepi.com";
shade = 0;
Symbol 873 MovieClip Frame 6
lavr_link = "http://www.bubblebox.com";
shade = 1;
Symbol 873 MovieClip Frame 7
lavr_link = "http://www.bunnygames.com";
shade = 1;
Symbol 873 MovieClip Frame 8
lavr_link = "http://www.dailyfreegames.com";
shade = 1;
Symbol 873 MovieClip Frame 9
lavr_link = "http://www.directgamez.com";
shade = 2;
Symbol 873 MovieClip Frame 10
lavr_link = "http://www.2flashgames.com";
shade = 2;
Symbol 873 MovieClip Frame 11
lavr_link = "http://www.flashninjaclan.com";
shade = 1;
Symbol 873 MovieClip Frame 12
lavr_link = "http://www.dailyaddictinggames.com/";
shade = 1;
Symbol 873 MovieClip Frame 13
lavr_link = "http://www.funny-games.biz";
shade = 1;
Symbol 873 MovieClip Frame 14
lavr_link = "http://www.gameitnow.com";
shade = 2;
Symbol 873 MovieClip Frame 15
lavr_link = "http://www.games1.com";
shade = 0;
Symbol 873 MovieClip Frame 16
lavr_link = "http://www.onjogos.com.br";
shade = 1;
Symbol 873 MovieClip Frame 17
lavr_link = "http://www.gamesfreak.net";
shade = 2;
Symbol 873 MovieClip Frame 18
lavr_link = "http://www.maxi-juegos.com";
shade = 1;
Symbol 873 MovieClip Frame 19
lavr_link = "http://www.jarkey.net";
shade = 2;
Symbol 873 MovieClip Frame 20
lavr_link = "http://www.gam123bee.com/";
shade = 1;
Symbol 873 MovieClip Frame 21
lavr_link = "http://www.keepbusy.net";
shade = 1;
Symbol 873 MovieClip Frame 22
lavr_link = "http://www.microjogos.com";
shade = 1;
Symbol 873 MovieClip Frame 23
lavr_link = "http://www.minijuegos.com";
shade = 2;
Symbol 873 MovieClip Frame 24
lavr_link = "http://www.oyunskor.com/";
shade = 1;
Symbol 873 MovieClip Frame 25
lavr_link = "http://www.mostfungames.com";
shade = 2;
Symbol 873 MovieClip Frame 26
lavr_link = "http://www.gameshot.org";
shade = 1;
Symbol 873 MovieClip Frame 27
lavr_link = "http://www.online-games-zone.com/";
shade = 2;
Symbol 873 MovieClip Frame 28
lavr_link = "http://www.puffgames.com";
shade = 2;
Symbol 873 MovieClip Frame 29
lavr_link = "http://www.spele.nl";
shade = 1;
Symbol 873 MovieClip Frame 30
lavr_link = "http://www.t45ol.com";
shade = 2;
Symbol 873 MovieClip Frame 31
lavr_link = "http://www.thegamesonline.com/";
shade = 1;
Symbol 873 MovieClip Frame 32
lavr_link = "http://www.ultimatearcade.com";
shade = 1;
Symbol 873 MovieClip Frame 33
lavr_link = "http://www.girlgames4u.com/";
shade = 1;
Symbol 873 MovieClip Frame 34
lavr_link = "http://www.beer-games.net";
shade = 0;
Symbol 873 MovieClip Frame 35
lavr_link = "http://www.beer-games.net";
shade = 0;
Symbol 873 MovieClip Frame 36
lavr_link = "http://www.jeuxvideo-flash.com/";
shade = 0;
Symbol 873 MovieClip Frame 37
lavr_link = "http://www.flashgames.it/";
shade = 1;
Symbol 873 MovieClip Frame 38
lavr_link = "http://www.gamesgirl.ca/";
shade = 1;
Symbol 873 MovieClip Frame 39
lavr_link = "http://www.hallpass.com/";
shade = 2;
Symbol 873 MovieClip Frame 40
lavr_link = "http://www.gamegecko.com/";
shade = 0;
Symbol 873 MovieClip Frame 41
lavr_link = "http://www.benz.be";
shade = 2;
Symbol 873 MovieClip Frame 42
lavr_link = "http://www.net-games.co.il/";
shade = 1;
Symbol 873 MovieClip Frame 43
lavr_link = "http://www.bgames.com";
shade = 1;
Symbol 873 MovieClip Frame 44
lavr_link = "http://www.pinkyarcade.com/";
shade = 1;
Symbol 873 MovieClip Frame 45
lavr_link = "http://jayisgames.com/";
shade = 0;
Symbol 873 MovieClip Frame 46
lavr_link = "http://www.twizl.com/";
shade = 1;
Symbol 873 MovieClip Frame 47
lavr_link = "http://www.a10.com/";
shade = 1;
Symbol 873 MovieClip Frame 48
lavr_link = "http://www.bonniegames.com/";
shade = 1;
Symbol 873 MovieClip Frame 49
lavr_link = "http://www.ug2.com/";
shade = 0;
Symbol 873 MovieClip Frame 50
lavr_link = "http://www.agame.com";
shade = 1;
Symbol 873 MovieClip Frame 51
lavr_link = "http://www.gamesclub.com/";
shade = 1;
Symbol 873 MovieClip Frame 52
lavr_link = "http://www.killhours.com/";
shade = 1;
Symbol 873 MovieClip Frame 53
lavr_link = "http://www.flasharcadegamessite.com/";
shade = 1;
Symbol 873 MovieClip Frame 54
lavr_link = "http://www.roundgames.com/";
shade = 2;
Symbol 873 MovieClip Frame 55
lavr_link = "http://www.arcadegangsta.com/";
shade = 1;
Symbol 873 MovieClip Frame 56
lavr_link = "http://www.bored.com/";
shade = 0;
Symbol 873 MovieClip Frame 57
lavr_link = "http://www.flash-games.net/";
shade = 1;
Symbol 873 MovieClip Frame 58
lavr_link = "http://www.flash-game.net/";
shade = 1;
Symbol 873 MovieClip Frame 59
lavr_link = "http://www.kingofgames.net";
shade = 1;
Symbol 873 MovieClip Frame 60
lavr_link = "http://www.playhub.com/";
shade = 0;
Symbol 873 MovieClip Frame 61
lavr_link = "http://www.123spill.no/";
shade = 1;
Symbol 873 MovieClip Frame 62
lavr_link = "http://www.dailygames.com/";
shade = 1;
Symbol 873 MovieClip Frame 63
lavr_link = "http://www.octogames.com/";
shade = 2;
Symbol 873 MovieClip Frame 64
lavr_link = "http://www.ugotgames.com/";
shade = 1;
Symbol 873 MovieClip Frame 65
lavr_link = "http://www.fupa.com/";
shade = 1;
Symbol 873 MovieClip Frame 66
lavr_link = "http://www.kibagames.com/";
shade = 0;
Symbol 873 MovieClip Frame 67
lavr_link = "http://www.kraloyun.com/";
shade = 0;
Symbol 873 MovieClip Frame 68
lavr_link = "http://www.spielaffe.de/";
shade = 0;
Symbol 873 MovieClip Frame 69
lavr_link = "http://www.39games.com";
shade = 2;
Symbol 873 MovieClip Frame 70
lavr_link = "http://www.bijuegos.com";
shade = 0;
Symbol 873 MovieClip Frame 71
lavr_link = "http://www.mofunzone.com";
shade = 2;
Symbol 873 MovieClip Frame 72
lavr_link = "http://www.freegamespy.com/";
shade = 2;
Symbol 873 MovieClip Frame 73
lavr_link = "http://www.jogos10.com";
shade = 0;
Symbol 873 MovieClip Frame 74
lavr_link = "http://www.juegos10.com";
shade = 0;
Symbol 873 MovieClip Frame 75
lavr_link = "http://flash.178.com/";
shade = 0;
Symbol 873 MovieClip Frame 76
lavr_link = "http://www.papajogos.com.br";
shade = 0;
Symbol 873 MovieClip Frame 77
lavr_link = "http://www.arcadelots.com/";
shade = 0;
Symbol 873 MovieClip Frame 78
lavr_link = "http://www.minigamers.com/";
shade = 0;
Symbol 873 MovieClip Frame 79
lavr_link = "http://www.stickpage.com";
shade = 0;
Symbol 873 MovieClip Frame 80
lavr_link = "http://www.y8.com/";
shade = 1;
Symbol 873 MovieClip Frame 81
lavr_link = "http://www.y3.com/";
shade = 1;
Symbol 873 MovieClip Frame 82
lavr_link = "http://www.gangofgamers.com/";
shade = 0;
Symbol 873 MovieClip Frame 83
lavr_link = "http://www.videobash.com/";
shade = 0;
Symbol 874 MovieClip Frame 1
stop();
Symbol 875 Button
on (release) {
getURL (boxx.lavr_link, "_blank");
}
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (21);
}
Symbol 876 MovieClip Frame 1
stop();
Symbol 876 MovieClip Frame 20
stop();
Symbol 882 MovieClip Frame 1
stop();
Symbol 885 MovieClip Frame 1
stop();
Symbol 888 MovieClip Frame 1
stop();
Symbol 891 MovieClip Frame 1
stop();
Symbol 894 MovieClip Frame 1
stop();
Symbol 897 MovieClip Frame 1
stop();
Symbol 900 MovieClip Frame 1
stop();
Symbol 903 MovieClip Frame 1
stop();
Symbol 905 MovieClip Frame 1
stop();
Symbol 908 MovieClip Frame 1
stop();
Symbol 911 MovieClip Frame 1
stop();
Symbol 914 MovieClip Frame 1
stop();
Symbol 917 MovieClip Frame 1
stop();
Symbol 919 MovieClip Frame 1
stop();
Symbol 921 MovieClip Frame 1
stop();
Symbol 924 MovieClip Frame 1
stop();
Symbol 926 MovieClip Frame 1
stop();
Symbol 928 MovieClip Frame 1
stop();
Symbol 931 MovieClip Frame 1
stop();
Symbol 934 MovieClip Frame 1
stop();
Symbol 935 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.ActualBody);
};
Symbol 938 MovieClip Frame 1
stop();
Symbol 941 MovieClip Frame 1
stop();
Symbol 944 MovieClip Frame 1
stop();
Symbol 947 MovieClip Frame 1
stop();
Symbol 950 MovieClip Frame 1
stop();
Symbol 953 MovieClip Frame 1
stop();
Symbol 954 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.RangeUpgrade + 1);
};
Symbol 955 MovieClip Frame 1
stop();
Symbol 958 MovieClip Frame 1
stop();
Symbol 961 MovieClip Frame 1
stop();
Symbol 962 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.ActualBody);
};
Symbol 965 MovieClip Frame 1
stop();
Symbol 968 MovieClip Frame 1
stop();
Symbol 971 MovieClip Frame 1
stop();
Symbol 974 MovieClip Frame 1
stop();
Symbol 977 MovieClip Frame 1
stop();
Symbol 980 MovieClip Frame 1
stop();
Symbol 983 MovieClip Frame 1
stop();
Symbol 986 MovieClip Frame 1
stop();
Symbol 989 MovieClip Frame 1
stop();
Symbol 992 MovieClip Frame 1
stop();
Symbol 995 MovieClip Frame 1
stop();
Symbol 998 MovieClip Frame 1
stop();
Symbol 1001 MovieClip Frame 1
stop();
Symbol 1004 MovieClip Frame 1
stop();
Symbol 1007 MovieClip Frame 1
stop();
Symbol 1010 MovieClip Frame 1
stop();
Symbol 1013 MovieClip Frame 1
stop();
Symbol 1016 MovieClip Frame 1
stop();
Symbol 1019 MovieClip Frame 1
stop();
Symbol 1022 MovieClip Frame 1
stop();
Symbol 1023 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.ActualBody);
};
Symbol 1026 MovieClip Frame 1
stop();
Symbol 1029 MovieClip Frame 1
stop();
Symbol 1032 MovieClip Frame 1
stop();
Symbol 1035 MovieClip Frame 1
stop();
Symbol 1038 MovieClip Frame 1
stop();
Symbol 1041 MovieClip Frame 1
stop();
Symbol 1044 MovieClip Frame 1
stop();
Symbol 1047 MovieClip Frame 1
stop();
Symbol 1050 MovieClip Frame 1
stop();
Symbol 1053 MovieClip Frame 1
stop();
Symbol 1056 MovieClip Frame 1
stop();
Symbol 1059 MovieClip Frame 1
stop();
Symbol 1062 MovieClip Frame 1
stop();
Symbol 1065 MovieClip Frame 1
stop();
Symbol 1068 MovieClip Frame 1
stop();
Symbol 1071 MovieClip Frame 1
stop();
Symbol 1074 MovieClip Frame 1
stop();
Symbol 1076 MovieClip Frame 1
stop();
Symbol 1078 MovieClip Frame 1
stop();
Symbol 1081 MovieClip Frame 1
stop();
Symbol 1082 MovieClip Frame 1
stop();
_root.Menu.LockBody.gotoAndStop(1);
_parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
onEnterFrame = function () {
gotoAndStop(_global.ActualBody);
};
Symbol 1082 MovieClip Frame 10
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
Symbol 1082 MovieClip Frame 11
if (_global.TabLockedSkin[0]) {
BackBones.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
_parent._parent.b_3.BotBack.gotoAndStop(2);
_parent._parent.b_4.Pants.gotoAndStop(2);
_parent._parent.b_5.gotoAndStop(2);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_7.Pants.gotoAndStop(2);
_parent._parent.b_8.gotoAndStop(2);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_10.Harm.gotoAndStop(2);
_parent._parent.b_11.gotoAndStop(2);
_parent._parent.b_12.Claw.Claw.gotoAndStop(2);
_parent._parent.b_13.Harm.gotoAndStop(2);
_parent._parent.b_14.gotoAndStop(2);
_parent._parent.b_15.Claw.Claw.gotoAndStop(2);
_global.BodyLocked = true;
_root.Menu.LockBody.noAchievement = "Achievement 1";
} else {
BackBones.gotoAndStop(1);
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
}
Symbol 1082 MovieClip Frame 12
if (_global.TabLockedSkin[1]) {
BackBones.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
_parent._parent.b_3.BotBack.gotoAndStop(2);
_parent._parent.b_4.Pants.gotoAndStop(2);
_parent._parent.b_5.gotoAndStop(2);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_7.Pants.gotoAndStop(2);
_parent._parent.b_8.gotoAndStop(2);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_10.Harm.gotoAndStop(2);
_parent._parent.b_11.gotoAndStop(2);
_parent._parent.b_12.Claw.Claw.gotoAndStop(2);
_parent._parent.b_13.Harm.gotoAndStop(2);
_parent._parent.b_14.gotoAndStop(2);
_parent._parent.b_15.Claw.Claw.gotoAndStop(2);
_global.BodyLocked = true;
_root.Menu.LockBody.noAchievement = "Achievement 2";
} else {
BackBones.gotoAndStop(1);
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
}
Symbol 1082 MovieClip Frame 13
if (_global.TabLockedSkin[2]) {
BackBones.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
_parent._parent.b_3.BotBack.gotoAndStop(2);
_parent._parent.b_4.Pants.gotoAndStop(2);
_parent._parent.b_5.gotoAndStop(2);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_7.Pants.gotoAndStop(2);
_parent._parent.b_8.gotoAndStop(2);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_10.Harm.gotoAndStop(2);
_parent._parent.b_11.gotoAndStop(2);
_parent._parent.b_12.Claw.Claw.gotoAndStop(2);
_parent._parent.b_13.Harm.gotoAndStop(2);
_parent._parent.b_14.gotoAndStop(2);
_parent._parent.b_15.Claw.Claw.gotoAndStop(2);
_global.BodyLocked = true;
_root.Menu.LockBody.noAchievement = "Achievement 3";
} else {
BackBones.gotoAndStop(1);
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
}
Symbol 1082 MovieClip Frame 14
if (_global.TabLockedSkin[3]) {
BackBones.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
_parent._parent.b_3.BotBack.gotoAndStop(2);
_parent._parent.b_4.Pants.gotoAndStop(2);
_parent._parent.b_5.gotoAndStop(2);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_7.Pants.gotoAndStop(2);
_parent._parent.b_8.gotoAndStop(2);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_10.Harm.gotoAndStop(2);
_parent._parent.b_11.gotoAndStop(2);
_parent._parent.b_12.Claw.Claw.gotoAndStop(2);
_parent._parent.b_13.Harm.gotoAndStop(2);
_parent._parent.b_14.gotoAndStop(2);
_parent._parent.b_15.Claw.Claw.gotoAndStop(2);
_global.BodyLocked = true;
_root.Menu.LockBody.noAchievement = "Achievement 4";
} else {
BackBones.gotoAndStop(1);
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
}
Symbol 1082 MovieClip Frame 15
if (_global.TabLockedSkin[4]) {
BackBones.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
_parent._parent.b_3.BotBack.gotoAndStop(2);
_parent._parent.b_4.Pants.gotoAndStop(2);
_parent._parent.b_5.gotoAndStop(2);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_7.Pants.gotoAndStop(2);
_parent._parent.b_8.gotoAndStop(2);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_10.Harm.gotoAndStop(2);
_parent._parent.b_11.gotoAndStop(2);
_parent._parent.b_12.Claw.Claw.gotoAndStop(2);
_parent._parent.b_13.Harm.gotoAndStop(2);
_parent._parent.b_14.gotoAndStop(2);
_parent._parent.b_15.Claw.Claw.gotoAndStop(2);
_global.BodyLocked = true;
_root.Menu.LockBody.noAchievement = "Achievement 5";
} else {
BackBones.gotoAndStop(1);
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
}
Symbol 1082 MovieClip Frame 16
if (_global.TabLockedSkin[5]) {
BackBones.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
_parent._parent.b_3.BotBack.gotoAndStop(2);
_parent._parent.b_4.Pants.gotoAndStop(2);
_parent._parent.b_5.gotoAndStop(2);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_7.Pants.gotoAndStop(2);
_parent._parent.b_8.gotoAndStop(2);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_10.Harm.gotoAndStop(2);
_parent._parent.b_11.gotoAndStop(2);
_parent._parent.b_12.Claw.Claw.gotoAndStop(2);
_parent._parent.b_13.Harm.gotoAndStop(2);
_parent._parent.b_14.gotoAndStop(2);
_parent._parent.b_15.Claw.Claw.gotoAndStop(2);
_global.BodyLocked = true;
_root.Menu.LockBody.noAchievement = "Achievement 6";
} else {
BackBones.gotoAndStop(1);
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
}
Symbol 1082 MovieClip Frame 17
if (_global.TabLockedSkin[6]) {
BackBones.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
_parent._parent.b_3.BotBack.gotoAndStop(2);
_parent._parent.b_4.Pants.gotoAndStop(2);
_parent._parent.b_5.gotoAndStop(2);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_7.Pants.gotoAndStop(2);
_parent._parent.b_8.gotoAndStop(2);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_10.Harm.gotoAndStop(2);
_parent._parent.b_11.gotoAndStop(2);
_parent._parent.b_12.Claw.Claw.gotoAndStop(2);
_parent._parent.b_13.Harm.gotoAndStop(2);
_parent._parent.b_14.gotoAndStop(2);
_parent._parent.b_15.Claw.Claw.gotoAndStop(2);
_global.BodyLocked = true;
_root.Menu.LockBody.noAchievement = "Achievement 7";
} else {
BackBones.gotoAndStop(1);
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
}
Symbol 1082 MovieClip Frame 18
if (_global.TabLockedSkin[7]) {
BackBones.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
_parent._parent.b_3.BotBack.gotoAndStop(2);
_parent._parent.b_4.Pants.gotoAndStop(2);
_parent._parent.b_5.gotoAndStop(2);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_7.Pants.gotoAndStop(2);
_parent._parent.b_8.gotoAndStop(2);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_10.Harm.gotoAndStop(2);
_parent._parent.b_11.gotoAndStop(2);
_parent._parent.b_12.Claw.Claw.gotoAndStop(2);
_parent._parent.b_13.Harm.gotoAndStop(2);
_parent._parent.b_14.gotoAndStop(2);
_parent._parent.b_15.Claw.Claw.gotoAndStop(2);
_global.BodyLocked = true;
_root.Menu.LockBody.noAchievement = "Achievement 8";
} else {
BackBones.gotoAndStop(1);
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
}
Symbol 1082 MovieClip Frame 19
if (_global.TabLockedSkin[8]) {
BackBones.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
_parent._parent.b_3.BotBack.gotoAndStop(2);
_parent._parent.b_4.Pants.gotoAndStop(2);
_parent._parent.b_5.gotoAndStop(2);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_7.Pants.gotoAndStop(2);
_parent._parent.b_8.gotoAndStop(2);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_10.Harm.gotoAndStop(2);
_parent._parent.b_11.gotoAndStop(2);
_parent._parent.b_12.Claw.Claw.gotoAndStop(2);
_parent._parent.b_13.Harm.gotoAndStop(2);
_parent._parent.b_14.gotoAndStop(2);
_parent._parent.b_15.Claw.Claw.gotoAndStop(2);
_global.BodyLocked = true;
_root.Menu.LockBody.noAchievement = "Achievement 9";
} else {
BackBones.gotoAndStop(1);
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
}
Symbol 1082 MovieClip Frame 20
if (_global.TabLockedSkin[9]) {
BackBones.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
_parent._parent.b_3.BotBack.gotoAndStop(2);
_parent._parent.b_4.Pants.gotoAndStop(2);
_parent._parent.b_5.gotoAndStop(2);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_7.Pants.gotoAndStop(2);
_parent._parent.b_8.gotoAndStop(2);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_10.Harm.gotoAndStop(2);
_parent._parent.b_11.gotoAndStop(2);
_parent._parent.b_12.Claw.Claw.gotoAndStop(2);
_parent._parent.b_13.Harm.gotoAndStop(2);
_parent._parent.b_14.gotoAndStop(2);
_parent._parent.b_15.Claw.Claw.gotoAndStop(2);
_global.BodyLocked = true;
_root.Menu.LockBody.noAchievement = "Achievement 10";
} else {
BackBones.gotoAndStop(1);
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
}
Symbol 1082 MovieClip Frame 21
if (_global.TabLockedSkin[10]) {
BackBones.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
_parent._parent.b_3.BotBack.gotoAndStop(2);
_parent._parent.b_4.Pants.gotoAndStop(2);
_parent._parent.b_5.gotoAndStop(2);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_7.Pants.gotoAndStop(2);
_parent._parent.b_8.gotoAndStop(2);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_10.Harm.gotoAndStop(2);
_parent._parent.b_11.gotoAndStop(2);
_parent._parent.b_12.Claw.Claw.gotoAndStop(2);
_parent._parent.b_13.Harm.gotoAndStop(2);
_parent._parent.b_14.gotoAndStop(2);
_parent._parent.b_15.Claw.Claw.gotoAndStop(2);
_global.BodyLocked = true;
} else {
BackBones.gotoAndStop(1);
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
}
Symbol 1082 MovieClip Frame 22
if (_global.TabLockedSkin[11]) {
BackBones.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
_parent._parent.b_3.BotBack.gotoAndStop(2);
_parent._parent.b_4.Pants.gotoAndStop(2);
_parent._parent.b_5.gotoAndStop(2);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_7.Pants.gotoAndStop(2);
_parent._parent.b_8.gotoAndStop(2);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_10.Harm.gotoAndStop(2);
_parent._parent.b_11.gotoAndStop(2);
_parent._parent.b_12.Claw.Claw.gotoAndStop(2);
_parent._parent.b_13.Harm.gotoAndStop(2);
_parent._parent.b_14.gotoAndStop(2);
_parent._parent.b_15.Claw.Claw.gotoAndStop(2);
_global.BodyLocked = true;
} else {
BackBones.gotoAndStop(1);
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
}
Symbol 1082 MovieClip Frame 23
if (_global.TabLockedSkin[12]) {
BackBones.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
_parent._parent.b_3.BotBack.gotoAndStop(2);
_parent._parent.b_4.Pants.gotoAndStop(2);
_parent._parent.b_5.gotoAndStop(2);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_7.Pants.gotoAndStop(2);
_parent._parent.b_8.gotoAndStop(2);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(2);
_parent._parent.b_10.Harm.gotoAndStop(2);
_parent._parent.b_11.gotoAndStop(2);
_parent._parent.b_12.Claw.Claw.gotoAndStop(2);
_parent._parent.b_13.Harm.gotoAndStop(2);
_parent._parent.b_14.gotoAndStop(2);
_parent._parent.b_15.Claw.Claw.gotoAndStop(2);
_global.BodyLocked = true;
} else {
BackBones.gotoAndStop(1);
_root.Menu.LockBody.gotoAndStop(1);
_parent._parent.b_4.Pants.gotoAndStop(1);
_parent._parent.b_5.gotoAndStop(1);
_parent._parent.b_6.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_7.Pants.gotoAndStop(1);
_parent._parent.b_8.gotoAndStop(1);
_parent._parent.b_9.Shoes.Shoes.gotoAndStop(1);
_parent._parent.b_10.Harm.gotoAndStop(1);
_parent._parent.b_11.gotoAndStop(1);
_parent._parent.b_12.Claw.Claw.gotoAndStop(1);
_parent._parent.b_13.Harm.gotoAndStop(1);
_parent._parent.b_14.gotoAndStop(1);
_parent._parent.b_15.Claw.Claw.gotoAndStop(1);
_global.BodyLocked = false;
}
Symbol 1083 MovieClip Frame 1
stop();
Symbol 1083 MovieClip Frame 28
_global.PlayerHealtUpgrade++;
Symbol 1086 MovieClip Frame 1
stop();
Symbol 1090 MovieClip Frame 1
stop();
Symbol 1093 MovieClip Frame 1
stop();
Symbol 1096 MovieClip Frame 1
stop();
Symbol 1099 MovieClip Frame 1
stop();
Symbol 1102 MovieClip Frame 1
stop();
Symbol 1105 MovieClip Frame 1
stop();
Symbol 1108 MovieClip Frame 1
stop();
Symbol 1111 MovieClip Frame 1
stop();
Symbol 1114 MovieClip Frame 1
stop();
Symbol 1117 MovieClip Frame 1
stop();
Symbol 1120 MovieClip Frame 1
stop();
Symbol 1123 MovieClip Frame 1
stop();
Symbol 1126 MovieClip Frame 1
stop();
Symbol 1129 MovieClip Frame 1
stop();
Symbol 1132 MovieClip Frame 1
stop();
Symbol 1135 MovieClip Frame 1
stop();
Symbol 1138 MovieClip Frame 1
stop();
Symbol 1141 MovieClip Frame 1
stop();
Symbol 1144 MovieClip Frame 1
stop();
Symbol 1145 MovieClip Frame 1
stop();
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
onEnterFrame = function () {
gotoAndStop(_global.ActualHead);
};
Symbol 1145 MovieClip Frame 10
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
Symbol 1145 MovieClip Frame 11
if (_global.TabLockedSkin[0]) {
Head.gotoAndStop(2);
_parent.b_18.Jaw.Jaw.gotoAndStop(2);
_parent.b_16.gotoAndStop(2);
_parent.b_17.gotoAndStop(2);
_root.Menu.LockFace.gotoAndStop(2);
_global.HeadLocked = true;
_root.Menu.LockFace.noAchievement = "Achievement 1";
} else {
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
}
Symbol 1145 MovieClip Frame 12
if (_global.TabLockedSkin[1]) {
Head.gotoAndStop(2);
_parent.b_18.Jaw.Jaw.gotoAndStop(2);
_parent.b_16.gotoAndStop(2);
_parent.b_17.gotoAndStop(2);
_root.Menu.LockFace.gotoAndStop(2);
_global.HeadLocked = true;
_root.Menu.LockFace.noAchievement = "Achievement 2";
} else {
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
}
Symbol 1145 MovieClip Frame 13
if (_global.TabLockedSkin[2]) {
Head.gotoAndStop(2);
_parent.b_18.Jaw.Jaw.gotoAndStop(2);
_parent.b_16.gotoAndStop(2);
_parent.b_17.gotoAndStop(2);
_root.Menu.LockFace.gotoAndStop(2);
_global.HeadLocked = true;
_root.Menu.LockFace.noAchievement = "Achievement 3";
} else {
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
}
Symbol 1145 MovieClip Frame 14
if (_global.TabLockedSkin[3]) {
Head.gotoAndStop(2);
_parent.b_18.Jaw.Jaw.gotoAndStop(2);
_parent.b_16.gotoAndStop(2);
_parent.b_17.gotoAndStop(2);
_root.Menu.LockFace.gotoAndStop(2);
_global.HeadLocked = true;
_root.Menu.LockFace.noAchievement = "Achievement 4";
} else {
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
}
Symbol 1145 MovieClip Frame 15
if (_global.TabLockedSkin[4]) {
Head.gotoAndStop(2);
_parent.b_18.Jaw.Jaw.gotoAndStop(2);
_parent.b_16.gotoAndStop(2);
_parent.b_17.gotoAndStop(2);
_root.Menu.LockFace.gotoAndStop(2);
_global.HeadLocked = true;
_root.Menu.LockFace.noAchievement = "Achievement 5";
} else {
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
}
Symbol 1145 MovieClip Frame 16
if (_global.TabLockedSkin[5]) {
Head.gotoAndStop(2);
_parent.b_18.Jaw.Jaw.gotoAndStop(2);
_parent.b_16.gotoAndStop(2);
_parent.b_17.gotoAndStop(2);
_root.Menu.LockFace.gotoAndStop(2);
_global.HeadLocked = true;
_root.Menu.LockFace.noAchievement = "Achievement 6";
} else {
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
}
Symbol 1145 MovieClip Frame 17
if (_global.TabLockedSkin[6]) {
Head.gotoAndStop(2);
_parent.b_18.Jaw.Jaw.gotoAndStop(2);
_parent.b_16.gotoAndStop(2);
_parent.b_17.gotoAndStop(2);
_root.Menu.LockFace.gotoAndStop(2);
_global.HeadLocked = true;
_root.Menu.LockFace.noAchievement = "Achievement 7";
} else {
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
}
Symbol 1145 MovieClip Frame 18
if (_global.TabLockedSkin[7]) {
Head.gotoAndStop(2);
_parent.b_18.Jaw.Jaw.gotoAndStop(2);
_parent.b_16.gotoAndStop(2);
_parent.b_17.gotoAndStop(2);
_root.Menu.LockFace.gotoAndStop(2);
_global.HeadLocked = true;
_root.Menu.LockFace.noAchievement = "Achievement 8";
} else {
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
}
Symbol 1145 MovieClip Frame 19
if (_global.TabLockedSkin[8]) {
Head.gotoAndStop(2);
_parent.b_18.Jaw.Jaw.gotoAndStop(2);
_parent.b_16.gotoAndStop(2);
_parent.b_17.gotoAndStop(2);
_root.Menu.LockFace.gotoAndStop(2);
_global.HeadLocked = true;
_root.Menu.LockFace.noAchievement = "Achievement 9";
} else {
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
}
Symbol 1145 MovieClip Frame 20
if (_global.TabLockedSkin[9]) {
Head.gotoAndStop(2);
_parent.b_18.Jaw.Jaw.gotoAndStop(2);
_parent.b_16.gotoAndStop(2);
_parent.b_17.gotoAndStop(2);
_root.Menu.LockFace.gotoAndStop(2);
_global.HeadLocked = true;
_root.Menu.LockFace.noAchievement = "Achievement 10";
} else {
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
}
Symbol 1145 MovieClip Frame 21
if (_global.TabLockedSkin[10]) {
Head.gotoAndStop(2);
_parent.b_18.Jaw.Jaw.gotoAndStop(2);
_parent.b_16.gotoAndStop(2);
_parent.b_17.gotoAndStop(2);
_root.Menu.LockFace.gotoAndStop(2);
_global.HeadLocked = true;
} else {
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
}
Symbol 1145 MovieClip Frame 22
if (_global.TabLockedSkin[11]) {
Head.gotoAndStop(2);
_parent.b_18.Jaw.Jaw.gotoAndStop(2);
_parent.b_16.gotoAndStop(2);
_parent.b_17.gotoAndStop(2);
_root.Menu.LockFace.gotoAndStop(2);
_global.HeadLocked = true;
} else {
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
}
Symbol 1145 MovieClip Frame 23
if (_global.TabLockedSkin[12]) {
Head.gotoAndStop(2);
_parent.b_18.Jaw.Jaw.gotoAndStop(2);
_parent.b_16.gotoAndStop(2);
_parent.b_17.gotoAndStop(2);
_root.Menu.LockFace.gotoAndStop(2);
_global.HeadLocked = true;
} else {
_parent.b_18.Jaw.Jaw.gotoAndStop(1);
_parent.b_16.gotoAndStop(1);
_parent.b_17.gotoAndStop(1);
_root.Menu.LockFace.gotoAndStop(1);
_global.HeadLocked = false;
}
Symbol 1149 MovieClip Frame 1
stop();
Symbol 1152 MovieClip Frame 1
stop();
Symbol 1155 MovieClip Frame 1
stop();
Symbol 1158 MovieClip Frame 1
stop();
Symbol 1161 MovieClip Frame 1
stop();
Symbol 1164 MovieClip Frame 1
stop();
Symbol 1165 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.SpeedUpgrade + 1);
};
Symbol 1166 MovieClip Frame 1
stop();
Symbol 1166 MovieClip Frame 28
_global.SpeedUpgrade++;
Symbol 1169 MovieClip Frame 1
stop();
Symbol 1172 MovieClip Frame 1
stop();
Symbol 1175 MovieClip Frame 1
stop();
Symbol 1178 MovieClip Frame 1
stop();
Symbol 1181 MovieClip Frame 1
stop();
Symbol 1182 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.DamageUpgrade + 1);
};
Symbol 1183 MovieClip Frame 1
stop();
Symbol 1183 MovieClip Frame 28
_global.DamageUpgrade++;
Symbol 1186 MovieClip Frame 1
stop();
Symbol 1189 MovieClip Frame 1
stop();
Symbol 1192 MovieClip Frame 1
stop();
Symbol 1195 MovieClip Frame 1
stop();
Symbol 1198 MovieClip Frame 1
stop();
Symbol 1199 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.RangeUpgrade + 1);
};
Symbol 1200 MovieClip Frame 1
stop();
Symbol 1200 MovieClip Frame 28
_global.RangeUpgrade++;
Symbol 1201 MovieClip Frame 1
randomWalk = random(99) + 2;
gotoAndPlay(randomWalk);
Symbol 1201 MovieClip Frame 2
play();
Symbol 1201 MovieClip Frame 100
gotoAndPlay ("Chilling");
Symbol 1208 MovieClip Frame 1
stop();
Symbol 1212 Button
on (release) {
act = 2;
_parent.hideTooltip();
}
on (rollOver) {
act = 3;
Rolling = new Sound();
Rolling.attachSound("sd_Roll");
Rolling.start();
gotoAndPlay (2);
}
on (rollOut) {
act = 1;
_parent.hideTooltip();
gotoAndPlay (11);
}
Symbol 1213 MovieClip Frame 1
stop();
Symbol 1213 MovieClip Frame 10
stop();
Symbol 1215 MovieClip Frame 1
stop();
Symbol 1223 Button
on (release) {
act = 2;
_parent.hideTooltip();
}
on (rollOver) {
act = 3;
Rolling = new Sound();
Rolling.attachSound("sd_Roll");
Rolling.start();
gotoAndStop (2);
}
on (rollOut) {
act = 1;
_parent.hideTooltip();
gotoAndStop (1);
}
Symbol 1224 MovieClip Frame 1
stop();
Symbol 1225 MovieClip Frame 8
stop();
Symbol 1235 MovieClip Frame 1
stop();
Symbol 1236 MovieClip Frame 1
onEnterFrame = function () {
nbHealt = _global.tabPlayerHealtUpgradeCost[_global.PlayerHealtUpgrade] + "x";
nbDamage = _global.tabPlayerDamageCost[_global.DamageUpgrade] + "x";
nbReach = _global.tabAttackRangeUpgradeCost[_global.RangeUpgrade] + "x";
nbSpeed = _global.tabSpeedUpgradeCost[_global.SpeedUpgrade] + "x";
};
Instance of Symbol 1225 MovieClip in Symbol 1236 MovieClip Frame 1
onClipEvent (load) {
Boutton.strText = "HEALTH";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
Boutton.act = 1;
if ((_global.nbBrains >= _global.tabPlayerHealtUpgradeCost[_global.PlayerHealtUpgrade]) && (_global.PlayerHealtUpgrade < 4)) {
_global.nbBrains = _global.nbBrains - _global.tabPlayerHealtUpgradeCost[_global.PlayerHealtUpgrade];
_root.Menu.Player.Mang.b_2.play();
_root.Menu.play();
if (_global.TabLockedExtras[2]) {
_global.TabLockedExtras[2] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(2);
}
if (_global.TabLockedSkin[9] && (_global.PlayerHealtUpgrade == 3)) {
_global.TabLockedSkin[9] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
_root.SaveGame();
}
_root.Brain.play();
}
}
Instance of Symbol 1225 MovieClip in Symbol 1236 MovieClip Frame 10
onClipEvent (load) {
Boutton.strText = "DAMAGE";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
Boutton.act = 1;
if ((_global.nbBrains >= _global.tabPlayerDamageCost[_global.DamageUpgrade]) && (_global.DamageUpgrade < 4)) {
_global.nbBrains = _global.nbBrains - _global.tabPlayerDamageCost[_global.DamageUpgrade];
_root.Menu.Player.Mang.b_18.play();
_root.Menu.play();
if (_global.TabLockedExtras[2]) {
_global.TabLockedExtras[2] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(2);
}
if (_global.TabLockedSkin[9] && (_global.DamageUpgrade == 3)) {
_global.TabLockedSkin[9] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
_root.SaveGame();
}
_root.Brain.play();
}
}
Instance of Symbol 1225 MovieClip in Symbol 1236 MovieClip Frame 20
onClipEvent (load) {
Boutton.strText = "REACH";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
Boutton.act = 1;
if ((_global.nbBrains >= _global.tabAttackRangeUpgradeCost[_global.RangeUpgrade]) && (_global.RangeUpgrade < 4)) {
_global.nbBrains = _global.nbBrains - _global.tabAttackRangeUpgradeCost[_global.RangeUpgrade];
_root.Menu.Player.Mang.b_12.play();
_root.Menu.Player.Mang.b_15.play();
_root.Menu.play();
if (_global.TabLockedExtras[2]) {
_global.TabLockedExtras[2] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(2);
}
if (_global.TabLockedSkin[9] && (_global.RangeUpgrade == 3)) {
_global.TabLockedSkin[9] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
_root.SaveGame();
}
_root.Brain.play();
}
}
Instance of Symbol 1225 MovieClip in Symbol 1236 MovieClip Frame 30
onClipEvent (load) {
Boutton.strText = "SPEED";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
Boutton.act = 1;
if (_global.SpeedUpgrade > 0) {
if ((_global.nbBrains >= _global.tabSpeedUpgradeCost[_global.SpeedUpgrade]) && (_global.SpeedUpgrade < 4)) {
_global.nbBrains = _global.nbBrains - _global.tabSpeedUpgradeCost[_global.SpeedUpgrade];
_root.Menu.Player.Mang.b_6.play();
_root.Menu.Player.Mang.b_9.play();
_root.Menu.play();
if (_global.TabLockedExtras[2]) {
_global.TabLockedExtras[2] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(2);
}
if (_global.TabLockedSkin[9] && (_global.SpeedUpgrade == 3)) {
_global.TabLockedSkin[9] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
_root.SaveGame();
} else {
_root.Brain.play();
}
}
_root.Brain.play();
}
}
Symbol 1236 MovieClip Frame 40
stop();
if (_global.SpeedUpgrade == 0) {
btnSpeed._alpha = 50;
Locked.gotoAndStop(2);
}
Instance of Symbol 1225 MovieClip in Symbol 1236 MovieClip Frame 40
onClipEvent (load) {
Boutton.strText = "BACK";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
Boutton.act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
_root.Menu.BouttonsMenu.gotoAndStop(1);
}
}
Symbol 1242 MovieClip Frame 1
stop();
Symbol 1246 MovieClip Frame 1
stop();
Symbol 1247 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
Rolling = new Sound();
Rolling.attachSound("sd_Roll");
Rolling.start();
Frame.gotoAndStop(2);
ExtraMask.gotoAndStop(2);
}
on (rollOut) {
act = 1;
Frame.gotoAndStop(1);
ExtraMask.gotoAndStop(1);
}
Symbol 1258 MovieClip Frame 1
stop();
Instance of Symbol 1258 MovieClip "Extra5" in Symbol 1264 MovieClip Frame 1
onClipEvent (load) {
if (!_global.TabLockedExtras[4]) {
gotoAndStop(_name);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
if (!_global.TabLockedExtras[4]) {
getURL ("http://www.gamesfree.ca/customPage/145", "_blank");
}
}
}
Instance of Symbol 1258 MovieClip "Extra4" in Symbol 1264 MovieClip Frame 1
onClipEvent (load) {
if (!_global.TabLockedExtras[3]) {
gotoAndStop(_name);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
if (!_global.TabLockedExtras[3]) {
getURL ("http://www.gamesfree.ca/customPage/144", "_blank");
}
}
}
Instance of Symbol 1258 MovieClip "Extra3" in Symbol 1264 MovieClip Frame 1
onClipEvent (load) {
if (!_global.TabLockedExtras[2]) {
gotoAndStop(_name);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
if (!_global.TabLockedExtras[2]) {
getURL ("http://www.gamesfree.ca/customPage/143", "_blank");
}
}
}
Instance of Symbol 1258 MovieClip "Extra2" in Symbol 1264 MovieClip Frame 1
onClipEvent (load) {
if (!_global.TabLockedExtras[1]) {
gotoAndStop(_name);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
if (!_global.TabLockedExtras[1]) {
getURL ("http://www.gamesfree.ca/customPage/142", "_blank");
}
}
}
Instance of Symbol 1258 MovieClip "Extra1" in Symbol 1264 MovieClip Frame 1
onClipEvent (load) {
if (!_global.TabLockedExtras[0]) {
gotoAndStop(_name);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
if (!_global.TabLockedExtras[0]) {
getURL ("http://www.gamesfree.ca/customPage/141", "_blank");
}
}
}
Instance of Symbol 1225 MovieClip in Symbol 1264 MovieClip Frame 1
onClipEvent (load) {
Boutton.strText = "BACK";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
Boutton.act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
_root.Menu.BouttonsMenu.gotoAndStop(1);
}
}
Symbol 1264 MovieClip Frame 20
stop();
if (_global.SpeedUpgrade == 0) {
btnSpeed._alpha = 50;
Locked.gotoAndStop(2);
}
Symbol 1273 MovieClip Frame 1
onEnterFrame = function () {
if (_parent.CheatInput.text == "") {
_visible = true;
} else {
_visible = false;
}
};
Instance of Symbol 1225 MovieClip in Symbol 1275 MovieClip Frame 1
onClipEvent (load) {
Boutton.strText = "APPLY";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
Boutton.act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
trace(_parent.cheats.CheatInput.text);
if ((((((((_parent.cheats.CheatInput.text == "896514") || (_parent.cheats.CheatInput.text == "321465")) || (_parent.cheats.CheatInput.text == "214856")) || (_parent.cheats.CheatInput.text == "685445")) || (_parent.cheats.CheatInput.text == "876432")) || (_parent.cheats.CheatInput.text == "086534")) || (_parent.cheats.CheatInput.text == "374854")) || (_parent.cheats.CheatInput.text == "432165")) {
_parent.CheatSuccess.gotoAndPlay(2);
switch (_parent.cheats.CheatInput.text) {
case "896514" :
_global.TabLockedSkin = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
break;
case "321465" :
_global.DamageUpgrade = 4;
break;
case "214856" :
_global.SpeedUpgrade = 4;
break;
case "685445" :
_global.PlayerHealtUpgrade = 4;
break;
case "876432" :
_global.RangeUpgrade = 4;
break;
case "086534" :
_global.nbBrains = _global.nbBrains + 50;
break;
case "374854" :
if (!_global.CheatSuperPuke) {
_global.CheatSuperPuke = true;
} else {
_global.CheatSuperPuke = false;
}
break;
case "432165" :
if (!_global.CheatGottaGoFast) {
_global.CheatGottaGoFast = true;
} else {
_global.CheatGottaGoFast = false;
}
}
}
_parent.cheats.CheatInput.text = "";
}
}
Instance of Symbol 1225 MovieClip in Symbol 1275 MovieClip Frame 1
onClipEvent (load) {
Boutton.strText = "LIST";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
Boutton.act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
getURL ("http://www.gamesfree.ca/customPage/140/", "_blank");
}
}
Instance of Symbol 1225 MovieClip in Symbol 1275 MovieClip Frame 1
onClipEvent (load) {
Boutton.strText = "BACK";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
Boutton.act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
_root.Menu.BouttonsMenu.gotoAndStop(1);
}
}
Symbol 1275 MovieClip Frame 20
stop();
Symbol 1287 MovieClip Frame 1
this.ratio = 0;
dragger._x = (_root.volume / line._width) * 200;
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_Menu2");
MenuTrack.stop();
MenuTrack.setVolume(_root.volume);
MenuTrack.start(0, 9999);
});
Instance of Symbol 1225 MovieClip in Symbol 1294 MovieClip Frame 4
onClipEvent (load) {
Boutton.strText = "BACK";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
Boutton.act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
_root.Menu.BouttonsMenu.gotoAndStop(1);
}
}
Instance of Symbol 1225 MovieClip in Symbol 1294 MovieClip Frame 4
onClipEvent (load) {
Boutton.strText = "HIGH";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
_root._quality = "high";
}
}
Instance of Symbol 1225 MovieClip in Symbol 1294 MovieClip Frame 4
onClipEvent (load) {
Boutton.strText = "MEDIUM";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
_root._quality = "medium";
}
}
Instance of Symbol 1225 MovieClip in Symbol 1294 MovieClip Frame 4
onClipEvent (load) {
Boutton.strText = "LOW";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
_root._quality = "low";
}
}
Symbol 1294 MovieClip Frame 20
stop();
Symbol 1297 MovieClip Frame 1
stop();
nomObj = _name;
noObj = substring(nomObj, 4, 2);
if (_global.TabLockedSkin[noObj - 1] == 0) {
gotoAndStop (2);
}
Instance of Symbol 1297 MovieClip "Obj1" in Symbol 1302 MovieClip Frame 1
onClipEvent (load) {
strObj = "1. Kill 5 humans";
}
Instance of Symbol 1297 MovieClip "Obj2" in Symbol 1302 MovieClip Frame 1
onClipEvent (load) {
strObj = "2. Kill 10 humans";
}
Instance of Symbol 1297 MovieClip "Obj3" in Symbol 1302 MovieClip Frame 1
onClipEvent (load) {
strObj = "3. Kill 20 humans";
}
Instance of Symbol 1297 MovieClip "Obj4" in Symbol 1302 MovieClip Frame 1
onClipEvent (load) {
strObj = "4. Kill 30 humans";
}
Instance of Symbol 1297 MovieClip "Obj5" in Symbol 1302 MovieClip Frame 1
onClipEvent (load) {
strObj = "5. Kill 40 humans";
}
Instance of Symbol 1297 MovieClip "Obj6" in Symbol 1302 MovieClip Frame 1
onClipEvent (load) {
strObj = "6. Kill 50 humans";
}
Instance of Symbol 1297 MovieClip "Obj7" in Symbol 1302 MovieClip Frame 1
onClipEvent (load) {
strObj = "7. Burn 5 Humans";
}
Instance of Symbol 1297 MovieClip "Obj8" in Symbol 1302 MovieClip Frame 1
onClipEvent (load) {
strObj = "8. Burn 10 Humans";
}
Instance of Symbol 1297 MovieClip "Obj9" in Symbol 1302 MovieClip Frame 1
onClipEvent (load) {
strObj = "9. Survive a night with less than 10% hp";
}
Instance of Symbol 1297 MovieClip "Obj10" in Symbol 1302 MovieClip Frame 1
onClipEvent (load) {
strObj = "10. Upgrade something to its maximum";
}
Instance of Symbol 1225 MovieClip in Symbol 1302 MovieClip Frame 4
onClipEvent (load) {
Boutton.strText = "BACK";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
Boutton.act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
_root.Menu.BouttonsMenu.gotoAndStop(1);
}
}
Symbol 1302 MovieClip Frame 20
stop();
Instance of Symbol 1297 MovieClip "Obj10" in Symbol 1302 MovieClip Frame 20
onClipEvent (load) {
strObj = "10. Upgrade a skill to its maximum";
}
Symbol 1303 MovieClip Frame 1
stop();
Instance of Symbol 637 MovieClip "Boutton" in Symbol 1303 MovieClip Frame 1
onClipEvent (load) {
boxx.txx = "CHEATS";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.gotoAndStop(4);
}
}
Instance of Symbol 637 MovieClip in Symbol 1303 MovieClip Frame 1
onClipEvent (load) {
boxx.txx = "UPGRADES";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_root.Menu.Upgrades.play();
_parent.gotoAndStop(2);
_root.Menu.ShowArrow = false;
}
}
Instance of Symbol 637 MovieClip "boxx" in Symbol 1303 MovieClip Frame 1
onClipEvent (load) {
boxx.txx = "EXTRAS";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.gotoAndStop(3);
_root.Menu.ShowArrow = false;
}
}
Instance of Symbol 637 MovieClip in Symbol 1303 MovieClip Frame 1
onClipEvent (load) {
boxx.txx = "OPTIONS";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.gotoAndStop(5);
}
}
Instance of Symbol 637 MovieClip in Symbol 1303 MovieClip Frame 1
onClipEvent (load) {
boxx.txx = "Achievements";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.gotoAndStop(6);
}
}
Instance of Symbol 637 MovieClip in Symbol 1303 MovieClip Frame 1
onClipEvent (load) {
boxx.txx = "START CARNAGE";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
if (_global.BodyLocked) {
_global.ActualBody = 1;
}
if (_global.HeadLocked) {
_global.ActualHead = 1;
}
trace("NewGame :" + _global.NewGame);
if (!_global.NewGame) {
_root.gotoAndStop("TIP");
} else {
_root.gotoAndStop("TUTORIEL");
}
}
}
Symbol 1304 MovieClip Frame 1
stop();
ShowArrow = true;
onEnterFrame = function () {
DNA.Boutons.btn1.strText = "Level Selection";
DNA.Boutons.btn2.strText = "Upgrade";
DNA.Boutons.btn3.strText = "Extras";
DNA.Boutons.btn4.strText = "More games";
DNA.Boutons.btn5.strText = "Walkthrough";
DNA.Boutons.btn6.strText = "Continue";
};
Instance of Symbol 1213 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((act == 2) && (_root.Menu.ShowArrow)) {
act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
if (_global.ActualHead < 20) {
_global.ActualHead++;
} else {
_global.ActualHead = 1;
}
}
if (_root.Menu.ShowArrow) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Instance of Symbol 1213 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((act == 2) && (_parent.ShowArrow)) {
act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
if (_global.ActualBody < 20) {
_global.ActualBody++;
} else {
_global.ActualBody = 1;
}
}
if (_parent.ShowArrow) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Instance of Symbol 1213 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((act == 2) && (_parent.ShowArrow)) {
act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
if (_global.ActualHead > 1) {
_global.ActualHead--;
} else {
_global.ActualHead = 20;
}
}
if (_parent.ShowArrow) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Instance of Symbol 1213 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((act == 2) && (_parent.ShowArrow)) {
act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
if (_global.ActualBody > 1) {
_global.ActualBody--;
} else {
_global.ActualBody = 20;
}
}
if (_parent.ShowArrow) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Instance of Symbol 1213 MovieClip in Symbol 1304 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((act == 2) && (_root.Menu.ShowArrow)) {
act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
if (_global.ActualHead < 20) {
_global.ActualHead++;
} else {
_global.ActualHead = 1;
}
}
if (_root.Menu.ShowArrow) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Instance of Symbol 1213 MovieClip in Symbol 1304 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((act == 2) && (_parent.ShowArrow)) {
act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
if (_global.ActualBody < 20) {
_global.ActualBody++;
} else {
_global.ActualBody = 1;
}
}
if (_parent.ShowArrow) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Instance of Symbol 1213 MovieClip in Symbol 1304 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((act == 2) && (_parent.ShowArrow)) {
act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
if (_global.ActualHead > 1) {
_global.ActualHead--;
} else {
_global.ActualHead = 20;
}
}
if (_parent.ShowArrow) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Instance of Symbol 1213 MovieClip in Symbol 1304 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((act == 2) && (_parent.ShowArrow)) {
act = 1;
btnClick = new Sound();
btnClick.attachSound("sd_btnClick");
btnClick.start();
if (_global.ActualBody > 1) {
_global.ActualBody--;
} else {
_global.ActualBody = 20;
}
}
if (_parent.ShowArrow) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Symbol 1312 MovieClip Frame 1
function Splashing() {
randomEat = random(4) + 1;
EatSound = new Sound();
EatSound.attachSound("sd_Eat" + randomEat);
EatSound.start();
BloodSplath = _root.Conteneur.attachMovie("BloodAnime", "BloodAnime" + _root.uniqueItemId, 5000 + _root.uniqueItemId);
if (_root.Conteneur.Player.Mang._xscale < 0) {
BloodSplath._x = _root.Conteneur.Player._x + (_root.Conteneur.Player.Mang.BloodSpawn._x * -0.4);
} else {
BloodSplath._x = _root.Conteneur.Player._x + (_root.Conteneur.Player.Mang.BloodSpawn._x * 0.4);
}
BloodSplath._y = _root.Conteneur.Player._y + (_root.Conteneur.Player.Mang.BloodSpawn._y * 0.4);
_root.uniqueItemId++;
}
stop();
onEnterFrame = function () {
if (_root.BrainPower <= 12) {
gotoAndStop (7);
} else if (_root.BrainPower <= 24) {
gotoAndStop (6);
} else if (_root.BrainPower <= 36) {
gotoAndStop (5);
} else if (_root.BrainPower <= 48) {
gotoAndStop (4);
} else if (_root.BrainPower <= 60) {
gotoAndStop (3);
} else if (_root.BrainPower <= 72) {
gotoAndStop (2);
} else if (_root.BrainPower <= 84) {
gotoAndStop (1);
} else if (_root.BrainPower < 100) {
if (_global.AnimeIt) {
_global.AnimeIt = false;
_root.Brains.play();
_global.nbBrains++;
_root.nbBrainObtained++;
if (_global.StadeTuto == 0) {
if (_global.TabLockedExtras[0]) {
_global.TabLockedExtras[0] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(2);
}
if (_global.TabLockedSkin[0] && (_root.nbBrainObtained == 5)) {
_global.TabLockedSkin[0] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
if (_global.TabLockedSkin[1] && (_root.nbBrainObtained == 10)) {
_global.TabLockedSkin[1] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
if (_global.TabLockedSkin[2] && (_root.nbBrainObtained == 20)) {
_global.TabLockedSkin[2] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
if (_global.TabLockedSkin[3] && (_root.nbBrainObtained == 30)) {
_global.TabLockedSkin[3] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
if (_global.TabLockedSkin[4] && (_root.nbBrainObtained == 40)) {
_global.TabLockedSkin[4] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
if (_global.TabLockedSkin[5] && (_root.nbBrainObtained == 50)) {
_global.TabLockedSkin[5] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(1);
}
}
}
} else if (_root.BrainPower >= 100) {
_root.BrainPower = 0;
_global.AnimeIt = true;
}
};
Symbol 1312 MovieClip Frame 2
Splashing();
Symbol 1312 MovieClip Frame 3
Splashing();
Symbol 1312 MovieClip Frame 4
Splashing();
Symbol 1312 MovieClip Frame 5
Splashing();
Symbol 1312 MovieClip Frame 6
Splashing();
Symbol 1317 MovieClip Frame 1
stop();
Symbol 1320 MovieClip Frame 92
_parent.play();
Symbol 1321 MovieClip Frame 1
stop();
Symbol 1321 MovieClip Frame 20
stop();
Symbol 1323 MovieClip Frame 1
stop();
Symbol 1337 MovieClip Frame 1
stop();
radomTip = random(8) + 1;
gotoAndStop(radomTip);
Instance of Symbol 1225 MovieClip in Symbol 1337 MovieClip Frame 1
onClipEvent (load) {
Boutton.strText = "Ok";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
Boutton.act = 1;
_root.gotoAndPlay("GAME");
}
}
Symbol 1349 MovieClip Frame 4000
stop();
Symbol 1388 MovieClip Frame 100
stop();
Symbol 1396 MovieClip Frame 96
stop();
Symbol 1397 MovieClip Frame 1
stop();
Symbol 1403 MovieClip Frame 1
stop();
Symbol 1403 MovieClip Frame 42
if (_global.TabLockedExtras[1]) {
_global.TabLockedExtras[1] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(2);
}
Symbol 1403 MovieClip Frame 66
stop();
Symbol 1439 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.RangeUpgrade + 1);
};
Symbol 1458 MovieClip Frame 1
stop();
_root.Menu.LockBody.gotoAndStop(1);
_parent.b_4.Pants.gotoAndStop(1);
_parent.b_5.gotoAndStop(1);
_parent.b_6.Shoes.gotoAndStop(1);
_parent.b_7.Pants.gotoAndStop(1);
_parent.b_8.gotoAndStop(1);
_parent.b_9.Shoes.gotoAndStop(1);
_parent.b_10.Harm.gotoAndStop(1);
_parent.b_11.gotoAndStop(1);
_parent.b_12.Claw.gotoAndStop(1);
_parent.b_13.Harm.gotoAndStop(1);
_parent.b_14.gotoAndStop(1);
_parent.b_15.Claw.gotoAndStop(1);
onEnterFrame = function () {
gotoAndStop(_global.ActualBody);
};
Symbol 1458 MovieClip Frame 18
_root.Menu.LockBody.gotoAndStop(1);
_parent.b_4.Pants.gotoAndStop(1);
_parent.b_5.gotoAndStop(1);
_parent.b_6.Shoes.gotoAndStop(1);
_parent.b_7.Pants.gotoAndStop(1);
_parent.b_8.gotoAndStop(1);
_parent.b_9.Shoes.gotoAndStop(1);
_parent.b_10.Harm.gotoAndStop(1);
_parent.b_11.gotoAndStop(1);
_parent.b_12.Claw.gotoAndStop(1);
_parent.b_13.Harm.gotoAndStop(1);
_parent.b_14.gotoAndStop(1);
_parent.b_15.Claw.gotoAndStop(1);
Symbol 1458 MovieClip Frame 19
if (_global.Skin1Locked) {
BackBones.gotoAndStop(2);
_parent.b_3.BotBack.gotoAndStop(2);
_parent.b_4.Pants.gotoAndStop(2);
_parent.b_5.gotoAndStop(2);
_parent.b_6.Shoes.gotoAndStop(2);
_parent.b_7.Pants.gotoAndStop(2);
_parent.b_8.gotoAndStop(2);
_parent.b_9.Shoes.gotoAndStop(2);
_parent.b_10.Harm.gotoAndStop(2);
_parent.b_11.gotoAndStop(2);
_parent.b_12.Claw.gotoAndStop(2);
_parent.b_13.Harm.gotoAndStop(2);
_parent.b_14.gotoAndStop(2);
_parent.b_15.Claw.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
} else {
_root.Menu.LockBody.gotoAndStop(1);
_parent.b_4.Pants.gotoAndStop(1);
_parent.b_5.gotoAndStop(1);
_parent.b_6.Shoes.gotoAndStop(1);
_parent.b_7.Pants.gotoAndStop(1);
_parent.b_8.gotoAndStop(1);
_parent.b_9.Shoes.gotoAndStop(1);
_parent.b_10.Harm.gotoAndStop(1);
_parent.b_11.gotoAndStop(1);
_parent.b_12.Claw.gotoAndStop(1);
_parent.b_13.Harm.gotoAndStop(1);
_parent.b_14.gotoAndStop(1);
_parent.b_15.Claw.gotoAndStop(1);
}
Symbol 1458 MovieClip Frame 20
if (_global.Skin2Locked) {
BackBones.gotoAndStop(2);
_parent.b_3.BotBack.gotoAndStop(2);
_parent.b_4.Pants.gotoAndStop(2);
_parent.b_5.gotoAndStop(2);
_parent.b_6.Shoes.gotoAndStop(2);
_parent.b_7.Pants.gotoAndStop(2);
_parent.b_8.gotoAndStop(2);
_parent.b_9.Shoes.gotoAndStop(2);
_parent.b_10.Harm.gotoAndStop(2);
_parent.b_11.gotoAndStop(2);
_parent.b_12.Claw.gotoAndStop(2);
_parent.b_13.Harm.gotoAndStop(2);
_parent.b_14.gotoAndStop(2);
_parent.b_15.Claw.gotoAndStop(2);
_root.Menu.LockBody.gotoAndStop(2);
} else {
_root.Menu.LockBody.gotoAndStop(1);
_parent.b_4.Pants.gotoAndStop(1);
_parent.b_5.gotoAndStop(1);
_parent.b_6.Shoes.gotoAndStop(1);
_parent.b_7.Pants.gotoAndStop(1);
_parent.b_8.gotoAndStop(1);
_parent.b_9.Shoes.gotoAndStop(1);
_parent.b_10.Harm.gotoAndStop(1);
_parent.b_11.gotoAndStop(1);
_parent.b_12.Claw.gotoAndStop(1);
_parent.b_13.Harm.gotoAndStop(1);
_parent.b_14.gotoAndStop(1);
_parent.b_15.Claw.gotoAndStop(1);
}
Symbol 1459 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.SpeedUpgrade + 1);
};
Symbol 1460 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.DamageUpgrade + 1);
};
Symbol 1461 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.RangeUpgrade + 1);
};
Symbol 1464 MovieClip Frame 1
stop();
randomWalk = random(90) + 102;
_global.WalkingFrame = randomWalk;
onEnterFrame = function () {
if ((_global.WalkingFrame + _global.tabSpeed[_global.SpeedUpgrade]) < 201) {
_global.WalkingFrame = _global.WalkingFrame + _global.tabSpeed[_global.SpeedUpgrade];
} else {
_global.WalkingFrame = 102;
}
_parent.gotoAndStop(_global.WalkingFrame);
if (_root.ActualStatus != "Walking") {
trace("ActualStatus :" + _root.ActualStatus);
trace("Problen dans l'animaiton de Walking");
_root.ActualStatus = "Walking";
_root.Jumping = false;
}
};
Symbol 1503 MovieClip Frame 1
i = 0;
while (i < _root.tabShootingEnnemy.length) {
if ((((this.hitTest(_root.tabShootingEnnemy[i].Mang.b_1) || (this.hitTest(_root.tabShootingEnnemy[i].Mang.b_2))) || (this.hitTest(_root.tabShootingEnnemy[i].Mang.b_3))) && (!_root.tabShootingEnnemy[i].Dead)) && (!_root.tabShootingEnnemy[i].Hurted)) {
Target = _root.tabShootingEnnemy[i];
diatance = _root.Conteneur.Player._x - Target._x;
if ((Target.Mang._xscale < 0) && (diatance < 0)) {
Target.Mang.gotoAndPlay("BeKicked2");
} else if ((Target.Mang._xscale < 0) && (diatance > 0)) {
Target.Mang.gotoAndPlay("BeKicked1");
} else if ((Target.Mang._xscale > 0) && (diatance > 0)) {
Target.Mang.gotoAndPlay("BeKicked2");
} else if ((Target.Mang._xscale > 0) && (diatance < 0)) {
Target.Mang.gotoAndPlay("BeKicked1");
}
Target.Mang.gotoAndPlay("BeKicked1");
Target.mode = "Kicked";
_parent.gotoAndPlay("Kick");
}
i++;
}
i = 0;
while (i < _root.enemiesArray.length) {
if ((this.hitTest(_root.enemiesArray[i].Mang) && (!_root.enemiesArray[i].Dead)) && (!_root.enemiesArray[i].Hurted)) {
Target = _root.enemiesArray[i];
if ((Target.Mang._xscale < 0) && (Target.distanceX < 0)) {
Target.Mang.gotoAndPlay("BeKicked2");
} else if ((Target.Mang._xscale < 0) && (Target.distanceX > 0)) {
Target.Mang.gotoAndPlay("BeKicked1");
} else if ((Target.Mang._xscale > 0) && (Target.distanceX > 0)) {
Target.Mang.gotoAndPlay("BeKicked2");
} else if ((Target.Mang._xscale > 0) && (Target.distanceX < 0)) {
Target.Mang.gotoAndPlay("BeKicked1");
}
Target.mode = "Kicked";
_parent.gotoAndPlay("Kick");
}
i++;
}
Symbol 1505 MovieClip Frame 1
GotToldSon = 20;
onEnterFrame = function () {
if (_root.Conteneur.HitVehicule.RunningSide == "RIGHT") {
_root.Conteneur.Player._x = _root.Conteneur.Player._x + GotToldSon;
} else {
_root.Conteneur.Player._x = _root.Conteneur.Player._x - GotToldSon;
}
GotToldSon--;
};
Symbol 1507 MovieClip Frame 1
GotToldSon = 30;
onEnterFrame = function () {
if (_root.Conteneur.Player.Mang._xscale < 0) {
_root.Conteneur.Player._x = _root.Conteneur.Player._x + GotToldSon;
} else {
_root.Conteneur.Player._x = _root.Conteneur.Player._x - GotToldSon;
}
GotToldSon--;
};
Symbol 1508 MovieClip Frame 1
GotToldSon = 30;
onEnterFrame = function () {
if (_root.Conteneur.Player.Mang._xscale < 0) {
_root.Conteneur.Player._x = _root.Conteneur.Player._x - GotToldSon;
} else {
_root.Conteneur.Player._x = _root.Conteneur.Player._x + GotToldSon;
}
GotToldSon--;
};
Symbol 1509 MovieClip Frame 1
randomWalk = random(99) + 2;
gotoAndPlay(randomWalk);
Symbol 1509 MovieClip Frame 2
play();
Symbol 1509 MovieClip Frame 100
if (_root.ActualStatus != "Chilling") {
trace("ActualStatus :" + _root.ActualStatus);
trace("Problen dans l'animaiton de chilling");
_root.ActualStatus = "Chilling";
_root.Jumping = false;
}
randomSound = random(4) + 1;
MoanSound = new Sound();
MoanSound.attachSound("sd_Moan" + randomSound);
MoanSound.start();
gotoAndPlay ("Chilling");
Symbol 1509 MovieClip Frame 102
gotoAndStop ("StartWalking");
Symbol 1509 MovieClip Frame 200
stop();
Symbol 1509 MovieClip Frame 201
_global.CanDoDamage = false;
randomAttack = random(22) + 1;
AttackSound = new Sound();
AttackSound.attachSound("sd_Attack_" + randomAttack);
AttackSound.start();
Symbol 1509 MovieClip Frame 215
_global.CanDoDamage = true;
Symbol 1509 MovieClip Frame 265
gotoAndPlay ("Eat");
Symbol 1509 MovieClip Frame 300
gotoAndPlay ("StartChilling");
Symbol 1509 MovieClip Frame 301
_root.ActualStatus = "Hurt";
randomShot = random(3) + 1;
gotoAndPlay("GetShot" + randomShot);
Symbol 1509 MovieClip Frame 310
_root.ActualStatus = "Chilling";
gotoAndPlay ("StartChilling");
Symbol 1509 MovieClip Frame 321
_root.ActualStatus = "Chilling";
gotoAndPlay ("StartChilling");
Symbol 1509 MovieClip Frame 332
_root.ActualStatus = "Chilling";
gotoAndPlay ("StartChilling");
Symbol 1509 MovieClip Frame 401
trace("I died");
Symbol 1509 MovieClip Frame 459
stop();
Symbol 1509 MovieClip Frame 570
stop();
Symbol 1509 MovieClip Frame 571
_global.CanDoDamage = false;
randomAttack = random(22) + 1;
AttackSound = new Sound();
AttackSound.attachSound("sd_Attack_" + randomAttack);
AttackSound.start();
Symbol 1509 MovieClip Frame 590
_global.CanDoDamage = true;
Symbol 1509 MovieClip Frame 601
gotoAndPlay ("Eat2");
Symbol 1509 MovieClip Frame 602
gotoAndPlay ("StartChilling");
Symbol 1509 MovieClip Frame 603
this.play();
JumpSound = new Sound();
JumpSound.attachSound("sd_Jump");
JumpSound.start();
Symbol 1509 MovieClip Frame 613
_root.JumpSpeed = 18;
if (_root.SideJumpRight) {
_root.JumpXSpeed = _root.JumpSpeed;
} else if (_root.SideJumpLeft) {
_root.JumpXSpeed = _root.JumpSpeed * -1;
} else {
_root.JumpXSpeed = 0;
}
_root.SideJumpRight = false;
_root.SideJumpLeft = false;
Symbol 1509 MovieClip Frame 638
_root.JumpSpeed = 0;
_root.ActualStatus = "Walking";
gotoAndPlay ("StartWalking");
Symbol 1509 MovieClip Frame 639
randomSound = random(4) + 1;
ZHitSound = new Sound();
ZHitSound.attachSound("sd_ZombieHit" + randomSound);
ZHitSound.start();
Symbol 1509 MovieClip Frame 721
_root.ActualStatus = "Chilling";
gotoAndPlay ("StartChilling");
Symbol 1509 MovieClip Frame 732
_root.JumpSpeed = 18;
Symbol 1509 MovieClip Frame 756
_root.JumpSpeed = 0;
_root.ActualStatus = "Chilling";
gotoAndPlay ("StartChilling");
Symbol 1509 MovieClip Frame 772
SpitSound = new Sound();
SpitSound.attachSound("sd_Spit");
SpitSound.start();
_global.nbBrains--;
if (!_global.CheatSuperPuke) {
Ballz = _root.Conteneur.attachMovie("SpitBall", "SpitBall_" + _global.nbSpittBall, _root.getNextHighestDepth() + _global.nbSpittBall);
_global.nbSpittBall++;
if (_root.Conteneur.Player.Mang._xscale < 0) {
Ballz._x = _root.Conteneur.Player._x + (_root.Conteneur.Player.Mang.BloodSpawn._x * -0.4);
} else {
Ballz._x = _root.Conteneur.Player._x + (_root.Conteneur.Player.Mang.BloodSpawn._x * 0.4);
}
Ballz._y = _root.Conteneur.Player._y + (_root.Conteneur.Player.Mang.BloodSpawn._y * 0.4);
tabAllElements.push(Ballz);
} else {
Ballz1 = _root.Conteneur.attachMovie("SpitBall", "SpitBall_" + _global.nbSpittBall, _root.getNextHighestDepth() + _global.nbSpittBall);
_global.nbSpittBall++;
Ballz2 = _root.Conteneur.attachMovie("SpitBall", "SpitBall_" + _global.nbSpittBall, _root.getNextHighestDepth() + _global.nbSpittBall);
_global.nbSpittBall++;
Ballz3 = _root.Conteneur.attachMovie("SpitBall", "SpitBall_" + _global.nbSpittBall, _root.getNextHighestDepth() + _global.nbSpittBall);
_global.nbSpittBall++;
if (_root.Conteneur.Player.Mang._xscale < 0) {
Ballz1._x = _root.Conteneur.Player._x + (_root.Conteneur.Player.Mang.BloodSpawn._x * -0.4);
Ballz2._x = _root.Conteneur.Player._x + (_root.Conteneur.Player.Mang.BloodSpawn._x * -0.4);
Ballz3._x = _root.Conteneur.Player._x + (_root.Conteneur.Player.Mang.BloodSpawn._x * -0.4);
} else {
Ballz1._x = _root.Conteneur.Player._x + (_root.Conteneur.Player.Mang.BloodSpawn._x * 0.4);
Ballz2._x = _root.Conteneur.Player._x + (_root.Conteneur.Player.Mang.BloodSpawn._x * 0.4);
Ballz3._x = _root.Conteneur.Player._x + (_root.Conteneur.Player.Mang.BloodSpawn._x * 0.4);
}
Ballz1._y = (_root.Conteneur.Player._y + (_root.Conteneur.Player.Mang.BloodSpawn._y * 0.4)) - 50;
Ballz2._y = _root.Conteneur.Player._y + (_root.Conteneur.Player.Mang.BloodSpawn._y * 0.4);
Ballz3._y = (_root.Conteneur.Player._y + (_root.Conteneur.Player.Mang.BloodSpawn._y * 0.4)) + 50;
tabAllElements.push(Ballz);
}
Symbol 1509 MovieClip Frame 784
_root.ActualStatus = "Chilling";
gotoAndPlay ("StartChilling");
Symbol 1509 MovieClip Frame 819
_root.ActualStatus = "Chilling";
gotoAndPlay ("StartChilling");
Symbol 1509 MovieClip Frame 839
if (_root.Conteneur.Player.Hp <= 0) {
_root.Conteneur.Player.Hp = 0;
_root.Conteneur.Player.Dead = true;
_root.EndGame.gotoAndStop(3);
}
Symbol 1509 MovieClip Frame 856
stop();
Symbol 1509 MovieClip Frame 878
if (_root.Conteneur.Player.Hp <= 0) {
_root.Conteneur.Player.Hp = 0;
_root.Conteneur.Player.Dead = true;
_root.EndGame.gotoAndStop(3);
}
Symbol 1509 MovieClip Frame 939
stop();
Symbol 1509 MovieClip Frame 969
_root.ActualStatus = "Chilling";
gotoAndPlay ("StartChilling");
Symbol 1510 MovieClip Frame 1
Hp = _global.tabPlayerHealt[PlayerHealtUpgrade];
Dead = false;
Instance of Symbol 1438 MovieClip "Left" in Symbol 1510 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.Conteneur.HitVehicule.Car.Hit.hitTest(hitpts[i].x, hitpts[i].y, true) && ((!_root.Jumping) && (_root.JumpSpeed == 0))) {
if (_name == "Left") {
if (_global.TabLockedExtras[4]) {
_global.TabLockedExtras[4] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(2);
}
_root.Conteneur.Player._x = _root.Conteneur.Player._x + _root.Conteneur.HitVehicule.Speed;
if (!_global.HardcoreMode) {
_parent.Hp = _parent.Hp - 5;
} else {
_parent.Hp = _parent.Hp - 50;
}
_root.Face.gotoAndPlay(2);
_root.ReleaseTarget();
if (_root.ActualStatus != "Bumbed") {
_parent.Mang.gotoAndPlay("Bumped");
_root.ActualStatus = "Bumbed";
}
if (_parent.Hp <= 0) {
_parent.Hp = 0;
_parent.Dead = true;
_root.EndGame.gotoAndStop(3);
_parent.Mang.gotoAndStop("RoadKill");
}
if (_root.Conteneur.HitVehicule._y > _root.Conteneur.Player._y) {
_root.Conteneur.Player._y = _root.Conteneur.Player._y + 20;
_root.Conteneur.Player._x = _root.Conteneur.Player._x + 30;
} else if (_root.Conteneur.HitVehicule._y <= _root.Conteneur.Player._y) {
_root.Conteneur.Player._y = _root.Conteneur.Player._y + 20;
_root.Conteneur.Player._x = _root.Conteneur.Player._x + 30;
}
}
}
if (_root.Conteneur.Obstacle.hitTest(hitpts[i].x, hitpts[i].y, true) && (!_root.Jumping)) {
if (_name == "Top") {
_root.Conteneur.Player._y = _root.Conteneur.Player._y + _global.tabSpeed[_global.SpeedUpgrade];
}
if (_name == "Bot") {
_root.Conteneur.Player._y = _root.Conteneur.Player._y - _global.tabSpeed[_global.SpeedUpgrade];
}
if (_name == "Left") {
_root.Conteneur.Player._x = _root.Conteneur.Player._x + _global.tabSpeed[_global.SpeedUpgrade];
}
if (_name == "Right") {
_root.Conteneur.Player._x = _root.Conteneur.Player._x - _global.tabSpeed[_global.SpeedUpgrade];
}
}
if (_parent._x < ((_global.tabMapSizeX[_global.Level] / 2) * -1)) {
_parent._x = _parent._x + _global.tabSpeed[_global.SpeedUpgrade];
}
if (_parent._x > (_global.tabMapSizeX[_global.Level] / 2)) {
_parent._x = _parent._x - _global.tabSpeed[_global.SpeedUpgrade];
}
if ((_parent._y < 65) && (!_root.Jumping)) {
_parent._y = _parent._y + _global.tabSpeed[_global.SpeedUpgrade];
}
if ((_parent._y > 200) && (!_root.Jumping)) {
_parent._y = _parent._y - _global.tabSpeed[_global.SpeedUpgrade];
}
i++;
}
}
Instance of Symbol 1438 MovieClip "Bot" in Symbol 1510 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.Conteneur.Obstacle.hitTest(hitpts[i].x, hitpts[i].y, true) && (!_root.Jumping)) {
if (_name == "Top") {
_root.Conteneur.Player._y = _root.Conteneur.Player._y + _global.tabSpeed[_global.SpeedUpgrade];
}
if (_name == "Bot") {
_root.Conteneur.Player._y = _root.Conteneur.Player._y - _global.tabSpeed[_global.SpeedUpgrade];
}
if (_name == "Left") {
_root.Conteneur.Player._x = _root.Conteneur.Player._x + _global.tabSpeed[_global.SpeedUpgrade];
}
if (_name == "Right") {
_root.Conteneur.Player._x = _root.Conteneur.Player._x - _global.tabSpeed[_global.SpeedUpgrade];
}
}
if (_parent._x < ((_global.tabMapSizeX[_global.Level] / 2) * -1)) {
_parent._x = _parent._x + _global.tabSpeed[_global.SpeedUpgrade];
}
if (_parent._x > (_global.tabMapSizeX[_global.Level] / 2)) {
_parent._x = _parent._x - _global.tabSpeed[_global.SpeedUpgrade];
}
if ((_parent._y < 65) && (!_root.Jumping)) {
_parent._y = _parent._y + _global.tabSpeed[_global.SpeedUpgrade];
}
if ((_parent._y > 200) && (!_root.Jumping)) {
_parent._y = _parent._y - _global.tabSpeed[_global.SpeedUpgrade];
}
i++;
}
}
Instance of Symbol 1438 MovieClip "Right" in Symbol 1510 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.Conteneur.HitVehicule.Car.Hit.hitTest(hitpts[i].x, hitpts[i].y, true) && ((!_root.Jumping) && (_root.JumpSpeed == 0))) {
if (_name == "Right") {
if (_global.StadeTuto >= 0) {
if (_global.TabLockedExtras[4]) {
_global.TabLockedExtras[4] = 0;
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(2);
}
}
_root.Conteneur.Player._x = _root.Conteneur.Player._x - _root.Conteneur.HitVehicule.Speed;
_parent.Hp = _parent.Hp - 5;
_root.Face.gotoAndPlay(2);
_root.ReleaseTarget();
if (_root.ActualStatus != "Bumbed") {
_root.ActualStatus = "Bumbed";
_parent.Mang.gotoAndPlay("Bumped");
}
if (_parent.Hp <= 0) {
_parent.Hp = 0;
_parent.Dead = true;
_root.EndGame.gotoAndStop(3);
_parent.Mang.gotoAndStop("RoadKill");
}
if (_root.Conteneur.HitVehicule._y > _root.Conteneur.Player._y) {
_root.Conteneur.Player._y = _root.Conteneur.Player._y + 20;
_root.Conteneur.Player._x = _root.Conteneur.Player._x - 30;
} else if (_root.Conteneur.HitVehicule._y <= _root.Conteneur.Player._y) {
_root.Conteneur.Player._y = _root.Conteneur.Player._y + 20;
_root.Conteneur.Player._x = _root.Conteneur.Player._x - 30;
}
}
}
if (_root.Conteneur.Obstacle.hitTest(hitpts[i].x, hitpts[i].y, true) && (!_root.Jumping)) {
if (_name == "Top") {
_root.Conteneur.Player._y = _root.Conteneur.Player._y + _global.tabSpeed[_global.SpeedUpgrade];
}
if (_name == "Bot") {
_root.Conteneur.Player._y = _root.Conteneur.Player._y - _global.tabSpeed[_global.SpeedUpgrade];
}
if (_name == "Left") {
_root.Conteneur.Player._x = _root.Conteneur.Player._x + _global.tabSpeed[_global.SpeedUpgrade];
}
if (_name == "Right") {
_root.Conteneur.Player._x = _root.Conteneur.Player._x - _global.tabSpeed[_global.SpeedUpgrade];
}
}
if (_parent._x < -950) {
_parent._x = _parent._x + _global.tabSpeed[_global.SpeedUpgrade];
}
if (_parent._x > 600) {
_parent._x = _parent._x - _global.tabSpeed[_global.SpeedUpgrade];
}
if ((_parent._y < 65) && (!_root.Jumping)) {
_parent._y = _parent._y + _global.tabSpeed[_global.SpeedUpgrade];
}
if ((_parent._y > 200) && (!_root.Jumping)) {
_parent._y = _parent._y - _global.tabSpeed[_global.SpeedUpgrade];
}
i++;
}
}
Instance of Symbol 1438 MovieClip "Top" in Symbol 1510 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.Conteneur.Obstacle.hitTest(hitpts[i].x, hitpts[i].y, true) && (!_root.Jumping)) {
if (_name == "Top") {
_root.Conteneur.Player._y = _root.Conteneur.Player._y + _global.tabSpeed[_global.SpeedUpgrade];
}
if (_name == "Bot") {
_root.Conteneur.Player._y = _root.Conteneur.Player._y - _global.tabSpeed[_global.SpeedUpgrade];
}
if (_name == "Left") {
_root.Conteneur.Player._x = _root.Conteneur.Player._x + _global.tabSpeed[_global.SpeedUpgrade];
}
if (_name == "Right") {
_root.Conteneur.Player._x = _root.Conteneur.Player._x - _global.tabSpeed[_global.SpeedUpgrade];
}
}
if (_parent._x < ((_global.tabMapSizeX[_global.Level] / 2) * -1)) {
_parent._x = _parent._x + _global.tabSpeed[_global.SpeedUpgrade];
}
if (_parent._x > (_global.tabMapSizeX[_global.Level] / 2)) {
_parent._x = _parent._x - _global.tabSpeed[_global.SpeedUpgrade];
}
if ((_parent._y < 65) && (!_root.Jumping)) {
_parent._y = _parent._y + _global.tabSpeed[_global.SpeedUpgrade];
}
if ((_parent._y > 200) && (!_root.Jumping)) {
_parent._y = _parent._y - _global.tabSpeed[_global.SpeedUpgrade];
}
i++;
}
}
Symbol 1518 MovieClip Frame 1
stop();
if (_global.SpeedUpgrade != 0) {
gotoAndStop (2);
}
Symbol 1523 MovieClip Frame 1
stop();
_parent.createEnemies();
_parent.SetTableauElement();
Instance of Symbol 1521 MovieClip in Symbol 1523 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(8700);
}
Instance of Symbol 1522 MovieClip in Symbol 1523 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(8900);
}
Symbol 1537 MovieClip Frame 1
stop();
Symbol 1553 MovieClip Frame 1
stop();
Symbol 1559 MovieClip Frame 1
ShooterType = 2;
Symbol 1579 MovieClip Frame 1
ShooterType = 1;
Symbol 1580 MovieClip Frame 1
ShooterType = 0;
Symbol 1581 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.StadeTuto);
};
Instance of Symbol 1225 MovieClip in Symbol 1581 MovieClip Frame 1
onClipEvent (load) {
Boutton.strText = "NEXT";
}
onClipEvent (enterFrame) {
if (Boutton.act == 2) {
Boutton.act = 1;
_global.StadeTuto++;
}
}
Symbol 1581 MovieClip Frame 8
_root.Timar.Minutes = 30;
_root.Timar.Heure = 4;
Instance of Symbol 1576 MovieClip "Chopper" in Symbol 1581 MovieClip Frame 8
onClipEvent (load) {
this.swapDepths(8650);
}
Symbol 1582 MovieClip Frame 1
stop();
Symbol 1582 MovieClip Frame 2
stop();
Symbol 1586 MovieClip Frame 100
stop();
Symbol 1588 MovieClip Frame 100
_root.gotoAndStop("SUBMENU");
Symbol 1589 MovieClip Frame 1
stop();
Symbol 1589 MovieClip Frame 2
stop();
Symbol 1589 MovieClip Frame 3
stop();
Symbol 1592 MovieClip Frame 1
stop();
onEnterFrame = function () {
RatioHealt = _root.Conteneur.Player.Hp / _global.tabPlayerHealt[PlayerHealtUpgrade];
ActualHealt = RatioHealt * 100;
Location = Math.round(100 - ActualHealt);
gotoAndStop(Location);
};
Symbol 1596 MovieClip Frame 1
stop();
Symbol 1603 MovieClip Frame 1
stop();
DixFrameSec = 0;
Minutes = 0;
Heure = 0;
notFinished = true;
onEnterFrame = function () {
if (notFinished && (_global.StadeTuto > 7)) {
_root.TempsActuel++;
DixFrameSec++;
if (DixFrameSec >= 10) {
Minutes++;
DixFrameSec = 0;
if (Minutes >= 60) {
Heure++;
Minutes = 0;
}
}
ratioTimer = (_root.TempsActuel / _root.TempsTotal) * 100;
if (Heure == 5) {
_global.StadeTuto = 9;
ratioTimer = 100;
}
if (ratioTimer >= 100) {
notFinished = false;
_root.TimeUp.play();
}
if (Heure == 0) {
AffHeure = 12;
} else {
AffHeure = "0" + Heure;
}
if (Minutes < 10) {
AffMinutes = "0" + Minutes;
} else {
AffMinutes = Minutes;
}
Temps.Timer.Orloge = (AffHeure + ":") + AffMinutes;
}
};
Symbol 1606 MovieClip Frame 1
stop();
Symbol 1606 MovieClip Frame 401
_global.VoiceEnable = true;
Symbol 1610 MovieClip Frame 1
stop();
Symbol 1610 MovieClip Frame 2
Timer1.play();
play();
Symbol 1610 MovieClip Frame 53
stop();
_root.FinLevel();
Symbol 1618 MovieClip Frame 1
BombsAwayOds = 20;
Symbol 1618 MovieClip Frame 51
stop();
DoFire = random(100) + 1;
if (DoFire <= BombsAwayOds) {
_parent.play();
} else {
BombsAwayOds = BombsAwayOds + 20;
}
gotoAndPlay ("Loop");
Symbol 1636 MovieClip Frame 1
stop();
Symbol 1636 MovieClip Frame 2
TankSound = new Sound();
TankSound.attachSound("sd_MoveTank");
TankSound.start();
Symbol 1636 MovieClip Frame 56
stop();
Symbol 1636 MovieClip Frame 74
Rock = _root.Conteneur.attachMovie("BlackRock", "BlackRock_" + _global.nbRock, (_root.getNextHighestDepth() + 7400) + _global.nbRock);
_global.nbRock++;
if (_global.nbRock > 10) {
_global.nbRock = 0;
}
Rock._x = _root.Conteneur.Player._x + (random(100) - 50);
Rock._y = _root.Conteneur.Player._y + (random(50) - 25);
Symbol 1636 MovieClip Frame 79
Rock = _root.Conteneur.attachMovie("BlackRock", "BlackRock_" + _global.nbRock, (_root.getNextHighestDepth() + 7400) + _global.nbRock);
_global.nbRock++;
if (_global.nbRock > 10) {
_global.nbRock = 0;
}
Rock._x = _root.Conteneur.Player._x + (random(400) - 200);
Rock._y = _root.Conteneur.Player._y + (random(50) - 25);
Symbol 1636 MovieClip Frame 99
gotoAndStop ("Wait");
Symbol 1640 MovieClip Frame 1
onEnterFrame = function () {
if (_root.Jumping) {
if (_root.Conteneur.Player.hitTest(this) && (_root.BaseJump >= 175)) {
_root.Achievement.gotoAndPlay(2);
_root.Achievement.Title.gotoAndStop(3);
_global.SpeedUpgrade = 1;
_parent.gotoAndStop(2);
}
}
};
Symbol 1641 MovieClip Frame 1
stop();
if (_global.SpeedUpgrade != 0) {
gotoAndStop (2);
}
Symbol 1646 MovieClip Frame 1
function Move() {
if (ActualSpeedX != 0) {
_root.Conteneur.Chopper._x = _root.Conteneur.Chopper._x + ActualSpeedX;
}
if (ActualSpeedY != 0) {
_root.Conteneur.Chopper._y = _root.Conteneur.Chopper._y + ActualSpeedY;
}
}
ChopparMaxSpeedX = 10;
ChopparMaxSpeedY = 10;
BaseSpeedX = 2;
BaseSpeedY = 2;
ActualSpeedX = 0;
ActualSpeedY = 0;
DistanceX = 0;
DistanceY = 0;
TravelDistanceX = 0;
TravelDistanceY = 0;
onEnterFrame = function () {
Move();
DestinationX = _root.Conteneur.Player._x;
if (!_root.Jumping) {
DestinationY = _root.Conteneur.Player._y;
} else {
DestinationY = _root.BaseJump;
}
LocationX = _root.Conteneur.Chopper._x;
LocationY = _root.Conteneur.Chopper._y;
DistanceX = Math.round(DestinationX - LocationX);
DistanceY = Math.round(DestinationY - LocationY);
if (DistanceX < 0) {
TravelDistanceX = DistanceX * -1;
} else {
TravelDistanceX = DistanceX;
}
if (DistanceY < 0) {
TravelDistanceY = DistanceY * -1;
} else {
TravelDistanceY = DistanceY;
}
if ((DistanceX < 0) && (ActualSpeedX == 0)) {
ActualSpeedX = BaseSpeedX * -1;
} else if ((DistanceX > 0) && (ActualSpeedX == 0)) {
ActualSpeedX = BaseSpeedX;
} else if (TravelDistanceX <= (BaseSpeedX * 2)) {
ActualSpeedX = 0;
}
if (TravelDistanceX > (BaseSpeedX * 2)) {
if (DistanceX < 0) {
ActualSpeedX = Math.round(TravelDistanceX * -0.1);
} else {
ActualSpeedX = Math.round(TravelDistanceX * 0.1);
}
if (ActualSpeedX > 10) {
ActualSpeedX = 10;
} else if (ActualSpeedX < -10) {
ActualSpeedX = -10;
}
}
if ((DistanceY < 0) && (ActualSpeedY == 0)) {
ActualSpeedY = BaseSpeedY * -1;
} else if ((DistanceY > 0) && (ActualSpeedY == 0)) {
ActualSpeedY = BaseSpeedY;
} else if (TravelDistanceY <= (BaseSpeedY * 2)) {
ActualSpeedY = 0;
}
if (TravelDistanceY > (BaseSpeedY * 2)) {
if (DistanceY < 0) {
ActualSpeedY = Math.round(TravelDistanceY * -0.1);
} else {
ActualSpeedY = Math.round(TravelDistanceY * 0.1);
}
if (ActualSpeedY > 10) {
ActualSpeedY = 10;
} else if (ActualSpeedY < -10) {
ActualSpeedY = -10;
}
}
if (TravelDistanceX < BaseSpeedX) {
ActualSpeedX = 0;
}
if (TravelDistanceY < BaseSpeedY) {
ActualSpeedY = 0;
}
};
Symbol 1648 MovieClip Frame 1
stop();
Symbol 1648 MovieClip Frame 81
_root.createFiremen();
_root.tabShootingEnnemy[_root.tabShootingEnnemy.length - 1]._x = (_root.Conteneur.Chopper._x + 360) + (random(20) - 10);
_root.tabShootingEnnemy[_root.tabShootingEnnemy.length - 1]._y = _root.Conteneur.Chopper._y + (random(20) - 10);
Symbol 1648 MovieClip Frame 96
_root.createFiremen();
_root.tabShootingEnnemy[_root.tabShootingEnnemy.length - 1]._x = (_root.Conteneur.Chopper._x + 360) + (random(20) - 10);
_root.tabShootingEnnemy[_root.tabShootingEnnemy.length - 1]._y = _root.Conteneur.Chopper._y + (random(20) - 10);
Symbol 1648 MovieClip Frame 111
_root.createFiremen();
_root.tabShootingEnnemy[_root.tabShootingEnnemy.length - 1]._x = (_root.Conteneur.Chopper._x + 360) + (random(20) - 10);
_root.tabShootingEnnemy[_root.tabShootingEnnemy.length - 1]._y = _root.Conteneur.Chopper._y + (random(20) - 10);
Symbol 1648 MovieClip Frame 217
_root.Conteneur.Chopper._x = _root.Conteneur.Player._x - 1200;
Symbol 1648 MovieClip Frame 381
gotoAndPlay ("Hover");
Symbol 1649 MovieClip Frame 1
stop();
_parent.createEnemies();
_parent.SetTableauElement();
Instance of Symbol 1642 MovieClip in Symbol 1649 MovieClip Frame 1
onClipEvent (load) {
trace("Sides");
this.swapDepths(8700);
}
Instance of Symbol 1648 MovieClip "Chopper" in Symbol 1649 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(8650);
}
Instance of Symbol 1522 MovieClip in Symbol 1649 MovieClip Frame 1
onClipEvent (load) {
trace("Sides");
this.swapDepths(8900);
}
Symbol 1649 MovieClip Frame 2
stop();
_parent.createEnemies();
_parent.SetTableauElement();
Instance of Symbol 1642 MovieClip in Symbol 1649 MovieClip Frame 2
onClipEvent (load) {
this.swapDepths(8700);
}
Instance of Symbol 1522 MovieClip in Symbol 1649 MovieClip Frame 2
onClipEvent (load) {
this.swapDepths(8900);
}
Symbol 1664 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.Brains.Brain._currentframe);
};
Symbol 1665 MovieClip Frame 1
stop();
DixFrameSec = 0;
Minutes = 0;
Heure = 0;
notFinished = true;
onEnterFrame = function () {
if (notFinished) {
_root.TempsActuel++;
DixFrameSec++;
if (DixFrameSec >= 10) {
Minutes++;
DixFrameSec = 0;
if (Minutes >= 60) {
Heure++;
Minutes = 0;
}
}
ratioTimer = (_root.TempsActuel / _root.TempsTotal) * 100;
if (ratioTimer >= 100) {
notFinished = false;
_root.TimeUp.play();
}
if (Heure == 0) {
AffHeure = 12;
} else {
AffHeure = "0" + Heure;
}
if (Minutes < 10) {
AffMinutes = "0" + Minutes;
} else {
AffMinutes = Minutes;
}
Temps.Timer.Orloge = (AffHeure + ":") + AffMinutes;
}
};
Symbol 1666 MovieClip Frame 1
stop();
Symbol 1666 MovieClip Frame 2
play();
Symbol 1668 MovieClip Frame 1
stop();
Symbol 1668 MovieClip Frame 15
stop();
_global.PoliceStade = 1;
_root.createFiremen();
_root.createFiremen();
Symbol 1668 MovieClip Frame 29
stop();
_global.PoliceStade = 2;
_root.createFiremen();
_root.createFiremen();
_root.createFiremen();
Symbol 1668 MovieClip Frame 43
stop();
_global.PoliceStade = 3;
_root.createFiremen();
_root.createFiremen();
_root.createFiremen();
_root.createFiremen();
Symbol 1668 MovieClip Frame 57
stop();
_global.PoliceStade = 4;
_root.createFiremen();
_root.createFiremen();
_root.Conteneur.Chopper.play();
Symbol 1668 MovieClip Frame 71
stop();
_global.PoliceStade = 5;
_root.createFiremen();
_root.createFiremen();
_root.createFiremen();
_root.Conteneur.Tank1.play();
_root.Conteneur.Tank2.play();
Symbol 1670 MovieClip Frame 1
carOdds = 0;
Symbol 1670 MovieClip Frame 51
IsThereCar = random(100) + 1;
if (!_root.Conteneur.HitVehicule.Roll) {
if (IsThereCar <= carOdds) {
CarSpin = new Sound();
CarSpin.attachSound("sd_CarSpin");
CarSpin.start();
_root.SpawnVehicule();
carOdd = 0;
} else {
carOdds++;
}
}
gotoAndPlay ("Loop");
Symbol 1672 MovieClip Frame 1
function SelectSpecial() {
trace(Tentative);
Tentative++;
if (Tentative < 5) {
RandomSpecial = random(5) + 1;
if (RandomSpecial == 1) {
if (_global.Castor) {
SelectSpecial();
} else {
_global.Castor = true;
play();
}
} else if (RandomSpecial == 2) {
if (_global.Toche) {
SelectSpecial();
} else {
_global.Toche = true;
play();
}
} else if (RandomSpecial == 3) {
if (_global.Kuma) {
SelectSpecial();
} else {
_global.Kuma = true;
play();
}
} else if (RandomSpecial == 4) {
if (_global.Mime) {
SelectSpecial();
} else {
_global.Mime = true;
play();
}
} else if (RandomSpecial == 5) {
if (_global.Panda) {
SelectSpecial();
} else {
_global.Panda = true;
play();
}
}
} else {
stop();
}
}
stop();
SpecialOdds = 0;
Tentative = 0;
SelectSpecial();
Symbol 1672 MovieClip Frame 51
stop();
IsThereSpecial = random(100) + 1;
if (IsThereSpecial <= SpecialOdds) {
_root.SpawnSpecial(RandomSpecial);
stop();
} else {
SpecialOdds = SpecialOdds + 0.5;
gotoAndPlay ("Loop");
}
Symbol 1673 MovieClip Frame 1
PoliceOdds = 0;
trace("Start this");
Symbol 1673 MovieClip Frame 51
stop();
IsThereCop = random(100) + 1;
if (IsThereCop <= PoliceOdds) {
_root.createFiremen();
PoliceOdds = 0;
} else if (_global.Reputation > 0) {
PoliceOdds = PoliceOdds + 10;
}
gotoAndPlay ("Loop");
Symbol 1675 MovieClip Frame 1
stop();