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);
}
lavr = 13;
mochi.as2.MochiAd.showPreGameAd({id:"0a0ad2de5fea2494", res:"800x440"});
__com_mochibot__("8a27cb92", this, 10301, true);
function menuChoiceOne() {
getURL ("http://www.pyrozen.com");
}
stop();
_root.user = SharedObject.getLocal("user_TheResistence");
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 (20);
}
};
Frame 19
onEnterFrame = function () {
if (_root.got2go == 2) {
_root.got2go = 1;
gotoAndStop (20);
}
};
Frame 20
function SaveGame() {
_root.user.data.Level = _global.Level;
_root.user.data.Money = _global.Money;
_root.user.data.FireRateUpgrade = _global.FireRateUpgrade;
_root.user.data.UpgradeAccuracy = _global.UpgradeAccuracy;
_root.user.data.UpgradeClipSize = _global.UpgradeClipSize;
_root.user.data.DamageUpgrade = _global.DamageUpgrade;
_root.user.data.ScopeUnlocked = _global.ScopeUnlocked;
_root.user.data.Grenade = _global.Grenade;
_root.user.data.Ammo = _global.Ammo;
_root.user.data.WallMaxHP = _global.WallMaxHP;
_root.user.data.WallCurrentHP = _global.WallCurrentHP;
_root.user.data.WallUpgrade = _global.WallUpgrade;
_root.user.data.WallDamageUnlocked = _global.WallDamageUnlocked;
_root.user.data.NoHealtUpgrade = _global.NoHealtUpgrade;
_root.user.data.PlayerMaxHP = _global.PlayerMaxHP;
_root.user.data.PlayerCurrentHP = _global.PlayerCurrentHP;
}
stop();
PistolSound = new Sound();
PistolSound.attachSound("MenuMuz");
PistolSound.start(0, 999);
b2.gotoAndStop("Load");
b3.gotoAndStop("MoreGames");
b4.gotoAndStop("Walkthrough");
if ((_root.user.data.Level != undefined) and (_global.Level == undefined)) {
_global.Level = _root.user.data.Level;
_global.LoadGame = true;
}
if (_global.Level == undefined) {
_global.Level = 0;
_global.LoadGame = false;
}
if ((_root.user.data.Money != undefined) and (_global.Money == undefined)) {
_global.Money = _root.user.data.Money;
}
if (_global.Money == undefined) {
_global.Money = 0;
}
if ((_root.user.data.FireRateUpgrade != undefined) and (_global.FireRateUpgrade == undefined)) {
_global.FireRateUpgrade = _root.user.data.FireRateUpgrade;
}
if (_global.FireRateUpgrade == undefined) {
_global.FireRateUpgrade = 0;
}
if ((_root.user.data.UpgradeAccuracy != undefined) and (_global.UpgradeAccuracy == undefined)) {
_global.UpgradeAccuracy = _root.user.data.UpgradeAccuracy;
}
if (_global.UpgradeAccuracy == undefined) {
_global.UpgradeAccuracy = 0;
}
if ((_root.user.data.UpgradeClipSize != undefined) and (_global.UpgradeClipSize == undefined)) {
_global.UpgradeClipSize = _root.user.data.UpgradeClipSize;
}
if (_global.UpgradeClipSize == undefined) {
_global.UpgradeClipSize = 0;
}
if ((_root.user.data.DamageUpgrade != undefined) and (_global.DamageUpgrade == undefined)) {
_global.DamageUpgrade = _root.user.data.DamageUpgrade;
}
if (_global.DamageUpgrade == undefined) {
_global.DamageUpgrade = 0;
}
if ((_root.user.data.ScopeUnlocked != undefined) and (_global.ScopeUnlocked == undefined)) {
_global.ScopeUnlocked = _root.user.data.ScopeUnlocked;
}
if (_global.ScopeUnlocked == undefined) {
_global.ScopeUnlocked = false;
}
if ((_root.user.data.Grenade != undefined) and (_global.Grenade == undefined)) {
_global.Grenade = _root.user.data.Grenade;
}
if (_global.Grenade == undefined) {
_global.Grenade = 0;
}
if ((_root.user.data.Ammo != undefined) and (_global.Ammo == undefined)) {
_global.Ammo = _root.user.data.Ammo;
}
if (_global.Ammo == undefined) {
_global.Ammo = 200;
}
if ((_root.user.data.WallMaxHP != undefined) and (_global.WallMaxHP == undefined)) {
_global.WallMaxHP = _root.user.data.WallMaxHP;
}
if (_global.WallMaxHP == undefined) {
_global.WallMaxHP = 300;
}
if ((_root.user.data.WallCurrentHP != undefined) and (_global.WallCurrentHP == undefined)) {
_global.WallCurrentHP = _root.user.data.WallCurrentHP;
}
if (_global.WallCurrentHP == undefined) {
_global.WallCurrentHP = 300;
}
if ((_root.user.data.WallUpgrade != undefined) and (_global.WallUpgrade == undefined)) {
_global.WallUpgrade = _root.user.data.WallUpgrade;
}
if (_global.WallUpgrade == undefined) {
_global.WallUpgrade = 0;
}
if ((_root.user.data.WallDamageUnlocked != undefined) and (_global.WallDamageUnlocked == undefined)) {
_global.WallDamageUnlocked = _root.user.data.WallDamageUnlocked;
}
if (_global.WallDamageUnlocked == undefined) {
_global.WallDamageUnlocked = false;
}
if ((_root.user.data.NoHealtUpgrade != undefined) and (_global.NoHealtUpgrade == undefined)) {
_global.NoHealtUpgrade = _root.user.data.NoHealtUpgrade;
}
if (_global.NoHealtUpgrade == undefined) {
_global.NoHealtUpgrade = 0;
}
if ((_root.user.data.PlayerMaxHP != undefined) and (_global.PlayerMaxHP == undefined)) {
_global.PlayerMaxHP = _root.user.data.PlayerMaxHP;
}
if (_global.PlayerMaxHP == undefined) {
_global.PlayerMaxHP = 100;
}
if ((_root.user.data.PlayerCurrentHP != undefined) and (_global.PlayerCurrentHP == undefined)) {
_global.PlayerCurrentHP = _root.user.data.PlayerCurrentHP;
}
if (_global.PlayerCurrentHP == undefined) {
_global.PlayerCurrentHP = 100;
}
_global.AmmoInClip = 0;
_global.NbKills = 0;
_global.NbHS = 0;
_global.DamageTaken = 0;
_global.WallDmgTaken = 0;
_global.Rating = 0;
_global.tabPlayerDMG = [50, 75, 130, 200, 280, 380, 500, 690, 800, 1000];
_global.tabPlayerHP = [100, 300, 600, 1200, 2000, 3000, 4500, 6000, 9000];
_global.tabClipSize = [12, 18, 30, 60, 90, 120, 150];
_global.tabFireRate = [350, 300, 250, 200, 150, 100, 50];
_global.tabWallHealt = [300, 600, 1200, 2400, 4500, 7000, 10000];
_global.tabAccuracy = [30, 15, 10, 5, 0];
_global.AmmoCheat = false;
_global.AccuracyCheat = false;
_global.JustUnlockedSniper = false;
_global.GrenadeCheat = false;
_global.Invincible = false;
_global.noBackground = 1;
Instance of Symbol 171 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_global.Level = 0;
_global.Money = 2500;
_global.FireRateUpgrade = 0;
_global.UpgradeAccuracy = 0;
_global.UpgradeClipSize = 0;
_global.DamageUpgrade = 0;
_global.ScopeUnlocked = false;
_global.Grenade = 0;
_global.Ammo = 200;
_global.WallMaxHP = 300;
_global.WallCurrentHP = 300;
_global.WallUpgrade = 0;
_global.WallDamageUnlocked = 0;
_global.NoHealtUpgrade = 0;
_global.PlayerMaxHP = 100;
_global.PlayerCurrentHP = 100;
_root.gotoAndStop("SHOP");
}
}
Instance of Symbol 175 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
if (_global.Level != 0) {
_root.gotoAndStop("SHOP");
}
}
}
Instance of Symbol 179 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (act == 2) {
getURL ("http://www.gamesfree.ca", "_blank");
act = 1;
}
}
Instance of Symbol 183 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (act == 2) {
getURL ("http://www.gamesfree.ca/customPage/103/", "_blank");
act = 1;
}
}
Instance of Symbol 344 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();
Frame 22
stop();
Frame 23
stop();
Frame 24
stop();
Frame 39
stop();
if (_global.Level > 10) {
MessageFin.gotoAndStop(2);
}
if (Percent.HP < 40) {
HealYou.play();
}
_root._quality = "high";
onEnterFrame = function () {
Percent.HP = Math.round((_global.PlayerCurrentHP / _global.PlayerMaxHP) * 100);
Percent.Bar = Math.round((_global.WallCurrentHP / _global.WallMaxHP) * 100);
};
PistolSound = new Sound();
PistolSound.attachSound("MenuMuz");
PistolSound.stop();
PistolSound.start(0, 999);
b1.btnText = "Upgrades";
b2.btnText = "More Games";
b3.btnText = "Cheats";
b4.btnText = "Next Wave";
b5.btnText = "Walkthrough";
if (_global.Level == 0) {
b4.btnText = "Play";
}
Mouse.show();
if (_global.FinStage) {
InfoBoard.gotoAndStop("OverView");
_global.FinStage = false;
}
if (_global.PlayerCurrentHP <= 0) {
_global.Money = _global.Money - (_global.PlayerMaxHP - _global.PlayerCurrentHP);
_global.PlayerCurrentHP = _global.PlayerMaxHP;
if (_global.Money < 0) {
_global.Money = 0;
}
}
if (_global.WallCurrentHP <= 0) {
_global.Money = _global.Money - (_global.WallMaxHP - _global.WallCurrentHP);
_global.WallCurrentHP = _global.WallMaxHP;
if (_global.Money < 0) {
_global.Money = 0;
}
}
Instance of Symbol 105 MovieClip "b1" in Frame 39
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
_parent.InfoBoard.gotoAndStop("SubMenu");
}
}
Instance of Symbol 105 MovieClip "b2" in Frame 39
onClipEvent (enterFrame) {
if (act == 2) {
getURL ("http://www.gamesfree.ca", "_blank");
act = 1;
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
}
Instance of Symbol 105 MovieClip "b3" in Frame 39
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
_parent.InfoBoard.gotoAndStop("Cheats");
}
}
Instance of Symbol 105 MovieClip "b4" in Frame 39
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
if (_global.Level > 10) {
_global.Level = 10;
}
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
if (_global.Level == 0) {
_root.gotoAndStop("TUTO");
} else {
_root.gotoAndStop("GAME");
}
}
}
Instance of Symbol 105 MovieClip "b5" in Frame 39
onClipEvent (enterFrame) {
if (act == 2) {
getURL ("http://www.gamesfree.ca/customPage/103/", "_blank");
act = 1;
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
}
Frame 51
function FireBullet() {
if (_global.AmmoInClip > 0) {
if (_global.BulletReady) {
if (Sniping) {
ShakeNumber2 = 10;
Conteneur.SniperView.Aim.gotoAndPlay(2);
}
if (_global.DamageUpgrade < 3) {
ShakeNumber = 5;
Aim1.Aim.gotoAndPlay(2);
if (!Rolling) {
Player.gotoAndPlay("Fire3");
}
PistolSound = new Sound();
PistolSound.attachSound("sd_Sniper");
PistolSound.start();
} else {
ShakeNumber = 7;
Aim1.Aim.gotoAndPlay(2);
if (!Rolling) {
Player.gotoAndPlay("Fire4");
}
ShotgunSound = new Sound();
ShotgunSound.attachSound("sd_Shotgun");
ShotgunSound.start();
}
if (!_global.AmmoCheat) {
_global.AmmoInClip--;
}
_global.BulletReady = false;
currentTime = getTimer();
Rejet = Player.attachMovie("Douille", "Douille" + DouilleCount, 1000 + DouilleCount);
DouilleCount++;
Rejet._x = Player.b_6._x;
Rejet._y = Player.b_6._y;
CreateImpact();
} else if ((currentTime + _global.tabFireRate[_global.FireRateUpgrade]) <= getTimer()) {
_global.BulletReady = true;
}
}
}
function CreateImpact() {
if (!_global.AccuracyCheat) {
if (!Sniping) {
tabImpact[NoBullet]._x = Conteneur._xmouse + (random(_global.tabAccuracy[_global.UpgradeAccuracy]) - (_global.tabAccuracy[_global.UpgradeAccuracy] / 2));
tabImpact[NoBullet]._y = Conteneur._ymouse + (random(_global.tabAccuracy[_global.UpgradeAccuracy]) - (_global.tabAccuracy[_global.UpgradeAccuracy] / 2));
} else {
tabImpact[NoBullet]._x = Conteneur.SniperView._x;
tabImpact[NoBullet]._y = Conteneur.SniperView._y;
}
} else if (_global.AccuracyCheat) {
tabImpact[NoBullet]._x = Conteneur._xmouse;
tabImpact[NoBullet]._y = Conteneur._ymouse;
}
tabImpact[NoBullet].play();
tabImpact[NoBullet]._rotation = random(180) - 90;
tabImpact[NoBullet]._xscale = random(50) + 50;
tabImpact[NoBullet]._yscale = random(50) + 50;
NoBullet++;
}
function ThrowGNade() {
if ((!Nading) && (!Rolling)) {
if (_global.Grenade > 0) {
Hiding = true;
Nading = true;
Player.gotoAndPlay("Grenade");
if (!_global.GrenadeCheat) {
_global.Grenade--;
}
}
}
}
function AvancerEnnemi(Ennemy) {
if (Ennemy._y < 0) {
if (Ennemy._y < -200) {
Ennemy._y = Ennemy._y + 1;
Ennemy._x = Ennemy._x + tabPathSpeed[Ennemy.Path];
} else if (Ennemy._y < -150) {
Ennemy._y = Ennemy._y + 2;
Ennemy._x = Ennemy._x + (tabPathSpeed[Ennemy.Path] * 2);
} else {
Ennemy._y = Ennemy._y + 3;
Ennemy._x = Ennemy._x + (tabPathSpeed[Ennemy.Path] * 3);
}
PosY = Ennemy._y;
Progression = 100 + ((PosY * 100) / 290);
Scaling = 5 + Progression;
if (!Ennemy.Swaped) {
Ennemy._xscale = Scaling;
} else {
Ennemy._xscale = -Scaling;
}
Ennemy._yscale = Scaling;
} else {
Ennemy.Walk = false;
}
}
function SpawnEnnemy(Ennemy) {
Ennemy.Swaped = random(2);
Ennemy.Path = random(7);
Ennemy.Strategie = tabStrat[random(6)];
if (Ennemy.Strategie != "Camper") {
Ennemy._x = SpawnX;
Ennemy._y = SpawnY;
Ennemy.Mang.gotoAndPlay("Walking");
} else {
noCamper = random(2);
if (Ennemy.getDepth() > Conteneur.E_Wall2.getDepth()) {
Ennemy.Swaped = 0;
Conteneur.E_Wall2.swapDepths(Ennemy);
}
if (Ennemy.getDepth() > Conteneur.E_Wall3.getDepth()) {
Conteneur.E_Wall3.swapDepths(Ennemy);
}
if (noCamper == 0) {
Ennemy._x = 725 + random(10);
Ennemy._y = -325;
Ennemy._xscale = 17;
Ennemy._yscale = 17;
} else if (noCamper == 1) {
Ennemy._x = 975 + random(10);
Ennemy._y = -330;
Ennemy._xscale = 17;
Ennemy._yscale = 17;
}
}
Ennemy.Walk = true;
}
function ZoomIn() {
startDrag (Conteneur.SniperView, true);
Aim1._y = 1000;
Conteneur._xscale = 250;
Conteneur._yscale = 250;
Sniping = true;
Hiding = false;
}
function ZoomOut() {
startDrag (Aim1, true);
Hiding = true;
Conteneur._xscale = 100;
Conteneur._yscale = 100;
Conteneur._x = 0;
Conteneur._y = 400;
Sniping = false;
Conteneur.SniperView._y = 6000;
}
function WarpBodies() {
i = 0;
while (i < 10) {
if (tabEnnemy[i].Dead && (tabEnnemy[i].tempsMort < 200)) {
tabEnnemy[i].tempsMort++;
} else if (tabEnnemy[i].Dead && (tabEnnemy[i].tempsMort >= 200)) {
tabEnnemy[i]._x = -10000;
}
i++;
}
}
stop();
_root._quality = "medium";
LowLifeSound = false;
PistolSound = new Sound();
TutoSnipeStep = 0;
if (_global.JustUnlockedSniper) {
trace("Appear");
TutoSnipe.gotoAndStop(2);
TutoSnipeStep = 1;
_global.JustUnlockedSniper = false;
}
if (_global.Level < 3) {
PistolSound.attachSound("track_Stage1");
} else if (_global.Level < 5) {
PistolSound.attachSound("track_Stage2");
} else if (_global.Level < 7) {
PistolSound.attachSound("track_Stage3");
} else {
PistolSound.attachSound("track_Stage4");
}
PistolSound.stop();
PistolSound.start(0, 999);
Conteneur.bg_10.gotoAndStop(_global.noBackground);
_global.GrenadeCount = 0;
_global.NbKills = 0;
_global.NbHS = 0;
_global.DamageTaken = 0;
_global.WallDmgTaken = 0;
_global.Rating = 0;
Player = Conteneur.Char.Mang;
_global.StartingLife = _global.PlayerCurrentHP;
_global.WallStartingLife = _global.WallCurrentHP;
Mouse.hide();
startDrag (Aim1, true);
Hiding = true;
Sniping = false;
distanceTransition = 0;
DouilleCount = 0;
Nading = false;
Flippin = false;
Reloading = false;
cam_speed = 0.2;
currentSpeed = 50;
CoteScreen = "LEFT";
Rolling = false;
tabStrat = ["Destroy", "Kill", "Explosion", "Camper", "Destroy", "Destroy"];
tabEnnemy = [Conteneur.E_1, Conteneur.E_2, Conteneur.E_3, Conteneur.E_4, Conteneur.E_5, Conteneur.E_6, Conteneur.E_7, Conteneur.E_8, Conteneur.E_9, Conteneur.E_10, Conteneur.E_11, Conteneur.E_12, Conteneur.E_13, Conteneur.E_14, Conteneur.E_15];
tabEnnemyOnMap = [];
SpawnX = 855;
SpawnY = -290;
TotalSpawned = 0;
tabPathSpeed = [-2.5, -0.9, -0.45, 0, 0.45, 0.9, 1.3];
tabImpact = [Conteneur.Impacte_1, Conteneur.Impacte_2, Conteneur.Impacte_3, Conteneur.Impacte_4, Conteneur.Impacte_5, Conteneur.Impacte_6, Conteneur.Impacte_7, Conteneur.Impacte_8, Conteneur.Impacte_9, Conteneur.Impacte_10, Conteneur.Impacte_11, Conteneur.Impacte_12, Conteneur.Impacte_13, Conteneur.Impacte_14, Conteneur.Impacte_15, Conteneur.Impacte_16, Conteneur.Impacte_17, Conteneur.Impacte_18, Conteneur.Impacte_19, Conteneur.Impacte_20];
NoBullet = 0;
NoEnnemy = 0;
nbEnnemyOnMap = 0;
Dead = false;
ZoomingOut = true;
_global.BulletReady = true;
_global.SpawnReady = false;
ShakeNumber = 0;
ShakeNumber2 = 0;
_global.NbDead = 0;
var isMouseDown = false;
tabEnnemyOnMap.push(Conteneur.E_Wall);
Ennemy1Spawned = 0;
Ennemy2Spawned = 0;
Ennemy3Spawned = 0;
Ennemy4Spawned = 0;
Ennemy5Spawned = 0;
Ennemy6Spawned = 0;
Ennemy7Spawned = 0;
Ennemy8Spawned = 0;
_global.Ammo = _global.Ammo - (_global.tabClipSize[_global.UpgradeClipSize] - _global.AmmoInClip);
_global.AmmoInClip = _global.tabClipSize[_global.UpgradeClipSize];
switch (_global.Level) {
case 1 :
_global.SpawnSpeed = 5000;
_global.NbEnnemy = 5;
_global.NbEnnemy1 = 5;
_global.Ennemy1DMG = 10;
_global.Ennemy1HP = 100;
_global.Ennemy1AtkSpeed = 4000;
break;
case 2 :
_global.SpawnSpeed = 4500;
_global.NbEnnemy = 7;
_global.NbEnnemy1 = 5;
_global.NbEnnemy2 = 2;
_global.Ennemy1DMG = 10;
_global.Ennemy2DMG = 15;
_global.Ennemy1HP = 100;
_global.Ennemy2HP = 200;
_global.Ennemy1AtkSpeed = 4000;
_global.Ennemy2AtkSpeed = 3500;
break;
case 3 :
_global.SpawnSpeed = 4000;
_global.NbEnnemy = 10;
_global.NbEnnemy1 = 2;
_global.NbEnnemy2 = 6;
_global.NbEnnemy3 = 2;
_global.Ennemy1DMG = 10;
_global.Ennemy2DMG = 15;
_global.Ennemy3DMG = 30;
_global.Ennemy1HP = 100;
_global.Ennemy2HP = 200;
_global.Ennemy3HP = 350;
_global.Ennemy1AtkSpeed = 4000;
_global.Ennemy2AtkSpeed = 3500;
_global.Ennemy3AtkSpeed = 3000;
break;
case 4 :
_global.SpawnSpeed = 3500;
_global.NbEnnemy = 13;
_global.NbEnnemy1 = 0;
_global.NbEnnemy2 = 5;
_global.NbEnnemy3 = 5;
_global.NbEnnemy4 = 3;
_global.Ennemy2DMG = 15;
_global.Ennemy3DMG = 30;
_global.Ennemy4DMG = 60;
_global.Ennemy2HP = 200;
_global.Ennemy3HP = 350;
_global.Ennemy4HP = 600;
_global.Ennemy2AtkSpeed = 3500;
_global.Ennemy3AtkSpeed = 3000;
_global.Ennemy4AtkSpeed = 2000;
break;
case 5 :
_global.SpawnSpeed = 3200;
_global.NbEnnemy = 18;
_global.NbEnnemy2 = 0;
_global.NbEnnemy3 = 7;
_global.NbEnnemy4 = 9;
_global.NbEnnemy5 = 2;
_global.Ennemy3DMG = 30;
_global.Ennemy4DMG = 60;
_global.Ennemy5DMG = 120;
_global.Ennemy3HP = 350;
_global.Ennemy4HP = 600;
_global.Ennemy5HP = 1000;
_global.Ennemy3AtkSpeed = 3000;
_global.Ennemy4AtkSpeed = 2000;
_global.Ennemy5AtkSpeed = 3500;
break;
case 6 :
_global.SpawnSpeed = 3000;
_global.NbEnnemy = 25;
_global.NbEnnemy3 = 0;
_global.NbEnnemy4 = 8;
_global.NbEnnemy5 = 12;
_global.NbEnnemy6 = 5;
_global.Ennemy4DMG = 60;
_global.Ennemy5DMG = 90;
_global.Ennemy6DMG = 120;
_global.Ennemy7DMG = 10;
_global.Ennemy8DMG = 10;
_global.Ennemy4HP = 600;
_global.Ennemy5HP = 1000;
_global.Ennemy6HP = 1400;
_global.Ennemy4AtkSpeed = 2000;
_global.Ennemy5AtkSpeed = 3500;
_global.Ennemy6AtkSpeed = 2500;
break;
case 7 :
_global.SpawnSpeed = 2700;
_global.NbEnnemy = 30;
_global.NbEnnemy4 = 0;
_global.NbEnnemy5 = 16;
_global.NbEnnemy6 = 12;
_global.NbEnnemy7 = 2;
_global.Ennemy5DMG = 90;
_global.Ennemy6DMG = 120;
_global.Ennemy7DMG = 160;
_global.Ennemy5HP = 1000;
_global.Ennemy6HP = 1400;
_global.Ennemy7HP = 1800;
_global.Ennemy5AtkSpeed = 3500;
_global.Ennemy6AtkSpeed = 2500;
_global.Ennemy7AtkSpeed = 2000;
break;
case 8 :
_global.SpawnSpeed = 2500;
_global.NbEnnemy = 35;
_global.NbEnnemy5 = 10;
_global.NbEnnemy6 = 17;
_global.NbEnnemy7 = 8;
_global.Ennemy5DMG = 90;
_global.Ennemy6DMG = 120;
_global.Ennemy7DMG = 160;
_global.Ennemy5HP = 1000;
_global.Ennemy6HP = 1400;
_global.Ennemy7HP = 1800;
_global.Ennemy5AtkSpeed = 3500;
_global.Ennemy6AtkSpeed = 2500;
_global.Ennemy7AtkSpeed = 2000;
break;
case 9 :
_global.SpawnSpeed = 2300;
_global.NbEnnemy = 35;
_global.NbEnnemy6 = 15;
_global.NbEnnemy7 = 15;
_global.NbEnnemy8 = 5;
_global.Ennemy6DMG = 120;
_global.Ennemy7DMG = 160;
_global.Ennemy8DMG = 200;
_global.Ennemy6HP = 1400;
_global.Ennemy7HP = 1800;
_global.Ennemy8HP = 2500;
_global.Ennemy6AtkSpeed = 2500;
_global.Ennemy7AtkSpeed = 2000;
_global.Ennemy8AtkSpeed = 1500;
break;
case 10 :
_global.SpawnSpeed = 1900;
_global.NbEnnemy = 40;
_global.NbEnnemy6 = 5;
_global.NbEnnemy7 = 20;
_global.NbEnnemy8 = 15;
_global.Ennemy6DMG = 120;
_global.Ennemy7DMG = 160;
_global.Ennemy8DMG = 200;
_global.Ennemy6HP = 1400;
_global.Ennemy7HP = 1800;
_global.Ennemy8HP = 2500;
_global.Ennemy6AtkSpeed = 2500;
_global.Ennemy7AtkSpeed = 2000;
_global.Ennemy8AtkSpeed = 1500;
}
onEnterFrame = function () {
WarpBodies();
if (_global.AmmoInClip < 0) {
_global.AmmoInClip = 0;
}
if (_global.Ammo < 0) {
_global.Ammo = 0;
}
if ((((_global.PlayerCurrentHP / _global.PlayerMaxHP) * 100) <= 40) && (!LowLifeSound)) {
LowLifeSound = true;
LifeSound = new Sound();
LifeSound.attachSound("sd_LowLife");
LifeSound.start(0, 999);
}
if (_global.AmmoInClip == 0) {
if (Sniping) {
ZoomOut();
if (TutoSnipeStep == 2) {
TutoSnipeStep = 3;
TutoSnipe.play();
}
Sniping = false;
}
Reloading = true;
Player.gotoAndPlay("Reload");
_global.Ammo = _global.Ammo - (_global.tabClipSize[_global.UpgradeClipSize] - _global.AmmoInClip);
_global.AmmoInClip = _global.tabClipSize[_global.UpgradeClipSize];
if (_global.Ammo < 0) {
_global.AmmoInClip = _global.AmmoInClip + _global.Ammo;
_global.Ammo = 0;
}
}
if ((_global.PlayerCurrentHP <= 0) && (!Dead)) {
if (Sniping) {
Mouse.show();
stopDrag();
Conteneur.SniperView._x = -10000;
}
Dead = true;
Shine.play();
Player.gotoAndPlay("Die");
}
if ((_global.WallCurrentHP <= 0) && (!Dead)) {
if (Sniping) {
Mouse.show();
stopDrag();
Conteneur.SniperView._x = -10000;
}
Dead = true;
Shine.play();
}
nbGrenade = _global.Grenade;
TotalAmmo = _global.Ammo;
InLoader = _global.AmmoInClip;
WallCurrentHealt = _global.WallCurrentHP;
WallMaxHealt = _global.WallMaxHP;
HPBar.CurrentHp = _global.PlayerCurrentHP;
HPBar.MaxHp = _global.PlayerMaxHP;
if ((_global.NbDead == _global.NbEnnemy) && (!Dead)) {
endWave.play();
}
if (NoBullet > 19) {
NoBullet = 0;
}
if (ShakeNumber != 0) {
ShakeNumber = ShakeNumber - 1;
Conteneur._x = Conteneur._x - (random(ShakeNumber * 2) - ShakeNumber);
Conteneur._y = Conteneur._y - (random(ShakeNumber * 2) - ShakeNumber);
}
if (ShakeNumber2 != 0) {
ShakeNumber2 = ShakeNumber2 - 1;
Conteneur.SniperView._x = Conteneur.SniperView._x - (random(ShakeNumber2 * 2) - ShakeNumber2);
Conteneur.SniperView._y = Conteneur.SniperView._y - (random(ShakeNumber2 * 2) - ShakeNumber2);
}
if (_global.SpawnReady && (nbEnnemyOnMap < 10)) {
if (((Ennemy1Spawned < _global.NbEnnemy1) && (_global.SpawnReady)) && (!tabEnnemy[NoEnnemy].Dead)) {
tabEnnemy[NoEnnemy].tempsMort = 0;
tabEnnemy[NoEnnemy].TypeEnnemy = 1;
tabEnnemy[NoEnnemy].Damage = _global.Ennemy1DMG;
tabEnnemy[NoEnnemy].AtkSpeed = _global.Ennemy1AtkSpeed;
tabEnnemy[NoEnnemy].MoneyValue = 200;
tabEnnemy[NoEnnemy].HP = _global.Ennemy1HP;
_global.SpawnReady = false;
spawnTime = getTimer();
SpawnEnnemy(tabEnnemy[NoEnnemy]);
tabEnnemyOnMap.push(tabEnnemy[NoEnnemy]);
Ennemy1Spawned++;
NoEnnemy++;
nbEnnemyOnMap++;
TotalSpawned++;
}
if (((Ennemy2Spawned < _global.NbEnnemy2) && (_global.SpawnReady)) && (!tabEnnemy[NoEnnemy].Dead)) {
tabEnnemy[NoEnnemy].tempsMort = 0;
tabEnnemy[NoEnnemy].TypeEnnemy = 2;
tabEnnemy[NoEnnemy].Damage = _global.Ennemy2DMG;
tabEnnemy[NoEnnemy].AtkSpeed = _global.Ennemy2AtkSpeed;
tabEnnemy[NoEnnemy].HP = _global.Ennemy2HP;
tabEnnemy[NoEnnemy].MoneyValue = 250;
Ennemy2Spawned++;
_global.SpawnReady = false;
spawnTime = getTimer();
SpawnEnnemy(tabEnnemy[NoEnnemy]);
tabEnnemyOnMap.push(tabEnnemy[NoEnnemy]);
NoEnnemy++;
nbEnnemyOnMap++;
TotalSpawned++;
}
if (((Ennemy3Spawned < _global.NbEnnemy3) && (_global.SpawnReady)) && (!tabEnnemy[NoEnnemy].Dead)) {
tabEnnemy[NoEnnemy].tempsMort = 0;
tabEnnemy[NoEnnemy].TypeEnnemy = 3;
tabEnnemy[NoEnnemy].Damage = _global.Ennemy3DMG;
tabEnnemy[NoEnnemy].AtkSpeed = _global.Ennemy3AtkSpeed;
tabEnnemy[NoEnnemy].MoneyValue = 300;
tabEnnemy[NoEnnemy].HP = _global.Ennemy3HP;
Ennemy3Spawned++;
_global.SpawnReady = false;
spawnTime = getTimer();
SpawnEnnemy(tabEnnemy[NoEnnemy]);
tabEnnemyOnMap.push(tabEnnemy[NoEnnemy]);
NoEnnemy++;
nbEnnemyOnMap++;
TotalSpawned++;
}
if (((Ennemy4Spawned < _global.NbEnnemy4) && (_global.SpawnReady)) && (!tabEnnemy[NoEnnemy].Dead)) {
tabEnnemy[NoEnnemy].tempsMort = 0;
tabEnnemy[NoEnnemy].TypeEnnemy = 4;
tabEnnemy[NoEnnemy].Damage = _global.Ennemy4DMG;
tabEnnemy[NoEnnemy].AtkSpeed = _global.Ennemy4AtkSpeed;
tabEnnemy[NoEnnemy].MoneyValue = 400;
tabEnnemy[NoEnnemy].HP = _global.Ennemy4HP;
Ennemy4Spawned++;
TotalSpawned++;
_global.SpawnReady = false;
spawnTime = getTimer();
SpawnEnnemy(tabEnnemy[NoEnnemy]);
tabEnnemyOnMap.push(tabEnnemy[NoEnnemy]);
NoEnnemy++;
nbEnnemyOnMap++;
}
if (((Ennemy5Spawned < _global.NbEnnemy5) && (_global.SpawnReady)) && (!tabEnnemy[NoEnnemy].Dead)) {
tabEnnemy[NoEnnemy].tempsMort = 0;
tabEnnemy[NoEnnemy].TypeEnnemy = 5;
tabEnnemy[NoEnnemy].Damage = _global.Ennemy5DMG;
tabEnnemy[NoEnnemy].AtkSpeed = _global.Ennemy5AtkSpeed;
tabEnnemy[NoEnnemy].MoneyValue = 700;
tabEnnemy[NoEnnemy].BubbleHP = 300;
tabEnnemy[NoEnnemy].HP = _global.Ennemy5HP;
Ennemy5Spawned++;
_global.SpawnReady = false;
spawnTime = getTimer();
SpawnEnnemy(tabEnnemy[NoEnnemy]);
tabEnnemyOnMap.push(tabEnnemy[NoEnnemy]);
NoEnnemy++;
TotalSpawned++;
nbEnnemyOnMap++;
}
if (((Ennemy6Spawned < _global.NbEnnemy6) && (_global.SpawnReady)) && (!tabEnnemy[NoEnnemy].Dead)) {
tabEnnemy[NoEnnemy].tempsMort = 0;
tabEnnemy[NoEnnemy].TypeEnnemy = 6;
tabEnnemy[NoEnnemy].Damage = _global.Ennemy6DMG;
tabEnnemy[NoEnnemy].AtkSpeed = _global.Ennemy6AtkSpeed;
tabEnnemy[NoEnnemy].MoneyValue = 800;
tabEnnemy[NoEnnemy].BubbleHP = 500;
tabEnnemy[NoEnnemy].HP = _global.Ennemy6HP;
Ennemy6Spawned++;
_global.SpawnReady = false;
spawnTime = getTimer();
SpawnEnnemy(tabEnnemy[NoEnnemy]);
tabEnnemyOnMap.push(tabEnnemy[NoEnnemy]);
NoEnnemy++;
nbEnnemyOnMap++;
TotalSpawned++;
}
if (((Ennemy7Spawned < _global.NbEnnemy7) && (_global.SpawnReady)) && (!tabEnnemy[NoEnnemy].Dead)) {
tabEnnemy[NoEnnemy].tempsMort = 0;
tabEnnemy[NoEnnemy].TypeEnnemy = 7;
tabEnnemy[NoEnnemy].Damage = _global.Ennemy7DMG;
tabEnnemy[NoEnnemy].AtkSpeed = _global.Ennemy7AtkSpeed;
tabEnnemy[NoEnnemy].BubbleHP = 600;
tabEnnemy[NoEnnemy].MoneyValue = 900;
tabEnnemy[NoEnnemy].HP = _global.Ennemy7HP;
Ennemy7Spawned++;
_global.SpawnReady = false;
spawnTime = getTimer();
SpawnEnnemy(tabEnnemy[NoEnnemy]);
tabEnnemyOnMap.push(tabEnnemy[NoEnnemy]);
NoEnnemy++;
nbEnnemyOnMap++;
TotalSpawned++;
}
if (((Ennemy8Spawned < _global.NbEnnemy8) && (_global.SpawnReady)) && (!tabEnnemy[NoEnnemy].Dead)) {
tabEnnemy[NoEnnemy].tempsMort = 0;
tabEnnemy[NoEnnemy].TypeEnnemy = 8;
tabEnnemy[NoEnnemy].Damage = _global.Ennemy8DMG;
tabEnnemy[NoEnnemy].AtkSpeed = _global.Ennemy8AtkSpeed;
tabEnnemy[NoEnnemy].BubbleHP = 800;
tabEnnemy[NoEnnemy].MoneyValue = 1200;
tabEnnemy[NoEnnemy].HP = global.Ennemy8HP;
Ennemy8Spawned++;
_global.SpawnReady = false;
spawnTime = getTimer();
SpawnEnnemy(tabEnnemy[NoEnnemy]);
tabEnnemyOnMap.push(tabEnnemy[NoEnnemy]);
NoEnnemy++;
nbEnnemyOnMap++;
TotalSpawned++;
}
} else if (nbEnnemyOnMap < 10) {
if ((spawnTime + _global.SpawnSpeed) <= getTimer()) {
_global.SpawnReady = true;
}
} else if (nbEnnemyOnMap == 10) {
revived = false;
i = 0;
while (i < 10) {
if (tabEnnemy[i].Dead && (!revived)) {
tabEnnemy[i].Dead = false;
tabEnnemy[i]._x = -2000;
tabEnnemy[i].ExplosivesOut = false;
tabEnnemy[i].MeleeOut = false;
tabEnnemy[i].GunOut = false;
tabEnnemy[i].ReadyToFire = false;
tabEnnemy[i].ReadyToHit = false;
tabEnnemy[i].Damage = 0;
tabEnnemy[i].AtkSpeed = 999999 /* 0x0F423F */;
NoEnnemy = i;
revived = true;
nbEnnemyOnMap--;
}
i++;
}
}
i = 0;
while (i < tabEnnemyOnMap.length) {
if (tabEnnemyOnMap.length > 1) {
j = 0;
while (j < tabEnnemyOnMap.length) {
if (tabEnnemyOnMap[i].hitTest(tabEnnemyOnMap[j]) && (tabEnnemyOnMap[i]._y < tabEnnemyOnMap[j]._y)) {
if (tabEnnemyOnMap[i].getDepth() > tabEnnemyOnMap[j].getDepth()) {
tabEnnemyOnMap[i].swapDepths(tabEnnemyOnMap[j]);
}
}
j++;
}
}
i++;
}
i = 0;
while (i < _global.NbEnnemy) {
if ((tabEnnemy[i].Path != 0) && (tabEnnemy[i].Strategie != "Camper")) {
if (!tabEnnemy[i].Dead) {
if (tabEnnemy[i]._y < -200) {
if (tabEnnemy[i].Walk) {
AvancerEnnemi(tabEnnemy[i]);
}
}
if (tabEnnemy[i].Strategie == "Destroy") {
if (tabEnnemy[i]._y < 0) {
if (tabEnnemy[i].Walk) {
AvancerEnnemi(tabEnnemy[i]);
}
} else if (tabEnnemy[i].ReadyToHit) {
tabEnnemy[i].ReadyToHit = false;
tabEnnemy[i].HitTimer = getTimer();
tabEnnemy[i].Mang.gotoAndPlay("Melee");
} else if ((tabEnnemy[i].HitTimer + tabEnnemy[i].AtkSpeed) <= getTimer()) {
tabEnnemy[i].ReadyToHit = true;
}
}
if (tabEnnemy[i].Strategie == "Kill") {
if (((tabEnnemy[i]._y >= -200) && (!tabEnnemy[i].GunOut)) && (tabEnnemy[i].Strategie == "Kill")) {
tabEnnemy[i].FireTimer = getTimer();
tabEnnemy[i].Mang.gotoAndPlay("EquipGun");
}
if (tabEnnemy[i].GunOut) {
if (tabEnnemy[i].ReadyToFire) {
tabEnnemy[i].ReadyToFire = false;
tabEnnemy[i].FireTimer = getTimer();
tabEnnemy[i].Mang.gotoAndPlay("FireStanding");
if (((!Hiding) && (!Dead)) && (!Reloading)) {
if (!_global.Invincible) {
_global.PlayerCurrentHP = _global.PlayerCurrentHP - tabEnnemy[i].Damage;
}
BloodyScreen.play();
ShakeNumber = 10;
}
} else if ((tabEnnemy[i].FireTimer + tabEnnemy[i].AtkSpeed) <= getTimer()) {
tabEnnemy[i].ReadyToFire = true;
}
}
}
if (tabEnnemy[i].Strategie == "Explosion") {
if (tabEnnemy[i]._y < -130) {
if (tabEnnemy[i].Walk) {
AvancerEnnemi(tabEnnemy[i]);
}
}
if ((tabEnnemy[i]._y >= -130) && (!tabEnnemy[i].ExplosivesOut)) {
tabEnnemy[i].Mang.gotoAndPlay("ThrowGrenade");
}
}
}
} else if ((tabEnnemy[i].Path == 0) && (tabEnnemy[i].Strategie != "Camper")) {
if (!tabEnnemy[i].Dead) {
if (tabEnnemy[i]._y < -255) {
if (tabEnnemy[i].Walk) {
AvancerEnnemi(tabEnnemy[i]);
}
} else {
if (!tabEnnemy[i].GunOut) {
tabEnnemy[i].FireTimer = getTimer();
tabEnnemy[i].Mang.gotoAndPlay("EquipGun");
}
if (tabEnnemy[i].GunOut) {
if (tabEnnemy[i].ReadyToFire) {
tabEnnemy[i].ReadyToFire = false;
tabEnnemy[i].FireTimer = getTimer();
tabEnnemy[i].Mang.gotoAndPlay("FireCrouch");
if (((!Hiding) && (!Dead)) && (!Reloading)) {
if (!_global.Invincible) {
_global.PlayerCurrentHP = _global.PlayerCurrentHP - tabEnnemy[i].Damage;
}
BloodyScreen.play();
ShakeNumber = 10;
}
} else if ((tabEnnemy[i].FireTimer + tabEnnemy[i].AtkSpeed) <= getTimer()) {
tabEnnemy[i].ReadyToFire = true;
}
}
}
} else if (tabEnnemy[i].getDepth < E_Wall2.getDepth) {
tabEnnemy[i].swapDepths(E_Wall2);
}
} else if ((tabEnnemy[i].Strategie == "Camper") && (!tabEnnemy[i].Dead)) {
if (!tabEnnemy[i].GunOut) {
tabEnnemy[i].FireTimer = getTimer();
tabEnnemy[i].Mang.gotoAndPlay("EquipGun");
}
if (tabEnnemy[i].GunOut) {
if (tabEnnemy[i].ReadyToFire) {
tabEnnemy[i].ReadyToFire = false;
tabEnnemy[i].FireTimer = getTimer();
tabEnnemy[i].Mang.gotoAndPlay("FireCrouch");
if (((!Hiding) && (!Dead)) && (!Reloading)) {
ShakeNumber = 10;
if (!_global.Invincible) {
_global.PlayerCurrentHP = _global.PlayerCurrentHP - tabEnnemy[i].Damage;
}
BloodyScreen.play();
}
} else if ((tabEnnemy[i].FireTimer + tabEnnemy[i].AtkSpeed) <= getTimer()) {
tabEnnemy[i].ReadyToFire = true;
}
}
}
i++;
}
if (((isMouseDown && (!Dead)) && (!Reloading)) && (!Nading)) {
if (Hiding && (!Flippin)) {
Player.gotoAndPlay("Flip");
}
FireBullet();
}
if (((Key.isDown(69) && (!Dead)) && (!Reloading)) && (!Nading)) {
ThrowGNade();
}
if ((((((Key.isDown(87) && (!Dead)) && (!Sniping)) && (!Reloading)) && (!Rolling)) && (!Nading)) && (!Flippin)) {
if ((!Hiding) && (ScopeUnlocked)) {
if (TutoSnipeStep == 1) {
TutoSnipeStep = 2;
TutoSnipe.play();
}
ZoomIn();
} else if (Hiding && (!Flippin)) {
Player.gotoAndPlay("Flip");
}
}
if ((((((Key.isDown(83) && (!Rolling)) && (!Dead)) && (!Flippin)) && (!Reloading)) && (!Nading)) && (!Hiding)) {
if (Sniping) {
ZoomOut();
if (TutoSnipeStep == 2) {
TutoSnipeStep = 3;
TutoSnipe.play();
}
}
Player.gotoAndPlay("FlipBack");
}
if ((((Key.isDown(82) && (!Dead)) && (!Flippin)) && (!Rolling)) && (!Nading)) {
if (Sniping) {
ZoomOut();
if (TutoSnipeStep == 2) {
TutoSnipeStep = 3;
TutoSnipe.play();
}
Sniping = false;
}
Reloading = true;
Player.gotoAndPlay("Reload");
_global.Ammo = _global.Ammo - (_global.tabClipSize[_global.UpgradeClipSize] - _global.AmmoInClip);
_global.AmmoInClip = _global.tabClipSize[_global.UpgradeClipSize];
if (_global.Ammo < 0) {
_global.AmmoInClip = _global.AmmoInClip + _global.Ammo;
_global.Ammo = 0;
}
}
if (Key.isDown(68) && (CoteScreen == "LEFT")) {
CoteScreen = "GORIGHT";
}
if (Key.isDown(65) && (CoteScreen == "RIGHT")) {
CoteScreen = "GOLEFT";
}
if (!Sniping) {
if ((CoteScreen == "LEFT") && (!Dead)) {
Conteneur.Char._xscale = -140;
Conteneur_wanted_x = (-Conteneur.Char._x) + 100;
} else if ((CoteScreen == "RIGHT") && (!Dead)) {
Conteneur.Char._xscale = 140;
Conteneur_wanted_x = (-Conteneur.Char._x) + 650;
} else if (((CoteScreen == "GORIGHT") && (!Dead)) && (!Nading)) {
Conteneur.Char._xscale = -140;
if (Conteneur.Char._x < 1350) {
if (!Rolling) {
Hiding = false;
Rolling = true;
Conteneur.Char.Mang.gotoAndPlay("Roll");
}
if ((Conteneur._xscale > 80) && (ZoomingOut)) {
Conteneur._xscale = Conteneur._xscale - 3;
Conteneur._yscale = Conteneur._yscale - 3;
} else {
ZoomingOut = false;
if (Conteneur._xscale < 100) {
Conteneur._xscale = Conteneur._xscale + 2;
Conteneur._yscale = Conteneur._yscale + 2;
}
}
Conteneur.Char._x = Conteneur.Char._x + currentSpeed;
if (currentSpeed < 80) {
currentSpeed = currentSpeed * 1.1;
}
if (distanceTransition < 600) {
distanceTransition = distanceTransition + 15;
}
Conteneur_wanted_x = (-Conteneur.Char._x) + distanceTransition;
} else {
ZoomingOut = true;
Conteneur._xscale = 100;
Conteneur._yscale = 100;
CoteScreen = "RIGHT";
currentSpeed = 50;
distanceTransition = -800;
}
} else if (((CoteScreen == "GOLEFT") && (!Dead)) && (!Nading)) {
Conteneur.Char._xscale = 140;
if (Conteneur.Char._x > 290) {
if (!Rolling) {
Hiding = false;
Rolling = true;
Conteneur.Char.Mang.gotoAndPlay("Roll");
}
if ((Conteneur._xscale > 80) && (ZoomingOut)) {
Conteneur._xscale = Conteneur._xscale - 3;
Conteneur._yscale = Conteneur._yscale - 3;
} else {
ZoomingOut = false;
if (Conteneur._xscale < 100) {
Conteneur._xscale = Conteneur._xscale + 2;
Conteneur._yscale = Conteneur._yscale + 2;
}
}
Conteneur.Char._x = Conteneur.Char._x - currentSpeed;
if (currentSpeed < 80) {
currentSpeed = currentSpeed * 1.1;
}
if (distanceTransition < 800) {
distanceTransition = distanceTransition + 20;
}
Conteneur_wanted_x = (-Conteneur.Char._x) - distanceTransition;
} else {
ZoomingOut = true;
Conteneur._xscale = 100;
Conteneur._yscale = 100;
CoteScreen = "LEFT";
currentSpeed = 50;
distanceTransition = 0;
}
}
Conteneur_wanted_y = Conteneur.Char._y + 440;
} else if (CoteScreen == "LEFT") {
Conteneur_wanted_y = Conteneur.Char._y + 1000;
Conteneur_wanted_x = Conteneur.Char._x - 2000;
} else if (CoteScreen == "RIGHT") {
Conteneur_wanted_y = Conteneur.Char._y + 1000;
Conteneur_wanted_x = Conteneur.Char._x - 3200;
}
Conteneur_speed_x = (Conteneur_wanted_x - Conteneur._x) * cam_speed;
Conteneur_speed_y = (Conteneur_wanted_y - Conteneur._y) * cam_speed;
if (!Sniping) {
if ((Conteneur._x < (Conteneur_wanted_x - 0.2)) || (Conteneur._x > (Conteneur_wanted_x + 0.2))) {
Conteneur._x = Conteneur._x + Conteneur_speed_x;
}
if ((Conteneur._y < (Conteneur_wanted_y - 0.2)) || (Conteneur._y > (Conteneur_wanted_y + 0.2))) {
Conteneur._y = Conteneur._y + Conteneur_speed_y;
}
} else {
Conteneur._x = Conteneur_wanted_x;
Conteneur._y = Conteneur_wanted_y;
}
};
Instance of Symbol 344 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 FireBullet() {
if (_global.AmmoInClip > 0) {
if (_global.BulletReady && (isMouseDown)) {
if (!Rolling) {
PistolSound = new Sound();
PistolSound.attachSound("sd_Sniper");
PistolSound.start();
if (_global.DamageUpgrade < 2) {
Player.gotoAndPlay("Fire3");
} else {
Player.gotoAndPlay("Fire4");
}
}
_global.BulletReady = false;
currentTime = getTimer();
Rejet = Player.attachMovie("Douille", "Douille" + DouilleCount, 1000 + DouilleCount);
Aim1.Aim.gotoAndPlay(2);
DouilleCount++;
Rejet._x = Player.b_6._x;
Rejet._y = Player.b_6._y;
CreateImpact();
} else if ((currentTime + _global.tabFireRate[_global.FireRateUpgrade]) <= getTimer()) {
_global.BulletReady = true;
}
}
}
function CreateImpact() {
ShakeNumber = 7;
tabImpact[NoBullet]._x = Conteneur._xmouse + (random(_global.tabAccuracy[_global.UpgradeAccuracy]) - (_global.tabAccuracy[_global.UpgradeAccuracy] / 2));
tabImpact[NoBullet]._y = Conteneur._ymouse + (random(_global.tabAccuracy[_global.UpgradeAccuracy]) - (_global.tabAccuracy[_global.UpgradeAccuracy] / 2));
tabImpact[NoBullet].play();
tabImpact[NoBullet]._rotation = random(150) - 60;
tabImpact[NoBullet]._xscale = random(50) + 50;
tabImpact[NoBullet]._yscale = random(50) + 50;
NoBullet++;
}
function ThrowGNade() {
if ((!Nading) && (!Rolling)) {
if (_global.Grenade > 0) {
Nading = true;
Player.gotoAndPlay("Grenade");
if (EtapeTuto == 7) {
EtapeTuto = 8;
Tuto.gotoAndStop(11);
}
}
}
}
stop();
_root._quality = "medium";
EtapeTuto = 1;
TutoMuz = new Sound();
TutoMuz.attachSound("Tuto");
TutoMuz.stop();
TutoMuz.start(0, 999);
Explanations = true;
EnableGrenade = false;
ReloadEnable = false;
MoveEnabled = false;
_global.GrenadeCount = 0;
_global.NbKills = 0;
_global.NbHS = 0;
_global.DamageTaken = 0;
_global.WallDmgTaken = 0;
_global.Rating = 0;
Player = Conteneur.Char.Mang;
_global.StartingLife = _global.PlayerCurrentHP;
_global.WallStartingLife = _global.WallCurrentHP;
Hiding = true;
Sniping = false;
distanceTransition = 0;
DouilleCount = 0;
Nading = false;
Flippin = false;
Reloading = false;
cam_speed = 0.2;
currentSpeed = 50;
CoteScreen = "LEFT";
Rolling = false;
tabStrat = ["Destroy", "Kill", "Explosion", "Camper", "Destroy", "Destroy"];
tabEnnemy = [Conteneur.E_1, Conteneur.E_2, Conteneur.E_3, Conteneur.E_4, Conteneur.E_5, Conteneur.E_6, Conteneur.E_7, Conteneur.E_8, Conteneur.E_9, Conteneur.E_10, Conteneur.E_11, Conteneur.E_12, Conteneur.E_13, Conteneur.E_14, Conteneur.E_15];
tabEnnemyOnMap = [];
SpawnX = 855;
SpawnY = -290;
tabPathSpeed = [-2.5, -0.9, -0.45, 0, 0.45, 0.9, 1.3];
tabImpact = [Conteneur.Impacte_1, Conteneur.Impacte_2, Conteneur.Impacte_3, Conteneur.Impacte_4, Conteneur.Impacte_5, Conteneur.Impacte_6, Conteneur.Impacte_7, Conteneur.Impacte_8, Conteneur.Impacte_9, Conteneur.Impacte_10, Conteneur.Impacte_11, Conteneur.Impacte_12, Conteneur.Impacte_13, Conteneur.Impacte_14, Conteneur.Impacte_15, Conteneur.Impacte_16, Conteneur.Impacte_17, Conteneur.Impacte_18, Conteneur.Impacte_19, Conteneur.Impacte_20];
NoBullet = 0;
NoEnnemy = 0;
nbEnnemyOnMap = 0;
Dead = false;
ZoomingOut = true;
_global.BulletReady = true;
_global.SpawnReady = false;
ShakeNumber = 0;
_global.NbDead = 0;
var isMouseDown = false;
tabEnnemyOnMap.push(Conteneur.E_Wall);
Ennemy1Spawned = 0;
Ennemy2Spawned = 0;
Ennemy3Spawned = 0;
Ennemy4Spawned = 0;
Ennemy5Spawned = 0;
Ennemy6Spawned = 0;
Ennemy7Spawned = 0;
Ennemy8Spawned = 0;
_global.Ammo = _global.Ammo - (_global.tabClipSize[_global.UpgradeClipSize] - _global.AmmoInClip);
_global.AmmoInClip = _global.tabClipSize[_global.UpgradeClipSize];
onEnterFrame = function () {
nbGrenade = _global.Grenade;
TotalAmmo = _global.Ammo;
InLoader = _global.AmmoInClip;
WallCurrentHealt = _global.WallCurrentHP;
WallMaxHealt = _global.WallMaxHP;
HPBar.CurrentHp = _global.PlayerCurrentHP;
HPBar.MaxHp = _global.PlayerMaxHP;
if (NoBullet > 19) {
NoBullet = 0;
}
if (ShakeNumber != 0) {
ShakeNumber = ShakeNumber - 1;
Conteneur._x = Conteneur._x - (random(ShakeNumber * 2) - ShakeNumber);
Conteneur._y = Conteneur._y - (random(ShakeNumber * 2) - ShakeNumber);
}
if ((((isMouseDown && (!Dead)) && (!Reloading)) && (!Nading)) && (EtapeTuto > 2)) {
if (Hiding && (!Flippin)) {
Player.gotoAndPlay("Flip");
if (EtapeTuto == 3) {
EtapeTuto = 4;
Tuto.play();
}
}
if (EtapeTuto > 3) {
FireBullet();
}
}
if ((((((Key.isDown(82) && (!Dead)) && (!Reloading)) && (!Flippin)) && (!Rolling)) && (!Nading)) && (EtapeTuto > 4)) {
Reloading = true;
Player.gotoAndPlay("Reload");
_global.Ammo = _global.Ammo - (_global.tabClipSize[_global.UpgradeClipSize] - _global.AmmoInClip);
_global.AmmoInClip = _global.tabClipSize[_global.UpgradeClipSize];
}
if ((((Key.isDown(69) && (!Dead)) && (!Reloading)) && (!Nading)) && (EtapeTuto > 6)) {
ThrowGNade();
}
if ((((((Key.isDown(83) && (!Rolling)) && (!Dead)) && (!Flippin)) && (!Reloading)) && (!Nading)) && (EtapeTuto > 1)) {
if (!Hiding) {
Player.gotoAndPlay("FlipBack");
if (EtapeTuto == 2) {
EtapeTuto = 3;
Tuto.play();
}
}
}
if ((((((Key.isDown(87) && (!Dead)) && (!Sniping)) && (!Reloading)) && (!Rolling)) && (!Nading)) && (!Flippin)) {
if ((!Hiding) && (ScopeUnlocked)) {
ZoomIn();
} else if (Hiding && (!Flippin)) {
Player.gotoAndPlay("Flip");
if (EtapeTuto == 1) {
EtapeTuto = 2;
Tuto.play();
}
}
}
if ((Key.isDown(68) && (CoteScreen == "LEFT")) && (EtapeTuto > 7)) {
CoteScreen = "GORIGHT";
if (EtapeTuto == 8) {
EtapeTuto = 9;
Tuto.play();
}
}
if ((Key.isDown(65) && (CoteScreen == "RIGHT")) && (EtapeTuto > 8)) {
CoteScreen = "GOLEFT";
if (EtapeTuto == 9) {
EtapeTuto = 10;
Tuto.play();
}
}
if (!Sniping) {
if ((CoteScreen == "LEFT") && (!Dead)) {
Conteneur.Char._xscale = -140;
Conteneur_wanted_x = (-Conteneur.Char._x) + 100;
} else if ((CoteScreen == "RIGHT") && (!Dead)) {
Conteneur.Char._xscale = 140;
Conteneur_wanted_x = (-Conteneur.Char._x) + 650;
} else if (((CoteScreen == "GORIGHT") && (!Dead)) && (!Nading)) {
if (Conteneur.Char._x < 1350) {
if (!Rolling) {
Hiding = false;
Rolling = true;
Conteneur.Char.Mang.gotoAndPlay("Roll");
}
if ((Conteneur._xscale > 80) && (ZoomingOut)) {
Conteneur._xscale = Conteneur._xscale - 3;
Conteneur._yscale = Conteneur._yscale - 3;
} else {
ZoomingOut = false;
if (Conteneur._xscale < 100) {
Conteneur._xscale = Conteneur._xscale + 2;
Conteneur._yscale = Conteneur._yscale + 2;
}
}
Conteneur.Char._x = Conteneur.Char._x + currentSpeed;
if (currentSpeed < 80) {
currentSpeed = currentSpeed * 1.1;
}
if (distanceTransition < 600) {
distanceTransition = distanceTransition + 15;
}
Conteneur_wanted_x = (-Conteneur.Char._x) + distanceTransition;
} else {
ZoomingOut = true;
Conteneur._xscale = 100;
Conteneur._yscale = 100;
Rolling = false;
CoteScreen = "RIGHT";
currentSpeed = 50;
distanceTransition = -800;
}
} else if (((CoteScreen == "GOLEFT") && (!Dead)) && (!Nading)) {
if (Conteneur.Char._x > 290) {
if (!Rolling) {
Hiding = false;
Rolling = true;
Conteneur.Char.Mang.gotoAndPlay("Roll");
}
if ((Conteneur._xscale > 80) && (ZoomingOut)) {
Conteneur._xscale = Conteneur._xscale - 3;
Conteneur._yscale = Conteneur._yscale - 3;
} else {
ZoomingOut = false;
if (Conteneur._xscale < 100) {
Conteneur._xscale = Conteneur._xscale + 2;
Conteneur._yscale = Conteneur._yscale + 2;
}
}
Conteneur.Char._x = Conteneur.Char._x - currentSpeed;
if (currentSpeed < 80) {
currentSpeed = currentSpeed * 1.1;
}
if (distanceTransition < 800) {
distanceTransition = distanceTransition + 20;
}
Conteneur_wanted_x = (-Conteneur.Char._x) - distanceTransition;
} else {
ZoomingOut = true;
Conteneur._xscale = 100;
Conteneur._yscale = 100;
CoteScreen = "LEFT";
currentSpeed = 50;
distanceTransition = 0;
Rolling = false;
}
}
Conteneur_wanted_y = Conteneur.Char._y + 440;
} else if (CoteScreen == "LEFT") {
Conteneur_wanted_y = Conteneur.Char._y + 1000;
Conteneur_wanted_x = Conteneur.Char._x - 2000;
} else if (CoteScreen == "RIGHT") {
Conteneur_wanted_y = Conteneur.Char._y + 1000;
Conteneur_wanted_x = Conteneur.Char._x - 3200;
}
Conteneur_speed_x = (Conteneur_wanted_x - Conteneur._x) * cam_speed;
Conteneur_speed_y = (Conteneur_wanted_y - Conteneur._y) * cam_speed;
if (!Sniping) {
if ((Conteneur._x < (Conteneur_wanted_x - 0.2)) || (Conteneur._x > (Conteneur_wanted_x + 0.2))) {
Conteneur._x = Conteneur._x + Conteneur_speed_x;
}
if ((Conteneur._y < (Conteneur_wanted_y - 0.2)) || (Conteneur._y > (Conteneur_wanted_y + 0.2))) {
Conteneur._y = Conteneur._y + Conteneur_speed_y;
}
} else {
Conteneur._x = Conteneur_wanted_x;
Conteneur._y = Conteneur_wanted_y;
}
if ((EtapeTuto == 4) && (_global.NbDead == 1)) {
EtapeTuto = 5;
_global.AmmoInClip = 0;
Tuto.play();
}
if ((EtapeTuto == 5) && (_global.NbDead == 2)) {
trace(_global.NbDead);
EtapeTuto = 6;
Tuto.play();
}
if (EtapeTuto == 6) {
EtapeTuto = 7;
tabEnnemy[0].HP = 100;
tabEnnemy[0].Dead = false;
tabEnnemy[0].Mang.gotoAndStop(1);
tabEnnemy[1].HP = 100;
tabEnnemy[1].Dead = false;
tabEnnemy[1].Mang.gotoAndStop(1);
_global.Grenade = 30;
}
if ((EtapeTuto == 9) && (CoteScreen == "LEFT")) {
EtapeTuto = 10;
Tuto.play();
}
};
Instance of Symbol 344 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 37 MovieClip [GrenadePlayer] Frame 18
PistolSound = new Sound();
PistolSound.attachSound("sd_NadeImpact");
PistolSound.start();
Symbol 37 MovieClip [GrenadePlayer] Frame 43
PistolSound = new Sound();
PistolSound.attachSound("sd_Grenade");
PistolSound.start();
_root.ShakeNumber = _root.ShakeNumber + 10;
tabEnnemy = [_root.Conteneur.E_1, _root.Conteneur.E_2, _root.Conteneur.E_3, _root.Conteneur.E_4, _root.Conteneur.E_5, _root.Conteneur.E_6, _root.Conteneur.E_7, _root.Conteneur.E_8, _root.Conteneur.E_9, _root.Conteneur.E_10, _root.Conteneur.E_11, _root.Conteneur.E_12, _root.Conteneur.E_13, _root.Conteneur.E_14, _root.Conteneur.E_15];
i = 0;
while (i < tabEnnemy.length) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i], 120) && (!tabEnnemy[i].Dead)) {
tabEnnemy[i].HP = tabEnnemy[i].HP - 400;
if (tabEnnemy[i].HP <= 0) {
_global.NbDead++;
_global.NbKills++;
tabEnnemy[i].Mang.gotoAndPlay("DeathGNade");
tabEnnemy[i].Dead = true;
tabEnnemy[i].Walk = false;
_global.Money = _global.Money + tabEnnemy[i].MoneyValue;
}
if ((tabEnnemy[i].HP <= 0) && (!tabEnnemy[i].Dead)) {
trace("wtf you not dead?");
}
}
i++;
}
Symbol 37 MovieClip [GrenadePlayer] Frame 49
this.removeMovieClip();
Symbol 43 MovieClip [Grenade] Frame 19
if (!_global.Invincible) {
_global.WallCurrentHP = _global.WallCurrentHP - (Damage * 3);
}
_root.ShakeNumber = _root.ShakeNumber + 20;
PistolSound = new Sound();
PistolSound.attachSound("sd_Grenade");
PistolSound.start();
Symbol 43 MovieClip [Grenade] Frame 25
this.removeMovieClip();
Symbol 45 MovieClip Frame 1
stop();
Symbol 59 MovieClip [Douille] Frame 1
speedy = 10;
speedx = -(random(10) + 30);
stop();
onEnterFrame = function () {
_x = (_x + speedx);
_y = (_y + speedy);
speedx = speedx * 0.9;
if (speedy < -0.5) {
speedy = speedy * 0.5;
}
if ((speedy >= -0.5) && (speedy <= 0.5)) {
speedy = 1;
}
_rotation = (_rotation + (random(5) - 12));
if (speedy >= 1) {
speedy = speedy * 1.15;
if (_y >= 50) {
this.removeMovieClip();
}
}
};
Symbol 64 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 7
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
stop();
going = random(3);
if (going == 1) {
gotoAndPlay (7);
} else if (going == 2) {
gotoAndPlay (13);
} else {
play();
}
Symbol 88 MovieClip Frame 6
stop();
Symbol 88 MovieClip Frame 12
stop();
Symbol 88 MovieClip Frame 18
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
stop();
Symbol 89 MovieClip Frame 3
stop();
Symbol 90 MovieClip [PrimaryBulet] Frame 1
stop();
Symbol 90 MovieClip [PrimaryBulet] Frame 3
AmmoBloked = false;
tabEnnemy = [_root.Conteneur.E_1, _root.Conteneur.E_2, _root.Conteneur.E_3, _root.Conteneur.E_4, _root.Conteneur.E_5, _root.Conteneur.E_6, _root.Conteneur.E_7, _root.Conteneur.E_8, _root.Conteneur.E_9, _root.Conteneur.E_10, _root.Conteneur.E_11, _root.Conteneur.E_12, _root.Conteneur.E_13, _root.Conteneur.E_14, _root.Conteneur.E_15];
tabObstacle = [_root.Conteneur.E_Wall, _root.Conteneur.E_Wall2, _root.Conteneur.E_Wall3];
i = 0;
while (i < tabEnnemy.length) {
j = 0;
while (j < tabObstacle.length) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabObstacle[j], 120)) {
if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i], 120) && (tabObstacle[j].getDepth() > tabEnnemy[i].getDepth())) {
AmmoBloked = true;
Hit.gotoAndPlay(2);
}
}
if ((com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i], 120) && (!tabEnnemy[i].Dead)) && (!AmmoBloked)) {
if (Hit.hitTest(tabEnnemy[i].Mang.bubble) && (tabEnnemy[i].BubbleHP > 0)) {
AmmoBloked = true;
tabEnnemy[i].BubbleHP = tabEnnemy[i].BubbleHP - _global.tabPlayerDMG[_global.DamageUpgrade];
tabEnnemy[i].Mang.bubble.gotoAndPlay("Damage");
if (tabEnnemy[i].BubbleHP <= 0) {
tabEnnemy[i].Mang.bubble.gotoAndPlay("Breaking");
}
} else if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i].Mang.b_1, 120)) {
Hit.gotoAndStop(3);
AmmoBloked = true;
orly = random(2);
if (orly == 1) {
tabEnnemy[i].HP = tabEnnemy[i].HP - (_global.tabPlayerDMG[_global.DamageUpgrade] * 2);
if (tabEnnemy[i].HP <= 0) {
_global.NbHS++;
_global.NbDead++;
_global.NbKills++;
HeadShot.play();
tabEnnemy[i].Mang.gotoAndPlay("DieHeadshot");
tabEnnemy[i].Dead = true;
tabEnnemy[i].Walk = false;
_global.Money = _global.Money + (tabEnnemy[i].MoneyValue * 1.5);
_root.MoneyBag.play();
}
} else {
tabEnnemy[i].HP = tabEnnemy[i].HP - _global.tabPlayerDMG[_global.DamageUpgrade];
if (tabEnnemy[i].HP <= 0) {
_global.NbDead++;
_global.NbKills++;
tabEnnemy[i].Mang.gotoAndPlay("Death");
tabEnnemy[i].Dead = true;
tabEnnemy[i].Walk = false;
_global.Money = _global.Money + tabEnnemy[i].MoneyValue;
_root.MoneyBag.play();
}
}
} else if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i].Mang.b_2, 120)) {
Hit.gotoAndStop(3);
AmmoBloked = true;
tabEnnemy[i].HP = tabEnnemy[i].HP - _global.tabPlayerDMG[_global.DamageUpgrade];
if (tabEnnemy[i].HP <= 0) {
_global.NbDead++;
_global.NbKills++;
tabEnnemy[i].Mang.gotoAndPlay("Death");
tabEnnemy[i].Dead = true;
tabEnnemy[i].Walk = false;
_global.Money = _global.Money + tabEnnemy[i].MoneyValue;
_root.MoneyBag.play();
}
} else if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i].Mang.b_3, 120)) {
Hit.gotoAndStop(3);
AmmoBloked = true;
tabEnnemy[i].HP = tabEnnemy[i].HP - _global.tabPlayerDMG[_global.DamageUpgrade];
if (tabEnnemy[i].HP <= 0) {
_global.NbDead++;
_global.NbKills++;
tabEnnemy[i].Mang.gotoAndPlay("Death");
tabEnnemy[i].Dead = true;
tabEnnemy[i].Walk = false;
_global.Money = _global.Money + tabEnnemy[i].MoneyValue;
_root.MoneyBag.play();
}
} else if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i].Mang.b_4, 120)) {
Hit.gotoAndStop(3);
AmmoBloked = true;
tabEnnemy[i].HP = tabEnnemy[i].HP - _global.tabPlayerDMG[_global.DamageUpgrade];
if (tabEnnemy[i].HP <= 0) {
_global.NbDead++;
_global.NbKills++;
tabEnnemy[i].Mang.gotoAndPlay("Death");
tabEnnemy[i].Dead = true;
tabEnnemy[i].Walk = false;
_global.Money = _global.Money + tabEnnemy[i].MoneyValue;
_root.MoneyBag.play();
}
} else if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i].Mang.b_5, 120)) {
Hit.gotoAndStop(3);
AmmoBloked = true;
tabEnnemy[i].HP = tabEnnemy[i].HP - (_global.tabPlayerDMG[_global.DamageUpgrade] * 0.5);
if (tabEnnemy[i].HP <= 0) {
_global.NbDead++;
_global.NbKills++;
tabEnnemy[i].Mang.gotoAndPlay("Death2");
tabEnnemy[i].Dead = true;
tabEnnemy[i].Walk = false;
_global.Money = _global.Money + tabEnnemy[i].MoneyValue;
_root.MoneyBag.play();
}
} else if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i].Mang.b_6, 120)) {
Hit.gotoAndStop(3);
AmmoBloked = true;
tabEnnemy[i].HP = tabEnnemy[i].HP - (_global.tabPlayerDMG[_global.DamageUpgrade] * 0.7);
if (tabEnnemy[i].HP <= 0) {
_global.NbDead++;
_global.NbKills++;
tabEnnemy[i].Mang.gotoAndPlay("Death2");
tabEnnemy[i].Dead = true;
tabEnnemy[i].Walk = false;
_global.Money = _global.Money + tabEnnemy[i].MoneyValue;
_root.MoneyBag.play();
}
} else if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i].Mang.b_7, 120)) {
Hit.gotoAndStop(3);
AmmoBloked = true;
tabEnnemy[i].HP = tabEnnemy[i].HP - (_global.tabPlayerDMG[_global.DamageUpgrade] * 0.5);
if (tabEnnemy[i].HP <= 0) {
_global.NbDead++;
_global.NbKills++;
tabEnnemy[i].Mang.gotoAndPlay("Death2");
tabEnnemy[i].Dead = true;
tabEnnemy[i].Walk = false;
_global.Money = _global.Money + tabEnnemy[i].MoneyValue;
_root.MoneyBag.play();
}
} else if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i].Mang.b_8, 120)) {
Hit.gotoAndStop(3);
AmmoBloked = true;
tabEnnemy[i].HP = tabEnnemy[i].HP - (_global.tabPlayerDMG[_global.DamageUpgrade] * 0.7);
if (tabEnnemy[i].HP <= 0) {
_global.NbDead++;
_global.NbKills++;
tabEnnemy[i].Mang.gotoAndPlay("Death2");
tabEnnemy[i].Dead = true;
tabEnnemy[i].Walk = false;
_global.Money = _global.Money + tabEnnemy[i].MoneyValue;
_root.MoneyBag.play();
}
} else if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i].Mang.b_9, 120)) {
Hit.gotoAndStop(3);
AmmoBloked = true;
tabEnnemy[i].HP = tabEnnemy[i].HP - (_global.tabPlayerDMG[_global.DamageUpgrade] * 0.5);
if (tabEnnemy[i].HP <= 0) {
_global.NbDead++;
_global.NbKills++;
tabEnnemy[i].Mang.gotoAndPlay("Death2");
tabEnnemy[i].Dead = true;
tabEnnemy[i].Walk = false;
_global.Money = _global.Money + tabEnnemy[i].MoneyValue;
_root.MoneyBag.play();
}
} else if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i].Mang.b_10, 120)) {
Hit.gotoAndStop(3);
AmmoBloked = true;
tabEnnemy[i].HP = tabEnnemy[i].HP - _global.tabPlayerDMG[_global.DamageUpgrade];
if (tabEnnemy[i].HP <= 0) {
_global.NbDead++;
_global.NbKills++;
tabEnnemy[i].Mang.gotoAndPlay("Death");
tabEnnemy[i].Dead = true;
tabEnnemy[i].Walk = false;
_global.Money = _global.Money + tabEnnemy[i].MoneyValue;
_root.MoneyBag.play();
}
} else if (com.gskinner.sprites.CollisionDetection.checkForCollision(Hit, tabEnnemy[i].Mang.b_11, 120)) {
Hit.gotoAndStop(3);
AmmoBloked = true;
tabEnnemy[i].HP = tabEnnemy[i].HP - (_global.tabPlayerDMG[_global.DamageUpgrade] * 0.5);
}
if ((tabEnnemy[i].HP <= 0) && (!tabEnnemy[i].Dead)) {
trace("wtf you not dead?");
}
}
j++;
}
i++;
}
Symbol 98 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 98 MovieClip Frame 2
gotoAndPlay (1);
Symbol 98 MovieClip Frame 3
_root.play();
Symbol 104 Button
on (release) {
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
Splat.play();
Symbol 105 MovieClip Frame 10
stop();
Symbol 105 MovieClip Frame 11
Splat.gotoAndStop(9);
Symbol 105 MovieClip Frame 12
Splat.gotoAndStop(8);
Symbol 105 MovieClip Frame 13
Splat.gotoAndStop(7);
Symbol 105 MovieClip Frame 14
Splat.gotoAndStop(6);
Symbol 105 MovieClip Frame 15
Splat.gotoAndStop(5);
Symbol 105 MovieClip Frame 16
Splat.gotoAndStop(4);
Symbol 105 MovieClip Frame 17
Splat.gotoAndStop(3);
Symbol 105 MovieClip Frame 18
Splat.gotoAndStop(2);
Symbol 105 MovieClip Frame 19
Splat.gotoAndStop(1);
Symbol 106 MovieClip Frame 151
stop();
b1.btnText = "Start";
Instance of Symbol 105 MovieClip "b1" in Symbol 106 MovieClip Frame 151
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
_root.gotoAndStop("MENU");
}
}
Symbol 880 MovieClip [__Packages.com.gskinner.sprites.CollisionDetection] Frame 0
class com.gskinner.sprites.CollisionDetection
{
function CollisionDetection () {
}
static function checkForCollision(p_clip1, p_clip2, p_alphaTolerance) {
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
var _local4 = p_clip1.getBounds(_root);
var _local3 = p_clip2.getBounds(_root);
if (((_local4.xMax < _local3.xMin) || (_local3.xMax < _local4.xMin)) || ((_local4.yMax < _local3.yMin) || (_local3.yMax < _local4.yMin))) {
return(null);
}
var _local2 = {};
_local2.xMin = Math.max(_local4.xMin, _local3.xMin);
_local2.xMax = Math.min(_local4.xMax, _local3.xMax);
_local2.yMin = Math.max(_local4.yMin, _local3.yMin);
_local2.yMax = Math.min(_local4.yMax, _local3.yMax);
var _local7 = new flash.display.BitmapData(_local2.xMax - _local2.xMin, _local2.yMax - _local2.yMin, false);
var _local5 = p_clip1.transform.concatenatedMatrix;
_local5.tx = _local5.tx - _local2.xMin;
_local5.ty = _local5.ty - _local2.yMin;
_local7.draw(p_clip1, _local5, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
_local5 = p_clip2.transform.concatenatedMatrix;
_local5.tx = _local5.tx - _local2.xMin;
_local5.ty = _local5.ty - _local2.yMin;
_local7.draw(p_clip2, _local5, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), "difference");
var _local6 = _local7.getColorBoundsRect(4294967295, 4278255615);
if (_local6.width == 0) {
return(null);
}
_local6.x = _local6.x + _local2.xMin;
_local6.y = _local6.y + _local2.yMin;
return(_local6);
}
}
Symbol 881 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 882 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 883 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 884 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 885 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 886 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 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
stop();
Symbol 148 MovieClip Frame 3
stop();
Symbol 148 MovieClip Frame 4
stop();
Symbol 148 MovieClip Frame 5
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 80
gotoAndPlay ("Idle");
Symbol 170 Button
on (release) {
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood2");
PistolSound.start();
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (7);
}
on (press) {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 6
stop();
Symbol 174 Button
on (release) {
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood2");
PistolSound.start();
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (7);
}
on (press) {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 6
stop();
Symbol 178 Button
on (release) {
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood2");
PistolSound.start();
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (7);
}
on (press) {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 6
stop();
Symbol 182 Button
on (release) {
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood2");
PistolSound.start();
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (7);
}
on (press) {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 6
stop();
Symbol 341 MovieClip Frame 1
lavr_link = "http://www.gamesfree.ca/";
shade = 0;
Symbol 341 MovieClip Frame 2
lavr_link = "http://www.andkon.com";
shade = 2;
Symbol 341 MovieClip Frame 3
lavr_link = "http://www.SolidGames.com";
shade = 0;
Symbol 341 MovieClip Frame 4
lavr_link = "http://www.girldressupgames.biz";
shade = 1;
Symbol 341 MovieClip Frame 5
lavr_link = "http://www.yepi.com";
shade = 0;
Symbol 341 MovieClip Frame 6
lavr_link = "http://www.bubblebox.com";
shade = 1;
Symbol 341 MovieClip Frame 7
lavr_link = "http://www.bunnygames.com";
shade = 1;
Symbol 341 MovieClip Frame 8
lavr_link = "http://www.dailyfreegames.com";
shade = 1;
Symbol 341 MovieClip Frame 9
lavr_link = "http://www.directgamez.com";
shade = 2;
Symbol 341 MovieClip Frame 10
lavr_link = "http://www.2flashgames.com";
shade = 2;
Symbol 341 MovieClip Frame 11
lavr_link = "http://www.flashninjaclan.com";
shade = 1;
Symbol 341 MovieClip Frame 12
lavr_link = "http://www.dailyaddictinggames.com/";
shade = 1;
Symbol 341 MovieClip Frame 13
lavr_link = "http://www.funny-games.biz";
shade = 1;
Symbol 341 MovieClip Frame 14
lavr_link = "http://www.gameitnow.com";
shade = 2;
Symbol 341 MovieClip Frame 15
lavr_link = "http://www.games1.com";
shade = 0;
Symbol 341 MovieClip Frame 16
lavr_link = "http://www.onjogos.com.br";
shade = 1;
Symbol 341 MovieClip Frame 17
lavr_link = "http://www.gamesfreak.net";
shade = 2;
Symbol 341 MovieClip Frame 18
lavr_link = "http://www.maxi-juegos.com";
shade = 1;
Symbol 341 MovieClip Frame 19
lavr_link = "http://www.jarkey.net";
shade = 2;
Symbol 341 MovieClip Frame 20
lavr_link = "http://www.gam123bee.com/";
shade = 1;
Symbol 341 MovieClip Frame 21
lavr_link = "http://www.keepbusy.net";
shade = 1;
Symbol 341 MovieClip Frame 22
lavr_link = "http://www.microjogos.com";
shade = 1;
Symbol 341 MovieClip Frame 23
lavr_link = "http://www.minijuegos.com";
shade = 2;
Symbol 341 MovieClip Frame 24
lavr_link = "http://www.oyunskor.com/";
shade = 1;
Symbol 341 MovieClip Frame 25
lavr_link = "http://www.mostfungames.com";
shade = 2;
Symbol 341 MovieClip Frame 26
lavr_link = "http://www.gameshot.org";
shade = 1;
Symbol 341 MovieClip Frame 27
lavr_link = "http://www.online-games-zone.com/";
shade = 2;
Symbol 341 MovieClip Frame 28
lavr_link = "http://www.puffgames.com";
shade = 2;
Symbol 341 MovieClip Frame 29
lavr_link = "http://www.spele.nl";
shade = 1;
Symbol 341 MovieClip Frame 30
lavr_link = "http://www.t45ol.com";
shade = 2;
Symbol 341 MovieClip Frame 31
lavr_link = "http://www.thegamesonline.com/";
shade = 1;
Symbol 341 MovieClip Frame 32
lavr_link = "http://www.ultimatearcade.com";
shade = 1;
Symbol 341 MovieClip Frame 33
lavr_link = "http://www.girlgames4u.com/";
shade = 1;
Symbol 341 MovieClip Frame 34
lavr_link = "http://www.beer-games.net";
shade = 0;
Symbol 341 MovieClip Frame 35
lavr_link = "http://www.stickpage.com/";
shade = 1;
Symbol 341 MovieClip Frame 36
lavr_link = "http://www.gamespond.net/";
shade = 2;
Symbol 341 MovieClip Frame 37
lavr_link = "http://www.flashgames.it/";
shade = 1;
Symbol 341 MovieClip Frame 38
lavr_link = "http://www.gamesgirl.ca/";
shade = 1;
Symbol 341 MovieClip Frame 39
lavr_link = "http://www.hallpass.com/";
shade = 2;
Symbol 341 MovieClip Frame 40
lavr_link = "http://www.gamegecko.com/";
shade = 0;
Symbol 341 MovieClip Frame 41
lavr_link = "http://www.benz.be";
shade = 2;
Symbol 341 MovieClip Frame 42
lavr_link = "http://www.net-games.co.il/";
shade = 1;
Symbol 341 MovieClip Frame 43
lavr_link = "http://www.bgames.com";
shade = 1;
Symbol 341 MovieClip Frame 44
lavr_link = "http://www.pinkyarcade.com/";
shade = 1;
Symbol 341 MovieClip Frame 45
lavr_link = "http://jayisgames.com/";
shade = 0;
Symbol 341 MovieClip Frame 46
lavr_link = "http://www.twizl.com/";
shade = 1;
Symbol 341 MovieClip Frame 47
lavr_link = "http://www.a10.com/";
shade = 1;
Symbol 341 MovieClip Frame 48
lavr_link = "http://www.bonniegames.com/";
shade = 1;
Symbol 341 MovieClip Frame 49
lavr_link = "http://www.ug2.com/";
shade = 0;
Symbol 341 MovieClip Frame 50
lavr_link = "http://www.agame.com";
shade = 1;
Symbol 341 MovieClip Frame 51
lavr_link = "http://www.gamesclub.com/";
shade = 1;
Symbol 341 MovieClip Frame 52
lavr_link = "http://www.killhours.com/";
shade = 1;
Symbol 341 MovieClip Frame 53
lavr_link = "http://www.flasharcadegamessite.com/";
shade = 1;
Symbol 341 MovieClip Frame 54
lavr_link = "http://www.roundgames.com/";
shade = 2;
Symbol 341 MovieClip Frame 55
lavr_link = "http://www.arcadegangsta.com/";
shade = 1;
Symbol 341 MovieClip Frame 56
lavr_link = "http://www.bored.com/";
shade = 0;
Symbol 341 MovieClip Frame 57
lavr_link = "http://www.flash-games.net/";
shade = 1;
Symbol 341 MovieClip Frame 58
lavr_link = "http://www.flash-game.net/";
shade = 1;
Symbol 341 MovieClip Frame 59
lavr_link = "http://www.kingofgames.net";
shade = 1;
Symbol 341 MovieClip Frame 60
lavr_link = "http://www.playhub.com/";
shade = 0;
Symbol 341 MovieClip Frame 61
lavr_link = "http://www.123spill.no/";
shade = 1;
Symbol 341 MovieClip Frame 62
lavr_link = "http://www.dailygames.com/";
shade = 1;
Symbol 341 MovieClip Frame 63
lavr_link = "http://www.octogames.com/";
shade = 2;
Symbol 341 MovieClip Frame 64
lavr_link = "http://www.ugotgames.com/";
shade = 1;
Symbol 341 MovieClip Frame 65
lavr_link = "http://www.fupa.com/";
shade = 1;
Symbol 341 MovieClip Frame 66
lavr_link = "http://www.kibagames.com/";
shade = 0;
Symbol 341 MovieClip Frame 67
lavr_link = "http://www.kraloyun.com/";
shade = 0;
Symbol 341 MovieClip Frame 68
lavr_link = "http://www.spielaffe.de/";
shade = 0;
Symbol 341 MovieClip Frame 69
lavr_link = "http://www.39games.com";
shade = 2;
Symbol 341 MovieClip Frame 70
lavr_link = "http://www.bijuegos.com";
shade = 0;
Symbol 341 MovieClip Frame 71
lavr_link = "http://www.mofunzone.com";
shade = 2;
Symbol 341 MovieClip Frame 72
lavr_link = "http://www.freegamespy.com/";
shade = 2;
Symbol 341 MovieClip Frame 73
lavr_link = "http://www.jogos10.com";
shade = 0;
Symbol 341 MovieClip Frame 74
lavr_link = "http://www.juegos10.com";
shade = 0;
Symbol 341 MovieClip Frame 75
lavr_link = "http://flash.178.com/";
shade = 0;
Symbol 341 MovieClip Frame 76
lavr_link = "http://www.papajogos.com.br";
shade = 0;
Symbol 341 MovieClip Frame 77
lavr_link = "http://www.arcadelots.com/";
shade = 0;
Symbol 341 MovieClip Frame 78
lavr_link = "http://www.minigamers.com/";
shade = 0;
Symbol 341 MovieClip Frame 79
lavr_link = "http://www.stickpage.com";
shade = 0;
Symbol 341 MovieClip Frame 80
lavr_link = "http://www.y8.com/";
shade = 1;
Symbol 341 MovieClip Frame 81
lavr_link = "http://www.y3.com/";
shade = 1;
Symbol 341 MovieClip Frame 83
lavr_link = "http://www.videobash.com/";
shade = 0;
Symbol 342 MovieClip Frame 1
stop();
Symbol 343 Button
on (release) {
getURL (boxx.lavr_link, "_blank");
}
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (21);
}
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 20
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 2
stop();
Symbol 349 MovieClip Frame 3
stop();
Symbol 356 MovieClip Frame 1
SpeedX = 1.6;
Symbol 380 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.WallDamageUnlocked && (_parent.Cloture._currentFrame == 1)) {
play();
} else if (_global.WallDamageUnlocked && (_parent.Cloture._currentFrame == 2)) {
gotoAndPlay (8);
}
};
Symbol 380 MovieClip Frame 6
gotoAndPlay (1);
Symbol 380 MovieClip Frame 12
gotoAndPlay (1);
Symbol 382 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (Math.round((_global.WallCurrentHP / _global.WallMaxHP) * 100) <= 75) {
gotoAndStop (2);
}
};
Symbol 388 MovieClip Frame 2
stop();
onEnterFrame = function () {
if (Math.round((_global.WallCurrentHP / _global.WallMaxHP) * 100) <= 50) {
gotoAndStop (3);
}
};
Symbol 388 MovieClip Frame 3
stop();
onEnterFrame = function () {
if (Math.round((_global.WallCurrentHP / _global.WallMaxHP) * 100) <= 25) {
gotoAndStop (4);
}
};
Symbol 388 MovieClip Frame 4
stop();
onEnterFrame = function () {
if (Math.round((_global.WallCurrentHP / _global.WallMaxHP) * 100) < 1) {
gotoAndStop (5);
}
};
Symbol 388 MovieClip Frame 5
stop();
onEnterFrame = function () {
if (Math.round((_global.WallCurrentHP / _global.WallMaxHP) * 100) == 100) {
gotoAndStop (1);
}
};
Symbol 390 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 2
stop();
onEnterFrame = function () {
if (Math.round((_global.WallCurrentHP / _global.WallMaxHP) * 100) <= 65) {
gotoAndStop (3);
}
};
Symbol 395 MovieClip Frame 3
stop();
onEnterFrame = function () {
if (Math.round((_global.WallCurrentHP / _global.WallMaxHP) * 100) <= 35) {
gotoAndStop (4);
}
};
Symbol 395 MovieClip Frame 4
stop();
onEnterFrame = function () {
if (Math.round((_global.WallCurrentHP / _global.WallMaxHP) * 100) <= 0) {
gotoAndStop (5);
}
};
Symbol 395 MovieClip Frame 5
stop();
onEnterFrame = function () {
if (Math.round((_global.WallCurrentHP / _global.WallMaxHP) * 100) == 100) {
gotoAndStop (2);
}
};
Symbol 397 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 1
stop();
ShakeNumber = 0;
onEnterFrame = function () {
if (_global.WallUpgrade >= 1) {
RightUps.gotoAndStop(2);
}
if (_global.WallUpgrade >= 2) {
LeftUps.gotoAndStop(2);
}
if (_global.WallUpgrade >= 3) {
Char.gotoAndStop(2);
}
if (_global.WallDamageUnlocked) {
Cables.gotoAndStop(2);
}
};
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 2
stop();
Symbol 414 MovieClip Frame 3
stop();
Symbol 414 MovieClip Frame 4
stop();
Symbol 414 MovieClip Frame 5
stop();
Symbol 414 MovieClip Frame 6
stop();
Symbol 415 MovieClip Frame 2
Rating.gotoAndStop(_global.Rating + 1);
Symbol 415 MovieClip Frame 20
stop();
Symbol 416 MovieClip Frame 1
stop();
Rating.gotoAndPlay(2);
trace(3);
Symbol 427 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(Math.round(_parent._currentframe / 2));
};
Instance of Symbol 420 MovieClip in Symbol 427 MovieClip Frame 2
onClipEvent (load) {
_rotation = random(360);
_xscale = 50;
_yscale = 50;
}
onClipEvent (enterFrame) {
if (_xscale < 100) {
_xscale = (_xscale + 20);
_yscale = _xscale;
}
}
Instance of Symbol 422 MovieClip in Symbol 427 MovieClip Frame 3
onClipEvent (load) {
_rotation = random(360);
_xscale = 50;
_yscale = 50;
}
onClipEvent (enterFrame) {
if (_xscale < 100) {
_xscale = (_xscale + 20);
_yscale = _xscale;
}
}
Instance of Symbol 424 MovieClip in Symbol 427 MovieClip Frame 4
onClipEvent (load) {
_rotation = random(360);
_xscale = 50;
_yscale = 50;
}
onClipEvent (enterFrame) {
if (_xscale < 100) {
_xscale = (_xscale + 20);
_yscale = _xscale;
}
}
Instance of Symbol 426 MovieClip in Symbol 427 MovieClip Frame 5
onClipEvent (load) {
_rotation = random(360);
_xscale = 50;
_yscale = 50;
}
onClipEvent (enterFrame) {
if (_xscale < 100) {
_xscale = (_xscale + 20);
_yscale = _xscale;
}
}
Symbol 429 MovieClip Frame 15
Splat.gotoAndStop(2);
Symbol 429 MovieClip Frame 17
Splat.gotoAndStop(3);
Symbol 429 MovieClip Frame 19
Splat.gotoAndStop(4);
Symbol 429 MovieClip Frame 20
stop();
nbKills = _global.NbKills;
Symbol 432 MovieClip Frame 22
Splat.gotoAndStop(2);
Symbol 432 MovieClip Frame 24
Splat.gotoAndStop(3);
Symbol 432 MovieClip Frame 26
Splat.gotoAndStop(4);
Symbol 432 MovieClip Frame 28
stop();
nbHeadShots = _global.NbHS;
Symbol 435 MovieClip Frame 25
Splat.play();
Symbol 435 MovieClip Frame 27
Splat.gotoAndStop(3);
Symbol 435 MovieClip Frame 29
Splat.gotoAndStop(4);
Symbol 435 MovieClip Frame 31
stop();
DmgTaken = _global.DamageTaken;
Symbol 438 MovieClip Frame 31
Splat.play();
Symbol 438 MovieClip Frame 33
Splat.gotoAndStop(3);
Symbol 438 MovieClip Frame 35
Splat.gotoAndStop(4);
Symbol 438 MovieClip Frame 37
stop();
DmgTaken = _global.WallDmgTaken;
_parent.Rating.play();
Symbol 443 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.NoHealtUpgrade > 2) {
gotoAndStop (2);
}
};
Symbol 448 MovieClip Frame 2
stop();
Symbol 448 MovieClip Frame 3
stop();
Symbol 448 MovieClip Frame 4
stop();
Symbol 448 MovieClip Frame 5
stop();
Symbol 449 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.NoHealtUpgrade > 0) {
gotoAndStop (2);
}
};
Symbol 449 MovieClip Frame 2
stop();
Symbol 450 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.NoHealtUpgrade > 0) {
gotoAndStop (2);
}
};
Symbol 450 MovieClip Frame 2
stop();
Symbol 453 MovieClip Frame 1
stop();
Symbol 453 MovieClip Frame 2
stop();
Symbol 455 MovieClip Frame 1
stop();
if (_global.DamageUpgrade > 2) {
gotoAndStop (2);
}
Symbol 455 MovieClip Frame 2
stop();
Symbol 458 MovieClip Frame 1
stop();
if (_global.ScopeUnlocked) {
gotoAndStop (2);
}
Symbol 458 MovieClip Frame 2
stop();
Symbol 461 MovieClip Frame 1
stop();
if (_global.UpgradeClipSize > 2) {
gotoAndStop (2);
}
Symbol 461 MovieClip Frame 2
stop();
Symbol 463 MovieClip Frame 1
stop();
if (_global.DamageUpgrade > 2) {
gotoAndStop (2);
}
Symbol 463 MovieClip Frame 2
stop();
Symbol 464 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 1
stop();
if (_global.NoHealtUpgrade > 2) {
gotoAndStop (2);
}
Symbol 466 MovieClip Frame 2
stop();
Symbol 466 MovieClip Frame 3
stop();
Symbol 466 MovieClip Frame 4
stop();
Symbol 466 MovieClip Frame 5
stop();
Symbol 467 MovieClip Frame 1
stop();
if (_global.NoHealtUpgrade > 0) {
gotoAndStop (2);
}
Symbol 467 MovieClip Frame 2
stop();
Symbol 468 MovieClip Frame 1
stop();
if (_global.NoHealtUpgrade > 0) {
gotoAndStop (2);
}
Symbol 468 MovieClip Frame 2
stop();
Symbol 471 MovieClip Frame 1
stop();
if (_global.NoHealtUpgrade > 1) {
gotoAndStop (2);
}
Symbol 471 MovieClip Frame 2
stop();
Symbol 474 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 1
stop();
if (_global.NoHealtUpgrade > 2) {
gotoAndStop (2);
}
Symbol 477 MovieClip Frame 2
stop();
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 2
stop();
Symbol 484 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 2
stop();
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 2
stop();
Symbol 488 MovieClip Frame 1
stop();
Symbol 488 MovieClip Frame 2
stop();
Symbol 491 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 2
stop();
Symbol 492 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.ScopeUnlocked) {
Scope.gotoAndStop(2);
}
if (_global.UpgradeClipSize > 2) {
GunMagazine.gotoAndStop(2);
}
if (_global.DamageUpgrade > 2) {
Shotgun1.gotoAndStop(2);
}
if (_global.DamageUpgrade > 2) {
Shotgun2.gotoAndStop(2);
}
};
Symbol 500 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 1
stop();
_parent._parent._parent.Flippin = false;
_parent._parent._parent.Reloading = false;
_parent._parent._parent.Hiding = true;
_parent._parent._parent.Nading = false;
_parent._parent._parent.Rolling = false;
gotoAndPlay ("Idle");
Symbol 510 MovieClip Frame 2
_parent._parent._parent.Flippin = true;
Symbol 510 MovieClip Frame 9
stop();
_parent._parent._parent.Flippin = false;
_parent._parent._parent.Hiding = false;
Symbol 510 MovieClip Frame 10
play();
Symbol 510 MovieClip Frame 11
play();
Symbol 510 MovieClip Frame 12
play();
Symbol 510 MovieClip Frame 13
gotoAndPlay ("Looking");
Symbol 510 MovieClip Frame 14
play();
Symbol 510 MovieClip Frame 15
play();
Symbol 510 MovieClip Frame 16
play();
Symbol 510 MovieClip Frame 17
gotoAndPlay ("Looking");
Symbol 510 MovieClip Frame 18
_parent._parent._parent.Flippin = true;
Symbol 510 MovieClip Frame 21
gotoAndStop ("Hidden");
Symbol 510 MovieClip Frame 38
gotoAndStop ("Hidden");
Symbol 510 MovieClip Frame 60
GNade = _root.Conteneur.GSpot.attachMovie("GrenadePlayer", "GrenadePlayer" + _global.GrenadeCount, 3000 + _global.GrenadeCount);
GNade._x = random(100) - 50;
_global.GrenadeCount++;
PistolSound = new Sound();
PistolSound.attachSound("sd_Throw");
PistolSound.start();
Symbol 510 MovieClip Frame 63
gotoAndStop ("Hidden");
Symbol 510 MovieClip Frame 101
stop();
Symbol 510 MovieClip Frame 153
gotoAndStop ("Hidden");
Symbol 510 MovieClip Frame 170
ReloadSound = new Sound();
ReloadSound.attachSound("Reload");
ReloadSound.start();
Symbol 510 MovieClip Frame 182
gotoAndStop ("Hidden");
Symbol 510 MovieClip Frame 228
gotoAndPlay ("Idle");
Symbol 511 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 1
onEnterFrame = function () {
if (_global.NoHealtUpgrade > 1) {
Char.Mang.b_1.gotoAndStop(2);
}
if (_global.NoHealtUpgrade > 0) {
Char.Mang.b_2.gotoAndStop(2);
Char.Mang.b_3.gotoAndStop(2);
}
if (_global.NoHealtUpgrade > 3) {
Char.Mang.b_4.gotoAndStop(2);
}
};
Symbol 520 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (((CurrentHp / MaxHp) * 100) >= 0) {
PlayerHealt._xscale = (CurrentHp / MaxHp) * 100;
}
};
Symbol 523 Button
on (release) {
_parent.hideTooltip();
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
if (_global.NoHealtUpgrade < _parent.HealtUpgradeCost.length) {
ArmorCost = _parent.HealtUpgradeCost[_global.NoHealtUpgrade];
_parent.showTooltip2(((("Cost (" + _global.NoHealtUpgrade) + "/") + _parent.HealtUpgradeCost.length) + ")", ArmorCost);
}
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
_parent.hideTooltip();
}
Symbol 524 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 3
Splat.gotoAndStop(2);
Symbol 524 MovieClip Frame 5
Splat.gotoAndStop(3);
Symbol 524 MovieClip Frame 8
Splat.gotoAndStop(4);
Symbol 524 MovieClip Frame 10
stop();
Symbol 524 MovieClip Frame 13
Splat.gotoAndStop(3);
Symbol 524 MovieClip Frame 16
Splat.gotoAndStop(2);
Symbol 524 MovieClip Frame 18
Splat.gotoAndStop(1);
Symbol 524 MovieClip Frame 20
Splat.stop();
Symbol 525 Button
on (release) {
_parent.hideTooltip();
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
HealCost = _global.PlayerMaxHP - _global.PlayerCurrentHP;
if (HealCost > 0) {
_parent.showTooltip2("Cost", HealCost);
}
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
_parent.hideTooltip();
}
Symbol 526 MovieClip Frame 1
stop();
Symbol 526 MovieClip Frame 3
Splat.gotoAndStop(2);
Symbol 526 MovieClip Frame 5
Splat.gotoAndStop(3);
Symbol 526 MovieClip Frame 8
Splat.gotoAndStop(4);
Symbol 526 MovieClip Frame 10
stop();
Symbol 526 MovieClip Frame 13
Splat.gotoAndStop(3);
Symbol 526 MovieClip Frame 16
Splat.gotoAndStop(2);
Symbol 526 MovieClip Frame 18
Splat.gotoAndStop(1);
Symbol 526 MovieClip Frame 20
Splat.stop();
Symbol 529 Button
on (press) {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
gotoAndStop ("SubMenu");
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
}
Symbol 532 MovieClip Frame 1
stop();
Symbol 532 MovieClip Frame 2
stop();
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 2
stop();
Symbol 538 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 2
stop();
Symbol 539 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.ScopeUnlocked) {
Scope.gotoAndStop(2);
}
if (_global.UpgradeClipSize > 2) {
GunMagazine.gotoAndStop(2);
}
if (_global.DamageUpgrade > 2) {
Shotgun.gotoAndStop(2);
}
};
Symbol 550 Button
on (release) {
_parent.hideTooltip();
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
UpgradeCost = _parent.tabPriceDamage[_global.DamageUpgrade];
if (UpgradeCost != undefined) {
_parent.showTooltip2(((("Cost (" + _global.DamageUpgrade) + "/") + _parent.tabPriceDamage.length) + ")", UpgradeCost);
}
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
_parent.hideTooltip();
}
Symbol 551 MovieClip Frame 1
stop();
Symbol 551 MovieClip Frame 10
stop();
Symbol 554 Button
on (release) {
act = 2;
_parent.hideTooltip();
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
UpgradeCost = _parent.tabPriceFRate[_global.FireRateUpgrade];
if (UpgradeCost != undefined) {
_parent.showTooltip2(((("Cost (" + _global.FireRateUpgrade) + "/") + _parent.tabPriceFRate.length) + ")", UpgradeCost);
}
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
_parent.hideTooltip();
}
Symbol 555 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 3
Splat.gotoAndStop(2);
Symbol 555 MovieClip Frame 5
Splat.gotoAndStop(3);
Symbol 555 MovieClip Frame 8
Splat.gotoAndStop(4);
Symbol 555 MovieClip Frame 10
stop();
Symbol 555 MovieClip Frame 13
Splat.gotoAndStop(3);
Symbol 555 MovieClip Frame 16
Splat.gotoAndStop(2);
Symbol 555 MovieClip Frame 18
Splat.gotoAndStop(1);
Symbol 555 MovieClip Frame 20
Splat.stop();
Symbol 558 Button
on (release) {
_parent.hideTooltip();
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
UpgradeCost = _parent.tabPriceClipSize[_global.UpgradeClipSize];
if (UpgradeCost != undefined) {
_parent.showTooltip2(((("Cost (" + _global.UpgradeClipSize) + "/") + _parent.tabPriceClipSize.length) + ")", UpgradeCost);
}
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
_parent.hideTooltip();
}
Symbol 559 MovieClip Frame 1
stop();
Symbol 559 MovieClip Frame 3
Splat.gotoAndStop(2);
Symbol 559 MovieClip Frame 5
Splat.gotoAndStop(3);
Symbol 559 MovieClip Frame 8
Splat.gotoAndStop(4);
Symbol 559 MovieClip Frame 10
stop();
Symbol 559 MovieClip Frame 13
Splat.gotoAndStop(3);
Symbol 559 MovieClip Frame 16
Splat.gotoAndStop(2);
Symbol 559 MovieClip Frame 18
Splat.gotoAndStop(1);
Symbol 559 MovieClip Frame 20
Splat.stop();
Symbol 562 Button
on (release) {
_parent.hideTooltip();
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
UpgradeCost = _parent.tabPriceAccuracy[_global.UpgradeAccuracy];
if (UpgradeCost != undefined) {
_parent.showTooltip2(((("Cost (" + _global.UpgradeAccuracy) + "/") + _parent.tabPriceAccuracy.length) + ")", UpgradeCost);
}
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
_parent.hideTooltip();
}
Symbol 563 MovieClip Frame 1
stop();
Symbol 563 MovieClip Frame 3
Splat.gotoAndStop(2);
Symbol 563 MovieClip Frame 5
Splat.gotoAndStop(3);
Symbol 563 MovieClip Frame 8
Splat.gotoAndStop(4);
Symbol 563 MovieClip Frame 10
stop();
Symbol 563 MovieClip Frame 13
Splat.gotoAndStop(3);
Symbol 563 MovieClip Frame 16
Splat.gotoAndStop(2);
Symbol 563 MovieClip Frame 18
Splat.gotoAndStop(1);
Symbol 563 MovieClip Frame 20
Splat.stop();
Symbol 566 Button
on (release) {
_parent.hideTooltip();
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
if (!_global.ScopeUnlocked) {
_parent.showTooltip2("Cost", "3000");
}
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
_parent.hideTooltip();
}
Symbol 567 MovieClip Frame 1
stop();
Symbol 567 MovieClip Frame 3
Splat.gotoAndStop(2);
Symbol 567 MovieClip Frame 5
Splat.gotoAndStop(3);
Symbol 567 MovieClip Frame 8
Splat.gotoAndStop(4);
Symbol 567 MovieClip Frame 10
stop();
Symbol 567 MovieClip Frame 13
Splat.gotoAndStop(3);
Symbol 567 MovieClip Frame 16
Splat.gotoAndStop(2);
Symbol 567 MovieClip Frame 18
Splat.gotoAndStop(1);
Symbol 567 MovieClip Frame 20
Splat.stop();
Symbol 570 Button
on (release) {
_parent.hideTooltip();
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
_parent.showTooltip2("Cost", _parent.GrenadePrice);
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
_parent.hideTooltip();
}
Symbol 571 MovieClip Frame 1
stop();
Symbol 571 MovieClip Frame 3
Splat.gotoAndStop(2);
Symbol 571 MovieClip Frame 5
Splat.gotoAndStop(3);
Symbol 571 MovieClip Frame 8
Splat.gotoAndStop(4);
Symbol 571 MovieClip Frame 10
stop();
Symbol 571 MovieClip Frame 13
Splat.gotoAndStop(3);
Symbol 571 MovieClip Frame 16
Splat.gotoAndStop(2);
Symbol 571 MovieClip Frame 18
Splat.gotoAndStop(1);
Symbol 571 MovieClip Frame 20
Splat.stop();
Symbol 574 Button
on (release) {
_parent.hideTooltip();
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
_parent.showTooltip2("Cost", _parent.nbAmmoBuying * 10);
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
_parent.hideTooltip();
}
Symbol 575 MovieClip Frame 1
stop();
Symbol 575 MovieClip Frame 3
Splat.gotoAndStop(2);
Symbol 575 MovieClip Frame 5
Splat.gotoAndStop(3);
Symbol 575 MovieClip Frame 8
Splat.gotoAndStop(4);
Symbol 575 MovieClip Frame 10
stop();
Symbol 575 MovieClip Frame 13
Splat.gotoAndStop(3);
Symbol 575 MovieClip Frame 16
Splat.gotoAndStop(2);
Symbol 575 MovieClip Frame 18
Splat.gotoAndStop(1);
Symbol 575 MovieClip Frame 20
Splat.stop();
Symbol 580 MovieClip Frame 1
onEnterFrame = function () {
nbAmmo = _parent.nbAmmoBuying;
};
Symbol 581 Button
on (press) {
Action = 1;
}
on (release) {
Action = 0;
}
on (rollOver) {
Action = 0;
}
on (rollOut) {
Action = 0;
}
Symbol 582 Button
on (press) {
Action = 2;
}
on (release) {
Action = 0;
}
on (rollOver) {
Action = 0;
}
on (rollOut) {
Action = 0;
}
Symbol 590 MovieClip Frame 1
stop();
onEnterFrame = function () {
WallBar._xscale = (_parent.WallCurrentHealt / _parent.WallMaxHealt) * 100;
};
Symbol 591 Button
on (release) {
_parent.hideTooltip();
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
HealCost = _global.WallMaxHealt - _global.WallCurrentHealt;
if (HealCost > 0) {
_parent.showTooltip2("Cost", HealCost);
}
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
_parent.hideTooltip();
}
Symbol 592 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 3
Splat.gotoAndStop(2);
Symbol 592 MovieClip Frame 5
Splat.gotoAndStop(3);
Symbol 592 MovieClip Frame 8
Splat.gotoAndStop(4);
Symbol 592 MovieClip Frame 10
stop();
Symbol 592 MovieClip Frame 13
Splat.gotoAndStop(3);
Symbol 592 MovieClip Frame 16
Splat.gotoAndStop(2);
Symbol 592 MovieClip Frame 18
Splat.gotoAndStop(1);
Symbol 592 MovieClip Frame 20
Splat.stop();
Symbol 593 Button
on (release) {
_parent.hideTooltip();
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
UpgradeCost = _parent.tabPriceHealt[_global.WallUpgrade];
if (UpgradeCost != undefined) {
_parent.showTooltip2(((("Cost (" + _global.WallUpgrade) + "/") + _parent.tabPriceHealt.length) + ")", UpgradeCost);
}
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
_parent.hideTooltip();
}
Symbol 594 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 3
Splat.gotoAndStop(2);
Symbol 594 MovieClip Frame 5
Splat.gotoAndStop(3);
Symbol 594 MovieClip Frame 8
Splat.gotoAndStop(4);
Symbol 594 MovieClip Frame 10
stop();
Symbol 594 MovieClip Frame 13
Splat.gotoAndStop(3);
Symbol 594 MovieClip Frame 16
Splat.gotoAndStop(2);
Symbol 594 MovieClip Frame 18
Splat.gotoAndStop(1);
Symbol 594 MovieClip Frame 20
Splat.stop();
Symbol 595 Button
on (release) {
_parent.hideTooltip();
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
if (!_global.WallDamageUnlocked) {
_parent.showTooltip2("Cost", _parent.DamageUnlockPrice);
}
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
_parent.hideTooltip();
}
Symbol 596 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 3
Splat.gotoAndStop(2);
Symbol 596 MovieClip Frame 5
Splat.gotoAndStop(3);
Symbol 596 MovieClip Frame 8
Splat.gotoAndStop(4);
Symbol 596 MovieClip Frame 10
stop();
Symbol 596 MovieClip Frame 13
Splat.gotoAndStop(3);
Symbol 596 MovieClip Frame 16
Splat.gotoAndStop(2);
Symbol 596 MovieClip Frame 18
Splat.gotoAndStop(1);
Symbol 596 MovieClip Frame 20
Splat.stop();
Symbol 613 MovieClip Frame 1
stop();
Symbol 618 Button
on (release) {
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (8);
}
Symbol 619 MovieClip Frame 1
stop();
Instance of Symbol 617 MovieClip in Symbol 619 MovieClip Frame 1
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.gotoAndStop(2);
}
}
Symbol 619 MovieClip Frame 7
stop();
Instance of Symbol 617 MovieClip in Symbol 619 MovieClip Frame 7
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
gotoAndStop (2);
}
}
Symbol 622 MovieClip Frame 1
stop();
Symbol 625 Button
on (release) {
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (8);
}
Symbol 626 MovieClip Frame 1
stop();
Symbol 626 MovieClip Frame 7
stop();
Instance of Symbol 624 MovieClip in Symbol 626 MovieClip Frame 7
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
gotoAndStop (3);
}
}
Symbol 628 MovieClip Frame 1
b_6.gotoAndStop(2);
Symbol 629 Button
on (release) {
act = 2;
}
on (rollOver) {
PistolSound = new Sound();
PistolSound.attachSound("sd_rollOverBlood");
PistolSound.start();
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (8);
}
Symbol 630 MovieClip Frame 1
stop();
Symbol 630 MovieClip Frame 7
stop();
Instance of Symbol 628 MovieClip in Symbol 630 MovieClip Frame 7
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
gotoAndStop (4);
}
}
Symbol 631 MovieClip Frame 1
stop();
Symbol 631 MovieClip Frame 2
stop();
HsSurKills = (_global.NbHS / _global.NbKills) * 100;
GotShotAlot = 100 - ((_global.DamageTaken / _global.PlayerMaxHP) * 100);
BrokenWall = 100 - ((_global.WallDmgTaken / _global.WallMaxHP) * 100);
valeurRating = ((HsSurKills + GotShotAlot) + BrokenWall) / 3;
_global.Rating = Math.round(valeurRating / 20);
switch (_global.Rating) {
case 5 :
_global.Money = _global.Money + (1000 * (_global.Level - 1));
break;
case 4 :
_global.Money = _global.Money + (800 * (_global.Level - 1));
break;
case 3 :
_global.Money = _global.Money + (500 * (_global.Level - 1));
break;
case 2 :
_global.Money = _global.Money + (200 * (_global.Level - 1));
}
_root.SaveGame();
Symbol 631 MovieClip Frame 3
function showTooltip(_msg_head, _msg_body) {
tooltip_mc = pathToRoot.attachMovie("tooltip", "tooltip" + pathToRoot.getNextHighestDepth(), pathToRoot.getNextHighestDepth());
tooltip_mc.head_txt.text = _msg_head;
tooltip_mc.body_txt.text = _msg_body;
tooltip_mc.head_txt.autoSize = true;
tooltip_mc.body_txt.autoSize = true;
tooltip_mc.bg_mc._width = 110;
tooltip_mc.head_txt._width = 100;
tooltip_mc.body_txt._width = 100;
var _local2 = (tooltip_mc.head_txt._height + tooltip_mc.body_txt._height) + 10;
var _local3 = tooltip_mc.body_txt._width + 10;
tooltip_mc.bg_mc._height = _local2;
tooltip_mc._x = -tooltip_mc._width;
tooltip_mc._y = -tooltip_mc._height;
tooltip_mc.onEnterFrame = function () {
this.tempX = pathToRoot._xmouse + paddingX;
this.tempY = pathToRoot._ymouse + paddingY;
if ((this.tempX + tooltip_mc._width) > gameWidth) {
this._x = this.tempX - tooltip_mc._width;
} else {
this._x = this.tempX;
}
if ((this.tempY + tooltip_mc._height) > gameHeight) {
this._y = (this.tempY - tooltip_mc._height) - paddingY;
} else {
this._y = this.tempY;
}
};
}
function showTooltip2(_msg_head, _msg_body) {
tooltip_mc = pathToRoot.attachMovie("tooltip2", "tooltip2" + pathToRoot.getNextHighestDepth(), pathToRoot.getNextHighestDepth());
tooltip_mc.head_txt.text = _msg_head;
tooltip_mc.body_txt.text = _msg_body;
tooltip_mc.head_txt.autoSize = true;
tooltip_mc.body_txt.autoSize = true;
tooltip_mc.bg_mc._width = 80;
tooltip_mc.head_txt._width = 100;
tooltip_mc.body_txt._width = 100;
var _local2 = (tooltip_mc.head_txt._height + tooltip_mc.body_txt._height) + 10;
var _local3 = tooltip_mc.body_txt._width + 10;
tooltip_mc.bg_mc._height = _local2;
tooltip_mc._x = -tooltip_mc._width;
tooltip_mc._y = -tooltip_mc._height;
tooltip_mc.onEnterFrame = function () {
this.tempX = pathToRoot._xmouse + paddingX;
this.tempY = pathToRoot._ymouse + paddingY;
if ((this.tempX + tooltip_mc._width) > gameWidth) {
this._x = this.tempX - tooltip_mc._width;
} else {
this._x = this.tempX;
}
if ((this.tempY + tooltip_mc._height) > gameHeight) {
this._y = (this.tempY - tooltip_mc._height) - paddingY;
} else {
this._y = this.tempY;
}
};
}
function hideTooltip() {
delete tooltip_mc.onEnterFrame;
removeMovieClip(tooltip_mc);
}
stop();
HealtUpgradeCost = [1000, 2500, 4000, 6000, 9000, 12000, 16000, 20000];
btnArmor.btnText = "UPGRADE";
onEnterFrame = function () {
HPBar.CurrentHp = _global.PlayerCurrentHP;
HPBar.MaxHp = _global.PlayerMaxHP;
if (_global.NoHealtUpgrade > HealtUpgradeCost.length) {
btnArmor.btnText = "MAXED";
} else {
btnArmor.btnText = "UPGRADE";
}
if ((_global.PlayerMaxHP - _global.PlayerCurrentHP) <= 0) {
btnHealtPack.btnText = "FULL";
} else {
btnHealtPack.btnText = "BUY";
}
};
var pathToRoot = _root.InfoBoard;
var tooltip_mc;
var paddingX = 0;
var paddingY = 20;
var gameWidth = 800;
var gameHeight = 440;
Instance of Symbol 524 MovieClip "btnArmor" in Symbol 631 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((_global.Money >= _parent.HealtUpgradeCost[_global.NoHealtUpgrade]) && (_global.NoHealtUpgrade < _parent.HealtUpgradeCost.length)) {
_alpha = 100;
} else {
_alpha = 25;
}
if (act == 2) {
if ((_global.Money >= _parent.HealtUpgradeCost[_global.NoHealtUpgrade]) && (_global.NoHealtUpgrade < _parent.HealtUpgradeCost.length)) {
_global.Money = _global.Money - _parent.HealtUpgradeCost[_global.NoHealtUpgrade];
_root.MoneyBag.play();
_global.NoHealtUpgrade++;
_global.PlayerMaxHP = _global.tabPlayerHP[_global.NoHealtUpgrade];
_global.PlayerCurrentHP = _global.tabPlayerHP[_global.NoHealtUpgrade];
_root.SaveGame();
EffectSound = new Sound();
EffectSound.attachSound("sd_Buy2");
EffectSound.start();
} else {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
if (_global.NoHealtUpgrade < 5) {
ArmorCost = _parent.HealtUpgradeCost[_global.NoHealtUpgrade];
_parent.showTooltip2(((("Cost (" + _global.NoHealtUpgrade) + "/") + _parent.HealtUpgradeCost.length) + ")", ArmorCost);
}
act = 1;
}
}
Instance of Symbol 526 MovieClip "btnHealtPack" in Symbol 631 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_global.Money >= (_global.PlayerMaxHP - _global.PlayerCurrentHP)) {
_alpha = 100;
} else {
_alpha = 25;
}
if (act == 2) {
if (_global.Money >= (_global.PlayerMaxHP - _global.PlayerCurrentHP)) {
_global.Money = _global.Money - (_global.PlayerMaxHP - _global.PlayerCurrentHP);
_root.MoneyBag.play();
_global.PlayerCurrentHP = _global.PlayerMaxHP;
_root.SaveGame();
EffectSound = new Sound();
EffectSound.attachSound("sd_Buy2");
EffectSound.start();
} else {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
act = 1;
}
}
Symbol 631 MovieClip Frame 4
function showTooltip(_msg_head, _msg_body) {
tooltip_mc = pathToRoot.attachMovie("tooltip", "tooltip" + pathToRoot.getNextHighestDepth(), pathToRoot.getNextHighestDepth());
tooltip_mc.head_txt.text = _msg_head;
tooltip_mc.body_txt.text = _msg_body;
tooltip_mc.head_txt.autoSize = true;
tooltip_mc.body_txt.autoSize = true;
tooltip_mc.bg_mc._width = 110;
tooltip_mc.head_txt._width = 100;
tooltip_mc.body_txt._width = 100;
var _local2 = (tooltip_mc.head_txt._height + tooltip_mc.body_txt._height) + 10;
var _local3 = tooltip_mc.body_txt._width + 10;
tooltip_mc.bg_mc._height = _local2;
tooltip_mc._x = -tooltip_mc._width;
tooltip_mc._y = -tooltip_mc._height;
tooltip_mc.onEnterFrame = function () {
this.tempX = pathToRoot._xmouse + paddingX;
this.tempY = pathToRoot._ymouse + paddingY;
if ((this.tempX + tooltip_mc._width) > gameWidth) {
this._x = this.tempX - tooltip_mc._width;
} else {
this._x = this.tempX;
}
if ((this.tempY + tooltip_mc._height) > gameHeight) {
this._y = (this.tempY - tooltip_mc._height) - paddingY;
} else {
this._y = this.tempY;
}
};
}
function hideTooltip() {
delete tooltip_mc.onEnterFrame;
removeMovieClip(tooltip_mc);
}
function showTooltip2(_msg_head, _msg_body) {
tooltip_mc = pathToRoot.attachMovie("tooltip2", "tooltip2" + pathToRoot.getNextHighestDepth(), pathToRoot.getNextHighestDepth());
tooltip_mc.head_txt.text = _msg_head;
tooltip_mc.body_txt.text = _msg_body;
tooltip_mc.head_txt.autoSize = true;
tooltip_mc.body_txt.autoSize = true;
tooltip_mc.bg_mc._width = 80;
tooltip_mc.head_txt._width = 100;
tooltip_mc.body_txt._width = 100;
var _local2 = (tooltip_mc.head_txt._height + tooltip_mc.body_txt._height) + 10;
var _local3 = tooltip_mc.body_txt._width + 10;
tooltip_mc.bg_mc._height = _local2;
tooltip_mc._x = -tooltip_mc._width;
tooltip_mc._y = -tooltip_mc._height;
tooltip_mc.onEnterFrame = function () {
this.tempX = pathToRoot._xmouse + paddingX;
this.tempY = pathToRoot._ymouse + paddingY;
if ((this.tempX + tooltip_mc._width) > gameWidth) {
this._x = this.tempX - tooltip_mc._width;
} else {
this._x = this.tempX;
}
if ((this.tempY + tooltip_mc._height) > gameHeight) {
this._y = (this.tempY - tooltip_mc._height) - paddingY;
} else {
this._y = this.tempY;
}
};
}
stop();
btnDamage.btnText = "UPGRADE";
btnUnlockScope.btnText = "UNLOCK";
btnFireRate.btnText = "UPGRADE";
btnClipSize.btnText = "UPGRADE";
btnAccuracy.btnText = "UPGRADE";
nbAmmoBuying = 0;
tabPriceDamage = [1000, 1500, 3000, 5500, 7000, 10000, 13000, 16000, 20000];
tabPriceFRate = [1000, 1500, 4000, 6000, 12000, 20000];
tabPriceClipSize = [1000, 1500, 4000, 6000, 12000, 20000];
tabPriceAccuracy = [1000, 1500, 4000, 6000];
ScopeCost = 3000;
AmmoPrice = 300;
GrenadePrice = 1000;
Action = 0;
onEnterFrame = function () {
if ((Action == 1) && (_global.Money >= ((nbAmmoBuying + 1) * 10))) {
nbAmmoBuying++;
}
if ((Action == 2) && (nbAmmoBuying > 0)) {
nbAmmoBuying--;
}
NbAmmo = _global.Ammo;
nbGrenade = _global.Grenade;
if (_global.ScopeUnlocked) {
btnUnlockScope.btnText = "Done";
}
if (_global.DamageUpgrade >= tabPriceDamage.length) {
btnDamage.btnText = "Maxed";
}
if (_global.FireRateUpgrade >= tabPriceFRate.length) {
btnFireRate.btnText = "Maxed";
}
if (_global.UpgradeClipSize >= tabPriceClipSize.length) {
btnClipSize.btnText = "Maxed";
}
if (_global.UpgradeAccuracy >= tabPriceAccuracy.length) {
btnAccuracy.btnText = "Maxed";
}
};
var pathToRoot = _root;
var tooltip_mc;
var paddingX = 0;
var paddingY = 20;
var gameWidth = 800;
var gameHeight = 440;
Instance of Symbol 551 MovieClip "btnDamage" in Symbol 631 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((_global.Money >= _parent.tabPriceDamage[_global.DamageUpgrade]) && (_global.DamageUpgrade < _parent.tabPriceDamage.length)) {
_alpha = 100;
} else {
_alpha = 25;
}
if (act == 2) {
if ((_global.Money >= _parent.tabPriceDamage[_global.DamageUpgrade]) && (_global.DamageUpgrade < _parent.tabPriceDamage.length)) {
_global.Money = _global.Money - _parent.tabPriceDamage[_global.DamageUpgrade];
_root.MoneyBag.play();
_global.DamageUpgrade++;
_root.SaveGame();
_parent.nbAmmoBuying = 0;
EffectSound = new Sound();
EffectSound.attachSound("sd_Buy2");
EffectSound.start();
} else {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
UpgradeCost = _parent.tabPriceDamage[_global.DamageUpgrade];
if (UpgradeCost != undefined) {
_parent.showTooltip2(((("Cost (" + _global.DamageUpgrade) + "/") + _parent.tabPriceDamage.length) + ")", UpgradeCost);
}
act = 1;
}
}
Instance of Symbol 555 MovieClip "btnFireRate" in Symbol 631 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((_global.Money >= _parent.tabPriceFRate[_global.FireRateUpgrade]) && (_global.FireRateUpgrade < _parent.tabPriceFRate.length)) {
_alpha = 100;
} else {
_alpha = 25;
}
if (act == 2) {
if ((_global.Money >= _parent.tabPriceFRate[_global.FireRateUpgrade]) && (_global.FireRateUpgrade < _parent.tabPriceFRate.length)) {
_global.Money = _global.Money - _parent.tabPriceFRate[_global.FireRateUpgrade];
_root.MoneyBag.play();
_global.FireRateUpgrade++;
_root.SaveGame();
_parent.nbAmmoBuying = 0;
EffectSound = new Sound();
EffectSound.attachSound("sd_Buy2");
EffectSound.start();
} else {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
UpgradeCost = _parent.tabPriceFRate[_global.FireRateUpgrade];
if (UpgradeCost != undefined) {
_parent.showTooltip2(((("Cost (" + _global.FireRateUpgrade) + "/") + _parent.tabPriceFRate.length) + ")", UpgradeCost);
}
act = 1;
}
}
Instance of Symbol 559 MovieClip "btnClipSize" in Symbol 631 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((_global.Money >= _parent.tabPriceClipSize[_global.UpgradeClipSize]) && (_global.UpgradeClipSize < _parent.tabPriceClipSize.length)) {
_alpha = 100;
} else {
_alpha = 25;
}
if (act == 2) {
if ((_global.Money >= _parent.tabPriceClipSize[_global.UpgradeClipSize]) && (_global.UpgradeClipSize < _parent.tabPriceClipSize.length)) {
_global.Money = _global.Money - _parent.tabPriceClipSize[_global.UpgradeClipSize];
_root.MoneyBag.play();
_global.UpgradeClipSize++;
_root.SaveGame();
_parent.nbAmmoBuying = 0;
EffectSound = new Sound();
EffectSound.attachSound("sd_Buy2");
EffectSound.start();
} else {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
UpgradeCost = _parent.tabPriceClipSize[_global.UpgradeClipSize];
if (UpgradeCost != undefined) {
_parent.showTooltip2(((("Cost (" + _global.UpgradeClipSize) + "/") + _parent.tabPriceClipSize.length) + ")", UpgradeCost);
}
act = 1;
}
}
Instance of Symbol 563 MovieClip "btnAccuracy" in Symbol 631 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((_global.Money >= _parent.tabPriceAccuracy[_global.UpgradeAccuracy]) && (_global.UpgradeAccuracy < _parent.tabPriceAccuracy.length)) {
_alpha = 100;
} else {
_alpha = 25;
}
if (act == 2) {
if ((_global.Money >= _parent.tabPriceAccuracy[_global.UpgradeAccuracy]) && (_global.UpgradeAccuracy < _parent.tabPriceAccuracy.length)) {
_global.Money = _global.Money - _parent.tabPriceAccuracy[_global.UpgradeAccuracy];
_root.MoneyBag.play();
_global.UpgradeAccuracy++;
_root.SaveGame();
_parent.nbAmmoBuying = 0;
EffectSound = new Sound();
EffectSound.attachSound("sd_Buy2");
EffectSound.start();
} else {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
UpgradeCost = _parent.tabPriceAccuracy[_global.UpgradeAccuracy];
if (UpgradeCost != undefined) {
_parent.showTooltip2(((("Cost (" + _global.UpgradeAccuracy) + "/") + _parent.tabPriceAccuracy.length) + ")", UpgradeCost);
}
act = 1;
}
}
Instance of Symbol 567 MovieClip "btnUnlockScope" in Symbol 631 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((_global.Money >= _parent.ScopeCost) && (!_global.ScopeUnlocked)) {
_alpha = 100;
} else {
_alpha = 25;
}
if (act == 2) {
if ((_global.Money >= _parent.ScopeCost) && (!_global.ScopeUnlocked)) {
_global.ScopeUnlocked = true;
_global.Money = _global.Money - _parent.ScopeCost;
_root.MoneyBag.play();
_root.SaveGame();
_global.JustUnlockedSniper = true;
_parent.nbAmmoBuying = 0;
EffectSound = new Sound();
EffectSound.attachSound("sd_Buy2");
EffectSound.start();
} else {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
act = 1;
}
}
Instance of Symbol 571 MovieClip in Symbol 631 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_global.Money >= _parent.GrenadePrice) {
_alpha = 100;
} else {
_alpha = 25;
}
if (act == 2) {
if (_global.Money >= _parent.GrenadePrice) {
_global.Money = _global.Money - _parent.GrenadePrice;
_root.MoneyBag.play();
_global.Grenade++;
_root.SaveGame();
_parent.nbAmmoBuying = 0;
EffectSound = new Sound();
EffectSound.attachSound("sd_Buy");
EffectSound.start();
} else {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
_parent.showTooltip2("Cost", _parent.GrenadePrice);
act = 1;
}
}
Instance of Symbol 575 MovieClip in Symbol 631 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_global.Money >= (_parent.nbAmmoBuying * 10)) {
_alpha = 100;
} else {
_alpha = 25;
}
if (act == 2) {
if (_global.Money >= (_parent.nbAmmoBuying * 10)) {
_global.Money = _global.Money - (_parent.nbAmmoBuying * 10);
_root.MoneyBag.play();
_global.Ammo = _global.Ammo + _parent.nbAmmoBuying;
_root.SaveGame();
_parent.nbAmmoBuying = 0;
EffectSound = new Sound();
EffectSound.attachSound("sd_Buy");
EffectSound.start();
} else {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
act = 1;
}
}
Symbol 631 MovieClip Frame 5
function showTooltip(_msg_head, _msg_body) {
tooltip_mc = pathToRoot.attachMovie("tooltip", "tooltip" + pathToRoot.getNextHighestDepth(), pathToRoot.getNextHighestDepth());
tooltip_mc.head_txt.text = _msg_head;
tooltip_mc.body_txt.text = _msg_body;
tooltip_mc.head_txt.autoSize = true;
tooltip_mc.body_txt.autoSize = true;
tooltip_mc.bg_mc._width = 110;
tooltip_mc.head_txt._width = 100;
tooltip_mc.body_txt._width = 100;
var _local2 = (tooltip_mc.head_txt._height + tooltip_mc.body_txt._height) + 10;
var _local3 = tooltip_mc.body_txt._width + 10;
tooltip_mc.bg_mc._height = _local2;
tooltip_mc._x = -tooltip_mc._width;
tooltip_mc._y = -tooltip_mc._height;
tooltip_mc.onEnterFrame = function () {
this.tempX = pathToRoot._xmouse + paddingX;
this.tempY = pathToRoot._ymouse + paddingY;
if ((this.tempX + tooltip_mc._width) > gameWidth) {
this._x = this.tempX - tooltip_mc._width;
} else {
this._x = this.tempX;
}
if ((this.tempY + tooltip_mc._height) > gameHeight) {
this._y = (this.tempY - tooltip_mc._height) - paddingY;
} else {
this._y = this.tempY;
}
};
}
function hideTooltip() {
delete tooltip_mc.onEnterFrame;
removeMovieClip(tooltip_mc);
}
function showTooltip2(_msg_head, _msg_body) {
tooltip_mc = pathToRoot.attachMovie("tooltip2", "tooltip2" + pathToRoot.getNextHighestDepth(), pathToRoot.getNextHighestDepth());
tooltip_mc.head_txt.text = _msg_head;
tooltip_mc.body_txt.text = _msg_body;
tooltip_mc.head_txt.autoSize = true;
tooltip_mc.body_txt.autoSize = true;
tooltip_mc.bg_mc._width = 80;
tooltip_mc.head_txt._width = 100;
tooltip_mc.body_txt._width = 100;
var _local2 = (tooltip_mc.head_txt._height + tooltip_mc.body_txt._height) + 10;
var _local3 = tooltip_mc.body_txt._width + 10;
tooltip_mc.bg_mc._height = _local2;
tooltip_mc._x = -tooltip_mc._width;
tooltip_mc._y = -tooltip_mc._height;
tooltip_mc.onEnterFrame = function () {
this.tempX = pathToRoot._xmouse + paddingX;
this.tempY = pathToRoot._ymouse + paddingY;
if ((this.tempX + tooltip_mc._width) > gameWidth) {
this._x = this.tempX - tooltip_mc._width;
} else {
this._x = this.tempX;
}
if ((this.tempY + tooltip_mc._height) > gameHeight) {
this._y = (this.tempY - tooltip_mc._height) - paddingY;
} else {
this._y = this.tempY;
}
};
}
stop();
btnUnlockDmg.btnText = "UNLOCK";
btnUpHealt.btnText = "UPGRADE";
if (_global.WallCurrentHP < 0) {
_global.WallCurrentHP = 0;
}
tabPriceHealt = [1000, 1500, 4000, 6000, 12000, 20000];
DamageUnlockPrice = 1000;
onEnterFrame = function () {
WallCurrentHealt = _global.WallCurrentHP;
WallMaxHealt = _global.WallMaxHP;
if (_global.WallCurrentHealt == _global.WallMaxHealt) {
btnWallHealt.btnText = "FULL";
} else {
btnWallHealt.btnText = "REPAIR";
}
if (_global.WallUpgrade >= tabPriceHealt.length) {
btnUpHealt.btnText = "Maxed";
}
if (_global.WallDamageUnlocked) {
btnUnlockDmg.btnText = "Done";
}
};
var pathToRoot = _root;
var tooltip_mc;
var paddingX = 0;
var paddingY = 20;
var gameWidth = 800;
var gameHeight = 440;
Instance of Symbol 592 MovieClip "btnWallHealt" in Symbol 631 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_global.Money >= (_global.WallMaxHP - _global.WallCurrentHP)) {
_alpha = 100;
} else {
_alpha = 25;
}
if (act == 2) {
if (_global.Money >= (_global.WallMaxHP - _global.WallCurrentHP)) {
_global.Money = _global.Money - (_global.WallMaxHP - _global.WallCurrentHP);
_root.MoneyBag.play();
_global.WallCurrentHP = _global.WallMaxHP;
_root.SaveGame();
EffectSound = new Sound();
EffectSound.attachSound("sd_WallUps");
EffectSound.start();
} else {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
act = 1;
}
}
Instance of Symbol 594 MovieClip "btnUpHealt" in Symbol 631 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((_global.Money >= _parent.tabPriceHealt[_global.WallUpgrade]) && (_global.WallUpgrade < _parent.tabPriceHealt.length)) {
_alpha = 100;
} else {
_alpha = 25;
}
if (act == 2) {
if ((_global.Money >= _parent.tabPriceHealt[_global.WallUpgrade]) && (_global.WallUpgrade < _parent.tabPriceHealt.length)) {
_global.Money = _global.Money - _parent.tabPriceHealt[_global.WallUpgrade];
_root.MoneyBag.play();
_global.WallUpgrade++;
_global.WallMaxHP = _global.tabWallHealt[_global.WallUpgrade];
_global.WallCurrentHP = _global.WallMaxHP;
_root.SaveGame();
EffectSound = new Sound();
EffectSound.attachSound("sd_Buy2");
EffectSound.start();
} else {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
UpgradeCost = _parent.tabPriceHealt[_global.WallUpgrade];
if (UpgradeCost != undefined) {
_parent.showTooltip2(((("Cost (" + _global.WallUpgrade) + "/") + _parent.tabPriceHealt.length) + ")", UpgradeCost);
}
act = 1;
}
}
Instance of Symbol 596 MovieClip "btnUnlockDmg" in Symbol 631 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((_global.Money >= _parent.DamageUnlockPrice) && (!_global.WallDamageUnlocked)) {
_alpha = 100;
} else {
_alpha = 25;
}
if (act == 2) {
if ((_global.Money >= _parent.DamageUnlockPrice) && (!_global.WallDamageUnlocked)) {
_global.WallDamageUnlocked = true;
_global.Money = _global.Money - _parent.DamageUnlockPrice;
_root.MoneyBag.play();
_root.SaveGame();
EffectSound = new Sound();
EffectSound.attachSound("sd_Buy2");
EffectSound.start();
} else {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
}
act = 1;
}
}
Symbol 631 MovieClip Frame 6
stop();
b1.btnText = "Ok";
b2.btnText = "View Cheats";
Instance of Symbol 105 MovieClip "b1" in Symbol 631 MovieClip Frame 6
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
if (((_parent.CheatInput.text == "th16") || (_parent.CheatInput.text == "41mw")) || (_parent.CheatInput.text == "b4ri")) {
_parent.CheatSuccess.gotoAndPlay(2);
switch (_parent.CheatInput.text) {
case "th16" :
_global.AmmoCheat = true;
break;
case "41mw" :
_global.AccuracyCheat = true;
break;
case "b4ri" :
_global.Money = _global.Money + 10000;
_root.MoneyBag.play();
break;
case "lg14" :
_global.Invincible = true;
break;
case "th22" :
_global.GrenadeCheat = true;
_global.Grenade++;
break;
case "uttm" :
_global.FireRateUpgrade = 6;
_global.UpgradeAccuracy = 4;
_global.UpgradeClipSize = 6;
_global.DamageUpgrade = 9;
_global.ScopeUnlocked = true;
_global.WallUpgrade = 6;
_global.WallDamageUnlocked = true;
_global.NoHealtUpgrade = 8;
}
}
_parent.CheatInput.text = "";
}
}
Instance of Symbol 105 MovieClip "b2" in Symbol 631 MovieClip Frame 6
onClipEvent (enterFrame) {
if (act == 2) {
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
getURL ("http://www.gamesfree.ca/customPage/104/", "_blank");
act = 1;
}
}
Symbol 631 MovieClip Frame 7
stop();
Instance of Symbol 619 MovieClip in Symbol 631 MovieClip Frame 7
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
_parent.gotoAndStop("PlayerUps");
}
}
Instance of Symbol 626 MovieClip in Symbol 631 MovieClip Frame 7
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
_parent.gotoAndStop("WallUps");
}
}
Instance of Symbol 630 MovieClip in Symbol 631 MovieClip Frame 7
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
_parent.gotoAndStop("GunUps");
}
}
Symbol 633 MovieClip Frame 1
stop();
onEnterFrame = function () {
Money = _global.Money;
};
Symbol 645 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 2
stop();
Symbol 647 MovieClip Frame 1
stop();
Symbol 647 MovieClip Frame 2
stop();
Symbol 648 MovieClip Frame 1
stop();
Symbol 648 MovieClip Frame 78
stop();
_global.DamageTaken = _global.StartingLife - _global.PlayerCurrentHP;
_global.WallDmgTaken = _global.WallStartingLife - _global.WallCurrentHP;
_global.noBackground++;
if (_global.noBackground > 3) {
_global.noBackground = 1;
}
_global.FinStage = true;
_global.Level++;
_root.gotoAndStop("Shop");
Symbol 657 MovieClip Frame 1
stop();
Symbol 657 MovieClip Frame 2
stop();
Symbol 660 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 2
stop();
Symbol 663 MovieClip Frame 1
stop();
Symbol 663 MovieClip Frame 2
stop();
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 2
stop();
Symbol 673 MovieClip Frame 3
stop();
Symbol 673 MovieClip Frame 4
stop();
Symbol 673 MovieClip Frame 5
stop();
Symbol 673 MovieClip Frame 6
stop();
Symbol 673 MovieClip Frame 7
stop();
Symbol 673 MovieClip Frame 8
stop();
Symbol 676 MovieClip Frame 1
stop();
Symbol 676 MovieClip Frame 2
stop();
Symbol 679 MovieClip Frame 1
stop();
Symbol 679 MovieClip Frame 2
stop();
Symbol 687 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 2
stop();
Symbol 687 MovieClip Frame 10
gotoAndStop (2);
Symbol 687 MovieClip Frame 18
gotoAndStop ("BubbleOff");
Symbol 690 MovieClip Frame 1
stop();
Symbol 690 MovieClip Frame 2
stop();
Symbol 693 MovieClip Frame 1
stop();
Symbol 693 MovieClip Frame 2
stop();
Symbol 785 MovieClip Frame 1
stop();
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.Dead) {
gotoAndPlay ("Death");
}
Symbol 785 MovieClip Frame 11
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
Symbol 785 MovieClip Frame 33
if (_parent.Walk) {
gotoAndPlay ("Walking");
} else {
gotoAndStop ("Standing");
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
Symbol 785 MovieClip Frame 58
_parent.GunOut = true;
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
Symbol 785 MovieClip Frame 74
gotoAndPlay ("Aim");
Symbol 785 MovieClip Frame 96
stop();
Symbol 785 MovieClip Frame 98
stop();
Symbol 785 MovieClip Frame 99
PistolSound = new Sound();
PistolSound.attachSound("M4");
PistolSound.start();
Symbol 785 MovieClip Frame 102
PistolSound = new Sound();
PistolSound.attachSound("M4");
PistolSound.start();
Symbol 785 MovieClip Frame 105
PistolSound = new Sound();
PistolSound.attachSound("M4");
PistolSound.start();
Symbol 785 MovieClip Frame 108
gotoAndPlay ("FireStanding");
Symbol 785 MovieClip Frame 125
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
Symbol 785 MovieClip Frame 147
gotoAndPlay ("WalkingGun");
Symbol 785 MovieClip Frame 178
gotoAndPlay ("FireStanding");
Symbol 785 MovieClip Frame 187
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
Symbol 785 MovieClip Frame 204
gotoAndPlay ("Crouch");
Symbol 785 MovieClip Frame 205
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
Symbol 785 MovieClip Frame 211
PistolSound = new Sound();
PistolSound.attachSound("M4");
PistolSound.start();
Symbol 785 MovieClip Frame 214
PistolSound = new Sound();
PistolSound.attachSound("M4");
PistolSound.start();
Symbol 785 MovieClip Frame 217
PistolSound = new Sound();
PistolSound.attachSound("M4");
PistolSound.start();
Symbol 785 MovieClip Frame 220
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
Symbol 785 MovieClip Frame 227
stop();
Symbol 785 MovieClip Frame 238
stop();
Symbol 785 MovieClip Frame 239
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
play();
Symbol 785 MovieClip Frame 240
play();
Symbol 785 MovieClip Frame 241
play();
Symbol 785 MovieClip Frame 242
play();
Symbol 785 MovieClip Frame 243
play();
Symbol 785 MovieClip Frame 244
play();
Symbol 785 MovieClip Frame 245
play();
Symbol 785 MovieClip Frame 246
play();
Symbol 785 MovieClip Frame 247
play();
Symbol 785 MovieClip Frame 248
play();
Symbol 785 MovieClip Frame 249
play();
Symbol 785 MovieClip Frame 250
play();
Symbol 785 MovieClip Frame 251
stop();
Symbol 785 MovieClip Frame 259
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
play();
Symbol 785 MovieClip Frame 260
play();
Symbol 785 MovieClip Frame 261
play();
Symbol 785 MovieClip Frame 262
play();
Symbol 785 MovieClip Frame 263
play();
Symbol 785 MovieClip Frame 264
play();
Symbol 785 MovieClip Frame 265
play();
Symbol 785 MovieClip Frame 266
play();
Symbol 785 MovieClip Frame 267
play();
Symbol 785 MovieClip Frame 268
play();
Symbol 785 MovieClip Frame 269
play();
Symbol 785 MovieClip Frame 270
play();
Symbol 785 MovieClip Frame 271
play();
Symbol 785 MovieClip Frame 272
play();
Symbol 785 MovieClip Frame 273
play();
Symbol 785 MovieClip Frame 274
play();
Symbol 785 MovieClip Frame 275
play();
Symbol 785 MovieClip Frame 276
play();
Symbol 785 MovieClip Frame 277
play();
Symbol 785 MovieClip Frame 278
play();
Symbol 785 MovieClip Frame 279
play();
Symbol 785 MovieClip Frame 280
play();
Symbol 785 MovieClip Frame 281
play();
Symbol 785 MovieClip Frame 282
play();
Symbol 785 MovieClip Frame 283
play();
Symbol 785 MovieClip Frame 284
play();
Symbol 785 MovieClip Frame 285
play();
Symbol 785 MovieClip Frame 286
play();
Symbol 785 MovieClip Frame 287
play();
Symbol 785 MovieClip Frame 288
play();
Symbol 785 MovieClip Frame 289
play();
Symbol 785 MovieClip Frame 290
play();
Symbol 785 MovieClip Frame 291
play();
Symbol 785 MovieClip Frame 292
play();
Symbol 785 MovieClip Frame 293
play();
Symbol 785 MovieClip Frame 294
play();
Symbol 785 MovieClip Frame 295
play();
Symbol 785 MovieClip Frame 296
play();
Symbol 785 MovieClip Frame 297
play();
Symbol 785 MovieClip Frame 298
play();
Symbol 785 MovieClip Frame 299
play();
Symbol 785 MovieClip Frame 300
play();
Symbol 785 MovieClip Frame 301
play();
Symbol 785 MovieClip Frame 302
play();
Symbol 785 MovieClip Frame 303
play();
Symbol 785 MovieClip Frame 304
stop();
Symbol 785 MovieClip Frame 317
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
Symbol 785 MovieClip Frame 318
play();
Symbol 785 MovieClip Frame 319
play();
Symbol 785 MovieClip Frame 320
play();
Symbol 785 MovieClip Frame 321
play();
Symbol 785 MovieClip Frame 322
play();
Symbol 785 MovieClip Frame 323
play();
Symbol 785 MovieClip Frame 324
play();
Symbol 785 MovieClip Frame 325
play();
Symbol 785 MovieClip Frame 326
play();
Symbol 785 MovieClip Frame 327
play();
Symbol 785 MovieClip Frame 328
play();
Symbol 785 MovieClip Frame 329
play();
Symbol 785 MovieClip Frame 330
play();
Symbol 785 MovieClip Frame 331
play();
Symbol 785 MovieClip Frame 332
play();
Symbol 785 MovieClip Frame 333
play();
Symbol 785 MovieClip Frame 334
play();
Symbol 785 MovieClip Frame 335
play();
Symbol 785 MovieClip Frame 336
play();
Symbol 785 MovieClip Frame 337
play();
Symbol 785 MovieClip Frame 338
stop();
Symbol 785 MovieClip Frame 351
_parent.ExplosivesOut = true;
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
Symbol 785 MovieClip Frame 375
GNade = _parent.attachMovie("Grenade", "Grenade" + _global.GrenadeCount, 2000 + _global.GrenadeCount);
GrenadeCount++;
GNade.Damage = _parent.Damage;
Symbol 785 MovieClip Frame 384
gotoAndPlay ("FireStanding");
_parent.Strategie = "Kill";
Symbol 785 MovieClip Frame 405
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
Symbol 785 MovieClip Frame 406
play();
Symbol 785 MovieClip Frame 407
play();
Symbol 785 MovieClip Frame 408
play();
Symbol 785 MovieClip Frame 409
play();
Symbol 785 MovieClip Frame 410
play();
Symbol 785 MovieClip Frame 411
play();
Symbol 785 MovieClip Frame 412
play();
Symbol 785 MovieClip Frame 413
play();
Symbol 785 MovieClip Frame 414
play();
Symbol 785 MovieClip Frame 415
play();
Symbol 785 MovieClip Frame 416
play();
Symbol 785 MovieClip Frame 417
play();
Symbol 785 MovieClip Frame 418
play();
Symbol 785 MovieClip Frame 419
play();
Symbol 785 MovieClip Frame 420
play();
Symbol 785 MovieClip Frame 421
play();
Symbol 785 MovieClip Frame 422
play();
Symbol 785 MovieClip Frame 423
play();
Symbol 785 MovieClip Frame 424
play();
Symbol 785 MovieClip Frame 425
play();
Symbol 785 MovieClip Frame 426
play();
Symbol 785 MovieClip Frame 427
play();
Symbol 785 MovieClip Frame 428
play();
Symbol 785 MovieClip Frame 429
play();
Symbol 785 MovieClip Frame 430
play();
Symbol 785 MovieClip Frame 431
play();
Symbol 785 MovieClip Frame 432
play();
Symbol 785 MovieClip Frame 433
play();
Symbol 785 MovieClip Frame 434
play();
Symbol 785 MovieClip Frame 435
play();
Symbol 785 MovieClip Frame 436
play();
Symbol 785 MovieClip Frame 437
play();
Symbol 785 MovieClip Frame 438
play();
Symbol 785 MovieClip Frame 439
play();
Symbol 785 MovieClip Frame 440
play();
Symbol 785 MovieClip Frame 441
play();
Symbol 785 MovieClip Frame 442
play();
Symbol 785 MovieClip Frame 443
play();
Symbol 785 MovieClip Frame 444
play();
Symbol 785 MovieClip Frame 445
play();
Symbol 785 MovieClip Frame 446
play();
Symbol 785 MovieClip Frame 447
play();
Symbol 785 MovieClip Frame 448
play();
Symbol 785 MovieClip Frame 449
play();
Symbol 785 MovieClip Frame 450
play();
Symbol 785 MovieClip Frame 451
play();
Symbol 785 MovieClip Frame 452
play();
Symbol 785 MovieClip Frame 453
play();
Symbol 785 MovieClip Frame 454
play();
Symbol 785 MovieClip Frame 455
play();
Symbol 785 MovieClip Frame 456
if (_parent.HP <= 0) {
play();
} else {
gotoAndPlay(Melee);
}
Symbol 785 MovieClip Frame 457
play();
Symbol 785 MovieClip Frame 458
play();
Symbol 785 MovieClip Frame 459
play();
Symbol 785 MovieClip Frame 460
play();
Symbol 785 MovieClip Frame 461
play();
Symbol 785 MovieClip Frame 462
play();
Symbol 785 MovieClip Frame 463
play();
Symbol 785 MovieClip Frame 464
play();
Symbol 785 MovieClip Frame 465
play();
Symbol 785 MovieClip Frame 466
play();
Symbol 785 MovieClip Frame 467
play();
Symbol 785 MovieClip Frame 468
play();
Symbol 785 MovieClip Frame 469
play();
Symbol 785 MovieClip Frame 470
play();
Symbol 785 MovieClip Frame 471
play();
Symbol 785 MovieClip Frame 472
play();
Symbol 785 MovieClip Frame 473
play();
Symbol 785 MovieClip Frame 474
play();
Symbol 785 MovieClip Frame 475
play();
Symbol 785 MovieClip Frame 476
play();
Symbol 785 MovieClip Frame 477
play();
Symbol 785 MovieClip Frame 478
play();
Symbol 785 MovieClip Frame 479
play();
Symbol 785 MovieClip Frame 480
play();
Symbol 785 MovieClip Frame 481
play();
Symbol 785 MovieClip Frame 482
play();
Symbol 785 MovieClip Frame 483
play();
Symbol 785 MovieClip Frame 484
play();
Symbol 785 MovieClip Frame 485
play();
Symbol 785 MovieClip Frame 486
play();
Symbol 785 MovieClip Frame 487
play();
Symbol 785 MovieClip Frame 488
play();
Symbol 785 MovieClip Frame 489
play();
Symbol 785 MovieClip Frame 490
play();
Symbol 785 MovieClip Frame 491
play();
Symbol 785 MovieClip Frame 492
play();
Symbol 785 MovieClip Frame 493
play();
Symbol 785 MovieClip Frame 494
play();
Symbol 785 MovieClip Frame 495
play();
Symbol 785 MovieClip Frame 496
play();
Symbol 785 MovieClip Frame 497
play();
Symbol 785 MovieClip Frame 498
play();
Symbol 785 MovieClip Frame 499
play();
Symbol 785 MovieClip Frame 500
play();
Symbol 785 MovieClip Frame 501
play();
Symbol 785 MovieClip Frame 502
play();
Symbol 785 MovieClip Frame 503
play();
Symbol 785 MovieClip Frame 504
play();
Symbol 785 MovieClip Frame 505
play();
Symbol 785 MovieClip Frame 506
stop();
Symbol 785 MovieClip Frame 507
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
Symbol 785 MovieClip Frame 508
play();
Symbol 785 MovieClip Frame 509
play();
Symbol 785 MovieClip Frame 510
play();
Symbol 785 MovieClip Frame 511
play();
Symbol 785 MovieClip Frame 512
play();
Symbol 785 MovieClip Frame 513
play();
Symbol 785 MovieClip Frame 514
play();
Symbol 785 MovieClip Frame 515
play();
Symbol 785 MovieClip Frame 516
play();
Symbol 785 MovieClip Frame 517
play();
Symbol 785 MovieClip Frame 518
play();
Symbol 785 MovieClip Frame 519
stop();
Symbol 785 MovieClip Frame 564
b_1.gotoAndStop(_parent.TypeEnnemy);
if (_parent.TypeEnnemy >= 5) {
b_4.gotoAndStop(2);
b_5.gotoAndStop(2);
b_2.gotoAndStop(2);
b_3.gotoAndStop(2);
b_10.gotoAndStop(2);
b_11.gotoAndStop(2);
b_6.gotoAndStop(2);
b_7.gotoAndStop(2);
b_8.gotoAndStop(2);
b_9.gotoAndStop(2);
}
if (_parent.BubbleHP > 0) {
bubble.gotoAndStop(2);
}
Symbol 785 MovieClip Frame 565
play();
Symbol 785 MovieClip Frame 566
play();
Symbol 785 MovieClip Frame 567
play();
Symbol 785 MovieClip Frame 568
play();
Symbol 785 MovieClip Frame 569
play();
Symbol 785 MovieClip Frame 570
play();
Symbol 785 MovieClip Frame 571
play();
Symbol 785 MovieClip Frame 572
play();
Symbol 785 MovieClip Frame 573
play();
Symbol 785 MovieClip Frame 574
play();
Symbol 785 MovieClip Frame 575
play();
Symbol 785 MovieClip Frame 576
play();
Symbol 785 MovieClip Frame 577
play();
Symbol 785 MovieClip Frame 578
play();
Symbol 785 MovieClip Frame 579
play();
Symbol 785 MovieClip Frame 580
play();
Symbol 785 MovieClip Frame 581
play();
Symbol 785 MovieClip Frame 582
play();
Symbol 785 MovieClip Frame 583
play();
Symbol 785 MovieClip Frame 584
play();
Symbol 785 MovieClip Frame 585
play();
Symbol 785 MovieClip Frame 586
play();
Symbol 785 MovieClip Frame 587
play();
Symbol 785 MovieClip Frame 588
play();
Symbol 785 MovieClip Frame 589
_global.WallCurrentHP = _global.WallCurrentHP - (_parent.Damage * 1.5);
_parent._parent.Wall.ShakeNumber = 5;
HitSound = new Sound();
HitSound.attachSound("sd_Elec");
HitSound.start();
if (_global.WallDamageUnlocked && ((_root.Conteneur.Wall.Cloture._currentFrame == 1) || (_root.Conteneur.Wall.Cloture._currentFrame == 2))) {
_parent.HP = _parent.HP - 200;
if (_parent.HP <= 0) {
_global.NbDead++;
_parent.Dead = true;
_parent.Walk = false;
_global.Money = _global.Money + _parent.MoneyValue;
}
gotoAndPlay ("Electrocution");
}
Symbol 785 MovieClip Frame 590
play();
Symbol 785 MovieClip Frame 591
play();
Symbol 785 MovieClip Frame 592
play();
Symbol 785 MovieClip Frame 593
play();
Symbol 785 MovieClip Frame 594
play();
Symbol 785 MovieClip Frame 595
play();
Symbol 785 MovieClip Frame 596
play();
Symbol 785 MovieClip Frame 597
play();
Symbol 785 MovieClip Frame 598
play();
Symbol 785 MovieClip Frame 599
gotoAndPlay(Melee);
Symbol 786 MovieClip Frame 1
stop();
Walk = false;
Dead = false;
Attaking = false;
Active = false;
Strategie = "Erp";
tempsMort = 0;
HP = 100;
BubbleHP = 0;
MoneyValue = 0;
Path = 0;
ExplosivesOut = false;
MeleeOut = false;
GunOut = false;
ReadyToFire = false;
ReadyToHit = false;
Swaped = false;
TypeEnnemy = 1;
Damage = 0;
AtkSpeed = 0;
onEnterFrame = function () {
Mang.b_1.gotoAndStop(TypeEnnemy);
if (TypeEnnemy >= 5) {
Mangb_4.gotoAndStop(2);
Mangb_5.gotoAndStop(2);
Mangb_2.gotoAndStop(2);
Mangb_3.gotoAndStop(2);
Mangb_10.gotoAndStop(2);
Mangb_11.gotoAndStop(2);
Mangb_6.gotoAndStop(2);
Mangb_7.gotoAndStop(2);
Mangb_8.gotoAndStop(2);
Mangb_9.gotoAndStop(2);
}
};
Symbol 790 MovieClip Frame 1
stop();
ShakeNumber = 0;
onEnterFrame = function () {
if (ShakeNumber != 0) {
ShakeNumber = ShakeNumber - 1;
this._x = this._x - (random(ShakeNumber * 1.5) - ShakeNumber);
this._y = this._y - (random(ShakeNumber * 1.5) - ShakeNumber);
}
if (ShakeNumber == 0) {
this._x = 18;
this._y = -1170;
}
if (_global.WallUpgrade >= 1) {
RightUps.gotoAndStop(2);
}
if (_global.WallUpgrade >= 2) {
LeftUps.gotoAndStop(2);
}
if (_global.WallUpgrade >= 3) {
Char.gotoAndStop(2);
}
if (_global.WallDamageUnlocked) {
Cables.gotoAndStop(2);
}
};
Symbol 797 MovieClip Frame 1
stop();
_parent._parent._parent.Flippin = false;
_parent._parent._parent.Reloading = false;
_parent._parent._parent.Hiding = true;
_parent._parent._parent.Nading = false;
_parent._parent._parent.Rolling = false;
gotoAndPlay ("Idle");
Symbol 797 MovieClip Frame 2
_parent._parent._parent.Flippin = true;
Symbol 797 MovieClip Frame 9
stop();
_parent._parent._parent.Flippin = false;
_parent._parent._parent.Hiding = false;
Symbol 797 MovieClip Frame 10
play();
Symbol 797 MovieClip Frame 11
play();
Symbol 797 MovieClip Frame 12
play();
Symbol 797 MovieClip Frame 13
gotoAndPlay ("Looking");
Symbol 797 MovieClip Frame 14
play();
Symbol 797 MovieClip Frame 15
play();
Symbol 797 MovieClip Frame 16
play();
Symbol 797 MovieClip Frame 17
gotoAndPlay ("Looking");
Symbol 797 MovieClip Frame 18
_parent._parent._parent.Flippin = true;
Symbol 797 MovieClip Frame 21
gotoAndStop ("Hidden");
Symbol 797 MovieClip Frame 26
RollSound = new Sound();
RollSound.attachSound("sd_Rolling");
RollSound.start();
Symbol 797 MovieClip Frame 38
gotoAndStop ("Hidden");
Symbol 797 MovieClip Frame 60
GNade = _root.Conteneur.GSpot.attachMovie("GrenadePlayer", "GrenadePlayer" + _global.GrenadeCount, 3000 + _global.GrenadeCount);
GNade._x = (_root.Conteneur._xmouse + random(150)) - 75;
_global.GrenadeCount++;
PistolSound = new Sound();
PistolSound.attachSound("sd_Throw");
PistolSound.start();
Symbol 797 MovieClip Frame 63
gotoAndStop ("Hidden");
Symbol 797 MovieClip Frame 101
stop();
Symbol 797 MovieClip Frame 153
gotoAndStop ("Hidden");
Symbol 797 MovieClip Frame 170
ReloadSound = new Sound();
ReloadSound.attachSound("Reload");
ReloadSound.start();
Symbol 797 MovieClip Frame 182
gotoAndStop ("Hidden");
Symbol 797 MovieClip Frame 228
gotoAndPlay ("Idle");
Symbol 798 MovieClip Frame 1
stop();
Symbol 800 Button
on (press) {
_parent.isMouseDown = true;
}
on (release) {
_parent.isMouseDown = false;
}
Symbol 808 MovieClip Frame 1
stop();
Symbol 811 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 1
stop();
Symbol 817 MovieClip Frame 1
stop();
Symbol 824 MovieClip Frame 1
stop();
Symbol 824 MovieClip Frame 64
stop();
_global.DamageTaken = _global.StartingLife - _global.PlayerCurrentHP;
_global.WallDmgTaken = _global.WallStartingLife - _global.WallCurrentHP;
_global.FinStage = true;
_root.gotoAndStop("Shop");
Symbol 827 MovieClip Frame 1
stop();
onEnterFrame = function () {
if ((((_global.PlayerCurrentHP / _global.PlayerMaxHP) * 100) <= 40) && (((_global.PlayerCurrentHP / _global.PlayerMaxHP) * 100) > 0)) {
gotoAndStop (2);
}
};
Symbol 827 MovieClip Frame 2
Bloody._alpha = 80 - ((_global.PlayerCurrentHP / _global.PlayerMaxHP) * 100);
onEnterFrame = function () {
if ((((_global.PlayerCurrentHP / _global.PlayerMaxHP) * 100) > 40) || (((_global.PlayerCurrentHP / _global.PlayerMaxHP) * 100) <= 0)) {
gotoAndStop (1);
}
};
Symbol 831 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (((_parent.nbEnnemyOnMap / _global.NbEnnemy) * 100) >= 0) {
WaveProgress._yscale = (_parent.nbEnnemyOnMap / _global.NbEnnemy) * 100;
}
};
Symbol 845 MovieClip Frame 1
stop();
Symbol 845 MovieClip Frame 2
stop();
Symbol 845 MovieClip Frame 3
stop();
Symbol 845 MovieClip Frame 4
stop();
Symbol 845 MovieClip Frame 5
stop();
Symbol 845 MovieClip Frame 6
stop();
Symbol 849 MovieClip Frame 1
stop();
Symbol 849 MovieClip Frame 2
stop();
Instance of Symbol 845 MovieClip in Symbol 849 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop ("W");
}
Symbol 849 MovieClip Frame 3
stop();
Instance of Symbol 845 MovieClip in Symbol 849 MovieClip Frame 3
onClipEvent (enterFrame) {
gotoAndStop ("S");
}
Symbol 851 MovieClip Frame 1
stop();
Symbol 879 MovieClip Frame 1
stop();
b1.btnText = "Next";
Instance of Symbol 105 MovieClip "b1" in Symbol 879 MovieClip Frame 1
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
_parent.play();
}
}
Symbol 879 MovieClip Frame 2
stop();
b1.btnText = "Next";
Symbol 879 MovieClip Frame 3
stop();
b1.btnText = "Next";
Symbol 879 MovieClip Frame 4
stop();
b1.btnText = "Next";
Symbol 879 MovieClip Frame 5
stop();
Mouse.hide();
startDrag (_parent.Aim1, true);
Instance of Symbol 845 MovieClip in Symbol 879 MovieClip Frame 5
onClipEvent (enterFrame) {
gotoAndStop ("W");
}
Symbol 879 MovieClip Frame 6
stop();
Instance of Symbol 845 MovieClip in Symbol 879 MovieClip Frame 6
onClipEvent (enterFrame) {
gotoAndStop ("S");
}
Symbol 879 MovieClip Frame 7
stop();
Symbol 879 MovieClip Frame 8
stop();
Symbol 879 MovieClip Frame 9
stop();
Instance of Symbol 845 MovieClip in Symbol 879 MovieClip Frame 9
onClipEvent (enterFrame) {
gotoAndStop ("R");
}
Symbol 879 MovieClip Frame 10
stop();
Instance of Symbol 845 MovieClip in Symbol 879 MovieClip Frame 10
onClipEvent (enterFrame) {
gotoAndStop ("E");
}
Symbol 879 MovieClip Frame 11
stop();
Instance of Symbol 845 MovieClip in Symbol 879 MovieClip Frame 11
onClipEvent (enterFrame) {
gotoAndStop ("D");
}
Symbol 879 MovieClip Frame 12
stop();
Instance of Symbol 845 MovieClip in Symbol 879 MovieClip Frame 12
onClipEvent (enterFrame) {
gotoAndStop ("A");
}
Symbol 879 MovieClip Frame 13
stop();
Mouse.show();
stopDrag();
_parent.Aim1._x = -10000;
_global.NbKills = 0;
b1.btnText = "Finish";
_global.AmmoInClip = 12;
_global.Grenade = 0;
_global.Ammo = 188;
_parent.Explanations = true;
Instance of Symbol 105 MovieClip "b1" in Symbol 879 MovieClip Frame 13
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
EffectSound = new Sound();
EffectSound.attachSound("sd_btnClick");
EffectSound.start();
_global.Level++;
_root.SaveGame();
_root.gotoAndPlay("SHOP");
}
}