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;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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);
}
__com_mochibot__("af8a04ee", this, 10301, true);
stop();
MochiAd.showPreGameAd({id:"28768d74266007f0", res:"550x400"});
Frame 2
stop();
var cool = false;
onEnterFrame = function () {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if ((domain != "flashgamelicense.com") && (cool)) {
_root._x = 50000;
_root._y = 40000;
} else {
_root._x = 0;
_root._y = 0;
}
};
Frame 3
function setMusic() {
if (!_root.soundset) {
music = new Sound(sound3_mc);
music.attachSound("music");
music.start(0, 999999999);
_root.soundset = true;
}
}
function lowQuality() {
_quality = "LOW";
}
function mediumQuality() {
_quality = "MEDIUM";
}
function highQuality() {
_quality = "HIGH";
}
function moreGames() {
getURL ("http://play4all.net/", "_blank");
}
sound3_mc.onEnterFrame = function () {
if (Key.isDown(77)) {
if (!_root.mdown) {
if (!_root.muted) {
_root.muted = true;
music.setVolume(0);
} else {
_root.soundset = false;
music.setVolume(_root.mvolume);
_root.muted = false;
}
_root.mdown = true;
}
} else {
_root.mdown = false;
}
};
_root.mvolume = 100;
if (!_root.hey) {
_root.muted = false;
setMusic();
_root.hey = true;
}
if (!_root.muted) {
music.setVolume(100);
}
var myContextMenu = new ContextMenu(menuHandler);
myContextMenu.onSelect = anotherFunction;
myContextMenu.hideBuiltInItems();
myContextMenu.customItems.push(new ContextMenuItem("Low Quality", lowQuality));
myContextMenu.customItems.push(new ContextMenuItem("Medium Quality", mediumQuality));
myContextMenu.customItems.push(new ContextMenuItem("High Quality", highQuality));
myContextMenu.customItems.push(new ContextMenuItem("Play More Games", moreGames));
_root.menu = myContextMenu;
startEquip = function () {
_root.currentLevel = 1;
equipgun = function (bullets, speed, power, gun, clipsize, kick, type, gname, slot) {
allguns_mc.info_txt.text = "";
if (!_root["bought" + gun]) {
allguns_mc.price_txt.text = "$" + _root[gun + "price"];
} else {
allguns_mc.price_txt.text = "";
}
_root.labels = "Speed\nPower\nKick\nRate";
if ((type == "fastauto") || (type == "minigunauto")) {
typecap = "Auto";
} else {
typecap = type.slice(0, 1).toUpperCase() + type.slice(1, type.getEndIndex());
}
_root.descs = (((((speed + newline) + power) + newline) + (kick * 5)) + newline) + typecap;
_root.gname = gname;
_root.type = type;
_root.bullets = bullets;
_root.speed = speed;
_root.power = power;
_root.gun = gun;
_root.maxclip = clipsize;
_root.kick = kick;
_root.slot = slot;
_root.bsound = "silenced";
};
equipgun(1, 25, 20, "usp", 15, 2, "single", "USP", 1);
};
startEquip();
if (!_root.visited) {
_root.shellturnedon = true;
_root.bloodturnedon = true;
_root.visited = true;
}
stop();
menu_mc.play_btn.onRelease = function () {
_root.frametogo = "choosed";
menu_mc.gotoAndPlay(59);
};
menu_mc.instructions_btn.onRelease = function () {
_root.frametogo = "instructions";
menu_mc.gotoAndPlay(59);
};
menu_mc.moregames_btn.onRelease = function () {
getURL ("http://play4all.net/", "_blank");
};
menu_mc.addgames_btn.onRelease = function () {
getURL ("http://play4all.net/download.php", "_blank");
};
Frame 4
function removeText() {
instructions_mc.text_mc.gotoAndStop(3);
}
_root.texttodisplay = "Control your hero with WASD or the ARROW KEYS. Use the MOUSE to aim and shoot. You can manually reload by pressing CONTROL or the SPACEBAR. Cycle through your weapons with E and Q. Press Z to toggle effects on and off, and M controls the music.";
instructions_mc.back_btn.onRelease = function () {
_root.frametogo = "menu";
removeText();
instructions_mc.gotoAndPlay(40);
};
instructions_mc.play_btn.onRelease = function () {
_root.frametogo = "choosed";
removeText();
instructions_mc.gotoAndPlay(40);
};
Frame 5
function chooseDifficulty(difficulty) {
if (difficulty == "easy") {
_root.hm = 1;
_root.pm = 1.19;
}
if (difficulty == "medium") {
_root.hm = 1.5;
_root.pm = 1.45;
}
if (difficulty == "hard") {
_root.hm = 2;
_root.pm = 2;
}
if (difficulty == "impossible") {
_root.hm = 2;
_root.pm = 3.34;
}
_root.frametogo = "level1";
difficulty_mc.gotoAndPlay(79);
difficulty_mc.text_mc.gotoAndStop(3);
}
_root.texttodisplay = "Your mission: Three nuclear missiles have disappeared, the head of Homeland Security has gone missing, and the UN is virtually in a civil war. Ops has confirmed the missile whereabouts, and will be leading you straight to their location. Good luck.";
difficulty_mc.easy_btn.onRelease = function () {
chooseDifficulty("easy");
};
difficulty_mc.medium_btn.onRelease = function () {
chooseDifficulty("medium");
};
difficulty_mc.hard_btn.onRelease = function () {
chooseDifficulty("hard");
};
difficulty_mc.impossible_btn.onRelease = function () {
chooseDifficulty("impossible");
};
Frame 6
function load() {
_root.uspammo = _root.saveuspammo;
_root.g36ammo = _root.saveg36ammo;
_root.m1014ammo = _root.savem1014ammo;
_root.microuziammo = _root.savemicrouziammo;
_root.m4carbineammo = _root.savem4carbineammo;
_root.deserteagleammo = _root.savedeserteagleammo;
_root.g3ammo = _root.saveg3ammo;
_root.saiga12ammo = _root.savesaiga12ammo;
_root.sgrenadeammo = _root.savesgrenadeammo;
_root.mineammo = _root.savemineammo;
_root.uspinclip = _root.saveuspinclip;
_root.g36inclip = _root.saveg36inclip;
_root.m1014inclip = _root.savem1014inclip;
_root.microuziinclip = _root.savemicrouziinclip;
_root.m4carbineinclip = _root.savem4carbineinclip;
_root.deserteagleinclip = _root.savedeserteagleinclip;
_root.g3inclip = _root.saveg3inclip;
_root.saiga12inclip = _root.savesaiga12inclip;
_root.sgrenadeinclip = _root.savesgrenadeinclip;
_root.mineinclip = _root.savemineinclip;
placeChar();
_root.currentLevel = _root.checkpoint - 7;
gotoAndStop(_root.checkpoint);
}
stopAllSounds();
removeCursor();
_root.mvolume = 50;
gameOver = new Sound(sound2_mc);
gameOver.attachSound("gameover");
gameOver.start(1, 1);
gameOver.onSoundComplete = function () {
_root.soundset = false;
setMusic();
if (!_root.muted) {
music.setVolume(50);
}
};
load_btn.onRelease = function () {
load();
};
terminate_btn.onRelease = function () {
gotoAndStop ("menu");
};
Frame 8
function cursor() {
attachMovie("crosshair", "crosshair_mc", 1E17, {_xscale:30, _yscale:30});
crosshair_mc.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
Mouse.hide();
}
function removeCursor() {
crosshair_mc._alpha = 0;
Mouse.show();
}
function placeChar() {
_root.attachMovie("char", "char", 10000);
char.speed = 0;
char.friction = 0.9;
char.speed = 3;
char.hp = _root.maxhp;
}
function defineGuns() {
_root.uspammo = 500;
_root.g36ammo = 30;
_root.m1014ammo = 7;
_root.microuziammo = 120;
_root.m4carbineammo = 60;
_root.deserteagleammo = 70;
_root.g3ammo = 100;
_root.saiga12ammo = 60;
_root.sgrenadeammo = 0;
_root.mineammo = 0;
_root.uspmaxclip = 15;
_root.g36maxclip = 30;
_root.m1014maxclip = 7;
_root.microuzimaxclip = 20;
_root.m4carbinemaxclip = 30;
_root.deserteaglemaxclip = 7;
_root.g3maxclip = 20;
_root.saiga12maxclip = 12;
_root.sgrenademaxclip = 5;
_root.minemaxclip = 5;
_root.uspinclip = _root.uspmaxclip;
_root.g36inclip = _root.g36maxclip;
_root.m1014inclip = _root.m1014maxclip;
_root.microuziinclip = _root.microuzimaxclip;
_root.m4carbineinclip = _root.m4carbinemaxclip;
_root.deserteagleinclip = _root.deserteaglemaxclip;
_root.g3inclip = _root.g3maxclip;
_root.saiga12inclip = _root.saiga12maxclip;
_root.sgrenadeinclip = _root.sgrenademaxclip;
_root.mineinclip = _root.minemaxclip;
}
function save() {
_root.saveuspammo = _root.uspammo;
_root.saveg36ammo = _root.g36ammo;
_root.savem1014ammo = _root.m1014ammo;
_root.savemicrouziammo = _root.microuziammo;
_root.savem4carbineammo = _root.m4carbineammo;
_root.savedeserteagleammo = _root.deserteagleammo;
_root.saveg3ammo = _root.g3ammo;
_root.savesaiga12ammo = _root.saiga12ammo;
_root.savesgrenadeammo = _root.sgrenadeammo;
_root.savemineammo = _root.mineammo;
_root.saveuspinclip = _root.uspinclip;
_root.saveg36inclip = _root.g36inclip;
_root.savem1014inclip = _root.m1014inclip;
_root.savemicrouziinclip = _root.microuziinclip;
_root.savem4carbineinclip = _root.m4carbineinclip;
_root.savedeserteagleinclip = _root.deserteagleinclip;
_root.saveg3inclip = _root.g3inclip;
_root.savesaiga12inclip = _root.saiga12inclip;
_root.savesgrenadeinclip = _root.sgrenadeinclip;
_root.savemineinclip = _root.mineinclip;
_root.checkpoint = _root._currentframe;
checkpt = attachMovie("checkpoint_mc", "checkpoint_mc", 99999999, {_x:275, _y:200});
}
function charHurt() {
charhurt.play();
}
function startGame() {
function makeBlood(rotation, target) {
_root.bkg.attachMovie("blood1", "blood" + _root.bloodcount, _root.bloodcount + 100);
cb = _root.bkg["blood" + _root.bloodcount];
cb._x = target._x;
cb._y = target._y;
cb._rotation = rotation;
_root.bloodcount++;
}
function charRefresh() {
char.kick = _root.kick;
char.maxclip = _root.maxclip;
char.inclip = char.maxclip;
char.ammo = _root.ammo;
char.gun.gunt.gotoAndStop(_root.gun);
guns_mc.gotoAndStop(_root.gun);
}
function changeGun(person, direction) {
if (direction == "forward") {
if ((_root.gunnum + 1) > (_root.guns.length - 1)) {
chooseGun(guns[0]);
_root.gunnum = 0;
} else {
chooseGun(guns[_root.gunnum + 1]);
_root.gunnum++;
}
} else if (direction == "backward") {
if ((_root.gunnum - 1) < 0) {
chooseGun(guns[_root.guns.length - 1]);
_root.gunnum = _root.guns.length - 1;
} else {
chooseGun(guns[_root.gunnum - 1]);
_root.gunnum--;
}
}
}
cursor();
exit_mc.gotoAndPlay("start");
delete charhurt.onEnterFrame;
heartbeat.stop();
_root.attachMovie("charhurt", "charhurt", 999999, {_x:275, _y:200, _alpha:0});
heartbeat = new Sound(charhurt);
heartbeat.attachSound("heartbeat");
heartbeat.start(0, 1000000);
heartbeat.setVolume(0);
charhurt.onEnterFrame = function () {
charhurt._alpha = 100 - ((char.hp / 100) * 100);
char.healthbar_mc._yscale = (char.hp / 100) * 100;
heartbeat.setVolume(this._alpha);
if ((char.hp / 100) < 1) {
char.hp = char.hp + 0.2;
char.healthbar_mc._alpha = 100;
} else {
char.healthbar_mc._alpha = 0;
charhurt.stop();
}
};
_root.enemies = 0;
i = 1;
while (i < 15) {
cs = _root["estart" + i];
if (cs == undefined) {
break;
}
_root.enemies++;
i++;
}
i = 1;
while (i <= _root.enemies) {
attachMovie("enemy" + _root.enemytype, "enemy" + i, 3000 + i);
ce = _root["enemy" + i];
ce._x = _root["estart" + i]._x;
ce._y = _root["estart" + i]._y;
ce._rotation = _root["estart" + i]._rotation;
_root["estart" + i]._alpha = 0;
i++;
}
_root.smokes = [];
_root.mines = [];
startpoint._alpha = 0;
char._x = startpoint._x;
char._y = startpoint._y;
char._rotation = startpoint._rotation;
_root.gunnum = 0;
_root.blast = new Sound(char);
_root.blast.setVolume(30);
_root.esound = "gunclick";
_root.empty = new Sound(sound1_mc);
_root.empty.setVolume(60);
_root.dcount = 0;
_root.bloodcount = 0;
_root.shells = 0;
bulletcount = 0;
_root.ammo = 300;
removeEverything = function () {
x = 1;
while (x <= _root.enemies) {
currente = _root["enemy" + x];
delete currente.onEnterFrame;
currente.removeMovieClip();
x++;
}
n = 0;
while (n < 5) {
totest = n;
_root.smokes[totest].removeMovieClip();
_root.mines[totest].removeMovieClip();
n++;
}
};
charRefresh();
guns = ["usp", "deserteagle", "microuzi", "g3", "saiga12", "m1014", "m4carbine", "g36", "smoke", "mine"];
chooseGun = function (gun) {
if (gun == "g36") {
equipgun(1, 30, 20, "g36", 30, 0.75, "auto", "G36", 2);
}
if (gun == "usp") {
equipgun(1, 25, 20, "usp", 15, 2, "single", "USP", 1);
}
if (gun == "m1014") {
equipgun(6, 25, 20, "m1014", 7, 5, "single", "M1014", 3);
}
if (gun == "microuzi") {
equipgun(1, 45, 15, "microuzi", 20, 4, "fastauto", "Micro-Uzi", 4);
}
if (gun == "m4carbine") {
equipgun(1, 30, 15, "m4carbine", 30, 1, "auto", "M-4 Carbine", 5);
}
if (gun == "deserteagle") {
equipgun(1, 30, 35, "deserteagle", 7, 4, "single", "Desert Eagle", 6);
}
if (gun == "g3") {
equipgun(1, 30, 25, "g3", 20, 0, "single", "G3", 7);
}
if (gun == "saiga12") {
equipgun(4, 25, 20, "saiga12", 12, 5, "single", "Saiga-12", 8);
}
if (gun == "smoke") {
equipgun(4, 15, 20, "sgrenade", 12, 5, "sgrenade", "Smoke Grenade", 8);
}
if (gun == "mine") {
equipgun(4, 15, 20, "mine", 12, 5, "mine", "Mine", 8);
}
charRefresh();
};
guns_mc.cycleRight_btn.onPress = function () {
_root.shooting = false;
_root.pressing = true;
changeGun(_root.char, "forward");
};
guns_mc.cycleLeft_btn.onPress = function () {
_root.shooting = false;
_root.pressing = true;
changeGun(_root.char, "backward");
};
guns_mc.cycleRight_btn.onRelease = function () {
_root.pressing = false;
};
guns_mc.cycleLeft_btn.onRelease = function () {
_root.pressing = false;
};
onEnterFrame = function () {
if (Key.isDown(90)) {
if (!toggling) {
if (!effectsoff) {
_root.shellturnedon = false;
_root.bloodturnedon = false;
effectsoff = true;
} else {
_root.shellturnedon = true;
_root.bloodturnedon = true;
effectsoff = false;
}
}
toggling = true;
} else {
toggling = false;
}
guns_mc.gun_txt.text = _root.gname;
guns_mc.ammo_txt.text = (("Ammo: " + _root[_root.gun + "inclip"]) + "/") + _root[_root.gun + "ammo"];
if (_root.shooting && (!_root.pressing)) {
shoot(char._x, char._y, char._rotation, char._name, _root.bullets, _root.speed, _root.power, _root.kick, _root.type, "enemy");
}
};
char.onEnterFrame = function () {
if (this.hp <= 0) {
removeEverything();
_root.char.removeMovieClip();
_root.charhurt.removeMovieClip();
gotoAndStop ("dead");
}
i = 1;
while (i <= _root.enemies) {
if (this.bod.hitTest(_root.guns_mc) || (_root.enemy1.bod.hitTest(_root.guns_mc))) {
_root.guns_mc._alpha = 20;
} else {
_root.guns_mc._alpha = 100;
}
i++;
}
if (this.hitTest(_root.exit_mc.exittext)) {
removeEverything();
_root.currentLevel++;
_root.gotoAndStop("level" + _root.currentLevel);
}
if (this.hp <= 0) {
gotoAndStop ("dead");
}
if (Key.isDown(69)) {
if (!_root.cantchange) {
changeGun(_root.char, "forward");
_root.cantchange = true;
}
} else if (Key.isDown(81)) {
if (!_root.cantchange) {
changeGun(_root.char, "backward");
_root.cantchange = true;
}
} else {
_root.cantchange = false;
}
if (Key.isDown(37)) {
this._x = this._x - this.speed;
} else if (Key.isDown(65)) {
this._x = this._x - this.speed;
}
if (Key.isDown(39)) {
this._x = this._x + this.speed;
} else if (Key.isDown(68)) {
this._x = this._x + this.speed;
}
if (Key.isDown(38)) {
this._y = this._y - this.speed;
} else if (Key.isDown(87)) {
this._y = this._y - this.speed;
}
if (Key.isDown(40)) {
this._y = this._y + this.speed;
} else if (Key.isDown(83)) {
this._y = this._y + this.speed;
}
if ((Key.isDown(32) && (this.ammo > 0)) && (this.canshoot)) {
reload(_root.char);
} else if ((Key.isDown(17) && (this.ammo > 0)) && (this.canshoot)) {
reload(_root.char);
}
if (this.kick > 0) {
this.kick = this.kick - 0.1;
}
this.coords = Math.atan2(_ymouse - this._y, _xmouse - this._x);
this.degrees = (this.coords / Math.PI) * 180;
this._rotation = this.degrees;
while (_root.wall.hitTest(this._x, this._y + (this.bod._height / 2), true)) {
this._y--;
}
while (_root.wall.hitTest(this._x, this._y - (this.bod._height / 2), true)) {
this._y++;
}
while (_root.wall.hitTest(this._x - (this.bod._width / 2), this._y, true)) {
this._x++;
}
while (_root.wall.hitTest(this._x + (this.bod._width / 2), this._y, true)) {
this._x--;
}
};
i = 1;
while (i <= _root.enemies) {
enemy = _root["enemy" + i];
enemy.type = "single";
enemy.speedX = 0;
enemy.speedY = 0;
enemy.velocity = 2;
enemy.bullets = 1;
enemy.speed = 25;
enemy.power = 10 * _root.pm;
enemy.maxclip = 15;
enemy.inclip = enemy.maxclip;
enemy.kick = 2;
enemy.hp = 100 * _root.hm;
enemy.ammo = 2;
enemy.velocity = 2;
enemy.movevar = 0;
enemy.rspeed = 5;
enemy.dead = false;
enemy.rotate = enemy._rotation;
enemy.gotoAndStop(1);
enemy.onEnterFrame = function () {
while (_root.wall.hitTest(this._x, this._y + (this.bod._height / 2), true)) {
this._y--;
this.movevar++;
}
while (_root.wall.hitTest(this._x, this._y - (this.bod._height / 2), true)) {
this._y++;
this.movevar++;
}
while (_root.wall.hitTest(this._x - (this.bod._width / 2), this._y, true)) {
this._x++;
this.movevar++;
}
while (_root.wall.hitTest(this._x + (this.bod._width / 2), this._y, true)) {
this._x--;
this.movevar++;
}
c = 0;
while (c < _root.mines.length) {
this.totestm = c;
if (this.bod.hitTest(_root.mines[this.totestm]) && (!this.dead)) {
k = 0;
while (k < 3) {
makeBlood(this._rotation, this);
k++;
}
_root.mines[this.totestm].collided = true;
_root.mines[this.totestm].gotoAndPlay("explode");
this.gotoAndStop("dead");
_root.bkg.attachMovie("edeath", "edeath" + this._name.slice(5, 6), this._name.slice(5, 6) + 1000);
cdeath = _root.bkg["edeath" + this._name.slice(5, 6)];
cdeath._x = this._x;
cdeath._y = this._y;
cdeath._rotation = this._rotation;
this.dead = true;
delete this.onEnterFrame;
}
c++;
}
if ((this.inclip <= 0) && (this.canshoot)) {
reload(this);
}
if ((this.hp <= 0) && (!this.dead)) {
this.gotoAndStop("dead");
_root.bkg.attachMovie("edeath", "edeath" + this._name.slice(5, 6), this._name.slice(5, 6) + 1000);
cdeath = _root.bkg["edeath" + this._name.slice(5, 6)];
cdeath._x = this._x;
cdeath._y = this._y;
cdeath._rotation = this._rotation;
this.dead = true;
delete this.onEnterFrame;
}
this.dist_x = _root.char._x - this._x;
this.dist_y = _root.char._y - this._y;
this.dist = Math.sqrt((this.dist_x * this.dist_x) + (this.dist_y * this.dist_y));
this.angle = Math.atan(this.dist_y / this.dist_x) / (Math.PI/180);
if (this.dist_x < 0) {
this.angle = this.angle + 180;
}
if ((this.dist_x >= 0) && (this.dist_y < 0)) {
this.angle = this.angle + 360;
}
this.wall_collision = 0;
x = 1;
while (x <= this.dist) {
this.point_x = this._x + (x * Math.cos((this.angle * Math.PI) / 180));
this.point_y = this._y + (x * Math.sin((this.angle * Math.PI) / 180));
g = 0;
while (g < _root.smokes.length) {
this.totest = g;
g++;
}
if (_root.wall.hitTest(this.point_x, this.point_y, true)) {
this.cansee = false;
this.wall_collision = 100;
this.sseen = false;
break;
}
if (_root.smokes[this.totest].hitTest(this.point_x, this.point_y, true)) {
this.cansee = false;
this.wall_collision = 100;
this.sseen = false;
break;
}
this.cansee = true;
x = x + 5;
}
_root.line._x = this._x;
_root.line._y = this._y;
_root.line._rotation = this.angle;
_root.line._alpha = 100 - this.wall_collision;
if (this.cansee || (this.hit)) {
this.movevar = 0;
this.spotted = true;
this.xdiff = _root.char._x - this._x;
this.ydiff = _root.char._y - this._y;
this.rotate = true;
this.hit = false;
}
if (this.rotate) {
this.radAngle = Math.atan2(this.ydiff, this.xdiff);
this.degAngle = Math.floor(this.radAngle * 57.2957795130823);
this.distance = this.degAngle - this._rotation;
if (((this.distance < (-this.rspeed)) and (this.distance > (-180 + this.rspeed))) or (this.distance > (180 + this.rspeed))) {
this._rotation = this._rotation - this.rspeed;
} else if (((this.distance > (0 + this.rspeed)) and (this.distance <= (180 - this.rspeed))) or (this.distance < (-180 - this.rspeed))) {
this._rotation = this._rotation + this.rspeed;
} else if (this.spotted) {
this._rotation = this.angle;
this.sseen = true;
this.rotate = false;
}
}
if (this.movevar > 30) {
this.cantmove = true;
}
if (this.sseen && (this.spotted)) {
this.cantmove = false;
shoot(this._x, this._y, this._rotation, this._name, this.bullets, this.speed, this.power, this.kick, this.type, "char");
this.movecoordx = _root.char._x;
this.movecoordy = _root.char._y;
}
if (this.kick > 0) {
this.kick = this.kick - 0.1;
}
if ((this.spotted && (!this.cansee)) && (!this.cantmove)) {
this.distx = this._x - this.movecoordx;
this.disty = this._y - this.movecoordy;
this.movedist = Math.sqrt((this.distx * this.distx) + (this.disty * this.disty));
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
this.radians = (this._rotation * Math.PI) / 180;
this.speedX = this.velocity * Math.cos(this.radians);
this.speedY = this.velocity * Math.sin(this.radians);
if (this.movedist < 50) {
this.cantmove = true;
}
}
};
i++;
}
onMouseDown = function () {
_root.shooting = true;
};
onMouseUp = function () {
_root.shooting = false;
};
removeMovie = function (movie) {
movie.removeMovieClip();
};
shoot = function (x, y, rotation, name, shots, vel, power, kicker, type, target) {
person = _root[name];
clipper = _root[_root.gun + "inclip"];
if (((type == "sgrenade") && (person.canshoot)) && (clipper > 0)) {
crosshair_mc.gotoAndPlay("shoot");
grenade = new Sound();
grenade.attachSound("grenade");
grenade.start(0, 1);
_root.attachMovie("sgrenade", "sgrenade" + bulletcount, bulletcount + 2000);
currentsmoke = _root["sgrenade" + bulletcount];
_root.smokes.push(currentsmoke);
_root[_root.gun + "inclip"]--;
currentsmoke.depth = 2500 + bulletcount;
currentsmoke._x = x;
currentsmoke._y = y;
currentsmoke._rotation = rotation;
currentsmoke.velocity = vel;
currentsmoke.onEnterFrame = function () {
if (!this.collided) {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
var _local3 = (this._rotation * Math.PI) / 180;
this.speedX = this.velocity * Math.cos(_local3);
this.speedY = this.velocity * Math.sin(_local3);
}
if (!this.determined) {
currentsmoke.smokex = _xmouse;
currentsmoke.smokey = _ymouse;
this.determined = true;
}
this.distx = this._x - _xmouse;
this.disty = this._y - _ymouse;
this.distance = Math.sqrt((this.distx * this.distx) + (this.disty * this.disty));
if ((this.distance <= (this.velocity * 4)) && (!this.collided)) {
this.collided = true;
}
if (this.collided && (!this.done)) {
this.play();
this.done = true;
}
if (!this.collided) {
while (_root.wall.hitTest(this._x, this._y + (this._height / 2), true)) {
this._y--;
}
while (_root.wall.hitTest(this._x, this._y - (this._height / 2), true)) {
this._y++;
}
while (_root.wall.hitTest(this._x - (this._width / 2), this._y, true)) {
this._x++;
}
while (_root.wall.hitTest(this._x + (this._width / 2), this._y, true)) {
this._x--;
}
}
this.px = this.smoker._x;
this.py = this.smoker._x;
this.angle = this._rotation;
this.point_x = this._x + (this.px * Math.cos((this.angle * Math.PI) / 180));
this.point_y = this._y + (this.py * Math.sin((this.angle * Math.PI) / 180));
if (_root.wall.hitTest(this.point_x + this.speedX, this.point_y + this.speedY, true) && (!this.collided)) {
this.collided = true;
}
};
if (bulletcount > 50) {
bulletcount = 0;
}
person.gun.gotoAndPlay("single");
bulletcount++;
} else if (((type == "mine") && (person.canshoot)) && (clipper > 0)) {
crosshair_mc.gotoAndPlay("shoot");
grenade = new Sound();
grenade.attachSound("grenade");
grenade.start(0, 1);
_root.attachMovie("mine", "mine" + bulletcount, bulletcount + 1000);
currentmine = _root["mine" + bulletcount];
_root.mines.push(currentmine);
_root[_root.gun + "inclip"]--;
currentmine.depth = 1500 + bulletcount;
currentmine._x = x;
currentmine._y = y;
currentmine._rotation = rotation;
currentmine.velocity = vel;
currentmine.onEnterFrame = function () {
if (!this.collided) {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
var _local3 = (this._rotation * Math.PI) / 180;
this.speedX = this.velocity * Math.cos(_local3);
this.speedY = this.velocity * Math.sin(_local3);
}
if (!this.determined) {
currentmine.minex = _xmouse;
currentmine.miney = _ymouse;
this.determined = true;
}
this.distx = this._x - _xmouse;
this.disty = this._y - _ymouse;
this.distance = Math.sqrt((this.distx * this.distx) + (this.disty * this.disty));
if ((this.distance <= (this.velocity * 4)) && (!this.collided)) {
this.collided = true;
}
this.px = this.mine._x;
this.py = this.mine._x;
this.angle = this._rotation;
this.point_x = this._x + (this.px * Math.cos((this.angle * Math.PI) / 180));
this.point_y = this._y + (this.py * Math.sin((this.angle * Math.PI) / 180));
if (_root.wall.hitTest(this.point_x + this.speedX, this.point_y + this.speedY, true) && (!this.collided)) {
this.collided = true;
}
if (_root.wall.hitTest(this._x, (this._y + this.speedY) + this._height, true) && (!this.collided)) {
this.collided = true;
}
if (_root.wall.hitTest(this._x, this._y, true) && (!this.collided)) {
this.collided = true;
}
if (this.collided && (!this.done)) {
this.play();
this.done = true;
}
};
if (bulletcount > 50) {
bulletcount = 0;
}
person.gun.gotoAndPlay("single");
bulletcount++;
} else {
if (person == _root.char) {
clipper = _root[_root.gun + "inclip"];
} else {
clipper = person.inclip;
}
if (person.canshoot && (clipper > 0)) {
_root.blast.attachSound(_root.bsound);
_root.blast.start(0.05, 1);
if (person == _root.char) {
crosshair_mc.gotoAndPlay("shoot");
}
if (person == _root.char) {
_root[_root.gun + "inclip"]--;
} else {
person.inclip--;
}
if (bulletcount > 50) {
bulletcount = 0;
}
person.gun.gotoAndPlay(type);
if (_root.shellturnedon) {
_root.attachMovie("shell", "shell" + _root.shells, _root.shells + 50000);
cshell = _root["shell" + _root.shells];
cshell.cacheAsBitmap = true;
cshell._x = person._x;
cshell._y = person._y;
cshell._rotation = person._rotation;
_root.shells++;
}
if (person.kick < 15) {
person.kick = person.kick + kicker;
}
this.nm = 0;
this.shots = 1;
while (this.shots < (shots + 1)) {
attachMovie("bullet", "bullet" + bulletcount, bulletcount + 1000);
currentbullet = _root["bullet" + bulletcount];
currentbullet.cacheAsBitmap = true;
currentbullet._x = x;
currentbullet._y = y;
person.rot = random(person.kick);
this.j = random(2);
if (this.j == 0) {
person.rot = person.rot * -1;
}
if (this.nm == 0) {
this.shotdir = -this.shots;
this.nm++;
} else {
this.shotdir = this.shots;
this.nm--;
}
currentbullet._rotation = (rotation + person.rot) + this.shotdir;
currentbullet.velocity = vel;
currentbullet.power = power;
currentbullet.target = target;
currentbullet.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
var _local3 = (this._rotation * Math.PI) / 180;
this.speedX = this.velocity * Math.cos(_local3);
this.speedY = this.velocity * Math.sin(_local3);
if (_root.wall.hitTest(this._x + this.speedX, this._y + this.speedY, true)) {
_root.attachMovie("debris1", "debris" + _root.dcount, _root.dcount + 800);
cd = _root["debris" + _root.dcount];
cd._x = this._x;
cd._y = this._y;
cd._rotation = this._rotation;
_root.dcount++;
this.removeMovieClip();
}
j = 1;
while (j <= _root.enemies) {
if (this.target == "enemy") {
target = _root["enemy" + j];
} else {
target = _root.char;
}
if (target.bhit.hitTest(this) && (!target.dead)) {
if (target == _root.char) {
charHurt();
}
target.hp = target.hp - this.power;
target.hit = true;
makeBlood(this._rotation, target);
this.removeMovieClip();
}
j++;
}
if ((this._x + this._width) < 0) {
this.removeMovieClip();
}
if ((this._x - this._width) > 600) {
this.removeMovieClip();
}
if ((this._y + this._height) < 0) {
this.removeMovieClip();
}
if ((this._y - this._height) > 400) {
this.removeMovieClip();
}
};
bulletcount++;
this.shots++;
}
} else if ((person.ammo > 0) && (person.canshoot)) {
reload(person);
}
}
};
reload = function (person) {
if (person == _root.char) {
if (_root[_root.gun + "ammo"] > 0) {
this.canshoot = true;
} else {
this.cansgrenadealse;
if (!_root.playinge) {
_root.empty.attachSound(_root.esound);
_root.empty.start(0, 1);
_root.playinge = true;
_root.char.canshoot = false;
_root.empty.onSoundComplete = function () {
_root.playinge = false;
_root.char.canshoot = true;
};
}
}
} else if (person._name.slice(0, 5) == "enemy") {
this.canshoot = true;
}
if (person.canshoot && (this.canshoot)) {
person.kick = person.kick / 2;
person.gun.gotoAndPlay("reloadframe");
if (person == _root.char) {
crosshair_mc.gotoAndPlay("reload");
}
}
};
}
stop();
_root.mvolume = 50;
if (!_root.muted) {
music.setVolume(50);
}
equipgun(1, 25, 20, "usp", 15, 2, "single", "USP", 1);
_root.maxhp = 100;
_root.checkpoint = _root._currentframe;
placeChar();
defineGuns();
_root.enemytype = "normal";
startGame();
Frame 9
_root.enemytype = "normal";
startGame();
Frame 10
save();
_root.enemytype = "normal";
startGame();
Frame 11
_root.enemytype = "normal";
startGame();
Frame 12
_root.enemytype = "normal";
startGame();
Frame 13
save();
_root.enemytype = "normal";
startGame();
Frame 14
_root.enemytype = "normal";
startGame();
Frame 15
_root.enemytype = "normal";
startGame();
Frame 16
save();
_root.enemytype = "normal";
startGame();
Frame 17
_root.enemytype = "normal";
startGame();
Frame 18
_root.enemytype = "normal";
startGame();
Frame 19
save();
_root.enemytype = "normal";
startGame();
Frame 20
_root.enemytype = "normal";
startGame();
Frame 21
_root.enemytype = "normal";
startGame();
Frame 22
_root.enemytype = "normal";
startGame();
Frame 23
function removeText() {
menu_mc.text_mc.gotoAndStop(3);
}
stopAllSounds();
removeEverything();
removeCursor();
_root.char.removeMovieClip();
_root.charhurt.removeMovieClip();
_root.mvolume = 100;
_root.soundset = false;
setMusic();
if (!_root.muted) {
music.setVolume(100);
}
_root.texttodisplay = "The missiles have been secured, and you're still in one piece. As we speak, teams are on their way to transport the missiles out of here. Mission Completed.";
endgame_mc.menu_btn.onRelease = function () {
endgame_mc.gotoAndPlay(40);
_root.frametogo = "menu";
removeText();
};
Symbol 299 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 300 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 301 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 302 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 8 MovieClip [shell] Frame 1
stop();
if (_root.shellturnedon) {
shelly._x = 0;
shelly._y = 0;
r = random(2);
distance = random(26);
if (r == 0) {
distance = distance * -1;
}
shellTweenx = new mx.transitions.Tween(shelly, "_x", null, shelly._x, distance, 10);
distance = random(26);
if (r == 0) {
distance = distance * -1;
}
shellTweeny = new mx.transitions.Tween(shelly, "_y", null, shelly._y, distance, 10);
shellTweenrotate = random(90) + 270;
shellTweenrotate = new mx.transitions.Tween(shelly, "_rotation", null, shelly._xscale, shellTweenrotate, 10);
removeThis = function () {
depth = this._name.slice(5, this._name.getEndIndex());
_root.bkg.attachMovie("shelld", "shelld" + depth, depth + 10000);
cshell = _root.bkg["shelld" + depth];
cshell._x = this._x;
cshell._y = this._y;
cshell._rotation = this._rotation;
cshell.shell._x = this.shelly._x;
cshell.shell._y = this.shelly._y;
cshell.shell._rotation = this.shelly._rotation;
this.removeMovieClip();
};
shellTweenrotate.onMotionFinished = function () {
removeThis();
};
}
Symbol 10 MovieClip [blood1] Frame 1
if (_root.bloodturnedon) {
bloods = 0;
bloodnum = 10;
i = 0;
while (i < bloodnum) {
attachMovie("blooddot", "blood" + bloods, bloods);
blood_mc = this["blood" + i];
blood_mc.cacheAsBitmap = true;
blood_mc._x = 0;
blood_mc._y = 0;
blood_mc._xscale = random(51) + 50;
blood_mc._yscale = blood_mc._xscale;
bloodTweenx = new mx.transitions.Tween(blood_mc, "_x", null, blood_mc._x, random(101) - 50, 10);
bloodTweeny = new mx.transitions.Tween(blood_mc, "_y", null, blood_mc._y, random(101) - 50, 10);
bloodTweenscale = random(101) - 50;
bloodTweenxscale = new mx.transitions.Tween(blood_mc, "_xscale", null, blood_mc._xscale, bloodTweenscale, 10);
bloodTweenyscale = new mx.transitions.Tween(blood_mc, "_yscale", null, blood_mc._yscale, bloodTweenscale, 10);
bloods++;
i++;
}
}
Symbol 37 MovieClip Frame 1
stop();
if (_parent._parent._name == "char") {
gotoAndStop(_root.gun);
} else {
gotoAndStop ("usp");
}
Symbol 42 MovieClip Frame 1
stop();
_parent.canshoot = true;
Symbol 42 MovieClip Frame 2
_parent.canshoot = false;
Symbol 42 MovieClip Frame 14
gotoAndStop (1);
Symbol 42 MovieClip Frame 16
_parent.canshoot = false;
Symbol 42 MovieClip Frame 20
gotoAndStop (1);
Symbol 42 MovieClip Frame 22
gotoAndStop (1);
Symbol 42 MovieClip Frame 26
_parent.canshoot = false;
Symbol 42 MovieClip Frame 28
gotoAndStop (1);
Symbol 42 MovieClip Frame 32
_parent.canshoot = false;
Symbol 42 MovieClip Frame 34
gotoAndStop (1);
Symbol 42 MovieClip Frame 54
_parent.canshoot = false;
Symbol 42 MovieClip Frame 67
if (_parent._name.slice(0, 5) == "enemy") {
_parent.inclip = _parent.maxclip;
} else {
toreload = _root[_root.gun + "maxclip"] - _root[_root.gun + "inclip"];
if (_root[_root.gun + "ammo"] > toreload) {
_root[_root.gun + "ammo"] = _root[_root.gun + "ammo"] - toreload;
_root[_root.gun + "inclip"] = _root[_root.gun + "maxclip"];
} else if (_root[_root.gun + "inclip"] > 0) {
_root[_root.gun + "inclip"] = _root[_root.gun + "inclip"] + _root[_root.gun + "ammo"];
_root[_root.gun + "ammo"] = 0;
} else {
_root[_root.gun + "inclip"] = _root[_root.gun + "ammo"];
_root[_root.gun + "ammo"] = 0;
}
}
Symbol 42 MovieClip Frame 75
gotoAndStop (1);
Symbol 48 MovieClip [enemynormal] Frame 1
stop();
Symbol 51 MovieClip [edeath] Frame 35
stop();
Symbol 55 MovieClip [bullet] Frame 20
stop();
Symbol 60 MovieClip Frame 230
stop();
Symbol 62 MovieClip [smokescreen] Frame 230
_parent.nextFrame();
Symbol 63 MovieClip [sgrenade] Frame 1
stop();
Symbol 63 MovieClip [sgrenade] Frame 2
stop();
Symbol 63 MovieClip [sgrenade] Frame 3
this.removeMovieClip();
Symbol 71 MovieClip Frame 21
_parent.removeMovieClip();
Symbol 72 MovieClip [mine] Frame 1
stop();
Symbol 72 MovieClip [mine] Frame 2
stop();
Symbol 72 MovieClip [mine] Frame 3
stop();
this.exploding = true;
Symbol 80 MovieClip [checkpoint_mc] Frame 36
this.removeMovieClip();
stop();
Symbol 90 MovieClip [crosshair] Frame 1
stop();
Symbol 90 MovieClip [crosshair] Frame 14
gotoAndStop (1);
Symbol 90 MovieClip [crosshair] Frame 46
gotoAndStop (1);
Symbol 91 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 46
stop();
Instance of Symbol 94 MovieClip in Symbol 109 MovieClip Frame 67
on (release) {
getURL ("http://play4all.net/", "_blank");
}
Instance of Symbol 94 MovieClip in Symbol 109 MovieClip Frame 199
on (release) {
getURL ("http://www.play4all.net", "_blank");
}
Symbol 109 MovieClip Frame 253
_root.gotoAndStop("menu");
Symbol 137 MovieClip Frame 58
stop();
Symbol 137 MovieClip Frame 97
_parent.gotoAndStop(_root.frametogo);
Symbol 144 Button
on (release) {
getURL ("http://play4all.net/", "_blank");
}
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
function autoWrite() {
if (i <= myMessage.length) {
beforeunder = myMessage.substr(0, i);
monitor_txt.text = beforeunder;
i = i + 1;
} else {
clearInterval(writingInterval);
}
}
stop();
cool = true;
var clearingInterval = 0;
var i = 0;
var myMessage = _root.texttodisplay;
beforeunder = "";
clearInterval(writingInterval);
var writingInterval = setInterval(autoWrite, 35);
Symbol 155 MovieClip Frame 3
function autoClear() {
if (!cool) {
if (i >= 0) {
beforeunder = myMessage.substr(0, i);
monitor_txt.text = beforeunder;
i = i - 1;
} else {
clearInterval(clearingInterval);
}
}
}
stop();
cool = false;
clearInterval(writingInterval);
var myMessage = _root.texttodisplay;
monitor_txt.text = beforeunder;
if (i == undefined) {
monitor_txt.text = "";
} else {
var clearingInterval = setInterval(autoClear, 35);
}
Symbol 156 MovieClip Frame 39
stop();
text_mc.gotoAndStop(2);
Symbol 156 MovieClip Frame 79
clearInterval(text_mc.clearingInterval);
_parent.gotoAndStop(_root.frametogo);
Symbol 169 MovieClip Frame 30
text_mc.gotoAndStop(2);
Symbol 169 MovieClip Frame 78
stop();
Symbol 169 MovieClip Frame 120
_parent.gotoAndStop(_root.frametogo);
Symbol 176 MovieClip Frame 50
stop();
Symbol 179 MovieClip Frame 15
stop();
Symbol 184 MovieClip [debris1] Frame 10
this.removeMovieClip();
Symbol 216 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 1
stop();
if (_root._currentframe == 15) {
play();
}
Symbol 256 MovieClip Frame 24
gotoAndPlay (1);
Symbol 258 MovieClip Frame 24
gotoAndPlay (1);
Symbol 298 MovieClip Frame 39
stop();
text_mc.gotoAndStop(2);
Symbol 298 MovieClip Frame 79
clearInterval(text_mc.clearingInterval);
_parent.gotoAndStop(_root.frametogo);