Frame 1
if (_url.substring(0, 4) != "file") {
x = new LoadVars();
x.id = "xrossfire";
x.ui = _url;
x.sendAndLoad("http://track.g-bot.net/track.php", x, "POST");
}
function sendScore() {
var _local2 = {n:[7, 0, 7, 6, 13, 0, 3, 15, 2, 1, 5, 11, 6, 13, 2, 1], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var _local3 = _local2.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:_local3, score:totalscore});
}
function sendScore2() {
var _local2 = {n:[7, 0, 7, 6, 13, 0, 3, 15, 2, 1, 5, 11, 6, 13, 2, 1], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var _local3 = _local2.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:_local3, score:totalscore2});
}
function showScore() {
var _local2 = {n:[7, 0, 7, 6, 13, 0, 3, 15, 2, 1, 5, 11, 6, 13, 2, 1], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var _local3 = _local2.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:_local3});
}
mochi.as2.MochiServices.connect("21379c7c10facc4d");
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
function onEnterFrame() {
loadingText.text = "Loading " + percentage;
percentage = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
if (((_root.getBytesLoaded() / _root.getBytesTotal()) >= 1) && (timer <= 0)) {
clearInterval(countdownInterval);
delete this.onEnterFrame;
loadingText.text = "";
loadingbox._visible = true;
playbtn._visible = true;
}
}
loadingbox._visible = false;
playbtn._visible = false;
stop();
timer = 0;
countdown = function () {
timer--;
if (timer == 0) {
clearInterval(countdownInterval);
}
};
countdownInterval = setInterval(countdown, 1000);
stop();
Instance of Symbol 49 MovieClip "loadingbox" in Frame 1
on (release) {
Mouse.show();
_root.gotoAndStop("splash");
}
on (rollOver) {
Mouse.show();
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
on (releaseOutside) {
_root.shooter._visible = true;
this.gotoAndStop(1);
}
Frame 2
stop();
Frame 4
function saveGame() {
myLSO = SharedObject.getLocal("captcha22");
if (myLSO.data.myObj == undefined) {
trace("Saved Game");
} else {
trace("Overwrote Saved Game");
}
myObj = {};
myObj.objArray = new Array();
myObj.objArray[0] = unlock1;
myObj.objArray[1] = unlock2;
myObj.objArray[2] = unlock3;
myObj.objArray[3] = unlock4;
myObj.objArray[4] = unlock5;
myObj.objArray[5] = unlock6;
myObj.objArray[6] = unlock7;
myObj.objArray[7] = unlock8;
myObj.objArray[8] = unlock9;
myObj.objArray[9] = unlock10;
myObj.objArray[10] = unlock11;
myObj.objArray[11] = unlock12;
myObj.objArray[12] = unlock13;
myObj.objArray[13] = unlock14;
myObj.objArray[14] = unlock15;
myObj.objArray[15] = unlock16;
myObj.objArray[16] = unlock17;
myObj.objArray[17] = unlock18;
myObj.objArray[18] = unlock19;
myObj.objArray[19] = unlock20;
myObj.objArray[20] = unlock21;
myObj.objArray[21] = unlock22;
myObj.objArray[22] = unlock23;
myObj.objArray[23] = unlock24;
myObj.objArray[24] = unlock25;
myObj.objArray[25] = unlock26;
myObj.objArray[26] = unlock27;
myObj.objArray[27] = unlock28;
myObj.objArray[28] = unlock29;
myObj.objArray[29] = unlock30;
myObj.objArray[30] = medal1;
myObj.objArray[31] = medal2;
myObj.objArray[32] = medal3;
myObj.objArray[33] = medal4;
myObj.objArray[34] = medal5;
myObj.objArray[35] = medal6;
myObj.objArray[36] = medal7;
myObj.objArray[37] = medal8;
myObj.objArray[38] = medal9;
myObj.objArray[39] = medal10;
myObj.objArray[40] = medal11;
myObj.objArray[41] = medal12;
myObj.objArray[42] = medal13;
myObj.objArray[43] = medal14;
myObj.objArray[44] = medal15;
myObj.objArray[45] = medal16;
myObj.objArray[46] = medal17;
myObj.objArray[47] = medal18;
myObj.objArray[48] = medal19;
myObj.objArray[49] = medal20;
myObj.objArray[50] = medal21;
myObj.objArray[51] = medal22;
myObj.objArray[52] = medal23;
myObj.objArray[53] = medal24;
myObj.objArray[54] = medal25;
myObj.objArray[55] = medal26;
myObj.objArray[56] = medal27;
myObj.objArray[57] = medal28;
myObj.objArray[58] = medal29;
myObj.objArray[59] = medal30;
myLSO.data.myObj = myObj;
}
function loadGame() {
myLSO = SharedObject.getLocal("captcha22");
if (myLSO.data.myObj == undefined) {
trace("No Saved Game");
} else {
trace("Loaded Game");
unlock1 = myLSO.data.myObj.objArray[0];
unlock2 = myLSO.data.myObj.objArray[1];
unlock3 = myLSO.data.myObj.objArray[2];
unlock4 = myLSO.data.myObj.objArray[3];
unlock5 = myLSO.data.myObj.objArray[4];
unlock6 = myLSO.data.myObj.objArray[5];
unlock7 = myLSO.data.myObj.objArray[6];
unlock8 = myLSO.data.myObj.objArray[7];
unlock9 = myLSO.data.myObj.objArray[8];
unlock10 = myLSO.data.myObj.objArray[9];
unlock11 = myLSO.data.myObj.objArray[10];
unlock12 = myLSO.data.myObj.objArray[11];
unlock13 = myLSO.data.myObj.objArray[12];
unlock14 = myLSO.data.myObj.objArray[13];
unlock15 = myLSO.data.myObj.objArray[14];
unlock16 = myLSO.data.myObj.objArray[15];
unlock17 = myLSO.data.myObj.objArray[16];
unlock18 = myLSO.data.myObj.objArray[17];
unlock19 = myLSO.data.myObj.objArray[18];
unlock20 = myLSO.data.myObj.objArray[19];
unlock21 = myLSO.data.myObj.objArray[20];
unlock22 = myLSO.data.myObj.objArray[21];
unlock23 = myLSO.data.myObj.objArray[22];
unlock24 = myLSO.data.myObj.objArray[23];
unlock25 = myLSO.data.myObj.objArray[24];
unlock26 = myLSO.data.myObj.objArray[25];
unlock27 = myLSO.data.myObj.objArray[26];
unlock28 = myLSO.data.myObj.objArray[27];
unlock29 = myLSO.data.myObj.objArray[28];
unlock30 = myLSO.data.myObj.objArray[29];
medal1 = myLSO.data.myObj.objArray[30];
medal2 = myLSO.data.myObj.objArray[31];
medal3 = myLSO.data.myObj.objArray[32];
medal4 = myLSO.data.myObj.objArray[33];
medal5 = myLSO.data.myObj.objArray[34];
medal6 = myLSO.data.myObj.objArray[35];
medal7 = myLSO.data.myObj.objArray[36];
medal8 = myLSO.data.myObj.objArray[37];
medal9 = myLSO.data.myObj.objArray[38];
medal10 = myLSO.data.myObj.objArray[39];
medal11 = myLSO.data.myObj.objArray[40];
medal12 = myLSO.data.myObj.objArray[41];
medal13 = myLSO.data.myObj.objArray[42];
medal14 = myLSO.data.myObj.objArray[43];
medal15 = myLSO.data.myObj.objArray[44];
medal16 = myLSO.data.myObj.objArray[45];
medal17 = myLSO.data.myObj.objArray[46];
medal18 = myLSO.data.myObj.objArray[47];
medal19 = myLSO.data.myObj.objArray[48];
medal20 = myLSO.data.myObj.objArray[49];
medal21 = myLSO.data.myObj.objArray[50];
medal22 = myLSO.data.myObj.objArray[51];
medal23 = myLSO.data.myObj.objArray[52];
medal24 = myLSO.data.myObj.objArray[53];
medal25 = myLSO.data.myObj.objArray[54];
medal26 = myLSO.data.myObj.objArray[55];
medal27 = myLSO.data.myObj.objArray[56];
medal28 = myLSO.data.myObj.objArray[57];
medal29 = myLSO.data.myObj.objArray[58];
medal30 = myLSO.data.myObj.objArray[59];
}
}
_quality = "HIGH";
var totalscore = 0;
var trans = 64;
var playedonce = false;
var retrypressed = false;
var hurtsound = new Sound(this);
hurtsound.attachSound("hurtsound");
var fleshsound = new Sound(this);
fleshsound.attachSound("fleshsound");
var hoversound = new Sound(this);
hoversound.attachSound("hoversound");
var gunshot = new Sound(this);
gunshot.attachSound("gunshot");
soundPlay = new Sound(this);
max = 3;
min = 1;
rndClip = Math.round(Math.random() * (max - min)) + min;
soundPlay.attachSound(rndClip);
player.removeMovieClip();
var pushbutton = false;
gunshot.start(0, 1);
var topBorder = 0;
var leftBorder = 0;
var botBorder = map_mc._height;
var rightBorder = map_mc._width;
var transitioncounter = 0;
var game = false;
bgsound = new Sound(this);
bgsound.attachSound("bgsound");
bgsound.start(0, 1000);
stop();
Frame 5
loadGame();
function play_level(level) {
flashblack.gotoAndPlay(2);
hostages = 0;
_quality = "LOW";
unlocknumber = 0;
_root.sendscore = false;
hostageskilled = 0;
_root.saveOnce = false;
playedonce = false;
player._visible = true;
Mouse.hide();
bg_mc._x = 0;
_root.createEmptyMovieClip("field", 3);
_root.createEmptyMovieClip("field2", 2);
lose_anyway = false;
number_of_mobs = (((((mobs_on_stage[_root.level_to_play] + blue_mobs_on_stage[_root.level_to_play]) + yellow_mobs_on_stage[_root.level_to_play]) + purple_mobs_on_stage[_root.level_to_play]) + orange_mobs_on_stage[_root.level_to_play]) + pink_mobs_on_stage[_root.level_to_play]) + black_mobs_on_stage[_root.level_to_play];
mobs_destroyed = 0;
mobs_to_destroy = to_destroy[_root.level_to_play];
player_exploded = false;
player_started = false;
_root.collision_array = new Array();
field.attachMovie("howmany", "howmany", field.getNextHighestDepth());
field.howmany.txt.text = (("Target: " + mobs_destroyed) + "/") + mobs_to_destroy;
field.howmany._x = 12;
field.howmany._y = 440;
_root.attachMovie("intro", "intro", _root.getNextHighestDepth(), {_x:320, _y:240});
_root.intro.levname.text = "Level " + (_root.level_to_play + 1);
_root.intro.levnotes.text = descriptions[_root.level_to_play];
x = 1;
while (x <= number_of_mobs) {
startx = Math.random() * 640;
starty = Math.random() * 480;
if (x <= mobs_on_stage[_root.level_to_play]) {
mob = field.attachMovie("enemy1", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:startx, _y:starty});
mob.untouchable = false;
mob.inc = 0;
mob.bomb = false;
mob.boss = false;
mob.spawn = 0;
mob.mycolor = 1;
} else if (x <= (mobs_on_stage[_root.level_to_play] + blue_mobs_on_stage[_root.level_to_play])) {
mob = field.attachMovie("enemy4", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:startx, _y:starty});
mob.untouchable = false;
mob.inc = 0;
mob.bomb = false;
mob.boss = true;
mob.spawn = 0;
mob.mycolor = 4;
} else if (x <= ((mobs_on_stage[_root.level_to_play] + blue_mobs_on_stage[_root.level_to_play]) + orange_mobs_on_stage[_root.level_to_play])) {
mob = field.attachMovie("enemy5", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:startx, _y:starty});
mob.untouchable = true;
mob.inc = 0;
hostages = hostages + 1;
mob.bomb = false;
mob.boss = false;
mob.spawn = 0;
mob.mycolor = 5;
} else if (x <= (((mobs_on_stage[_root.level_to_play] + blue_mobs_on_stage[_root.level_to_play]) + orange_mobs_on_stage[_root.level_to_play]) + yellow_mobs_on_stage[_root.level_to_play])) {
mob = field.attachMovie("enemy2", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:startx, _y:starty});
mob.untouchable = false;
mob.inc = 0.7853982;
mob.bomb = false;
mob.boss = false;
mob.spawn = 0;
mob.mycolor = 2;
} else if (x <= ((((mobs_on_stage[_root.level_to_play] + blue_mobs_on_stage[_root.level_to_play]) + orange_mobs_on_stage[_root.level_to_play]) + yellow_mobs_on_stage[_root.level_to_play]) + pink_mobs_on_stage[_root.level_to_play])) {
mob = field.attachMovie("enemy6", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:startx, _y:starty});
mob.untouchable = false;
mob.bomb = true;
mob.boss = false;
mob.inc = 0;
mob.spawn = 0;
mob.mycolor = 6;
} else if (x <= (((((mobs_on_stage[_root.level_to_play] + blue_mobs_on_stage[_root.level_to_play]) + orange_mobs_on_stage[_root.level_to_play]) + yellow_mobs_on_stage[_root.level_to_play]) + pink_mobs_on_stage[_root.level_to_play]) + black_mobs_on_stage[_root.level_to_play])) {
mob = field.attachMovie("enemy7", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:320, _y:240});
mob.untouchable = true;
mob.bomb = false;
mob.boss = false;
hostages = hostages + 1;
mob.inc = 0;
mob.stay = true;
mob.spawn = 0;
mob.mycolor = 7;
} else {
mob = field.attachMovie("enemy3", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:startx, _y:starty});
mob.untouchable = false;
mob.inc = 0;
mob.bomb = false;
mob.boss = false;
mob.spawn = 1;
mob.mycolor = 3;
}
mob.cacheAsBitmap();
if (!mob.stay) {
mob.dir = (Math.random() * 2) * 3.141593;
mob._rotation = (mob.dir * 180) / Math.PI;
} else {
mob.dir = 0;
mob._rotation = 90;
}
mob.onEnterFrame = function () {
field.howmany.swapDepths(field.getNextHighestDepth());
this.xspeed = 2 * Math.cos(this.dir);
this.yspeed = 2 * Math.sin(this.dir);
if (!this.stay) {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
}
if (_root.level_to_play < 19) {
if (this._x >= 660) {
this._x = this._x - 660;
}
if (this._x <= -20) {
this._x = this._x + 660;
}
if (this._y >= 500) {
this._y = this._y - 500;
}
if (this._y <= -20) {
this._y = this._y + 500;
}
} else {
if (this._x >= 600) {
this.dir = (Math.random() * 2) * 3.141593;
this._x = this._x - 10;
this._rotation = (this.dir * 180) / Math.PI;
}
if (this._x <= 40) {
this.dir = (Math.random() * 2) * 3.141593;
this._x = this._x + 10;
this._rotation = (this.dir * 180) / Math.PI;
}
if (this._y >= 440) {
this.dir = (Math.random() * 2) * 3.141593;
this._y = this._y - 10;
this._rotation = (this.dir * 180) / Math.PI;
}
if (this._y <= 40) {
this.dir = (Math.random() * 2) * 3.141593;
this._y = this._y + 10;
this._rotation = (this.dir * 180) / Math.PI;
}
}
for (i in _root.collision_array) {
x_pos = eval (_root.collision_array[i])._x;
y_pos = eval (_root.collision_array[i])._y;
if ((((x_pos > 680) || (y_pos > 520)) || (x_pos < -40)) || (y_pos < -40)) {
eval (_root.collision_array[i]).removeMovieClip();
_root.collision_array.splice(i, 1);
continue;
}
wid = eval (_root.collision_array[i])._width;
dist_x = this._x - x_pos;
dist_y = this._y - y_pos;
distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (distance < ((this._width + wid) / 2)) {
attachDeath(this, this._x, this._y, this.dir);
shaker.play();
doSplatter(container_mc, this._x, this._y, numberOfSplatterParticles, splatterDistance, splatterIntensity, splatterSize);
_root.fleshsound.start(0, 1);
soundPlay = new Sound(this);
max = 3;
min = 1;
rndClip = Math.round(Math.random() * (max - min)) + min;
soundPlay.attachSound(rndClip);
_root.soundPlay.start(0, 1);
mobs_destroyed = mobs_destroyed + 1;
if (this.untouchable) {
hostageskilled = hostageskilled + 1;
lose_anyway = true;
}
field.howmany.txt.text = (("Target: " + mobs_destroyed) + "/") + mobs_to_destroy;
eval (_root.collision_array[i]).removeMovieClip();
if ((((!this.untouchable) && (!this.spawn)) && (!this.bomb)) && (!this.boss)) {
x = 1;
while (x <= 4) {
if (!this.inc) {
bul = field.attachMovie("mbullet", "pbullet_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:this._x, _y:this._y});
} else {
bul = field.attachMovie("gbullet", "pbullet_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
bul.dir = ((3.141593 * x) / 2) + this.inc;
_root.collision_array.push(bul);
bul.onEnterFrame = function () {
this._xspeed = 6 * Math.cos(this.dir);
this._yspeed = 6 * Math.sin(this.dir);
this._x = this._x + this._xspeed;
this._y = this._y + this._yspeed;
};
x++;
}
}
if (this.spawn && (!this.bomb)) {
x = 1;
while (x <= 8) {
bul = field.attachMovie("cbullet", "bullet_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:this._x, _y:this._y});
bul.dir = (3.141593 * x) / 4;
_root.collision_array.push(bul);
bul.onEnterFrame = function () {
this._xspeed = 6 * Math.cos(this.dir);
this._yspeed = 6 * Math.sin(this.dir);
this._x = this._x + this._xspeed;
this._y = this._y + this._yspeed;
};
x++;
}
}
if ((!this.spawn) && (this.bomb)) {
x = 1;
while (x <= 3) {
bul = field.attachMovie("bbullet", "bullet_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:this._x, _y:this._y});
bul.dir = (3.141593 * x) / 4;
bul.counter = 0;
_root.collision_array.push(bul);
bul.onEnterFrame = function () {
this.counter++;
if (this.counter >= 70) {
eval (_root.collision_array[i]).removeMovieClip();
_root.collision_array.splice(i, 1);
}
};
x++;
}
}
this.removeMovieClip();
_root.collision_array.splice(i, 1);
}
}
};
x++;
}
field.onMouseDown = function () {
if ((player_started && (!player_exploded)) && (!pushbutton)) {
gunshot.start(0, 1);
player_exploded = true;
x = 1;
while (x <= 4) {
bul = field.attachMovie("pbullet", "pbullet_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:player._x, _y:player._y});
bul.dir = (3.141593 * x) / 2;
_root.collision_array.push(bul);
bul.onEnterFrame = function () {
this._xspeed = 6 * Math.cos(this.dir);
this._yspeed = 6 * Math.sin(this.dir);
this._x = this._x + this._xspeed;
this._y = this._y + this._yspeed;
};
x++;
}
player._visible = false;
Mouse.show();
}
if (!player_started) {
_root.intro.removeMovieClip();
player_started = true;
}
};
}
function attachDeath(xhitter, _mobX, _mobY, _mobDir) {
if (xhitter.mycolor == 1) {
field2.attachMovie("enemydeath1", "enemyd1" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd1" + xhitter._name]._x = _mobX;
field2["enemyd1" + xhitter._name]._y = _mobY;
field2["enemyd1" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
} else if (xhitter.mycolor == 2) {
field2.attachMovie("enemydeath2", "enemyd2" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd2" + xhitter._name]._x = _mobX;
field2["enemyd2" + xhitter._name]._y = _mobY;
field2["enemyd2" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
} else if (xhitter.mycolor == 3) {
field2.attachMovie("enemydeath3", "enemyd3" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd3" + xhitter._name]._x = _mobX;
field2["enemyd3" + xhitter._name]._y = _mobY;
field2["enemyd3" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
} else if (xhitter.mycolor == 4) {
field2.attachMovie("enemydeath4", "enemyd4" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd4" + xhitter._name]._x = _mobX;
field2["enemyd4" + xhitter._name]._y = _mobY;
field2["enemyd4" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
} else if (xhitter.mycolor == 5) {
field2.attachMovie("enemydeath5", "enemyd5" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd5" + xhitter._name]._x = _mobX;
field2["enemyd5" + xhitter._name]._y = _mobY;
field2["enemyd5" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
} else if (xhitter.mycolor == 6) {
field2.attachMovie("enemydeath6", "enemyd6" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd6" + xhitter._name]._x = _mobX;
field2["enemyd6" + xhitter._name]._y = _mobY;
field2["enemyd6" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
} else if (xhitter.mycolor == 7) {
field2.attachMovie("enemydeath7", "enemyd7" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd7" + xhitter._name]._x = _mobX;
field2["enemyd7" + xhitter._name]._y = _mobY;
field2["enemyd7" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
}
}
function saveUnlock() {
if (_root.level_to_play == 0) {
unlock2 = 1;
}
if (_root.level_to_play == 1) {
unlock3 = 1;
}
if (_root.level_to_play == 2) {
unlock4 = 1;
}
if (_root.level_to_play == 3) {
unlock5 = 1;
}
if (_root.level_to_play == 4) {
unlock6 = 1;
}
if (_root.level_to_play == 5) {
unlock7 = 1;
}
if (_root.level_to_play == 6) {
unlock8 = 1;
}
if (_root.level_to_play == 7) {
unlock9 = 1;
}
if (_root.level_to_play == 8) {
unlock10 = 1;
}
if (_root.level_to_play == 9) {
unlock11 = 1;
}
if (_root.level_to_play == 10) {
unlock12 = 1;
}
if (_root.level_to_play == 11) {
unlock13 = 1;
}
if (_root.level_to_play == 12) {
unlock14 = 1;
}
if (_root.level_to_play == 13) {
unlock15 = 1;
}
if (_root.level_to_play == 14) {
unlock16 = 1;
}
if (_root.level_to_play == 15) {
unlock17 = 1;
}
if (_root.level_to_play == 16) {
unlock18 = 1;
}
if (_root.level_to_play == 17) {
unlock19 = 1;
}
if (_root.level_to_play == 18) {
unlock20 = 1;
}
if (_root.level_to_play == 19) {
unlock21 = 1;
}
if (_root.level_to_play == 20) {
unlock22 = 1;
}
if (_root.level_to_play == 21) {
unlock23 = 1;
}
if (_root.level_to_play == 22) {
unlock24 = 1;
}
if (_root.level_to_play == 23) {
unlock25 = 1;
}
if (_root.level_to_play == 24) {
unlock26 = 1;
}
if (_root.level_to_play == 25) {
unlock27 = 1;
}
if (_root.level_to_play == 26) {
unlock28 = 1;
}
if (_root.level_to_play == 27) {
unlock29 = 1;
}
if (_root.level_to_play == 28) {
unlock30 = 1;
}
_root.saveGame();
}
function saveMedal() {
if (_root.level_to_play == 0) {
medal1 = _root.unlocknumber;
}
if (_root.level_to_play == 1) {
medal2 = _root.unlocknumber;
}
if (_root.level_to_play == 2) {
medal3 = _root.unlocknumber;
}
if (_root.level_to_play == 3) {
medal4 = _root.unlocknumber;
}
if (_root.level_to_play == 4) {
medal5 = _root.unlocknumber;
}
if (_root.level_to_play == 5) {
medal6 = _root.unlocknumber;
}
if (_root.level_to_play == 6) {
medal7 = _root.unlocknumber;
}
if (_root.level_to_play == 7) {
medal8 = _root.unlocknumber;
}
if (_root.level_to_play == 8) {
medal9 = _root.unlocknumber;
}
if (_root.level_to_play == 9) {
medal10 = _root.unlocknumber;
}
if (_root.level_to_play == 10) {
medal11 = _root.unlocknumber;
}
if (_root.level_to_play == 11) {
medal12 = _root.unlocknumber;
}
if (_root.level_to_play == 12) {
medal13 = _root.unlocknumber;
}
if (_root.level_to_play == 13) {
medal14 = _root.unlocknumber;
}
if (_root.level_to_play == 14) {
medal15 = _root.unlocknumber;
}
if (_root.level_to_play == 15) {
medal16 = _root.unlocknumber;
}
if (_root.level_to_play == 16) {
medal17 = _root.unlocknumber;
}
if (_root.level_to_play == 17) {
medal18 = _root.unlocknumber;
}
if (_root.level_to_play == 18) {
medal19 = _root.unlocknumber;
}
if (_root.level_to_play == 19) {
medal20 = _root.unlocknumber;
}
if (_root.level_to_play == 20) {
medal21 = _root.unlocknumber;
}
if (_root.level_to_play == 21) {
medal22 = _root.unlocknumber;
}
if (_root.level_to_play == 22) {
medal23 = _root.unlocknumber;
}
if (_root.level_to_play == 23) {
medal24 = _root.unlocknumber;
}
if (_root.level_to_play == 24) {
medal25 = _root.unlocknumber;
}
if (_root.level_to_play == 25) {
medal26 = _root.unlocknumber;
}
if (_root.level_to_play == 26) {
medal27 = _root.unlocknumber;
}
if (_root.level_to_play == 27) {
medal28 = _root.unlocknumber;
}
if (_root.level_to_play == 28) {
medal29 = _root.unlocknumber;
}
if (_root.level_to_play == 29) {
medal30 = _root.unlocknumber;
}
}
function clearLocks() {
if (unlock1 == 1) {
title.cover1.gotoAndStop(2);
}
if (unlock2 == 1) {
title.cover2.gotoAndStop(2);
}
if (unlock3 == 1) {
title.cover3.gotoAndStop(2);
}
if (unlock4 == 1) {
title.cover4.gotoAndStop(2);
}
if (unlock5 == 1) {
title.cover5.gotoAndStop(2);
}
if (unlock6 == 1) {
title.cover6.gotoAndStop(2);
}
if (unlock7 == 1) {
title.cover7.gotoAndStop(2);
}
if (unlock8 == 1) {
title.cover8.gotoAndStop(2);
}
if (unlock9 == 1) {
title.cover9.gotoAndStop(2);
}
if (unlock10 == 1) {
title.cover10.gotoAndStop(2);
}
if (unlock11 == 1) {
title.cover11.gotoAndStop(2);
}
if (unlock12 == 1) {
title.cover12.gotoAndStop(2);
}
if (unlock13 == 1) {
title.cover13.gotoAndStop(2);
}
if (unlock14 == 1) {
title.cover14.gotoAndStop(2);
}
if (unlock15 == 1) {
title.cover15.gotoAndStop(2);
}
if (unlock16 == 1) {
title.cover16.gotoAndStop(2);
}
if (unlock17 == 1) {
title.cover17.gotoAndStop(2);
}
if (unlock18 == 1) {
title.cover18.gotoAndStop(2);
}
if (unlock19 == 1) {
title.cover19.gotoAndStop(2);
}
if (unlock20 == 1) {
title.cover20.gotoAndStop(2);
}
if (unlock21 == 1) {
title.cover21.gotoAndStop(2);
}
if (unlock22 == 1) {
title.cover22.gotoAndStop(2);
}
if (unlock23 == 1) {
title.cover23.gotoAndStop(2);
}
if (unlock24 == 1) {
title.cover24.gotoAndStop(2);
}
if (unlock25 == 1) {
title.cover25.gotoAndStop(2);
}
if (unlock26 == 1) {
title.cover26.gotoAndStop(2);
}
if (unlock27 == 1) {
title.cover27.gotoAndStop(2);
}
if (unlock28 == 1) {
title.cover28.gotoAndStop(2);
}
if (unlock29 == 1) {
title.cover29.gotoAndStop(2);
}
if (unlock30 == 1) {
title.cover30.gotoAndStop(2);
}
if (medal1 == 1) {
title.medal1.gotoAndStop(2);
}
if (medal1 == 2) {
title.medal1.gotoAndStop(3);
}
if (medal1 == 3) {
title.medal1.gotoAndStop(4);
}
if (medal2 == 1) {
title.medal2.gotoAndStop(2);
}
if (medal2 == 2) {
title.medal2.gotoAndStop(3);
}
if (medal2 == 3) {
title.medal2.gotoAndStop(4);
}
if (medal3 == 1) {
title.medal3.gotoAndStop(2);
}
if (medal3 == 2) {
title.medal3.gotoAndStop(3);
}
if (medal3 == 3) {
title.medal3.gotoAndStop(4);
}
if (medal4 == 1) {
title.medal4.gotoAndStop(2);
}
if (medal4 == 2) {
title.medal4.gotoAndStop(3);
}
if (medal4 == 3) {
title.medal4.gotoAndStop(4);
}
if (medal5 == 1) {
title.medal5.gotoAndStop(2);
}
if (medal5 == 2) {
title.medal5.gotoAndStop(3);
}
if (medal5 == 3) {
title.medal5.gotoAndStop(4);
}
if (medal6 == 1) {
title.medal6.gotoAndStop(2);
}
if (medal6 == 2) {
title.medal6.gotoAndStop(3);
}
if (medal6 == 3) {
title.medal6.gotoAndStop(4);
}
if (medal7 == 1) {
title.medal7.gotoAndStop(2);
}
if (medal7 == 2) {
title.medal7.gotoAndStop(3);
}
if (medal7 == 3) {
title.medal7.gotoAndStop(4);
}
if (medal8 == 1) {
title.medal8.gotoAndStop(2);
}
if (medal8 == 2) {
title.medal8.gotoAndStop(3);
}
if (medal8 == 3) {
title.medal8.gotoAndStop(4);
}
if (medal9 == 1) {
title.medal9.gotoAndStop(2);
}
if (medal9 == 2) {
title.medal9.gotoAndStop(3);
}
if (medal9 == 3) {
title.medal9.gotoAndStop(4);
}
if (medal10 == 1) {
title.medal10.gotoAndStop(2);
}
if (medal10 == 2) {
title.medal10.gotoAndStop(3);
}
if (medal10 == 3) {
title.medal10.gotoAndStop(4);
}
if (medal11 == 1) {
title.medal11.gotoAndStop(2);
}
if (medal11 == 2) {
title.medal11.gotoAndStop(3);
}
if (medal11 == 3) {
title.medal11.gotoAndStop(4);
}
if (medal12 == 1) {
title.medal12.gotoAndStop(2);
}
if (medal12 == 2) {
title.medal12.gotoAndStop(3);
}
if (medal12 == 3) {
title.medal12.gotoAndStop(4);
}
if (medal13 == 1) {
title.medal13.gotoAndStop(2);
}
if (medal13 == 2) {
title.medal13.gotoAndStop(3);
}
if (medal13 == 3) {
title.medal13.gotoAndStop(4);
}
if (medal14 == 1) {
title.medal14.gotoAndStop(2);
}
if (medal14 == 2) {
title.medal14.gotoAndStop(3);
}
if (medal14 == 3) {
title.medal14.gotoAndStop(4);
}
if (medal15 == 1) {
title.medal15.gotoAndStop(2);
}
if (medal15 == 2) {
title.medal15.gotoAndStop(3);
}
if (medal15 == 3) {
title.medal15.gotoAndStop(4);
}
if (medal16 == 1) {
title.medal16.gotoAndStop(2);
}
if (medal16 == 2) {
title.medal16.gotoAndStop(3);
}
if (medal16 == 3) {
title.medal16.gotoAndStop(4);
}
if (medal17 == 1) {
title.medal17.gotoAndStop(2);
}
if (medal17 == 2) {
title.medal17.gotoAndStop(3);
}
if (medal17 == 3) {
title.medal17.gotoAndStop(4);
}
if (medal18 == 1) {
title.medal18.gotoAndStop(2);
}
if (medal18 == 2) {
title.medal18.gotoAndStop(3);
}
if (medal18 == 3) {
title.medal18.gotoAndStop(4);
}
if (medal19 == 1) {
title.medal19.gotoAndStop(2);
}
if (medal19 == 2) {
title.medal19.gotoAndStop(3);
}
if (medal19 == 3) {
title.medal19.gotoAndStop(4);
}
if (medal20 == 1) {
title.medal20.gotoAndStop(2);
}
if (medal20 == 2) {
title.medal20.gotoAndStop(3);
}
if (medal20 == 3) {
title.medal20.gotoAndStop(4);
}
if (medal21 == 1) {
title.medal21.gotoAndStop(2);
}
if (medal21 == 2) {
title.medal21.gotoAndStop(3);
}
if (medal21 == 3) {
title.medal21.gotoAndStop(4);
}
if (medal22 == 1) {
title.medal22.gotoAndStop(2);
}
if (medal22 == 2) {
title.medal22.gotoAndStop(3);
}
if (medal22 == 3) {
title.medal22.gotoAndStop(4);
}
if (medal23 == 1) {
title.medal23.gotoAndStop(2);
}
if (medal23 == 2) {
title.medal23.gotoAndStop(3);
}
if (medal23 == 3) {
title.medal23.gotoAndStop(4);
}
if (medal24 == 1) {
title.medal24.gotoAndStop(2);
}
if (medal24 == 2) {
title.medal24.gotoAndStop(3);
}
if (medal24 == 3) {
title.medal24.gotoAndStop(4);
}
if (medal25 == 1) {
title.medal25.gotoAndStop(2);
}
if (medal25 == 2) {
title.medal25.gotoAndStop(3);
}
if (medal25 == 3) {
title.medal25.gotoAndStop(4);
}
if (medal26 == 1) {
title.medal26.gotoAndStop(2);
}
if (medal26 == 2) {
title.medal26.gotoAndStop(3);
}
if (medal26 == 3) {
title.medal26.gotoAndStop(4);
}
if (medal27 == 1) {
title.medal27.gotoAndStop(2);
}
if (medal27 == 2) {
title.medal27.gotoAndStop(3);
}
if (medal27 == 3) {
title.medal27.gotoAndStop(4);
}
if (medal28 == 1) {
title.medal28.gotoAndStop(2);
}
if (medal28 == 2) {
title.medal28.gotoAndStop(3);
}
if (medal28 == 3) {
title.medal28.gotoAndStop(4);
}
if (medal29 == 1) {
title.medal29.gotoAndStop(2);
}
if (medal29 == 2) {
title.medal29.gotoAndStop(3);
}
if (medal29 == 3) {
title.medal29.gotoAndStop(4);
}
if (medal30 == 1) {
title.medal30.gotoAndStop(2);
}
if (medal30 == 2) {
title.medal30.gotoAndStop(3);
}
if (medal30 == 3) {
title.medal30.gotoAndStop(4);
}
}
level_to_play = 0;
bg_mc.cacheAsBitmap();
_root.onEnterFrame = function () {
_root.title.totalscore.text = "Score: " + totalscore;
clearLocks();
if (_root.level_to_play >= 0) {
bg_mc.gotoAndStop(1);
}
if (_root.level_to_play >= 6) {
bg_mc.gotoAndStop(2);
}
if (_root.level_to_play >= 13) {
bg_mc.gotoAndStop(3);
}
if (_root.level_to_play >= 19) {
bg_mc.gotoAndStop(4);
}
if (_root.level_to_play >= 25) {
bg_mc.gotoAndStop(5);
}
if (game) {
if (((_root.collision_array.length == 0) || (mobs_destroyed == number_of_mobs)) && (player_exploded)) {
if (!playedonce) {
if (_root.level_to_play <= 31) {
wavecomplete.gotoAndPlay(2);
playedonce = true;
}
}
}
}
};
function playSelected() {
game = true;
gunshot.start(0, 1);
title.removeMovieClip();
Mouse.hide();
_root.player._visible = true;
play_level(_root.level_to_play);
}
var hurtsound = new Sound(this);
hurtsound.attachSound("hurtsound");
player._visible = true;
Mouse.hide();
var topBorder = 0;
var leftBorder = 0;
var botBorder = map_mc._height;
var rightBorder = map_mc._width;
var transitioncounter = 0;
stop();
sendscore = false;
music = new Sound(this);
music.attachSound("music");
music.start(0, 1000);
game = false;
_root.attachMovie("container_mc", "container_mc", 1);
_root.attachMovie("title", "title", 2);
_root.attachMovie("player", "player", 4);
var mobs_on_stage = new Array(7, 11, 15, 6, 5, 20, 5, 10, 10, 2, 0, 0, 0, 0, 0, 0, 2, 1, 3, 0, 21, 1, 4, 0, 0, 0, 0, 0, 0, 3);
var blue_mobs_on_stage = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 9, 7, 20, 0, 0, 16, 4, 15, 0, 1);
var orange_mobs_on_stage = new Array(0, 0, 0, 1, 2, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 7, 1, 1, 0, 1, 0, 2, 0, 0, 8, 0, 0, 0, 5, 0);
var yellow_mobs_on_stage = new Array(0, 0, 0, 0, 0, 0, 5, 4, 10, 1, 0, 0, 0, 8, 0, 0, 2, 1, 3, 6, 0, 1, 4, 0, 1, 0, 0, 0, 0, 3);
var purple_mobs_on_stage = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 6, 0, 2, 1, 0, 0, 0, 0, 4, 0, 0, 1, 0, 0, 1, 0);
var pink_mobs_on_stage = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 15, 9, 0, 0, 1, 0, 1, 0, 6, 0, 0, 0, 25, 0, 0, 0, 15, 0, 3);
var black_mobs_on_stage = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
var to_destroy = new Array(2, 5, 10, 2, 2, 18, 3, 5, 20, 3, 3, 10, 4, 13, 2, 1, 4, 2, 5, 10, 28, 5, 25, 25, 1, 8, 3, 25, 1, 5);
var descriptions = new Array();
descriptions[0] = "Welcome soldier!\nI present you our latest weapon, the Xrossfire. Click anywhere in the field to make a cross like pattern of bullets.";
descriptions[1] = "Witness how the Xrossfire creates a chain reaction. Let them kill each other.\nMeet your quota at the lower left corner to earn a medal.";
descriptions[2] = "You learn fast!\n\nLet's kill them all and later we can harness their ore.";
descriptions[3] = "Effin' cowards! Always hiding behind civilians' back! Do not let this hostage get shot from the fire exchange.";
descriptions[4] = "Like one hostage isn't enough. What's next children hostages?\n\nOh, they've already done that.";
descriptions[5] = "Go on, shoot!\n\nI'm filming this right now so I can sell this to movie producers.";
descriptions[6] = "Alright! New type of terrorists. I'm guessing which direction his brain would splatter.\n\nWanna bet?";
descriptions[7] = "Hostage again???\n\nDo not let him get killed in the crossfire!";
descriptions[8] = "According to government numbers, some 45% of released terrorists return to terrorism.\n\nI hate math so just go ahead kill 100% would ya?";
descriptions[9] = "3 enemies only? This is eyesore for bloodlust generals like me!";
descriptions[10] = "Suicide bombers!\n\nThese people actually believe they will be granted nirvana once they reach completion of their mission. Let's snap them back to reality.";
descriptions[11] = "The bigger the bomb the harder they fall.";
descriptions[12] = "Bombs aren't really useful if they got no innocent civilian to go with them.\n\nDon't let them succeed.";
descriptions[13] = "Now we've gone deeper into the enemies lair. Bigger guns, bigger beards.";
descriptions[14] = "They carry these heavy machine guns because it makes their hitting odds better.";
descriptions[15] = "Wow, this guy must be having the day of his life. A bomb strapped in his body and lots of hostages.";
descriptions[16] = "Desperate situations need desperate actions. Well that just gives us more reasons to kill these bastards!";
descriptions[17] = "Now we've got everyone's representative for tonight's party. Let's review again how their brains splatter.";
descriptions[18] = "Hey now, those unarmed green guys must be on the top ranks. Sneaky bosses, they're not getting blood on their uniforms and they're stopping the chain too!";
descriptions[19] = "We are now inside the enemy bases. I wonder where they keep their food. I'm starving from all the killings.";
descriptions[20] = "Woohoo lotsa terrorists inside with no hostage! This brings back memories of me when I was a child drowning down those pesky red ants in our backyard.";
descriptions[21] = "Only two guys armed? What is this, even celebrities are way more stuffed that these!";
descriptions[22] = "These green guys will not ruin the fun. Time your bullets well and this should end well.";
descriptions[23] = "Bomber bummer! Don't let anyone survive!";
descriptions[24] = "Alright rescue those guys and we'll have a feast tonight at the town's bar.";
descriptions[25] = "This is easy if only their superiors know how to hold a freakin' gun!";
descriptions[26] = "You think this is just a chain reaction game?!";
descriptions[27] = "Who invited the green absorbers? Should have been fun to blow up this dungeon apart.";
descriptions[28] = "This room is insane! Remember patience is a virtue and timing is everything.";
descriptions[29] = "This is the last level. Whatever you do, do not let that guy get killed!";
player.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
flashblack.swapDepths(_root.getNextHighestDepth());
if (!sendscore) {
wavecomplete.swapDepths(_root.getNextHighestDepth());
}
player.swapDepths(_root.getNextHighestDepth());
level_to_playcounter = level_to_play + 1;
field.howmany.levelno.text = "LEVEL " + level_to_playcounter;
};
title.button_mc1.onRelease = function () {
if (!game) {
_root.level_to_play = 0;
playSelected();
}
};
title.button_mc2.onRelease = function () {
if (!game) {
_root.level_to_play = 1;
playSelected();
}
};
title.button_mc3.onRelease = function () {
if (!game) {
_root.level_to_play = 2;
playSelected();
}
};
title.button_mc4.onRelease = function () {
if (!game) {
_root.level_to_play = 3;
playSelected();
}
};
title.button_mc5.onRelease = function () {
if (!game) {
_root.level_to_play = 4;
playSelected();
}
};
title.button_mc6.onRelease = function () {
if (!game) {
_root.level_to_play = 5;
playSelected();
}
};
title.button_mc7.onRelease = function () {
if (!game) {
_root.level_to_play = 6;
playSelected();
}
};
title.button_mc8.onRelease = function () {
if (!game) {
_root.level_to_play = 7;
playSelected();
}
};
title.button_mc9.onRelease = function () {
if (!game) {
_root.level_to_play = 8;
playSelected();
}
};
title.button_mc10.onRelease = function () {
if (!game) {
_root.level_to_play = 9;
playSelected();
}
};
title.button_mc11.onRelease = function () {
if (!game) {
_root.level_to_play = 10;
playSelected();
}
};
title.button_mc12.onRelease = function () {
if (!game) {
_root.level_to_play = 11;
playSelected();
}
};
title.button_mc13.onRelease = function () {
if (!game) {
_root.level_to_play = 12;
playSelected();
}
};
title.button_mc14.onRelease = function () {
if (!game) {
_root.level_to_play = 13;
playSelected();
}
};
title.button_mc15.onRelease = function () {
if (!game) {
_root.level_to_play = 14;
playSelected();
}
};
title.button_mc16.onRelease = function () {
if (!game) {
_root.level_to_play = 15;
playSelected();
}
};
title.button_mc17.onRelease = function () {
if (!game) {
_root.level_to_play = 16;
playSelected();
}
};
title.button_mc18.onRelease = function () {
if (!game) {
_root.level_to_play = 17;
playSelected();
}
};
title.button_mc19.onRelease = function () {
if (!game) {
_root.level_to_play = 18;
playSelected();
}
};
title.button_mc20.onRelease = function () {
if (!game) {
_root.level_to_play = 19;
playSelected();
}
};
title.button_mc21.onRelease = function () {
if (!game) {
_root.level_to_play = 20;
playSelected();
}
};
title.button_mc22.onRelease = function () {
if (!game) {
_root.level_to_play = 21;
playSelected();
}
};
title.button_mc23.onRelease = function () {
if (!game) {
_root.level_to_play = 22;
playSelected();
}
};
title.button_mc24.onRelease = function () {
if (!game) {
_root.level_to_play = 23;
playSelected();
}
};
title.button_mc25.onRelease = function () {
if (!game) {
_root.level_to_play = 24;
playSelected();
}
};
title.button_mc26.onRelease = function () {
if (!game) {
_root.level_to_play = 25;
playSelected();
}
};
title.button_mc27.onRelease = function () {
if (!game) {
_root.level_to_play = 26;
playSelected();
}
};
title.button_mc28.onRelease = function () {
if (!game) {
_root.level_to_play = 27;
playSelected();
}
};
title.button_mc29.onRelease = function () {
if (!game) {
_root.level_to_play = 28;
playSelected();
}
};
title.button_mc30.onRelease = function () {
if (!game) {
_root.level_to_play = 29;
playSelected();
}
};
title.button_mc31.onRelease = function () {
if (!game) {
_root.level_to_play = 30;
playSelected();
}
};
var i = 0;
while (i < 31) {
title["button_mc" + i].tabEnabled = false;
title["button_mc" + i].onRollOver = function () {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
};
title["button_mc" + i].onRollOut = function () {
this.gotoAndStop(1);
};
title["button_mc" + i].onReleaseOutside = function () {
this.gotoAndStop(1);
};
i++;
}
var i = 0;
while (i < 31) {
title["cover" + i].tabEnabled = false;
title["cover" + i].onRelease = function () {
};
i++;
}
Symbol 5 MovieClip [blood_mc] Frame 5
stop();
Symbol 31 MovieClip [fps] Frame 1
fps = 30;
var timeinit = new Date();
var lasttime = timeinit.getMilliseconds();
onEnterFrame = function () {
this.swapDepths(_root.getNextHighestDepth());
var _local3 = new Date();
timepassed = (((_local3.getMilliseconds() - lasttime) >= 0) ? (_local3.getMilliseconds() - lasttime) : (1000 + (_local3.getMilliseconds() - lasttime)));
fps = Math.round(10000 / timepassed) / 10;
lasttime = _local3.getMilliseconds();
};
Symbol 38 MovieClip [bbullet] Frame 33
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 55 Button
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 66 MovieClip Frame 175
_root.play();
Symbol 67 Button
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 73 MovieClip [cbullet] Frame 7
stop();
Symbol 75 MovieClip [gbullet] Frame 7
stop();
Symbol 77 MovieClip [mbullet] Frame 7
stop();
Symbol 78 MovieClip [pbullet] Frame 7
stop();
Symbol 102 MovieClip [enemy1] Frame 1
stop();
Symbol 120 MovieClip [enemy2] Frame 1
stop();
Symbol 142 MovieClip [enemy3] Frame 1
stop();
Symbol 160 MovieClip [enemy4] Frame 1
stop();
Symbol 180 MovieClip [enemy5] Frame 1
stop();
Symbol 194 MovieClip [enemy6] Frame 1
stop();
Symbol 205 MovieClip Frame 36
stop();
Symbol 205 MovieClip Frame 40
stop();
Symbol 232 MovieClip Frame 19
stop();
Symbol 256 MovieClip Frame 36
stop();
Symbol 282 MovieClip Frame 36
stop();
Symbol 298 MovieClip Frame 30
stop();
Symbol 313 MovieClip Frame 16
stop();
Symbol 332 MovieClip Frame 20
stop();
Symbol 345 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 355 Button
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 393 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 2
stop();
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 2
_root.totalscore = _root.totalscore + 750;
Symbol 401 MovieClip Frame 3
_root.totalscore = _root.totalscore + 1500;
Symbol 401 MovieClip Frame 4
_root.totalscore = _root.totalscore + 3000;
Symbol 407 MovieClip Frame 1
stop();
Symbol 417 Button
on (release) {
x = new LoadVars();
x.n = newName.toLowerCase();
x.s = _root.totalscore;
x.sendAndLoad("http://hiscore.arcadebomb.com/xrossfire_submit.php", x, "POST");
gotoAndStop (3);
}
Symbol 453 Button
on (release) {
getURL ("http://hiscore.arcadebomb.com/xrossfire.php", "_blank");
}
Symbol 454 MovieClip Frame 1
var c = new LoadVars();
var i = new LoadVars();
c.sendAndLoad("http://hiscore.arcadebomb.com/xrossfire_get.php", i, "POST");
i.onLoad = function () {
trace(i);
name1 = i.name1;
score1 = i.score1;
name2 = i.name2;
score2 = i.score2;
name3 = i.name3;
score3 = i.score3;
name4 = i.name4;
score4 = i.score4;
name5 = i.name5;
score5 = i.score5;
name6 = i.name6;
score6 = i.score6;
name7 = i.name7;
score7 = i.score7;
name8 = i.name8;
score8 = i.score8;
name9 = i.name9;
score9 = i.score9;
name10 = i.name10;
score10 = i.score10;
};
stop();
Symbol 457 Button
on (release) {
gotoAndStop (1);
}
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 2
stop();
Symbol 458 MovieClip Frame 3
stop();
Symbol 459 MovieClip [title] Frame 1
Mouse.show();
_root.player._visible = false;
_quality = "HIGH";
Instance of Symbol 400 MovieClip in Symbol 459 MovieClip [title] Frame 1
onClipEvent (load) {
this.tabenabled = false;
this.enabled = false;
}
on (release) {
trace("ok");
_root.unlock1 = 1;
_root.unlock2 = 1;
_root.unlock3 = 1;
_root.unlock4 = 1;
_root.unlock5 = 1;
_root.unlock6 = 1;
_root.unlock7 = 1;
_root.unlock8 = 1;
_root.unlock9 = 1;
_root.unlock10 = 1;
_root.unlock11 = 1;
_root.unlock12 = 1;
_root.unlock13 = 1;
_root.unlock14 = 1;
_root.unlock15 = 1;
_root.unlock16 = 1;
_root.unlock17 = 1;
_root.unlock18 = 1;
_root.unlock19 = 1;
_root.unlock20 = 1;
_root.unlock21 = 1;
_root.unlock22 = 1;
_root.unlock23 = 1;
_root.unlock24 = 1;
_root.unlock25 = 1;
_root.unlock26 = 1;
_root.unlock27 = 1;
_root.unlock28 = 1;
_root.unlock29 = 1;
_root.unlock30 = 1;
_root.saveGame();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 407 MovieClip in Symbol 459 MovieClip [title] Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
_root.title.sumbits.gotoAndStop(2);
_root.sendScore();
}
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Symbol 464 MovieClip Frame 56
stop();
Symbol 476 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 2
stop();
Symbol 482 MovieClip Frame 1
stop();
Symbol 482 MovieClip Frame 2
stop();
Symbol 487 MovieClip Frame 1
stop();
Symbol 489 MovieClip [howmany] Frame 1
this.onEnterFrame = function () {
if (_quality == "MEDIUM") {
qualitybtn.qualitytext.text = "MED";
}
if (_quality == "LOW") {
qualitybtn.qualitytext.text = "LOW";
}
if (_quality == "HIGH") {
qualitybtn.qualitytext.text = "HI";
}
};
Instance of Symbol 476 MovieClip "Btn_Mute" in Symbol 489 MovieClip [howmany] Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
_root.clicksound.start(0, 1);
_root.pushbutton = true;
if (!_root.player_started) {
Mouse.hide();
_root.player._visible = true;
}
if (_root.bgsound.getVolume() != 0) {
this.gotoAndStop(2);
_root.oldVolume = _root.bgsound.getVolume();
_root.slider.slidebar.onEnterFrame = null;
_root.bgsound.setVolume(0);
} else {
this.gotoAndStop(1);
_root.slider.slidebar.onEnterFrame = _root.adjustVolume;
_root.bgsound.setVolume(_root.oldVolume);
}
}
on (rollOver) {
if (!_root.player_started) {
Mouse.show();
_root.player._visible = false;
}
_root.pushbutton = true;
_root.hoversound.start(0, 1);
}
on (rollOut) {
if (!_root.player_started) {
Mouse.hide();
_root.player._visible = true;
}
_root.pushbutton = false;
}
on (releaseOutside) {
if (!_root.player_started) {
Mouse.hide();
_root.player._visible = true;
}
_root.pushbutton = false;
}
Instance of Symbol 482 MovieClip in Symbol 489 MovieClip [howmany] Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
_root.pushbutton = true;
if (!_root.playedonce) {
_root.wavecomplete.gotoAndPlay(2);
_root.retrypressed = true;
_root.player._visible = false;
Mouse.show();
_root.playedonce = true;
}
}
on (rollOver) {
if (!_root.player_started) {
Mouse.show();
_root.player._visible = false;
}
_root.pushbutton = true;
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
if (!_root.player_started) {
Mouse.hide();
_root.player._visible = true;
}
_root.pushbutton = false;
this.gotoAndStop(1);
}
on (releaseOutside) {
if (!_root.player_started) {
Mouse.hide();
_root.player._visible = true;
}
_root.pushbutton = false;
this.gotoAndStop(1);
}
Instance of Symbol 487 MovieClip "qualitybtn" in Symbol 489 MovieClip [howmany] Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
_root.clicksound.start(0, 1);
_root.pushbutton = true;
if ((_quality == "MEDIUM") && (_root.prev == "HIGH")) {
_quality = "LOW";
_root.pause_mc.quality_btn.qualitytext = "Low";
} else if ((_quality == "MEDIUM") && (_root.prev == "LOW")) {
_quality = "HIGH";
_root.prev = "MEDS";
_root.pause_mc.quality_btn.qualitytext = "Hi";
} else if ((_quality == "HIGH") && (_root.prev == "MEDS")) {
_quality = "MEDIUM";
_root.quality_btn.qualitytext = "Med";
_root.prev = "HIGH";
_quality = "MEDIUM";
trace("1");
} else if (_quality == "LOW") {
_quality = "MEDIUM";
_root.prev = "LOW";
trace("2");
_root.pause_mc.quality_btn.qualitytext = "Med";
}
}
on (rollOver) {
if (!_root.player_started) {
Mouse.show();
_root.player._visible = false;
}
_root.pushbutton = true;
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
if (!_root.player_started) {
Mouse.hide();
_root.player._visible = true;
}
_root.pushbutton = false;
this.gotoAndStop(1);
}
on (releaseOutside) {
if (!_root.player_started) {
Mouse.hide();
_root.player._visible = true;
}
_root.pushbutton = false;
this.gotoAndStop(1);
}
Symbol 499 MovieClip [enemy7] Frame 1
stop();
Symbol 511 MovieClip Frame 35
stop();
Symbol 523 MovieClip Frame 7
stop();
Symbol 527 MovieClip Frame 7
stop();
Symbol 530 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 2
stop();
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 2
stop();
Symbol 545 MovieClip Frame 1
stop();
Instance of Symbol 530 MovieClip in Symbol 545 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
_root.gunshot.start(0, 1);
Mouse.hide();
_root.titlescreen.gotoAndPlay(2);
}
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 530 MovieClip in Symbol 545 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
_root.gunshot.start(0, 1);
}
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 530 MovieClip in Symbol 545 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
_root.gunshot.start(0, 1);
_root.titlescreen.sumbits.gotoAndStop(3);
}
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 540 MovieClip "Btn_Mute" in Symbol 545 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
_root.clicksound.start(0, 1);
if (_root.bgsound.getVolume() != 0) {
this.gotoAndStop(2);
_root.oldVolume = _root.bgsound.getVolume();
_root.slider.slidebar.onEnterFrame = null;
_root.bgsound.setVolume(0);
} else {
this.gotoAndStop(1);
_root.slider.slidebar.onEnterFrame = _root.adjustVolume;
_root.bgsound.setVolume(_root.oldVolume);
}
}
on (rollOver) {
_root.hoversound.start(0, 1);
}
on (rollOut) {
}
on (releaseOutside) {
}
Symbol 545 MovieClip Frame 2
Mouse.show();
Symbol 545 MovieClip Frame 56
chain1.stop();
chain2.stop();
chain3.stop();
chain4.stop();
Symbol 545 MovieClip Frame 59
_root.gotoAndStop("main");
Symbol 545 MovieClip Frame 60
stop();
Symbol 545 MovieClip Frame 61
chain1.play();
chain2.play();
chain3.play();
chain4.play();
Symbol 545 MovieClip Frame 120
gotoAndStop (1);
Symbol 548 MovieClip Frame 6
stop();
Symbol 560 MovieClip [bg] Frame 1
stop();
Symbol 561 MovieClip Frame 1
stop();
Symbol 561 MovieClip Frame 2
_root.field._x = _root.field._x + 2;
_root.field2._x = _root.field2._x + 2;
_root.bg_mc._x = _root.bg_mc._x + 2;
_root.container_mc._x = _root.container_mc._x + 2;
Symbol 561 MovieClip Frame 3
_root.field._x = _root.field._x - 2;
_root.field2._x = _root.field2._x - 2;
_root.bg_mc._x = _root.bg_mc._x - 2;
_root.container_mc._x = _root.container_mc._x - 2;
Symbol 561 MovieClip Frame 4
_root.field._x = _root.field._x + 2;
_root.field2._x = _root.field2._x + 2;
_root.container_mc._x = _root.container_mc._x + 2;
Symbol 561 MovieClip Frame 5
_root.field._x = _root.field._x - 2;
_root.field2._x = _root.field2._x - 2;
_root.container_mc._x = _root.container_mc._x - 2;
Symbol 566 MovieClip Frame 6
stop();
Symbol 571 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 577 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 1
stop();
Instance of Symbol 571 MovieClip "tryagainbtn" in Symbol 581 MovieClip Frame 1
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 574 MovieClip "nextbtn" in Symbol 581 MovieClip Frame 1
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 577 MovieClip "menubtn" in Symbol 581 MovieClip Frame 1
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 530 MovieClip in Symbol 581 MovieClip Frame 3
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
_root.gunshot.start(0, 1);
}
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Symbol 593 MovieClip Frame 9
stop();
Symbol 601 MovieClip Frame 8
stop();
Symbol 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 2
stop();
Symbol 603 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 2
chain1.play();
chain2.play();
chain3.play();
chain4.play();
Instance of Symbol 562 MovieClip in Symbol 603 MovieClip Frame 2
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Symbol 603 MovieClip Frame 54
chain1.stop();
chain2.stop();
chain3.stop();
chain4.stop();
Symbol 603 MovieClip Frame 56
if (_root.retrypressed) {
_root.play_level(_root.level_to_play);
_root.flashblack.swapDepths(_root.getNextHighestDepth());
gotoAndStop (1);
_root.retrypressed = false;
}
Symbol 603 MovieClip Frame 57
stop();
_quality = "HIGH";
saveonce = false;
_root.unlocknumber = 0;
savelevel = 0;
savelevelprev = 0;
playedonce = false;
Mouse.show();
buttoncontainer.onEnterFrame = function () {
saveleveltxt.text = savelevel;
unlock2.text = _root.title.cover2.unlock;
thislevelenemies = _root.mobs_destroyed - _root.hostageskilled;
modtext.text = (thislevelenemies + "/") + _root.totalratio;
modtext2.text = (_root.hostageskilled + "/") + _root.hostages;
moddestext.text = _root.number_of_mobs;
scoretxt.text = _root.score;
totalscoretxt.text = _root.totalscore + _root.score;
_root.totalscore2 = _root.totalscore + _root.score;
_root.totalratio = _root.number_of_mobs - _root.hostages;
if (_root.mobs_destroyed >= _root.mobs_to_destroy) {
if ((_root.mobs_destroyed / _root.totalratio) >= 0) {
medalcontainer.container2.medal_mc.gotoAndStop(1);
}
if (((_root.mobs_destroyed / _root.totalratio) >= 0.2) && (!_root.lose_anyway)) {
medalcontainer.container2.medal_mc.gotoAndStop(2);
medalcontainer.gotoAndStop(2);
_root.unlocknumber = 1;
_root.score = 750;
}
if (((_root.mobs_destroyed / _root.totalratio) >= 0.4) && (!_root.lose_anyway)) {
medalcontainer.container2.medal_mc.gotoAndStop(3);
medalcontainer.gotoAndStop(2);
_root.unlocknumber = 2;
_root.score = 1500;
}
if (((_root.level_to_play == 12) || (_root.level_to_play == 26)) || (_root.level_to_play == 19)) {
if (((_root.mobs_destroyed / _root.totalratio) >= 0.7) && (!_root.lose_anyway)) {
medalcontainer.container2.medal_mc.gotoAndStop(4);
medalcontainer.gotoAndStop(2);
_root.unlocknumber = 3;
_root.score = 3000;
}
} else if ((_root.level_to_play == 25) || (_root.level_to_play == 21)) {
if (((_root.mobs_destroyed / _root.totalratio) >= 0.5) && (!_root.lose_anyway)) {
medalcontainer.container2.medal_mc.gotoAndStop(4);
medalcontainer.gotoAndStop(2);
_root.unlocknumber = 3;
_root.score = 3000;
}
} else if (((_root.mobs_destroyed / _root.totalratio) >= 0.85) && (!_root.lose_anyway)) {
medalcontainer.container2.medal_mc.gotoAndStop(4);
medalcontainer.gotoAndStop(2);
_root.unlocknumber = 3;
_root.score = 3000;
}
}
if ((_root.mobs_destroyed < _root.mobs_to_destroy) || (_root.lose_anyway)) {
buttoncontainer.gotoAndStop(2);
_root.score = 0;
} else {
_root.saveUnlock();
_root.saveMedal();
if (_root.level_to_play < 29) {
buttoncontainer.gotoAndStop(1);
} else {
buttoncontainer.gotoAndStop(3);
}
}
};
buttoncontainer.menubtn.tabEnabled = false;
buttoncontainer.menubtn.onRelease = function () {
_root.field.removeMovieClip();
_root.field2.removeMovieClip();
gotoAndStop (1);
_root.gotoAndStop("title");
};
buttoncontainer.tryagainbtn.tabEnabled = false;
buttoncontainer.tryagainbtn.onRelease = function () {
_root.play_level(_root.level_to_play);
_root.flashblack.swapDepths(_root.getNextHighestDepth());
Mouse.hide();
gotoAndStop (1);
};
buttoncontainer.nextbtn.tabEnabled = false;
buttoncontainer.nextbtn.onRelease = function () {
Mouse.hide();
if (_root.level_to_play != 31) {
if ((_root.mobs_destroyed >= _root.mobs_to_destroy) && (!_root.lose_anyway)) {
_root.level_to_play++;
_root.play_level(_root.level_to_play);
gotoAndStop (1);
}
} else {
_root.gotoAndStop(3);
}
};
Instance of Symbol 407 MovieClip in Symbol 603 MovieClip Frame 57
on (release) {
_root.sendscore = true;
_root.wavecomplete.swapDepths(777);
_root.sendScore2();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Symbol 607 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 3
chain1.play();
chain2.play();
chain3.play();
chain4.play();
Symbol 607 MovieClip Frame 62
gotoAndStop (1);