Frame 1
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
percentone = totalBytes / 100;
percent = Math.round(loadedBytes / percentone);
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay (5);
}
Instance of Symbol 21 MovieClip in Frame 1
onClipEvent (enterFrame) {
_xscale = (_root.percentDone * 4);
}
Frame 2
gotoAndPlay (1);
Frame 5
stop();
Frame 6
stop();
Frame 15
stop();
var gunname = "shotgun";
var amitavafire = "Unlimited";
var canoncount = 500;
var amitavavilla = 0;
var amitavavillb = 0;
var amitavavillc = 0;
var amitavavilld = 0;
var amitavaville = 0;
var sco = 0;
var level = 1;
var lev = ("Level " + level);
var numenemy = 0;
var amitavaplay = true;
var amithealth = 100;
var normalgun = true;
var lasergun = false;
var trshot = false;
var canongun = false;
var terget = 1000;
var reset = false;
i = 0;
while (i < 10) {
_root.mine.duplicateMovieClip("mine" + i, i, i);
i++;
}
Instance of Symbol 84 MovieClip "bg" in Frame 15
onClipEvent (load) {
val = 1;
bgchng = 0;
}
onClipEvent (enterFrame) {
if (bgchng == 1) {
val = random(6);
bgchng = 0;
}
this.bgtint.gotoAndStop(val);
}
Instance of Symbol 86 MovieClip "tread" in Frame 15
onClipEvent (load) {
_alpha = 100;
_rotation = _parent.caman._rotation;
_x = _parent.caman._x;
_y = _parent.caman._y;
}
onClipEvent (enterFrame) {
timer++;
if (100 < timer) {
_alpha = (_alpha - 2);
}
if (30 < timer) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 89 MovieClip "treada" in Frame 15
onClipEvent (load) {
_alpha = 100;
_rotation = _parent.j6._rotation;
_x = _parent.j6._x;
_y = _parent.j6._y;
}
onClipEvent (enterFrame) {
timer++;
if (100 < timer) {
_alpha = (_alpha - 2);
}
if (30 < timer) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 92 MovieClip "treadb" in Frame 15
onClipEvent (load) {
_alpha = 100;
_rotation = _parent.sjet1._rotation;
_x = _parent.sjet1._x;
_y = _parent.sjet1._y;
}
onClipEvent (enterFrame) {
timer++;
if (100 < timer) {
_alpha = (_alpha - 2);
}
if (30 < timer) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 92 MovieClip "treadc" in Frame 15
onClipEvent (load) {
_alpha = 100;
_rotation = _parent.sjet1._rotation;
_x = _parent.sjet1._x;
_y = _parent.sjet1._y;
}
onClipEvent (enterFrame) {
timer++;
if (100 < timer) {
_alpha = (_alpha - 2);
}
if (30 < timer) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 86 MovieClip "treadd" in Frame 15
onClipEvent (load) {
_alpha = 100;
_rotation = _parent.camana._rotation;
_x = _parent.camana._x;
_y = _parent.camana._y;
}
onClipEvent (enterFrame) {
timer++;
if (100 < timer) {
_alpha = (_alpha - 2);
}
if (30 < timer) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 89 MovieClip "treade" in Frame 15
onClipEvent (load) {
_alpha = 100;
_rotation = _parent.j6a._rotation;
_x = _parent.j6a._x;
_y = _parent.j6a._y;
}
onClipEvent (enterFrame) {
timer++;
if (100 < timer) {
_alpha = (_alpha - 2);
}
if (30 < timer) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 214 MovieClip "tank" in Frame 15
onClipEvent (load) {
this.swapDepths(50000);
speed = 4;
bumSound = new Sound();
bumSound.attachSound("bum");
}
onClipEvent (mouseDown) {
if (_root.amitavaplay == true) {
if (0 >= shotTimer) {
this.turret.gotoAndStop(2);
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.kartus, "kartus" + shotCount, (shotCount % 500) + 5100);
duplicateMovieClip (_parent.kartusa, "kartusa" + shotCount, (shotCount % 600) + 6100);
if (_root.normalgun == true) {
duplicateMovieClip (_parent.shot, "shot" + shotCount, (shotCount % 100) + 1100);
} else if (_root.trshot == true) {
duplicateMovieClip (_parent.shot, "shot" + shotCount, (shotCount % 100) + 1100);
duplicateMovieClip (_parent.shota, "shota" + shotCount, (shotCount % 200) + 2100);
duplicateMovieClip (_parent.shotb, "shotb" + shotCount, (shotCount % 400) + 4100);
} else if (_root.lasergun == true) {
duplicateMovieClip (_parent.shotc, "shotc" + shotCount, (shotCount % 700) + 7100);
} else if (_root.canongun == true) {
duplicateMovieClip (_parent.shotd, "shotd" + shotCount, (shotCount % 800) + 8100);
_root.canoncount = _root.canoncount - 1;
_root.amitavafire = _root.amitavafire - 1;
}
shotTimer = 0.9;
}
shotTimer--;
}
}
Instance of Symbol 215 MovieClip in Frame 15
onClipEvent (mouseMove) {
x = this._xmouse;
y = this._ymouse * -1;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
_root.angletext = angle;
_root.tank.turret._rotation = angle * -1;
updateAfterEvent();
}
Instance of Symbol 220 MovieClip "j1" in Frame 15
onClipEvent (load) {
this.swapDepths(21000);
att = true;
speed = 2;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (50 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
this.gotoAndStop(3);
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
}
}
}
Instance of Symbol 224 MovieClip "j2" in Frame 15
onClipEvent (load) {
this.swapDepths(22000);
att = true;
speed = 2;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (50 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
this.gotoAndStop(3);
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
}
}
}
Instance of Symbol 228 MovieClip "j3" in Frame 15
onClipEvent (load) {
this.swapDepths(23000);
att = true;
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (50 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
this.gotoAndStop(3);
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
}
}
}
Instance of Symbol 232 MovieClip "j4" in Frame 15
onClipEvent (load) {
this.swapDepths(25000);
att = true;
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (50 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
this.gotoAndStop(3);
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
}
}
}
Instance of Symbol 236 MovieClip "j5" in Frame 15
onClipEvent (load) {
this.swapDepths(26000);
att = true;
speed = 4;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (50 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
this.gotoAndStop(3);
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
}
}
}
Instance of Symbol 252 MovieClip "j6" in Frame 15
onClipEvent (load) {
att = true;
this.swapDepths(19000);
speed = 2;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (100 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
treadchecka++;
if (5 < treadchecka) {
treadcounta++;
duplicateMovieClip (_root.treada, "treada" + treadcounta, (treadcounta % 200) + 2000);
treadchecka = 0;
}
} else if (0 < _root.amithealth) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 256 MovieClip "j7" in Frame 15
onClipEvent (load) {
this.swapDepths(27000);
att = true;
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (50 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
this.gotoAndStop(3);
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
}
}
}
Instance of Symbol 262 MovieClip "j8" in Frame 15
onClipEvent (load) {
this.swapDepths(28000);
att = true;
speed = 2;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (50 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
this.gotoAndStop(3);
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
}
}
}
Instance of Symbol 266 MovieClip "j10" in Frame 15
onClipEvent (load) {
this.swapDepths(24000);
att = true;
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (50 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
this.gotoAndStop(3);
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
}
}
}
Instance of Symbol 270 MovieClip "j9" in Frame 15
onClipEvent (load) {
this.swapDepths(29000);
att = true;
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (50 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
this.gotoAndStop(3);
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
}
}
}
Instance of Symbol 295 MovieClip "caman" in Frame 15
onClipEvent (load) {
this.swapDepths(15000);
att = false;
speed = 2;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (100 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
treadcheck++;
if (8 < treadcheck) {
treadcount++;
duplicateMovieClip (_root.tread, "tread" + treadcount, (treadcount % 100) + 1000);
treadcheck = 0;
}
} else if (0 < _root.amithealth) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 356 MovieClip "jet" in Frame 15
onClipEvent (load) {
att = false;
speed = 2;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (100 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
treadcheck++;
if (5 < treadcheck) {
treadcount++;
duplicateMovieClip (_root.tread, "tread" + treadcount, (treadcount % 100) + 1000);
treadcheck = 0;
}
} else if (0 < _root.amithealth) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 369 MovieClip "sjet" in Frame 15
onClipEvent (load) {
att = false;
st = 1;
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.level == 3) {
if (st == 1) {
att = true;
st = 0;
}
}
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (100 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 371 MovieClip "shotc" in Frame 15
onClipEvent (load) {
if (String(_name) != "shotc") {
cannonLength = 20;
turretpoint = _parent.tank._rotation + _parent.tank.turret._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.tank._x);
_y = (ycomponent + _parent.tank._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 270;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.j1)) {
if (_root.j1.att == true) {
_root.j1.att = false;
_root.j1.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j2)) {
if (_root.j2.att == true) {
_root.j2.att = false;
_root.j2.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j3)) {
if (_root.j3.att == true) {
_root.j3.att = false;
_root.j3.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j4)) {
if (_root.j4.att == true) {
_root.j4.att = false;
_root.j4.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j5)) {
if (_root.j5.att == true) {
_root.j5.att = false;
_root.j5.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.tripple)) {
if (_root.tripple.att == true) {
_root.tripple.gotoAndPlay(2);
_root.tripple.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.can)) {
if (_root.can.att == true) {
_root.can.gotoAndPlay(2);
_root.can.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.health)) {
if (_root.health.att == true) {
_root.health.gotoAndPlay(2);
_root.health.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.j6)) {
if (_root.amitavavilla < 2) {
_root.j6.att = false;
_root.j6.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j6a)) {
if (_root.j6a.hit < 2) {
_root.j6a.att = false;
_root.j6a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.caman)) {
if (_root.amitavavillb < 2) {
_root.caman.att = false;
_root.caman.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.camana)) {
if (_root.camana.hit < 2) {
_root.camana.att = false;
_root.camana.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.jet)) {
if (_root.amitavavillc < 4) {
_root.jet.att = false;
_root.jet.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.jeta)) {
if (_root.jeta.hit < 4) {
_root.jeta.att = false;
_root.jeta.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet)) {
if (_root.amitavavilld < 3) {
_root.sjet.att = false;
_root.sjet.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjeta)) {
if (_root.sjeta.hit < 3) {
_root.sjeta.att = false;
_root.sjeta.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet1)) {
if (_root.amitavaville < 3) {
_root.sjet1.att = false;
_root.sjet1.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet1a)) {
if (_root.sjet1a.hit < 3) {
_root.sjet1a.att = false;
_root.sjet1a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet2)) {
if (_root.amitavavillf < 3) {
_root.sjet2.att = false;
_root.sjet2.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet2a)) {
if (_root.sjet2a.hit < 3) {
_root.sjet2a.att = false;
_root.sjet2a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j7)) {
if (_root.j7.att == true) {
_root.j7.att = false;
_root.j7.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j8)) {
if (_root.j8.att == true) {
_root.j8.att = false;
_root.j8.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j9)) {
if (_root.j9.att == true) {
_root.j9.att = false;
_root.j9.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j10)) {
if (_root.j10.att == true) {
_root.j10.att = false;
_root.j10.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this._y < 70) {
removeMovieClip(this);
}
if (585 < this._y) {
removeMovieClip(this);
}
if (this._x < 15) {
removeMovieClip(this);
}
if (565 < this._x) {
removeMovieClip(this);
}
if (String(_name) != "shotc") {
_x = (_x + xmove);
_y = (_y + ymove);
}
}
Instance of Symbol 375 MovieClip "shotd" in Frame 15
onClipEvent (load) {
if (String(_name) != "shotd") {
cannonLength = 20;
turretpoint = _parent.tank._rotation + _parent.tank.turret._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.tank._x);
_y = (ycomponent + _parent.tank._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.j1)) {
if (_root.j1.att == true) {
_root.j1.att = false;
_root.j1.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j2)) {
if (_root.j2.att == true) {
_root.j2.att = false;
_root.j2.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j3)) {
if (_root.j3.att == true) {
_root.j3.att = false;
_root.j3.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j4)) {
if (_root.j4.att == true) {
_root.j4.att = false;
_root.j4.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j5)) {
if (_root.j5.att == true) {
_root.j5.att = false;
_root.j5.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.tripple)) {
if (_root.tripple.att == true) {
_root.tripple.gotoAndPlay(2);
_root.tripple.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.can)) {
if (_root.can.att == true) {
_root.can.gotoAndPlay(2);
_root.can.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.health)) {
if (_root.health.att == true) {
_root.health.gotoAndPlay(2);
_root.health.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.j6)) {
if (_root.j6.att == true) {
_root.j6.att = false;
_root.j6.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j6a)) {
if (_root.j6a.att == true) {
_root.j6a.att = false;
_root.j6a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.caman)) {
if (_root.caman.att == true) {
_root.caman.att = false;
_root.caman.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.camana)) {
if (_root.camana.att == true) {
_root.camana.att = false;
_root.camana.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.jet)) {
if (_root.jet.att == true) {
_root.jet.att = false;
_root.jet.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.jeta)) {
if (_root.jeta.att == true) {
_root.jeta.att = false;
_root.jeta.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet)) {
if (_root.sjet.att == true) {
_root.sjet.att = false;
_root.sjet.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjeta)) {
if (_root.sjeta.att == true) {
_root.sjeta.att = false;
_root.sjeta.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet1)) {
if (_root.sjet1.att == true) {
_root.sjet1.att = false;
_root.sjet1.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet1a)) {
if (_root.sjet1a.att == true) {
_root.sjet1a.att = false;
_root.sjet1a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet2)) {
if (_root.sjet2.att == true) {
_root.sjet2.att = false;
_root.sjet2.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet2a)) {
if (_root.sjet2a.att == true) {
_root.sjet2a.att = false;
_root.sjet2a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j7)) {
if (_root.j7.att == true) {
_root.j7.att = false;
_root.j7.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j8)) {
if (_root.j8.att == true) {
_root.j8.att = false;
_root.j8.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j9)) {
if (_root.j9.att == true) {
_root.j9.att = false;
_root.j9.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j10)) {
if (_root.j10.att == true) {
_root.j10.att = false;
_root.j10.gotoAndStop(2);
removeMovieClip(this);
}
}
if (this._y < 70) {
removeMovieClip(this);
}
if (585 < this._y) {
removeMovieClip(this);
}
if (this._x < 15) {
removeMovieClip(this);
}
if (565 < this._x) {
removeMovieClip(this);
}
if (String(_name) != "shotd") {
_x = (_x + xmove);
_y = (_y + ymove);
}
}
Instance of Symbol 379 MovieClip "j6a" in Frame 15
onClipEvent (load) {
att = false;
this.swapDepths(20000);
speed = 2;
st = 1;
hit = 0;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.level == 12) {
if (st == 1) {
att = true;
st = 0;
}
}
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (100 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
treadchecka++;
if (5 < treadchecka) {
treadcounta++;
duplicateMovieClip (_root.treade, "treade" + treadcounta, (treadcounta % 200) + 2000);
treadchecka = 0;
}
} else if (0 < _root.amithealth) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 388 MovieClip "camana" in Frame 15
onClipEvent (load) {
this.swapDepths(16000);
att = false;
speed = 2;
st = 1;
hit = 0;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.level == 15) {
if (st == 1) {
att = true;
st = 0;
}
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (100 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
treadcheck++;
if (8 < treadcheck) {
treadcount++;
duplicateMovieClip (_root.treadd, "treadd" + treadcount, (treadcount % 100) + 1000);
treadcheck = 0;
}
} else if (0 < _root.amithealth) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 393 MovieClip "sjeta" in Frame 15
onClipEvent (load) {
att = false;
st = 1;
speed = 1;
hit = 0;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.level == 16) {
if (st == 1) {
att = true;
st = 0;
}
}
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (100 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 397 MovieClip "jeta" in Frame 15
onClipEvent (load) {
att = false;
speed = 2;
hit = 0;
st = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.level == 18) {
if (st == 1) {
att = true;
st = 0;
}
}
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (100 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
treadcheck++;
if (5 < treadcheck) {
treadcount++;
duplicateMovieClip (_root.tread, "tread" + treadcount, (treadcount % 100) + 1000);
treadcheck = 0;
}
} else if (0 < _root.amithealth) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 399 MovieClip "gamecontroler" in Frame 15
onClipEvent (load) {
va = 1;
vb = 1;
vc = 1;
}
onClipEvent (enterFrame) {
if (0 >= _root.canoncount) {
_root.canongun = false;
_root.lasergun = true;
_root.gunname = "Laser Gun";
_root.amitavafire = "Unlimited";
}
if (0 >= _root.amithealth) {
_root.tank.truck.gotoAndStop(3);
_root.tank.turret.gotoAndStop(4);
_root.amitavaplay = false;
}
if (850 < _root.sco) {
if (va == 1) {
_root.j6.att = true;
va = 0;
}
}
if (1750 < _root.sco) {
if (vb == 1) {
_root.caman.att = true;
vb = 0;
}
}
if (2600 < _root.sco) {
if (vc == 1) {
_root.jet.att = true;
vc = 0;
}
}
}
Instance of Symbol 416 MovieClip "tripple" in Frame 15
onClipEvent (load) {
att = false;
st = 1;
}
onClipEvent (enterFrame) {
if (3200 < _root.sco) {
if (st == 1) {
att = true;
st = 0;
}
}
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (50 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = 3 * Math.cos(rad);
p = 3 * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
_alpha = (_alpha - 10);
if (_alpha < 1) {
_x = -4000;
att = false;
}
}
}
}
Instance of Symbol 424 MovieClip "laser" in Frame 15
onClipEvent (load) {
att = false;
st = 1;
}
onClipEvent (enterFrame) {
if (7200 < _root.sco) {
if (st == 1) {
att = true;
st = 0;
}
}
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (50 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = 3 * Math.cos(rad);
p = 3 * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
_alpha = (_alpha - 1);
if (_alpha < 1) {
att = false;
this.x = -3000;
}
}
}
}
Instance of Symbol 434 MovieClip "can" in Frame 15
onClipEvent (load) {
att = false;
st = 1;
}
onClipEvent (enterFrame) {
if (_root.level == 12) {
if (st == 1) {
att = true;
st = 0;
}
}
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (50 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = 3 * Math.cos(rad);
p = 3 * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
_alpha = (_alpha - 1);
if (_alpha < 1) {
att = false;
this.x = -3000;
}
}
}
}
Instance of Symbol 534 MovieClip "sjet1" in Frame 15
onClipEvent (load) {
this.swapDepths(17000);
att = false;
st = 1;
speed = 2;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.level == 4) {
if (st == 1) {
att = true;
st = 0;
}
}
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (100 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
treadcheckb++;
if (5 < treadcheckb) {
treadcountb++;
duplicateMovieClip (_root.treadb, "treadb" + treadcountb, (treadcountb % 800) + 8000);
treadcheckb = 0;
}
} else if (0 < _root.amithealth) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 539 MovieClip "sjet1a" in Frame 15
onClipEvent (load) {
this.swapDepths(18000);
att = false;
st = 1;
hit = 0;
speed = 2;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.level == 9) {
if (st == 1) {
att = true;
st = 0;
}
}
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (100 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
treadcheckb++;
if (5 < treadcheckb) {
treadcountb++;
duplicateMovieClip (_root.treadc, "treadc" + treadcountb, (treadcountb % 900) + 9000);
treadcheckb = 0;
}
} else if (0 < _root.amithealth) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 558 MovieClip "health" in Frame 15
onClipEvent (load) {
att = false;
st = 1;
}
onClipEvent (enterFrame) {
if (_root.level >= 15) {
if (_root.amithealth < 50) {
if (st == 1) {
att = true;
st = 0;
}
}
}
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (50 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = 3 * Math.cos(rad);
p = 3 * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
} else if (0 < _root.amithealth) {
_alpha = (_alpha - 1);
if (_alpha < 1) {
att = false;
this.x = -3000;
}
}
}
}
Instance of Symbol 561 MovieClip "shot" in Frame 15
onClipEvent (load) {
if (String(_name) != "shot") {
cannonLength = 20;
turretpoint = _parent.tank._rotation + _parent.tank.turret._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.tank._x);
_y = (ycomponent + _parent.tank._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.j1)) {
_root.j1.att = false;
_root.j1.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j2)) {
_root.j2.att = false;
_root.j2.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j3)) {
_root.j3.att = false;
_root.j3.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j4)) {
_root.j4.att = false;
_root.j4.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j5)) {
_root.j5.att = false;
_root.j5.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.tripple)) {
if (_root.tripple.att == true) {
_root.tripple.gotoAndPlay(2);
_root.tripple.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.laser)) {
if (_root.laser.att == true) {
_root.laser.gotoAndPlay(2);
_root.laser.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.can)) {
if (_root.can.att == true) {
_root.can.gotoAndPlay(2);
_root.can.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.health)) {
if (_root.health.att == true) {
_root.health.gotoAndPlay(2);
_root.health.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.j6)) {
if (_root.amitavavilla < 3) {
_root.j6.att = false;
_root.j6.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j6a)) {
if (_root.j6a.hit < 3) {
_root.j6a.att = false;
_root.j6a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.caman)) {
if (_root.amitavavillb < 3) {
_root.caman.att = false;
_root.caman.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.camana)) {
if (_root.camana.hit < 3) {
_root.camana.att = false;
_root.camana.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.jet)) {
if (_root.amitavavillc < 4) {
_root.jet.att = false;
_root.jet.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.jeta)) {
if (_root.jeta.hit < 4) {
_root.jeta.att = false;
_root.jeta.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet)) {
if (_root.amitavavilld < 4) {
_root.sjet.att = false;
_root.sjet.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjeta)) {
if (_root.sjeta.hit < 4) {
_root.sjeta.att = false;
_root.sjeta.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet1)) {
if (_root.amitavaville < 4) {
_root.sjet1.att = false;
_root.sjet1.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet1a)) {
if (_root.sjet1a.hit < 4) {
_root.sjet1a.att = false;
_root.sjet1a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet2)) {
if (_root.amitavavillf < 4) {
_root.sjet2.att = false;
_root.sjet2.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet2a)) {
if (_root.sjet2a.hit < 4) {
_root.sjet2a.att = false;
_root.sjet2a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j7)) {
_root.j7.att = false;
_root.j7.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j8)) {
_root.j8.att = false;
_root.j8.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j9)) {
_root.j9.att = false;
_root.j9.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j10)) {
_root.j10.att = false;
_root.j10.gotoAndStop(2);
removeMovieClip(this);
}
if (this._y < 70) {
removeMovieClip(this);
}
if (585 < this._y) {
removeMovieClip(this);
}
if (this._x < 15) {
removeMovieClip(this);
}
if (565 < this._x) {
removeMovieClip(this);
}
if (String(_name) != "shot") {
_x = (_x + xmove);
_y = (_y + ymove);
}
}
Instance of Symbol 565 MovieClip "damagedGround" in Frame 15
/* no clip actions */
Instance of Symbol 569 MovieClip "shota" in Frame 15
onClipEvent (load) {
if (String(_name) != "shota") {
cannonLength = 20;
turretpoint = (_parent.tank._rotation + _parent.tank.turret._rotation) - 20;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.tank._x);
_y = (ycomponent + _parent.tank._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.j1)) {
_root.j1.att = false;
_root.j1.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j2)) {
_root.j2.att = false;
_root.j2.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j3)) {
_root.j3.att = false;
_root.j3.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j4)) {
_root.j4.att = false;
_root.j4.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j5)) {
_root.j5.att = false;
_root.j5.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.tripple)) {
if (_root.tripple.att == true) {
_root.tripple.gotoAndPlay(2);
_root.tripple.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.laser)) {
if (_root.laser.att == true) {
_root.laser.gotoAndPlay(2);
_root.laser.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.can)) {
if (_root.can.att == true) {
_root.can.gotoAndPlay(2);
_root.can.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.health)) {
if (_root.health.att == true) {
_root.health.gotoAndPlay(2);
_root.health.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.j6)) {
if (_root.amitavavilla < 3) {
_root.j6.att = false;
_root.j6.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j6a)) {
if (_root.j6a.hit < 3) {
_root.j6a.att = false;
_root.j6a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.caman)) {
if (_root.amitavavillb < 3) {
_root.caman.att = false;
_root.caman.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.camana)) {
if (_root.camana.hit < 3) {
_root.camana.att = false;
_root.camana.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.jet)) {
if (_root.amitavavillc < 4) {
_root.jet.att = false;
_root.jet.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.jeta)) {
if (_root.jeta.hit < 4) {
_root.jeta.att = false;
_root.jeta.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet)) {
if (_root.amitavavilld < 4) {
_root.sjet.att = false;
_root.sjet.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjeta)) {
if (_root.sjeta.hit < 4) {
_root.sjeta.att = false;
_root.sjeta.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet1)) {
if (_root.amitavaville < 4) {
_root.sjet1.att = false;
_root.sjet1.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet1a)) {
if (_root.sjet1a.hit < 4) {
_root.sjet1a.att = false;
_root.sjet1a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet2)) {
if (_root.amitavavillf < 4) {
_root.sjet2.att = false;
_root.sjet2.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet2a)) {
if (_root.sjet2a.hit < 4) {
_root.sjet2a.att = false;
_root.sjet2a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j7)) {
_root.j7.att = false;
_root.j7.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j8)) {
_root.j8.att = false;
_root.j8.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j9)) {
_root.j9.att = false;
_root.j9.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j10)) {
_root.j10.att = false;
_root.j10.gotoAndStop(2);
removeMovieClip(this);
}
if (this._y < 70) {
removeMovieClip(this);
}
if (585 < this._y) {
removeMovieClip(this);
}
if (this._x < 15) {
removeMovieClip(this);
}
if (565 < this._x) {
removeMovieClip(this);
}
if (String(_name) != "shota") {
_x = (_x + xmove);
_y = (_y + ymove);
}
}
Instance of Symbol 569 MovieClip "shotb" in Frame 15
onClipEvent (load) {
if (String(_name) != "shotb") {
cannonLength = 20;
turretpoint = (_parent.tank._rotation + _parent.tank.turret._rotation) + 20;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.tank._x);
_y = (ycomponent + _parent.tank._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.j1)) {
_root.j1.att = false;
_root.j1.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j2)) {
_root.j2.att = false;
_root.j2.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j3)) {
_root.j3.att = false;
_root.j3.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j4)) {
_root.j4.att = false;
_root.j4.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j5)) {
_root.j5.att = false;
_root.j5.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.tripple)) {
if (_root.tripple.att == true) {
_root.tripple.gotoAndPlay(2);
_root.tripple.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.laser)) {
if (_root.laser.att == true) {
_root.laser.gotoAndPlay(2);
_root.laser.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.can)) {
if (_root.can.att == true) {
_root.can.gotoAndPlay(2);
_root.can.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.health)) {
if (_root.health.att == true) {
_root.health.gotoAndPlay(2);
_root.health.att = false;
removeMovieClip(this);
}
}
if (this.hitTest(_root.j6)) {
if (_root.amitavavilla < 3) {
_root.j6.att = false;
_root.j6.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j6a)) {
if (_root.j6a.hit < 3) {
_root.j6a.att = false;
_root.j6a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.caman)) {
if (_root.amitavavillb < 3) {
_root.caman.att = false;
_root.caman.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.camana)) {
if (_root.camana.hit < 3) {
_root.camana.att = false;
_root.camana.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.jet)) {
if (_root.amitavavillc < 4) {
_root.jet.att = false;
_root.jet.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.jeta)) {
if (_root.jeta.hit < 4) {
_root.jeta.att = false;
_root.jeta.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet)) {
if (_root.amitavavilld < 4) {
_root.sjet.att = false;
_root.sjet.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjeta)) {
if (_root.sjeta.hit < 4) {
_root.sjeta.att = false;
_root.sjeta.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet1)) {
if (_root.amitavaville < 4) {
_root.sjet1.att = false;
_root.sjet1.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet1a)) {
if (_root.sjet1a.hit < 4) {
_root.sjet1a.att = false;
_root.sjet1a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet2)) {
if (_root.amitavavillf < 4) {
_root.sjet2.att = false;
_root.sjet2.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.sjet2a)) {
if (_root.sjet2a.hit < 4) {
_root.sjet2a.att = false;
_root.sjet2a.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.j7)) {
_root.j7.att = false;
_root.j7.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j8)) {
_root.j8.att = false;
_root.j8.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j9)) {
_root.j9.att = false;
_root.j9.gotoAndStop(2);
removeMovieClip(this);
}
if (this.hitTest(_root.j10)) {
_root.j10.att = false;
_root.j10.gotoAndStop(2);
removeMovieClip(this);
}
if (this._y < 70) {
removeMovieClip(this);
}
if (585 < this._y) {
removeMovieClip(this);
}
if (this._x < 15) {
removeMovieClip(this);
}
if (565 < this._x) {
removeMovieClip(this);
}
if (String(_name) != "shotb") {
_x = (_x + xmove);
_y = (_y + ymove);
}
}
Instance of Symbol 627 MovieClip "sjet2" in Frame 15
onClipEvent (load) {
this.swapDepths(13000);
att = false;
st = 1;
speed = 2;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.level == 5) {
if (st == 1) {
att = true;
st = 0;
}
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (100 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
treadcheckb++;
if (5 < treadcheckb) {
treadcountb++;
duplicateMovieClip (_root.treadb, "treadb" + treadcountb, (treadcountb % 800) + 8000);
treadcheckb = 0;
}
} else if (0 < _root.amithealth) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 631 MovieClip "sjet2a" in Frame 15
onClipEvent (load) {
att = false;
st = 1;
hit = 0;
speed = 2;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.level == 10) {
if (st == 1) {
att = true;
st = 0;
}
}
if (_root.amitavaplay == false) {
att = false;
}
if (att == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (100 < d) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
b = speed * Math.cos(rad);
p = speed * Math.sin(rad);
_x = (_x + b);
_y = (_y + p);
treadcheckb++;
if (5 < treadcheckb) {
treadcountb++;
duplicateMovieClip (_root.treadb, "treadb" + treadcountb, (treadcountb % 800) + 8000);
treadcheckb = 0;
}
} else if (0 < _root.amithealth) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 634 MovieClip "levup" in Frame 15
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.sco >= _root.terget) {
if (pl == 1) {
this.play();
_root.reset = true;
pl = 0;
}
}
}
Instance of Symbol 636 MovieClip "kartus" in Frame 15
onClipEvent (load) {
timer = 0;
rv = random(40);
if (String(_name) != "kartus") {
cannonLength = 10;
turretpoint = (_parent.tank._rotation + _parent.tank.turret._rotation) + 90;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.tank._x);
_y = (ycomponent + _parent.tank._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (_alpha < 1) {
timer = 0;
rv = random(40);
removeMovieClip(this);
}
if (String(_name) != "kartus") {
timer++;
if (timer < rv) {
_rotation = (_rotation + 6);
_x = (_x + xmove);
_y = (_y + ymove);
} else {
_alpha = (_alpha - 1);
}
}
}
Instance of Symbol 636 MovieClip "kartusa" in Frame 15
onClipEvent (load) {
timer = 0;
rv = random(20);
if (String(_name) != "kartusa") {
cannonLength = 10;
turretpoint = (_parent.tank._rotation + _parent.tank.turret._rotation) + 98;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.tank._x);
_y = (ycomponent + _parent.tank._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (_alpha < 1) {
timer = 0;
rv = random(20);
removeMovieClip(this);
}
if (String(_name) != "kartusa") {
timer++;
if (timer < rv) {
_rotation = (_rotation + 9);
_x = (_x + xmove);
_y = (_y + ymove);
} else {
_alpha = (_alpha - 1);
}
}
}
Instance of Symbol 638 MovieClip in Frame 15
onClipEvent (load) {
Mouse.hide();
startDrag ("", true);
}
Instance of Symbol 656 MovieClip "gov" in Frame 15
onClipEvent (load) {
this.swapDepths(51000);
}
Instance of Symbol 663 MovieClip "hb" in Frame 15
onClipEvent (enterFrame) {
_root.lev = "Level " + _root.level;
}
Symbol 10 MovieClip Frame 1
stop();
Symbol 29 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 30 MovieClip Frame 22
stop();
Symbol 55 Button
on (press) {
gotoAndPlay (15);
}
Symbol 60 Button
on (press) {
gotoAndStop (6);
}
Symbol 63 MovieClip Frame 12
stop();
Symbol 64 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 66 Button
on (release) {
getURL ("http://www.dailyfreegames.com/free-games.html", "_blank");
}
Symbol 80 Button
on (press) {
gotoAndStop (5);
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 2
stop();
Symbol 83 MovieClip Frame 3
stop();
Symbol 83 MovieClip Frame 4
stop();
Symbol 83 MovieClip Frame 5
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 5
_root.bg.play();
Symbol 99 MovieClip Frame 15
_root.hb._width = _root.hb._width - 2;
_root.amithealth = _root.amithealth - 1;
_root.tank.truck.gotoAndStop(1);
Symbol 141 MovieClip Frame 20
stop();
Symbol 143 MovieClip Frame 21
stop();
Symbol 145 MovieClip Frame 22
_root.amitavaplay = false;
Symbol 145 MovieClip Frame 47
_root.gov.play();
_root.tank.removeMovieClip();
_root.tank.truck.gotoAndStop(1);
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 3
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 1
stop();
Instance of Symbol 153 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.normalgun == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 158 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.trshot == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 161 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.lasergun == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 164 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.canongun == true) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 165 MovieClip Frame 5
_root.tank.turret.gotoAndStop(1);
Symbol 168 MovieClip Frame 10
_root.tank.turret.gotoAndStop(1);
Symbol 210 MovieClip Frame 23
stop();
Symbol 211 MovieClip Frame 30
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 2
stop();
Symbol 213 MovieClip Frame 3
stop();
Symbol 213 MovieClip Frame 4
stop();
Symbol 218 MovieClip Frame 1
_root.j1.att = false;
Symbol 218 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 218 MovieClip Frame 22
_root.j1._x = 800;
_root.j1._y = random(575);
_root.j1.att = true;
_root.j1.gotoAndStop(1);
Symbol 219 MovieClip Frame 1
_root.j1.att = false;
Symbol 219 MovieClip Frame 22
_root.j1._x = 800;
_root.j1._y = random(575);
_root.j1.att = true;
_root.j1.gotoAndStop(1);
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 2
stop();
Symbol 220 MovieClip Frame 3
stop();
Symbol 222 MovieClip Frame 1
_root.j2.att = false;
Symbol 222 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 222 MovieClip Frame 22
_root.j2._x = 1000;
_root.j2._y = random(575);
_root.j2.att = true;
_root.j2.gotoAndStop(1);
Symbol 223 MovieClip Frame 1
_root.j2.att = false;
Symbol 223 MovieClip Frame 22
_root.j2._x = 1000;
_root.j2._y = random(575);
_root.j2.att = true;
_root.j2.gotoAndStop(1);
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
stop();
Symbol 224 MovieClip Frame 3
stop();
Symbol 226 MovieClip Frame 1
_root.j3.att = false;
Symbol 226 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 226 MovieClip Frame 22
_root.j3._x = 900;
_root.j3._y = random(575);
_root.j3.att = true;
_root.j3.gotoAndStop(1);
Symbol 227 MovieClip Frame 1
_root.j3.att = false;
Symbol 227 MovieClip Frame 22
_root.j3._x = 900;
_root.j3._y = random(575);
_root.j3.att = true;
_root.j3.gotoAndStop(1);
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
stop();
Symbol 228 MovieClip Frame 3
stop();
Symbol 230 MovieClip Frame 1
_root.j4.att = false;
Symbol 230 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 230 MovieClip Frame 22
_root.j4._x = -400;
_root.j4._y = random(575);
_root.j4.att = true;
_root.j4.gotoAndStop(1);
Symbol 231 MovieClip Frame 1
_root.j4.att = false;
Symbol 231 MovieClip Frame 22
_root.j4._x = -400;
_root.j4._y = random(575);
_root.j4.att = true;
_root.j4.gotoAndStop(1);
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 2
stop();
Symbol 232 MovieClip Frame 3
stop();
Symbol 234 MovieClip Frame 1
_root.j5.att = false;
Symbol 234 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 234 MovieClip Frame 22
_root.j5._x = -700;
_root.j5._y = random(575);
_root.j5.att = true;
_root.j5.gotoAndStop(1);
Symbol 235 MovieClip Frame 1
_root.j5.att = false;
Symbol 235 MovieClip Frame 22
_root.j5._x = -700;
_root.j5._y = random(575);
_root.j5.att = true;
_root.j5.gotoAndStop(1);
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
stop();
Symbol 236 MovieClip Frame 3
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 2
stop();
Symbol 246 MovieClip Frame 3
stop();
Symbol 247 MovieClip Frame 10
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
gotoAndPlay (2);
Symbol 248 MovieClip Frame 1
_root.j6.att = false;
Symbol 248 MovieClip Frame 5
_root.amitavavilla = _root.amitavavilla + 1;
Symbol 248 MovieClip Frame 6
if (_root.canongun == true) {
_root.j6.gotoAndStop(4);
}
if (_root.lasergun != true) {
if (2 < _root.amitavavilla) {
_root.j6.gotoAndStop(4);
} else {
_root.j6.att = true;
_root.j6.gotoAndStop(1);
}
} else if (1 < _root.amitavavilla) {
_root.j6.gotoAndStop(4);
} else {
_root.j6.att = true;
_root.j6.gotoAndStop(1);
}
Symbol 251 MovieClip Frame 1
_root.j6.att = false;
Symbol 251 MovieClip Frame 20
_root.sco = _root.sco + 50;
Symbol 251 MovieClip Frame 30
_root.j6._x = -900;
_root.j6._y = random(1000);
_root.j6.att = true;
_root.amitavavilla = 0;
_root.j6.gotoAndStop(1);
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 2
stop();
Symbol 252 MovieClip Frame 3
stop();
Symbol 252 MovieClip Frame 4
stop();
Symbol 254 MovieClip Frame 1
_root.j7.att = false;
Symbol 254 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 254 MovieClip Frame 22
_root.j7._x = -500;
_root.j7._y = random(575);
_root.j7.att = true;
_root.j7.gotoAndStop(1);
Symbol 255 MovieClip Frame 1
_root.j7.att = false;
Symbol 255 MovieClip Frame 22
_root.j7._x = -500;
_root.j7._y = random(575);
_root.j7.att = true;
_root.j7.gotoAndStop(1);
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 2
stop();
Symbol 256 MovieClip Frame 3
stop();
Symbol 260 MovieClip Frame 1
_root.j8.att = false;
Symbol 260 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 260 MovieClip Frame 22
_root.j8._x = random(575);
_root.j8._y = -600;
_root.j8.att = true;
_root.j8.gotoAndStop(1);
Symbol 261 MovieClip Frame 1
_root.j8.att = false;
Symbol 261 MovieClip Frame 22
_root.j8._x = random(575);
_root.j8._y = -600;
_root.j8.att = true;
_root.j8.gotoAndStop(1);
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
stop();
Symbol 262 MovieClip Frame 3
stop();
Symbol 264 MovieClip Frame 1
_root.j10.att = false;
Symbol 264 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 264 MovieClip Frame 22
_root.j10._x = random(575);
_root.j10._y = 900;
_root.j10.att = true;
_root.j10.gotoAndStop(1);
Symbol 265 MovieClip Frame 1
_root.j10.att = false;
Symbol 265 MovieClip Frame 22
_root.j10._x = random(575);
_root.j10._y = 900;
_root.j10.att = true;
_root.j10.gotoAndStop(1);
Symbol 266 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 2
stop();
Symbol 266 MovieClip Frame 3
stop();
Symbol 268 MovieClip Frame 1
_root.j9.att = false;
Symbol 268 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 268 MovieClip Frame 22
_root.j9._x = random(575);
_root.j9._y = -800;
_root.j9.att = true;
_root.j9.gotoAndStop(1);
Symbol 269 MovieClip Frame 1
_root.j9.att = false;
Symbol 269 MovieClip Frame 22
_root.j9._x = random(575);
_root.j9._y = -800;
_root.j9.att = true;
_root.j9.gotoAndStop(1);
Symbol 270 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 2
stop();
Symbol 270 MovieClip Frame 3
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
stop();
Symbol 282 MovieClip Frame 3
stop();
Symbol 283 MovieClip Frame 8
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
Symbol 289 MovieClip Frame 1
_root.caman.att = false;
Symbol 289 MovieClip Frame 8
_root.amitavavillb = _root.amitavavillb + 1;
Symbol 289 MovieClip Frame 10
if (_root.canongun == true) {
_root.caman.gotoAndStop(4);
}
if (_root.lasergun != true) {
if (2 < _root.amitavavillb) {
_root.caman.gotoAndStop(4);
} else {
_root.caman.att = true;
_root.caman.gotoAndStop(1);
}
} else if (1 < _root.amitavavillb) {
_root.caman.gotoAndStop(4);
} else {
_root.caman.att = true;
_root.caman.gotoAndStop(1);
}
Symbol 294 MovieClip Frame 1
_root.caman.att = false;
Symbol 294 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 294 MovieClip Frame 22
_root.caman._x = 1700;
_root.caman._y = random(1075);
_root.caman.att = true;
_root.amitavavillb = 0;
_root.caman.gotoAndStop(1);
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 2
stop();
Symbol 295 MovieClip Frame 3
stop();
Symbol 295 MovieClip Frame 4
stop();
Symbol 348 MovieClip Frame 20
stop();
Symbol 349 MovieClip Frame 21
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 2
stop();
Symbol 350 MovieClip Frame 3
stop();
Symbol 351 MovieClip Frame 10
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
Symbol 352 MovieClip Frame 1
_root.jet.att = false;
Symbol 352 MovieClip Frame 7
_root.amitavavillc = _root.amitavavillc + 1;
Symbol 352 MovieClip Frame 10
if (_root.canongun == true) {
_root.jet.gotoAndStop(4);
}
if (3 < _root.amitavavillc) {
_root.jet.gotoAndStop(4);
} else {
_root.jet.att = true;
_root.jet.gotoAndStop(1);
}
Symbol 355 MovieClip Frame 1
_root.jet.att = false;
Symbol 355 MovieClip Frame 20
_root.sco = _root.sco + 100;
Symbol 355 MovieClip Frame 26
_root.jet._x = 2000;
_root.jet._y = random(1200);
_root.jet.att = true;
_root.amitavavillc = 0;
_root.jet.gotoAndStop(1);
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 2
stop();
Symbol 356 MovieClip Frame 3
stop();
Symbol 356 MovieClip Frame 4
stop();
Symbol 363 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 2
stop();
Symbol 363 MovieClip Frame 3
stop();
Symbol 364 MovieClip Frame 8
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
Symbol 365 MovieClip Frame 1
_root.sjet.att = false;
Symbol 365 MovieClip Frame 7
_root.amitavavilld = _root.amitavavilld + 1;
Symbol 365 MovieClip Frame 10
if (_root.canongun == true) {
_root.sjet.gotoAndStop(4);
}
if (_root.lasergun != true) {
if (3 < _root.amitavavilld) {
_root.sjet.gotoAndStop(4);
} else {
_root.sjet.att = true;
_root.sjet.gotoAndStop(1);
}
} else if (2 < _root.amitavavilld) {
_root.sjet.gotoAndStop(4);
} else {
_root.sjet.att = true;
_root.sjet.gotoAndStop(1);
}
Symbol 368 MovieClip Frame 1
_root.sjet.att = false;
Symbol 368 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 368 MovieClip Frame 22
_root.sjet._x = 950;
_root.sjet._y = random(575);
_root.sjet.att = true;
_root.amitavavilld = 0;
_root.sjet.gotoAndStop(1);
Symbol 369 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 2
stop();
Symbol 369 MovieClip Frame 3
stop();
Symbol 369 MovieClip Frame 4
stop();
Symbol 376 MovieClip Frame 1
_root.j6a.att = false;
Symbol 376 MovieClip Frame 5
_root.j6a.hit = _root.j6a.hit + 1;
Symbol 376 MovieClip Frame 6
if (_root.canongun == true) {
_root.j6a.gotoAndStop(4);
}
if (_root.lasergun != true) {
if (2 < _root.j6a.hit) {
_root.j6a.gotoAndStop(4);
} else {
_root.j6a.att = true;
_root.j6a.gotoAndStop(1);
}
} else if (1 < _root.j6a.hit) {
_root.j6a.gotoAndStop(4);
} else {
_root.j6a.att = true;
_root.j6a.gotoAndStop(1);
}
Symbol 378 MovieClip Frame 1
_root.j6a.att = false;
Symbol 378 MovieClip Frame 20
_root.sco = _root.sco + 50;
Symbol 378 MovieClip Frame 30
_root.j6a._x = 900;
_root.j6a._y = random(575);
_root.j6a.att = true;
_root.j6a.hit = 0;
_root.j6a.gotoAndStop(1);
Symbol 379 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 2
stop();
Symbol 379 MovieClip Frame 3
stop();
Symbol 379 MovieClip Frame 4
stop();
Symbol 383 MovieClip Frame 1
_root.camana.att = false;
Symbol 383 MovieClip Frame 8
_root.camana.hit = _root.camana.hit + 1;
Symbol 383 MovieClip Frame 10
if (_root.canongun == true) {
_root.camana.gotoAndStop(4);
}
if (_root.lasergun != true) {
if (2 < _root.camana.hit) {
_root.camana.gotoAndStop(4);
} else {
_root.camana.att = true;
_root.camana.gotoAndStop(1);
}
} else if (1 < _root.camana.hit) {
_root.camana.gotoAndStop(4);
} else {
_root.camana.att = true;
_root.camana.gotoAndStop(1);
}
Symbol 387 MovieClip Frame 1
_root.camana.att = false;
Symbol 387 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 387 MovieClip Frame 22
_root.camana._x = -1700;
_root.camana._y = random(1200);
_root.camana.att = true;
_root.camana.hit = 0;
_root.camana.gotoAndStop(1);
Symbol 388 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 2
stop();
Symbol 388 MovieClip Frame 3
stop();
Symbol 388 MovieClip Frame 4
stop();
Symbol 390 MovieClip Frame 1
_root.sjeta.att = false;
Symbol 390 MovieClip Frame 7
_root.sjeta.hit = _root.sjeta.hit + 1;
Symbol 390 MovieClip Frame 10
if (_root.canongun == true) {
_root.sjeta.gotoAndStop(4);
}
if (_root.lasergun != true) {
if (3 < _root.sjeta.hit) {
_root.sjeta.gotoAndStop(4);
} else {
_root.sjeta.att = true;
_root.sjeta.gotoAndStop(1);
}
} else if (2 < _root.sjeta.hit) {
_root.sjeta.gotoAndStop(4);
} else {
_root.sjeta.att = true;
_root.sjeta.gotoAndStop(1);
}
Symbol 392 MovieClip Frame 1
_root.sjeta.att = false;
Symbol 392 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 392 MovieClip Frame 22
_root.sjeta._x = random(1575);
_root.sjeta._y = 1200;
_root.sjeta.att = true;
_root.sjeta.hit = 0;
_root.sjeta.gotoAndStop(1);
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 2
stop();
Symbol 393 MovieClip Frame 3
stop();
Symbol 393 MovieClip Frame 4
stop();
Symbol 394 MovieClip Frame 1
_root.jeta.att = false;
Symbol 394 MovieClip Frame 7
_root.jeta.hit = _root.jeta.hit + 1;
Symbol 394 MovieClip Frame 10
if (_root.canongun == true) {
_root.jeta.gotoAndStop(4);
}
if (3 < _root.jeta.hit) {
_root.jeta.gotoAndStop(4);
} else {
_root.jeta.att = true;
_root.jeta.gotoAndStop(1);
}
Symbol 396 MovieClip Frame 1
_root.jeta.att = false;
Symbol 396 MovieClip Frame 20
_root.sco = _root.sco + 100;
Symbol 396 MovieClip Frame 26
_root.jeta._x = random(1200);
_root.jeta._y = 1500;
_root.jeta.att = true;
_root.jeta.hit = 0;
_root.jeta.gotoAndStop(1);
Symbol 397 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 2
stop();
Symbol 397 MovieClip Frame 3
stop();
Symbol 397 MovieClip Frame 4
stop();
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 17
_root.trshot = true;
_root.normalgun = false;
_root.gunname = "tripple shot";
_root.amitavafire = "Unlimited";
Symbol 416 MovieClip Frame 21
stop();
removeMovieClip(this);
_root.tripple.att = false;
_root.tripple._x = -3000;
Symbol 424 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 12
_root.lasergun = true;
_root.normalgun = false;
_root.trshot = false;
_root.gunname = "Laser Gun";
_root.amitavafire = "Unlimited";
Symbol 424 MovieClip Frame 17
stop();
removeMovieClip(this);
_root.laser.att = false;
_root.laser._x = -3000;
Symbol 428 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 2
stop();
Symbol 428 MovieClip Frame 3
stop();
Symbol 428 MovieClip Frame 4
stop();
Symbol 434 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 11
_root.trshot = false;
_root.normalgun = false;
_root.lasergun = false;
_root.canongun = true;
_root.gunname = "canon shot";
_root.amitavafire = 500;
Symbol 434 MovieClip Frame 13
stop();
removeMovieClip(this);
_root.can.att = false;
_root.can._x = -3000;
Symbol 485 MovieClip Frame 23
stop();
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 2
stop();
Symbol 486 MovieClip Frame 3
stop();
Symbol 487 MovieClip Frame 10
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
Symbol 488 MovieClip Frame 1
_root.sjet1.att = false;
Symbol 488 MovieClip Frame 7
_root.amitavaville = _root.amitavaville + 1;
Symbol 488 MovieClip Frame 10
if (_root.canongun == true) {
_root.sjet1.gotoAndStop(4);
}
if (_root.lasergun != true) {
if (3 < _root.amitavaville) {
_root.sjet1.gotoAndStop(4);
} else {
_root.sjet1.att = true;
_root.sjet1.gotoAndStop(1);
}
} else if (2 < _root.amitavaville) {
_root.sjet1.gotoAndStop(4);
} else {
_root.sjet1.att = true;
_root.sjet1.gotoAndStop(1);
}
Symbol 529 MovieClip Frame 20
stop();
Symbol 530 MovieClip Frame 21
stop();
Symbol 533 MovieClip Frame 1
_root.sjet1.att = false;
Symbol 533 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 533 MovieClip Frame 22
_root.sjet1._x = -950;
_root.sjet1._y = random(575);
_root.sjet1.att = true;
_root.amitavaville = 0;
_root.sjet1.gotoAndStop(1);
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 2
stop();
Symbol 534 MovieClip Frame 3
stop();
Symbol 534 MovieClip Frame 4
stop();
Symbol 535 MovieClip Frame 10
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
Symbol 536 MovieClip Frame 1
_root.sjet1a.att = false;
Symbol 536 MovieClip Frame 7
_root.sjet1a.hit = _root.sjet1a.hit + 1;
Symbol 536 MovieClip Frame 10
if (_root.canongun == true) {
_root.sjet1a.gotoAndStop(4);
}
if (_root.lasergun != true) {
if (3 < _root.sjet1a.hit) {
_root.sjet1a.gotoAndStop(4);
} else {
_root.sjet1a.att = true;
_root.sjet1a.gotoAndStop(1);
}
} else if (2 < _root.sjet1a.hit) {
_root.sjet1a.gotoAndStop(4);
} else {
_root.sjet1a.att = true;
_root.sjet1a.gotoAndStop(1);
}
Symbol 538 MovieClip Frame 1
_root.sjet1a.att = false;
Symbol 538 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 538 MovieClip Frame 22
_root.sjet1a._x = random(1275);
_root.sjet1a._y = 1800;
_root.sjet1a.att = true;
_root.sjet1a.hit = 0;
_root.sjet1a.gotoAndStop(1);
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 2
stop();
Symbol 539 MovieClip Frame 3
stop();
Symbol 539 MovieClip Frame 4
stop();
Symbol 550 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 2
stop();
Symbol 550 MovieClip Frame 3
stop();
Symbol 555 MovieClip Frame 26
stop();
Symbol 556 MovieClip Frame 2
stop();
Symbol 558 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 15
_root.amithealth = _root.amithealth + 20;
_root.hb._width = _root.hb._width + 40;
Symbol 558 MovieClip Frame 21
stop();
removeMovieClip(this);
_root.health.att = false;
_root.health._x = -3000;
Symbol 560 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 2
stop();
Symbol 565 MovieClip Frame 17
c = Math.random() * 360;
_rotation = c;
_xscale = c;
_yscale = c;
stop();
Symbol 568 MovieClip Frame 2
stop();
Symbol 620 MovieClip Frame 23
stop();
Symbol 621 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 2
stop();
Symbol 621 MovieClip Frame 3
stop();
Symbol 622 MovieClip Frame 10
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
Symbol 623 MovieClip Frame 1
_root.sjet2.att = false;
Symbol 623 MovieClip Frame 7
_root.amitavavillf = _root.amitavavillf + 1;
Symbol 623 MovieClip Frame 10
if (_root.canongun == true) {
_root.sjet2.gotoAndStop(4);
}
if (_root.lasergun != true) {
if (3 < _root.amitavavillf) {
_root.sjet2.gotoAndStop(4);
} else {
_root.sjet2.att = true;
_root.sjet2.gotoAndStop(1);
}
} else if (2 < _root.amitavavillf) {
_root.sjet2.gotoAndStop(4);
} else {
_root.sjet2.att = true;
_root.sjet2.gotoAndStop(1);
}
Symbol 626 MovieClip Frame 1
_root.sjet2.att = false;
Symbol 626 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 626 MovieClip Frame 21
_root.sjet2._x = -1950;
_root.sjet2._y = random(900);
_root.sjet2.att = true;
_root.amitavavillf = 0;
_root.sjet2.gotoAndStop(1);
Symbol 627 MovieClip Frame 1
stop();
Symbol 627 MovieClip Frame 2
stop();
Symbol 627 MovieClip Frame 3
stop();
Symbol 627 MovieClip Frame 4
stop();
Symbol 628 MovieClip Frame 1
_root.sjet2a.att = false;
Symbol 628 MovieClip Frame 7
_root.sjet2a.hit = _root.sjet2a.hit + 1;
Symbol 628 MovieClip Frame 10
if (_root.canongun == true) {
_root.sjet2a.gotoAndStop(4);
}
if (_root.lasergun != true) {
if (3 < _root.sjet2a.hit) {
_root.sjet2a.gotoAndStop(4);
} else {
_root.sjet2a.att = true;
_root.sjet2a.gotoAndStop(1);
}
} else if (2 < _root.sjet2a.hit) {
_root.sjet2a.gotoAndStop(4);
} else {
_root.sjet2a.att = true;
_root.sjet2a.gotoAndStop(1);
}
Symbol 630 MovieClip Frame 1
_root.sjet2a.att = false;
Symbol 630 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 630 MovieClip Frame 21
_root.sjet2a._x = 1950;
_root.sjet2a._y = random(950);
_root.sjet2a.att = true;
_root.sjet2a.hit = 0;
_root.sjet2a.gotoAndStop(1);
Symbol 631 MovieClip Frame 1
stop();
Symbol 631 MovieClip Frame 2
stop();
Symbol 631 MovieClip Frame 3
stop();
Symbol 631 MovieClip Frame 4
stop();
Symbol 634 MovieClip Frame 1
stop();
_root.levup.pl = 1;
Symbol 634 MovieClip Frame 41
_root.level = _root.level + 1;
_root.terget = _root.terget + 1000;
_root.levup.pl = 1;
_root.bg.bgchng = 1;
if (_root.level >= 12) {
_root.j1.speed = random(7);
if (_root.j1.speed == 0) {
_root.j1.speed = 3;
}
_root.j2.speed = random(7);
if (_root.j2.speed == 0) {
_root.j2.speed = 3;
}
_root.j3.speed = random(7);
if (_root.j3.speed == 0) {
_root.j3.speed = 3;
}
_root.j4.speed = random(7);
if (_root.j4.speed == 0) {
_root.j4.speed = 3;
}
_root.j5.speed = random(7);
if (_root.j5.speed == 0) {
_root.j5.speed = 3;
}
_root.j6.speed = random(7);
if (_root.j6.speed == 0) {
_root.j6.speed = 3;
}
_root.j7.speed = random(7);
if (_root.j7.speed == 0) {
_root.j7.speed = 3;
}
_root.j8.speed = random(7);
if (_root.j8.speed == 0) {
_root.j8.speed = 3;
}
_root.j9.speed = random(7);
if (_root.j9.speed == 0) {
_root.j9.speed = 3;
}
_root.j10.speed = random(7);
if (_root.j10.speed == 0) {
_root.j10.speed = 3;
}
_root.j6a.speed = random(7);
if (_root.j6a.speed == 0) {
_root.j6a.speed = 3;
}
_root.caman.speed = random(7);
if (_root.caman.speed == 0) {
_root.caman.speed = 3;
}
_root.camana.speed = random(7);
if (_root.camana.speed == 0) {
_root.camana.speed = 3;
}
_root.jet.speed = random(7);
if (_root.jet.speed == 0) {
_root.jet.speed = 3;
}
_root.sjet.speed = random(7);
if (_root.sjet.speed == 0) {
_root.sjet.speed = 3;
}
_root.sjet1.speed = random(7);
if (_root.sjet1.speed == 0) {
_root.sjet1.speed = 3;
}
_root.sjet1a.speed = random(7);
if (_root.sjet1a.speed == 0) {
_root.sjet1a.speed = 3;
}
_root.sjet2.speed = random(7);
if (_root.sjet2.speed == 0) {
_root.sjet2.speed = 3;
}
_root.sjet2a.speed = random(7);
if (_root.sjet2a.speed == 0) {
_root.sjet2a.speed = 3;
}
} else if (_root.level >= 16) {
_root.j1.speed = random(9);
if (_root.j1.speed == 0) {
_root.j1.speed = 3;
}
_root.j2.speed = random(9);
if (_root.j2.speed == 0) {
_root.j2.speed = 3;
}
_root.j3.speed = random(9);
if (_root.j3.speed == 0) {
_root.j3.speed = 3;
}
_root.j4.speed = random(9);
if (_root.j4.speed == 0) {
_root.j4.speed = 3;
}
_root.j5.speed = random(9);
if (_root.j5.speed == 0) {
_root.j5.speed = 3;
}
_root.j6.speed = random(9);
if (_root.j6.speed == 0) {
_root.j6.speed = 3;
}
_root.j7.speed = random(9);
if (_root.j7.speed == 0) {
_root.j7.speed = 3;
}
_root.j8.speed = random(9);
if (_root.j8.speed == 0) {
_root.j8.speed = 3;
}
_root.j9.speed = random(9);
if (_root.j9.speed == 0) {
_root.j9.speed = 3;
}
_root.j10.speed = random(9);
if (_root.j10.speed == 0) {
_root.j10.speed = 3;
}
_root.j6a.speed = random(9);
if (_root.j6a.speed == 0) {
_root.j6a.speed = 3;
}
_root.caman.speed = random(9);
if (_root.caman.speed == 0) {
_root.caman.speed = 3;
}
_root.camana.speed = random(7);
if (_root.camana.speed == 0) {
_root.camana.speed = 3;
}
_root.jet.speed = random(7);
if (_root.jet.speed == 0) {
_root.jet.speed = 3;
}
_root.sjet.speed = random(7);
if (_root.sjet.speed == 0) {
_root.sjet.speed = 3;
}
_root.sjet1.speed = random(7);
if (_root.sjet1.speed == 0) {
_root.sjet1.speed = 3;
}
_root.sjet1a.speed = random(7);
if (_root.sjet1a.speed == 0) {
_root.sjet1a.speed = 3;
}
_root.sjet2.speed = random(7);
if (_root.sjet2.speed == 0) {
_root.sjet2.speed = 3;
}
_root.sjet2a.speed = random(7);
if (_root.sjet2a.speed == 0) {
_root.sjet2a.speed = 3;
}
}
Symbol 634 MovieClip Frame 51
Symbol 653 Button
on (press) {
_root.j1.removeMovieClip();
_root.j2.removeMovieClip();
_root.j3.removeMovieClip();
_root.j4.removeMovieClip();
_root.j5.removeMovieClip();
_root.j6.removeMovieClip();
_root.j7.removeMovieClip();
_root.j8.removeMovieClip();
_root.j9.removeMovieClip();
_root.j10.removeMovieClip();
_root.j6a.removeMovieClip();
_root.caman.removeMovieClip();
_root.camana.removeMovieClip();
_root.jet.removeMovieClip();
_root.jeta.removeMovieClip();
_root.sjet.removeMovieClip();
_root.sjeta.removeMovieClip();
_root.sjet1.removeMovieClip();
_root.sjet1a.removeMovieClip();
_root.sjet2.removeMovieClip();
_root.sjet2a.removeMovieClip();
gotoAndStop (1);
_root.gotoAndStop(5);
_root.gov.removeMovieClip();
}
Symbol 656 MovieClip Frame 1
stop();
Symbol 656 MovieClip Frame 2
var ssc = _root.sco;
_root.mask.removeMovieClip();
Symbol 656 MovieClip Frame 25
stop();
Mouse.show();