Frame 1
stop();
PLAYERNAME = "< Type Name Here >";
Frame 3
stop();
Mouse.show();
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1465;
__top10_send__.kid = "UZDFRY";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
Scores = new Array(10);
Names = new Array(10);
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root["Names" + (i - 1)] = String(__top10_receive__["name" + i]);
_root["Scores" + (i - 1)] = int(__top10_receive__["score" + i]);
i++;
}
} else {
_root["Names" + (i - 1)] = "Not Found...";
_root["Scores" + (i - 1)] = 0;
}
};
Frame 4
stop();
boarder.swapDepths(100000);
Cursor.swapDepths(100001);
Cursor.health.gotoAndStop(100);
WIDTH = (HEIGHT = 530);
pWIDTH = (pHEIGHT = 490);
CENTER = 265;
PADDING = 50;
BOARDER = 20;
LEFT = (UP = (RIGHT = (DOWN = false)));
BombTimer = 0;
score = 0;
Etimer1 = 0;
Etimer2 = 0;
Etimer3 = 0;
Etimer4 = 0;
Etimer5 = 0;
bombs = 3;
lastScore = 0;
Avatar.weaponLevel = 1;
onEnterFrame = function () {
if (int(score / 10000) > int(lastScore / 10000)) {
SpawnFX(Avatar._x, Avatar._y, "ID_bomb+");
bombs++;
}
if ((lastScore <= 750) && (score > 750)) {
Avatar.weaponLevel = 2;
SpawnFX(Avatar._x, Avatar._y, "ID_gun+");
}
if ((lastScore <= 1500) && (score > 1500)) {
Avatar.weaponLevel = 3;
SpawnFX(Avatar._x, Avatar._y, "ID_gun+");
}
if ((lastScore <= 5000) && (score > 5000)) {
Avatar.weaponLevel = 4;
SpawnFX(Avatar._x, Avatar._y, "ID_gun+");
}
if ((lastScore <= 10000) && (score > 10000)) {
Avatar.weaponLevel = 5;
SpawnFX(Avatar._x, Avatar._y, "ID_gun+");
}
if ((lastScore <= 25000) && (score > 25000)) {
Avatar.weaponLevel = 6;
SpawnFX(Avatar._x, Avatar._y, "ID_gun+");
}
lastScore = score;
if (Avatar.HP > 75) {
SelectTrack(1);
} else if (Avatar.HP > 50) {
SelectTrack(2);
} else if (Avatar.HP > 20) {
SelectTrack(3);
} else {
SelectTrack(4);
}
if (Avatar.HP <= 0) {
Avatar.dX = (Avatar.dY = 0);
_root.attachMovie("ID_gameover", "gOver", 100001);
gOver._x = (gOver._y = CENTER);
onEnterFrame = (onMouseMove = (onMouseDown = (onMouseUp = null)));
Avatar.state = "die";
Mouse.show();
}
if (((bombs > 0) && (BombTimer <= 0)) && (Key.isDown(32))) {
bombs--;
SpawnFX(Avatar._x, Avatar._y, "ID_Bomb");
BombTimer = 30;
} else if (BombTimer > 0) {
BombTimer--;
}
if (Key.isDown(37) || (Key.isDown(65))) {
LEFT = true;
} else {
LEFT = false;
}
if (Key.isDown(39) || (Key.isDown(68))) {
RIGHT = true;
} else {
RIGHT = false;
}
if (Key.isDown(38) || (Key.isDown(87))) {
UP = true;
} else {
UP = false;
}
if (Key.isDown(40) || (Key.isDown(83))) {
DOWN = true;
} else {
DOWN = false;
}
if (Etimer1 <= 0) {
score++;
Avatar.HP = Avatar.HP - 1.5;
_X_ = BOARDER + random(pWIDTH);
_Y_ = BOARDER + random(pHEIGHT);
SpawnEnemy1(_X_, _Y_);
if (random(4) == 0) {
SpawnEnemy1(_X_, _Y_);
}
Etimer1 = 20 + random(30);
} else {
Etimer1--;
}
if ((score > 100) && (Etimer2 <= 0)) {
SpawnEnemy2(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy2(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy2(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
Etimer2 = 75 + random(30);
} else if (Etimer2 > 0) {
Etimer2--;
}
if ((score > 250) && (Etimer3 <= 0)) {
_X_ = BOARDER + random(pWIDTH);
_Y_ = BOARDER + random(pHEIGHT);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
Etimer3 = 175 + random(30);
} else if (Etimer3 > 0) {
Etimer3--;
}
if ((score > 500) && (Etimer4 <= 0)) {
_X_ = BOARDER + random(pWIDTH);
_Y_ = BOARDER + random(pHEIGHT);
SpawnEnemy4(_X_, _Y_);
SpawnEnemy4(_X_, _Y_);
SpawnEnemy4(_X_, _Y_);
SpawnEnemy4(_X_, _Y_);
Etimer4 = 300 + random(30);
} else if (Etimer4 > 0) {
Etimer4--;
}
if ((score > 1000) && (Etimer5 <= 0)) {
SpawnEnemy5(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy5(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
Etimer5 = 450 + random(30);
} else if (Etimer5 > 0) {
Etimer5--;
}
if ((score > 2000) && (random(500) == 0)) {
_X_ = BOARDER + random(pWIDTH);
_Y_ = BOARDER + random(pHEIGHT);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
}
if ((score > 5000) && (random(600) == 0)) {
SpawnEnemy1(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy2(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy3(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy4(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy5(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
}
if ((score > 10000) && (random(700) == 0)) {
SpawnEnemy1(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy2(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy3(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy4(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy5(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy1(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy2(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy3(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy4(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy5(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
}
if ((score > 25000) && (random(500) == 0)) {
_X_ = BOARDER + random(pWIDTH);
_Y_ = BOARDER + random(pHEIGHT);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy3(_X_, _Y_);
SpawnEnemy5(_X_, _Y_);
SpawnEnemy5(_X_, _Y_);
SpawnEnemy5(_X_, _Y_);
}
if ((score > 50000) && (random(500) == 0)) {
SpawnEnemy5(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy5(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy5(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
}
if ((score > 100000) && (random(100) == 0)) {
SpawnEnemy2(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
}
if ((score > 150000) && (random(175) == 0)) {
SpawnEnemy3(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
}
if ((score > 200000) && (random(300) == 0)) {
SpawnEnemy4(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
}
if ((score > 500000) && (random(450) == 0)) {
SpawnEnemy5(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
}
if ((score > 1000000) && (random(450) == 0)) {
SpawnEnemy5(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy4(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy5(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
SpawnEnemy4(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
}
};
Avatar.acceleration = 4;
Avatar.maxSpeed = 10;
Avatar.xSpeed = (Avatar.ySpeed = 0);
Avatar.dX = (Avatar.dY = 0);
Avatar.state = "idle";
Avatar.fireRate = 3;
Avatar.fireTimer = 0;
Avatar.missileRate = 3;
Avatar.missileTimer = 0;
Avatar._x = (Avatar._y = CENTER);
Avatar.weaponLevel = 1;
Avatar.HP = 100;
Avatar.onEnterFrame = function () {
if (this.HP > 100) {
this.HP = 100;
}
if (Cursor.health._currentframe > this.HP) {
Cursor.health.prevFrame();
}
if (Cursor.health._currentframe < this.HP) {
Cursor.health.nextFrame();
}
this.gotoAndStop(this.state);
switch (this.state) {
case "idle" :
if (FIRING) {
this.fireTimer--;
if (this.fireTimer < 0) {
this.missileTimer--;
if (this.missileTimer <= 0) {
this.missileTimer = this.missileRate;
if (this.weaponLevel >= 6) {
SpawnBullet(this._x, this._y, 9);
}
if (this.weaponLevel >= 4) {
SpawnBullet(this._x, this._y, 8);
}
if (this.weaponLevel >= 2) {
SpawnBullet(this._x, this._y, 7);
}
}
SpawnBullet(Avatar._x, Avatar._y, this.weaponLevel);
this.fireTimer = this.fireRate;
}
}
this._rotation = (Math.atan2(_ymouse - this._y, _xmouse - this._x) * 180) / Math.PI;
if (LEFT && (this.xSpeed > (-this.maxSpeed))) {
this.xSpeed = this.xSpeed - this.acceleration;
}
if (RIGHT && (this.xSpeed < this.maxSpeed)) {
this.xSpeed = this.xSpeed + this.acceleration;
}
if (!(LEFT || (RIGHT))) {
this.xSpeed = this.xSpeed * 0.8;
}
if (UP && (this.ySpeed > (-this.maxSpeed))) {
this.ySpeed = this.ySpeed - this.acceleration;
}
if (DOWN && (this.ySpeed < this.maxSpeed)) {
this.ySpeed = this.ySpeed + this.acceleration;
}
if (!(UP || (DOWN))) {
this.ySpeed = this.ySpeed * 0.8;
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this.dX = (CENTER - this._x) * 0.4;
this._x = this._x + this.dX;
this.dY = (CENTER - this._y) * 0.4;
this._y = this._y + this.dY;
break;
case "hit" :
this._rotation = (Math.atan2(_ymouse - this._y, _xmouse - this._x) * 180) / Math.PI;
if (LEFT && (this.xSpeed > (-this.maxSpeed))) {
this.xSpeed = this.xSpeed - this.acceleration;
}
if (RIGHT && (this.xSpeed < this.maxSpeed)) {
this.xSpeed = this.xSpeed + this.acceleration;
}
if (!(LEFT || (RIGHT))) {
this.xSpeed = this.xSpeed * 0.8;
}
if (UP && (this.ySpeed > (-this.maxSpeed))) {
this.ySpeed = this.ySpeed - this.acceleration;
}
if (DOWN && (this.ySpeed < this.maxSpeed)) {
this.ySpeed = this.ySpeed + this.acceleration;
}
if (!(UP || (DOWN))) {
this.ySpeed = this.ySpeed * 0.8;
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this.dX = (CENTER - this._x) * 0.4;
this._x = this._x + this.dX;
this.dY = (CENTER - this._y) * 0.4;
this._y = this._y + this.dY;
if (this.sprite._currentframe != this.sprite._totalframes) {
break;
}
this.state = "idle";
}
};
AvatarCollide = function (X, Y, R) {
dX = X - Avatar._x;
dY = Y - Avatar._y;
return(((dX * dX) + (dY * dY)) < (R * R));
};
HurtAvatar = function (AMNT) {
if (Avatar.state == "idle") {
Avatar.state = "hit";
Avatar.HP = Avatar.HP - AMNT;
}
};
EnemiesDepth = 5000;
enemiesMax = 100;
Enemies = new Array(enemiesMax);
i = 0;
while (i < enemiesMax) {
Enemies[i] = 0;
i++;
}
SpawnEnemy1 = function (X, Y) {
INDEX = -1;
i = 0;
while (i < enemiesMax) {
if (Enemies[i] == 0) {
INDEX = i;
break;
}
i++;
}
if (INDEX == -1) {
return(undefined);
}
_root.attachMovie("ID_enemy1", "MC_ENEMY_" + INDEX, EnemiesDepth + INDEX);
Enemies[INDEX] = (PTR = _root["MC_ENEMY_" + INDEX]);
PTR._x = X;
PTR._y = Y;
if ((Math.pow(X - Avatar._x, 2) + Math.pow(Y - Avatar._y, 2)) < 10000) {
PTR._x = PTR._x + (pWIDTH * 0.3);
}
PTR.RADIUS = 30;
PTR.INDEX = INDEX;
PTR.state = "idle";
PTR.angle = (random(360) * Math.PI) / 180;
PTR.speed = 4;
PTR.xSpeed = (PTR.ySpeed = 0);
PTR.onUnload = function () {
Enemies[this.INDEX] = 0;
};
PTR.onEnterFrame = function () {
this._x = this._x + Avatar.dX;
this._y = this._y + Avatar.dY;
if (this._x < BOARDER) {
this._x = this._x + pWIDTH;
}
if (this._x > (WIDTH - BOARDER)) {
this._x = this._x - pWIDTH;
}
if (this._y < BOARDER) {
this._y = this._y + pHEIGHT;
}
if (this._y > (HEIGHT - BOARDER)) {
this._y = this._y - pHEIGHT;
}
this.gotoAndStop(this.state);
switch (this.state) {
case "idle" :
if (HitBullet(this, this.RADIUS)) {
this.state = "die";
}
this.wantX = Math.cos(this.angle) * this.speed;
this.wantY = Math.sin(this.angle) * this.speed;
this.xSpeed = this.xSpeed + ((this.wantX - this.xSpeed) * 0.1);
this.ySpeed = this.ySpeed + ((this.wantY - this.ySpeed) * 0.1);
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (random(100) == 0) {
this.angle = (random(360) * Math.PI) / 180;
this.speed = 4;
}
if (AvatarCollide(this._x, this._y, this.RADIUS)) {
HurtAvatar(3);
this.state = "die";
}
break;
case "die" :
if (this.sprite._currentframe == 2) {
score = score + 10;
if (random(10) == 0) {
SpawnHEALTH(this._x, this._y);
}
}
if (this.sprite._currentframe != this.sprite._totalframes) {
break;
}
this.removeMovieClip();
}
};
SpawnFX(PTR._x, PTR._y, "ID_SpawnFX");
};
SpawnEnemy2 = function (X, Y) {
INDEX = -1;
i = 0;
while (i < enemiesMax) {
if (Enemies[i] == 0) {
INDEX = i;
break;
}
i++;
}
if (INDEX == -1) {
return(undefined);
}
_root.attachMovie("ID_enemy2", "MC_ENEMY_" + INDEX, EnemiesDepth + INDEX);
Enemies[INDEX] = (PTR = _root["MC_ENEMY_" + INDEX]);
PTR._x = X;
PTR._y = Y;
if ((Math.pow(X - Avatar._x, 2) + Math.pow(Y - Avatar._y, 2)) < 10000) {
PTR._x = PTR._x + (pWIDTH * 0.3);
}
PTR.RADIUS = 30;
PTR.INDEX = INDEX;
PTR.state = "idle";
PTR.angle = (random(360) * Math.PI) / 180;
PTR.speed = 6;
PTR.xSpeed = (PTR.ySpeed = 0);
PTR.health = 3;
PTR.onUnload = function () {
Enemies[this.INDEX] = 0;
};
PTR.onEnterFrame = function () {
this._x = this._x + Avatar.dX;
this._y = this._y + Avatar.dY;
if (this._x < BOARDER) {
this._x = this._x + pWIDTH;
}
if (this._x > (WIDTH - BOARDER)) {
this._x = this._x - pWIDTH;
}
if (this._y < BOARDER) {
this._y = this._y + pHEIGHT;
}
if (this._y > (HEIGHT - BOARDER)) {
this._y = this._y - pHEIGHT;
}
this.gotoAndStop(this.state);
switch (this.state) {
case "idle" :
HIT = HitBullet(this, this.RADIUS);
if (HIT > 0) {
this.health = this.health - HIT;
this.state = "hit";
}
if (random(10) == 0) {
this.angle = Math.atan2(Avatar._y - this._y, Avatar._x - this._x);
}
this.wantX = Math.cos(this.angle) * this.speed;
this.wantY = Math.sin(this.angle) * this.speed;
this.xSpeed = this.xSpeed + ((this.wantX - this.xSpeed) * 0.1);
this.ySpeed = this.ySpeed + ((this.wantY - this.ySpeed) * 0.1);
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (random(100) == 0) {
this.angle = (random(360) * Math.PI) / 180;
}
if (this.health <= 0) {
this.state = "die";
}
if (AvatarCollide(this._x, this._y, this.RADIUS)) {
HurtAvatar(6);
this.state = "die";
}
break;
case "hit" :
if (this.sprite._currentframe == this.sprite._totalframes) {
this.state = "idle";
}
this.health = this.health - HitBullet(this, this.RADIUS);
if (this.health <= 0) {
this.state = "die";
}
break;
case "die" :
if (this.sprite._currentframe == 2) {
score = score + 20;
if (random(10) == 0) {
SpawnHEALTH(this._x, this._y);
}
}
if (this.sprite._currentframe != this.sprite._totalframes) {
break;
}
this.removeMovieClip();
}
};
SpawnFX(PTR._x, PTR._y, "ID_SpawnFX");
};
SpawnEnemy3 = function (X, Y) {
INDEX = -1;
i = 0;
while (i < enemiesMax) {
if (Enemies[i] == 0) {
INDEX = i;
break;
}
i++;
}
if (INDEX == -1) {
return(undefined);
}
_root.attachMovie("ID_enemy3", "MC_ENEMY_" + INDEX, EnemiesDepth + INDEX);
Enemies[INDEX] = (PTR = _root["MC_ENEMY_" + INDEX]);
PTR._x = X;
PTR._y = Y;
if ((Math.pow(X - Avatar._x, 2) + Math.pow(Y - Avatar._y, 2)) < 10000) {
PTR._x = PTR._x + (pWIDTH * 0.3);
}
PTR.RADIUS = 25;
PTR.INDEX = INDEX;
PTR.state = "idle";
PTR.angle = (random(360) * Math.PI) / 180;
PTR.speed = 10;
PTR.xSpeed = (PTR.ySpeed = 0);
PTR.health = 5;
PTR.onUnload = function () {
Enemies[this.INDEX] = 0;
};
PTR.onEnterFrame = function () {
this._x = this._x + Avatar.dX;
this._y = this._y + Avatar.dY;
if (this._x < BOARDER) {
this._x = this._x + pWIDTH;
}
if (this._x > (WIDTH - BOARDER)) {
this._x = this._x - pWIDTH;
}
if (this._y < BOARDER) {
this._y = this._y + pHEIGHT;
}
if (this._y > (HEIGHT - BOARDER)) {
this._y = this._y - pHEIGHT;
}
this.gotoAndStop(this.state);
switch (this.state) {
case "idle" :
HIT = HitBullet(this, this.RADIUS);
if (HIT > 0) {
this.health = this.health - HIT;
this.state = "hit";
}
this.angle = Math.atan2(Avatar._y - this._y, Avatar._x - this._x);
this.wantX = Math.cos(this.angle) * this.speed;
this.wantY = Math.sin(this.angle) * this.speed;
this.xSpeed = this.xSpeed + ((this.wantX - this.xSpeed) * 0.05);
this.ySpeed = this.ySpeed + ((this.wantY - this.ySpeed) * 0.05);
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (random(100) == 0) {
this.angle = (random(360) * Math.PI) / 180;
}
if (this.health <= 0) {
this.state = "die";
}
if (AvatarCollide(this._x, this._y, this.RADIUS)) {
HurtAvatar(9);
this.state = "die";
}
break;
case "hit" :
if (this.sprite._currentframe == this.sprite._totalframes) {
this.state = "idle";
}
this.health = this.health - HitBullet(this, this.RADIUS);
if (this.health <= 0) {
this.state = "die";
}
break;
case "die" :
if (this.sprite._currentframe == 2) {
score = score + 40;
if (random(10) == 0) {
SpawnHEALTH(this._x, this._y);
}
}
if (this.sprite._currentframe != this.sprite._totalframes) {
break;
}
this.removeMovieClip();
}
};
SpawnFX(PTR._x, PTR._y, "ID_SpawnFX");
};
SpawnEnemy4 = function (X, Y) {
INDEX = -1;
i = 0;
while (i < enemiesMax) {
if (Enemies[i] == 0) {
INDEX = i;
break;
}
i++;
}
if (INDEX == -1) {
return(undefined);
}
_root.attachMovie("ID_enemy4", "MC_ENEMY_" + INDEX, EnemiesDepth + INDEX);
Enemies[INDEX] = (PTR = _root["MC_ENEMY_" + INDEX]);
PTR._x = X;
PTR._y = Y;
if ((Math.pow(X - Avatar._x, 2) + Math.pow(Y - Avatar._y, 2)) < 10000) {
PTR._x = PTR._x + (pWIDTH * 0.3);
}
PTR.RADIUS = 15;
PTR.INDEX = INDEX;
PTR.state = "idle";
PTR.angle = (random(360) * Math.PI) / 180;
PTR.speed = 13;
PTR.xSpeed = (PTR.ySpeed = 0);
PTR.health = 3;
PTR.onUnload = function () {
Enemies[this.INDEX] = 0;
};
PTR.onEnterFrame = function () {
this._x = this._x + Avatar.dX;
this._y = this._y + Avatar.dY;
if (this._x < BOARDER) {
this._x = this._x + pWIDTH;
}
if (this._x > (WIDTH - BOARDER)) {
this._x = this._x - pWIDTH;
}
if (this._y < BOARDER) {
this._y = this._y + pHEIGHT;
}
if (this._y > (HEIGHT - BOARDER)) {
this._y = this._y - pHEIGHT;
}
this.gotoAndStop(this.state);
switch (this.state) {
case "idle" :
HIT = HitBullet(this, this.RADIUS);
if (HIT > 0) {
this.health = this.health - HIT;
this.state = "hit";
}
this.angle = Math.atan2(Avatar._y - this._y, Avatar._x - this._x);
this.wantX = Math.cos(this.angle) * this.speed;
this.wantY = Math.sin(this.angle) * this.speed;
this.xSpeed = this.xSpeed + ((this.wantX - this.xSpeed) * 0.1);
this.ySpeed = this.ySpeed + ((this.wantY - this.ySpeed) * 0.1);
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (random(100) == 0) {
this.angle = (random(360) * Math.PI) / 180;
}
if (this.health <= 0) {
this.state = "die";
}
if (AvatarCollide(this._x, this._y, this.RADIUS)) {
HurtAvatar(11);
this.state = "die";
}
break;
case "hit" :
if (this.sprite._currentframe == this.sprite._totalframes) {
this.state = "idle";
}
this.health = this.health - HitBullet(this, this.RADIUS);
if (this.health <= 0) {
this.state = "die";
}
break;
case "die" :
if (this.sprite._currentframe == 2) {
score = score + 10;
}
if (this.sprite._currentframe != this.sprite._totalframes) {
break;
}
this.removeMovieClip();
}
};
SpawnFX(PTR._x, PTR._y, "ID_SpawnFX");
};
SpawnEnemy5 = function (X, Y) {
INDEX = -1;
i = 0;
while (i < enemiesMax) {
if (Enemies[i] == 0) {
INDEX = i;
break;
}
i++;
}
if (INDEX == -1) {
return(undefined);
}
_root.attachMovie("ID_enemy5", "MC_ENEMY_" + INDEX, EnemiesDepth + INDEX);
Enemies[INDEX] = (PTR = _root["MC_ENEMY_" + INDEX]);
PTR._x = X;
PTR._y = Y;
if ((Math.pow(X - Avatar._x, 2) + Math.pow(Y - Avatar._y, 2)) < 10000) {
PTR._x = PTR._x + (pWIDTH * 0.3);
}
PTR.RADIUS = 35;
PTR.INDEX = INDEX;
PTR.state = "idle";
PTR.angle = (random(360) * Math.PI) / 180;
PTR.speed = 4;
PTR.xSpeed = (PTR.ySpeed = 0);
PTR.health = 40;
PTR.onUnload = function () {
Enemies[this.INDEX] = 0;
};
PTR.onEnterFrame = function () {
this._rotation = (Math.atan2(this.ySpeed, this.xSpeed) * 180) / Math.PI;
this._x = this._x + Avatar.dX;
this._y = this._y + Avatar.dY;
if (this._x < BOARDER) {
this._x = this._x + pWIDTH;
}
if (this._x > (WIDTH - BOARDER)) {
this._x = this._x - pWIDTH;
}
if (this._y < BOARDER) {
this._y = this._y + pHEIGHT;
}
if (this._y > (HEIGHT - BOARDER)) {
this._y = this._y - pHEIGHT;
}
this.gotoAndStop(this.state);
switch (this.state) {
case "idle" :
if (random(40) == 0) {
this.state = "shoot";
}
HIT = HitBullet(this, this.RADIUS);
if (HIT > 0) {
this.health = this.health - HIT;
this.state = "hit";
}
this.angle = Math.atan2(Avatar._y - this._y, Avatar._x - this._x);
this.wantX = Math.cos(this.angle) * this.speed;
this.wantY = Math.sin(this.angle) * this.speed;
this.xSpeed = this.xSpeed + ((this.wantX - this.xSpeed) * 0.1);
this.ySpeed = this.ySpeed + ((this.wantY - this.ySpeed) * 0.1);
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (random(100) == 0) {
this.angle = (random(360) * Math.PI) / 180;
}
if (this.health <= 0) {
this.state = "die";
}
if (AvatarCollide(this._x, this._y, this.RADIUS)) {
HurtAvatar(15);
this.state = "die";
}
break;
case "shoot" :
if (this.sprite._currentframe == 1) {
SpawnEnemyBullet(this._x + (Math.cos(this.angle + 0.3) * 25), this._y + (Math.sin(this.angle + 0.3) * 25), this._rotation);
}
if (this.sprite._currentframe == 8) {
SpawnEnemyBullet(this._x + (Math.cos(this.angle - 0.3) * 25), this._y + (Math.sin(this.angle - 0.3) * 25), this._rotation);
}
if (this.sprite._currentframe == this.sprite._totalframes) {
this.state = "idle";
}
HIT = HitBullet(this, this.RADIUS);
if (HIT > 0) {
this.health = this.health - HIT;
this.state = "hit";
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
break;
case "hit" :
if (this.sprite._currentframe == this.sprite._totalframes) {
this.state = "idle";
}
this.health = this.health - HitBullet(this, this.RADIUS);
if (this.health <= 0) {
this.state = "die";
}
break;
case "die" :
if (this.sprite._currentframe == 2) {
if (random(3) <= 2) {
SpawnHEALTH(this._x, this._y);
}
score = score + 100;
}
if (this.sprite._currentframe != this.sprite._totalframes) {
break;
}
this.removeMovieClip();
}
};
SpawnFX(PTR._x, PTR._y, "ID_SpawnFX");
};
SpawnEnemyBullet = function (X, Y, R) {
INDEX = -1;
i = 0;
while (i < enemiesMax) {
if (Enemies[i] == 0) {
INDEX = i;
break;
}
i++;
}
if (INDEX == -1) {
return(undefined);
}
_root.attachMovie("ID_bulletEnemy", "MC_ENEMY_BULLET_" + INDEX, EnemiesDepth + INDEX);
Enemies[INDEX] = (PTR = _root["MC_ENEMY_BULLET_" + INDEX]);
PTR._x = X;
PTR._y = Y;
PTR._rotation = R;
PTR.angle = (PTR._rotation * Math.PI) / 180;
PTR.speed = 15;
PTR.xSpeed = Math.cos(PTR.angle) * PTR.speed;
PTR.ySpeed = Math.sin(PTR.angle) * PTR.speed;
PTR.timer = 30;
PTR.state = "idle";
PTR.RADIUS = 10;
PTR.INDEX = INDEX;
PTR.onUnload = function () {
Enemies[this.INDEX] = 0;
};
PTR.onEnterFrame = function () {
this._x = this._x + Avatar.dX;
this._y = this._y + Avatar.dY;
if (this._x < BOARDER) {
this._x = this._x + pWIDTH;
}
if (this._x > (WIDTH - BOARDER)) {
this._x = this._x - pWIDTH;
}
if (this._y < BOARDER) {
this._y = this._y + pHEIGHT;
}
if (this._y > (HEIGHT - BOARDER)) {
this._y = this._y - pHEIGHT;
}
this.gotoAndStop(this.state);
switch (this.state) {
case "idle" :
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (AvatarCollide(this._x, this._y, this.RADIUS)) {
HurtAvatar(4);
this.state = "die";
}
this.timer--;
if (this.timer <= 0) {
this.removeMovieClip();
}
break;
case "die" :
if (this.sprite._currentframe != this.sprite._totalframes) {
break;
}
this.removeMovieClip();
}
};
};
BulletsDepth = 6000;
BulletsMax = 100;
Bullets = new Array(BulletsMax);
i = 0;
while (i < BulletsMax) {
Bullets[i] = 0;
i++;
}
SpawnBullet = function (X, Y, LEVEL) {
INDEX = -1;
i = 0;
while (i < BulletsMax) {
if (Bullets[i] == 0) {
INDEX = i;
break;
}
i++;
}
if (INDEX == -1) {
return(undefined);
}
if (LEVEL > 6) {
_root.attachMovie("ID_bulletH", "MC_BULLET_" + INDEX, BulletsDepth + INDEX);
} else {
_root.attachMovie("ID_bullet", "MC_BULLET_" + INDEX, BulletsDepth + INDEX);
}
Bullets[INDEX] = (PTR = _root["MC_BULLET_" + INDEX]);
PTR._x = X;
PTR._y = Y;
PTR._rotation = Avatar._rotation;
PTR.angle = (PTR._rotation * Math.PI) / 180;
PTR.speed = 20;
PTR.xSpeed = Math.cos(PTR.angle) * PTR.speed;
PTR.ySpeed = Math.sin(PTR.angle) * PTR.speed;
PTR.timer = 20;
PTR.INDEX = INDEX;
PTR.state = "idle";
PTR.level = LEVEL;
PTR.sprite.gotoAndStop(PTR.level);
if (PTR.level > 6) {
PTR.state = "home";
PTR.sprite.gotoAndStop(PTR.level - 6);
PTR.level = PTR.level - 4;
PTR.target = ClosestEnemy(X, Y);
PTR.speed = PTR.speed - (6 - (PTR.level * 2));
}
PTR.onUnload = function () {
Bullets[this.INDEX] = 0;
};
PTR.onEnterFrame = function () {
this.gotoAndStop(this.state);
switch (this.state) {
case "idle" :
this.timer--;
if (this.timer <= 0) {
this.removeMovieClip();
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this._x = this._x + Avatar.dX;
this._y = this._y + Avatar.dY;
if (this._x < BOARDER) {
this._x = this._x + 450;
}
if (this._x > (WIDTH - BOARDER)) {
this._x = this._x - 450;
}
if (this._y < BOARDER) {
this._y = this._y + 450;
}
if (this._y > (HEIGHT - BOARDER)) {
this._y = this._y - 450;
}
break;
case "home" :
this.timer--;
if (this.timer <= 0) {
this.removeMovieClip();
}
if (((this.timer % 2) == 0) && (this.target._name != undefined)) {
this.target = ClosestEnemy(_xmouse, _ymouse);
this.xSpeed = this.xSpeed + ((this.target._x - this._x) * 0.25);
this.ySpeed = this.ySpeed + ((this.target._y - this._y) * 0.25);
this.angle = Math.atan2(this.ySpeed, this.xSpeed);
this._rotation = (this.angle * 180) / Math.PI;
this.xSpeed = Math.cos(this.angle) * this.speed;
this.ySpeed = Math.sin(this.angle) * this.speed;
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this._x = this._x + Avatar.dX;
this._y = this._y + Avatar.dY;
if (this._x < BOARDER) {
this._x = this._x + 450;
}
if (this._x > (WIDTH - BOARDER)) {
this._x = this._x - 450;
}
if (this._y < BOARDER) {
this._y = this._y + 450;
}
if (this._y > (HEIGHT - BOARDER)) {
this._y = this._y - 450;
}
break;
case "die" :
if (this.sprite._currentframe != this.sprite._totalframes) {
break;
}
this.removeMovieClip();
}
};
};
HitBullet = function (MC, RADIUS) {
i = 0;
while (i < BulletsMax) {
if ((Bullets[i] != 0) && (Bullets[i].state != "die")) {
dX = Bullets[i]._x - MC._x;
dY = Bullets[i]._y - MC._y;
if (((dX * dX) + (dY * dY)) < (RADIUS * RADIUS)) {
Bullets[i].state = "die";
return(1 + ((Bullets[i].level - 1) * 0.5));
}
}
i++;
}
return(0);
};
ClosestEnemy = function (X, Y) {
closestEnemy = -1;
i = 0;
while (i < enemiesMax) {
if (Enemies[i] != 0) {
if (closestEnemy == -1) {
closestEnemy = i;
} else if ((Math.pow(Enemies[i]._x - X, 2) + Math.pow(Enemies[i]._y - Y, 2)) < (Math.pow(Enemies[closestEnemy]._x - X, 2) + Math.pow(Enemies[closestEnemy]._y - Y, 2))) {
closestEnemy = i;
}
}
i++;
}
if (closestEnemy == -1) {
return(0);
}
return(Enemies[closestEnemy]);
};
onMouseMove = function () {
Cursor._x = _xmouse;
Cursor._y = _ymouse;
Mouse.hide();
updateAfterEvent();
};
FIRING = false;
onMouseDown = function () {
FIRING = true;
Avatar.fireTimer = 0;
};
onMouseUp = function () {
FIRING = false;
};
FXDepth = 7000;
FXMax = 500;
FX = new Array(FXMax);
i = 0;
while (i < FXMax) {
FX[i] = 0;
i++;
}
SpawnFX = function (X, Y, ID) {
INDEX = -1;
i = 0;
while (i < FXMax) {
if (FX[i] == 0) {
INDEX = i;
break;
}
i++;
}
if (INDEX == -1) {
return(undefined);
}
_root.attachMovie(ID, "MC_FX_" + INDEX, FXDepth + INDEX);
FX[i] = (PTR = _root["MC_FX_" + INDEX]);
PTR.INDEX = INDEX;
PTR._x = X;
PTR._y = Y;
PTR._xscale = (PTR._yscale = 125);
PTR.onUnload = function () {
FX[this.INDEX] = 0;
};
PTR.onEnterFrame = function () {
this._x = this._x + Avatar.dX;
this._y = this._y + Avatar.dY;
if (this._x < BOARDER) {
this._x = this._x + pWIDTH;
}
if (this._x > (WIDTH - BOARDER)) {
this._x = this._x - pWIDTH;
}
if (this._y < BOARDER) {
this._y = this._y + pHEIGHT;
}
if (this._y > (HEIGHT - BOARDER)) {
this._y = this._y - pHEIGHT;
}
if (this._currentframe == this._totalframes) {
this.removeMovieClip();
}
};
};
SpawnHEALTH = function (X, Y) {
INDEX = -1;
i = 0;
while (i < FXMax) {
if (FX[i] == 0) {
INDEX = i;
break;
}
i++;
}
if (INDEX == -1) {
return(undefined);
}
_root.attachMovie("ID_HEALTH", "MC_FX_" + INDEX, FXDepth + INDEX);
FX[i] = (PTR = _root["MC_FX_" + INDEX]);
PTR.INDEX = INDEX;
PTR._x = X;
PTR._y = Y;
PTR.xSpeed = 0;
PTR.ySpeed = 0;
PTR.RADIUS = 20;
PTR.timer = 0;
PTR.onUnload = function () {
FX[this.INDEX] = 0;
};
PTR.onEnterFrame = function () {
this.timer--;
if (this.timer <= 0) {
SpawnFX(this._x, this._y, "ID_HEALTHFX");
this.timer = 1;
}
this.xSpeed = this.xSpeed + ((Avatar._x - this._x) * 0.08);
this.ySpeed = this.ySpeed + ((Avatar._y - this._y) * 0.08);
this.xSpeed = this.xSpeed * 0.85;
this.ySpeed = this.ySpeed * 0.85;
this._x = this._x + (this.xSpeed + Avatar.dX);
this._y = this._y + (this.ySpeed + Avatar.dY);
if (AvatarCollide(this._x, this._y, this.RADIUS)) {
Avatar.HP = Avatar.HP + 10;
this.removeMovieClip();
}
};
};
p_i = 0;
while (p_i < 3) {
SpawnEnemy1(BOARDER + random(pWIDTH), BOARDER + random(pHEIGHT));
p_i++;
}
track1.MUSIC = new Sound(track1);
track1.MUSIC.attachSound("loop1");
track1.MUSIC.start(0, 999999999);
track1.MUSIC.setVolume(100);
track1.onUnload = function () {
this.MUSIC.stop();
};
track2.MUSIC = new Sound(track2);
track2.MUSIC.attachSound("loop2");
track2.MUSIC.start(0, 999999999);
track2.MUSIC.setVolume(0);
track2.onUnload = function () {
this.MUSIC.stop();
};
track3.MUSIC = new Sound(track3);
track3.MUSIC.attachSound("loop3");
track3.MUSIC.start(0, 999999999);
track3.MUSIC.setVolume(0);
track3.onUnload = function () {
this.MUSIC.stop();
};
track4.MUSIC = new Sound(track4);
track4.MUSIC.attachSound("loop4");
track4.MUSIC.start(0, 999999999);
track4.MUSIC.setVolume(0);
track4.onUnload = function () {
this.MUSIC.stop();
};
SelectTrack = function (INDEX) {
if (INDEX == 1) {
FadeIn(track1);
} else {
FadeOut(track1);
}
if (INDEX == 2) {
FadeIn(track2);
} else {
FadeOut(track2);
}
if (INDEX == 3) {
FadeIn(track3);
} else {
FadeOut(track3);
}
if (INDEX == 4) {
FadeIn(track4);
} else {
FadeOut(track4);
}
};
FadeOut = function (MC) {
MC.onEnterFrame = function () {
if (this.MUSIC.getVolume() > 0) {
this.MUSIC.setVolume(this.MUSIC.getVolume() - 10);
} else {
this.onEnterFrame = null;
}
};
};
FadeIn = function (MC) {
MC.onEnterFrame = function () {
if (this.MUSIC.getVolume() < 100) {
this.MUSIC.setVolume(this.MUSIC.getVolume() + 10);
} else {
this.onEnterFrame = null;
}
};
};
Frame 5
onEnterFrame = (onMouseMove = (onMouseDown = (onMouseUp = null)));
Cursor.removeMovieClip();
gOver.removeMovieClip();
boarder.removeMovieClip();
i = 0;
while (i < enemiesMax) {
Enemies[i].removeMovieClip();
i++;
}
i = 0;
while (i < BulletsMax) {
Bullets[i].removeMovieClip();
i++;
}
i = 0;
while (i < FXMax) {
FX[i].removeMovieClip();
i++;
}
track1.MUSIC.stop();
track2.MUSIC.stop();
track3.MUSIC.stop();
track4.MUSIC.stop();
gotoAndStop (3);
Symbol 88 MovieClip Frame 141
gotoAndPlay ("bb");
Symbol 150 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 198 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 219 MovieClip Frame 40
stop();
Symbol 231 Button
on (press) {
_root.play();
}
Symbol 232 Button
on (press) {
play();
}
Instance of Symbol 216 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("play_button");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 235 MovieClip Frame 130
stop();
Symbol 235 MovieClip Frame 154
_root.play();
Symbol 650 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 244 MovieClip Frame 1
stop();
Symbol 396 MovieClip [ID_Bomb] Frame 9
i = 0;
while (i < _root.enemiesMax) {
if (_root.Enemies[i] != 0) {
_root.Enemies[i].removeMovieClip();
}
i++;
}
Symbol 448 Button
on (release) {
if (!CLICK) {
CLICK = true;
_parent.play();
ab20_09 = new LoadVars();
if (_root.PLAYERNAME == "< Type Name Here >") {
ab20_09.z = "Anon";
} else {
ab20_09.z = _root.PLAYERNAME;
}
ab20_09.x = ab20.encodeNum(_root.score);
ab20_09.c = 1465;
ab20_09.v = "UZDFRY";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
}
}
Symbol 449 MovieClip Frame 1
CLICK = false;
Symbol 487 Button
on (press) {
S = 5;
}
on (release) {
S = 0;
}
on (releaseOutside) {
S = 0;
}
Symbol 488 Button
on (press) {
S = -5;
}
on (release) {
S = 0;
}
on (releaseOutside) {
S = 0;
}
Symbol 545 Button
on (release) {
_root.men.play();
}
Symbol 551 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=1465", "_blank");
}
Symbol 556 MovieClip Frame 1
S = 0;
maxY = scores._y;
onEnterFrame = function () {
scores._y = scores._y + S;
if (scores._y < 160) {
scores._y = 160;
}
if (scores._y > maxY) {
scores._y = maxY;
}
};
Instance of Symbol 537 MovieClip in Symbol 556 MovieClip Frame 1
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Instance of Symbol 542 MovieClip in Symbol 556 MovieClip Frame 1
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 557 MovieClip [ID_gameover] Frame 36
stop();
Symbol 557 MovieClip [ID_gameover] Frame 44
_root.play();
Symbol 558 MovieClip Frame 1
stop();
Symbol 582 Button
on (release) {
_root.men.play();
}
Symbol 585 Button
on (release) {
_root.men.play();
}
Symbol 616 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 12
stop();
Symbol 616 MovieClip Frame 21
stop();
Symbol 616 MovieClip Frame 60
_root.nextFrame();
Symbol 620 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 16
stop();