Frame 1
tmode = 1;
_root._quality = "High";
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);
}
Frame 3
stop();
Instance of Symbol 28 MovieClip "agmove" in Frame 3
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Frame 4
stop();
Instance of Symbol 44 MovieClip in Frame 4
on (release) {
getURL ("http://coolio-niato.newgrounds.com/", _blank);
}
Frame 5
_root.thing.gotoAndPlay(1);
stop();
Instance of Symbol 60 MovieClip "thing" in Frame 5
onClipEvent (load) {
wait = 0;
}
onClipEvent (enterFrame) {
wait++;
if (wait == 1) {
this.gotoAndPlay(1);
}
}
Frame 6
_root.thing.gotoAndPlay(1);
stop();
Frame 7
finalscore = 0;
stop();
var drawingback = (new flash.display.BitmapData(Stage.width, Stage.height, false, 13363175));
var drawing1 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 204));
var drawing2 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 204));
var drawing3 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 204));
var drawing4 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 204));
var drawing5 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 204));
var drawing6 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 204));
var drawing7 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 204));
var drawing8 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 204));
var drawing9 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 204));
var drawing10 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 204));
var drawing11 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 204));
var drawing12 = (new flash.display.BitmapData(Stage.width, Stage.height, true, 204));
_root.levelthing._alpha = 0;
levelnum = 1;
k = 0;
tanks = new Array();
planes = new Array();
levelshapes = new Array(0, 4, 5, 6, 6, 6, 6, 7, 7, 7, 9, 8, 10);
this.createEmptyMovieClip("draw", 1);
draw.lineStyle(30, 16711935, 100);
drawbase.moveTo(0, 0);
duplicateMovieClip (_root.levelthing, "level", 3);
_root.level._alpha = 100;
game = false;
winner = false;
perims._alpha = 0;
lastx = 0;
lasty = 0;
j = 1000;
win = new Array(true, false, false, false, false, false, false, false, false);
this.createEmptyMovieClip("holder_mc", 2);
this.createEmptyMovieClip("holder_mc2", 4);
shapes = 5;
changespd = 15;
moving = false;
mouse = 0;
begin = true;
beginy = _root.level._y;
tspawn = 0;
pspawn = 0;
cspawn = 0;
maxt = 0;
maxc = 0;
maxp = 0;
if (_root.tmode == 1) {
score = 5000;
} else {
score = 10000;
}
if (_root.tmode == 2) {
maxlength = 5;
} else {
maxlength = 3;
}
onMouseDown = function () {
if (!game) {
game = true;
lastx = _root._xmouse;
lasty = _root._ymouse;
}
};
onMouseUp = function () {
game = false;
mouse = 0;
};
onEnterFrame = function () {
_root.level.score = _root.score;
m = new flash.geom.Matrix();
m.translate(draw._x, draw._y);
_root["drawing" + levelnum].draw(draw, draw.transform.matrix);
holder_mc.attachBitmap(_root["drawing" + levelnum], 1);
holder_mc2.attachBitmap(_root["drawing" + levelnum], 4);
holder_mc2._alpha = 30;
_root.draw.clear();
x = 1;
while (x < shapes) {
_root["perim" + x]._alpha = 0;
for (i in perims["perim" + x]) {
perims["perim" + x].localToGlobal((p = {x:perims["perim" + x][i]._x, y:perims["perim" + x][i]._y}));
pixelColor = _root["drawing" + levelnum].getPixel(p.x, p.y);
if (pixelColor == 16711935) {
win[x] = true;
} else {
win[x] = false;
break;
}
}
x++;
}
x = 1;
while (x < shapes) {
if (win[x]) {
_root.level["shape" + x].gotoAndStop(2);
} else {
_root.level["shape" + x].gotoAndStop(1);
}
x++;
}
if (!begin) {
if (_root.tmode == 2) {
if (levelnum == 1) {
maxc = -1;
maxt = -1;
maxp = -1;
} else if (levelnum == 2) {
maxt = 90;
} else if (levelnum == 3) {
maxt = 65;
} else if (levelnum == 4) {
maxt = -1;
maxp = 90;
} else if (levelnum == 5) {
maxp = 66;
} else if (levelnum == 6) {
maxc = 100;
maxp = -1;
} else if (levelnum == 7) {
maxc = 140;
maxp = 100;
maxt = -1;
} else if (levelnum == 8) {
maxt = 100;
maxp = 100;
maxc = -1;
} else if (levelnum == 9) {
maxt = 200;
maxc = 200;
maxp = 200;
} else if (levelnum == 10) {
maxt = 200;
maxc = 200;
maxp = 200;
} else if (levelnum == 11) {
maxt = 180;
maxc = 220;
maxp = 240;
} else if (levelnum == 12) {
maxt = 180;
maxc = 180;
maxp = 200;
}
} else if (levelnum == 1) {
maxc = -1;
maxt = -1;
maxp = -1;
} else if (levelnum == 2) {
maxt = 150;
} else if (levelnum == 3) {
maxt = 125;
} else if (levelnum == 4) {
maxt = -1;
maxp = 150;
} else if (levelnum == 5) {
maxp = 126;
} else if (levelnum == 6) {
maxc = 200;
maxp = -1;
} else if (levelnum == 7) {
maxc = 200;
maxp = 160;
maxt = -1;
} else if (levelnum == 8) {
maxt = 160;
maxp = 160;
maxc = -1;
} else if (levelnum == 9) {
maxt = 320;
maxc = 330;
maxp = 340;
} else if (levelnum == 10) {
maxt = 320;
maxc = 330;
maxp = 340;
} else if (levelnum == 11) {
maxt = 320;
maxc = 330;
maxp = 340;
} else if (levelnum == 12) {
maxt = 300;
maxc = 300;
maxp = 300;
}
tspawn++;
pspawn++;
cspawn++;
if (maxt != -1) {
if (tanks.length < maxlength) {
if (tspawn > maxt) {
j++;
tanks.push(j);
duplicateMovieClip (_root.car, "car" + j, j + 100);
_root["car" + j]._x = Math.random() * Stage.width;
_root["car" + j]._y = Math.round(Math.random()) * Stage.height;
_root["car" + j].car._rotation = Math.round(Math.random() * 360);
_root["car" + j].actions.num = j;
tspawn = 0;
}
} else {
tspawn = 0;
}
}
if (maxp != -1) {
if (planes.length < maxlength) {
if (pspawn > maxp) {
j++;
planes.push(j);
duplicateMovieClip (_root.plane, "plane" + j, j + 10000);
_root["plane" + j]._x = Math.random() * Stage.width;
_root["plane" + j]._y = Math.round(Math.random()) * Stage.height;
_root["plane" + j].car._rotation = Math.round(Math.random() * 360);
_root["plane" + j].actions.num = j;
pspawn = 0;
}
} else {
pspawn = 0;
}
}
if (maxc != -1) {
if (tanks.length < maxlength) {
if (cspawn > maxc) {
j++;
tanks.push(j);
duplicateMovieClip (_root.cartwo, "car" + j, j + 100);
_root["car" + j]._x = Math.random() * Stage.width;
_root["car" + j]._y = Math.round(Math.random()) * Stage.height;
_root["car" + j].car._rotation = Math.round(Math.random() * 360);
_root["car" + j].actions.num = j;
cspawn = 0;
}
} else {
cspawn = 0;
}
}
if (score == 0) {
winner = true;
}
if (winner) {
game = false;
wait++;
if (wait > 20) {
moving = true;
if (_root.holder_mc._y < (Stage.height + 50)) {
_root.level._y = _root.level._y + changespd;
_root.holder_mc._y = _root.holder_mc._y + changespd;
_root.holder_mc2._y = _root.holder_mc2._y + changespd;
_root.back._y = _root.back._y + changespd;
} else {
_root.finalscore = _root.finalscore + score;
if (_root.tmode == 1) {
score = 5000;
} else {
score = 10000;
}
levelnum++;
_root.level.gotoAndStop(levelnum);
_root.level._y = beginy;
_root.level._alpha = 0;
_root.back._alpha = 0;
draw._alpha = 0;
_root.back._y = 0;
begin = true;
moving = false;
wait = 0;
}
} else {
draw.lineStyle(10, 0, 100);
draw.moveTo(0, 0);
draw.lineTo(0, Stage.height);
draw.lineTo(Stage.width, Stage.height);
draw.lineTo(Stage.width, 0);
draw.lineTo(0, 0);
}
} else {
x = 1;
while (x < (shapes + 1)) {
if (x < shapes) {
if (win[x] == false) {
break;
}
} else {
wait = 0;
winner = true;
}
x++;
}
}
if (game) {
if (score > 0) {
_root.score--;
} else {
score = 0;
}
k++;
duplicateMovieClip (_root.particle, "q" + k, _root.getNextHighestDepth());
_root["q" + k]._x = _root._xmouse;
_root["q" + k]._y = _root._ymouse;
_root["q" + k]._alpha = 50;
mouse++;
draw.lineStyle(30, 16711935, 100);
draw.moveTo(lastx, lasty);
if ((_root._xmouse + 1) < Stage.width) {
if ((_root._xmouse + 1) > 0) {
lastx = _root._xmouse + 1;
} else {
lastx = 0;
}
} else {
lastx = Stage.width;
}
if ((_root._ymouse + 1) < Stage.height) {
if ((_root._ymouse + 1) > 0) {
lasty = _root._ymouse + 1;
} else {
lasty = 0;
}
} else {
lasty = Stage.height;
}
draw.lineTo(lastx, lasty);
}
if (!_root.winner) {
draw.lineStyle(10, 0, 100);
draw.moveTo(0, 0);
draw.lineTo(0, Stage.height);
draw.lineTo(Stage.width, Stage.height);
draw.lineTo(Stage.width, 0);
draw.lineTo(0, 0);
}
} else {
if (levelnum == 13) {
removeMovieClip(_root.holder_mc);
removeMovieClip(_root.holder_mc2);
removeMovieClip(_root.draw);
removeMovieClip(_root.level);
_root.nextFrame();
}
draw._alpha = draw._alpha + 2;
draw.lineStyle(10, 0, 100);
draw.moveTo(0, 0);
draw.lineTo(0, Stage.height);
draw.lineTo(Stage.width, Stage.height);
draw.lineTo(Stage.width, 0);
draw.lineTo(0, 0);
_root.level._alpha = _root.level._alpha + 5;
_root.back._alpha = _root.back._alpha + 5;
_root.draw._alpha = _root.level._alpha;
moving = false;
winner = false;
shapes = levelshapes[levelnum];
i = 1;
while (i < shapes) {
_root.level["shape" + i].gotoAndStop(1);
_root.win[i] = false;
i++;
}
if (_root.level._alpha >= 100) {
shapes = levelshapes[levelnum];
_root.perims.gotoAndStop(levelnum);
_root.draw.clear();
m = new flash.geom.Matrix();
m.translate(draw._x, draw._y);
_root["drawing" + levelnum].draw(draw, draw.transform.matrix);
holder_mc.attachBitmap(_root["drawing" + levelnum], 1);
holder_mc2.attachBitmap(_root["drawing" + levelnum], 4);
holder_mc._x = 0;
holder_mc._y = 0;
holder_mc2._x = 0;
holder_mc2._y = 0;
wait = 0;
game = false;
begin = false;
}
}
if (Key.isDown(2)) {
game = false;
}
};
Frame 8
stop();
this.createEmptyMovieClip("pic1", 1);
this.createEmptyMovieClip("pic2", 2);
this.createEmptyMovieClip("pic3", 3);
this.createEmptyMovieClip("pic4", 4);
this.createEmptyMovieClip("pic5", 5);
this.createEmptyMovieClip("pic6", 6);
this.createEmptyMovieClip("pic7", 7);
this.createEmptyMovieClip("pic8", 8);
this.createEmptyMovieClip("pic9", 9);
this.createEmptyMovieClip("pic10", 10);
this.createEmptyMovieClip("pic11", 11);
this.createEmptyMovieClip("pic12", 12);
i = 1;
while (i < 13) {
draw.lineStyle(10, 12246749, 100);
draw.moveTo(0, 0);
draw.lineTo(0, Stage.height);
draw.lineTo(Stage.width, Stage.height);
draw.lineTo(Stage.width, 0);
draw.lineTo(0, 0);
_root["drawing" + i].draw(draw, draw.transform.matrix);
_root["pic" + i]._xscale = 25;
_root["pic" + i]._yscale = 25;
_root["pic" + i].attachBitmap(_root.drawingback, 1);
_root["pic" + i].attachBitmap(_root["drawing" + i], 2);
_root["pic" + i]._y = _root["pic" + i]._y + 15;
num = i;
while (true) {
if ((num / 3) <= 1) {
_root["pic" + i]._y = _root["pic" + i]._y + ((num - 1) * _root.pic1._height);
break;
}
_root["pic" + i]._x = _root["pic" + i]._x + _root.pic1._width;
num = num - 3;
}
i++;
}
Frame 9
_root.thing.gotoAndPlay(1);
stop();
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__("MjE4OWolZSVhJW4lcw==", "ZWdjQUhOVHc=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/paintwars/", "_blank");
_root.gotoAndStop("menu");
}
_root.scorevar = _root.finalscore;
Instance of Symbol 60 MovieClip "thing" in Frame 9
onClipEvent (load) {
wait = 0;
}
onClipEvent (enterFrame) {
wait++;
if (wait == 1) {
this.gotoAndPlay(1);
}
}
Symbol 162 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 21 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 28 MovieClip Frame 148
_root.play();
Symbol 28 MovieClip Frame 176
_root.nextFrame();
Symbol 44 MovieClip Frame 151
_root.nextFrame();
Symbol 55 Button
on (release) {
_root.nextFrame();
}
Symbol 56 Button
on (release) {
getURL ("http://rankz.armorbot.com/paintwars/", "_blank");
}
Symbol 57 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 60 MovieClip Frame 15
stop();
Symbol 69 Button
on (release) {
_root.tmode = 1;
_root.nextFrame();
}
Symbol 70 Button
on (release) {
_root.tmode = 2;
_root.nextFrame();
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 1
stop();
Instance of Symbol 83 MovieClip "actions" in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
direction = 1;
wait = 0;
spd = 5;
x1 = _parent._x;
y1 = _parent._y;
_alpha = 0;
change = 0;
}
onClipEvent (enterFrame) {
if (_parent._name != "car") {
if (!_root.begin) {
if (!_root.winner) {
if (_parent.car._currentframe == 1) {
if (change >= 8) {
i = 0;
while (i < _root.tanks.length) {
if (_root.tanks[i] != num) {
if (_parent.bounds.hitTest(_root["car" + _root.tanks[i]])) {
_root["car" + _root.tanks[i]].car._rotation = _root["car" + _root.tanks[i]].car._rotation + 190;
_root["car" + _root.tanks[i]].change = 0;
change = 0;
break;
}
}
i++;
}
}
change++;
_root.draw.lineStyle(20, 65382, 100);
_root.draw.moveTo(x1, y1);
x1 = _parent._x;
y1 = _parent._y;
_root.draw.lineTo(x1, y1);
if (_parent._x < -40) {
_parent.car._rotation = 90;
direction = direction * -1;
} else if (_parent._x > (Stage.width + 40)) {
_parent.car._rotation = -90;
direction = direction * -1;
} else if (_parent._y < -40) {
_parent.car._rotation = 180;
direction = direction * -1;
} else if (_parent._y > (Stage.height + 40)) {
_parent.car._rotation = 0;
direction = direction * -1;
} else {
if (wait > 10) {
if ((Math.random() * 10) > 9.5) {
direction = direction * -1;
wait = 0;
}
} else {
wait++;
}
if (direction == 1) {
_parent.car._rotation = _parent.car._rotation + 3;
} else {
_parent.car._rotation = _parent.car._rotation - 3;
}
}
_parent._y = _parent._y - (Math.cos(_parent.car._rotation * (Math.PI/180)) * spd);
_parent._x = _parent._x + (Math.sin(_parent.car._rotation * (Math.PI/180)) * spd);
}
if (_root.game) {
if (_root.mouse <= 1) {
if (_parent.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.car.play();
}
}
}
} else if (_root.moving) {
_parent._alpha = _parent._alpha - 30;
if (_parent._alpha <= 0) {
i = 0;
while (i < _root.tanks.length) {
if (_root.tanks[i] == num) {
_root.tanks.splice(i);
break;
}
i++;
}
removeMovieClip(_parent);
}
}
if (_parent.car._currentframe == 3) {
z = Math.round(Math.random() * 100000);
duplicateMovieClip (_root.explode, "e" + z, _root.getNextHighestDepth());
_root["e" + z]._x = _parent._x;
_root["e" + z]._y = _parent._y;
}
if (_parent.car._currentframe >= 5) {
i = 0;
while (i < _root.tanks.length) {
if (_root.tanks[i] == num) {
_root.tanks.splice(i);
removeMovieClip(_parent);
break;
}
i++;
}
removeMovieClip(_parent);
}
} else if (_root.begin) {
_parent._alpha = _parent._alpha - 30;
if (_parent._alpha <= 0) {
i = 0;
while (i < _root.tanks.length) {
if (_root.tanks[i] == num) {
_root.tanks.splice(i);
break;
}
i++;
}
removeMovieClip(_parent);
}
}
}
}
on (press) {
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 1
stop();
Instance of Symbol 122 MovieClip in Symbol 123 MovieClip Frame 1
onClipEvent (load) {
wait = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_parent._name != "explode") {
if (wait == 1) {
i = 1;
while (i < 6) {
size = 10 * (6 - i);
xlocation = (_parent._x + (Math.random() * 100)) - 50;
ylocation = (_parent._y + (Math.random() * 100)) - 50;
_root.draw.lineStyle(size, 16750848, 100);
_root.draw.moveTo(xlocation, ylocation);
_root.draw.lineTo(xlocation + 1, ylocation + 1);
i++;
}
_root.draw.lineStyle(20, 16750848, 100);
_root.draw.moveTo(_parent._x, _parent._y);
_root.draw.lineTo(_parent._x + 1, _parent._y + 1);
removeMovieClip(_parent);
}
wait++;
}
}
Symbol 126 MovieClip Frame 1
stop();
Instance of Symbol 83 MovieClip "actions" in Symbol 127 MovieClip Frame 1
onClipEvent (load) {
direction = 1;
wait = 0;
spd = 6;
x1 = _parent._x;
y1 = _parent._y;
_alpha = 0;
change = 0;
mwait = 0;
max = Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_parent._name != "plane") {
if (!_root.begin) {
if (!_root.winner) {
if (_parent.car._currentframe == 1) {
mwait++;
if (mwait >= (30 + max)) {
z = Math.round(Math.random() * 100000);
duplicateMovieClip (_root.missile, "m" + z, _parent.getDepth() - 1000);
_root["m" + z]._x = _parent._x;
_root["m" + z]._y = _parent._y;
_root["m" + z].missile.gotoAndPlay(1);
_root["m" + z].missile._rotation = _parent.car._rotation;
max = Math.random() * 20;
mwait = 0;
}
if (_parent._x < -40) {
_parent.car._rotation = 90;
direction = direction * -1;
} else if (_parent._x > (Stage.width + 40)) {
_parent.car._rotation = -90;
direction = direction * -1;
} else if (_parent._y < -40) {
_parent.car._rotation = 180;
direction = direction * -1;
} else if (_parent._y > (Stage.height + 40)) {
_parent.car._rotation = 0;
direction = direction * -1;
} else {
if (wait > 20) {
if ((Math.random() * 10) > 9.5) {
direction = direction * -1;
wait = 0;
}
} else {
wait++;
}
if (direction == 1) {
_parent.car._rotation = _parent.car._rotation + 3;
} else {
_parent.car._rotation = _parent.car._rotation - 3;
}
}
_parent._y = _parent._y - (Math.cos(_parent.car._rotation * (Math.PI/180)) * spd);
_parent._x = _parent._x + (Math.sin(_parent.car._rotation * (Math.PI/180)) * spd);
}
if (_root.game) {
if (_root.mouse <= 1) {
if (_parent.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.car.play();
}
}
}
} else if (_root.moving) {
_parent._alpha = _parent._alpha - 30;
if (_parent._alpha <= 0) {
i = 0;
while (i < _root.planes.length) {
if (_root.planes[i] == num) {
_root.planes.splice(i);
break;
}
i++;
}
}
}
if (_parent.car._currentframe >= 5) {
i = 0;
while (i < _root.planes.length) {
if (_root.planes[i] == num) {
_root.planes.splice(i);
break;
}
i++;
}
removeMovieClip(_parent);
}
} else if (_root.begin) {
_parent._alpha = _parent._alpha - 30;
if (_parent._alpha <= 0) {
i = 0;
while (i < _root.planes.length) {
if (_root.planes[i] == num) {
_root.planes.splice(i);
break;
}
i++;
}
}
removeMovieClip(_parent);
}
}
}
on (press) {
}
Instance of Symbol 132 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_parent._name != "missile") {
if (_root.begin) {
removeMovieClip(_parent);
} else if (_root.winner) {
removeMovieClip(_parent);
} else if (_parent.missile._currentframe == 30) {
z = Math.round(Math.random() * 100000);
duplicateMovieClip (_root.explode2, "e" + z, _root.getNextHighestDepth());
_root["e" + z]._x = _parent._x;
_root["e" + z]._y = _parent._y;
removeMovieClip(_parent);
}
}
}
Instance of Symbol 122 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
wait = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_parent._name != "explode2") {
if (wait == 1) {
i = 1;
while (i < 6) {
size = 10 * (6 - i);
xlocation = (_parent._x + (Math.random() * 50)) - 25;
ylocation = (_parent._y + (Math.random() * 50)) - 25;
_root.draw.lineStyle(size, 16776960, 100);
_root.draw.moveTo(xlocation, ylocation);
_root.draw.lineTo(xlocation + 1, ylocation + 1);
i++;
}
_root.draw.lineStyle(20, 16776960, 100);
_root.draw.moveTo(_parent._x, _parent._y);
_root.draw.lineTo(_parent._x + 1, _parent._y + 1);
removeMovieClip(_parent);
}
wait++;
}
}
Instance of Symbol 136 MovieClip in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
spd = 4;
_parent._xscale = 100 + Math.round(Math.random() * 150);
_parent._yscale = _parent._xscale;
_parent._rotation = Math.random() * 360;
}
onClipEvent (enterFrame) {
if (_parent._name != "particle") {
_parent._alpha = _parent._alpha - 3;
if (_parent._alpha <= 0) {
removeMovieClip(_parent);
}
_parent._y = _parent._y - (Math.cos(_parent._rotation * (Math.PI/180)) * spd);
_parent._x = _parent._x + (Math.sin(_parent._rotation * (Math.PI/180)) * spd);
}
}
Instance of Symbol 83 MovieClip "actions" in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
direction = 1;
wait = 0;
spd = 5.5;
x1 = _parent._x;
y1 = _parent._y;
_alpha = 0;
change = 0;
lives = 2;
}
onClipEvent (enterFrame) {
if (_parent._name != "cartwo") {
if (!_root.begin) {
if (!_root.winner) {
_parent.car.top.gotoAndStop(2);
_parent.car.base.gotoAndStop(2);
if ((_parent.car._currentframe == 1) or (lives >= 1)) {
if (change >= 8) {
i = 0;
while (i < _root.tanks.length) {
if (_root.tanks[i] != num) {
if (_parent.bounds.hitTest(_root["car" + _root.tanks[i]])) {
_root["car" + _root.tanks[i]].car._rotation = _root["car" + _root.tanks[i]].car._rotation + 190;
_root["car" + _root.tanks[i]].change = 0;
change = 0;
break;
}
}
i++;
}
}
change++;
_root.draw.lineStyle(20, 16670559, 100);
_root.draw.moveTo(x1, y1);
x1 = _parent._x;
y1 = _parent._y;
_root.draw.lineTo(x1, y1);
if (_parent._x < -40) {
_parent.car._rotation = 90;
direction = direction * -1;
} else if (_parent._x > (Stage.width + 40)) {
_parent.car._rotation = -90;
direction = direction * -1;
} else if (_parent._y < -40) {
_parent.car._rotation = 180;
direction = direction * -1;
} else if (_parent._y > (Stage.height + 40)) {
_parent.car._rotation = 0;
direction = direction * -1;
} else {
if (wait > 20) {
if ((Math.random() * 10) > 9.5) {
direction = direction * -1;
wait = 0;
}
} else {
wait++;
}
if (direction == 1) {
_parent.car._rotation = _parent.car._rotation + 3;
} else {
_parent.car._rotation = _parent.car._rotation - 3;
}
}
_parent._y = _parent._y - (Math.cos(_parent.car._rotation * (Math.PI/180)) * spd);
_parent._x = _parent._x + (Math.sin(_parent.car._rotation * (Math.PI/180)) * spd);
}
if (_root.game) {
if (_root.mouse <= 1) {
if (_parent.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.car.play();
}
}
}
} else if (_root.moving) {
_parent._alpha = _parent._alpha - 30;
if (_parent._alpha <= 0) {
i = 0;
while (i < _root.tanks.length) {
if (_root.tanks[i] == num) {
_root.tanks.splice(i);
break;
}
i++;
}
removeMovieClip(_parent);
}
}
if (_parent.car._currentframe == 3) {
if (lives == 1) {
z = Math.round(Math.random() * 100000);
duplicateMovieClip (_root.explode3, "e" + z, _root.getNextHighestDepth());
_root["e" + z]._x = _parent._x;
_root["e" + z]._y = _parent._y;
}
}
if (_parent.car._currentframe >= 5) {
lives--;
if (lives <= 0) {
i = 0;
while (i < _root.tanks.length) {
if (_root.tanks[i] == num) {
_root.tanks.splice(i);
removeMovieClip(_parent);
break;
}
i++;
}
removeMovieClip(_parent);
}
}
} else if (_root.begin) {
_parent._alpha = _parent._alpha - 30;
if (_parent._alpha <= 0) {
i = 0;
while (i < _root.tanks.length) {
if (_root.tanks[i] == num) {
_root.tanks.splice(i);
break;
}
i++;
}
removeMovieClip(_parent);
}
}
}
}
on (press) {
}
Instance of Symbol 122 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
wait = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_parent._name != "explode3") {
if (wait == 1) {
i = 1;
while (i < 6) {
size = 10 * (6 - i);
xlocation = (_parent._x + (Math.random() * 50)) - 25;
ylocation = (_parent._y + (Math.random() * 50)) - 25;
_root.draw.lineStyle(size, 16718362, 100);
_root.draw.moveTo(xlocation, ylocation);
_root.draw.lineTo(xlocation + 1, ylocation + 1);
i++;
}
_root.draw.lineStyle(20, 16718362, 100);
_root.draw.moveTo(_parent._x, _parent._y);
_root.draw.lineTo(_parent._x + 1, _parent._y + 1);
removeMovieClip(_parent);
}
wait++;
}
}
Symbol 145 MovieClip Frame 1
stop();
Symbol 150 Button
on (release) {
i = 1;
while (i < 13) {
removeMovieClip(_root["pic" + i]);
i++;
}
nextFrame();
}
Symbol 155 Button
on (release) {
_root.senddascores();
}
Symbol 160 Button
on (release) {
getURL ("http://armorgames.com/", "_blank");
}
Symbol 161 Button
on (release) {
_root.gotoAndStop("menu");
}