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:"284e8472d347f01d", res:"800x600"});
__com_mochibot__("23893904", this, 10301, true);
_root.lavr = 34;
_root.gore = 1;
_root.user = SharedObject.getLocal("user_bulwark");
onEnterFrame = function () {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if (domain != "gamesfree.ca") {
_root.gofuckyourself = 3;
}
};
stop();
Frame 2
if (_root.gofuckyourself == 2) {
stop();
}
Frame 3
if (_root.gofuckyourself == 2) {
gotoAndStop (2);
}
stop();
Frame 19
stop();
onEnterFrame = function () {
if (_root.got2go == 2) {
_root.got2go = 1;
gotoAndStop (20);
}
};
Frame 20
stop();
Frame 21
stop();
onEnterFrame = function () {
if (_root.got2go == 2) {
_root.got2go = 1;
gotoAndStop (22);
}
};
Frame 26
Mouse.show();
Frame 27
Mouse.show();
Frame 28
function reloadWeapon() {
if (currentWeapon == 0) {
berettaMag = 15;
} else if (currentWeapon == 1) {
if (deagleAmmo >= 12) {
deagleAmmo = deagleAmmo - (12 - deagleMag);
deagleMag = 12;
} else {
deagleMag = deagleMag + deagleAmmo;
deagleAmmo = 0;
}
} else if (currentWeapon == 2) {
if (shotgunAmmo >= 8) {
shotgunAmmo = shotgunAmmo - (8 - shotgunMag);
shotgunMag = 8;
} else {
shotgunMag = shotgunMag + shotgunAmmo;
shotgunAmmo = 0;
}
} else if (currentWeapon == 3) {
if (uziAmmo >= 30) {
uziAmmo = uziAmmo - (30 - uziMag);
uziMag = 30;
} else {
uziMag = uziMag + uziAmmo;
uziAmmo = 0;
}
} else if (currentWeapon == 4) {
if (m16Ammo >= 30) {
m16Ammo = m16Ammo - (30 - m16Mag);
m16Mag = 30;
} else {
m16Mag = m16Mag + m16Ammo;
m16Ammo = 0;
}
} else if (currentWeapon == 5) {
if (minigunAmmo >= 50) {
minigunAmmo = minigunAmmo - (50 - minigunMag);
minigunMag = 50;
} else {
minigunMag = minigunMag + minigunAmmo;
minigunAmmo = 0;
}
}
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();
trace("what");
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());
}
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 (_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) && (leftHit == false)) || (Key.isDown(68) && (rightHit == false))) || (Key.isDown(83) && (downHit == false))) || (Key.isDown(87) && (upHit == false))) {
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 <= (-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) + 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 <= (-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) + 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 _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)) {
if (enemyArray[i].health <= 0) {
killZombie(i);
} else {
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 (!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 changeZone() {
if (nextLevel == "beginning") {
beginningSpawn();
} else if (nextLevel == "zone1") {
zone1Spawn();
} else if (nextLevel == "zone2") {
zone2Spawn();
} else if (nextLevel == "zone3") {
zone3Spawn();
} else if (nextLevel == "zone4") {
zone4Spawn();
} else if (nextLevel == "zone5") {
zone5Spawn();
} else if (nextLevel == "zone6") {
zone6Spawn();
} else if (nextLevel == "building7") {
building7Spawn();
} else if (nextLevel == "building8") {
building8Spawn();
} else if (nextLevel == "building9") {
building9Spawn();
} else if (nextLevel == "building10") {
building10Spawn();
} else if (nextLevel == "building11") {
building11Spawn();
} else if (nextLevel == "building12") {
building12Spawn();
} else if (nextLevel == "building13") {
building13Spawn();
} else if (nextLevel == "building14") {
building14Spawn();
} else if (nextLevel == "building15") {
building15Spawn();
} else if (nextLevel == "building16") {
building16Spawn();
} else if (nextLevel == "building17") {
building17Spawn();
} else if (nextLevel == "building18") {
building18Spawn();
} else if (nextLevel == "building19") {
building19Spawn();
} else if (nextLevel == "building20") {
building20Spawn();
}
}
function beginningSpawn() {
addCharacterEnterFrame();
currentLevel = nextLevel;
lvl_mc.gotoAndStop("zone4");
lvl_mc._x = zone4Positions[3].posX;
lvl_mc._y = zone4Positions[3].posY;
character_mc._x = _startingX;
character_mc._y = _startingY - (Math.round(100 / movementSpeed) * movementSpeed);
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "zone4";
nextLevel = "zone3";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone1)) {
if (_root.key5 == true) {
comingFrom = "zone4";
nextLevel = "building13";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (_root.damsg2 != 2) {
_root.damsg = 17;
_root.damsg2 = 2;
}
} else if (character_mc.hitTest(lvl_mc.hitZone2)) {
if (_root.key14 == true) {
comingFrom = "zone4";
nextLevel = "building14";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (_root.damsg2 != 2) {
_root.damsg = 17;
_root.damsg2 = 2;
}
}
};
}
function zone1Spawn() {
lvl_mc.gotoAndStop("zone1");
if (comingFrom == "building7") {
lvl_mc._x = zone1Positions[0].posX;
lvl_mc._y = zone1Positions[0].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
} else if (comingFrom == "zone3") {
lvl_mc._x = zone1Positions[1].posX;
lvl_mc._y = zone1Positions[1].posY;
character_mc._x = _startingX;
character_mc._y = _startingY + (Math.round(100 / movementSpeed) * movementSpeed);
}
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
if (key6 == true) {
comingFrom = "zone1";
nextLevel = "building7";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (_root.damsg != 2) {
_root.damsg = 17;
_root.damsg2 = 2;
}
} else if (character_mc.hitTest(lvl_mc.hitZone1)) {
comingFrom = "zone1";
nextLevel = "zone3";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
currentLevel = nextLevel;
var _local3 = 0;
while (_local3 < zone1Objects.length) {
if (zone1Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(zone1Objects[_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 = zone1Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = zone1Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
zone1Objects[this.arrayPlace].taken = "yes";
if (zone1Objects[this.arrayPlace].mcType == "medPack_mc") {
medPack++;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
spawnZombie("01", 700, 1400);
spawnZombie("01", 800, 1400);
spawnZombie("03", 2000, 900);
spawnZombie("03", 2100, 900);
spawnZombie("03", 1900, 900);
spawnZombie("03", 2200, 900);
spawnZombie("02", 3100, 1200);
spawnZombie("02", 3200, 1400);
spawnZombie("02", 2800, 1000);
}
function zone2Spawn() {
lvl_mc.gotoAndStop("zone2");
if (comingFrom == "building8") {
lvl_mc._x = zone2Positions[0].posX;
lvl_mc._y = zone2Positions[0].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
} else if (comingFrom == "zone3-1") {
lvl_mc._x = zone2Positions[1].posX;
lvl_mc._y = zone2Positions[1].posY;
character_mc._x = _startingX + (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY + (Math.round(200 / movementSpeed) * movementSpeed);
} else if (comingFrom == "zone3-2") {
lvl_mc._x = zone2Positions[2].posX;
lvl_mc._y = zone2Positions[2].posY;
character_mc._x = _startingX + (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
}
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
if (key4 == true) {
comingFrom = "zone2";
nextLevel = "building8";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (_root.damsg != 2) {
_root.damsg = 17;
_root.damsg2 = 2;
}
} else if (character_mc.hitTest(lvl_mc.hitZone1)) {
comingFrom = "zone2-1";
nextLevel = "zone3";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone2)) {
comingFrom = "zone2-2";
nextLevel = "zone3";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
currentLevel = nextLevel;
spawnZombie("01", 800, 2000);
spawnZombie("01", 700, 2000);
spawnZombie("01", 900, 1800);
spawnZombie("01", 1000, 1900);
spawnZombie("02", 1300, 1200);
spawnZombie("02", 1000, 700);
spawnZombie("02", 1000, 1000);
spawnZombie("02", 1100, 800);
spawnZombie("02", 900, 800);
spawnZombie("02", 1200, 800);
}
function zone3Spawn() {
lvl_mc.gotoAndStop("zone3");
if (comingFrom == "zone1") {
lvl_mc._x = zone3Positions[0].posX;
lvl_mc._y = zone3Positions[0].posY;
character_mc._x = _startingX;
character_mc._y = _startingY - (Math.round(200 / movementSpeed) * movementSpeed);
} else if (comingFrom == "zone2-1") {
lvl_mc._x = zone3Positions[1].posX;
lvl_mc._y = zone3Positions[1].posY;
character_mc._x = _startingX - (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
} else if (comingFrom == "zone2-2") {
lvl_mc._x = zone3Positions[2].posX;
lvl_mc._y = zone3Positions[2].posY;
character_mc._x = _startingX - (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
} else if (comingFrom == "zone4") {
lvl_mc._x = zone3Positions[3].posX;
lvl_mc._y = zone3Positions[3].posY;
character_mc._x = _startingX + (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
} else if (comingFrom == "zone5-1") {
lvl_mc._x = zone3Positions[4].posX;
lvl_mc._y = zone3Positions[4].posY;
character_mc._x = _startingX;
character_mc._y = _startingY + (Math.round(200 / movementSpeed) * movementSpeed);
} else if (comingFrom == "zone5-2") {
lvl_mc._x = zone3Positions[5].posX;
lvl_mc._y = zone3Positions[5].posY;
character_mc._x = _startingX;
character_mc._y = _startingY + (Math.round(200 / movementSpeed) * movementSpeed);
} else if (comingFrom == "building9") {
lvl_mc._x = zone3Positions[6].posX;
lvl_mc._y = zone3Positions[6].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
} else if (comingFrom == "building10") {
lvl_mc._x = zone3Positions[7].posX;
lvl_mc._y = zone3Positions[7].posY;
character_mc._x = _startingX - (Math.round(50 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
} else if (comingFrom == "building11") {
lvl_mc._x = zone3Positions[8].posX;
lvl_mc._y = zone3Positions[8].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
} else if (comingFrom == "building12-1") {
lvl_mc._x = zone3Positions[9].posX;
lvl_mc._y = zone3Positions[9].posY;
character_mc._x = _startingX + (Math.round(250 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
} else if (comingFrom == "building12-2") {
lvl_mc._x = zone3Positions[10].posX;
lvl_mc._y = zone3Positions[10].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
} else if (comingFrom == "building15") {
lvl_mc._x = zone3Positions[11].posX;
lvl_mc._y = zone3Positions[11].posY;
character_mc._x = _startingX;
character_mc._y = _startingY + (Math.round(200 / movementSpeed) * movementSpeed);
}
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "zone3";
nextLevel = "zone1";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone1)) {
comingFrom = "zone3-1";
nextLevel = "zone2";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone2)) {
comingFrom = "zone3-2";
nextLevel = "zone2";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone3)) {
comingFrom = "zone3";
nextLevel = "zone4";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone4)) {
comingFrom = "zone3-1";
nextLevel = "zone5";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone5)) {
comingFrom = "zone3-2";
nextLevel = "zone5";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone6)) {
comingFrom = "zone3";
nextLevel = "building9";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone7)) {
if (key3 == true) {
comingFrom = "zone3";
nextLevel = "building10";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (_root.damsg2 != 2) {
_root.damsg = 17;
_root.damsg2 = 2;
}
} else if (character_mc.hitTest(lvl_mc.hitZone8)) {
comingFrom = "zone3";
nextLevel = "building11";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone9)) {
if (key8 == true) {
comingFrom = "zone3-1";
nextLevel = "building12";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (_root.damsg2 != 2) {
_root.damsg = 17;
_root.damsg2 = 2;
}
} else if (character_mc.hitTest(lvl_mc.hitZone10)) {
comingFrom = "zone3-2";
nextLevel = "building12";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone11)) {
if (key2 == true) {
comingFrom = "zone3";
nextLevel = "building15";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (_root.damsg2 != 2) {
_root.damsg = 17;
_root.damsg2 = 2;
}
}
};
var _local3 = 0;
while (_local3 < zone3Objects.length) {
if (zone3Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(zone3Objects[_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 = zone3Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = zone3Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
zone3Objects[this.arrayPlace].taken = "yes";
if (zone3Objects[this.arrayPlace].mcType == "medPack_mc") {
medPack++;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
currentLevel = nextLevel;
spawnZombie("01", 1800, 2400);
spawnZombie("01", 1900, 2200);
spawnZombie("01", 2000, 2000);
spawnZombie("01", 1600, 2600);
spawnZombie("01", 1700, 1800);
spawnZombie("01", 2100, 2400);
spawnZombie("01", 1800, 2600);
spawnZombie("01", 1700, 2200);
spawnZombie("01", 1900, 1900);
spawnZombie("01", 1800, 1800);
spawnZombie("01", 600, 700);
spawnZombie("01", 700, 600);
spawnZombie("01", 2800, 1000);
spawnZombie("01", 2800, 1100);
spawnZombie("01", 3000, 2900);
spawnZombie("01", 3200, 2900);
spawnZombie("02", 2200, 2900);
spawnZombie("02", 2000, 3000);
spawnZombie("02", 2000, 2900);
spawnZombie("03", 2000, 200);
spawnZombie("03", 1800, 400);
spawnZombie("03", 1900, 200);
}
function zone4Spawn() {
lvl_mc.gotoAndStop("zone4");
if (comingFrom == "zone3") {
lvl_mc._x = zone4Positions[0].posX;
lvl_mc._y = zone4Positions[0].posY;
character_mc._x = _startingX - (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
} else if (comingFrom == "building13") {
lvl_mc._x = zone4Positions[1].posX;
lvl_mc._y = zone4Positions[1].posY;
character_mc._x = _startingX - (Math.round(150 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
} else if (comingFrom == "building14") {
lvl_mc._x = zone4Positions[2].posX;
lvl_mc._y = zone4Positions[2].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
}
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "zone4";
nextLevel = "zone3";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone1)) {
if (_root.key5 == true) {
comingFrom = "zone4";
nextLevel = "building13";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (_root.damsg2 != 2) {
_root.damsg = 17;
_root.damsg2 = 2;
}
} else if (character_mc.hitTest(lvl_mc.hitZone2)) {
if (_root.key1 == true) {
comingFrom = "zone4";
nextLevel = "building14";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (_root.damsg2 != 2) {
_root.damsg = 17;
_root.damsg2 = 2;
}
}
};
currentLevel = nextLevel;
}
function zone5Spawn() {
lvl_mc.gotoAndStop("zone5");
if (comingFrom == "zone3-1") {
lvl_mc._x = zone5Positions[0].posX;
lvl_mc._y = zone5Positions[0].posY;
character_mc._x = _startingX;
character_mc._y = _startingY - (Math.round(200 / movementSpeed) * movementSpeed);
} else if (comingFrom == "zone3-2") {
lvl_mc._x = zone5Positions[1].posX;
lvl_mc._y = zone5Positions[1].posY;
character_mc._x = _startingX;
character_mc._y = _startingY - (Math.round(200 / movementSpeed) * movementSpeed);
} else if (comingFrom == "zone6") {
lvl_mc._x = zone5Positions[2].posX;
lvl_mc._y = zone5Positions[2].posY;
character_mc._x = _startingX - (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
} else if (comingFrom == "building16") {
lvl_mc._x = zone5Positions[3].posX;
lvl_mc._y = zone5Positions[3].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
} else if (comingFrom == "building17") {
lvl_mc._x = zone5Positions[4].posX;
lvl_mc._y = zone5Positions[4].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
} else if (comingFrom == "building18") {
lvl_mc._x = zone5Positions[5].posX;
lvl_mc._y = zone5Positions[5].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
}
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "zone5-1";
nextLevel = "zone3";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone1)) {
comingFrom = "zone5-2";
nextLevel = "zone3";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone2)) {
comingFrom = "zone5";
nextLevel = "zone6";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone3)) {
comingFrom = "zone5";
nextLevel = "building16";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone4)) {
comingFrom = "zone5";
nextLevel = "building17";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone5)) {
comingFrom = "zone5";
nextLevel = "building18";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
currentLevel = nextLevel;
spawnZombie("01", 2300, 1400);
spawnZombie("01", 2200, 1600);
spawnZombie("01", 2400, 1800);
spawnZombie("01", 2100, 2000);
spawnZombie("01", 2000, 1200);
spawnZombie("01", 1900, 1000);
spawnZombie("01", 1800, 900);
spawnZombie("01", 2000, 800);
spawnZombie("01", 2100, 1500);
spawnZombie("01", 2300, 1900);
spawnZombie("02", 1100, 2800);
spawnZombie("02", 1000, 2800);
spawnZombie("02", 900, 2800);
spawnZombie("02", 1200, 2600);
spawnZombie("02", 1300, 2800);
spawnZombie("02", 1900, 2700);
spawnZombie("03", 2300, 2800);
spawnZombie("03", 2400, 2700);
}
function zone6Spawn() {
lvl_mc.gotoAndStop("zone6");
if (comingFrom == "zone5") {
lvl_mc._x = zone6Positions[0].posX;
lvl_mc._y = zone6Positions[0].posY;
character_mc._x = _startingX + (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
} else if (comingFrom == "building19") {
lvl_mc._x = zone6Positions[1].posX;
lvl_mc._y = zone6Positions[1].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
}
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "zone6";
nextLevel = "zone5";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone1)) {
if (key7 == true) {
comingFrom = "zone6";
nextLevel = "building19";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (_root.damsg2 != 2) {
_root.damsg = 17;
_root.damsg2 = 2;
}
}
};
var _local3 = 0;
while (_local3 < zone6Objects.length) {
if (zone6Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(zone6Objects[_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 = zone6Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = zone6Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
zone6Objects[this.arrayPlace].taken = "yes";
if (zone6Objects[this.arrayPlace].mcType == "medPack_mc") {
medPack++;
} else if (zone6Objects[this.arrayPlace].mcType == "key3_mc") {
key3 = true;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
currentLevel = nextLevel;
spawnZombie("01", 400, 800);
spawnZombie("01", 500, 1000);
spawnZombie("01", 400, 1200);
spawnZombie("02", 1500, 1000);
spawnZombie("02", 1500, 1200);
spawnZombie("02", 1500, 800);
}
function building7Spawn() {
lvl_mc.gotoAndStop("building7");
lvl_mc._x = buildingPositions[0].posX;
lvl_mc._y = buildingPositions[0].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building7";
nextLevel = "zone1";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
currentLevel = nextLevel;
var _local3 = 0;
while (_local3 < building7Objects.length) {
if (building7Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(building7Objects[_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 = building7Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = building7Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
building7Objects[this.arrayPlace].taken = "yes";
if (building7Objects[this.arrayPlace].mcType == "key8_mc") {
key8 = true;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
spawnZombie("04", 2300, 1400);
}
function building8Spawn() {
lvl_mc.gotoAndStop("building8");
lvl_mc._x = buildingPositions[1].posX;
lvl_mc._y = buildingPositions[1].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
currentLevel = nextLevel;
spawnZombie("01", 2300, 800);
spawnZombie("01", 2000, 800);
spawnZombie("01", 2300, 600);
spawnZombie("02", 400, 1600);
spawnZombie("02", 600, 1800);
spawnZombie("02", 400, 1600);
spawnZombie("03", 2300, 1400);
spawnZombie("03", 2300, 1800);
spawnZombie("03", 2000, 1800);
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building8";
nextLevel = "zone2";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
var _local3 = 0;
while (_local3 < building8Objects.length) {
if (building8Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(building8Objects[_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 = building8Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = building8Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
building8Objects[this.arrayPlace].taken = "yes";
if (building8Objects[this.arrayPlace].mcType == "key5_mc") {
key5 = true;
} else if (building8Objects[this.arrayPlace].mcType == "m16Side_mc") {
m16 = true;
m16Mag = 30;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
}
function building9Spawn() {
lvl_mc.gotoAndStop("building9");
lvl_mc._x = buildingPositions[2].posX;
lvl_mc._y = buildingPositions[2].posY;
character_mc._x = _startingX + (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY - (Math.round(100 / movementSpeed) * movementSpeed);
currentLevel = nextLevel;
spawnZombie("02", 300, 500);
spawnZombie("02", 400, 400);
spawnZombie("02", 500, 500);
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building9";
nextLevel = "zone3";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
var _local3 = 0;
while (_local3 < building9Objects.length) {
if (building9Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(building9Objects[_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 = building9Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = building9Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
building9Objects[this.arrayPlace].taken = "yes";
if (building9Objects[this.arrayPlace].mcType == "shotgunAmmo_mc") {
shotgunAmmo = shotgunAmmo + 8;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
}
function building10Spawn() {
lvl_mc.gotoAndStop("building10");
lvl_mc._x = buildingPositions[3].posX;
lvl_mc._y = buildingPositions[3].posY;
character_mc._x = _startingX;
character_mc._y = _startingY + (Math.round(50 / movementSpeed) * movementSpeed);
currentLevel = nextLevel;
spawnZombie("03", 600, 400);
spawnZombie("03", 700, 600);
spawnZombie("03", 800, 600);
spawnZombie("03", 1000, 400);
spawnZombie("03", 1100, 400);
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building10";
nextLevel = "zone3";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
var _local3 = 0;
while (_local3 < building10Objects.length) {
if (building10Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(building10Objects[_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 = building10Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = building10Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
building10Objects[this.arrayPlace].taken = "yes";
if (building10Objects[this.arrayPlace].mcType == "key4_mc") {
key4 = true;
} else if (building10Objects[this.arrayPlace].mcType == "uziSide_mc") {
uzi = true;
uziMag = 30;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
}
function building11Spawn() {
lvl_mc.gotoAndStop("building11");
lvl_mc._x = buildingPositions[4].posX;
lvl_mc._y = buildingPositions[4].posY;
character_mc._x = _startingX - (Math.round(100 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
currentLevel = nextLevel;
spawnZombie("01", 400, 400);
spawnZombie("01", 400, 600);
spawnZombie("01", 600, 400);
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building11";
nextLevel = "zone3";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
var _local3 = 0;
while (_local3 < building11Objects.length) {
if (building11Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(building11Objects[_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 = building11Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = building11Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
building11Objects[this.arrayPlace].taken = "yes";
if (building11Objects[this.arrayPlace].mcType == "deagleAmmo_mc") {
deagleAmmo = deagleAmmo + 12;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
}
function building12Spawn() {
lvl_mc.gotoAndStop("building12");
if (comingFrom == "zone3-1") {
lvl_mc._x = building12Positions[0].posX;
lvl_mc._y = building12Positions[0].posY;
character_mc._x = _startingX;
character_mc._y = _startingY - (Math.round(50 / movementSpeed) * movementSpeed);
} else if (comingFrom == "zone3-2") {
lvl_mc._x = building12Positions[1].posX;
lvl_mc._y = building12Positions[1].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
}
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building12-1";
nextLevel = "zone3";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone1)) {
comingFrom = "building12-2";
nextLevel = "zone3";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
currentLevel = nextLevel;
var _local3 = 0;
while (_local3 < building12Objects.length) {
if (building12Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(building12Objects[_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 = building12Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = building12Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
building12Objects[this.arrayPlace].taken = "yes";
if (building12Objects[this.arrayPlace].mcType == "minigunSide_mc") {
minigun = true;
minigunMag = 50;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
spawnZombie("01", 1300, 1700);
spawnZombie("01", 1400, 1800);
spawnZombie("01", 1500, 1900);
spawnZombie("01", 1600, 1700);
spawnZombie("01", 1700, 1800);
spawnZombie("01", 1300, 1900);
spawnZombie("01", 1400, 1700);
spawnZombie("01", 1500, 1800);
spawnZombie("01", 1600, 1900);
spawnZombie("01", 1700, 1700);
spawnZombie("01", 1300, 1800);
spawnZombie("01", 1400, 1900);
spawnZombie("01", 1500, 1700);
spawnZombie("01", 1600, 1800);
spawnZombie("01", 1700, 1900);
spawnZombie("02", 1700, 1000);
spawnZombie("02", 1800, 1000);
spawnZombie("02", 1900, 1000);
spawnZombie("03", 2100, 400);
spawnZombie("03", 2000, 400);
spawnZombie("03", 1900, 400);
}
function building13Spawn() {
lvl_mc.gotoAndStop("building13");
if (comingFrom == "zone4") {
lvl_mc._x = building13Positions[0].posX;
lvl_mc._y = building13Positions[0].posY;
character_mc._x = _startingX - (Math.round(50 / movementSpeed) * movementSpeed);
character_mc._y = _startingY + (Math.round(50 / movementSpeed) * movementSpeed);
} else if (comingFrom == "building20") {
lvl_mc._x = building13Positions[1].posX;
lvl_mc._y = building13Positions[1].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
}
currentLevel = nextLevel;
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building13";
nextLevel = "zone4";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
} else if (character_mc.hitTest(lvl_mc.hitZone1)) {
comingFrom = "building13";
nextLevel = "building20";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
}
function building14Spawn() {
lvl_mc.gotoAndStop("building14");
lvl_mc._x = buildingPositions[6].posX;
lvl_mc._y = buildingPositions[6].posY;
character_mc._x = _startingX;
character_mc._y = _startingY - (Math.round(50 / movementSpeed) * movementSpeed);
currentLevel = nextLevel;
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building14";
nextLevel = "zone4";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
var _local3 = 0;
while (_local3 < building14Objects.length) {
if (building14Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(building14Objects[_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 = building14Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = building14Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
building14Objects[this.arrayPlace].taken = "yes";
if (building14Objects[this.arrayPlace].mcType == "key2_mc") {
key2 = true;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
}
function building15Spawn() {
lvl_mc.gotoAndStop("building15");
lvl_mc._x = buildingPositions[7].posX;
lvl_mc._y = buildingPositions[7].posY;
character_mc._x = _startingX + (Math.round(150 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
currentLevel = nextLevel;
spawnZombie("01", 500, 600);
spawnZombie("01", 500, 700);
spawnZombie("01", 500, 800);
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building15";
nextLevel = "zone3";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
var _local3 = 0;
while (_local3 < building15Objects.length) {
if (building15Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(building15Objects[_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 = building15Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = building15Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
building15Objects[this.arrayPlace].taken = "yes";
if (building15Objects[this.arrayPlace].mcType == "shotgunSide_mc") {
shotgun = true;
shotgunMag = 8;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
}
function building16Spawn() {
lvl_mc.gotoAndStop("building16");
lvl_mc._x = buildingPositions[8].posX;
lvl_mc._y = buildingPositions[8].posY;
character_mc._x = _startingX;
character_mc._y = _startingY - (Math.round(50 / movementSpeed) * movementSpeed);
currentLevel = nextLevel;
spawnZombie("01", 500, 600);
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building16";
nextLevel = "zone5";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
var _local3 = 0;
while (_local3 < building16Objects.length) {
if (building16Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(building16Objects[_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 = building16Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = building16Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
building16Objects[this.arrayPlace].taken = "yes";
if (building16Objects[this.arrayPlace].mcType == "key1_mc") {
key1 = true;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
}
function building17Spawn() {
lvl_mc.gotoAndStop("building17");
lvl_mc._x = buildingPositions[9].posX;
lvl_mc._y = buildingPositions[9].posY;
character_mc._x = _startingX + (Math.round(175 / movementSpeed) * movementSpeed);
character_mc._y = _startingY + (Math.round(25 / movementSpeed) * movementSpeed);
currentLevel = nextLevel;
spawnZombie("01", 400, 400);
spawnZombie("01", 500, 500);
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building17";
nextLevel = "zone5";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
var _local3 = 0;
while (_local3 < building17Objects.length) {
if (building17Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(building17Objects[_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 = building17Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = building17Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
building17Objects[this.arrayPlace].taken = "yes";
if (building17Objects[this.arrayPlace].mcType == "deagleSide_mc") {
deagle = true;
deagleMag = 12;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
}
function building18Spawn() {
lvl_mc.gotoAndStop("building18");
lvl_mc._x = buildingPositions[10].posX;
lvl_mc._y = buildingPositions[10].posY;
character_mc._x = _startingX - (Math.round(100 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
currentLevel = nextLevel;
spawnZombie("01", 1100, 800);
spawnZombie("01", 1000, 800);
spawnZombie("01", 1200, 800);
spawnZombie("02", 300, 800);
spawnZombie("02", 400, 800);
spawnZombie("02", 500, 800);
spawnZombie("02", 300, 1200);
spawnZombie("02", 400, 1200);
spawnZombie("02", 500, 1200);
spawnZombie("02", 300, 1300);
spawnZombie("02", 400, 1300);
spawnZombie("02", 500, 1300);
spawnZombie("02", 300, 1400);
spawnZombie("02", 400, 1400);
spawnZombie("02", 500, 1400);
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building18";
nextLevel = "zone5";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
var _local3 = 0;
while (_local3 < building18Objects.length) {
if (building18Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(building18Objects[_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 = building18Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = building18Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
building18Objects[this.arrayPlace].taken = "yes";
if (building18Objects[this.arrayPlace].mcType == "medPack_mc") {
medPack++;
} else if (building18Objects[this.arrayPlace].mcType == "shotgunAmmo_mc") {
shotgunAmmo = shotgunAmmo + 8;
} else if (building18Objects[this.arrayPlace].mcType == "deagleAmmo_mc") {
deagleAmmo = deagleAmmo + 12;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
}
function building19Spawn() {
lvl_mc.gotoAndStop("building19");
lvl_mc._x = buildingPositions[11].posX;
lvl_mc._y = buildingPositions[11].posY;
character_mc._x = _startingX - (Math.round(200 / movementSpeed) * movementSpeed);
character_mc._y = _startingY;
currentLevel = nextLevel;
spawnZombie("02", 400, 200);
spawnZombie("02", 500, 200);
spawnZombie("02", 600, 200);
spawnZombie("02", 700, 200);
spawnZombie("02", 500, 400);
spawnZombie("02", 600, 400);
spawnZombie("02", 700, 400);
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building19";
nextLevel = "zone6";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
var _local3 = 0;
while (_local3 < building19Objects.length) {
if (building19Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(building19Objects[_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 = building19Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = building19Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
building19Objects[this.arrayPlace].taken = "yes";
if (building19Objects[this.arrayPlace].mcType == "key6_mc") {
key6 = true;
} else if (building19Objects[this.arrayPlace].mcType == "shotgunAmmo_mc") {
shotgunAmmo = shotgunAmmo + 8;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
}
function building20Spawn() {
lvl_mc.gotoAndStop("building20");
lvl_mc._x = buildingPositions[12].posX;
lvl_mc._y = buildingPositions[12].posY;
character_mc._x = _startingX;
character_mc._y = _startingY;
currentLevel = nextLevel;
spawnZombie("03", 500, 500);
spawnZombie("03", 1300, 500);
spawnZombie("04", 2200, 1300);
lvl_mc.hitZone0.onEnterFrame = function () {
if (character_mc.hitTest(this)) {
comingFrom = "building20";
nextLevel = "building13";
delete _root.character_mc.onEnterFrame;
switchLvl_mc.swapDepths(_root.getNextHighestDepth());
switchLvl_mc.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
var _local3 = 0;
while (_local3 < building19Objects.length) {
if (building20Objects[_local3].taken != "yes") {
var _local4 = "object" + objectsSpawned;
_root.lvl_mc.attachMovie(building20Objects[_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 = building20Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = building20Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
building20Objects[this.arrayPlace].taken = "yes";
if (building20Objects[this.arrayPlace].mcType == "key7_mc") {
key7 = true;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
}
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() {
if (currentLevel == "zone1") {
var _local3 = 0;
while (_local3 < zone1Objects.length) {
if (zone1Objects[_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 = zone1Objects[_local3].mcX;
_root.lvl_mc[_local4]._y = zone1Objects[_local3].mcY;
_root.lvl_mc[_local4].onEnterFrame = function () {
if (this.hitTest(_root.character_mc)) {
zone1Objects[this.arrayPlace].taken = "yes";
if (zone1Objects[this.arrayPlace].mcType == "medPack_mc") {
medPack++;
} else if (zone1Objects[this.arrayPlace].mcType == "key1_mc") {
lvl_mc.boundingBox_mc.gotoAndStop("key1");
key1 = true;
} else if (zone1Objects[this.arrayPlace].mcType == "deagleSide_mc") {
deagle = true;
deagleMag = 12;
}
this.gotoAndStop(2);
delete this.onEnterFrame;
}
};
}
_local3++;
}
} else if (currentLevel == "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 (currentLevel == "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 == "zone4") {
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 == "zone5") {
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++;
}
} else if (zone == "zone6") {
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++;
}
} else if (zone == "building7") {
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++;
}
} else if (zone == "building8") {
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++;
}
} else if (zone == "building9") {
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++;
}
} else if (zone == "building10") {
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++;
}
} else if (zone == "building11") {
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++;
}
} else if (zone == "building12") {
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++;
}
} else if (zone == "building13") {
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++;
}
} else if (zone == "building14") {
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++;
}
} else if (zone == "building15") {
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++;
}
} else if (zone == "building16") {
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++;
}
} else if (zone == "building17") {
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++;
}
} else if (zone == "building18") {
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++;
}
} else if (zone == "building19") {
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++;
}
} else if (zone == "building20") {
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();
_root.energy = 100;
var frameRate = 48;
var comingFrom = "";
var currentLevel = "";
var nextLevel = "beginning";
Mouse.hide();
aim_mc.startDrag(true);
var bossDead = false;
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 key4 = false;
var key5 = false;
var key6 = false;
var key7 = false;
var key8 = 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 = 4;
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 zone1Objects = new Array({mcType:"medPack_mc", mcX:3000, mcY:1500, taken:"no"});
var zone3Objects = new Array({mcType:"medPack_mc", mcX:100, mcY:3400, taken:"no"});
var zone6Objects = new Array({mcType:"medPack_mc", mcX:360, mcY:160, taken:"no"}, {mcType:"key3_mc", mcX:160, mcY:440, taken:"no"});
var building7Objects = new Array({mcType:"key8_mc", mcX:3150, mcY:750, taken:"no"});
var building8Objects = new Array({mcType:"key5_mc", mcX:2500, mcY:2000, taken:"no"}, {mcType:"m16Side_mc", mcX:3500, mcY:700, taken:"no"});
var building9Objects = new Array({mcType:"shotgunAmmo_mc", mcX:300, mcY:300, taken:"no"});
var building10Objects = new Array({mcType:"key4_mc", mcX:250, mcY:250, taken:"no"}, {mcType:"uziSide_mc", mcX:250, mcY:900, taken:"no"});
var building11Objects = new Array({mcType:"deagleAmmo_mc", mcX:300, mcY:300, taken:"no"});
var building12Objects = new Array({mcType:"minigunSide_mc", mcX:1600, mcY:700, taken:"no"});
var building14Objects = new Array({mcType:"key2_mc", mcX:300, mcY:700, taken:"no"});
var building15Objects = new Array({mcType:"shotgunSide_mc", mcX:500, mcY:400, taken:"no"});
var building16Objects = new Array({mcType:"key1_mc", mcX:500, mcY:700, taken:"no"});
var building17Objects = new Array({mcType:"deagleSide_mc", mcX:200, mcY:200, taken:"no"});
var building18Objects = new Array({mcType:"shotgunAmmo_mc", mcX:500, mcY:1700, taken:"no"}, {mcType:"medPack_mc", mcX:1400, mcY:1000, taken:"no"}, {mcType:"deagleAmmo_mc", mcX:1600, mcY:300, taken:"no"});
var building19Objects = new Array({mcType:"shotgunAmmo_mc", mcX:700, mcY:150, taken:"no"}, {mcType:"key6_mc", mcX:200, mcY:200, taken:"no"});
var building20Objects = new Array({mcType:"key7_mc", mcX:300, mcY:1600, taken:"no"});
var zone1Positions = new Array({posX:-1591, posY:-410, charPos:"top"}, {posX:-1565, posY:-1400, charPos:"bottom"});
var zone2Positions = new Array({posX:-153, posY:-482, charPos:"left"}, {posX:-1200, posY:-2924, charPos:"bottomright"}, {posX:-1200, posY:-1686, charPos:"right"});
var zone3Positions = new Array({posX:-1592, posY:-4, charPos:"top"}, {posX:-6, posY:-3130, charPos:"left"}, {posX:-6, posY:-1669, charPos:"left"}, {posX:-3197, posY:-1662, charPos:"right"}, {posX:-1578, posY:-3395, charPos:"bottom"}, {posX:-2608, posY:-3395, charPos:"bottom"}, {posX:-1307, posY:-827, charPos:"left"}, {posX:-3, posY:-3052, charPos:"building10"}, {posX:-2550, posY:-896, charPos:"right"}, {posX:-3200, posY:-1850, charPos:"bottomright"}, {posX:-2687, posY:-3317, charPos:"mid"}, {posX:-2608, posY:-3395, charPos:"bottomleft"});
var zone4Positions = new Array({posX:-4, posY:-626, charPos:"left"}, {posX:-3, posY:-135, charPos:"topleft"}, {posX:-490, posY:-1105, charPos:"bottom"}, {posX:-1160, posY:-2, charPos:"topRight"});
var zone5Positions = new Array({posX:-1620, posY:-9, charPos:"top"}, {posX:-2640, posY:-9, charPos:"top"}, {posX:-5, posY:-2399, charPos:"left"}, {posX:-804, posY:-525, charPos:"bottom"}, {posX:-939, posY:-1998, charPos:"top"}, {posX:-2724, posY:-1182, charPos:"right"});
var zone6Positions = new Array({posX:-1196, posY:-1207, charPos:"right"}, {posX:-1194, posY:-140, charPos:"right"});
var building12Positions = new Array({posX:-1375, posY:-5, charPos:"left"}, {posX:-705, posY:-1565, charPos:"top"});
var building13Positions = new Array({posX:-2, posY:-399, charPos:"building13"}, {posX:-117, posY:-200, charPos:"left"});
var buildingPositions = new Array({posX:-1437, posY:-1400, charPos:"bottom"}, {posX:-221, posY:-1026, charPos:"right"}, {posX:-398, posY:-4, charPos:"topleft"}, {posX:-337, posY:-562, charPos:"bottom"}, {posX:-3, posY:-405, charPos:"left"}, {}, {posX:-164, posY:-4, charPos:"top"}, {posX:0, posY:-629, charPos:"right"}, {posX:-95, posY:-7, charPos:"top"}, {posX:-195, posY:-396, charPos:"bottomright"}, {posX:-5, posY:-708, charPos:"left"}, {posX:-5, posY:-60, charPos:"left"}, {posX:-2100, posY:-180, charPos:"right"});
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:10, movementSpeed:1, upLeftX:-25, upRightX:29, upY:-40, downY:17}, {health:30, damage:20, movementSpeed:3, upLeftX:-30, upRightX:31, upY:-35, downY:20}, {health:20, damage:30, movementSpeed:4, upLeftX:-20, upRightX:20, upY:-40, downY:20}, {health:300, damage:50, movementSpeed:6, upLeftX:-53, upRightX:52, upY:-91, downY:30});
var zombie01Attack = enemyStatsArray[0].damage;
var zombie02Attack = enemyStatsArray[1].damage;
var zombie03Attack = enemyStatsArray[2].damage;
var zombie04Attack = enemyStatsArray[3].damage;
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);
changeZone();
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 = 21;
_root.damsg2 = 2;
Symbol 130 MovieClip Frame 21
stop();
Symbol 131 MovieClip [key8_mc] Frame 1
stop();
Symbol 131 MovieClip [key8_mc] Frame 2
stop();
Symbol 134 MovieClip Frame 3
_root.damsg = 20;
_root.damsg2 = 2;
Symbol 134 MovieClip Frame 21
stop();
Symbol 135 MovieClip [key7_mc] Frame 1
stop();
Symbol 135 MovieClip [key7_mc] Frame 2
stop();
Symbol 138 MovieClip Frame 3
_root.damsg = 19;
_root.damsg2 = 2;
Symbol 138 MovieClip Frame 21
stop();
Symbol 139 MovieClip [key6_mc] Frame 1
stop();
Symbol 139 MovieClip [key6_mc] Frame 2
stop();
Symbol 142 MovieClip Frame 3
_root.damsg = 18;
_root.damsg2 = 2;
Symbol 142 MovieClip Frame 21
stop();
Symbol 143 MovieClip [key5_mc] Frame 1
stop();
Symbol 143 MovieClip [key5_mc] Frame 2
stop();
Symbol 146 MovieClip Frame 3
_root.damsg = 22;
_root.damsg2 = 2;
Symbol 146 MovieClip Frame 21
stop();
Symbol 147 MovieClip [key4_mc] Frame 1
stop();
Symbol 147 MovieClip [key4_mc] Frame 2
stop();
Symbol 150 MovieClip Frame 3
_root.damsg = 15;
_root.damsg2 = 2;
Symbol 150 MovieClip Frame 21
stop();
Symbol 151 MovieClip [key3_mc] Frame 1
stop();
Symbol 151 MovieClip [key3_mc] Frame 2
stop();
Symbol 152 MovieClip Frame 3
_root.damsg = 14;
_root.damsg2 = 2;
Symbol 152 MovieClip Frame 21
stop();
Symbol 153 MovieClip [key2_mc] Frame 1
stop();
Symbol 154 MovieClip Frame 3
_root.damsg = 13;
_root.damsg2 = 2;
Symbol 154 MovieClip Frame 21
stop();
Symbol 155 MovieClip [key1_mc] Frame 1
stop();
Symbol 155 MovieClip [key1_mc] Frame 2
stop();
Symbol 173 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(Math.round((_root.energy * 10) / 100));
};
Symbol 177 MovieClip Frame 15
_parent.play();
stop();
Symbol 179 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.shooot == 2) {
_root.shooot = 1;
gotoAndPlay (2);
}
};
Symbol 183 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.shooot == 2) {
_root.shooot = 1;
gotoAndPlay (2);
}
};
Symbol 187 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.shooot == 2) {
_root.shooot = 1;
gotoAndPlay (2);
}
};
Symbol 191 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.shooot == 2) {
_root.shooot = 1;
gotoAndPlay (2);
}
};
Symbol 195 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.shooot == 2) {
_root.shooot = 1;
gotoAndPlay (2);
}
};
Symbol 199 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.shooot == 2) {
_root.shooot = 1;
gotoAndPlay (2);
}
};
Symbol 200 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.wp);
};
Symbol 203 MovieClip [character_mc] Frame 21
stop();
Symbol 218 MovieClip Frame 15
stop();
Symbol 220 MovieClip Frame 23
this._parent.beingHit = false;
this.gotoAndStop(1);
this._parent.gotoAndStop(2);
Symbol 221 MovieClip Frame 8
if (this._parent.hitTest(_root.character_mc)) {
_root.energy = _root.energy - _root.zombie02Attack;
}
Symbol 221 MovieClip Frame 30
this._parent.characterTest = 0;
this._parent.attackState = 0;
this._parent.gotoAndStop(1);
Symbol 224 MovieClip Frame 1
aa = random(4) + 1;
_root.howmuchkilled = _root.howmuchkilled + 1;
Symbol 224 MovieClip Frame 3
gotoAndStop(aa + 2);
Symbol 224 MovieClip Frame 6
stop();
Symbol 227 MovieClip Frame 255
stop();
Symbol 228 MovieClip [zombie02_mc] Frame 1
stop();
Symbol 228 MovieClip [zombie02_mc] Frame 4
zombie014_mc.gotoAndPlay(2);
Symbol 240 MovieClip Frame 2
aa2 = random(100) + 290;
Symbol 240 MovieClip Frame 3
gotoAndPlay(aa2);
Symbol 240 MovieClip Frame 400
aa = random(4) + 1;
Symbol 240 MovieClip Frame 401
gotoAndPlay((aa * 2) + 400);
Symbol 240 MovieClip Frame 403
gotoAndPlay (2);
Symbol 240 MovieClip Frame 405
gotoAndPlay (2);
Symbol 240 MovieClip Frame 407
gotoAndPlay (2);
Symbol 240 MovieClip Frame 409
gotoAndPlay (2);
Symbol 243 MovieClip Frame 15
this._parent.beingHit = false;
this.gotoAndStop(1);
this._parent.gotoAndStop(2);
Symbol 244 MovieClip Frame 15
if (this._parent.hitTest(_root.character_mc)) {
_root.dasnd = 1;
_root.dasnd2 = 2;
_root.energy = _root.energy - _root.zombie01Attack;
}
Symbol 244 MovieClip Frame 30
this._parent.characterTest = 0;
this._parent.attackState = 0;
this._parent.gotoAndStop(1);
Symbol 255 MovieClip Frame 1
if (_root.calldedebut != 2) {
_root.calldedebut = 2;
gotoAndPlay (3);
}
Symbol 255 MovieClip Frame 2
stop();
Symbol 255 MovieClip Frame 3
if (_root.gore == 1) {
gotoAndPlay (4);
} else {
gotoAndPlay (6);
}
Symbol 255 MovieClip Frame 5
stop();
Symbol 255 MovieClip Frame 7
stop();
Symbol 256 MovieClip Frame 250
stop();
Symbol 257 MovieClip [zombie01_mc] Frame 1
stop();
Symbol 257 MovieClip [zombie01_mc] Frame 4
zombie014_mc.gotoAndPlay(2);
Symbol 260 MovieClip [bullet_mc] Frame 1
gotoAndStop(_root.currentWeapon + 1);
Symbol 266 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.energy + 1);
};
Symbol 290 Button
on (release) {
getURL ("http://www.gamesfree.ca/walkthrough/bulwark53part2.php", "_blank");
}
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 50
_root.reloadWeapon();
Symbol 314 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.currentWeapon + 1);
if (_root.currentWeapon == 5) {
if (_root.minigunMag < 5) {
_root.minigunMag = 5;
}
}
};
Symbol 319 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(st);
};
Symbol 324 MovieClip Frame 1
stop();
_root.howmuchkilled = 0;
onEnterFrame = function () {
if (_root.howmuchkilled == 4) {
_root.howmuchkilled = 0;
aa = random(3) + 3;
gotoAndPlay (2);
}
};
Symbol 324 MovieClip Frame 2
gotoAndPlay(aa);
Symbol 324 MovieClip Frame 4
gotoAndStop (1);
Symbol 324 MovieClip Frame 6
gotoAndStop (1);
Symbol 324 MovieClip Frame 8
gotoAndStop (1);
Symbol 326 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.dasnd2 == 2) {
_root.dasnd2 = 1;
gotoAndPlay(_root.dasnd * 2);
}
};
Symbol 328 Button
on (keyPress "i") {
gotoAndStop (2);
}
Symbol 329 Button
on (keyPress "o") {
gotoAndStop (3);
}
Symbol 330 Button
on (keyPress "p") {
gotoAndStop (4);
}
Symbol 331 Button
on (keyPress "i") {
gotoAndStop (5);
}
Symbol 332 Button
on (keyPress "o") {
gotoAndStop (6);
}
Symbol 333 Button
on (keyPress "p") {
gotoAndStop (1);
_root.movementSpeed = 4;
}
Symbol 334 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 4
_root.movementSpeed = 25;
_root.damsg = 16;
_root.damsg2 = 2;
stop();
Symbol 358 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.damsg);
};
Symbol 382 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.damsg);
};
Symbol 383 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.damsg2 == 2) {
_root.damsg2 = 1;
gotoAndPlay (2);
}
};
Symbol 388 Button
on (release) {
getURL (_root.moregameslink, "_blank");
}
Symbol 401 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 528 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.lavr + 1);
};
Symbol 528 MovieClip Frame 2
_root.moregameslink = "http://www.agame.com";
Symbol 528 MovieClip Frame 3
_root.moregameslink = "http://www.andkon.com";
Symbol 528 MovieClip Frame 4
_root.moregameslink = "http://www.anyad.rulez.org";
Symbol 528 MovieClip Frame 5
_root.moregameslink = "http://www.armorgames.com";
Symbol 528 MovieClip Frame 6
_root.moregameslink = "http://www.bringler.com";
Symbol 528 MovieClip Frame 7
_root.moregameslink = "http://www.bubblebox.com";
Symbol 528 MovieClip Frame 8
_root.moregameslink = "http://www.bunnygames.com";
Symbol 528 MovieClip Frame 9
_root.moregameslink = "http://www.dailyfreegames.com";
Symbol 528 MovieClip Frame 10
_root.moregameslink = "http://www.directgamez.com";
Symbol 528 MovieClip Frame 11
_root.moregameslink = "http://www.2flashgames.com";
Symbol 528 MovieClip Frame 12
_root.moregameslink = "http://www.flashninjaclan.com";
Symbol 528 MovieClip Frame 13
_root.moregameslink = "http://www.freeonlinegames.com";
Symbol 528 MovieClip Frame 14
_root.moregameslink = "http://www.funny-games.biz";
Symbol 528 MovieClip Frame 15
_root.moregameslink = "http://www.gameitnow.com";
Symbol 528 MovieClip Frame 16
_root.moregameslink = "http://www.gamesplz.com";
Symbol 528 MovieClip Frame 17
_root.moregameslink = "http://www.gameserpent.com";
Symbol 528 MovieClip Frame 18
_root.moregameslink = "http://www.gamesfreak.net";
Symbol 528 MovieClip Frame 19
_root.moregameslink = "http://www.gameshot.org";
Symbol 528 MovieClip Frame 20
_root.moregameslink = "http://www.jarkey.net";
Symbol 528 MovieClip Frame 21
_root.moregameslink = "http://www.play4all.net/";
Symbol 528 MovieClip Frame 22
_root.moregameslink = "http://www.keepbusy.net";
Symbol 528 MovieClip Frame 23
_root.moregameslink = "http://www.microjogos.com";
Symbol 528 MovieClip Frame 24
_root.moregameslink = "http://www.minijuegos.com";
Symbol 528 MovieClip Frame 25
_root.moregameslink = "http://www.mofunzone.com";
Symbol 528 MovieClip Frame 26
_root.moregameslink = "http://www.mostfungames.com";
Symbol 528 MovieClip Frame 27
_root.moregameslink = "http://www.onemorelevel.com";
Symbol 528 MovieClip Frame 28
_root.moregameslink = "http://www.online-games-zone.com/";
Symbol 528 MovieClip Frame 29
_root.moregameslink = "http://www.puffgames.com";
Symbol 528 MovieClip Frame 30
_root.moregameslink = "http://www.spele.nl";
Symbol 528 MovieClip Frame 31
_root.moregameslink = "http://www.t45ol.com";
Symbol 528 MovieClip Frame 32
_root.moregameslink = "http://www.flashbot.com";
Symbol 528 MovieClip Frame 33
_root.moregameslink = "http://www.ultimatearcade.com";
Symbol 528 MovieClip Frame 34
_root.moregameslink = "http://www.zptweb.net";
Symbol 528 MovieClip Frame 35
_root.moregameslink = "http://www.gamesfree.ca/";
Symbol 528 MovieClip Frame 36
_root.moregameslink = "http://www.jeuxvideo-flash.com/";
Symbol 528 MovieClip Frame 37
_root.moregameslink = "http://www.gamespond.net/";
Symbol 528 MovieClip Frame 38
_root.moregameslink = "http://www.flashgames.it/";
Symbol 528 MovieClip Frame 39
_root.moregameslink = "http://www.flobzoo.com/";
Symbol 528 MovieClip Frame 40
_root.moregameslink = "http://www.hallpass.com/";
Symbol 528 MovieClip Frame 41
_root.moregameslink = "http://www.addictinggames.com/";
Symbol 528 MovieClip Frame 42
_root.moregameslink = "http://www.benz.be";
Symbol 528 MovieClip Frame 43
_root.moregameslink = "http://www.twizl.com/";
Symbol 528 MovieClip Frame 44
_root.moregameslink = "http://www.net-games.biz/";
Symbol 528 MovieClip Frame 45
_root.moregameslink = "http://www.pinkyarcade.com/";
Symbol 528 MovieClip Frame 46
_root.moregameslink = "http://www.komikler.com/index.php";
Symbol 528 MovieClip Frame 47
_root.moregameslink = "http://www.gameonly.com";
Symbol 528 MovieClip Frame 48
_root.moregameslink = "http://www.a10.com/";
Symbol 528 MovieClip Frame 49
_root.moregameslink = "http://www.neodelight.com/";
Symbol 528 MovieClip Frame 50
_root.moregameslink = "http://www.octogames.com/";
Symbol 528 MovieClip Frame 51
_root.moregameslink = "http://www.gamedesire.com/";
Symbol 528 MovieClip Frame 52
_root.moregameslink = "http://www.arcadespark.com/ ";
Symbol 528 MovieClip Frame 53
_root.moregameslink = "http://www.killhours.com/";
Symbol 528 MovieClip Frame 54
_root.moregameslink = "http://www.flasharcadegamessite.com/";
Symbol 528 MovieClip Frame 55
_root.moregameslink = "http://www.roundgames.com/";
Symbol 528 MovieClip Frame 56
_root.moregameslink = "http://www.arcadegangsta.com/";
Symbol 528 MovieClip Frame 57
_root.moregameslink = "http://www.gamebusted.com/";
Symbol 528 MovieClip Frame 58
_root.moregameslink = "http://www.flash-games.net/";
Symbol 528 MovieClip Frame 59
_root.moregameslink = "http://www.flash-game.net/";
Symbol 528 MovieClip Frame 60
_root.moregameslink = "http://www.jeuxclic.com/";
Symbol 528 MovieClip Frame 61
_root.moregameslink = "http://www.stungames.com/";
Symbol 528 MovieClip Frame 62
_root.moregameslink = "http://www.toolight.com/";
Symbol 528 MovieClip Frame 63
_root.moregameslink = "http://www.tomsgames.com/";
Symbol 528 MovieClip Frame 64
_root.moregameslink = "http://www.zango.com/";
Symbol 528 MovieClip Frame 65
_root.moregameslink = "http://www.branchez-vous.com/";
Symbol 530 MovieClip [interface_mc] Frame 1
stop();
Instance of Symbol 319 MovieClip in Symbol 530 MovieClip [interface_mc] Frame 1
onClipEvent (enterFrame) {
nb = 1;
if (_root.beretta == true) {
st = 2;
} else {
st = 1;
}
}
Instance of Symbol 319 MovieClip in Symbol 530 MovieClip [interface_mc] Frame 1
onClipEvent (enterFrame) {
nb = 2;
if (_root.deagle == true) {
st = 2;
} else {
st = 1;
}
}
Instance of Symbol 319 MovieClip in Symbol 530 MovieClip [interface_mc] Frame 1
onClipEvent (enterFrame) {
nb = 3;
if (_root.shotgun == true) {
st = 2;
} else {
st = 1;
}
}
Instance of Symbol 319 MovieClip in Symbol 530 MovieClip [interface_mc] Frame 1
onClipEvent (enterFrame) {
nb = 4;
if (_root.uzi == true) {
st = 2;
} else {
st = 1;
}
}
Instance of Symbol 319 MovieClip in Symbol 530 MovieClip [interface_mc] Frame 1
onClipEvent (enterFrame) {
nb = 5;
if (_root.m16 == true) {
st = 2;
} else {
st = 1;
}
}
Instance of Symbol 319 MovieClip in Symbol 530 MovieClip [interface_mc] Frame 1
onClipEvent (enterFrame) {
nb = 6;
if (_root.minigun == true) {
st = 2;
} else {
st = 1;
}
}
Symbol 540 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 540 MovieClip Frame 2
gotoAndPlay (1);
Symbol 540 MovieClip Frame 3
_root.play();
Symbol 542 MovieClip Frame 1
onEnterFrame = function () {
_root.perper = _root.PercentLoaded;
gotoAndStop(_root.perper);
};
stop();
Symbol 542 MovieClip Frame 100
stop();
Symbol 765 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 547 Button
on (release) {
gotoAndPlay (4);
}
Symbol 550 Button
on (keyPress "<Space>") {
_parent.play();
}
Symbol 551 MovieClip Frame 150
stop();
Symbol 556 MovieClip Frame 67
stop();
Symbol 571 MovieClip Frame 12
stop();
Symbol 572 MovieClip Frame 5
stopAllSounds();
Symbol 572 MovieClip Frame 215
_root.got2go = 2;
stop();
Symbol 573 Button
on (release) {
getURL ("http://www.pyrozen.com/", "_blank");
}
on (keyPress "<Space>") {
_root.got2go = 2;
}
Instance of Symbol 577 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(156));
}
Instance of Symbol 577 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(156));
}
Instance of Symbol 577 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(156));
}
Instance of Symbol 577 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(156));
}
Symbol 580 MovieClip Frame 40
stop();
Symbol 581 MovieClip Frame 20
stop();
Symbol 583 Button
on (release) {
gotoAndStop (21);
}
Symbol 585 Button
on (release) {
getURL ("http://www.gamesfree.ca/walkthrough/bulwark53part2.php", "_blank");
}
Symbol 587 Button
on (release) {
getURL ("http://www.gamesfree.ca/", "_blank");
}
Symbol 589 Button
on (release) {
getURL ("http://www.gamesfree.ca/0-51-Bulwark_53.html", "_blank");
}
Symbol 591 Button
on (release) {
gotoAndStop (2);
}
Symbol 601 Button
on (release) {
gotoAndStop (1);
}
Symbol 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 2
stop();
Symbol 605 MovieClip Frame 1
stopAllSounds();
Symbol 605 MovieClip Frame 3
stop();
Symbol 616 MovieClip Frame 1228
_root.got2go = 2;
stop();
Symbol 620 Button
on (release) {
gotoAndStop (22);
}
Symbol 623 MovieClip Frame 1
stopAllSounds();
Symbol 623 MovieClip Frame 3
stop();
Symbol 631 Button
on (release) {
gotoAndStop (28);
}
Symbol 637 Button
on (release) {
gotoAndStop (19);
}
Symbol 751 MovieClip Frame 1
stop();
Symbol 755 MovieClip Frame 1
stop();
Symbol 755 MovieClip Frame 40
_root.character_mc.gotoAndStop("stand");
_root.removeZombies();
_root.removeObjects();
_root.changeZone();
Symbol 755 MovieClip Frame 89
_root.addCharacterEnterFrame();
Symbol 759 MovieClip Frame 9
if (_root.gore == 1) {
gotoAndPlay (10);
}
if (_root.gore == 2) {
gotoAndPlay (12);
}
Symbol 759 MovieClip Frame 11
stop();
Symbol 759 MovieClip Frame 13
stop();
Symbol 761 MovieClip Frame 1
stopAllSounds();
Symbol 761 MovieClip Frame 3
stop();
Symbol 764 Button
on (keyPress "m") {
if (medPack > 0) {
medPack--;
energy = 100;
}
}
on (keyPress "M") {
if (medPack > 0) {
medPack--;
energy = 100;
}
}