Frame 1
_root._quality = "Medium";
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
_root.menu = new ContextMenu();
_root.menu.hideBuiltInItems();
Frame 2
if (_root.percentLoaded == 100) {
gotoAndStop (3);
} else {
gotoAndPlay (1);
}
Instance of Symbol 29 MovieClip "agmove" in Frame 3
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Frame 4
stop();
Instance of Symbol 45 MovieClip in Frame 4
on (release) {
getURL ("http://coolio-niato.newgrounds.com/", _blank);
}
Frame 5
stop();
Instance of Symbol 83 MovieClip in Frame 5
onClipEvent (load) {
started = 0;
}
onClipEvent (enterFrame) {
started++;
if (started == 15) {
nextx = (Math.random() * (Stage.width - 20)) + 10;
nexty = (Math.random() * (Stage.width - 20)) + 10;
x = 0;
while (x < 25) {
randomint = Math.round(Math.random() * 1000000);
duplicateMovieClip (_root.msquare, "m" + randomint, _root.getNextHighestDepth());
_root["m" + randomint]._x = nextx;
_root["m" + randomint]._y = nexty;
_root["m" + randomint]._alpha = 80;
_root["m" + randomint]._rotation = 15 * x;
_root["m" + randomint].shape.color.gotoAndStop(Math.round((Math.random() * 2) + 1));
x++;
}
started = 0;
}
}
Frame 6
_root.scorevar = 0;
function loseLife(a) {
if (_root.char._alpha == 100) {
_root.life = _root.life - a;
_root.char._alpha = 20;
_root.flash.play();
}
if (_root.life == 0) {
_root.gotoAndStop("lose");
}
}
_root.bulletnum = new Array();
life = 5;
hit = 0;
pause = false;
Instance of Symbol 92 MovieClip "cursor" in Frame 6
onClipEvent (enterFrame) {
if (!_root.pause) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
Instance of Symbol 98 MovieClip "char" in Frame 6
onClipEvent (load) {
Mouse.hide();
stage = 1;
_root.bg.gotoAndStop(1);
click = 0;
clickwait = 0;
spd = 4;
i = 0;
key = 1;
wait = 0;
_root.bullets._x = 0;
_root.bullets._y = 0;
_root.enemies._x = 0;
_root.enemies._y = 0;
tshot = false;
nextx = 0;
nexty = 0;
_root.score = 0;
started = 0;
nextcolor = 1;
llength = 30;
level = 1;
_root.lives.gotoAndStop(_root.life + 1);
alphar = 1;
}
onClipEvent (mouseDown) {
if (!_root.pause) {
click = 1;
}
}
onClipEvent (mouseUp) {
if (!_root.pause) {
click = 0;
clickwait = 1;
}
}
onClipEvent (mouseMove) {
if (!_root.pause) {
Mouse.hide();
xDifference = _x - _root._xmouse;
yDifference = _y - _root._ymouse;
_rotation = ((-Math.atan2(xDifference, yDifference)) / (Math.PI/180));
}
}
onClipEvent (enterFrame) {
if (!_root.pause) {
_root.scorevar = _root.score;
alphar++;
if (alphar >= 2) {
alphar = 0;
}
if (_root.char._alpha < 100) {
if (alphar == 0) {
_root.char._alpha = _root.char._alpha + 4;
} else if (alphar == 1) {
_root.char._alpha - 2;
}
} else {
_root.char._alpha = 100;
}
_root.lives.gotoAndStop(_root.life + 1);
if (started == 0) {
x = 0;
while (x < 25) {
randomint = Math.round(Math.random() * 1000000);
duplicateMovieClip (_root.msquare, "m" + randomint, _root.getNextHighestDepth());
_root["m" + randomint]._x = _x;
_root["m" + randomint]._y = _y;
_root["m" + randomint]._alpha = 80;
_root["m" + randomint]._rotation = 15 * x;
_root["m" + randomint].shape.color.gotoAndStop(1);
x++;
}
started = 1;
}
if (stage == 1) {
_root.instructions.play();
} else if (stage == 2) {
level++;
if (level > (llength * 30)) {
level = 0;
stage++;
wait = 0;
}
wait++;
if (wait == 20) {
nextx = (Math.random() * (Stage.width - 20)) + 10;
nexty = (Math.random() * (Stage.width - 20)) + 10;
nextcolor = 1;
i++;
duplicateMovieClip (_root.scircle, "a" + i, _root.getNextHighestDepth());
_root["a" + i]._x = nextx;
_root["a" + i]._y = nexty;
_root["a" + i].gotoAndPlay(2);
_root["a" + i].circle.gotoAndStop(nextcolor);
}
if (wait == 50) {
i++;
duplicateMovieClip (_root.enemies.cube, "c" + i, _root.enemies.getNextHighestDepth());
_root.enemies["c" + i]._x = nextx;
_root.enemies["c" + i]._y = nexty;
_root.enemies["c" + i].gotoAndStop(nextcolor);
wait = 0;
}
} else if (stage == 3) {
_root.instructions.play();
} else if (stage == 4) {
level++;
if (level > (llength * 30)) {
level = 0;
stage++;
wait = 0;
}
wait++;
if (wait == 15) {
nextx = (Math.random() * (Stage.width - 20)) + 10;
nexty = (Math.random() * (Stage.width - 20)) + 10;
nextcolor = Math.round((Math.random() * 1) + 1);
i++;
duplicateMovieClip (_root.scircle, "a" + i, _root.getNextHighestDepth());
_root["a" + i]._x = nextx;
_root["a" + i]._y = nexty;
_root["a" + i].gotoAndPlay(2);
_root["a" + i].circle.gotoAndStop(nextcolor);
}
if (wait == 45) {
i++;
duplicateMovieClip (_root.enemies.cube, "c" + i, _root.enemies.getNextHighestDepth());
_root.enemies["c" + i]._x = nextx;
_root.enemies["c" + i]._y = nexty;
_root.enemies["c" + i].gotoAndStop(nextcolor);
wait = 0;
}
} else if (stage == 5) {
_root.instructions.play();
} else if (stage == 6) {
level++;
if (level > (llength * 30)) {
level = 0;
stage++;
wait = 0;
}
wait++;
if (wait == 10) {
nextx = (Math.random() * (Stage.width - 20)) + 10;
nexty = (Math.random() * (Stage.width - 20)) + 10;
nextcolor = Math.round((Math.random() * 1) + 1);
i++;
duplicateMovieClip (_root.scircle, "a" + i, _root.getNextHighestDepth());
_root["a" + i]._x = nextx;
_root["a" + i]._y = nexty;
_root["a" + i].gotoAndPlay(2);
_root["a" + i].circle.gotoAndStop(nextcolor);
}
if (wait == 40) {
i++;
if (Math.random() > 0.5) {
duplicateMovieClip (_root.enemies.triangle, "t" + i, _root.enemies.getNextHighestDepth());
_root.enemies["t" + i]._x = nextx;
_root.enemies["t" + i]._y = nexty;
_root.enemies["t" + i].gotoAndStop(nextcolor);
wait = 0;
} else {
duplicateMovieClip (_root.enemies.cube, "c" + i, _root.enemies.getNextHighestDepth());
_root.enemies["c" + i]._x = nextx;
_root.enemies["c" + i]._y = nexty;
_root.enemies["c" + i].gotoAndStop(nextcolor);
wait = 0;
}
}
} else if (stage == 7) {
_root.instructions.play();
} else if (stage == 8) {
level++;
if (level > (llength * 30)) {
level = 0;
stage++;
wait = 0;
_root.instructions.play();
}
wait++;
if (wait == 15) {
nextx = (Math.random() * (Stage.width - 20)) + 10;
nexty = (Math.random() * (Stage.width - 20)) + 10;
nextcolor = Math.round((Math.random() * 2) + 1);
i++;
duplicateMovieClip (_root.scircle, "a" + i, _root.getNextHighestDepth());
_root["a" + i]._x = nextx;
_root["a" + i]._y = nexty;
_root["a" + i].gotoAndPlay(2);
_root["a" + i].circle.gotoAndStop(nextcolor);
}
if (wait == 45) {
i++;
if (Math.random() > 0.6) {
duplicateMovieClip (_root.enemies.triangle, "t" + i, _root.enemies.getNextHighestDepth());
_root.enemies["t" + i]._x = nextx;
_root.enemies["t" + i]._y = nexty;
_root.enemies["t" + i].gotoAndStop(nextcolor);
wait = 0;
} else {
duplicateMovieClip (_root.enemies.cube, "c" + i, _root.enemies.getNextHighestDepth());
_root.enemies["c" + i]._x = nextx;
_root.enemies["c" + i]._y = nexty;
_root.enemies["c" + i].gotoAndStop(nextcolor);
wait = 0;
}
}
} else if (stage == 9) {
level++;
if (level > (llength * 30)) {
level = 0;
stage++;
wait = 0;
_root.instructions.play();
}
wait++;
if (wait == 35) {
nextx = (Math.random() * (Stage.width - 20)) + 10;
nexty = (Math.random() * (Stage.width - 20)) + 10;
nextcolor = Math.round((Math.random() * 2) + 1);
i++;
duplicateMovieClip (_root.scircle, "a" + i, _root.getNextHighestDepth());
_root["a" + i]._x = nextx;
_root["a" + i]._y = nexty;
_root["a" + i].gotoAndPlay(2);
_root["a" + i].circle.gotoAndStop(nextcolor);
}
if (wait == 65) {
i++;
if (Math.random() < 0.33) {
duplicateMovieClip (_root.enemies.triangle, "t" + i, _root.enemies.getNextHighestDepth());
_root.enemies["t" + i]._x = nextx;
_root.enemies["t" + i]._y = nexty;
_root.enemies["t" + i].gotoAndStop(nextcolor);
wait = 0;
} else if (Math.random() < 0.5) {
duplicateMovieClip (_root.enemies.circle, "b" + i, _root.enemies.getNextHighestDepth());
_root.enemies["b" + i]._x = nextx;
_root.enemies["b" + i]._y = nexty;
_root.enemies["b" + i].gotoAndStop(nextcolor);
wait = 0;
} else {
duplicateMovieClip (_root.enemies.cube, "c" + i, _root.enemies.getNextHighestDepth());
_root.enemies["c" + i]._x = nextx;
_root.enemies["c" + i]._y = nexty;
_root.enemies["c" + i].gotoAndStop(nextcolor);
wait = 0;
}
}
} else if (stage == 10) {
wait++;
if (wait == 15) {
nextx = (Math.random() * (Stage.width - 20)) + 10;
nexty = (Math.random() * (Stage.width - 20)) + 10;
nextcolor = Math.round((Math.random() * 2) + 1);
i++;
duplicateMovieClip (_root.scircle, "a" + i, _root.getNextHighestDepth());
_root["a" + i]._x = nextx;
_root["a" + i]._y = nexty;
_root["a" + i].gotoAndPlay(2);
_root["a" + i].circle.gotoAndStop(nextcolor);
}
if (wait == 45) {
i++;
if (Math.random() < 0.33) {
duplicateMovieClip (_root.enemies.triangle, "t" + i, _root.enemies.getNextHighestDepth());
_root.enemies["t" + i]._x = nextx;
_root.enemies["t" + i]._y = nexty;
_root.enemies["t" + i].gotoAndStop(nextcolor);
wait = 0;
} else if (Math.random() < 0.5) {
duplicateMovieClip (_root.enemies.circle, "b" + i, _root.enemies.getNextHighestDepth());
_root.enemies["b" + i]._x = nextx;
_root.enemies["b" + i]._y = nexty;
_root.enemies["b" + i].gotoAndStop(nextcolor);
wait = 0;
} else {
duplicateMovieClip (_root.enemies.cube, "c" + i, _root.enemies.getNextHighestDepth());
_root.enemies["c" + i]._x = nextx;
_root.enemies["c" + i]._y = nexty;
_root.enemies["c" + i].gotoAndStop(nextcolor);
wait = 0;
}
}
if (_root.song._currentframe > 6190) {
stage = 11;
}
} else if (stage == 11) {
_root.instructions.play();
}
if (Key.isDown(65)) {
_root.bg.gotoAndStop(1);
this.gotoAndStop(1);
key = 1;
} else if (Key.isDown(83)) {
if (stage > 2) {
_root.bg.gotoAndStop(2);
this.gotoAndStop(2);
key = 2;
}
} else if (Key.isDown(68)) {
if (stage > 6) {
_root.bg.gotoAndStop(3);
this.gotoAndStop(3);
key = 3;
}
}
if (((_x - _root._xmouse) > 0.5) or ((_x - _root._xmouse) < -0.5)) {
if (((_y - _root._ymouse) > 0.5) or ((_y - _root._ymouse) < -0.5)) {
if (!Key.isDown(32)) {
x = 1;
while (x <= 1) {
i++;
duplicateMovieClip (_root.square, "s" + i, _root.getNextHighestDepth());
_root["s" + i]._x = ((_x - (Math.sin(_rotation * (Math.PI/180)) * 18)) + (Math.random() * 10)) - 5;
_root["s" + i]._y = ((_y + (Math.cos(_rotation * (Math.PI/180)) * 18)) + (Math.random() * 10)) - 5;
_root["s" + i]._alpha = 80;
x++;
}
}
}
}
if (!Key.isDown(32)) {
if ((_root._xmouse >= (0 + (_width / 2))) and (_root._xmouse <= (Stage.width - (_width / 2)))) {
_x = (_x + ((_root._xmouse - _x) / spd));
} else if (_root._xmouse < (0 + (_width / 2))) {
_x = (_x + (((_width / 2) - _x) / spd));
} else if (_root._xmouse > (Stage.width - (_width / 2))) {
_x = (_x + (((Stage.width - (_width / 2)) - _x) / spd));
}
if ((_root._ymouse >= (0 + (_height / 2))) and (_root._ymouse <= (Stage.height - (_height / 2)))) {
_y = (_y + ((_root._ymouse - _y) / spd));
} else if (_root._ymouse < (0 + (_height / 2))) {
_y = (_y + (((_height / 2) - _y) / spd));
} else if (_root._ymouse > (Stage.height - (_height / 2))) {
_y = (_y + (((Stage.height - (_height / 2)) - _y) / spd));
}
}
if (click != 0) {
if (clickwait == 1) {
_root.dink.play();
i++;
duplicateMovieClip (_root.bullets.bullet, "b" + i, _root.bullets.getNextHighestDepth());
_root.bullets["b" + i]._x = _x + (Math.sin(_rotation * (Math.PI/180)) * 8);
_root.bullets["b" + i]._y = _y - (Math.cos(_rotation * (Math.PI/180)) * 8);
_root.bullets["b" + i]._rotation = _rotation;
_root.bullets["b" + i].num = i;
_root.bullets["b" + i].gotoAndStop(key);
if (tshot) {
i++;
duplicateMovieClip (_root.bullets.bullet, "b" + i, _root.bullets.getNextHighestDepth());
_root.bullets["b" + i]._x = _x + (Math.sin(_rotation * (Math.PI/180)) * 8);
_root.bullets["b" + i]._y = _y - (Math.cos(_rotation * (Math.PI/180)) * 8);
_root.bullets["b" + i]._rotation = _rotation - 10;
_root.bullets["b" + i].num = i;
_root.bullets["b" + i].gotoAndStop(key);
i++;
duplicateMovieClip (_root.bullets.bullet, "b" + i, _root.bullets.getNextHighestDepth());
_root.bullets["b" + i]._x = _x + (Math.sin(_rotation * (Math.PI/180)) * 8);
_root.bullets["b" + i]._y = _y - (Math.cos(_rotation * (Math.PI/180)) * 8);
_root.bullets["b" + i]._rotation = _rotation + 10;
_root.bullets["b" + i].num = i;
_root.bullets["b" + i].gotoAndStop(key);
}
clickwait++;
} else {
clickwait++;
if (clickwait > 4) {
clickwait = 0;
}
}
}
} else {
_root.instructions.stop();
_root.song.stop();
}
}
Instance of Symbol 184 MovieClip "pause" in Frame 6
onClipEvent (load) {
_root.pause = false;
pkey = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
if (pkey == 0) {
if (_root.pause) {
_root.pause = false;
_root.song.play();
} else {
_root.pause = true;
}
pkey = 1;
}
} else {
pkey = 0;
}
if (_root.pause) {
Mouse.show();
this.gotoAndStop(1);
} else {
Mouse.hide();
this.gotoAndStop(2);
}
}
Frame 7
function senddascores() {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = namevar.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = scorevar;
__rankz_send__("MTczOWolZSVhJW4lcw==", "VFl4dVdRTWM=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/coolio_niato/", _blank);
_root.gotoAndStop("menu");
}
stop();
Instance of Symbol 190 MovieClip in Frame 7
onClipEvent (load) {
_root.score = _root.scorevar;
_root._x = 0;
_root._y = 0;
Mouse.show();
}
Instance of Symbol 173 MovieClip "flash" in Frame 7
onClipEvent (load) {
this.play();
}
Instance of Symbol 83 MovieClip in Frame 7
onClipEvent (load) {
started = 0;
}
onClipEvent (enterFrame) {
started++;
if (started == 15) {
nextx = (Math.random() * (Stage.width - 20)) + 10;
nexty = (Math.random() * (Stage.width - 20)) + 10;
x = 0;
while (x < 25) {
randomint = Math.round(Math.random() * 1000000);
duplicateMovieClip (_root.msquare, "m" + randomint, _root.getNextHighestDepth());
_root["m" + randomint]._x = nextx;
_root["m" + randomint]._y = nexty;
_root["m" + randomint]._alpha = 80;
_root["m" + randomint]._rotation = 15 * x;
_root["m" + randomint].shape.color.gotoAndStop(Math.round((Math.random() * 2) + 1));
x++;
}
started = 0;
}
}
Frame 8
stop();
Symbol 4 MovieClip Frame 1
stop();
Symbol 202 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 22 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 29 MovieClip Frame 148
_root.play();
Symbol 29 MovieClip Frame 176
_root.nextFrame();
Symbol 45 MovieClip Frame 151
_root.nextFrame();
Symbol 53 MovieClip Frame 1
stop();
Symbol 60 Button
on (release) {
getURL ("http://www.armorgames.com", _blank);
}
Symbol 65 Button
on (release) {
_root.gotoAndStop("game");
}
on (rollOver) {
_root.bg.gotoAndStop(2);
_root.title.gotoAndStop(2);
}
on (rollOut) {
_root.bg.gotoAndStop(1);
_root.title.gotoAndStop(1);
}
Symbol 68 Button
on (rollOver) {
_root.bg.gotoAndStop(2);
_root.title.gotoAndStop(2);
}
on (rollOut) {
_root.bg.gotoAndStop(1);
_root.title.gotoAndStop(1);
}
on (release) {
getURL ("http://www.armorgames.com", _blank);
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 2
stop();
Symbol 81 MovieClip Frame 1
stop();
Instance of Symbol 80 MovieClip "shape" in Symbol 81 MovieClip Frame 1
onClipEvent (load) {
if (_parent._name != "msquare") {
speed = (Math.random() * 3) + 5;
_parent._xscale = _parent._xscale + (-2 * speed);
_parent._yscale = _parent._yscale + (-2 * speed);
}
}
onClipEvent (enterFrame) {
if (_parent._name != "msquare") {
if (!_root.pause) {
_parent._y = _parent._y - (Math.cos(_parent._rotation * (Math.PI/180)) * speed);
_parent._x = _parent._x + (Math.sin(_parent._rotation * (Math.PI/180)) * speed);
_parent._xscale = _parent._xscale - 0.3;
_parent._yscale = _parent._yscale - 0.3;
_parent._alpha = _parent._alpha - 4;
if (_parent._alpha <= 0) {
removeMovieClip(_parent);
}
}
}
}
Symbol 87 Button
on (rollOver) {
_root.bg.gotoAndStop(3);
_root.title.gotoAndStop(3);
}
on (rollOut) {
_root.bg.gotoAndStop(1);
_root.title.gotoAndStop(1);
}
on (release) {
getURL ("http://rankz.armorbot.com/coolio_niato/", _blank);
}
Symbol 98 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
_parent._rotation = Math.random() * 90;
_parent._xscale = 110 + (Math.random() * 10);
_parent._yscale = 110 + (Math.random() * 10);
sizedec = 7;
}
onClipEvent (enterFrame) {
if (_parent._name != "square") {
_parent._xscale = _parent._xscale - sizedec;
_parent._yscale = _parent._yscale - sizedec;
_parent._alpha = _parent._alpha - sizedec;
}
if (_parent._alpha <= 0) {
removeMovieClip(_parent);
}
}
Instance of Symbol 107 MovieClip in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
speed = 12;
remove = 0;
num = _parent.num;
_parent.num = "";
onesec = 0;
rootnum = Math.round(Math.random() * 1);
rootnum2 = Math.round(Math.random() * 1);
}
onClipEvent (enterFrame) {
if (_parent._name != "bullet") {
if (!_root.pause) {
if (onesec >= 1) {
_parent._alpha = 0;
onesec++;
if (onesec >= 2) {
if (rootnum == 1) {
_root._x = _root._x - 6;
} else {
_root._x = _root._x + 6;
}
if (rootnum2 == 1) {
_root._y = _root._y - 6;
} else {
_root._y = _root._y + 6;
}
onesec = 0;
_root.hit = 0;
remove = 1;
}
} else {
if (_parent._x < 0) {
remove = 1;
} else if (_parent._y < 0) {
remove = 1;
} else if (_parent._x > Stage.width) {
remove = 1;
} else if (_parent._y > Stage.height) {
remove = 1;
}
if (remove == 1) {
x = 0;
while (x < _root.bulletnum.length) {
if (_root.bulletnum[x] == num) {
_root.bulletnum.splice(x);
break;
}
x++;
}
if (_parent._name != "bullet") {
removeMovieClip(_parent);
}
}
_parent._y = _parent._y - (Math.cos(_parent._rotation * (Math.PI/180)) * speed);
_parent._x = _parent._x + (Math.sin(_parent._rotation * (Math.PI/180)) * speed);
}
if (_root.enemies.hitTest(_parent._x, _parent._y, true)) {
_root.hit = 1;
_root.bulletnum.push(num);
onesec = 1;
if (_root._x != 0) {
_root._x = 0;
_root._y = 0;
}
if (rootnum == 1) {
_root._x = _root._x + 6;
} else {
_root._x = _root._x - 6;
}
if (rootnum2 == 1) {
_root._y = _root._y + 6;
} else {
_root._y = _root._y - 6;
}
}
}
}
}
Instance of Symbol 113 MovieClip in Symbol 116 MovieClip Frame 1
onClipEvent (load) {
speed = 3;
direct = Math.round(Math.random());
direct2 = Math.round(Math.random());
if (direct == 1) {
xspd = -4;
} else {
xspd = 4;
}
if (direct2 == 1) {
yspd = -4;
} else {
yspd = 4;
}
wait = 0;
die = false;
size = -15;
}
onClipEvent (enterFrame) {
if (_parent._name != "cube") {
if (!_root.pause) {
if (_root._currentframe != 6) {
removeMovieClip(_parent);
}
if (_root.song._currentframe > 6190) {
die = true;
}
if (_parent.hitTest(_root.char)) {
i = 1;
while (i < 6) {
if (_parent.hitTest(_root.char["p" + i]._x + _root.char._x, _root.char["p" + i]._y + _root.char._y, true)) {
if (_root.char._alpha == 100) {
die = true;
}
_root.loseLife(1);
}
i++;
}
}
if (die) {
_root.dink2.play();
x = 0;
while (x < 16) {
randomint = Math.round(Math.random() * 1000000);
duplicateMovieClip (_root.msquare, "m" + randomint, _root.getNextHighestDepth());
_root["m" + randomint]._x = _parent._x;
_root["m" + randomint]._y = _parent._y;
_root["m" + randomint]._alpha = 80;
_root["m" + randomint]._rotation = 24 * x;
_root["m" + randomint].shape.color.gotoAndStop(_parent._currentframe);
x++;
}
_root.score = _root.score + 100;
removeMovieClip(_parent);
} else {
wait++;
if (wait > 2) {
randomint = Math.round(Math.random() * 1000000);
duplicateMovieClip (_root.square, "s" + randomint, _root.getNextHighestDepth());
_root["s" + randomint]._x = _parent._x;
_root["s" + randomint]._y = _parent._y;
_root["s" + randomint]._alpha = 80;
wait = 0;
}
_parent._rotation = _parent._rotation + speed;
_parent._x = _parent._x + xspd;
_parent._y = _parent._y + yspd;
if ((_parent._x < 0) or (_parent._x > Stage.width)) {
xspd = xspd * -1;
_parent._x = _parent._x + xspd;
}
if ((_parent._y < 0) or (_parent._y > Stage.height)) {
yspd = yspd * -1;
_parent._y = _parent._y + yspd;
}
if (_root.hit != 0) {
if (_root.bg._currentframe == _parent._currentframe) {
x = 0;
while (x < _root.bulletnum.length) {
if (_parent.hitTest(_root.bullets["b" + _root.bulletnum[x]])) {
_root._x = _root._x - 1;
die = true;
break;
}
x++;
}
}
}
}
}
}
}
Instance of Symbol 119 MovieClip in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
spd = 4;
wait = 0;
}
onClipEvent (enterFrame) {
if (_parent._name != "triangle") {
if (!_root.pause) {
if (_root._currentframe != 6) {
removeMovieClip(_parent);
}
if (_root.song._currentframe > 6190) {
die = true;
}
if (_parent.hitTest(_root.char)) {
i = 1;
while (i < 6) {
if (_parent.hitTest(_root.char["p" + i]._x + _root.char._x, _root.char["p" + i]._y + _root.char._y, true)) {
if (_root.char._alpha == 100) {
die = true;
}
_root.loseLife(1);
}
i++;
}
}
if (die) {
_root.dink2.play();
x = 0;
while (x < 16) {
randomint = Math.round(Math.random() * 1000000);
duplicateMovieClip (_root.msquare, "m" + randomint, _root.getNextHighestDepth());
_root["m" + randomint]._x = _parent._x;
_root["m" + randomint]._y = _parent._y;
_root["m" + randomint]._alpha = 80;
_root["m" + randomint]._rotation = 24 * x;
_root["m" + randomint].shape.gotoAndStop(2);
_root["m" + randomint].shape.color.gotoAndStop(_parent._currentframe);
x++;
}
_root.score = _root.score + 250;
removeMovieClip(_parent);
} else {
wait++;
if (wait > 2) {
randomint = Math.round(Math.random() * 1000000);
duplicateMovieClip (_root.square, "s" + randomint, _root.getNextHighestDepth());
_root["s" + randomint]._x = _parent._x - (Math.sin(_parent._rotation * (Math.PI/180)) * 15);
_root["s" + randomint]._y = _parent._y + (Math.cos(_parent._rotation * (Math.PI/180)) * 15);
_root["s" + randomint]._alpha = 80;
wait = 0;
}
if (_root.hit != 0) {
if (_root.bg._currentframe == _parent._currentframe) {
x = 0;
while (x < _root.bulletnum.length) {
if (_parent.hitTest(_root.bullets["b" + _root.bulletnum[x]])) {
_root._x = _root._x - 1;
die = true;
break;
}
x++;
}
}
}
_parent._y = _parent._y - (Math.cos(_parent._rotation * (Math.PI/180)) * spd);
_parent._x = _parent._x + (Math.sin(_parent._rotation * (Math.PI/180)) * spd);
xDifference = _parent._x - _root.char._x;
yDifference = _parent._y - _root.char._y;
_parent._rotation = (-Math.atan2(xDifference, yDifference)) / (Math.PI/180);
}
}
}
}
Instance of Symbol 124 MovieClip in Symbol 127 MovieClip Frame 1
onClipEvent (load) {
speed = 3;
direct = Math.round(Math.random());
direct2 = Math.round(Math.random());
if (direct == 1) {
xspd = -5;
} else {
xspd = 5;
}
if (direct2 == 1) {
yspd = -5;
} else {
yspd = 5;
}
wait = 0;
die = false;
size = -15;
lives = 3;
}
onClipEvent (enterFrame) {
if (_parent._name != "circle") {
if (!_root.pause) {
if (_root._currentframe != 6) {
removeMovieClip(_parent);
}
if (_parent.hitTest(_root.char)) {
i = 1;
while (i < 6) {
if (_parent.hitTest(_root.char["p" + i]._x + _root.char._x, _root.char["p" + i]._y + _root.char._y, true)) {
if (_root.char._alpha == 100) {
die = true;
lives = 0;
}
_root.loseLife(1);
}
i++;
}
}
if (_root.song._currentframe > 6190) {
die = true;
lives = 0;
}
if (die) {
_root.dink2.play();
x = 0;
while (x < 16) {
randomint = Math.round(Math.random() * 1000000);
duplicateMovieClip (_root.msquare, "m" + randomint, _root.getNextHighestDepth());
_root["m" + randomint]._x = _parent._x;
_root["m" + randomint]._y = _parent._y;
_root["m" + randomint]._alpha = 80;
_root["m" + randomint]._rotation = 24 * x;
_root["m" + randomint].shape.color.gotoAndStop(_parent._currentframe);
x++;
}
randomint = Math.round(Math.random() * 1000000);
lives--;
if (lives <= 0) {
_root.score = _root.score + 400;
removeMovieClip(_parent);
} else {
_root.score = _root.score + 150;
die = false;
if (_parent._currentframe < 3) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(1);
}
}
} else {
wait++;
if (wait > 2) {
randomint = Math.round(Math.random() * 1000000);
duplicateMovieClip (_root.square, "s" + randomint, _root.getNextHighestDepth());
_root["s" + randomint]._x = _parent._x;
_root["s" + randomint]._y = _parent._y;
_root["s" + randomint]._alpha = 80;
wait = 0;
}
_parent._x = _parent._x + xspd;
_parent._y = _parent._y + yspd;
if ((_parent._x < 0) or (_parent._x > Stage.width)) {
xspd = xspd * -1;
_parent._x = _parent._x + xspd;
}
if ((_parent._y < 0) or (_parent._y > Stage.height)) {
yspd = yspd * -1;
_parent._y = _parent._y + yspd;
}
if (_root.hit != 0) {
if (_root.bg._currentframe == _parent._currentframe) {
x = 0;
while (x < _root.bulletnum.length) {
if (_parent.hitTest(_root.bullets["b" + _root.bulletnum[x]])) {
_root._x = _root._x - 1;
die = true;
break;
}
x++;
}
}
}
}
}
}
}
Instance of Symbol 129 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
speed = 3;
direct = Math.round(Math.random());
direct2 = Math.round(Math.random());
if (direct == 1) {
xspd = -3;
} else {
xspd = 3;
}
if (direct2 == 1) {
yspd = -3;
} else {
yspd = 3;
}
wait = 0;
die = false;
size = -15;
}
onClipEvent (enterFrame) {
if (_parent._name != "circle") {
if (die) {
_root.dink2.play();
x = 0;
while (x < 16) {
randomint = Math.round(Math.random() * 1000000);
duplicateMovieClip (_root.msquare, "m" + randomint, _root.getNextHighestDepth());
_root["m" + randomint]._x = _parent._x;
_root["m" + randomint]._y = _parent._y;
_root["m" + randomint]._alpha = 80;
_root["m" + randomint]._rotation = 24 * x;
_root["m" + randomint].shape.color.gotoAndStop(_parent._currentframe);
x++;
}
_root.score = _root.score + 100;
removeMovieClip(_parent);
} else {
wait++;
if (wait > 2) {
randomint = Math.round(Math.random() * 1000000);
duplicateMovieClip (_root.square, "s" + randomint, _root.getNextHighestDepth());
_root["s" + randomint]._x = _parent._x;
_root["s" + randomint]._y = _parent._y;
_root["s" + randomint]._alpha = 80;
wait = 0;
}
_parent._x = _parent._x + xspd;
_parent._y = _parent._y + yspd;
if ((_parent._x < 0) or (_parent._x > Stage.width)) {
xspd = xspd * -1;
_parent._x = _parent._x + xspd;
}
if ((_parent._y < 0) or (_parent._y > Stage.height)) {
yspd = yspd * -1;
_parent._y = _parent._y + yspd;
}
if (_root.hit != 0) {
if (_root.bg._currentframe == _parent._currentframe) {
x = 0;
while (x < _root.bulletnum.length) {
if (_parent.hitTest(_root.bullets["b" + _root.bulletnum[x]])) {
_root._x = _root._x - 1;
die = true;
break;
}
x++;
}
}
}
}
}
}
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 386
_root.char.stage = 2;
Symbol 158 MovieClip Frame 421
stop();
Symbol 158 MovieClip Frame 757
_root.char.stage = 4;
Symbol 158 MovieClip Frame 795
stop();
Symbol 158 MovieClip Frame 888
_root.char.stage = 6;
Symbol 158 MovieClip Frame 905
stop();
Symbol 158 MovieClip Frame 1012
_root.char.stage = 8;
Symbol 158 MovieClip Frame 1020
stop();
Symbol 158 MovieClip Frame 1120
stop();
Symbol 158 MovieClip Frame 1230
stop();
Symbol 158 MovieClip Frame 1365
gotoAndStop (1);
_root.gotoAndStop("win");
Symbol 161 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 30
stop();
removeMovieClip(this);
Symbol 173 MovieClip Frame 1
stop();
Symbol 181 Button
on (release) {
_root._quality = "LOW";
}
Symbol 182 Button
on (release) {
_root._quality = "Medium";
}
Symbol 183 Button
on (release) {
_root._quality = "High";
}
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 2
stop();
Symbol 191 Button
on (rollOver) {
_root.bg.gotoAndStop(3);
_root.title.gotoAndStop(3);
}
on (rollOut) {
_root.bg.gotoAndStop(1);
_root.title.gotoAndStop(1);
}
on (release) {
getURL ("http://www.armorgames.com", _blank);
}
Symbol 193 Button
on (release) {
_root.senddascores();
}
on (rollOver) {
_root.bg.gotoAndStop(2);
_root.title.gotoAndStop(2);
}
on (rollOut) {
_root.bg.gotoAndStop(1);
_root.title.gotoAndStop(1);
}
Symbol 196 Button
on (release) {
_root.gotoAndStop("menu");
}
on (rollOver) {
_root.bg.gotoAndStop(3);
_root.title.gotoAndStop(3);
}
on (rollOut) {
_root.bg.gotoAndStop(1);
_root.title.gotoAndStop(1);
}