Frame 2
gotoAndStop (3);
Frame 3
stop();
Frame 4
tanka = 30;
pressed = 0;
enemya = 100;
createmore = true;
emax = 10;
speed2 = 0.8;
score = 0;
score1 = 0;
health = 0;
bpow = 1;
health1 = 100;
_root.named = "INPUT NAME";
Frame 5
var bc = 10;
stop();
i = 1;
om = 0;
ecreate = 0;
ekill = 0;
edead = 0;
emade = 0;
stop();
_root.onMouseDown = function () {
gun.gotoAndPlay(2);
bc++;
if (bc > 10) {
bc = 1;
}
duplicateMovieClip ("bullet", "b" + bc, bc);
};
onEnterFrame = function () {
if (health1 == -5) {
_currentframe = (_currentframe + 1);
gotoAndStop(_currentframe + 1);
}
if (emade == emax) {
createmore = false;
}
i++;
if (random(tanka) == 1) {
if (tanka > 6) {
tanka = tanka - 1;
}
i++;
duplicateMovieClip (_root.tankfirst, "tank" + i, i);
}
if (createmore == true) {
if (random(enemya) == 1) {
emade = emade + 1;
i++;
duplicateMovieClip (_root.enemyfirst, "enemy" + i, i);
}
}
if (i == 10) {
i == 0;
}
if (bullet.hitTest(_root.enemyfirst)) {
i == 0;
}
};
onLoad = function () {
i = 2;
};
Instance of Symbol 91 MovieClip "guy" in Frame 5
onClipEvent (load) {
var xspeed = 0;
var yspeed = 0;
addmove = 1;
}
onClipEvent (enterFrame) {
if (_x > 530) {
xspeed = -5;
}
if (_x < 40) {
xspeed = 5;
}
xspeed = xspeed * 0.93;
yspeed = yspeed * 0.93;
_y = (_y + yspeed);
_x = (_x + xspeed);
if (Key.isDown(37)) {
gotoAndStop (2);
_xscale = -100;
xspeed = xspeed - 1;
_root.attachMovie("enemyblowup", "enemyblowup" + addmove, _root.getNextHighestDepth(), {_x:_root.player._x, _y:_root.player._y});
} else if (Key.isDown(39)) {
gotoAndStop (2);
_xscale = 100;
xspeed = xspeed + 1;
_root.attachMovie("enemyblowup", "enemyblowup" + addmove, _root.getNextHighestDepth(), {_x:_root.player._x, _y:_root.player._y});
} else {
gotoAndStop (1);
}
if (this.hitTest(_root.leftwall)) {
xspeed = xspeed + 5;
}
if (this.hitTest(_root.rightwall)) {
xspeed = xspeed - 5;
}
if (this.hitTest(_root.topwall)) {
yspeed = yspeed + 5;
}
if (this.hitTest(_root.bottomwall)) {
yspeed = yspeed - 5;
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
updateAfterEvent();
}
Instance of Symbol 94 MovieClip "bullet" in Frame 5
onClipEvent (load) {
spd = 20;
_x = _root.gun._x;
_y = _root.gun._y;
_rotation = _root.gun._rotation;
}
onClipEvent (enterFrame) {
if (_name == "bullet") {
_x = -1000;
} else if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > Stage.height)) {
this.removeMovieClip();
}
var i = 1;
while (i <= 31) {
if (this.hitTest(_root["infleg" + i])) {
this.gotoAndPlay(2);
}
i++;
}
if (this.hitTest(_root.lightmc1)) {
if (_root.lightmc1._currentframe == 1) {
_root.lightmc1.gotoAndPlay(2);
_root.lightmc2.gotoAndPlay(2);
this.removeMovieClip();
}
}
}
Instance of Symbol 100 MovieClip "gun" in Frame 5
onClipEvent (load) {
var xspeed = 0;
var yspeed = 0;
addmove = 1;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
xspeed = xspeed * 0.93;
yspeed = yspeed * 0.93;
_y = (_y + yspeed);
_x = (_x + xspeed);
if (Key.isDown(37)) {
xspeed = xspeed - 1;
_root.attachMovie("enemyblowup", "enemyblowup" + addmove, _root.getNextHighestDepth(), {_x:_root.player._x, _y:_root.player._y});
}
if (Key.isDown(39)) {
xspeed = xspeed + 1;
_root.attachMovie("enemyblowup", "enemyblowup" + addmove, _root.getNextHighestDepth(), {_x:_root.player._x, _y:_root.player._y});
}
if (this.hitTest(_root.leftwall)) {
xspeed = xspeed + 5;
}
if (this.hitTest(_root.rightwall)) {
xspeed = xspeed - 5;
}
if (this.hitTest(_root.topwall)) {
yspeed = yspeed + 5;
}
if (this.hitTest(_root.bottomwall)) {
yspeed = yspeed - 5;
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
}
Instance of Symbol 105 MovieClip "tankfirst" in Frame 5
onClipEvent (load) {
dead = 1;
health = 0;
sped = 0;
this._x = random(550);
this._y = -50;
hits = 0;
if (_x > 250) {
sped = -random(5);
}
if (_x < 300) {
sped = random(5);
}
}
onClipEvent (enterFrame) {
if (_root._currentframe == 6) {
_x = (_x + 10000);
}
if (this.name == "tankfirst") {
_x = (_x + 10000);
}
if (_y > 370) {
if (_x > 20) {
if (530 > _x) {
gotoAndStop (2);
_root.health1 = _root.health1 - 15;
_y = (_y - 1000);
}
}
}
_rotation = (_rotation + 3);
if (this.hitTest(_root.remove11._x, _root.remove11._y, true)) {
this.removeMovieClip();
}
if (_y > 450) {
this.removeMovieClip();
}
if (_currentframe < 8) {
var i = 1;
while (i <= 11) {
if (this.hitTest(_root["b" + i])) {
if (_currentframe == 1) {
_root.score1 = _root.score1 + 250;
gotoAndPlay (2);
health = health + _root.bpow;
}
}
i++;
}
}
if (health > 9) {
u++;
if (_currentframe < 4) {
_root.edead = _root.edead + 1;
gotoAndPlay (8);
dead = 2;
_root.score = _root.score + (random(5) + 10);
}
}
if (hits == 35) {
gotoAndStop (2);
}
if (_currentframe == 1) {
var i = 1;
while (i <= 11) {
if (this.hitTest(_root["b" + i])) {
gotoAndPlay (2);
}
i++;
}
}
if (this.hitTest(_root.gun)) {
_root.health = _root.health + 1;
}
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_y = (_y + 3);
_x = (_x + sped);
}
}
Symbol 48 MovieClip Frame 20
stop();
Symbol 50 Button
on (release) {
_root.play();
}
Symbol 59 MovieClip Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("d92ba052", this, 10301, true);
_root.stop();
onEnterFrame = function () {
percent = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (_currentframe < percent) {
nextFrame();
}
pert = _currentframe + "%";
onMouseDown = function () {
if (percent > 99) {
gotoAndPlay (100);
}
};
};
Symbol 59 MovieClip Frame 100
stop();
Symbol 59 MovieClip Frame 134
_root.play();
Symbol 69 Button
on (release) {
_root.gotoAndPlay(4);
}
Symbol 91 MovieClip Frame 1
stop();
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
size = random(100);
_xscale = size;
_yscale = size;
xspeed = random(30) - 15;
yspeed = random(30) - 15;
_alpha = 100;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_alpha = (_alpha - 2);
if (_alpha < 0) {
_parent.swapDepths(_parent.getNextHighestDepth());
_parent.removeMovieClip();
}
}
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
size = random(100);
_xscale = size;
_yscale = size;
xspeed = random(30) - 15;
yspeed = random(30) - 15;
_alpha = 100;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_alpha = (_alpha - 2);
if (_alpha < 0) {
_parent.swapDepths(_parent.getNextHighestDepth());
_parent.removeMovieClip();
}
}
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
size = random(100);
_xscale = size;
_yscale = size;
xspeed = random(30) - 15;
yspeed = random(30) - 15;
_alpha = 100;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_alpha = (_alpha - 2);
if (_alpha < 0) {
_parent.swapDepths(_parent.getNextHighestDepth());
_parent.removeMovieClip();
}
}
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
size = random(100);
_xscale = size;
_yscale = size;
xspeed = random(30) - 15;
yspeed = random(30) - 15;
_alpha = 100;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_alpha = (_alpha - 2);
if (_alpha < 0) {
_parent.swapDepths(_parent.getNextHighestDepth());
_parent.removeMovieClip();
}
}
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
size = random(100);
_xscale = size;
_yscale = size;
xspeed = random(30) - 15;
yspeed = random(30) - 15;
_alpha = 100;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_alpha = (_alpha - 2);
if (_alpha < 0) {
_parent.swapDepths(_parent.getNextHighestDepth());
_parent.removeMovieClip();
}
}
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
size = random(100);
_xscale = size;
_yscale = size;
xspeed = random(30) - 15;
yspeed = random(30) - 15;
_alpha = 100;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_alpha = (_alpha - 2);
if (_alpha < 0) {
_parent.swapDepths(_parent.getNextHighestDepth());
_parent.removeMovieClip();
}
}
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
size = random(100);
_xscale = size;
_yscale = size;
xspeed = random(30) - 15;
yspeed = random(30) - 15;
_alpha = 100;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_alpha = (_alpha - 2);
if (_alpha < 0) {
_parent.swapDepths(_parent.getNextHighestDepth());
_parent.removeMovieClip();
}
}
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
size = random(100);
_xscale = size;
_yscale = size;
xspeed = random(30) - 15;
yspeed = random(30) - 15;
_alpha = 100;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_alpha = (_alpha - 2);
if (_alpha < 0) {
_parent.swapDepths(_parent.getNextHighestDepth());
_parent.removeMovieClip();
}
}
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
size = random(100);
_xscale = size;
_yscale = size;
xspeed = random(30) - 15;
yspeed = random(30) - 15;
_alpha = 100;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_alpha = (_alpha - 2);
if (_alpha < 0) {
_parent.swapDepths(_parent.getNextHighestDepth());
_parent.removeMovieClip();
}
}
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
size = random(100);
_xscale = size;
_yscale = size;
xspeed = random(30) - 15;
yspeed = random(30) - 15;
_alpha = 5;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (_alpha < 0) {
_parent.swapDepths(_parent.getNextHighestDepth());
_parent.removeMovieClip();
}
}
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
_root.points.gotoAndPlay(2);
Symbol 105 MovieClip Frame 74
this.removeMovieClip();
Symbol 105 MovieClip Frame 75
this.removeMovieClip();
stop();
Symbol 114 Button
on (press) {
_root.gotoAndPlay(4);
}
Symbol 121 Button
on (release) {
if (_root.pressed == 0) {
ab20_09 = new LoadVars();
ab20_09.z = _root.named;
ab20_09.x = _root.score1;
ab20_09.c = 1573;
ab20_09.v = "GKTKAK";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
getURL ("http://www.armorbot.com/mytable/?id=1573", "_blank");
_root.pressed = 1;
}
}