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);
}
function countDown() {
percent = Math.floor((_root.getBytesLoaded() / getBytesTotal()) * 100);
if (percent >= 100) {
sec++;
} else {
sec = sec + 0.1;
}
}
__com_mochibot__("de23d2d3", this, 10301, true);
stop();
var CPMStarContentSpotID = "2268QF5C70900";
System.security.allowDomain("server.cpmstar.com");
loader.adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
sec = 0;
countdown = setInterval(countDown, 45);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
_root.localization_url1 = (((("http://www.a10.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 46;
_root.localization_portal = "teen";
if (_root.localization_portal == "game_com_cn") {
mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
mainscreen_logo.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
mainscreen_logo.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
}
Frame 2
stop();
gamename = "zombie_warfare";
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
if (hostingdomain == "") {
hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((hostingdomain == savedomain1) || (hostingdomain == savedomain2)) {
spilnetwerk = "internal";
} else {
spilnetwerk = "external";
}
_root.localization_url1 = (((("http://www.a10.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 46;
_root.localization_portal = "teen";
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
Frame 3
stop();
aSound.stop();
aSound2.stop();
aSound3.stop();
Mouse.show();
removeMovieClip(player);
removeMovieClip(arena);
removeMovieClip(aim);
removeMovieClip(bar);
removeMovieClip(radar);
removeMovieClip(wc);
removeMovieClip(store);
removeMovieClip(textBar);
removeMovieClip(pauseFrame);
removeMovieClip(rageBg);
removeMovieClip(healthBar);
removeMovieClip(miniA);
removeMovieClip(bda);
removeMovieClip(sp);
onEnterFrame = function () {
if (wasPlayed == true) {
i = zombies.length - 1;
while (i >= 0) {
zombies[i].removeMovieClip();
zombieDots[i].removeMovieClip();
i--;
}
}
if (instructions._currentframe == 2) {
playGame.enabled = false;
instructionsGame.enabled = false;
moreGame.enabled = false;
} else {
playGame.enabled = true;
instructionsGame.enabled = true;
moreGame.enabled = true;
}
};
if (_root.localization_portal == "game_com_cn") {
mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
mainscreen_logo.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
mainscreen_logo.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
}
Frame 4
function shoot() {
shotDelay = shotDelay - 1;
if (((((gun == "pistol") || ((gun == "uzi") && (uziAmmo > 0))) || ((gun == "shotgun") && (shotgunAmmo > 0))) || ((gun == "magnum") && (magnumAmmo > 0))) || ((gun == "minigun") && (minigunAmmo > 0))) {
shootable = true;
said = false;
} else {
shootable = false;
if (said != true) {
information("Out of Ammo!");
said = true;
}
}
if (((mouseIsDown == 1) && (shotDelay <= 0)) && (shootable == true)) {
if (gun == "pistol") {
shotDelay = pistolSpeed;
if ((pistolAmmoLevel != 5) && (rageMode != true)) {
ammo = ammo - 0;
bar.ammoText = "\u221E";
}
} else if (gun == "uzi") {
if ((uziAmmoLevel != 5) && (rageMode != true)) {
shotDelay = uziSpeed;
uziAmmo = uziAmmo - 1;
bar.ammoText = uziAmmo;
} else {
shotDelay = uziSpeed;
bar.ammoText = "\u221E";
}
} else if (gun == "shotgun") {
if ((shotgunAmmoLevel != 5) && (rageMode != true)) {
shotDelay = shotgunSpeed;
shotgunAmmo = shotgunAmmo - 1;
bar.ammoText = shotgunAmmo;
} else {
shotDelay = shotgunSpeed;
bar.ammoText = "\u221E";
}
} else if (gun == "magnum") {
if ((shotgunAmmoLevel != 5) && (rageMode != true)) {
shotDelay = magnumSpeed;
magnumAmmo = magnumAmmo - 1;
bar.ammoText = magnumAmmo;
} else {
shotDelay = magnumSpeed;
bar.ammoText = "\u221E";
}
} else if (gun == "minigun") {
if ((minigunAmmoLevel != 5) && (rageMode != true)) {
shotDelay = minigunSpeed;
minigunAmmo = minigunAmmo - 1;
bar.ammoText = minigunAmmo;
} else {
shotDelay = minigunSpeed;
bar.ammoText = "\u221E";
}
}
if (rageMode == true) {
if (gun != "shotgun") {
shotDelay = 1;
} else {
shotDelay = 3;
}
}
if (gun != "minigun") {
bl = attachMovie("blast", "blast" + depth, depth);
depth++;
bl._x = player._x;
bl._y = player._y;
bl._rotation = player._rotation;
var counter = 10;
bl.onEnterFrame = function () {
counter = counter - 1;
if (counter <= 0) {
this.removeMovieClip();
}
this._x = player._x;
this._y = player._y;
this._rotation = player._rotation;
};
}
bu = attachMovie("bullet", "bullet" + depth, depth);
depth++;
aSound.start(0, 1);
aSound.start(0, 1);
aSound.start(0, 1);
aSound.start(0, 1);
bu._x = player._x;
bu._y = player._y;
if (gun != 3) {
bu._rotation = player._rotation + randRange(-3, 3);
} else {
bu._rotation = player._rotation;
}
bullets.push(bu);
bulletTerminate.push(0);
var _local3 = Math.cos((bu._rotation * Math.PI) / 180) * 25;
var _local2 = Math.sin((bu._rotation * Math.PI) / 180) * 25;
bu._x = bu._x + (_local3 * 2);
bu._y = bu._y + (_local2 * 2);
bulletsX.push(_local3);
bulletsY.push(_local2);
if (gun == "shotgun") {
bb = attachMovie("bullet", "bullet" + depth, depth);
depth++;
bb._x = player._x;
bb._y = player._y;
bb._rotation = player._rotation + 7;
bullets.push(bb);
bulletTerminate.push(0);
_local3 = Math.cos((bb._rotation * Math.PI) / 180) * 25;
_local2 = Math.sin((bb._rotation * Math.PI) / 180) * 25;
bb._x = bb._x + (_local3 * 2);
bb._y = bb._y + (_local2 * 2);
bulletsX.push(_local3);
bulletsY.push(_local2);
bc = attachMovie("bullet", "bullet" + depth, depth);
depth++;
bc._x = player._x;
bc._y = player._y;
bc._rotation = player._rotation - 7;
bullets.push(bc);
bulletTerminate.push(0);
_local3 = Math.cos((bc._rotation * Math.PI) / 180) * 25;
_local2 = Math.sin((bc._rotation * Math.PI) / 180) * 25;
bc._x = bc._x + (_local3 * 2);
bc._y = bc._y + (_local2 * 2);
bulletsX.push(_local3);
bulletsY.push(_local2);
}
}
}
function bulletMovement() {
i = bullets.length - 1;
while (i >= 0) {
bullets[i]._x = bullets[i]._x + bulletsX[i];
bullets[i]._y = bullets[i]._y + bulletsY[i];
bullets[i]._x = bullets[i]._x - newX;
bullets[i]._y = bullets[i]._y - newY;
if (bullets[i]._x > 650) {
removeBullet(i);
}
if (bullets[i]._x < -10) {
removeBullet(i);
}
if (bullets[i]._y > 490) {
removeBullet(i);
}
if (bullets[i]._y < -10) {
removeBullet(i);
}
i--;
}
}
function removeBullet(i) {
bullets[i].removeMovieClip();
bullets.splice(i, 1);
bulletsX.splice(i, 1);
bulletsY.splice(i, 1);
bulletTerminate.splice(i, 1);
}
function information(insert) {
textBar.gotoAndStop(2);
textBar._alpha = 100;
textBar.inform.text = insert;
}
function removeZombie(i) {
zombiesAlive = zombiesAlive - 1;
var _local3 = randRange(1, 2);
if (zombieType[i] == 1) {
money = money + 20;
score = score + 1;
} else if (zombieType[i] == 2) {
money = money + 30;
score = score + 1;
} else if (zombieType[i] == 3) {
money = money + 50;
score = score + 1;
} else if (zombieType[i] == 4) {
money = money + 100;
score = score + 1;
} else if (zombieType[i] == 5) {
money = money + 150;
score = score + 1;
} else if (zombieType[i] == 6) {
money = money + 200;
score = score + 1;
} else if (zombieType[i] == 7) {
money = money + 300;
score = score + 1;
} else if (zombieType[i] == 8) {
money = money + 400;
score = score + 1;
} else if (zombieType[i] == 9) {
money = money + 600;
score = score + 1;
} else if (zombieType[i] == 20) {
money = money + 2500;
score = score + 1;
} else if (zombieType[i] == 21) {
money = money + 20000;
score = score + 1;
}
if (bloodOn == true) {
bd = bg.attachMovie("blood2", "blood2" + depth, depth);
bd.gotoAndStop(random(4) + 1);
}
bar.moneyText = money;
bar.scoreText = score;
if (rage < 100) {
rage = rage + 1;
bar.rageMeter._width = bar.rageMeter._width + 1;
thisSaid = false;
} else if (thisSaid != true) {
if (rageMode != true) {
information("Rage Mode Ready! Press Space to Activate!");
}
thisSaid = true;
rage = 100;
bar.rageMeter._width = 100;
}
depth++;
bd._x = zombies[i]._x - bg._x;
bd._y = zombies[i]._y - bg._y;
bd._rotation = zombies[i]._rotation + 90;
if (_local3 == 1) {
bd._rotation = bd._rotation + 180;
bd._xscale = bd._xscale * -1;
}
var counter = 100;
bd.onEnterFrame = function () {
counter = counter - 1;
if (counter <= 0) {
this._alpha = this._alpha - 1;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
zombies[i].removeMovieClip();
zombieDots[i].removeMovieClip();
zombies.splice(i, 1);
zombieType.splice(i, 1);
zombieTerminate.splice(i, 1);
zombieHealth.splice(i, 1);
zombieDots.splice(i, 1);
zombieX.splice(i, 1);
zombieY.splice(i, 1);
zombiePower.splice(i, 1);
zombieRotDelay.splice(i, 1);
}
function createZombie(i) {
if (pause != true) {
zombiesAlive = zombiesAlive + 1;
if (i == 1) {
if (level < 3) {
rand = random(2) + 1;
} else if ((level >= 3) && (level < 7)) {
rand = random(3) + 1;
} else if ((level >= 7) && (level < 11)) {
rand = random(3) + 2;
} else if ((level >= 11) && (level < 15)) {
rand = random(4) + 2;
} else if ((level >= 15) && (level < 16)) {
if (theZombie1 != true) {
rand = 20;
} else {
rand = random(4) + 2;
}
} else if ((level >= 16) && (level <= 19)) {
rand = random(4) + 3;
} else if ((level >= 19) && (level <= 22)) {
rand = random(4) + 4;
} else if ((level >= 22) && (level <= 25)) {
rand = random(3) + 6;
} else if ((level >= 25) && (level < 30)) {
rand = random(3) + 7;
} else if (level == 30) {
if (theZombie != true) {
rand = 21;
} else {
rand = random(3) + 7;
}
}
}
if (rand == 1) {
zom = attachMovie("zombie1", "zombie" + depth, depth);
} else if (rand == 2) {
zom = attachMovie("zombie2", "zombie" + depth, depth);
} else if (rand == 3) {
zom = attachMovie("zombie3", "zombie" + depth, depth);
} else if (rand == 4) {
zom = attachMovie("zombie4", "zombie" + depth, depth);
} else if (rand == 5) {
zom = attachMovie("zombie5", "zombie" + depth, depth);
} else if (rand == 6) {
zom = attachMovie("zombie6", "zombie" + depth, depth);
} else if (rand == 7) {
zom = attachMovie("zombie7", "zombie" + depth, depth);
} else if (rand == 8) {
zom = attachMovie("zombie8", "zombie" + depth, depth);
} else if (rand == 9) {
zom = attachMovie("zombie9", "zombie" + depth, depth);
} else if (rand == 20) {
zom = attachMovie("boss1", "zombie" + depth, depth);
theZombie1 = true;
} else if (rand == 21) {
zom = attachMovie("boss2", "zombie" + depth, depth);
theZombie = true;
}
depth++;
var _local1 = randRange(1, 4);
if (_local1 == 1) {
zom._x = arena._x + (arena._width / 2);
zom._y = arena._y + randRange(-50, 50);
}
if (_local1 == 2) {
zom._x = arena._x - (arena._width / 2);
zom._y = arena._y + randRange(-50, 50);
}
if (_local1 == 3) {
zom._x = arena._x + randRange(-50, 50);
zom._y = arena._y + (arena._height / 2);
}
if (_local1 == 4) {
zom._x = arena._x + randRange(-50, 50);
zom._y = arena._y - (arena._height / 2);
}
if (rand == 1) {
zombieHealth.push(3);
zombieType.push(1);
} else if (rand == 2) {
zombieHealth.push(4);
zombieType.push(2);
} else if (rand == 3) {
zombieHealth.push(2);
zombieType.push(3);
} else if (rand == 4) {
zombieHealth.push(15);
zombieType.push(4);
} else if (rand == 5) {
zombieHealth.push(10);
zombieType.push(5);
} else if (rand == 6) {
zombieHealth.push(11);
zombieType.push(6);
} else if (rand == 7) {
zombieHealth.push(15);
zombieType.push(7);
} else if (rand == 8) {
zombieHealth.push(40);
zombieType.push(8);
} else if (rand == 9) {
zombieHealth.push(25);
zombieType.push(9);
} else if (rand == 20) {
zombieHealth.push(500);
zombieType.push(20);
} else if (rand == 21) {
zombieHealth.push(2000);
zombieType.push(21);
}
zd = attachMovie("zombieDot", "zombieDot" + depth2, depth2);
depth2++;
zd._x = radar._x + ((zom._x - player._x) / 20);
zd._y = radar._y + ((zom._y - player._y) / 20);
zombieDots.push(zd);
}
zombieRotDelay.push(0);
zombies.push(zom);
zombieTerminate.push(0);
}
function zombieMovement() {
if ((pause != true) || (_currentframe == 1)) {
i = zombies.length - 1;
while (i >= 0) {
zombieRotDelay[i] = zombieRotDelay[i] - 1;
if (zombieRotDelay[i] <= 0) {
zombieRotDelay[i] = 20;
var _local3 = player._x - zombies[i]._x;
var _local2 = player._y - zombies[i]._y;
var _local1 = Math.atan2(_local2, _local3);
zombies[i]._rotation = ((_local1 * 180) / Math.PI) + 90;
if (zombieType[i] == 1) {
zombieX[i] = Math.cos(_local1) * 2;
zombieY[i] = Math.sin(_local1) * 2;
zombiePower[i] = 10;
} else if (zombieType[i] == 2) {
zombieX[i] = Math.cos(_local1) * 2.5;
zombieY[i] = Math.sin(_local1) * 2.5;
zombiePower[i] = 12;
} else if (zombieType[i] == 3) {
zombieX[i] = Math.cos(_local1) * 4;
zombieY[i] = Math.sin(_local1) * 4;
zombiePower[i] = 60;
} else if (zombieType[i] == 4) {
zombieX[i] = Math.cos(_local1) * 1.5;
zombieY[i] = Math.sin(_local1) * 1.5;
zombiePower[i] = 30;
} else if (zombieType[i] == 5) {
zombieX[i] = Math.cos(_local1) * 2.8;
zombieY[i] = Math.sin(_local1) * 2.8;
zombiePower[i] = 20;
} else if (zombieType[i] == 6) {
zombieX[i] = Math.cos(_local1) * 2.5;
zombieY[i] = Math.sin(_local1) * 2.5;
zombiePower[i] = 40;
} else if (zombieType[i] == 7) {
zombieX[i] = Math.cos(_local1) * 4.2;
zombieY[i] = Math.sin(_local1) * 4.2;
zombiePower[i] = 70;
} else if (zombieType[i] == 8) {
zombieX[i] = Math.cos(_local1) * 1.6;
zombieY[i] = Math.sin(_local1) * 1.6;
zombiePower[i] = 60;
} else if (zombieType[i] == 9) {
zombieX[i] = Math.cos(_local1) * 2.7;
zombieY[i] = Math.sin(_local1) * 2.7;
zombiePower[i] = 40;
} else if (zombieType[i] == 20) {
zombieX[i] = Math.cos(_local1) * 7;
zombieY[i] = Math.sin(_local1) * 7;
zombiePower[i] = 45;
} else if (zombieType[i] == 21) {
zombieX[i] = Math.cos(_local1) * 6;
zombieY[i] = Math.sin(_local1) * 6;
zombiePower[i] = 100;
}
}
zombies[i]._x = zombies[i]._x + zombieX[i];
zombies[i]._y = zombies[i]._y + zombieY[i];
zombies[i]._x = zombies[i]._x - newX;
zombies[i]._y = zombies[i]._y - newY;
var _local4 = randRange(1, 25);
if (zombies[i].hitTest(player.inner) && (invul != true)) {
health = health - zombiePower[i];
zombies[i].gotoAndStop(2);
healthFraction = health / totalHealth;
if (health > 0) {
healthBar.inner._width = Math.round(50 * healthFraction);
} else {
healthBar.inner._width = 0;
pauseFrame.gotoAndStop(3);
pause = true;
}
aSound4.start(0, 1);
aSound4.start(0, 1);
invul = true;
player._alpha = 50;
}
if (zombies[i].hitTest(player)) {
zombies[i].gotoAndStop(2);
} else if (!zombies[i].hitTest(player)) {
zombies[i].gotoAndStop(1);
}
if (invul == true) {
timer1 = timer1 + 1;
}
if (timer1 >= 190) {
player._alpha = 100;
}
if (timer1 >= 220) {
timer1 = 0;
invul = false;
}
zombieDots[i]._x = radar._x + ((zombies[i]._x - player._x) / 20);
zombieDots[i]._y = radar._y + ((zombies[i]._y - player._y) / 20);
if (arena.inside.hitTest(zombies[i]._x - (zombies[i]._width / 2), zombies[i]._y, true)) {
zombies[i]._x = zombies[i]._x + 2;
}
if (arena.inside.hitTest(zombies[i]._x + (zombies[i]._width / 2), zombies[i]._y, true)) {
zombies[i]._x = zombies[i]._x - 2;
}
if (arena.inside.hitTest(zombies[i]._x, zombies[i]._y - (zombies[i]._height / 2), true)) {
zombies[i]._y = zombies[i]._y + 2;
}
if (arena.inside.hitTest(zombies[i]._x, zombies[i]._y + (zombies[i]._height / 2), true)) {
zombies[i]._y = zombies[i]._y - 2;
}
if (radar.outside.hitTest(zombieDots[i]._x, zombieDots[i]._y, true)) {
zombieDots[i]._alpha = 0;
} else {
zombieDots[i]._alpha = 100;
}
if (leavingGame == true) {
removeZombie(i);
}
i--;
}
}
}
function bulletHit(i, b) {
bullets[b].p1._x = bullets[b].p1._x + 1000;
bullets[b].p2._x = bullets[b].p2._x + 1000;
bullets[b].p3._x = bullets[b].p3._x + 1000;
bullets[b].p4._x = bullets[b].p4._x + 1000;
bullets[b].p5._x = bullets[b].p5._x + 1000;
bulletTerminate[b] = 1;
zombies[i]._x = zombies[i]._x + (Math.cos((bullets[b]._rotation * Math.PI) / 180) * 15);
zombies[i]._y = zombies[i]._y + (Math.sin((bullets[b]._rotation * Math.PI) / 180) * 15);
bullets[b]._xscale = (bullets[b]._yscale = 25);
if (rageMode != true) {
if (gun == "pistol") {
zombieHealth[i] = zombieHealth[i] - pistolPower;
} else if (gun == "uzi") {
zombieHealth[i] = zombieHealth[i] - uziPower;
} else if (gun == "shotgun") {
zombieHealth[i] = zombieHealth[i] - shotgunPower;
} else if (gun == "magnum") {
zombieHealth[i] = zombieHealth[i] - magnumPower;
} else if (gun == "minigun") {
zombieHealth[i] = zombieHealth[i] - minigunPower;
}
} else {
zombieHealth[i] = zombieHealth[i] - 12;
}
aSound3.start(0, 1);
shake = 1;
particleEffect(i, b);
if (zombieHealth[i] <= 0) {
zombieTerminate[i] = 1;
}
}
function wallBullet() {
frameNum = frameNum + 1;
b = bullets.length - 1;
while (b >= 0) {
if (arena.inside.hitTest(bullets[b]._x, bullets[b]._y, true)) {
sp = attachMovie("spark", "spark" + depth, depth);
depth++;
sp._x = bullets[b]._x;
sp._y = bullets[b]._y;
sp._rotation = 180 + bullets[b]._rotation;
bulletTerminate[b] = 1;
}
b--;
}
}
function zombieHitTest() {
i = 0;
while (i <= zombies.length) {
b = bullets.length - 1;
while (b >= 0) {
if (bullets[b].p1.hitTest(zombies[i]._x, zombies[i]._y, true) || (bullets[b].p1.hitTest(zombies[i]) && (zombies[i].type == 20))) {
bulletHit(i, b);
if (bloodOn == true) {
bda = bg.attachMovie("droplet", "droplet" + depth, depth);
bda.gotoAndStop(random(7) + 1);
bda._x = zombies[i]._x - bg._x;
bda._y = zombies[i]._y - bg._y;
depth++;
var counterb = 100;
bda.onEnterFrame = function () {
counterb = counterb - 1;
if (counterb <= 0) {
this._alpha = this._alpha - 1;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
}
}
b--;
}
i++;
}
}
function particleEffect(vari, vari2) {
if (bloodOn == true) {
q = 15;
while (q > 0) {
exp = attachMovie("explosion", "explosion" + depth, depth);
exp._xscale = (exp._yscale = randRange(10, 30));
exp._x = zombies[vari]._x;
exp._y = zombies[vari]._y;
depth++;
depth2++;
xDir = Math.cos(((bullets[vari2]._rotation * Math.PI) / 180) + ((Math.random() / 2) - 0.5)) * randRange(1, 10);
yDir = Math.sin(((bullets[vari2]._rotation * Math.PI) / 180) + ((Math.random() / 2) - 0.5)) * randRange(1, 10);
explosions.push(exp);
blooddrops.push(texp);
exX.push(xDir);
exY.push(yDir);
blah = new Color(exp);
q--;
}
}
}
function particleMovement() {
i = explosions.length;
while (i >= 0) {
explosions[i]._x = explosions[i]._x + exX[i];
explosions[i]._y = explosions[i]._y + exY[i];
exX[i] = exX[i] * 0.95;
exY[i] = exY[i] * 0.95;
explosions[i]._alpha = explosions[i]._alpha - 5;
if (explosions[i]._alpha <= 0) {
explosions[i].removeMovieClip();
explosions.splice(i, 1);
exX.splice(i, 1);
exY.splice(i, 1);
}
i--;
}
}
function onEnterFrame() {
if (_root.mute == true) {
aSound2.setVolume(0);
} else {
aSound2.setVolume(40);
}
if (pause != true) {
if (Key.isDown(49)) {
gun = "pistol";
player.gun.gotoAndStop(1);
bar.ammoText = "\u221E";
information("Pistol Equipped");
}
if (Key.isDown(50) && (uziUnlocked == true)) {
gun = "uzi";
player.gun.gotoAndStop(2);
if (uziAmmoLevel < 5) {
bar.ammoText = uziAmmo;
} else {
bar.ammoText = "\u221E";
}
information("Uzi Equipped");
}
if (Key.isDown(51) && (shotgunUnlocked == true)) {
gun = "shotgun";
player.gun.gotoAndStop(3);
information("Shotgun Equipped");
if (shotgunAmmoLevel < 5) {
bar.ammoText = shotgunAmmo;
} else {
bar.ammoText = "\u221E";
}
}
if (Key.isDown(52) && (magnumUnlocked == true)) {
gun = "magnum";
player.gun.gotoAndStop(4);
information("Magnum Equipped");
if (magnumAmmoLevel < 5) {
bar.ammoText = magnumAmmo;
} else {
bar.ammoText = "\u221E";
}
}
if (Key.isDown(53) && (minigunUnlocked == true)) {
gun = "minigun";
player.gun.gotoAndStop(5);
information("Minigun Equipped");
if (minigunAmmoLevel < 5) {
bar.ammoText = minigunAmmo;
} else {
bar.ammoText = "\u221E";
}
}
if ((uziUnlocked == true) && (wasDone != true)) {
information("Use the Number Keys (1-5) to Change Weapons");
firstTime = false;
wasDone = true;
}
if ((Key.isDown(32) && (rage == 100)) && (pause != true)) {
rageMode = true;
information("Rage Mode Activated!");
}
if (gameover == true) {
player._alpha = player._alpha - 0.2;
healthBar._alpha = healthBar._alpha - 2;
gameTimer = gameTimer + 1;
if (gameTimer > 200) {
gotoAndStop ("over");
gameover = false;
player._alpha = 100;
healthBar._alpha = 100;
gameTimer = 0;
}
}
if (rageMode == true) {
rage = rage - 0.3;
bar.rageMeter._width = bar.rageMeter._width - 0.3;
rageBg.gotoAndStop(2);
if (rage < 1) {
rageMode = false;
rage = 0;
rageBg.gotoAndStop(1);
}
}
oldX = player._x;
oldY = player._y;
switchAimer = false;
i = zombies.length - 1;
while (i >= 0) {
if (zombies[i].hitTest(_xmouse, _ymouse, true)) {
switchAimer = true;
}
if (leavingGame == true) {
zombieTerminate[i] = 1;
}
if ((zombieTerminate[i] == 1) || (leavingGame == true)) {
removeZombie(i);
}
i--;
}
if (switchAimer) {
aim.gotoAndStop(2);
} else {
aim.gotoAndStop(1);
}
i = bullets.length - 1;
while (i >= 0) {
if (bulletTerminate[i] == 1) {
removeBullet(i);
}
i--;
}
var _local3 = _xmouse - aim._x;
var _local2 = _ymouse - aim._y;
aim._x = aim._x + (_local3 / 2);
aim._y = aim._y + (_local2 / 2);
steped = 0;
shoot();
if (Key.isDown(39) || (Key.isDown(68))) {
if (arena.inside.hitTest(player._x + (player._width / 2), player._y, true)) {
} else {
player._x = player._x + speed;
steped = 1;
if (player._x >= (640 - (player._width / 2))) {
player._x = 640 - (player._width / 2);
}
}
}
if (Key.isDown(37) || (Key.isDown(65))) {
if (arena.inside.hitTest(player._x - (player._width / 2), player._y, true)) {
} else {
player._x = player._x - speed;
steped = 1;
if (player._x <= (player._width / 2)) {
player._x = player._width / 2;
}
}
}
if (Key.isDown(40) || (Key.isDown(83))) {
if (arena.inside.hitTest(player._x, player._y + (player._height / 2), true)) {
} else {
player._y = player._y + speed;
steped = 1;
if (player._y >= (480 - (player._height / 2))) {
player._y = 480 - (player._height / 2);
}
}
}
if (Key.isDown(38) || (Key.isDown(87))) {
if (arena.inside.hitTest(player._x, player._y - (player._height / 2), true)) {
} else {
player._y = player._y - speed;
steped = 1;
if (player._y <= (player._height / 1.5)) {
player._y = player._height / 1.4;
}
}
}
if (steped == 0) {
player.gotoAndStop(1);
} else {
player.play();
}
zombieTimer = zombieTimer - 1;
if ((zombieTimer <= 0) && (zombiesToAdd > 0)) {
zombiesToAdd = zombiesToAdd - 1;
if (level < 20) {
zombieTimer = 50 - (level * 2);
} else {
zombieTimer = 10;
}
createZombie(randRange(1, ensAllowed));
}
if ((zombiesToAdd <= 0) && (zombiesAlive == 0)) {
if (set != true) {
if (level != 30) {
store.gotoAndStop(2);
set = true;
pause = true;
} else {
gameover = true;
}
}
if ((store._currentframe == 1) && (wc._currentframe == 1)) {
level = level + 1;
bar.levelText = level;
zombieTimer = 200;
wc.gotoAndPlay(2);
if ((level != 15) && (level != 30)) {
oldZombies = oldZombies + 3;
zombiesToAdd = oldZombies;
} else {
information("Boss Incoming!");
firstTime = false;
if (level == 15) {
zombiesToAdd = 30;
} else {
zombiesToAdd = 100;
}
}
set = false;
}
}
var _local5 = _xmouse - player._x;
var _local4 = _ymouse - player._y;
var _local6 = Math.atan2(_local4, _local5);
player._rotation = (_local6 * 180) / Math.PI;
movedX = 1;
movedY = 1;
if (((bg._x <= 585) || (player._x >= 320)) && ((bg._x >= 55) || (player._x <= 320))) {
movedX = 0;
}
if (((bg._y <= 400) || (player._y >= 240)) && ((bg._y >= 95) || (player._y <= 240))) {
movedY = 0;
}
if (movedX == 0) {
newX = player._x - oldX;
bg._x = bg._x - newX;
arena._x = arena._x - newX;
abg._x = abg._x - newX;
wall._x = wall._x - newX;
player._x = oldX;
} else {
newX = 0;
}
if (movedY == 0) {
newY = player._y - oldY;
bg._y = bg._y - newY;
arena._y = arena._y - newY;
abg._y = abg._y - newY;
wall._y = wall._y - newY;
player._y = oldY;
} else {
newY = 0;
}
if ((pause != true) && (set != true)) {
bulletMovement();
zombieMovement();
zombieHitTest();
particleMovement();
wallBullet();
shaker();
miniA._x = radar._x + ((arena._x - player._x) / 20);
miniA._y = radar._y + ((arena._y - player._y) / 20);
}
} else {
var _local3 = _xmouse - aim._x;
var _local2 = _ymouse - aim._y;
aim._x = aim._x + (_local3 / 2);
aim._y = aim._y + (_local2 / 2);
}
}
function shaker() {
if ((gun != "minigun") && (shakeOff != true)) {
if (shake == 0) {
_x = 0;
_y = 0;
} else if (shake == 1) {
shake = shake + 1;
_x = (_x + 3);
_y = (_y + 3);
} else if (shake == 2) {
shake = shake + 1;
_y = (_y - 5);
_x = (_x - 5);
} else if (shake == 3) {
shake = 0;
_x = (_x + 2);
_y = (_y + 2);
}
}
}
function randRange(smallNum, bigNum) {
return(Math.floor(Math.random() * ((bigNum - smallNum) + 1)) + smallNum);
}
stop();
theZombie = false;
theZombie1 = false;
aSound = new Sound(soundClip1);
aSound.attachSound("sound1");
aSound3 = new Sound(soundClip3);
aSound3.attachSound("sound3");
aSound2 = new Sound(soundClip2);
aSound2.attachSound("sound2");
aSound2.setVolume(40);
aSound2.start(0, 99);
aSound4 = new Sound(soundClip4);
aSound4.attachSound("sound4");
shakeOff = false;
Mouse.hide();
speed = 5;
steped = 0;
lives = 4;
gameTimer = 0;
wasPlayed = true;
leavingGame = false;
_quality = "MEDIUM";
shotDelay = 0;
depth = 100;
depth2 = 5000;
level = 1;
ensAllowed = 1;
score = 0;
money = 0;
bloodOn = true;
ammo = 200;
totalAmmo = 200;
bar.ammoText = "\u221E";
bar.moneyText = money;
bar.scoreText = score;
bar.rageMeter._width = 0;
rage = 0;
timer1 = 0;
invul = false;
gun = "pistol";
health = 100;
totalHealth = 100;
bar.levelText = level;
armorLevel = 1;
pistolAmmoLevel = 5;
pistolSpeedLevel = 1;
pistolSpeed = 10;
pistolPower = 0.8;
pistolPowerLevel = 1;
uziUnlocked = false;
uziAmmo = 200;
uziTotalAmmo = 200;
uziAmmoLevel = 1;
uziSpeedLevel = 1;
uziSpeed = 5;
uziPower = 0.8;
uziPowerLevel = 1;
shotgunUnlocked = false;
shotgunAmmo = 200;
shotgunTotalAmmo = 200;
shotgunAmmoLevel = 1;
shotgunSpeedLevel = 1;
shotgunSpeed = 12;
shotgunPower = 1.7;
shotgunPowerLevel = 1;
magnumUnlocked = false;
magnumAmmo = 200;
magnumTotalAmmo = 200;
magnumAmmoLevel = 1;
magnumSpeedLevel = 1;
magnumSpeed = 10;
magnumPower = 8;
magnumPowerLevel = 1;
minigunUnlocked = false;
minigunAmmo = 200;
minigunTotalAmmo = 200;
minigunAmmoLevel = 1;
minigunSpeedLevel = 1;
minigunSpeed = 2.5;
minigunPower = 3;
minigunPowerLevel = 1;
levelEA = new Array(67, 53);
zombieTimer = 0;
oldZombies = 15;
zombiesToAdd = oldZombies;
zombiesAlive = 0;
oldX = 0;
oldY = 0;
newX = 0;
newY = 0;
abg.swapDepths(495000);
arena.swapDepths(500001);
player.swapDepths(500030);
healthBar.swapDepths(500040);
bar.swapDepths(500045);
wc.swapDepths(500050);
radar.swapDepths(500055);
store.swapDepths(500060);
textBar.swapDepths(500070);
rageBg.swapDepths(500080);
pauseFrame.swapDepths(500090);
aim.swapDepths(500100);
bullets = new Array();
bulletsX = new Array();
bulletsY = new Array();
bullets2 = new Array();
bulletsX2 = new Array();
bulletsY2 = new Array();
bulletTerminate = new Array();
explosions = new Array();
exX = new Array();
exY = new Array();
zombies = new Array();
zombieType = new Array();
zombieTerminate = new Array();
zombieHealth = new Array();
zombiePower = new Array();
zombieDots = new Array();
zombieX = new Array();
zombieY = new Array();
zombieRotDelay = new Array();
mouseIsDown = 0;
onMouseDown = function () {
mouseIsDown = 1;
};
onMouseUp = function () {
mouseIsDown = 0;
};
attachMovie("miniA", "miniA", 500005);
miniA._xscale = (miniA._yscale = 120);
pause = false;
player._x = 315.1;
player._y = 237.9;
arena._x = 320;
arena._y = 240;
bg._x = 320;
bg._y = 240;
firstTime = false;
wasDone = false;
information("Arrows or AWSD Keys to Move, Mouse to Shoot");
frameNum = 0;
xDir = 0;
yDir = 0;
switchAimer = true;
movedX = 0;
movedY = 0;
shake = 0;
Instance of Symbol 618 MovieClip "healthBar" in Frame 4
onClipEvent (enterFrame) {
this._y = _root.player._y - 37;
this._x = _root.player._x - 26;
}
Instance of Symbol 823 MovieClip "store" in Frame 4
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._currentframe >= 2) {
if (this._alpha <= 100) {
this._alpha = this._alpha + 3;
}
} else {
this._alpha = 0;
}
}
Frame 5
stop();
scored.text = _root.score;
aSound.stop();
aSound2.stop();
aSound3.stop();
Mouse.show();
removeMovieClip(player);
removeMovieClip(arena);
removeMovieClip(aim);
removeMovieClip(bar);
removeMovieClip(radar);
removeMovieClip(wc);
removeMovieClip(store);
removeMovieClip(textBar);
removeMovieClip(pauseFrame);
removeMovieClip(rageBg);
removeMovieClip(healthBar);
removeMovieClip(miniA);
removeMovieClip(sp);
removeMovieClip(bda);
onEnterFrame = function () {
if (wasPlayed == true) {
i = zombies.length - 1;
while (i >= 0) {
zombies[i].removeMovieClip();
zombieDots[i].removeMovieClip();
i--;
}
i = bullets.length - 1;
while (i >= 0) {
bullets[i].removeMovieClip();
i--;
}
}
if (instructions._currentframe == 2) {
playGame.enabled = false;
instructionsGame.enabled = false;
moreGame.enabled = false;
} else {
playGame.enabled = true;
instructionsGame.enabled = true;
moreGame.enabled = true;
}
};
if (_root.localization_portal == "game_com_cn") {
this.gameover_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
mainscreen_logo.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.gameover_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_gameover_moregames", "_blank");
};
mainscreen_logo.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_gameover_moregames", "_blank");
};
}
Symbol 5 MovieClip [ExampleGame] Frame 1
#initclip 7
Object.registerClass("ExampleGame", ExampleGame);
#endinitclip
Instance of Symbol 4 MovieClip in Symbol 5 MovieClip [ExampleGame] Frame 1
on (release) {
trace("Submitter function calls");
_root.EG.processMethods();
}
Symbol 13 MovieClip [spark] Frame 23
this.removeMovieClip();
Symbol 47 MovieClip [droplet] Frame 1
stop();
Symbol 47 MovieClip [droplet] Frame 2
stop();
Symbol 47 MovieClip [droplet] Frame 3
stop();
Symbol 47 MovieClip [droplet] Frame 4
stop();
Symbol 47 MovieClip [droplet] Frame 5
stop();
Symbol 47 MovieClip [droplet] Frame 6
stop();
Symbol 47 MovieClip [droplet] Frame 7
stop();
Symbol 48 MovieClip [SubmitterProxy] Frame 1
#initclip 6
Object.registerClass("SubmitterProxy", SubmitterProxy);
#endinitclip
Symbol 51 MovieClip [waveComplete] Frame 1
stop();
Symbol 54 MovieClip [aim] Frame 1
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
stop();
Symbol 73 MovieClip Frame 3
stop();
Symbol 73 MovieClip Frame 4
stop();
Symbol 73 MovieClip Frame 5
stop();
Symbol 73 MovieClip Frame 6
stop();
Symbol 73 MovieClip Frame 7
stop();
Symbol 89 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 90 MovieClip Frame 1
_root.stop();
PercentLoaded = _root.sec / 2;
if (PercentLoaded < 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 90 MovieClip Frame 2
gotoAndPlay (1);
Symbol 994 MovieClip [__Packages.SubmitterProxy] Frame 0
class SubmitterProxy extends MovieClip
{
var parentObj, _parent, m_scoreType, m_scoreOrder, gameName, htmlName, locale, iconData, pagesize, pagenr, requestStackInvalidUser, gameid, siteid, channelid, swfURL, delegateOnIoError, delegateOnLoadDone, createEmptyMovieClip, getNextHighestDepth, content, delegateHyscoreSubmitterReady, dispatchEvent, m_scoreXMLData, m_scoreServerTimeXMLData, m_achievXMLData;
function SubmitterProxy () {
super();
System.security.allowDomain("*");
parentObj = _parent;
mx.events.EventDispatcher.initialize(this);
}
function setLoader(_container, _gameName, _htmlName, _order, _scoreType, _locale, _iconData, _pagesize, _pagenr, _bTest, _serverSelect) {
bTestModeOn = _bTest;
m_scoreType = _scoreType;
m_scoreOrder = _order;
gameName = _gameName;
if (_htmlName == "") {
htmlName = gameName;
} else {
htmlName = _htmlName;
}
locale = _locale;
iconData = _iconData;
pagesize = _pagesize;
pagenr = _pagenr;
serverSelect = _serverSelect;
requestStackInvalidUser = new Array();
if (_container != null) {
userName = _container.username;
userHash = _container.hash;
gameid = _container.id;
siteid = _container.s;
channelid = _container.c;
trace("servicesLoc: " + _container.servicesLoc);
if ((_container.servicesLoc != "") && (_container.servicesLoc != undefined)) {
swfURL = _container.servicesLoc;
} else {
var _local3 = new Date();
swfURL = (("http://www8.agame.com/games/flash/highscore/SubmitterAS2.swf?nocache=" + (_local3.getYear() * 12)) + _local3.getMonth()) + 1;
}
getSwf();
} else {
SubmitterFailedToLoad();
}
}
function getSwf() {
var _local2 = new Object();
delegateOnIoError = mx.utils.Delegate.create(this, onLoadDone);
_local2.onLoadInit = delegateOnIoError;
delegateOnLoadDone = mx.utils.Delegate.create(this, onIoError);
_local2.onLoadError = delegateOnLoadDone;
var _local4 = new MovieClipLoader();
_local4.addListener(_local2);
var _local3 = createEmptyMovieClip("loadedComp", getNextHighestDepth());
trace("swfURL:" + swfURL);
_local4.loadClip(swfURL, _local3);
_local3._x = 10;
_local3._y = 10;
}
function isSWFReady() {
return(content != null);
}
function isDomainAllowed(value) {
if (content) {
return(content.isDomainValid(value));
}
return(false);
}
function hasUserData() {
return((userName != null) && (userHash != null));
}
function doCommTest() {
if (content) {
return(content.m_get_TEST());
}
return("Error: Failed to communicatie with: " + content);
}
function getScoreServerTime() {
if (content) {
content.m_getLatestScoreServerTime();
}
}
function submitScore(score) {
trace("submitScore: " + score);
if (content) {
if (!hasUserData()) {
requestStackInvalidUser.push({type:"SUBMIT_SCORE", value:score});
}
content.m_submitScore(score, userName, userHash, "", 0);
}
}
function requestHighscoreList() {
if (content) {
content.m_submitHighscoreListRequest();
}
}
function requestUserHighscoreList(target_username) {
if (content) {
content.m_submitUserHighscoreListRequest(target_username);
}
}
function submitGrantAward(tag) {
trace("submitGrantAward: " + tag);
if (content) {
if (!hasUserData()) {
requestStackInvalidUser.push({type:"SUBMIT_AWARD", value:tag});
}
content.m_submitAward(tag, userName, userHash);
}
}
function requestAwardList() {
if (content) {
if (!hasUserData()) {
requestStackInvalidUser.push({type:"REQUEST_AWARDLIST"});
}
content.m_getUserAwardList(userName, userHash);
}
}
function requestAwardInfo(awardID) {
if (content) {
content.m_getAwardInfo(awardID);
}
}
function SubmitterIsLoaded() {
delegateHyscoreSubmitterReady = mx.utils.Delegate.create(this, onHyScorSubmitterReady);
content.addEventListener("HyScorSubmitterLoaded", delegateHyscoreSubmitterReady);
content.addEventListener("ScoreLoadError", this);
content.addEventListener("ScoreLoadTimeComplete", this);
content.addEventListener("ScoreLoadSubmitComplete", this);
content.addEventListener("ScoreLoadListComplete", this);
content.addEventListener("ScoreLoadUserListComplete", this);
content.addEventListener("AchievLoadError", this);
content.addEventListener("AchievLoadTimeComplete", this);
content.addEventListener("AchievLoadListComplete", this);
content.addEventListener("AchievLoadInfoComplete", this);
content.addEventListener("AchievLoadGrantComplete", this);
}
function SubmitterFailedToLoad() {
dispatchEvent({target:this, type:"LoadingFailed", elapsedTime:getTimer()});
}
function onLoadDone(target_mc) {
content = target_mc.SubmitterInstance;
content.gotoAndPlay(1);
if (isDomainAllowed(bTestModeOn)) {
trace("Submitter component downloaded.");
SubmitterIsLoaded();
content.init(siteid, 1, gameid, channelid, m_scoreOrder, locale, iconData, pagesize, pagenr, userName, userHash, serverSelect);
initJStoSWFListeners();
} else {
trace("Error: Could not init submitter...played on an invalid domain.");
SubmitterFailedToLoad();
}
}
function onIoError(target_mc, errorCode, httpStatus) {
trace((("Error: loadListener.onLoadError() errorCode: " + errorCode) + " httpStatus: ") + httpStatus);
SubmitterFailedToLoad();
}
function onHyScorSubmitterReady(target_mc) {
if (content) {
content.removeEventListener("HyScorSubmitterLoaded", delegateHyscoreSubmitterReady);
}
dispatchEvent({target:this, type:"SubmitterLoadedSuccesfull", elapsedTime:getTimer()});
}
function handleEvent(e) {
if (((e.type == "ScoreLoadSubmitComplete") || (e.type == "ScoreLoadListComplete")) || (e.type == "ScoreLoadUserListComplete")) {
m_scoreXMLData = content.m_getLastestHighscoreData();
} else if (e.type == "ScoreLoadTimeComplete") {
m_scoreServerTimeXMLData = content.m_getLatestScoreServerTime();
} else if (((e.type == "AchievLoadListComplete") || (e.type == "AchievLoadInfoComplete")) || (e.type == "AchievLoadGrantComplete")) {
m_achievXMLData = content.m_getLastestAchievementData();
} else if (e.type == "AchievLoadTimeComplete") {
} else if (e.type == "ScoreLoadError") {
m_scoreXMLData = content.m_getLatestHighscoreError();
} else if (e.type == "AchievLoadError") {
m_achievXMLData = content.m_getLatestAchievError();
}
dispatchEvent({target:this, type:e.type, elapsedTime:getTimer()});
}
function initJStoSWFListeners() {
if (flash.external.ExternalInterface.available) {
try {
flash.external.ExternalInterface.addCallback("JStoSWF", com.spilgames.external.JStoSWF.instance().parse);
com.spilgames.external.JStoSWF.instance().addCallFunction("UPDATE_USER", updateUser);
com.spilgames.external.JStoSWF.instance().addCallFunction("UPDATE_AVATAR", updateAvatar);
com.spilgames.external.JStoSWF.instance().addCallFunction("UPDATE_GALLERY", updateGallery);
} catch(e:Error) {
trace("Error: Failed init enternal interface.. is the swf played locally?");
}
}
}
function updateUser(params) {
var _local3 = params.username;
var _local2 = params.hash;
var _local4 = params.id;
userName = _local3;
userHash = _local2;
var _local6 = (((("UPDATE_USER|-|" + _local3) + "|-|") + _local2) + "|-|") + _local4;
processInvalidUserList();
}
function updateAvatar(params) {
var _local1 = params.id;
var _local2 = params.type;
var _local3 = (("UPDATE_AVATAR|-|" + _local1) + "|-|") + _local2;
}
function updateGallery(params) {
var _local1 = params.id;
var _local2 = params.type;
var _local3 = (("UPDATE_GALLERY|-|" + _local1) + "|-|") + _local2;
}
function processInvalidUserList() {
while (requestStackInvalidUser.length > 0) {
var _local2 = requestStackInvalidUser.pop();
if (_local2.type == "SUBMIT_SCORE") {
submitScore(_local2.value);
} else if (_local2.type == "SUBMIT_AWARD") {
submitGrantAward(_local2.value);
} else if (_local2.type == "REQUEST_AWARDLIST") {
requestAwardList();
}
}
}
function destroy() {
parentObj = null;
content.removeMovieClip();
content = null;
siteid = null;
channelid = null;
gameid = null;
userName = null;
userHash = null;
m_scoreXMLData = null;
m_achievXMLData = null;
}
var userName = null;
var userHash = null;
var serverSelect = 1;
var bTestModeOn = false;
}
Symbol 995 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 996 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 997 MovieClip [__Packages.com.spilgames.external.JStoSWF] Frame 0
class com.spilgames.external.JStoSWF
{
static var m_oJStoSWF;
var m_oCallFuntions;
function JStoSWF () {
m_oCallFuntions = new Object();
}
function addCallFunction(p_sName, p_fFunction) {
if (!m_oCallFuntions[p_sName]) {
m_oCallFuntions[p_sName] = p_fFunction;
}
}
function parse(p_oCallObject) {
if (p_oCallObject.call) {
switch (p_oCallObject.call) {
case "MULTI" :
var _local2 = 0;
while (_local2 < p_oCallObject.calls.length) {
instance().parse(p_oCallObject.calls[_local2]);
_local2++;
}
break;
default :
if (m_oCallFuntions[p_oCallObject.call]) {
if (!p_oCallObject.params) {
p_oCallObject.params = {};
}
m_oCallFuntions[p_oCallObject.call](p_oCallObject.params);
} else {
trace(("call: " + p_oCallObject.call) + " not found in call functions!");
}
}
} else {
trace("call attribute not found in CallObject!");
}
}
static function instance() {
if (m_oJStoSWF == null) {
m_oJStoSWF = new com.spilgames.external.JStoSWF();
}
return(m_oJStoSWF);
}
}
Symbol 998 MovieClip [__Packages.ExampleGame] Frame 0
class ExampleGame extends MovieClip
{
var submitter, delegateSubmitterFailed, delegateSubmitterReady, _parent;
function ExampleGame () {
super();
trace("ExampleGame created");
}
function init(proxyInstance) {
trace("init ExampleGame with submitterProxy");
submitter = proxyInstance;
delegateSubmitterFailed = mx.utils.Delegate.create(this, SubmitterFailedToLoad);
submitter.addEventListener("LoadingFailed", delegateSubmitterFailed);
delegateSubmitterReady = mx.utils.Delegate.create(this, SubmitterIsReady);
submitter.addEventListener("SubmitterLoadedSuccesfull", delegateSubmitterReady);
submitter.setLoader(_root, "Example-Game", "Example-Game.html", 0, "normal", "", 0, 0, 1, true, 1);
}
function SubmitterIsReady(target_mc) {
trace("Submitter component initialised and ready");
_parent.debug.text = _parent.debug.text + "Submitter component initialised and ready \n ";
submitter.removeEventListener("HyScorSubmitterLoaded", delegateSubmitterReady);
submitter.removeEventListener("LoadingFailed", delegateSubmitterFailed);
}
function SubmitterFailedToLoad() {
trace("Submitter component failed to load");
_parent.debug.text = _parent.debug.text + "Submitter component failed to load \n ";
submitter.removeEventListener("HyScorSubmitterLoaded", delegateSubmitterReady);
submitter.removeEventListener("LoadingFailed", delegateSubmitterFailed);
}
function processMethods() {
trace(">>=================================");
trace("Process Calls on: " + submitter);
submitter.submitScore(16);
submitter.submitGrantAward("Tag");
}
function destroy() {
if (submitter) {
submitter.destroy();
}
submitter.removeMovieClip();
submitter = null;
}
}
Symbol 198 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 203 MovieClip Frame 90
Symbol 203 MovieClip Frame 91
stop();
Symbol 205 MovieClip Frame 1
if (_root.localization_portal == "game_com_cn") {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=logo_intro", "_blank");
};
}
Symbol 205 MovieClip Frame 90
stop();
Symbol 211 MovieClip Frame 89
stop();
Symbol 219 MovieClip Frame 89
stop();
Symbol 222 MovieClip Frame 89
stop();
Symbol 229 MovieClip Frame 39
stop();
Symbol 231 MovieClip Frame 91
stop();
_root.gotoAndStop(3);
Symbol 232 MovieClip Frame 1
if (_root.localization_portal == "family") {
gotoAndStop (1);
}
if (_root.localization_portal == "tweens") {
gotoAndStop (2);
}
if (_root.localization_portal == "girl") {
gotoAndStop (3);
}
if (_root.localization_portal == "game_com_cn") {
gotoAndStop (4);
}
if (_root.localization_portal == "teen") {
gotoAndStop (5);
}
Symbol 237 Button
on (release) {
_root.instructions.gotoAndStop(2);
}
Symbol 242 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 251 Button
on (release) {
_root.gotoAndStop("play");
}
Symbol 253 MovieClip Frame 1
stop();
Symbol 284 MovieClip [boss2] Frame 1
stop();
Symbol 284 MovieClip [boss2] Frame 2
stop();
Symbol 347 MovieClip Frame 8
stop();
Symbol 349 MovieClip [zombie2] Frame 1
stop();
Symbol 349 MovieClip [zombie2] Frame 2
stop();
Symbol 387 MovieClip [zombie3] Frame 1
stop();
Symbol 387 MovieClip [zombie3] Frame 2
stop();
Symbol 410 MovieClip [zombie4] Frame 1
stop();
Symbol 410 MovieClip [zombie4] Frame 2
stop();
Symbol 441 MovieClip [zombie5] Frame 1
stop();
Symbol 441 MovieClip [zombie5] Frame 2
stop();
Symbol 474 MovieClip Frame 8
stop();
Symbol 476 MovieClip [zombie6] Frame 1
stop();
Symbol 476 MovieClip [zombie6] Frame 2
stop();
Symbol 500 MovieClip [zombie7] Frame 1
stop();
Symbol 500 MovieClip [zombie7] Frame 2
stop();
Symbol 517 MovieClip [zombie8] Frame 1
stop();
Symbol 517 MovieClip [zombie8] Frame 2
stop();
Symbol 547 MovieClip [zombie9] Frame 1
stop();
Symbol 547 MovieClip [zombie9] Frame 2
stop();
Symbol 574 MovieClip Frame 8
stop();
Symbol 576 MovieClip [zombie1] Frame 1
stop();
Symbol 576 MovieClip [zombie1] Frame 2
stop();
Symbol 582 MovieClip [blood] Frame 1
stop();
Symbol 609 Button
on (release) {
_root.instructions.gotoAndStop(1);
}
Symbol 610 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 2
stop();
Symbol 641 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 2
stop();
Symbol 641 MovieClip Frame 3
stop();
Symbol 641 MovieClip Frame 4
stop();
Symbol 641 MovieClip Frame 5
stop();
Symbol 650 MovieClip [ak47] Frame 1
stop();
Symbol 650 MovieClip [ak47] Frame 2
stop();
Symbol 650 MovieClip [ak47] Frame 3
stop();
Symbol 650 MovieClip [ak47] Frame 4
stop();
Symbol 650 MovieClip [ak47] Frame 5
stop();
Symbol 656 MovieClip Frame 1
stop();
Symbol 656 MovieClip Frame 2
stop();
Symbol 656 MovieClip Frame 3
stop();
Symbol 656 MovieClip Frame 4
stop();
Symbol 656 MovieClip Frame 5
stop();
Instance of Symbol 656 MovieClip "torso2" in Symbol 662 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gun == "minigun") {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 658 MovieClip "hand" in Symbol 662 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gun == "minigun") {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 673 Button
on (rollOver) {
_root.store.storeKeeper = "Go ahead and leave, I'm not feeling lonely *sniff*.";
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
_root.store.gotoAndStop(1);
_root.pause = false;
}
Symbol 676 Button
on (rollOver) {
_root.store.storeKeeper = "This'll give you 50 Health back.... thats pretty much all I have to say about it.";
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= 20) && (_root.health != _root.totalHealth)) {
_root.money = _root.money - 20;
_root.bar.moneyText = _root.money;
if (_root.health < (_root.totalHealth - 50)) {
_root.health = _root.health + 50;
} else {
_root.health = _root.totalHealth;
}
_root.healthFraction = _root.health / _root.totalHealth;
_root.store.healthText = _root.health;
_root.store.totalHealthText = _root.totalHealth;
_root.healthBar.inner._width = 50 * _root.healthFraction;
_root.store.storeKeeper = "Thank you!";
} else if (_root.totalHealth != _root.health) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough health already bud.";
}
}
Symbol 681 Button
on (rollOver) {
if (_root.armorLevel == 1) {
_root.store.storeKeeper = "This armor is made out of brown leather, its sturdy and should help you take a few more hits from the zombies.";
cost = 100;
costText = "$" + cost;
} else if (_root.armorLevel == 2) {
_root.store.storeKeeper = "This body armor is army grade, its dark green like your surrondings and provides excellent protection.";
} else if (_root.armorLevel == 3) {
_root.store.storeKeeper = "This heavy duty armor is actually iron plated! Zombies will have a hard time hurting you through this.";
} else if (_root.armorLevel == 4) {
_root.store.storeKeeper = "This incredibly effective armor is actually made of pure metal.";
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= cost) && (_root.armorLevel < 5)) {
_root.armorLevel = _root.armorLevel + 1;
_root.store.armorText = _root.armorLevel;
_root.money = _root.money - cost;
if (_root.armorLevel == 2) {
cost = 500;
_root.totalHealth = 125;
} else if (_root.armorLevel == 3) {
cost = 1500;
_root.totalHealth = 160;
} else if (_root.armorLevel == 4) {
cost = 5000;
_root.totalHealth = 200;
} else if (_root.armorLevel == 5) {
_root.totalHealth = 250;
}
if (_root.armorLevel < 5) {
costText = "$" + cost;
} else {
costText = "MAXED";
}
_root.player.torso.gotoAndStop(_root.armorLevel);
_root.player.torso2.gotoAndStop(_root.armorLevel);
_root.bar.moneyText = _root.money;
_root.health = _root.totalHealth;
_root.healthFraction = _root.health / _root.totalHealth;
_root.store.healthText = _root.health;
_root.store.totalHealthText = _root.totalHealth;
_root.healthBar.inner._width = 50 * _root.healthFraction;
_root.store.storeKeeper = "Thank you!";
} else if (_root.armorLevel != 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "You have the best armor I got on you already!";
}
}
Symbol 695 Button
on (rollOver) {
_root.store.storeKeeper = "This upgrade will increase the power of your shot.";
if (_root.pistolPowerLevel == 1) {
pistolPowerCost = 100;
pistolPowerCostText = "$" + pistolPowerCost;
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= pistolPowerCost) && (_root.pistolPowerLevel < 5)) {
_root.pistolPowerLevel = _root.pistolPowerLevel + 1;
_root.store.pistolPowerText = _root.pistolPowerLevel;
_root.money = _root.money - pistolPowerCost;
if (_root.pistolPowerLevel == 2) {
pistolPowerCost = 250;
pistolPowerCostText = "$" + pistolPowerCost;
_root.pistolPower = 1.5;
_root.store.pistolPowerLevelText = 2;
} else if (_root.pistolPowerLevel == 3) {
pistolPowerCost = 400;
pistolPowerCostText = "$" + pistolPowerCost;
_root.pistolPower = 2;
_root.store.pistolPowerLevelText = 3;
} else if (_root.pistolPowerLevel == 4) {
pistolPowerCost = 750;
pistolPowerCostText = "$" + pistolPowerCost;
_root.pistolPower = 2.5;
_root.store.pistolPowerLevelText = 4;
} else if (_root.pistolPowerLevel == 5) {
pistolPowerCostText = "MAXED";
_root.pistolPower = 3;
_root.store.pistolPowerLevelText = 5;
}
_root.Power = _root.totalPower;
_root.store.PowerText = _root.Power;
_root.store.totalPowerText = _root.totalPower;
_root.bar.PowerText = _root.Power;
_root.bar.moneyText = _root.money;
_root.store.storeKeeper = "Thank you!";
} else if (_root.pistolPowerLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your pistol's firepower is all maxed out!";
}
}
Symbol 700 Button
on (rollOver) {
_root.store.storeKeeper = "A single bullet, good for shooting a zombie with.";
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= 1) && (_root.uziAmmo < _root.uziTotalAmmo)) {
_root.money = _root.money - 1;
_root.bar.moneyText = _root.money;
if (_root.uziAmmo < _root.uziTotalAmmo) {
_root.uziAmmo = _root.uziAmmo + 1;
}
if (_root.gun == "uzi") {
_root.bar.ammoText = _root.uziAmmo;
}
_root.store.uzi.uziAmmoText = _root.uziAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < 1) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 703 Button
on (rollOver) {
_root.store.storeKeeper = "Five bullets, good for shooting a few zombies with.";
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
difference = _root.uziTotalAmmo - _root.uziAmmo;
}
on (release) {
if ((_root.money >= difference) && (_root.uziAmmo < _root.uziTotalAmmo)) {
if (_root.uziAmmo <= (_root.uziTotalAmmo - 5)) {
_root.uziAmmo = _root.uziAmmo + 5;
_root.money = _root.money - 5;
} else {
difference = _root.uziTotalAmmo - _root.uziAmmo;
_root.money = _root.money - difference;
_root.uziAmmo = _root.uziAmmo + difference;
}
_root.bar.moneyText = _root.money;
if (_root.gun == "uzi") {
_root.bar.ammoText = _root.uziAmmo;
}
_root.store.uzi.uziAmmoText = _root.uziAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 708 Button
on (rollOver) {
_root.store.storeKeeper = "I'll max out your ammo for the cost of however many bullets you need.";
difference = _root.uziTotalAmmo - _root.uziAmmo;
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= difference) && (_root.uziAmmo < _root.uziTotalAmmo)) {
difference = _root.uziTotalAmmo - _root.uziAmmo;
_root.money = _root.money - difference;
_root.uziAmmo = _root.uziAmmo + difference;
_root.bar.moneyText = _root.money;
if (_root.gun == "uzi") {
_root.bar.ammoText = _root.uziAmmo;
}
_root.store.uzi.uziAmmoText = _root.uziAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 711 Button
on (rollOver) {
_root.store.storeKeeper = "50 bullets, good for shooting many zombies with.";
difference = _root.uziTotalAmmo - _root.uziAmmo;
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= difference) && (_root.uziAmmo < _root.uziTotalAmmo)) {
if (_root.uziAmmo <= (_root.uziTotalAmmo - 50)) {
_root.uziAmmo = _root.uziAmmo + 50;
_root.money = _root.money - 50;
} else {
difference = _root.uziTotalAmmo - _root.uziAmmo;
_root.money = _root.money - difference;
_root.uziAmmo = _root.uziAmmo + difference;
}
_root.bar.moneyText = _root.money;
if (_root.gun == "uzi") {
_root.bar.ammoText = _root.uziAmmo;
}
_root.store.uzi.uziAmmoText = _root.uziAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 714 Button
on (rollOver) {
_root.store.storeKeeper = "Twenty bullets, good for shooting quite a few zombies with.";
difference = _root.uziTotalAmmo - _root.uziAmmo;
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= difference) && (_root.uziAmmo < _root.uziTotalAmmo)) {
if (_root.uziAmmo <= (_root.uziTotalAmmo - 20)) {
_root.uziAmmo = _root.uziAmmo + 20;
_root.money = _root.money - 20;
} else {
difference = _root.uziTotalAmmo - _root.uziAmmo;
_root.money = _root.money - difference;
_root.uziAmmo = _root.uziAmmo + difference;
}
_root.bar.moneyText = _root.money;
if (_root.gun == "uzi") {
_root.bar.ammoText = _root.uziAmmo;
}
_root.store.uzi.uziAmmoText = _root.uziAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 719 Button
on (rollOver) {
if (_root.uziAmmoLevel != 5) {
_root.store.storeKeeper = "This'll increase the ammo hold of your uzi.";
if (_root.uziAmmoLevel == 1) {
uziAmmoCost = 125;
uziAmmoCostText = "$" + uziAmmoCost;
}
} else {
_root.store.storeKeeper = "This upgrade will give you unlimited ammo!";
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= uziAmmoCost) && (_root.uziAmmoLevel < 5)) {
_root.uziAmmoLevel = _root.uziAmmoLevel + 1;
_root.store.uziAmmoText = _root.uziAmmoLevel;
_root.money = _root.money - uziAmmoCost;
if (_root.uziAmmoLevel == 2) {
uziAmmoCost = 275;
uziAmmoCostText = "$" + uziAmmoCost;
_root.uziTotalAmmo = 300;
uziBar.uziAmmoLevelText = 2;
} else if (_root.uziAmmoLevel == 3) {
uziAmmoCost = 550;
uziAmmoCostText = "$" + uziAmmoCost;
_root.uziTotalAmmo = 550;
uziBar.uziAmmoLevelText = 3;
} else if (_root.uziAmmoLevel == 4) {
uziAmmoCost = 1000;
uziAmmoCostText = "$" + uziAmmoCost;
_root.uziTotalAmmo = 900;
uziBar.uziAmmoLevelText = 4;
} else if (_root.uziAmmoLevel == 5) {
uziAmmoCost = "MAXED";
uziAmmoCostText = "MAXED";
_root.uziTotalAmmo = 9999;
uziBar.uziAmmoLevelText = 5;
}
_root.uziAmmo = _root.uziTotalAmmo;
if (_root.uziAmmoLevel != 5) {
_root.store.uzi.uziAmmoText = _root.uziAmmo;
_root.store.uzi.uziTotalAmmoText = _root.uziTotalAmmo;
} else {
_root.store.uzi.uziAmmoText = "\u221E";
_root.store.uzi.uziTotalAmmoText = "\u221E";
}
_root.bar.moneyText = _root.money;
if (_root.gun == "uzi") {
if (_root.uziAmmoLevel != 5) {
_root.bar.ammoText = _root.uziAmmo;
} else {
_root.bar.ammoText = "\u221E";
}
}
_root.store.storeKeeper = "Thank you!";
} else if (_root.uziAmmoLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your uzi's ammo hold is all maxed out!";
}
}
Symbol 722 Button
on (rollOver) {
_root.store.storeKeeper = "This upgrade will increase the power of your shot.";
if (_root.uziPowerLevel == 1) {
uziPowerCost = 150;
uziPowerCostText = "$" + uziPowerCost;
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= uziPowerCost) && (_root.uziPowerLevel < 5)) {
_root.uziPowerLevel = _root.uziPowerLevel + 1;
_root.store.uziPowerText = _root.uziPowerLevel;
_root.money = _root.money - uziPowerCost;
if (_root.uziPowerLevel == 2) {
uziPowerCost = 350;
uziPowerCostText = "$" + uziPowerCost;
_root.uziPower = 1.2;
_root.store.uziBar.uziPowerLevelText = 2;
} else if (_root.uziPowerLevel == 3) {
uziPowerCost = 700;
uziPowerCostText = "$" + uziPowerCost;
_root.uziPower = 1.6;
_root.store.uziBar.uziPowerLevelText = 3;
} else if (_root.uziPowerLevel == 4) {
uziPowerCost = 1200;
uziPowerCostText = "$" + uziPowerCost;
_root.uziPower = 2;
_root.store.uziBar.uziPowerLevelText = 4;
} else if (_root.uziPowerLevel == 5) {
uziPowerCostText = "MAXED";
_root.uziPower = 2.4;
_root.store.uziBar.uziPowerLevelText = 5;
}
_root.bar.moneyText = _root.money;
_root.store.storeKeeper = "Thank you!";
} else if (_root.uziPowerLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your uzi's firepower is all maxed out!";
}
}
Symbol 727 Button
on (rollOver) {
_root.store.storeKeeper = "This'll make your uzi a bit faster.";
if (_root.uziSpeedLevel == 1) {
uziSpeedCost = 100;
uziSpeedCostText = "$" + uziSpeedCost;
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= uziSpeedCost) && (_root.uziSpeedLevel < 5)) {
_root.uziSpeedLevel = _root.uziSpeedLevel + 1;
_root.store.uziSpeedText = _root.uziSpeedLevel;
_root.money = _root.money - uziSpeedCost;
if (_root.uziSpeedLevel == 2) {
uziSpeedCost = 250;
uziSpeedCostText = "$" + uziSpeedCost;
_root.uziSpeed = 4.5;
uziBar.uziSpeedLevelText = 2;
} else if (_root.uziSpeedLevel == 3) {
uziSpeedCost = 400;
uziSpeedCostText = "$" + uziSpeedCost;
_root.uziSpeed = 4;
uziBar.uziSpeedLevelText = 3;
} else if (_root.uziSpeedLevel == 4) {
uziSpeedCost = 900;
uziSpeedCostText = "$" + uziSpeedCost;
_root.uziSpeed = 3.5;
uziBar.uziSpeedLevelText = 4;
} else if (_root.uziSpeedLevel == 5) {
uziSpeedCostText = "MAXED";
_root.uziSpeed = 3;
uziBar.uziSpeedLevelText = 5;
}
_root.bar.moneyText = _root.money;
_root.store.storeKeeper = "Thank you!";
} else if (_root.uziSpeedLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your uzi's speed is all maxed out!";
}
}
Symbol 736 Button
on (rollOver) {
_root.store.storeKeeper = "View the rest of my wonderful arsenal of goodies and guns.";
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
_root.store.gotoAndStop(3);
}
Symbol 743 Button
on (rollOver) {
_root.store.storeKeeper = "This'll make your pistol a bit faster.";
if (_root.pistolSpeedLevel == 1) {
pistolSpeedCost = 50;
pistolSpeedCostText = "$" + pistolSpeedCost;
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= pistolSpeedCost) && (_root.pistolSpeedLevel < 5)) {
_root.pistolSpeedLevel = _root.pistolSpeedLevel + 1;
_root.store.pistolSpeedText = _root.pistolSpeedLevel;
_root.money = _root.money - pistolSpeedCost;
if (_root.pistolSpeedLevel == 2) {
pistolSpeedCost = 150;
pistolSpeedCostText = "$" + pistolSpeedCost;
_root.pistolSpeed = 9;
pistolSpeedLevelText = 2;
} else if (_root.pistolSpeedLevel == 3) {
pistolSpeedCost = 300;
pistolSpeedCostText = "$" + pistolSpeedCost;
_root.pistolSpeed = 8;
pistolSpeedLevelText = 3;
} else if (_root.pistolSpeedLevel == 4) {
pistolSpeedCost = 500;
pistolSpeedCostText = "$" + pistolSpeedCost;
_root.pistolSpeed = 7;
pistolSpeedLevelText = 4;
} else if (_root.pistolSpeedLevel == 5) {
pistolSpeedCostText = "MAXED";
_root.pistolSpeed = 6;
pistolSpeedLevelText = 5;
}
_root.bar.moneyText = _root.money;
_root.store.storeKeeper = "Thank you!";
} else if (_root.pistolSpeedLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your pistol's speed is all maxed out!";
}
}
Symbol 748 MovieClip Frame 1
stop();
Symbol 748 MovieClip Frame 2
stop();
Symbol 748 MovieClip Frame 3
stop();
Symbol 754 Button
on (rollOver) {
_root.store.storeKeeper = "A single bullet, good for shooting a zombie with.";
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= 1) && (_root.magnumAmmo < _root.magnumTotalAmmo)) {
_root.money = _root.money - 1;
_root.bar.moneyText = _root.money;
if (_root.magnumAmmo < _root.magnumTotalAmmo) {
_root.magnumAmmo = _root.magnumAmmo + 1;
}
if (_root.gun == "magnum") {
_root.bar.ammoText = _root.magnumAmmo;
}
_root.store.magnumAmmoText = _root.magnumAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < 1) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 755 Button
on (rollOver) {
_root.store.storeKeeper = "Five bullets, good for shooting a few zombies with.";
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
difference = _root.magnumTotalAmmo - _root.magnumAmmo;
}
on (release) {
if ((_root.money >= difference) && (_root.magnumAmmo < _root.magnumTotalAmmo)) {
if (_root.magnumAmmo <= (_root.magnumTotalAmmo - 5)) {
_root.magnumAmmo = _root.magnumAmmo + 5;
_root.money = _root.money - 5;
} else {
difference = _root.magnumTotalAmmo - _root.magnumAmmo;
_root.money = _root.money - difference;
_root.magnumAmmo = _root.magnumAmmo + difference;
}
_root.bar.moneyText = _root.money;
if (_root.gun == "magnum") {
_root.bar.ammoText = _root.magnumAmmo;
}
_root.store.magnumAmmoText = _root.magnumAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 756 Button
on (rollOver) {
_root.store.storeKeeper = "I'll max out your ammo for the cost of however many bullets you need.";
difference = _root.magnumTotalAmmo - _root.magnumAmmo;
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= difference) && (_root.magnumAmmo < _root.magnumTotalAmmo)) {
difference = _root.magnumTotalAmmo - _root.magnumAmmo;
_root.money = _root.money - difference;
_root.magnumAmmo = _root.magnumAmmo + difference;
_root.bar.moneyText = _root.money;
if (_root.gun == "magnum") {
_root.bar.ammoText = _root.magnumAmmo;
}
_root.store.magnumAmmoText = _root.magnumAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 757 Button
on (rollOver) {
_root.store.storeKeeper = "50 bullets, good for shooting many zombies with.";
difference = _root.magnumTotalAmmo - _root.magnumAmmo;
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= difference) && (_root.magnumAmmo < _root.magnumTotalAmmo)) {
if (_root.magnumAmmo <= (_root.magnumTotalAmmo - 50)) {
_root.magnumAmmo = _root.magnumAmmo + 50;
_root.money = _root.money - 50;
} else {
difference = _root.magnumTotalAmmo - _root.magnumAmmo;
_root.money = _root.money - difference;
_root.magnumAmmo = _root.magnumAmmo + difference;
}
_root.bar.moneyText = _root.money;
if (_root.gun == "magnum") {
_root.bar.ammoText = _root.magnumAmmo;
}
_root.store.magnumAmmoText = _root.magnumAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 760 Button
on (rollOver) {
_root.store.storeKeeper = "Twenty bullets, good for shooting quite a few zombies with.";
difference = _root.magnumTotalAmmo - _root.magnumAmmo;
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= difference) && (_root.magnumAmmo < _root.magnumTotalAmmo)) {
if (_root.magnumAmmo <= (_root.magnumTotalAmmo - 20)) {
_root.magnumAmmo = _root.magnumAmmo + 20;
_root.money = _root.money - 20;
} else {
difference = _root.magnumTotalAmmo - _root.magnumAmmo;
_root.money = _root.money - difference;
_root.magnumAmmo = _root.magnumAmmo + difference;
}
_root.bar.moneyText = _root.money;
if (_root.gun == "magnum") {
_root.bar.ammoText = _root.magnumAmmo;
}
_root.store.magnumAmmoText = _root.magnumAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 764 Button
on (rollOver) {
_root.store.storeKeeper = "A single bullet, good for shooting a zombie with.";
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= 1) && (_root.minigunAmmo < _root.minigunTotalAmmo)) {
_root.money = _root.money - 1;
_root.bar.moneyText = _root.money;
if (_root.minigunAmmo < _root.minigunTotalAmmo) {
_root.minigunAmmo = _root.minigunAmmo + 1;
}
if (_root.gun == "minigun") {
_root.bar.ammoText = _root.minigunAmmo;
}
_root.store.minigunAmmoText = _root.minigunAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < 1) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 765 Button
on (rollOver) {
_root.store.storeKeeper = "Five bullets, good for shooting a few zombies with.";
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
difference = _root.minigunTotalAmmo - _root.minigunAmmo;
}
on (release) {
if ((_root.money >= difference) && (_root.minigunAmmo < _root.minigunTotalAmmo)) {
if (_root.minigunAmmo <= (_root.minigunTotalAmmo - 5)) {
_root.minigunAmmo = _root.minigunAmmo + 5;
_root.money = _root.money - 5;
} else {
difference = _root.minigunTotalAmmo - _root.minigunAmmo;
_root.money = _root.money - difference;
_root.minigunAmmo = _root.minigunAmmo + difference;
}
_root.bar.moneyText = _root.money;
if (_root.gun == "minigun") {
_root.bar.ammoText = _root.minigunAmmo;
}
_root.store.minigunAmmoText = _root.minigunAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 766 Button
on (rollOver) {
_root.store.storeKeeper = "I'll max out your ammo for the cost of however many bullets you need.";
difference = _root.minigunTotalAmmo - _root.minigunAmmo;
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= difference) && (_root.minigunAmmo < _root.minigunTotalAmmo)) {
difference = _root.minigunTotalAmmo - _root.minigunAmmo;
_root.money = _root.money - difference;
_root.minigunAmmo = _root.minigunAmmo + difference;
_root.bar.moneyText = _root.money;
if (_root.gun == "minigun") {
_root.bar.ammoText = _root.minigunAmmo;
}
_root.store.minigunAmmoText = _root.minigunAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 767 Button
on (rollOver) {
_root.store.storeKeeper = "50 bullets, good for shooting many zombies with.";
difference = _root.minigunTotalAmmo - _root.minigunAmmo;
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= difference) && (_root.minigunAmmo < _root.minigunTotalAmmo)) {
if (_root.minigunAmmo <= (_root.minigunTotalAmmo - 50)) {
_root.minigunAmmo = _root.minigunAmmo + 50;
_root.money = _root.money - 50;
} else {
difference = _root.minigunTotalAmmo - _root.minigunAmmo;
_root.money = _root.money - difference;
_root.minigunAmmo = _root.minigunAmmo + difference;
}
_root.bar.moneyText = _root.money;
if (_root.gun == "minigun") {
_root.bar.ammoText = _root.minigunAmmo;
}
_root.store.minigunAmmoText = _root.minigunAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 768 Button
on (rollOver) {
_root.store.storeKeeper = "Twenty bullets, good for shooting quite a few zombies with.";
difference = _root.minigunTotalAmmo - _root.minigunAmmo;
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= difference) && (_root.minigunAmmo < _root.minigunTotalAmmo)) {
if (_root.minigunAmmo <= (_root.minigunTotalAmmo - 20)) {
_root.minigunAmmo = _root.minigunAmmo + 20;
_root.money = _root.money - 20;
} else {
difference = _root.minigunTotalAmmo - _root.minigunAmmo;
_root.money = _root.money - difference;
_root.minigunAmmo = _root.minigunAmmo + difference;
}
_root.bar.moneyText = _root.money;
if (_root.gun == "minigun") {
_root.bar.ammoText = _root.minigunAmmo;
}
_root.store.minigunAmmoText = _root.minigunAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 776 Button
on (rollOver) {
_root.store.storeKeeper = "Go back and take a look at my previous offerings.";
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
_root.store.gotoAndStop(2);
}
Symbol 777 Button
on (rollOver) {
_root.store.storeKeeper = "A single bullet, good for shooting a zombie with.";
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= 1) && (_root.shotgunAmmo < _root.shotgunTotalAmmo)) {
_root.money = _root.money - 1;
_root.bar.moneyText = _root.money;
if (_root.shotgunAmmo < _root.shotgunTotalAmmo) {
_root.shotgunAmmo = _root.shotgunAmmo + 1;
}
if (_root.gun == "shotgun") {
_root.bar.ammoText = _root.shotgunAmmo;
}
_root.store.shotgunAmmoText = _root.shotgunAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < 1) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 778 Button
on (rollOver) {
_root.store.storeKeeper = "Five bullets, good for shooting a few zombies with.";
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
difference = _root.shotgunTotalAmmo - _root.shotgunAmmo;
}
on (release) {
if ((_root.money >= difference) && (_root.shotgunAmmo < _root.shotgunTotalAmmo)) {
if (_root.shotgunAmmo <= (_root.shotgunTotalAmmo - 5)) {
_root.shotgunAmmo = _root.shotgunAmmo + 5;
_root.money = _root.money - 5;
} else {
difference = _root.shotgunTotalAmmo - _root.shotgunAmmo;
_root.money = _root.money - difference;
_root.shotgunAmmo = _root.shotgunAmmo + difference;
}
_root.bar.moneyText = _root.money;
if (_root.gun == "shotgun") {
_root.bar.ammoText = _root.shotgunAmmo;
}
_root.store.shotgunAmmoText = _root.shotgunAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 779 Button
on (rollOver) {
_root.store.storeKeeper = "I'll max out your ammo for the cost of however many bullets you need.";
difference = _root.shotgunTotalAmmo - _root.shotgunAmmo;
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= difference) && (_root.shotgunAmmo < _root.shotgunTotalAmmo)) {
difference = _root.shotgunTotalAmmo - _root.shotgunAmmo;
_root.money = _root.money - difference;
_root.shotgunAmmo = _root.shotgunAmmo + difference;
_root.bar.moneyText = _root.money;
if (_root.gun == "shotgun") {
_root.bar.ammoText = _root.shotgunAmmo;
}
_root.store.shotgunAmmoText = _root.shotgunAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 780 Button
on (rollOver) {
_root.store.storeKeeper = "50 bullets, good for shooting many zombies with.";
difference = _root.shotgunTotalAmmo - _root.shotgunAmmo;
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= difference) && (_root.shotgunAmmo < _root.shotgunTotalAmmo)) {
if (_root.shotgunAmmo <= (_root.shotgunTotalAmmo - 50)) {
_root.shotgunAmmo = _root.shotgunAmmo + 50;
_root.money = _root.money - 50;
} else {
difference = _root.shotgunTotalAmmo - _root.shotgunAmmo;
_root.money = _root.money - difference;
_root.shotgunAmmo = _root.shotgunAmmo + difference;
}
_root.bar.moneyText = _root.money;
if (_root.gun == "shotgun") {
_root.bar.ammoText = _root.shotgunAmmo;
}
_root.store.shotgunAmmoText = _root.shotgunAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 781 Button
on (rollOver) {
_root.store.storeKeeper = "Twenty bullets, good for shooting quite a few zombies with.";
difference = _root.shotgunTotalAmmo - _root.shotgunAmmo;
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= difference) && (_root.shotgunAmmo < _root.shotgunTotalAmmo)) {
if (_root.shotgunAmmo <= (_root.shotgunTotalAmmo - 20)) {
_root.shotgunAmmo = _root.shotgunAmmo + 20;
_root.money = _root.money - 20;
} else {
difference = _root.shotgunTotalAmmo - _root.shotgunAmmo;
_root.money = _root.money - difference;
_root.shotgunAmmo = _root.shotgunAmmo + difference;
}
_root.bar.moneyText = _root.money;
if (_root.gun == "shotgun") {
_root.bar.ammoText = _root.shotgunAmmo;
}
_root.store.shotgunAmmoText = _root.shotgunAmmo;
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < difference) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got enough ammo already bud.";
}
}
Symbol 789 Button
on (rollOver) {
_root.store.storeKeeper = "This'll make your shotgun a bit faster.";
if (_root.shotgunSpeedLevel == 1) {
shotgunSpeedCost = 500;
shotgunSpeedCostText = "$" + shotgunSpeedCost;
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= shotgunSpeedCost) && (_root.shotgunSpeedLevel < 5)) {
_root.shotgunSpeedLevel = _root.shotgunSpeedLevel + 1;
_root.store.shotgunSpeedText = _root.shotgunSpeedLevel;
_root.money = _root.money - shotgunSpeedCost;
if (_root.shotgunSpeedLevel == 2) {
shotgunSpeedCost = 750;
shotgunSpeedCostText = "$" + shotgunSpeedCost;
_root.shotgunSpeed = 11;
shotgunSpeedLevelText = 2;
} else if (_root.shotgunSpeedLevel == 3) {
shotgunSpeedCost = 1250;
shotgunSpeedCostText = "$" + shotgunSpeedCost;
_root.shotgunSpeed = 10;
shotgunSpeedLevelText = 3;
} else if (_root.shotgunSpeedLevel == 4) {
shotgunSpeedCost = 2000;
shotgunSpeedCostText = "$" + shotgunSpeedCost;
_root.shotgunSpeed = 9;
shotgunSpeedLevelText = 4;
} else if (_root.shotgunSpeedLevel == 5) {
shotgunSpeedCostText = "MAXED";
_root.shotgunSpeed = 8;
shotgunSpeedLevelText = 5;
}
_root.bar.moneyText = _root.money;
_root.store.storeKeeper = "Thank you!";
} else if (_root.shotgunSpeedLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your shotgun's speed is all maxed out!";
}
}
Symbol 792 Button
on (rollOver) {
if (_root.shotgunAmmoLevel != 5) {
_root.store.storeKeeper = "This'll increase the ammo hold of your shotgun.";
if (_root.shotgunAmmoLevel == 1) {
shotgunAmmoCost = 750;
shotgunAmmoCostText = "$" + shotgunAmmoCost;
}
} else {
_root.store.storeKeeper = "This upgrade will give you unlimited ammo!";
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= shotgunAmmoCost) && (_root.shotgunAmmoLevel < 5)) {
_root.shotgunAmmoLevel = _root.shotgunAmmoLevel + 1;
_root.store.shotgunAmmoText = _root.shotgunAmmoLevel;
_root.money = _root.money - shotgunAmmoCost;
if (_root.shotgunAmmoLevel == 2) {
shotgunAmmoCost = 1200;
shotgunAmmoCostText = "$" + shotgunAmmoCost;
_root.shotgunTotalAmmo = 300;
shotgunAmmoLevelText = 2;
} else if (_root.shotgunAmmoLevel == 3) {
shotgunAmmoCost = 2000;
shotgunAmmoCostText = "$" + shotgunAmmoCost;
_root.shotgunTotalAmmo = 550;
shotgunAmmoLevelText = 3;
} else if (_root.shotgunAmmoLevel == 4) {
shotgunAmmoCost = 3000;
shotgunAmmoCostText = "$" + shotgunAmmoCost;
_root.shotgunTotalAmmo = 900;
shotgunAmmoLevelText = 4;
} else if (_root.shotgunAmmoLevel == 5) {
shotgunAmmoCost = "MAXED";
shotgunAmmoCostText = "MAXED";
_root.shotgunTotalAmmo = 9999;
shotgunAmmoLevelText = 5;
}
_root.shotgunAmmo = _root.shotgunTotalAmmo;
if (_root.shotgunAmmoLevel != 5) {
_root.store.shotgunAmmoText = _root.shotgunTotalAmmo;
_root.store.shotgunTotalAmmoText = _root.shotgunTotalAmmo;
} else {
_root.store.shotgunAmmoText = "\u221E";
_root.store.shotgunTotalAmmoText = "\u221E";
}
_root.bar.moneyText = _root.money;
if (_root.gun == "shotgun") {
if (_root.shotgunAmmoLevel != 5) {
_root.bar.ammoText = _root.shotgunAmmo;
} else {
_root.bar.ammoText = "\u221E";
}
}
_root.store.storeKeeper = "Thank you!";
} else if (_root.shotgunAmmoLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your shotgun's ammo hold is all maxed out!";
}
}
Symbol 795 Button
on (rollOver) {
_root.store.storeKeeper = "This upgrade will increase the power of your shot.";
if (_root.shotgunPowerLevel == 1) {
shotgunPowerCost = 1000;
shotgunPowerCostText = "$" + shotgunPowerCost;
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= shotgunPowerCost) && (_root.shotgunPowerLevel < 5)) {
_root.shotgunPowerLevel = _root.shotgunPowerLevel + 1;
_root.store.shotgunPowerText = _root.shotgunPowerLevel;
_root.money = _root.money - shotgunPowerCost;
if (_root.shotgunPowerLevel == 2) {
shotgunPowerCost = 1500;
shotgunPowerCostText = "$" + shotgunPowerCost;
_root.shotgunPower = 2.3;
_root.store.shotgunPowerLevelText = 2;
} else if (_root.shotgunPowerLevel == 3) {
shotgunPowerCost = 2500;
shotgunPowerCostText = "$" + shotgunPowerCost;
_root.shotgunPower = 2.7;
_root.store.shotgunPowerLevelText = 3;
} else if (_root.shotgunPowerLevel == 4) {
shotgunPowerCost = 4000;
shotgunPowerCostText = "$" + shotgunPowerCost;
_root.shotgunPower = 3.2;
_root.store.shotgunPowerLevelText = 4;
} else if (_root.shotgunPowerLevel == 5) {
shotgunPowerCostText = "MAXED";
_root.shotgunPower = 4;
_root.store.shotgunPowerLevelText = 5;
}
_root.bar.moneyText = _root.money;
_root.store.storeKeeper = "Thank you!";
} else if (_root.shotgunPowerLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your shotgun's firepower is all maxed out!";
}
}
Symbol 798 Button
on (rollOver) {
_root.store.storeKeeper = "This upgrade will increase the power of your shot.";
if (_root.magnumPowerLevel == 1) {
magnumPowerCost = 1500;
magnumPowerCostText = "$" + magnumPowerCost;
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= magnumPowerCost) && (_root.magnumPowerLevel < 5)) {
_root.magnumPowerLevel = _root.magnumPowerLevel + 1;
_root.store.magnumPowerText = _root.magnumPowerLevel;
_root.money = _root.money - magnumPowerCost;
if (_root.magnumPowerLevel == 2) {
magnumPowerCost = 2500;
magnumPowerCostText = "$" + magnumPowerCost;
_root.magnumPower = 8.7;
_root.store.magnumPowerLevelText = 2;
} else if (_root.magnumPowerLevel == 3) {
magnumPowerCost = 4000;
magnumPowerCostText = "$" + magnumPowerCost;
_root.magnumPower = 9.5;
_root.store.magnumPowerLevelText = 3;
} else if (_root.magnumPowerLevel == 4) {
magnumPowerCost = 6500;
magnumPowerCostText = "$" + magnumPowerCost;
_root.magnumPower = 10.6;
_root.store.magnumPowerLevelText = 4;
} else if (_root.magnumPowerLevel == 5) {
magnumPowerCostText = "MAXED";
_root.magnumPower = 12;
_root.store.magnumPowerLevelText = 5;
}
_root.bar.moneyText = _root.money;
_root.store.storeKeeper = "Thank you!";
} else if (_root.magnumPowerLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your magnum's firepower is all maxed out!";
}
}
Symbol 801 Button
on (rollOver) {
if (_root.magnumAmmoLevel != 5) {
_root.store.storeKeeper = "This'll increase the ammo hold of your magnum.";
if (_root.magnumAmmoLevel == 1) {
magnumAmmoCost = 1250;
magnumAmmoCostText = "$" + magnumAmmoCost;
}
} else {
_root.store.storeKeeper = "This upgrade will give you unlimited ammo!";
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= magnumAmmoCost) && (_root.magnumAmmoLevel < 5)) {
_root.magnumAmmoLevel = _root.magnumAmmoLevel + 1;
_root.store.magnumAmmoText = _root.magnumAmmoLevel;
_root.money = _root.money - magnumAmmoCost;
if (_root.magnumAmmoLevel == 2) {
magnumAmmoCost = 2000;
magnumAmmoCostText = "$" + magnumAmmoCost;
_root.magnumTotalAmmo = 300;
magnumAmmoLevelText = 2;
} else if (_root.magnumAmmoLevel == 3) {
magnumAmmoCost = 3000;
magnumAmmoCostText = "$" + magnumAmmoCost;
_root.magnumTotalAmmo = 550;
magnumAmmoLevelText = 3;
} else if (_root.magnumAmmoLevel == 4) {
magnumAmmoCost = 4500;
magnumAmmoCostText = "$" + magnumAmmoCost;
_root.magnumTotalAmmo = 900;
magnumAmmoLevelText = 4;
} else if (_root.magnumAmmoLevel == 5) {
magnumAmmoCost = "MAXED";
magnumAmmoCostText = "MAXED";
_root.magnumTotalAmmo = 9999;
magnumAmmoLevelText = 5;
}
_root.magnumAmmo = _root.magnumTotalAmmo;
if (_root.magnumAmmoLevel != 5) {
_root.store.magnumAmmoText = _root.magnumAmmo;
_root.store.magnumTotalAmmoText = _root.magnumTotalAmmo;
} else {
_root.store.magnumAmmoText = "\u221E";
_root.store.magnumTotalAmmoText = "\u221E";
}
_root.bar.moneyText = _root.money;
if (_root.gun == "magnum") {
if (_root.magnumAmmoLevel != 5) {
_root.bar.ammoText = _root.magnumAmmo;
} else {
_root.bar.ammoText = "\u221E";
}
}
_root.store.storeKeeper = "Thank you!";
} else if (_root.magnumAmmoLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your magnum's ammo hold is all maxed out!";
}
}
Symbol 804 Button
on (rollOver) {
_root.store.storeKeeper = "This'll make your magnum a bit faster.";
if (_root.magnumSpeedLevel == 1) {
magnumSpeedCost = 1000;
magnumSpeedCostText = "$" + magnumSpeedCost;
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= magnumSpeedCost) && (_root.magnumSpeedLevel < 5)) {
_root.magnumSpeedLevel = _root.magnumSpeedLevel + 1;
_root.store.magnumSpeedText = _root.magnumSpeedLevel;
_root.money = _root.money - magnumSpeedCost;
if (_root.magnumSpeedLevel == 2) {
magnumSpeedCost = 1500;
magnumSpeedCostText = "$" + magnumSpeedCost;
_root.magnumSpeed = 9;
magnumSpeedLevelText = 2;
} else if (_root.magnumSpeedLevel == 3) {
magnumSpeedCost = 2500;
magnumSpeedCostText = "$" + magnumSpeedCost;
_root.magnumSpeed = 8;
magnumSpeedLevelText = 3;
} else if (_root.magnumSpeedLevel == 4) {
magnumSpeedCost = 4000;
magnumSpeedCostText = "$" + magnumSpeedCost;
_root.magnumSpeed = 7;
magnumSpeedLevelText = 4;
} else if (_root.magnumSpeedLevel == 5) {
magnumSpeedCostText = "MAXED";
_root.magnumSpeed = 6;
magnumSpeedLevelText = 5;
}
_root.bar.moneyText = _root.money;
_root.store.storeKeeper = "Thank you!";
} else if (_root.magnumSpeedLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your magnum's speed is all maxed out!";
}
}
Symbol 807 Button
on (rollOver) {
_root.store.storeKeeper = "This'll make your minigun a bit faster.";
if (_root.minigunSpeedLevel == 1) {
minigunSpeedCost = 2000;
minigunSpeedCostText = "$" + minigunSpeedCost;
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= minigunSpeedCost) && (_root.minigunSpeedLevel < 5)) {
_root.minigunSpeedLevel = _root.minigunSpeedLevel + 1;
_root.store.minigunSpeedText = _root.minigunSpeedLevel;
_root.money = _root.money - minigunSpeedCost;
if (_root.minigunSpeedLevel == 2) {
minigunSpeedCost = 3000;
minigunSpeedCostText = "$" + minigunSpeedCost;
_root.minigunSpeed = 2.2;
minigunSpeedLevelText = 2;
} else if (_root.minigunSpeedLevel == 3) {
minigunSpeedCost = 5000;
minigunSpeedCostText = "$" + minigunSpeedCost;
_root.minigunSpeed = 2;
minigunSpeedLevelText = 3;
} else if (_root.minigunSpeedLevel == 4) {
minigunSpeedCost = 8000;
minigunSpeedCostText = "$" + minigunSpeedCost;
_root.minigunSpeed = 1.8;
minigunSpeedLevelText = 4;
} else if (_root.minigunSpeedLevel == 5) {
minigunSpeedCostText = "MAXED";
_root.minigunSpeed = 1.5;
minigunSpeedLevelText = 5;
}
_root.bar.moneyText = _root.money;
_root.store.storeKeeper = "Thank you!";
} else if (_root.minigunSpeedLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your minigun's speed is all maxed out!";
}
}
Symbol 810 Button
on (rollOver) {
if (_root.minigunAmmoLevel != 5) {
_root.store.storeKeeper = "This'll increase the ammo hold of your minigun.";
if (_root.minigunAmmoLevel == 1) {
minigunAmmoCost = 2500;
minigunAmmoCostText = "$" + minigunAmmoCost;
}
} else {
_root.store.storeKeeper = "This upgrade will give you unlimited ammo!";
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= minigunAmmoCost) && (_root.minigunAmmoLevel < 5)) {
_root.minigunAmmoLevel = _root.minigunAmmoLevel + 1;
_root.store.minigunAmmoText = _root.minigunAmmoLevel;
_root.money = _root.money - minigunAmmoCost;
if (_root.minigunAmmoLevel == 2) {
minigunAmmoCost = 4000;
minigunAmmoCostText = "$" + minigunAmmoCost;
_root.minigunTotalAmmo = 300;
minigunAmmoLevelText = 2;
} else if (_root.minigunAmmoLevel == 3) {
minigunAmmoCost = 6000;
minigunAmmoCostText = "$" + minigunAmmoCost;
_root.minigunTotalAmmo = 550;
minigunAmmoLevelText = 3;
} else if (_root.minigunAmmoLevel == 4) {
minigunAmmoCost = 9000;
minigunAmmoCostText = "$" + minigunAmmoCost;
_root.minigunTotalAmmo = 900;
minigunAmmoLevelText = 4;
} else if (_root.minigunAmmoLevel == 5) {
minigunAmmoCost = "MAXED";
minigunAmmoCostText = "MAXED";
_root.minigunTotalAmmo = 9999;
minigunAmmoLevelText = 5;
}
_root.minigunAmmo = _root.minigunTotalAmmo;
if (_root.minigunAmmoLevel != 5) {
_root.store.minigunAmmoText = _root.minigunAmmo;
_root.store.minigunTotalAmmoText = _root.minigunTotalAmmo;
} else {
_root.store.minigunAmmoText = "\u221E";
_root.store.minigunTotalAmmoText = "\u221E";
}
_root.bar.moneyText = _root.money;
if (_root.gun == "minigun") {
if (_root.minigunAmmoLevel != 5) {
_root.bar.ammoText = _root.minigunAmmo;
} else {
_root.bar.ammoText = "\u221E";
}
}
_root.store.storeKeeper = "Thank you!";
} else if (_root.minigunAmmoLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your minigun's ammo hold is all maxed out!";
}
}
Symbol 813 Button
on (rollOver) {
_root.store.storeKeeper = "This upgrade will increase the power of your shot.";
if (_root.minigunPowerLevel == 1) {
minigunPowerCost = 3000;
minigunPowerCostText = "$" + minigunPowerCost;
}
}
on (rollOut) {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
}
on (release) {
if ((_root.money >= minigunPowerCost) && (_root.minigunPowerLevel < 5)) {
_root.minigunPowerLevel = _root.minigunPowerLevel + 1;
_root.store.minigunPowerText = _root.minigunPowerLevel;
_root.money = _root.money - minigunPowerCost;
if (_root.minigunPowerLevel == 2) {
minigunPowerCost = 5000;
minigunPowerCostText = "$" + minigunPowerCost;
_root.minigunPower = 3.5;
_root.store.minigunPowerLevelText = 2;
} else if (_root.minigunPowerLevel == 3) {
minigunPowerCost = 8000;
minigunPowerCostText = "$" + minigunPowerCost;
_root.minigunPower = 4;
_root.store.minigunPowerLevelText = 3;
} else if (_root.minigunPowerLevel == 4) {
minigunPowerCost = 13000;
minigunPowerCostText = "$" + minigunPowerCost;
_root.minigunPower = 4.5;
_root.store.minigunPowerLevelText = 4;
} else if (_root.minigunPowerLevel == 5) {
minigunPowerCostText = "MAXED";
_root.minigunPower = 5;
_root.store.minigunPowerLevelText = 5;
}
_root.bar.moneyText = _root.money;
_root.store.storeKeeper = "Thank you!";
} else if (_root.minigunPowerLevel < 5) {
_root.store.storeKeeper = "I don't think you have enough cash bud";
} else {
_root.store.storeKeeper = "Your minigun's firepower is all maxed out!";
}
}
Symbol 816 MovieClip Frame 1
stop();
Symbol 816 MovieClip Frame 2
stop();
Symbol 819 MovieClip Frame 1
stop();
Symbol 819 MovieClip Frame 2
stop();
Symbol 822 MovieClip Frame 1
stop();
Symbol 822 MovieClip Frame 2
stop();
Symbol 823 MovieClip Frame 1
stop();
Symbol 823 MovieClip Frame 2
stop();
_root._x = 0;
_root._y = 0;
uziBar.uziSpeedLevelText = _root.uziSpeedLevel;
uziBar.uziAmmoLevelText = _root.uziAmmoLevel;
uziBar.uziPowerLevelText = _root.uziPowerLevel;
healthText = _root.health;
totalHealthText = _root.totalHealth;
if (_root.uziAmmoLevel != 5) {
uzi.uziAmmoText = _root.uziAmmo;
uzi.uziTotalAmmoText = _root.uziTotalAmmo;
} else {
uzi.uziAmmoText = "\u221E";
uzi.uziTotalAmmoText = "\u221E";
}
healthText = _root.health;
totalHealthText = _root.totalHealth;
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
uzi._visible = false;
uziBar._visible = false;
uzi1.enabled = false;
uzi1._visible = false;
uzi5.enabled = false;
uzi5._visible = false;
uzi20.enabled = false;
uzi20._visible = false;
uzi50.enabled = false;
uzi50._visible = false;
uziAll.enabled = false;
uziAll._visible = false;
uziSpeed.enabled = false;
uziSpeed._visible = false;
uziAmmo.enabled = false;
uziAmmo._visible = false;
uziPower.enabled = false;
uziPower._visible = false;
set = false;
onEnterFrame = function () {
if ((_root.uziUnlocked == true) && (set != true)) {
uzi._visible = true;
uzi1.enabled = true;
uzi1._visible = true;
uzi5.enabled = true;
uzi5._visible = true;
uzi20.enabled = true;
uzi20._visible = true;
uzi50.enabled = true;
uzi50._visible = true;
uziAll.enabled = true;
uziAll._visible = true;
uziSpeed.enabled = true;
uziSpeed._visible = true;
uziAmmo.enabled = true;
uziAmmo._visible = true;
uziPower.enabled = true;
uziPower._visible = true;
uziBar._visible = true;
set = true;
}
};
Instance of Symbol 729 MovieClip in Symbol 823 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.uziUnlocked == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 745 MovieClip in Symbol 823 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.uziUnlocked == true) {
this._visible = false;
}
}
Instance of Symbol 748 MovieClip "uziBuy" in Symbol 823 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.uziUnlocked == true) {
unloadMovie (this);
}
onRollOver = function () {
_root.store.storeKeeper = "This gun fires twice as fast as that pistol of yours, but has slightly less firepower.";
this.gotoAndStop(2);
};
onRollOut = function () {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
this.gotoAndStop(1);
};
onRelease = function () {
if ((_root.money >= 1000) && (this.active != false)) {
_root.money = _root.money - 1000;
this.active = false;
this._visible = false;
_root.bar.moneyText = _root.money;
_root.uziUnlocked = true;
_root.bar.ammoText = _root.uziAmmo;
_root.gun = "uzi";
_root.player.gun.gotoAndStop(2);
_root.store.storeKeeper = "Thank you!";
} else if (_root.money < 1000) {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
} else {
_root.store.storeKeeper = "I'd love to take your money but it looks to me like you got this gun already bud.";
}
};
}
Symbol 823 MovieClip Frame 3
stop();
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
if (_root.magnumAmmoLevel != 5) {
magnumAmmoText = _root.magnumAmmo;
magnumTotalAmmoText = _root.magnumTotalAmmo;
} else {
magnumAmmoText = "\u221E";
magnumTotalAmmoText = "\u221E";
}
if (_root.shotgunAmmoLevel != 5) {
shotgunAmmoText = _root.shotgunAmmo;
shotgunTotalAmmoText = _root.shotgunTotalAmmo;
} else {
shotgunAmmoText = "\u221E";
shotgunTotalAmmoText = "\u221E";
}
if (_root.minigunAmmoLevel != 5) {
minigunAmmoText = _root.minigunAmmo;
minigunTotalAmmoText = _root.minigunTotalAmmo;
} else {
minigunAmmoText = "\u221E";
minigunTotalAmmoText = "\u221E";
}
shotgun._visible = false;
shotgun1.enabled = false;
shotgun1._visible = false;
shotgun5.enabled = false;
shotgun5._visible = false;
shotgun20.enabled = false;
shotgun20._visible = false;
shotgun50.enabled = false;
shotgun50._visible = false;
shotgunAll.enabled = false;
shotgunAll._visible = false;
shotgunSpeed.enabled = false;
shotgunSpeed._visible = false;
shotgunAmmo.enabled = false;
shotgunAmmo._visible = false;
shotgunPower.enabled = false;
shotgunPower._visible = false;
set = false;
magnum._visible = false;
magnum1.enabled = false;
magnum1._visible = false;
magnum5.enabled = false;
magnum5._visible = false;
magnum20.enabled = false;
magnum20._visible = false;
magnum50.enabled = false;
magnum50._visible = false;
magnumAll.enabled = false;
magnumAll._visible = false;
magnumSpeed.enabled = false;
magnumSpeed._visible = false;
magnumAmmo.enabled = false;
magnumAmmo._visible = false;
magnumPower.enabled = false;
magnumPower._visible = false;
set2 = false;
minigun._visible = false;
minigun1.enabled = false;
minigun1._visible = false;
minigun5.enabled = false;
minigun5._visible = false;
minigun20.enabled = false;
minigun20._visible = false;
minigun50.enabled = false;
minigun50._visible = false;
minigunAll.enabled = false;
minigunAll._visible = false;
minigunSpeed.enabled = false;
minigunSpeed._visible = false;
minigunAmmo.enabled = false;
minigunAmmo._visible = false;
minigunPower.enabled = false;
minigunPower._visible = false;
set3 = false;
onEnterFrame = function () {
if ((_root.shotgunUnlocked == true) && (set != true)) {
shotgun._visible = true;
shotgun1.enabled = true;
shotgun1._visible = true;
shotgun5.enabled = true;
shotgun5._visible = true;
shotgun20.enabled = true;
shotgun20._visible = true;
shotgun50.enabled = true;
shotgun50._visible = true;
shotgunAll.enabled = true;
shotgunAll._visible = true;
shotgunSpeed.enabled = true;
shotgunSpeed._visible = true;
shotgunAmmo.enabled = true;
shotgunAmmo._visible = true;
shotgunPower.enabled = true;
shotgunPower._visible = true;
set = true;
}
if ((_root.magnumUnlocked == true) && (set2 != true)) {
magnum._visible = true;
magnum1.enabled = true;
magnum1._visible = true;
magnum5.enabled = true;
magnum5._visible = true;
magnum20.enabled = true;
magnum20._visible = true;
magnum50.enabled = true;
magnum50._visible = true;
magnumAll.enabled = true;
magnumAll._visible = true;
magnumSpeed.enabled = true;
magnumSpeed._visible = true;
magnumAmmo.enabled = true;
magnumAmmo._visible = true;
magnumPower.enabled = true;
magnumPower._visible = true;
set2 = true;
}
if ((_root.minigunUnlocked == true) && (set3 != true)) {
minigun._visible = true;
minigun1.enabled = true;
minigun1._visible = true;
minigun5.enabled = true;
minigun5._visible = true;
minigun20.enabled = true;
minigun20._visible = true;
minigun50.enabled = true;
minigun50._visible = true;
minigunAll.enabled = true;
minigunAll._visible = true;
minigunSpeed.enabled = true;
minigunSpeed._visible = true;
minigunAmmo.enabled = true;
minigunAmmo._visible = true;
minigunPower.enabled = true;
minigunPower._visible = true;
set3 = true;
}
};
Instance of Symbol 745 MovieClip in Symbol 823 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.minigunUnlocked == true) {
this._visible = false;
}
}
Instance of Symbol 745 MovieClip in Symbol 823 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.magnumUnlocked == true) {
this._visible = false;
}
}
Instance of Symbol 745 MovieClip in Symbol 823 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.shotgunUnlocked == true) {
this._visible = false;
}
}
Instance of Symbol 816 MovieClip in Symbol 823 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.shotgunUnlocked == true) {
unloadMovie (this);
}
onRollOver = function () {
_root.store.storeKeeper = "This gun packs impressive fire power and is devastating at close range!";
this.gotoAndStop(2);
};
onRollOut = function () {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
this.gotoAndStop(1);
};
onRelease = function () {
if ((_root.money >= 5000) && (this.active != false)) {
_root.money = _root.money - 5000;
this.active = false;
this._x = 5000;
_root.bar.moneyText = _root.money;
_root.shotgunUnlocked = true;
_root.bar.ammoText = _root.shotgunAmmo;
_root.gun = "shotgun";
_root.player.gun.gotoAndStop(3);
_root.store.storeKeeper = "Thank you!";
} else {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
}
};
}
Instance of Symbol 819 MovieClip in Symbol 823 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.magnumUnlocked == true) {
unloadMovie (this);
}
onRollOver = function () {
_root.store.storeKeeper = "This gun is like your pistol but with a huge boost in fire power.";
this.gotoAndStop(2);
};
onRollOut = function () {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
this.gotoAndStop(1);
};
onRelease = function () {
if ((_root.money >= 10000) && (this.active != false)) {
_root.money = _root.money - 10000;
this.active = false;
this._x = 5000;
_root.bar.moneyText = _root.money;
_root.magnumUnlocked = true;
_root.bar.ammoText = _root.magnumAmmo;
_root.gun = "magnum";
_root.player.gun.gotoAndStop(4);
_root.store.storeKeeper = "Thank you!";
} else {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
}
};
}
Instance of Symbol 822 MovieClip in Symbol 823 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.minigunUnlocked == true) {
unloadMovie (this);
}
onRollOver = function () {
_root.store.storeKeeper = "This gun fires at insane speeds and retains impressive power.";
this.gotoAndStop(2);
};
onRollOut = function () {
_root.store.storeKeeper = "Welcome to the store, what're you looking for?";
this.gotoAndStop(1);
};
onRelease = function () {
if ((_root.money >= 20000) && (this.active != false)) {
_root.money = _root.money - 20000;
this.active = false;
this._x = 5000;
_root.bar.moneyText = _root.money;
_root.minigunUnlocked = true;
_root.bar.ammoText = _root.minigunAmmo;
_root.gun = "minigun";
_root.player.gun.gotoAndStop(5);
_root.store.storeKeeper = "Thank you!";
} else {
_root.store.storeKeeper = "I don't think you have enough cash bud.";
}
};
}
Symbol 825 MovieClip Frame 1
stop();
Symbol 825 MovieClip Frame 2
stop();
this._alpha = 100;
onEnterFrame = function () {
if (_root.firstTime != true) {
this._alpha = this._alpha - 0.02;
} else {
this._alpha = this._alpha - 0.5;
}
if (this._alpha <= 0) {
gotoAndStop (1);
_root.firstTime = true;
}
};
Symbol 904 Button
on (release) {
_root.pause = false;
_root.pauseFrame.gotoAndStop(1);
}
Symbol 913 MovieClip Frame 1
stop();
Symbol 913 MovieClip Frame 2
stop();
Symbol 920 MovieClip Frame 1
stop();
Symbol 920 MovieClip Frame 2
stop();
Symbol 931 MovieClip Frame 1
stop();
Symbol 931 MovieClip Frame 2
stop();
Symbol 937 MovieClip Frame 1
stop();
Symbol 937 MovieClip Frame 2
stop();
Symbol 940 MovieClip Frame 1
stop();
Symbol 940 MovieClip Frame 2
stop();
Symbol 941 MovieClip Frame 1
stop();
Symbol 941 MovieClip Frame 2
stop();
Symbol 942 MovieClip Frame 1
stop();
Symbol 942 MovieClip Frame 2
stop();
Symbol 944 MovieClip Frame 1
stop();
Symbol 944 MovieClip Frame 2
stop();
Symbol 945 MovieClip Frame 1
stop();
Symbol 945 MovieClip Frame 2
stop();
Symbol 963 Button
on (release) {
_root.pauseFrame.gotoAndStop(1);
_root.pause = false;
_root.health = _root.totalHealth;
_root.healthBar.inner._width = 50;
_root.invul = true;
_root.timer1 = 0;
}
Symbol 966 Button
on (release) {
_root.leavingGame = true;
_root.pauseFrame.gotoAndStop(1);
_root.gotoAndStop("menu");
}
Symbol 970 MovieClip Frame 1
stop();
Symbol 970 MovieClip Frame 2
stop();
_root._x = 0;
_root._y = 0;
_root.rageBg.gotoAndStop(1);
if ((_root.setHigh != true) && (_root.setLow != true)) {
medium.gotoAndStop(2);
high.gotoAndStop(1);
low.gotoAndStop(1);
}
if (_root.setLow == true) {
low.gotoAndStop(2);
medium.gotoAndStop(1);
high.gotoAndStop(1);
}
if (_root.setHigh == true) {
high.gotoAndStop(2);
medium.gotoAndStop(1);
low.gotoAndStop(1);
}
if (_root.bloodOn != true) {
bloodButtoff.gotoAndStop(2);
bloodButton.gotoAndStop(1);
}
if (_root.bloodOn == true) {
bloodButton.gotoAndStop(2);
bloodButtoff.gotoAndStop(1);
}
if (_root.mute != true) {
audioOn.gotoAndStop(2);
audioOff.gotoAndStop(1);
}
if (_root.mute == true) {
audioOff.gotoAndStop(2);
audioOn.gotoAndStop(1);
}
if (_root.shakeOff != true) {
shakeOn.gotoAndStop(2);
shakeOff.gotoAndStop(1);
}
if (_root.shakeOff == true) {
shakeOff.gotoAndStop(2);
shakeOn.gotoAndStop(1);
}
Instance of Symbol 913 MovieClip "high" in Symbol 970 MovieClip Frame 2
on (release) {
_root._quality = "HIGH";
this.gotoAndStop(2);
_parent.medium.gotoAndStop(1);
_parent.low.gotoAndStop(1);
_root.setHigh = true;
_root.setLow = false;
}
Instance of Symbol 920 MovieClip "low" in Symbol 970 MovieClip Frame 2
on (release) {
_root._quality = "LOW";
this.gotoAndStop(2);
_parent.high.gotoAndStop(1);
_parent.medium.gotoAndStop(1);
_root.setLow = true;
_root.setHigh = false;
}
Instance of Symbol 931 MovieClip "medium" in Symbol 970 MovieClip Frame 2
on (release) {
_root._quality = "MEDIUM";
this.gotoAndStop(2);
_parent.high.gotoAndStop(1);
_parent.low.gotoAndStop(1);
_root.setHigh = false;
_root.setLow = false;
}
Instance of Symbol 937 MovieClip "bloodButton" in Symbol 970 MovieClip Frame 2
on (release) {
this.gotoAndStop(2);
_parent.bloodButtoff.gotoAndStop(1);
_root.bloodOn = true;
}
Instance of Symbol 940 MovieClip "bloodButtoff" in Symbol 970 MovieClip Frame 2
on (release) {
this.gotoAndStop(2);
_parent.bloodButton.gotoAndStop(1);
_root.bloodOn = false;
}
Instance of Symbol 941 MovieClip "audioOn" in Symbol 970 MovieClip Frame 2
on (release) {
this.gotoAndStop(2);
_parent.audioOff.gotoAndStop(1);
_root.mute = false;
}
Instance of Symbol 942 MovieClip "audioOff" in Symbol 970 MovieClip Frame 2
on (release) {
this.gotoAndStop(2);
_parent.audioOn.gotoAndStop(1);
_root.mute = true;
}
Instance of Symbol 944 MovieClip "shakeOn" in Symbol 970 MovieClip Frame 2
on (release) {
this.gotoAndStop(2);
_parent.shakeOff.gotoAndStop(1);
_root.shakeOff = false;
}
Instance of Symbol 945 MovieClip "shakeOff" in Symbol 970 MovieClip Frame 2
on (release) {
this.gotoAndStop(2);
_parent.shakeOn.gotoAndStop(1);
_root.shakeOff = true;
}
Symbol 970 MovieClip Frame 3
stop();
_root._x = 0;
_root._y = 0;
_root.lives = _root.lives - 1;
onEnterFrame = function () {
if (_root.lives <= 0) {
tryAgain._visible = false;
tryAgain.enabled = false;
canTry._visible = false;
livesTxt.text = "";
} else {
livesTxt.text = _root.lives;
}
};
Symbol 971 Button
on (keyPress "p") {
if ((_root.pause != true) && (_root.store._currentframe == 1)) {
_root.pause = true;
_root.pauseFrame.gotoAndStop(2);
}
}
on (keyPress "m") {
if (_root.mute != true) {
_root.mute = true;
_root.pauseFrame.audioOn.gotoAndStop(1);
_root.pauseFrame.audioOff.gotoAndStop(2);
} else {
_root.mute = false;
_root.pauseFrame.audioOff.gotoAndStop(1);
_root.pauseFrame.audioOn.gotoAndStop(2);
}
}
Symbol 973 MovieClip Frame 1
stop();
Symbol 973 MovieClip Frame 2
stop();
Symbol 978 MovieClip Frame 1
stop();
Symbol 984 Button
on (release) {
_root.gotoAndStop("play");
}
Symbol 990 Button
on (release) {
_root.gotoAndStop("menu");
_root.wasPlayed = false;
}