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);
}
MochiAd.showPreGameAd({id:"8a3ab5062232ba5c", res:"800x600"});
__com_mochibot__("910af242", this, 10301, true);
_root.lavr = 34;
_root.gore = 1;
function menuChoiceOne() {
getURL ("http://www.pyrozen.com");
}
NewMenu = new ContextMenu();
NewMenu.hideBuiltInItems();
NewMenu.customItems.push(new ContextMenuItem("Pyrozen", menuChoiceOne));
this.menu = NewMenu;
Frame 3
stop();
Frame 19
stop();
onEnterFrame = function () {
if (_root.got2go == 2) {
_root.got2go = 1;
gotoAndStop (20);
}
};
Frame 20
_root.itam_1 = 1;
_root.itam_2 = 2;
_root.itam_3 = 3;
_root.itam_4 = 4;
_root.itam_5 = 5;
_root.itam_6 = 6;
_root.calldedebut = 1;
stop();
Frame 21
stop();
onEnterFrame = function () {
if (_root.got2go == 2) {
_root.got2go = 1;
gotoAndStop (22);
}
};
Frame 22
if (_root.gore == 1) {
_root.sd = 1;
} else {
_root.sd = 2;
}
_root.sd2 = 2;
Frame 26
stop();
trace("C BLANC");
Frame 28
function reloadWeapon() {
if (currentWeapon == 0) {
berettaMag = 15;
} else if (currentWeapon == 1) {
if (deagleAmmo >= 12) {
deagleAmmo = deagleAmmo - (12 - deagleMag);
deagleMag = 12;
}
} else if (currentWeapon == 2) {
if (shotgunAmmo >= 8) {
shotgunAmmo = shotgunAmmo - (8 - shotgunMag);
shotgunMag = 8;
}
} else if (currentWeapon == 3) {
if (uziAmmo >= 30) {
uziAmmo = uziAmmo - (30 - uziMag);
uziMag = 30;
}
} else if (currentWeapon == 4) {
if (m16Ammo >= 30) {
m16Ammo = m16Ammo - (30 - m16Mag);
m16Mag = 30;
}
} else if (currentWeapon == 5) {
if (minigunAmmo >= 50) {
minigunAmmo = minigunAmmo - (50 - minigunMag);
minigunMag = 50;
}
}
reloading = false;
}
function weaponChange(weapon) {
if (((weapon == "beretta") && (beretta == true)) && (currentWeapon != 0)) {
weaponFiringRate = weaponArray[0].firingRate;
weaponDamage = weaponArray[0].damage;
currentWeapon = 0;
character_mc.characterWeapon_mc.gotoAndStop(1);
_reloadHold = 0;
} else if (((weapon == "deagle") && (deagle == true)) && (currentWeapon != 1)) {
weaponFiringRate = weaponArray[1].firingRate;
weaponDamage = weaponArray[1].damage;
currentWeapon = 1;
character_mc.characterWeapon_mc.gotoAndStop(2);
_reloadHold = 0;
} else if (((weapon == "shotgun") && (shotgun == true)) && (currentWeapon != 2)) {
weaponFiringRate = weaponArray[2].firingRate;
weaponDamage = weaponArray[2].damage;
currentWeapon = 2;
character_mc.characterWeapon_mc.gotoAndStop(3);
_reloadHold = 0;
} else if (((weapon == "uzi") && (uzi == true)) && (currentWeapon != 3)) {
weaponFiringRate = weaponArray[3].firingRate;
weaponDamage = weaponArray[3].damage;
currentWeapon = 3;
character_mc.characterWeapon_mc.gotoAndStop(4);
_reloadHold = 0;
} else if (((weapon == "m16") && (m16 == true)) && (currentWeapon != 4)) {
weaponFiringRate = weaponArray[4].firingRate;
weaponDamage = weaponArray[4].damage;
currentWeapon = 4;
character_mc.characterWeapon_mc.gotoAndStop(5);
_reloadHold = 0;
} else if (((weapon == "minigun") && (minigun == true)) && (currentWeapon != 5)) {
weaponFiringRate = weaponArray[5].firingRate;
weaponDamage = weaponArray[5].damage;
currentWeapon = 5;
character_mc.characterWeapon_mc.gotoAndStop(6);
_reloadHold = 0;
}
}
function addCharacterEnterFrame() {
character_mc.onEnterFrame = function () {
if (_root.energy <= 0) {
_root.character_mc.removeMovieClip();
_root.carreEnter_mc.removeMovieClip();
_root.grosseTache_mc.removeMovieClip();
_root.interface_mc.removeMovieClip();
removeZombies();
removeObjects();
gotoAndStop (26);
} else if (bossDead == true) {
_root.character_mc.removeMovieClip();
_root.carreEnter_mc.removeMovieClip();
_root.grosseTache_mc.removeMovieClip();
_root.interface_mc.removeMovieClip();
removeZombies();
removeObjects();
gotoAndStop (27);
} else {
_root.character_mc.swapDepths(_root.getNextHighestDepth());
_root.grosseTache_mc.swapDepths(_root.getNextHighestDepth());
_root.interface_mc.swapDepths(_root.getNextHighestDepth());
}
if (currentLevel == "main") {
if (this.hitTest(lvl_mc.zone2ChangeHit_mc)) {
if (key1 == true) {
nextLevel = "zone2";
zoneChange();
}
} else if (this.hitTest(lvl_mc.zone1ChangeHit_mc)) {
nextLevel = "zone1";
zoneChange();
} else if (this.hitTest(lvl_mc.zone3ChangeHit_mc)) {
if (key2 == true) {
nextLevel = "zone3";
zoneChange();
}
} else if (this.hitTest(lvl_mc.safeHouseChangeHit_mc)) {
nextLevel = "safeHouse";
zoneChange();
} else if (this.hitTest(lvl_mc.armoryChangeHit_mc)) {
nextLevel = "armory";
zoneChange();
} else if (this.hitTest(lvl_mc.bossLairChangeHit_mc)) {
if (key3 == true) {
nextLevel = "bossLair";
zoneChange();
}
}
}
this._rotation = ((Math.atan2(_ymouse - this._y, _xmouse - this._x) * 180) / Math.PI) + 90;
var _local3 = this._x;
var _local8 = (this._x - (this._width / 2)) - 5;
var _local5 = (this._x + (this._width / 2)) + 5;
var _local4 = this._y;
var _local6 = this._y - (this._height / 2);
var _local7 = this._y + (this._height / 2);
if ((((this._x < 0) || (this._x > Stage.width)) || (this._y < 0)) || (this._y > Stage.height)) {
if (currentLevel != "main") {
nextLevel = "main";
zoneChange();
}
}
if (_root.lvl_mc.boundingBox_mc.hitTest(_local8, _local4, true)) {
leftHit = true;
} else {
leftHit = false;
}
if (_root.lvl_mc.boundingBox_mc.hitTest(_local5, _local4, true)) {
rightHit = true;
} else {
rightHit = false;
}
if (_root.lvl_mc.boundingBox_mc.hitTest(_local3, _local6, true)) {
upHit = true;
} else {
upHit = false;
}
if (_root.lvl_mc.boundingBox_mc.hitTest(_local3, _local7, true)) {
downHit = true;
} else {
downHit = false;
}
if (((Key.isDown(65) || (Key.isDown(68))) || (Key.isDown(83))) || (Key.isDown(87))) {
this.gotoAndStop("walk");
} else {
this.gotoAndStop("stand");
}
g = 0;
while (g < enemyArray.length) {
if (character_mc._x == _startingX) {
if (Key.isDown(65)) {
if (leftHit == false) {
enemyArray[g]._x = enemyArray[g]._x + movementSpeed;
}
}
if (Key.isDown(68)) {
if (rightHit == false) {
enemyArray[g]._x = enemyArray[g]._x - movementSpeed;
}
}
}
if (character_mc._y == _startingY) {
if (Key.isDown(87)) {
if (upHit == false) {
enemyArray[g]._y = enemyArray[g]._y + movementSpeed;
}
}
if (Key.isDown(83)) {
if (downHit == false) {
enemyArray[g]._y = enemyArray[g]._y - movementSpeed;
}
}
}
g++;
}
if (Key.isDown(65) && (!_root.lvl_mc.boundingBox_mc.hitTest(_local8, _local4, true))) {
if (lvl_mc._x <= ((lvl_mc._width / 2) - movementSpeed)) {
if (_local3 != _startingX) {
this._x = this._x - movementSpeed;
} else {
lvl_mc._x = lvl_mc._x + movementSpeed;
}
} else {
this._x = this._x - movementSpeed;
}
}
if (Key.isDown(68) && (!_root.lvl_mc.boundingBox_mc.hitTest(_local5, _local4, true))) {
if (lvl_mc._x >= ((((-lvl_mc._width) / 2) + movementSpeed) + Stage.width)) {
if (_local3 != _startingX) {
this._x = this._x + movementSpeed;
} else {
lvl_mc._x = lvl_mc._x - movementSpeed;
}
} else {
this._x = this._x + movementSpeed;
}
}
if (Key.isDown(87) && (!_root.lvl_mc.boundingBox_mc.hitTest(_local3, _local6, true))) {
if (lvl_mc._y <= ((lvl_mc._height / 2) - movementSpeed)) {
if (this._y != _startingY) {
this._y = this._y - movementSpeed;
} else {
lvl_mc._y = lvl_mc._y + movementSpeed;
}
} else {
this._y = this._y - movementSpeed;
}
}
if (Key.isDown(83) && (!_root.lvl_mc.boundingBox_mc.hitTest(_local3, _local7, true))) {
if (lvl_mc._y >= ((((-lvl_mc._height) / 2) + movementSpeed) + Stage.height)) {
if (this._y != _startingY) {
this._y = this._y + movementSpeed;
} else {
lvl_mc._y = lvl_mc._y - movementSpeed;
}
} else {
this._y = this._y + movementSpeed;
}
}
this.onMouseDown = function () {
_root.onEnterFrame = function () {
if (_reloadHold == 0) {
fire();
}
};
};
this.onMouseUp = function () {
delete _root.onEnterFrame;
};
};
}
function addBossListener() {
enterFrameObject3_mc.onEnterFrame = function () {
if (character_mc.hitTest(lvl_mc.bossSpawnHit_mc)) {
delete this.onEnterFrame;
bossSpawn();
}
};
}
function _reloadHoldFn() {
enterFrameObject_mc.onEnterFrame = function () {
if (_reloadHold == Math.round(frameRate / weaponFiringRate)) {
_reloadHold = 0;
delete this.onEnterFrame;
} else {
_reloadHold++;
}
};
}
function fire() {
if ((((((((currentWeapon == 0) && (berettaMag > 0)) || ((currentWeapon == 1) && (deagleMag > 0))) || ((currentWeapon == 2) && (shotgunMag > 0))) || ((currentWeapon == 3) && (uziMag > 0))) || ((currentWeapon == 4) && (m16Mag > 0))) || ((currentWeapon == 5) && (minigunMag > 0))) && (reloading != true)) {
if (currentWeapon == 0) {
berettaMag--;
} else if (currentWeapon == 1) {
deagleMag--;
} else if (currentWeapon == 2) {
shotgunMag--;
} else if (currentWeapon == 3) {
uziMag--;
} else if (currentWeapon == 4) {
m16Mag--;
} else if (currentWeapon == 5) {
minigunMag--;
}
_reloadHoldFn();
bulletName = "bullet" + _bulletNumber;
_bulletNumber++;
this.attachMovie("bullet_mc", bulletName, this.getNextHighestDepth());
var _local6 = {x:weaponArray[currentWeapon].bulletX, y:weaponArray[currentWeapon].bulletY};
character_mc.localToGlobal(_local6);
_root.shooot = 2;
this[bulletName]._rotation = character_mc._rotation;
this[bulletName]._x = _local6.x;
this[bulletName]._y = _local6.y;
this[bulletName].onEnterFrame = function () {
if (_root.lvl_mc.boundingBox_mc.hitTest(this._x, this._y, true)) {
delete this.onEnterFrame;
this.removeMovieClip();
}
if (character_mc._x == _startingX) {
if (Key.isDown(65)) {
if (leftHit == false) {
this._x = this._x + movementSpeed;
}
}
if (Key.isDown(68)) {
if (rightHit == false) {
this._x = this._x - movementSpeed;
}
}
}
if (character_mc._y == _startingY) {
if (Key.isDown(87)) {
if (upHit == false) {
this._y = this._y + movementSpeed;
}
}
if (Key.isDown(83)) {
if (downHit == false) {
this._y = this._y - movementSpeed;
}
}
}
this._x = this._x + (bulletSpeed * Math.sin((Math.PI/180) * this._rotation));
this._y = this._y - (bulletSpeed * Math.cos((Math.PI/180) * this._rotation));
i = 0;
while (i < enemyArray.length) {
if (enemyArray[i].dead != true) {
if (enemyArray[i].hitTest(this._x, this._y)) {
var _local3 = new Object({x:(enemyStatsArray[enemyArray[i].name].upLeftX + enemyStatsArray[enemyArray[i].name].upRightX) / 2, y:enemyStatsArray[enemyArray[i].name].downY});
enemyArray[i].localToGlobal(_local3);
enemyArray[i].health = enemyArray[i].health - weaponDamage;
if (enemyArray[i].health <= 0) {
killZombie(i);
} else if (!lvl_mc.boundingBox_mc.hitTest(_local3.x, _local3.y, true)) {
enemyArray[i]._y = enemyArray[i]._y - (20 * Math.cos((Math.PI/180) * this._rotation));
enemyArray[i]._x = enemyArray[i]._x + (20 * Math.sin((Math.PI/180) * this._rotation));
enemyArray[i].gotoAndStop(3);
enemyArray[i].beingHit = true;
}
this.removeMovieClip();
}
}
i++;
}
};
} else if ((currentWeapon == 0) && (reloading == false)) {
_root.interface_mc.reloadAnim_mc.gotoAndStop(2);
} else if (((currentWeapon == 1) && (deagleAmmo > 0)) && (reloading == false)) {
_root.interface_mc.reloadAnim_mc.gotoAndStop(2);
} else if (((currentWeapon == 2) && (shotgunAmmo > 0)) && (reloading == false)) {
_root.interface_mc.reloadAnim_mc.gotoAndStop(2);
} else if (((currentWeapon == 3) && (uziAmmo > 0)) && (reloading == false)) {
_root.interface_mc.reloadAnim_mc.gotoAndStop(2);
} else if (((currentWeapon == 4) && (m16Ammo > 0)) && (reloading == false)) {
_root.interface_mc.reloadAnim_mc.gotoAndStop(2);
} else if (((currentWeapon == 5) && (minigunAmmo > 0)) && (reloading == false)) {
_root.interface_mc.reloadAnim_mc.gotoAndStop(2);
}
}
function zoneChange() {
if (nextLevel == "beginning") {
beginningSpawn();
} else {
delete character_mc.onEnterFrame;
delete lvl_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
}
}
function mainSpawn() {
lvl_mc.gotoAndStop("main");
if (key3 == true) {
lvl_mc.boundingBox_mc.gotoAndStop("key3");
} else if (key2 == true) {
lvl_mc.boundingBox_mc.gotoAndStop("key2");
} else if (key1 == true) {
lvl_mc.boundingBox_mc.gotoAndStop("key1");
} else {
lvl_mc.boundingBox_mc.gotoAndStop(1);
}
spawnObjects("main");
if (currentLevel == "armory") {
character_mc._x = _startingX;
character_mc._y = _startingY - (Math.round(200 / movementSpeed) * movementSpeed);
lvl_mc._x = mainPositionArray[0].mainX;
lvl_mc._y = mainPositionArray[0].mainY;
} else if (currentLevel == "zone2") {
character_mc._x = _startingX;
character_mc._y = _startingY - (Math.round(200 / movementSpeed) * movementSpeed);
lvl_mc._x = mainPositionArray[1].mainX;
lvl_mc._y = mainPositionArray[1].mainY;
} else if ((currentLevel == "safeHouse") || (currentLevel == "beginning")) {
character_mc._x = _startingX + (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
lvl_mc._x = mainPositionArray[2].mainX;
lvl_mc._y = mainPositionArray[2].mainY;
} else if (currentLevel == "zone1") {
character_mc._x = _startingX + (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
lvl_mc._x = mainPositionArray[3].mainX;
lvl_mc._y = mainPositionArray[3].mainY;
} else if (currentLevel == "zone3") {
character_mc._x = _startingX;
character_mc._y = _startingY + (Math.round(200 / movementSpeed) * movementSpeed);
lvl_mc._x = mainPositionArray[4].mainX;
lvl_mc._y = mainPositionArray[4].mainY;
} else if (currentLevel == "bossLair") {
character_mc._x = _startingX - (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
lvl_mc._x = mainPositionArray[5].mainX;
lvl_mc._y = mainPositionArray[5].mainY;
}
spawnZombie("01", 600, -2100);
spawnZombie("01", 750, -1800);
spawnZombie("01", 1000, -2300);
spawnZombie("01", 600, -1850);
spawnZombie("01", -200, -550);
spawnZombie("01", -200, -750);
spawnZombie("01", -500, 1500);
spawnZombie("01", -350, 1700);
spawnZombie("02", 400, 450);
spawnZombie("02", 500, 550);
spawnZombie("02", 200, 400);
spawnZombie("02", -1100, -1700);
spawnZombie("02", -1100, -1500);
spawnZombie("03", -2350, -1200);
spawnZombie("03", -2150, -1150);
spawnZombie("03", -2400, -1000);
spawnZombie("03", 2360, 350);
spawnZombie("03", 2100, 500);
currentLevel = nextLevel;
}
function armorySpawn() {
spawnObjects("armory");
currentLevel = nextLevel;
lvl_mc.gotoAndStop("armory");
lvl_mc._x = 382;
lvl_mc._y = -598;
character_mc._x = _startingX;
character_mc._y = _startingY + (Math.round(200 / movementSpeed) * movementSpeed);
spawnZombie("01", -400, 350);
spawnZombie("01", -100, 250);
spawnZombie("01", 0, 500);
spawnZombie("01", 200, 200);
spawnZombie("01", 600, 1100);
}
function zone2Spawn() {
spawnObjects("zone2");
currentLevel = nextLevel;
lvl_mc.gotoAndStop("zone2");
lvl_mc._x = 662;
lvl_mc._y = -2272;
character_mc._x = _startingX;
character_mc._y = _startingY + (Math.round(200 / movementSpeed) * movementSpeed);
spawnZombie("02", 450, 150);
spawnZombie("02", 300, 300);
spawnZombie("02", 50, 150);
spawnZombie("02", 400, 500);
spawnZombie("02", 300, 700);
spawnZombie("02", -1550, -1300);
spawnZombie("02", -1100, -1400);
spawnZombie("02", -1200, -1200);
spawnZombie("02", -800, -1000);
spawnZombie("02", -250, -1000);
spawnZombie("02", -450, -1200);
spawnZombie("02", -500, -1500);
spawnZombie("02", -500, -2000);
spawnZombie("03", 1050, 250);
spawnZombie("03", 1200, 650);
spawnZombie("01", -350, 900);
spawnZombie("01", -250, 1200);
spawnZombie("01", -450, 1400);
spawnZombie("01", -400, 1600);
spawnZombie("02", -1250, -400);
spawnZombie("02", -800, -500);
spawnZombie("02", 500, -2150);
spawnZombie("02", 800, -2400);
spawnZombie("02", 1100, -2150);
spawnZombie("02", 200, -2400);
spawnZombie("02", 600, -2100);
}
function zone1Spawn() {
spawnObjects("zone1");
character_mc._x = _startingX - (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
currentLevel = nextLevel;
lvl_mc.gotoAndStop("zone1");
lvl_mc._x = 3196;
lvl_mc._y = 295;
spawnZombie("01", -1300, -100);
spawnZombie("01", -1100, -200);
spawnZombie("01", 200, -1400);
spawnZombie("01", 400, -1250);
spawnZombie("01", 550, 1050);
spawnZombie("01", 700, 1050);
spawnZombie("01", 950, 1200);
spawnZombie("01", -2000, 2050);
spawnZombie("01", -1900, 2200);
spawnZombie("01", -1800, 2100);
}
function zone3Spawn() {
spawnObjects("zone3");
currentLevel = nextLevel;
lvl_mc.gotoAndStop("zone3");
lvl_mc._x = 2057;
lvl_mc._y = 2515;
character_mc._x = _startingX;
character_mc._y = _startingY - (Math.round(200 / movementSpeed) * movementSpeed);
spawnZombie("02", -2300, -150);
spawnZombie("02", -2200, -50);
spawnZombie("01", -2300, 2050);
spawnZombie("01", -2150, 1950);
spawnZombie("01", -2000, 1850);
spawnZombie("03", 200, 1900);
spawnZombie("02", 2300, -950);
spawnZombie("02", 2350, -750);
spawnZombie("02", 2250, -650);
spawnZombie("03", 1500, 1050);
spawnZombie("03", 1850, 850);
spawnZombie("03", 600, -700);
spawnZombie("02", -200, 400);
spawnZombie("02", 0, 450);
spawnZombie("02", 300, 350);
spawnZombie("02", 600, 400);
spawnZombie("02", 150, -2400);
spawnZombie("02", 500, -2150);
spawnZombie("02", 700, -2350);
}
function bossLairSpawn() {
spawnObjects("bossLair");
addBossListener();
currentLevel = nextLevel;
lvl_mc.gotoAndStop("bossLair");
lvl_mc._x = -2078;
lvl_mc._y = 224;
character_mc._x = _startingX + (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
spawnZombie("03", 900, -1250);
spawnZombie("03", 1000, -1250);
spawnZombie("03", 1200, -1200);
spawnZombie("02", 2100, -1150);
spawnZombie("02", 2250, -1100);
spawnZombie("02", 2000, -900);
spawnZombie("02", 2450, -950);
spawnZombie("01", 1250, 1350);
spawnZombie("01", 1350, 1050);
spawnZombie("01", 1500, 1350);
spawnZombie("01", 2200, 750);
spawnZombie("01", 2450, 900);
spawnZombie("01", 2500, 1050);
}
function bossSpawn() {
spawnZombie("04", -2400, -50);
}
function beginningSpawn() {
addCharacterEnterFrame();
currentLevel = nextLevel;
lvl_mc.gotoAndStop("safeHouse");
lvl_mc._x = -597;
lvl_mc._y = -178;
spawnZombie("01", -700, 150);
spawnZombie("01", -850, 250);
spawnZombie("01", -700, 500);
}
function safeHouseSpawn() {
currentLevel = nextLevel;
lvl_mc.gotoAndStop("safeHouse");
character_mc._x = _startingX - (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
lvl_mc._x = 1395;
lvl_mc._y = -512;
spawnZombie("01", -700, 150);
spawnZombie("01", -850, 250);
spawnZombie("01", -700, 500);
}
function spawnZombie(zombieType, zombieX, zombieY) {
if (zombieType == "01") {
var _local4 = "zombie01" + _zombieNumber;
_root.attachMovie("zombie01_mc", _local4, this.getNextHighestDepth());
this[_local4].health = enemyStatsArray[0].health;
this[_local4].name = 0;
} else if (zombieType == "02") {
var _local4 = "zombie02" + _zombieNumber;
_root.attachMovie("zombie02_mc", _local4, this.getNextHighestDepth());
this[_local4].health = enemyStatsArray[1].health;
this[_local4].name = 1;
} else if (zombieType == "03") {
var _local4 = "zombie03" + _zombieNumber;
_root.attachMovie("zombie03_mc", _local4, this.getNextHighestDepth());
this[_local4].health = enemyStatsArray[2].health;
this[_local4].name = 2;
} else if (zombieType == "04") {
var _local4 = "zombie04" + _zombieNumber;
_root.attachMovie("zombie04_mc", _local4, this.getNextHighestDepth());
this[_local4].health = enemyStatsArray[3].health;
this[_local4].name = 3;
}
var _local5 = {x:zombieX, y:zombieY};
lvl_mc.localToGlobal(_local5);
_zombieNumber++;
enemyArray.push(this[_local4]);
this[_local4]._x = _local5.x;
this[_local4]._y = _local5.y;
this[_local4].beingHit = false;
this[_local4].characterTest = 0;
this[_local4].attackState = 0;
this[_local4].gotoAndStop(2);
this[_local4].onEnterFrame = function () {
if (this.dead != true) {
var _local3 = new Array({x:enemyStatsArray[this.name].upLeftX, y:enemyStatsArray[this.name].upY}, {x:enemyStatsArray[this.name].upRightX, y:enemyStatsArray[this.name].upY}, {x:(enemyStatsArray[this.name].upLeftX + enemyStatsArray[this.name].upRightX) / 2, y:enemyStatsArray[this.name].upY});
var _local4 = new Object({x:0, y:0});
j = 0;
while (j < _local3.length) {
this.localToGlobal(_local3[j]);
j++;
}
this.localToGlobal(_local4);
this._rotation = ((Math.atan2(character_mc._y - this._y, character_mc._x - this._x) * 180) / Math.PI) + 90;
if (_root.character_mc.hitTest(_local4.x, _local4.y, true) || (_root.character_mc.hitTest(_local3[2].x, _local3[0].y, true))) {
if (this.attackState == 0) {
this.characterTest = 1;
this.attackState = 1;
this.gotoAndStop(4);
}
}
if (((((this._x >= -50) && (this._x <= 850)) && (this._y >= -50)) && (this._y <= 650)) || (this.name == 3)) {
if ((!_root.lvl_mc.boundingBox_mc.hitTest(_local3[0].x, _local3[0].y - (enemyStatsArray[this.name].movementSpeed * Math.cos((Math.PI/180) * this._rotation)), true)) && (!_root.lvl_mc.boundingBox_mc.hitTest(_local3[1].x, _local3[1].y - (enemyStatsArray[this.name].movementSpeed * Math.cos((Math.PI/180) * this._rotation)), true))) {
if ((this.characterTest == 0) && (this.beingHit == false)) {
this._y = this._y - (enemyStatsArray[this.name].movementSpeed * Math.cos((Math.PI/180) * this._rotation));
this.gotoAndStop(2);
}
}
if ((!_root.lvl_mc.boundingBox_mc.hitTest(_local3[0].x + (enemyStatsArray[this.name].movementSpeed * Math.sin((Math.PI/180) * this._rotation)), _local3[0].y, true)) && (!_root.lvl_mc.boundingBox_mc.hitTest(_local3[1].x + (enemyStatsArray[this.name].movementSpeed * Math.sin((Math.PI/180) * this._rotation)), _local3[1].y, true))) {
if ((this.characterTest == 0) && (this.beingHit == false)) {
this._x = this._x + (enemyStatsArray[this.name].movementSpeed * Math.sin((Math.PI/180) * this._rotation));
this.gotoAndStop(2);
}
}
} else {
this.gotoAndStop(1);
}
}
};
}
function killZombie(zombieArrayPos) {
enemyArray[zombieArrayPos].dead = true;
enemyArray[zombieArrayPos].gotoAndStop(5);
}
function removeZombies() {
w = 0;
while (w < enemyArray.length) {
enemyArray[w].removeMovieClip();
enemyArray.splice(w, 0);
w++;
}
}
function removeObjects() {
sd = 0;
while (sd < objectsArray.length) {
objectsArray[sd].removeMovieClip();
objectsArray.splice(sd, 0);
sd++;
}
}
function spawnObjects(zone) {
if (zone == "main") {
var _local3 = 0;
while (_local3 < mainObjectsArray.length) {
if (mainObjectsArray[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(mainObjectsArray[_local3].mcType, _local4, _root.lvl_mc.getNextHighestDepth());
objectsSpawned++;
objectsArray.push(_root.lvl_mc[_local4]);
_root.lvl_mc[_local4].arrayPlace = _local3;
_root.lvl_mc[_local4]._x = mainObjectsArray[_local3].mcX;
_root.lvl_mc[_local4]._y = mainObjectsArray[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
mainObjectsArray[this.arrayPlace].taken = "yes";
if (mainObjectsArray[this.arrayPlace].mcType == "medPack_mc") {
medPack++;
} else if (mainObjectsArray[this.arrayPlace].mcType == "key1_mc") {
lvl_mc.boundingBox_mc.gotoAndStop("key1");
key1 = true;
} else if (mainObjectsArray[this.arrayPlace].mcType == "deagleSide_mc") {
deagle = true;
deagleMag = 12;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
} else if (zone == "zone2") {
var _local3 = 0;
while (_local3 < zone2ObjectsArray.length) {
if (zone2ObjectsArray[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(zone2ObjectsArray[_local3].mcType, _local4, _root.lvl_mc.getNextHighestDepth());
objectsSpawned++;
objectsArray.push(_root.lvl_mc[_local4]);
_root.lvl_mc[_local4].arrayPlace = _local3;
_root.lvl_mc[_local4]._x = zone2ObjectsArray[_local3].mcX;
_root.lvl_mc[_local4]._y = zone2ObjectsArray[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
zone2ObjectsArray[this.arrayPlace].taken = "yes";
if (zone2ObjectsArray[this.arrayPlace].mcType == "key2_mc") {
key2 = true;
} else if (zone2ObjectsArray[this.arrayPlace].mcType == "deagleAmmo_mc") {
deagleAmmo = deagleAmmo + 12;
} else if (zone2ObjectsArray[this.arrayPlace].mcType == "shotgunSide_mc") {
shotgun = true;
shotgunMag = 8;
} else if (zone2ObjectsArray[this.arrayPlace].mcType == "shotgunAmmo_mc") {
shotgunAmmo = shotgunAmmo + 8;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
} else if (zone == "zone3") {
var _local3 = 0;
while (_local3 < zone3ObjectsArray.length) {
if (zone3ObjectsArray[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(zone3ObjectsArray[_local3].mcType, _local4, _root.lvl_mc.getNextHighestDepth());
objectsSpawned++;
objectsArray.push(_root.lvl_mc[_local4]);
_root.lvl_mc[_local4].arrayPlace = _local3;
_root.lvl_mc[_local4]._x = zone3ObjectsArray[_local3].mcX;
_root.lvl_mc[_local4]._y = zone3ObjectsArray[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
zone3ObjectsArray[this.arrayPlace].taken = "yes";
if (zone3ObjectsArray[this.arrayPlace].mcType == "medPack_mc") {
medPack++;
} else if (zone3ObjectsArray[this.arrayPlace].mcType == "key3_mc") {
key3 = true;
} else if (zone3ObjectsArray[this.arrayPlace].mcType == "deagleAmmo_mc") {
deagleAmmo = deagleAmmo + 12;
} else if (zone3ObjectsArray[this.arrayPlace].mcType == "uziSide_mc") {
uzi = true;
uziMag = 30;
} else if (zone3ObjectsArray[this.arrayPlace].mcType == "uziAmmo_mc") {
uziAmmo = uziAmmo + 30;
} else if (zone3ObjectsArray[this.arrayPlace].mcType == "shotgunAmmo_mc") {
shotgunAmmo = shotgunAmmo + 8;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
} else if (zone == "bossLair") {
var _local3 = 0;
while (_local3 < bossLairObjectsArray.length) {
if (bossLairObjectsArray[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(bossLairObjectsArray[_local3].mcType, _local4, _root.lvl_mc.getNextHighestDepth());
objectsSpawned++;
objectsArray.push(_root.lvl_mc[_local4]);
_root.lvl_mc[_local4].arrayPlace = _local3;
_root.lvl_mc[_local4]._x = bossLairObjectsArray[_local3].mcX;
_root.lvl_mc[_local4]._y = bossLairObjectsArray[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
bossLairObjectsArray[this.arrayPlace].taken = "yes";
if (bossLairObjectsArray[this.arrayPlace].mcType == "medPack_mc") {
medPack++;
} else if (bossLairObjectsArray[this.arrayPlace].mcType == "deagleAmmo_mc") {
deagleAmmo = deagleAmmo + 12;
} else if (bossLairObjectsArray[this.arrayPlace].mcType == "m16Side_mc") {
m16 = true;
m16Mag = 30;
} else if (bossLairObjectsArray[this.arrayPlace].mcType == "m16Ammo_mc") {
m16Ammo = m16Ammo + 30;
} else if (bossLairObjectsArray[this.arrayPlace].mcType == "shotgunAmmo_mc") {
shotgunAmmo = shotgunAmmo + 8;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
} else if (zone == "armory") {
var _local3 = 0;
while (_local3 < armoryObjectsArray.length) {
if (armoryObjectsArray[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(armoryObjectsArray[_local3].mcType, _local4, _root.lvl_mc.getNextHighestDepth());
objectsSpawned++;
objectsArray.push(_root.lvl_mc[_local4]);
_root.lvl_mc[_local4].arrayPlace = _local3;
_root.lvl_mc[_local4]._x = armoryObjectsArray[_local3].mcX;
_root.lvl_mc[_local4]._y = armoryObjectsArray[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
if (armoryObjectsArray[this.arrayPlace].mcType == "m16Ammo_mc") {
m16Ammo = m16Ammo + 30;
} else if (armoryObjectsArray[this.arrayPlace].mcType == "deagleAmmo_mc") {
deagleAmmo = deagleAmmo + 12;
} else if (armoryObjectsArray[this.arrayPlace].mcType == "minigunSide_mc") {
armoryObjectsArray[this.arrayPlace].taken = "yes";
minigun = true;
minigunMag = 50;
} else if (armoryObjectsArray[this.arrayPlace].mcType == "uziAmmo_mc") {
uziAmmo = uziAmmo + 30;
} else if (armoryObjectsArray[this.arrayPlace].mcType == "shotgunAmmo_mc") {
shotgunAmmo = shotgunAmmo + 8;
} else if (armoryObjectsArray[this.arrayPlace].mcType == "minigunAmmo_mc") {
minigunAmmo = minigunAmmo + 8;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
}
}
stop();
var frameRate = 48;
var currentLevel = "";
var nextLevel = "beginning";
var bossDead = false;
var zombie01Attack = 10;
var zombie02Attack = 20;
var zombie03Attack = 30;
var zombie04Attack = 50;
var ammo = 0;
var mag = 0;
_root.attachMovie("character_mc", "character_mc", _root.getNextHighestDepth());
_root.attachMovie("interface_mc", "interface_mc", _root.getNextHighestDepth());
_root.attachMovie("carreEnter_mc", "carreEnter_mc", _root.getNextHighestDepth());
_root.attachMovie("grosseTache_mc", "grosseTache_mc", _root.getNextHighestDepth());
grosseTache_mc._x = -827.5;
grosseTache_mc._y = -848.9;
grosseTache_mc._height = 2417.9;
grosseTache_mc._width = 2768.3;
carreEnter_mc._x = -1500;
character_mc._x = 376.8;
character_mc._y = 307;
character_mc._xscale = character_mc._xscale * 0.65;
character_mc._yscale = character_mc._yscale * 0.65;
interface_mc._x = 27.5;
interface_mc._y = 23;
carreEnter_mc.onEnterFrame = function () {
if (currentWeapon == 0) {
mag = berettaMag;
ammo = 999;
} else if (currentWeapon == 1) {
mag = deagleMag;
ammo = deagleAmmo;
} else if (currentWeapon == 2) {
mag = shotgunMag;
ammo = shotgunAmmo;
} else if (currentWeapon == 3) {
mag = uziMag;
ammo = uziAmmo;
} else if (currentWeapon == 4) {
mag = m16Mag;
ammo = m16Ammo;
} else if (currentWeapon == 5) {
mag = minigunMag;
ammo = minigunAmmo;
}
};
var reloading = false;
var beretta = true;
var m16 = false;
var shotgun = false;
var minigun = false;
var uzi = false;
var deagle = false;
var key1 = false;
var key2 = false;
var key3 = false;
var m16Ammo = 0;
var shotgunAmmo = 0;
var minigunAmmo = 0;
var uziAmmo = 0;
var deagleAmmo = 0;
var berettaMag = 15;
var m16Mag = 0;
var shotgunMag = 0;
var minigunMag = 0;
var uziMag = 0;
var deagleMag = 0;
var medPack = 1;
var energy = 100;
var movementSpeed = 5;
var weaponFiringRate = 7;
var bulletSpeed = 30;
var weaponDamage = 3;
var currentWeapon = 0;
var leftHit = false;
var rightHit = false;
var upHit = false;
var downHit = false;
var bossLairObjectsArray = new Array({mcType:"m16Ammo_mc", mcX:-1654, mcY:-1262, taken:"no"}, {mcType:"shotgunAmmo_mc", mcX:-261, mcY:-868, taken:"no"}, {mcType:"medPack_mc", mcX:-2575, mcY:982, taken:"no"}, {mcType:"uziAmmo_mc", mcX:-310, mcY:1360, taken:"no"}, {mcType:"m16Side_mc", mcX:1200, mcY:-1271, taken:"no"}, {mcType:"deagleAmmo_mc", mcX:1003, mcY:1360, taken:"no"}, {mcType:"medPack_mc", mcX:2137, mcY:1410, taken:"no"});
var mainObjectsArray = new Array({mcType:"medPack_mc", mcX:-1800, mcY:1500, taken:"no"}, {mcType:"deagleSide_mc", mcX:2350, mcY:-400, taken:"no"}, {mcType:"key1_mc", mcX:2250, mcY:-150, taken:"no"});
var armoryObjectsArray = new Array({mcType:"m16Ammo_mc", mcX:-400, mcY:600}, {mcType:"shotgunAmmo_mc", mcX:-400, mcY:900}, {mcType:"minigunAmmo_mc", mcX:400, mcY:300}, {mcType:"uziAmmo_mc", mcX:400, mcY:600}, {mcType:"deagleAmmo_mc", mcX:400, mcY:900}, {mcType:"minigunSide_mc", mcX:0, mcY:-650, taken:"no"});
var zone2ObjectsArray = new Array({mcType:"shotgunAmmo_mc", mcX:-1250, mcY:-2350, taken:"no"}, {mcType:"key2_mc", mcX:-1250, mcY:-1750, taken:"no"}, {mcType:"shotgunSide_mc", mcX:1200, mcY:-500, taken:"no"}, {mcType:"deagleAmmo_mc", mcX:-350, mcY:800, taken:"no"});
var zone3ObjectsArray = new Array({mcType:"medPack_mc", mcX:600, mcY:-700, taken:"no"}, {mcType:"key3_mc", mcX:100, mcY:-400, taken:"no"}, {mcType:"uziSide_mc", mcX:-1250, mcY:800, taken:"no"}, {mcType:"uziAmmo_mc", mcX:850, mcY:1850, taken:"no"}, {mcType:"medPack_mc", mcX:-800, mcY:2250, taken:"no"}, {mcType:"deagleAmmo_mc", mcX:-1600, mcY:2200, taken:"no"}, {mcType:"shotgunAmmo_mc", mcX:-2300, mcY:2200, taken:"no"});
var currentObjects = new Array();
var mainPositionArray = new Array({mainX:2120, mainY:2514}, {mainX:-303, mainY:2514}, {mainX:-1702, mainY:2226}, {mainX:-1705, mainY:348}, {mainX:2085, mainY:-1914}, {mainX:2514, mainY:532});
var weaponArray = new Array({firingRate:5, damage:3, bulletX:10, bulletY:-100}, {firingRate:4, damage:5, bulletX:10, bulletY:-100}, {firingRate:2, damage:12, bulletX:10, bulletY:-100}, {firingRate:20, damage:2, bulletX:10, bulletY:-100}, {firingRate:7, damage:7, bulletX:10, bulletY:-100}, {firingRate:20, damage:9, bulletX:10, bulletY:-100});
var enemyStatsArray = new Array({health:10, damage:2, movementSpeed:1, upLeftX:-25, upRightX:29, upY:-40, downY:17}, {health:30, damage:4, movementSpeed:3, upLeftX:-30, upRightX:31, upY:-35, downY:20}, {health:20, damage:6, movementSpeed:4, upLeftX:-20, upRightX:20, upY:-40, downY:20}, {health:300, damage:25, movementSpeed:6, upLeftX:-53, upRightX:52, upY:-91, downY:30});
var _startingX = character_mc._x;
var _startingY = character_mc._y;
var _reloadHold = 0;
var _bulletNumber = 0;
var _zombieNumber = 0;
var enemyArray = new Array();
var objectsArray = new Array();
var timer01 = 0;
var timer02 = 0;
var timer03 = 0;
var zombieSpawned = 0;
var objectsSpawned = 0;
var keyListener = new Object();
keyListener.onKeyDown = function () {
if ((chr(Key.getAscii()) == 1) && (reloading == false)) {
weaponChange("beretta");
} else if ((chr(Key.getAscii()) == 2) && (reloading == false)) {
weaponChange("deagle");
} else if ((chr(Key.getAscii()) == 3) && (reloading == false)) {
weaponChange("shotgun");
} else if ((chr(Key.getAscii()) == 4) && (reloading == false)) {
weaponChange("uzi");
} else if ((chr(Key.getAscii()) == 5) && (reloading == false)) {
weaponChange("m16");
} else if ((chr(Key.getAscii()) == 6) && (reloading == false)) {
weaponChange("minigun");
} else if ((Key.getAscii() == 32) && (reloading == false)) {
if (((currentWeapon == 0) && (berettaMag != 15)) && (berettaAmmo != 0)) {
reloading = true;
interface_mc.reloadAnim_mc.gotoAndPlay(3);
} else if (((currentWeapon == 1) && (deagleMag != 12)) && (deagleAmmo != 0)) {
reloading = true;
interface_mc.reloadAnim_mc.gotoAndPlay(3);
} else if (((currentWeapon == 2) && (shotgunMag != 12)) && (shotgunAmmo != 0)) {
reloading = true;
interface_mc.reloadAnim_mc.gotoAndPlay(3);
} else if (((currentWeapon == 3) && (uziMag != 12)) && (uziAmmo != 0)) {
reloading = true;
interface_mc.reloadAnim_mc.gotoAndPlay(3);
} else if (((currentWeapon == 4) && (m16Mag != 12)) && (m16Ammo != 0)) {
reloading = true;
interface_mc.reloadAnim_mc.gotoAndPlay(3);
} else if (((currentWeapon == 5) && (minigunMag != 12)) && (minigunAmmo != 0)) {
reloading = true;
interface_mc.reloadAnim_mc.gotoAndPlay(3);
}
}
};
Key.addListener(keyListener);
zoneChange();
Symbol 15 MovieClip Frame 4
this._parent.beingHit = false;
this.gotoAndStop(1);
this._parent.gotoAndStop(2);
Symbol 16 MovieClip Frame 7
if (this._parent.hitTest(_root.character_mc)) {
_root.energy = _root.energy - _root.zombie04Attack;
}
Symbol 16 MovieClip Frame 21
if (this._parent.hitTest(_root.character_mc)) {
_root.energy = _root.energy - _root.zombie04Attack;
}
Symbol 16 MovieClip Frame 30
this._parent.characterTest = 0;
this._parent.attackState = 0;
this._parent.gotoAndStop(1);
Symbol 21 MovieClip Frame 1
aa = random(4) + 1;
Symbol 21 MovieClip Frame 3
gotoAndStop(aa + 2);
Symbol 21 MovieClip Frame 6
stop();
Symbol 32 MovieClip Frame 15
stop();
Symbol 33 MovieClip Frame 250
_root.bossDead = true;
stop();
Symbol 34 MovieClip [zombie04_mc] Frame 1
stop();
Symbol 34 MovieClip [zombie04_mc] Frame 3
trace("3");
Symbol 34 MovieClip [zombie04_mc] Frame 4
zombie014_mc.gotoAndPlay(2);
Symbol 46 MovieClip Frame 1
aa = random(110) + 6;
Symbol 46 MovieClip Frame 2
gotoAndPlay(aa);
Symbol 46 MovieClip Frame 120
gotoAndPlay (3);
Symbol 51 MovieClip Frame 2
aa2 = random(350) + 4;
Symbol 51 MovieClip Frame 3
gotoAndPlay(aa2);
Symbol 51 MovieClip Frame 400
aa = random(4) + 1;
Symbol 51 MovieClip Frame 401
gotoAndPlay((aa * 2) + 400);
Symbol 51 MovieClip Frame 403
gotoAndPlay (2);
Symbol 51 MovieClip Frame 405
gotoAndPlay (2);
Symbol 51 MovieClip Frame 407
gotoAndPlay (2);
Symbol 51 MovieClip Frame 409
gotoAndPlay (2);
Symbol 57 MovieClip Frame 15
stop();
Symbol 58 MovieClip Frame 15
this._parent.beingHit = false;
this.gotoAndStop(1);
this._parent.gotoAndStop(2);
Symbol 59 MovieClip Frame 15
if (this._parent.hitTest(_root.character_mc)) {
_root.energy = _root.energy - _root.zombie03Attack;
}
Symbol 59 MovieClip Frame 30
this._parent.characterTest = 0;
this._parent.attackState = 0;
this._parent.gotoAndStop(1);
Symbol 62 MovieClip Frame 1
aa = random(4) + 1;
Symbol 62 MovieClip Frame 3
gotoAndStop(aa + 2);
Symbol 62 MovieClip Frame 6
stop();
Symbol 72 MovieClip Frame 250
stop();
Symbol 73 MovieClip [zombie03_mc] Frame 1
stop();
Symbol 73 MovieClip [zombie03_mc] Frame 4
zombie014_mc.gotoAndPlay(2);
Symbol 77 MovieClip Frame 3
_root.damsg = 2;
_root.damsg2 = 2;
Symbol 77 MovieClip Frame 21
stop();
Symbol 78 MovieClip [uziSide_mc] Frame 1
stop();
Symbol 78 MovieClip [uziSide_mc] Frame 2
stop();
Symbol 81 MovieClip Frame 3
_root.damsg = 4;
_root.damsg2 = 2;
Symbol 81 MovieClip Frame 21
stop();
Symbol 82 MovieClip [shotgunSide_mc] Frame 1
stop();
Symbol 82 MovieClip [shotgunSide_mc] Frame 2
stop();
Symbol 85 MovieClip Frame 3
_root.damsg = 3;
_root.damsg2 = 2;
Symbol 85 MovieClip Frame 21
stop();
Symbol 86 MovieClip [minigunSide_mc] Frame 1
stop();
Symbol 86 MovieClip [minigunSide_mc] Frame 2
stop();
Symbol 89 MovieClip Frame 3
_root.damsg = 5;
_root.damsg2 = 2;
Symbol 89 MovieClip Frame 21
stop();
Symbol 90 MovieClip [m16Side_mc] Frame 1
stop();
Symbol 90 MovieClip [m16Side_mc] Frame 2
stop();
Symbol 95 MovieClip Frame 3
_root.damsg = 1;
_root.damsg2 = 2;
Symbol 95 MovieClip Frame 21
stop();
Symbol 96 MovieClip [deagleSide_mc] Frame 1
stop();
Symbol 96 MovieClip [deagleSide_mc] Frame 2
stop();
Symbol 102 MovieClip Frame 3
_root.damsg = 12;
_root.damsg2 = 2;
Symbol 102 MovieClip Frame 21
stop();
Symbol 103 MovieClip [medPack_mc] Frame 1
stop();
Symbol 103 MovieClip [medPack_mc] Frame 2
stop();
Symbol 106 MovieClip Frame 3
_root.damsg = 8;
_root.damsg2 = 2;
Symbol 106 MovieClip Frame 21
stop();
Symbol 107 MovieClip [shotgunAmmo_mc] Frame 1
stop();
Symbol 107 MovieClip [shotgunAmmo_mc] Frame 2
stop();
Symbol 110 MovieClip Frame 3
_root.damsg = 6;
_root.damsg2 = 2;
Symbol 110 MovieClip Frame 21
stop();
Symbol 111 MovieClip [berettaAmmo_mc] Frame 1
stop();
Symbol 111 MovieClip [berettaAmmo_mc] Frame 2
stop();
Symbol 114 MovieClip Frame 3
_root.damsg = 7;
_root.damsg2 = 2;
Symbol 114 MovieClip Frame 21
stop();
Symbol 115 MovieClip [m16Ammo_mc] Frame 1
stop();
Symbol 115 MovieClip [m16Ammo_mc] Frame 2
stop();
Symbol 118 MovieClip Frame 3
_root.damsg = 10;
_root.damsg2 = 2;
Symbol 118 MovieClip Frame 21
stop();
Symbol 119 MovieClip [uziAmmo_mc] Frame 1
stop();
Symbol 119 MovieClip [uziAmmo_mc] Frame 2
stop();
Symbol 122 MovieClip Frame 3
_root.damsg = 9;
_root.damsg2 = 2;
Symbol 122 MovieClip Frame 21
stop();
Symbol 123 MovieClip [minigunAmmo_mc] Frame 1
stop();
Symbol 123 MovieClip [minigunAmmo_mc] Frame 2
stop();
Symbol 126 MovieClip Frame 3
_root.damsg = 11;
_root.damsg2 = 2;
Symbol 126 MovieClip Frame 21
stop();
Symbol 127 MovieClip [deagleAmmo_mc] Frame 1
stop();
Symbol 127 MovieClip [deagleAmmo_mc] Frame 2
stop();
Symbol 130 MovieClip Frame 3
_root.damsg = 15;
_root.damsg2 = 2;
Symbol 130 MovieClip Frame 21
stop();
Symbol 131 MovieClip [key3_mc] Frame 1
stop();
Symbol 131 MovieClip [key3_mc] Frame 2
stop();
Symbol 135 MovieClip Frame 3
_root.damsg = 14;
_root.damsg2 = 2;
Symbol 135 MovieClip Frame 21
stop();
Symbol 136 MovieClip [key2_mc] Frame 1
stop();
Symbol 139 MovieClip Frame 3
_root.damsg = 13;
_root.damsg2 = 2;
Symbol 139 MovieClip Frame 21
stop();
Symbol 140 MovieClip [key1_mc] Frame 1
stop();
Symbol 140 MovieClip [key1_mc] Frame 2
stop();
Symbol 157 MovieClip Frame 15
_parent.play();
stop();
Symbol 159 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.shooot == 2) {
_root.shooot = 1;
gotoAndPlay (2);
}
};
Symbol 163 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.shooot == 2) {
_root.shooot = 1;
gotoAndPlay (2);
}
};
Symbol 167 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.shooot == 2) {
_root.shooot = 1;
gotoAndPlay (2);
}
};
Symbol 171 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.shooot == 2) {
_root.shooot = 1;
gotoAndPlay (2);
}
};
Symbol 175 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.shooot == 2) {
_root.shooot = 1;
gotoAndPlay (2);
}
};
Symbol 179 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.shooot == 2) {
_root.shooot = 1;
gotoAndPlay (2);
}
};
Symbol 180 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.wp);
};
Symbol 183 MovieClip [character_mc] Frame 21
stop();
Symbol 198 MovieClip Frame 15
stop();
Symbol 200 MovieClip Frame 23
this._parent.beingHit = false;
this.gotoAndStop(1);
this._parent.gotoAndStop(2);
Symbol 201 MovieClip Frame 8
if (this._parent.hitTest(_root.character_mc)) {
_root.energy = _root.energy - _root.zombie02Attack;
}
Symbol 201 MovieClip Frame 30
this._parent.characterTest = 0;
this._parent.attackState = 0;
this._parent.gotoAndStop(1);
Symbol 204 MovieClip Frame 1
aa = random(4) + 1;
_root.howmuchkilled = _root.howmuchkilled + 1;
Symbol 204 MovieClip Frame 3
gotoAndStop(aa + 2);
Symbol 204 MovieClip Frame 6
stop();
Symbol 207 MovieClip Frame 255
stop();
Symbol 208 MovieClip [zombie02_mc] Frame 1
stop();
Symbol 208 MovieClip [zombie02_mc] Frame 4
zombie014_mc.gotoAndPlay(2);
Symbol 220 MovieClip Frame 2
aa2 = random(100) + 290;
Symbol 220 MovieClip Frame 3
gotoAndPlay(aa2);
Symbol 220 MovieClip Frame 400
aa = random(4) + 1;
Symbol 220 MovieClip Frame 401
gotoAndPlay((aa * 2) + 400);
Symbol 220 MovieClip Frame 403
gotoAndPlay (2);
Symbol 220 MovieClip Frame 405
gotoAndPlay (2);
Symbol 220 MovieClip Frame 407
gotoAndPlay (2);
Symbol 220 MovieClip Frame 409
gotoAndPlay (2);
Symbol 223 MovieClip Frame 15
this._parent.beingHit = false;
this.gotoAndStop(1);
this._parent.gotoAndStop(2);
Symbol 224 MovieClip Frame 15
if (this._parent.hitTest(_root.character_mc)) {
_root.dasnd = 1;
_root.dasnd2 = 2;
_root.energy = _root.energy - _root.zombie01Attack;
}
Symbol 224 MovieClip Frame 30
this._parent.characterTest = 0;
this._parent.attackState = 0;
this._parent.gotoAndStop(1);
Symbol 235 MovieClip Frame 1
if (_root.calldedebut != 2) {
_root.calldedebut = 2;
gotoAndPlay (3);
}
Symbol 235 MovieClip Frame 2
stop();
Symbol 235 MovieClip Frame 3
if (_root.gore == 1) {
gotoAndPlay (4);
} else {
gotoAndPlay (6);
}
Symbol 235 MovieClip Frame 5
stop();
Symbol 235 MovieClip Frame 7
stop();
Symbol 236 MovieClip Frame 250
stop();
Symbol 237 MovieClip [zombie01_mc] Frame 1
stop();
Symbol 237 MovieClip [zombie01_mc] Frame 4
zombie014_mc.gotoAndPlay(2);
Symbol 240 MovieClip [bullet_mc] Frame 1
gotoAndStop(_root.currentWeapon + 1);
Symbol 246 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.energy + 1);
};
Symbol 270 Button
on (release) {
getURL ("http://www.gamesfree.ca/walkthrough/bulwark.php", "_blank");
}
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 50
_root.reloadWeapon();
Symbol 294 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.currentWeapon + 1);
if (_root.currentWeapon == 5) {
if (_root.minigunMag < 5) {
_root.minigunMag = 5;
}
}
};
Symbol 299 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(st);
};
Symbol 304 MovieClip Frame 1
stop();
_root.howmuchkilled = 0;
onEnterFrame = function () {
if (_root.howmuchkilled == 4) {
_root.howmuchkilled = 0;
aa = random(3) + 3;
gotoAndPlay (2);
}
};
Symbol 304 MovieClip Frame 2
gotoAndPlay(aa);
Symbol 304 MovieClip Frame 4
gotoAndStop (1);
Symbol 304 MovieClip Frame 6
gotoAndStop (1);
Symbol 304 MovieClip Frame 8
gotoAndStop (1);
Symbol 306 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.dasnd2 == 2) {
_root.dasnd2 = 1;
gotoAndPlay(_root.dasnd * 2);
}
};
Symbol 308 Button
on (keyPress "i") {
gotoAndStop (2);
}
Symbol 309 Button
on (keyPress "o") {
gotoAndStop (3);
}
Symbol 310 Button
on (keyPress "p") {
gotoAndStop (4);
}
Symbol 311 Button
on (keyPress "i") {
gotoAndStop (5);
}
Symbol 312 Button
on (keyPress "o") {
gotoAndStop (6);
}
Symbol 313 Button
on (keyPress "p") {
gotoAndStop (1);
_root.movementSpeed = 4;
}
Symbol 314 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 4
_root.movementSpeed = 25;
_root.damsg = 16;
_root.damsg2 = 2;
stop();
Symbol 331 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.damsg);
};
Symbol 348 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.damsg);
};
Symbol 349 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.damsg2 == 2) {
_root.damsg2 = 1;
gotoAndPlay (2);
}
};
Symbol 354 Button
on (release) {
getURL (_root.moregameslink, "_blank");
}
Symbol 368 MovieClip Frame 1
stop();
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
getURL ("http://www.bubblebox.com/", "_blank");
};
Symbol 494 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.lavr + 1);
};
Symbol 494 MovieClip Frame 2
_root.moregameslink = "http://www.agame.com";
Symbol 494 MovieClip Frame 3
_root.moregameslink = "http://www.andkon.com";
Symbol 494 MovieClip Frame 4
_root.moregameslink = "http://www.anyad.rulez.org";
Symbol 494 MovieClip Frame 5
_root.moregameslink = "http://www.armorgames.com";
Symbol 494 MovieClip Frame 6
_root.moregameslink = "http://www.bringler.com";
Symbol 494 MovieClip Frame 7
_root.moregameslink = "http://www.bubblebox.com";
Symbol 494 MovieClip Frame 8
_root.moregameslink = "http://www.bunnygames.com";
Symbol 494 MovieClip Frame 9
_root.moregameslink = "http://www.dailyfreegames.com";
Symbol 494 MovieClip Frame 10
_root.moregameslink = "http://www.directgamez.com";
Symbol 494 MovieClip Frame 11
_root.moregameslink = "http://www.2flashgames.com";
Symbol 494 MovieClip Frame 12
_root.moregameslink = "http://www.flashninjaclan.com";
Symbol 494 MovieClip Frame 13
_root.moregameslink = "http://www.freeonlinegames.com";
Symbol 494 MovieClip Frame 14
_root.moregameslink = "http://www.funny-games.biz";
Symbol 494 MovieClip Frame 15
_root.moregameslink = "http://www.gameitnow.com";
Symbol 494 MovieClip Frame 16
_root.moregameslink = "http://www.gamesplz.com";
Symbol 494 MovieClip Frame 17
_root.moregameslink = "http://www.gameserpent.com";
Symbol 494 MovieClip Frame 18
_root.moregameslink = "http://www.gamesfreak.net";
Symbol 494 MovieClip Frame 19
_root.moregameslink = "http://www.gameshot.org";
Symbol 494 MovieClip Frame 20
_root.moregameslink = "http://www.jarkey.net";
Symbol 494 MovieClip Frame 21
_root.moregameslink = "http://www.play4all.net/";
Symbol 494 MovieClip Frame 22
_root.moregameslink = "http://www.keepbusy.net";
Symbol 494 MovieClip Frame 23
_root.moregameslink = "http://www.microjogos.com";
Symbol 494 MovieClip Frame 24
_root.moregameslink = "http://www.minijuegos.com";
Symbol 494 MovieClip Frame 25
_root.moregameslink = "http://www.mofunzone.com";
Symbol 494 MovieClip Frame 26
_root.moregameslink = "http://www.mostfungames.com";
Symbol 494 MovieClip Frame 27
_root.moregameslink = "http://www.onemorelevel.com";
Symbol 494 MovieClip Frame 28
_root.moregameslink = "http://www.online-games-zone.com/";
Symbol 494 MovieClip Frame 29
_root.moregameslink = "http://www.puffgames.com";
Symbol 494 MovieClip Frame 30
_root.moregameslink = "http://www.spele.nl";
Symbol 494 MovieClip Frame 31
_root.moregameslink = "http://www.t45ol.com";
Symbol 494 MovieClip Frame 32
_root.moregameslink = "http://www.flashbot.com";
Symbol 494 MovieClip Frame 33
_root.moregameslink = "http://www.ultimatearcade.com";
Symbol 494 MovieClip Frame 34
_root.moregameslink = "http://www.zptweb.net";
Symbol 494 MovieClip Frame 35
_root.moregameslink = "http://www.gamesfree.ca/";
Symbol 494 MovieClip Frame 36
_root.moregameslink = "http://www.jeuxvideo-flash.com/";
Symbol 494 MovieClip Frame 37
_root.moregameslink = "http://www.gamespond.net/";
Symbol 494 MovieClip Frame 38
_root.moregameslink = "http://www.flashgames.it/";
Symbol 494 MovieClip Frame 39
_root.moregameslink = "http://www.flobzoo.com/";
Symbol 494 MovieClip Frame 40
_root.moregameslink = "http://www.hallpass.com/";
Symbol 494 MovieClip Frame 41
_root.moregameslink = "http://www.addictinggames.com/";
Symbol 494 MovieClip Frame 42
_root.moregameslink = "http://www.benz.be";
Symbol 494 MovieClip Frame 43
_root.moregameslink = "http://www.twizl.com/";
Symbol 494 MovieClip Frame 44
_root.moregameslink = "http://www.net-games.biz/";
Symbol 494 MovieClip Frame 45
_root.moregameslink = "http://www.pinkyarcade.com/";
Symbol 494 MovieClip Frame 46
_root.moregameslink = "http://www.komikler.com/index.php";
Symbol 494 MovieClip Frame 47
_root.moregameslink = "http://www.gameonly.com";
Symbol 494 MovieClip Frame 48
_root.moregameslink = "http://www.a10.com/";
Symbol 494 MovieClip Frame 49
_root.moregameslink = "http://www.neodelight.com/";
Symbol 494 MovieClip Frame 50
_root.moregameslink = "http://www.octogames.com/";
Symbol 494 MovieClip Frame 51
_root.moregameslink = "http://www.gamedesire.com/";
Symbol 494 MovieClip Frame 52
_root.moregameslink = "http://www.arcadespark.com/ ";
Symbol 494 MovieClip Frame 53
_root.moregameslink = "http://www.killhours.com/";
Symbol 494 MovieClip Frame 54
_root.moregameslink = "http://www.flasharcadegamessite.com/";
Symbol 494 MovieClip Frame 55
_root.moregameslink = "http://www.roundgames.com/";
Symbol 494 MovieClip Frame 56
_root.moregameslink = "http://www.arcadegangsta.com/";
Symbol 494 MovieClip Frame 57
_root.moregameslink = "http://www.gamebusted.com/";
Symbol 494 MovieClip Frame 58
_root.moregameslink = "http://www.flash-games.net/";
Symbol 494 MovieClip Frame 59
_root.moregameslink = "http://www.flash-game.net/";
Symbol 494 MovieClip Frame 60
_root.moregameslink = "http://www.jeuxclic.com/";
Symbol 494 MovieClip Frame 61
_root.moregameslink = "http://www.stungames.com/";
Symbol 494 MovieClip Frame 62
_root.moregameslink = "http://www.toolight.com/";
Symbol 496 MovieClip [interface_mc] Frame 1
stop();
Instance of Symbol 299 MovieClip in Symbol 496 MovieClip [interface_mc] Frame 1
onClipEvent (enterFrame) {
nb = 1;
if (_root.beretta == true) {
st = 2;
} else {
st = 1;
}
}
Instance of Symbol 299 MovieClip in Symbol 496 MovieClip [interface_mc] Frame 1
onClipEvent (enterFrame) {
nb = 2;
if (_root.deagle == true) {
st = 2;
} else {
st = 1;
}
}
Instance of Symbol 299 MovieClip in Symbol 496 MovieClip [interface_mc] Frame 1
onClipEvent (enterFrame) {
nb = 3;
if (_root.shotgun == true) {
st = 2;
} else {
st = 1;
}
}
Instance of Symbol 299 MovieClip in Symbol 496 MovieClip [interface_mc] Frame 1
onClipEvent (enterFrame) {
nb = 4;
if (_root.uzi == true) {
st = 2;
} else {
st = 1;
}
}
Instance of Symbol 299 MovieClip in Symbol 496 MovieClip [interface_mc] Frame 1
onClipEvent (enterFrame) {
nb = 5;
if (_root.m16 == true) {
st = 2;
} else {
st = 1;
}
}
Instance of Symbol 299 MovieClip in Symbol 496 MovieClip [interface_mc] Frame 1
onClipEvent (enterFrame) {
nb = 6;
if (_root.minigun == true) {
st = 2;
} else {
st = 1;
}
}
Symbol 506 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 506 MovieClip Frame 2
gotoAndPlay (1);
Symbol 506 MovieClip Frame 3
_root.play();
Symbol 508 MovieClip Frame 1
onEnterFrame = function () {
_root.perper = _root.PercentLoaded;
gotoAndStop(_root.perper);
};
stop();
Symbol 508 MovieClip Frame 100
stop();
Symbol 697 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
static function showPreGameAd(options) {
var _local26 = {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, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = 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 _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
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;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {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, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
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 _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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;
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) {
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 _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
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);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
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);
}
}
Symbol 515 Button
on (release) {
gotoAndPlay (4);
}
Symbol 519 MovieClip Frame 150
stop();
Symbol 524 MovieClip Frame 67
stop();
Symbol 539 MovieClip Frame 12
stop();
Symbol 540 MovieClip Frame 5
stopAllSounds();
Symbol 540 MovieClip Frame 215
_root.got2go = 2;
stop();
Symbol 541 Button
on (release) {
getURL ("http://www.pyrozen.com/", "_blank");
}
on (keyPress "<Space>") {
_root.got2go = 2;
}
Instance of Symbol 545 MovieClip in Symbol 546 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(156));
}
Instance of Symbol 545 MovieClip in Symbol 546 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(156));
}
Instance of Symbol 545 MovieClip in Symbol 546 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(156));
}
Instance of Symbol 545 MovieClip in Symbol 546 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(156));
}
Symbol 548 MovieClip Frame 40
stop();
Symbol 549 MovieClip Frame 20
stop();
Symbol 551 Button
on (release) {
getURL ("http://www.gamesfree.ca/walkthrough/bulwark.php", "_blank");
}
Symbol 552 Button
on (release) {
gotoAndStop (21);
}
Symbol 553 Button
on (release) {
getURL ("http://www.gamesfree.ca/", "_blank");
}
Symbol 557 Button
on (release) {
gotoAndStop (23);
}
Symbol 560 MovieClip Frame 51
stop();
Symbol 563 MovieClip Frame 1
stopAllSounds();
Symbol 563 MovieClip Frame 3
stop();
Symbol 570 MovieClip Frame 1120
_root.got2go = 2;
stop();
Symbol 573 Button
on (release) {
gotoAndStop (22);
}
Symbol 575 MovieClip Frame 51
stop();
Symbol 595 Button
on (release) {
gotoAndStop (28);
}
Symbol 618 Button
on (release) {
gotoAndStop (20);
}
Symbol 620 Button
on (release) {
getURL ("http://www.pyrozen.com", "_blank");
}
Symbol 629 Button
on (release) {
getURL ("http://www.gamesfree.ca", "_blank");
}
Symbol 641 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 1
stop();
Symbol 689 MovieClip Frame 1
stop();
Symbol 689 MovieClip Frame 40
_root.character_mc.gotoAndStop("stand");
_root.removeZombies();
_root.removeObjects();
if (_root.nextLevel == "main") {
_root.mainSpawn();
} else if (_root.nextLevel == "armory") {
_root.armorySpawn();
} else if (_root.nextLevel == "zone2") {
_root.zone2Spawn();
} else if (_root.nextLevel == "safeHouse") {
_root.safeHouseSpawn();
} else if (_root.nextLevel == "zone1") {
_root.zone1Spawn();
} else if (_root.nextLevel == "zone3") {
_root.zone3Spawn();
} else if (_root.nextLevel == "bossLair") {
_root.bossLairSpawn();
}
Symbol 689 MovieClip Frame 89
_root.addCharacterEnterFrame();
Symbol 693 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.sd2 == 2) {
_root.sd2 = 1;
gotoAndPlay(_root.sd * 2);
}
};
Symbol 693 MovieClip Frame 3
stop();
Symbol 693 MovieClip Frame 5
stop();
Symbol 696 Button
on (keyPress "m") {
if (medPack > 0) {
medPack--;
energy = 100;
}
}
on (keyPress "M") {
if (medPack > 0) {
medPack--;
energy = 100;
}
}