Frame 272
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 (276);
}
Frame 273
gotoAndPlay (1);
Frame 276
stopAllSounds();
stop();
Frame 277
stop();
Frame 286
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 112 MovieClip "bg" in Frame 286
onClipEvent (load) {
val = 1;
bgchng = 0;
}
onClipEvent (enterFrame) {
if (bgchng == 1) {
val = random(6);
bgchng = 0;
}
this.bgtint.gotoAndStop(val);
}
Instance of Symbol 114 MovieClip "tread" in Frame 286
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 117 MovieClip "treada" in Frame 286
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 120 MovieClip "treadb" in Frame 286
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 120 MovieClip "treadc" in Frame 286
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 114 MovieClip "treadd" in Frame 286
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 117 MovieClip "treade" in Frame 286
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 241 MovieClip "tank" in Frame 286
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 242 MovieClip in Frame 286
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 247 MovieClip "j1" in Frame 286
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 251 MovieClip "j2" in Frame 286
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 255 MovieClip "j3" in Frame 286
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 259 MovieClip "j4" in Frame 286
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 263 MovieClip "j5" in Frame 286
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 279 MovieClip "j6" in Frame 286
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 283 MovieClip "j7" in Frame 286
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 289 MovieClip "j8" in Frame 286
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 293 MovieClip "j10" in Frame 286
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 297 MovieClip "j9" in Frame 286
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 322 MovieClip "caman" in Frame 286
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 383 MovieClip "jet" in Frame 286
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 396 MovieClip "sjet" in Frame 286
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 398 MovieClip "shotc" in Frame 286
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 402 MovieClip "shotd" in Frame 286
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 406 MovieClip "j6a" in Frame 286
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 415 MovieClip "camana" in Frame 286
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 420 MovieClip "sjeta" in Frame 286
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 424 MovieClip "jeta" in Frame 286
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 426 MovieClip "gamecontroler" in Frame 286
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 443 MovieClip "tripple" in Frame 286
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 451 MovieClip "laser" in Frame 286
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 461 MovieClip "can" in Frame 286
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 561 MovieClip "sjet1" in Frame 286
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 566 MovieClip "sjet1a" in Frame 286
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 585 MovieClip "health" in Frame 286
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 588 MovieClip "shot" in Frame 286
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 592 MovieClip "damagedGround" in Frame 286
/* no clip actions */
Instance of Symbol 596 MovieClip "shota" in Frame 286
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 596 MovieClip "shotb" in Frame 286
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 654 MovieClip "sjet2" in Frame 286
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 658 MovieClip "sjet2a" in Frame 286
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 661 MovieClip "levup" in Frame 286
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.sco >= _root.terget) {
if (pl == 1) {
this.play();
_root.reset = true;
pl = 0;
}
}
}
Instance of Symbol 663 MovieClip "kartus" in Frame 286
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 663 MovieClip "kartusa" in Frame 286
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 665 MovieClip in Frame 286
onClipEvent (load) {
Mouse.hide();
startDrag ("", true);
}
Instance of Symbol 683 MovieClip "gov" in Frame 286
onClipEvent (load) {
this.swapDepths(51000);
}
Instance of Symbol 690 MovieClip "hb" in Frame 286
onClipEvent (enterFrame) {
_root.lev = "Level " + _root.level;
}
Symbol 10 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 15
stop();
Symbol 46 MovieClip Frame 15
stop();
Symbol 47 MovieClip Frame 248
stop();
Symbol 52 MovieClip Frame 232
stop();
Symbol 77 Button
on (press) {
gotoAndPlay (286);
}
Symbol 82 Button
on (press) {
gotoAndStop (277);
}
Symbol 86 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 93 MovieClip Frame 14
stop();
Symbol 94 Button
on (release) {
getURL ("http://www.jarkey.net", "_blank");
}
Symbol 108 Button
on (press) {
gotoAndStop (276);
}
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 3
stop();
Symbol 111 MovieClip Frame 4
stop();
Symbol 111 MovieClip Frame 5
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 5
_root.bg.play();
Symbol 127 MovieClip Frame 15
_root.hb._width = _root.hb._width - 2;
_root.amithealth = _root.amithealth - 1;
_root.tank.truck.gotoAndStop(1);
Symbol 169 MovieClip Frame 20
stop();
Symbol 170 MovieClip Frame 21
stop();
Symbol 172 MovieClip Frame 22
_root.amitavaplay = false;
Symbol 172 MovieClip Frame 47
_root.gov.play();
_root.tank.removeMovieClip();
_root.tank.truck.gotoAndStop(1);
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 2
stop();
Symbol 173 MovieClip Frame 3
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 1
stop();
Instance of Symbol 180 MovieClip in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.normalgun == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.trshot == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 188 MovieClip in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.lasergun == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 191 MovieClip in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.canongun == true) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 192 MovieClip Frame 5
_root.tank.turret.gotoAndStop(1);
Symbol 195 MovieClip Frame 10
_root.tank.turret.gotoAndStop(1);
Symbol 237 MovieClip Frame 23
stop();
Symbol 238 MovieClip Frame 30
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 2
stop();
Symbol 240 MovieClip Frame 3
stop();
Symbol 240 MovieClip Frame 4
stop();
Symbol 245 MovieClip Frame 1
_root.j1.att = false;
Symbol 245 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 245 MovieClip Frame 22
_root.j1._x = 800;
_root.j1._y = random(575);
_root.j1.att = true;
_root.j1.gotoAndStop(1);
Symbol 246 MovieClip Frame 1
_root.j1.att = false;
Symbol 246 MovieClip Frame 22
_root.j1._x = 800;
_root.j1._y = random(575);
_root.j1.att = true;
_root.j1.gotoAndStop(1);
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2
stop();
Symbol 247 MovieClip Frame 3
stop();
Symbol 249 MovieClip Frame 1
_root.j2.att = false;
Symbol 249 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 249 MovieClip Frame 22
_root.j2._x = 1000;
_root.j2._y = random(575);
_root.j2.att = true;
_root.j2.gotoAndStop(1);
Symbol 250 MovieClip Frame 1
_root.j2.att = false;
Symbol 250 MovieClip Frame 22
_root.j2._x = 1000;
_root.j2._y = random(575);
_root.j2.att = true;
_root.j2.gotoAndStop(1);
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
stop();
Symbol 251 MovieClip Frame 3
stop();
Symbol 253 MovieClip Frame 1
_root.j3.att = false;
Symbol 253 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 253 MovieClip Frame 22
_root.j3._x = 900;
_root.j3._y = random(575);
_root.j3.att = true;
_root.j3.gotoAndStop(1);
Symbol 254 MovieClip Frame 1
_root.j3.att = false;
Symbol 254 MovieClip Frame 22
_root.j3._x = 900;
_root.j3._y = random(575);
_root.j3.att = true;
_root.j3.gotoAndStop(1);
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
stop();
Symbol 255 MovieClip Frame 3
stop();
Symbol 257 MovieClip Frame 1
_root.j4.att = false;
Symbol 257 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 257 MovieClip Frame 22
_root.j4._x = -400;
_root.j4._y = random(575);
_root.j4.att = true;
_root.j4.gotoAndStop(1);
Symbol 258 MovieClip Frame 1
_root.j4.att = false;
Symbol 258 MovieClip Frame 22
_root.j4._x = -400;
_root.j4._y = random(575);
_root.j4.att = true;
_root.j4.gotoAndStop(1);
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 2
stop();
Symbol 259 MovieClip Frame 3
stop();
Symbol 261 MovieClip Frame 1
_root.j5.att = false;
Symbol 261 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 261 MovieClip Frame 22
_root.j5._x = -700;
_root.j5._y = random(575);
_root.j5.att = true;
_root.j5.gotoAndStop(1);
Symbol 262 MovieClip Frame 1
_root.j5.att = false;
Symbol 262 MovieClip Frame 22
_root.j5._x = -700;
_root.j5._y = random(575);
_root.j5.att = true;
_root.j5.gotoAndStop(1);
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 2
stop();
Symbol 263 MovieClip Frame 3
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 2
stop();
Symbol 273 MovieClip Frame 3
stop();
Symbol 274 MovieClip Frame 10
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
gotoAndPlay (2);
Symbol 275 MovieClip Frame 1
_root.j6.att = false;
Symbol 275 MovieClip Frame 5
_root.amitavavilla = _root.amitavavilla + 1;
Symbol 275 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 278 MovieClip Frame 1
_root.j6.att = false;
Symbol 278 MovieClip Frame 20
_root.sco = _root.sco + 50;
Symbol 278 MovieClip Frame 30
_root.j6._x = -900;
_root.j6._y = random(1000);
_root.j6.att = true;
_root.amitavavilla = 0;
_root.j6.gotoAndStop(1);
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 2
stop();
Symbol 279 MovieClip Frame 3
stop();
Symbol 279 MovieClip Frame 4
stop();
Symbol 281 MovieClip Frame 1
_root.j7.att = false;
Symbol 281 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 281 MovieClip Frame 22
_root.j7._x = -500;
_root.j7._y = random(575);
_root.j7.att = true;
_root.j7.gotoAndStop(1);
Symbol 282 MovieClip Frame 1
_root.j7.att = false;
Symbol 282 MovieClip Frame 22
_root.j7._x = -500;
_root.j7._y = random(575);
_root.j7.att = true;
_root.j7.gotoAndStop(1);
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 2
stop();
Symbol 283 MovieClip Frame 3
stop();
Symbol 287 MovieClip Frame 1
_root.j8.att = false;
Symbol 287 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 287 MovieClip Frame 22
_root.j8._x = random(575);
_root.j8._y = -600;
_root.j8.att = true;
_root.j8.gotoAndStop(1);
Symbol 288 MovieClip Frame 1
_root.j8.att = false;
Symbol 288 MovieClip Frame 22
_root.j8._x = random(575);
_root.j8._y = -600;
_root.j8.att = true;
_root.j8.gotoAndStop(1);
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 2
stop();
Symbol 289 MovieClip Frame 3
stop();
Symbol 291 MovieClip Frame 1
_root.j10.att = false;
Symbol 291 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 291 MovieClip Frame 22
_root.j10._x = random(575);
_root.j10._y = 900;
_root.j10.att = true;
_root.j10.gotoAndStop(1);
Symbol 292 MovieClip Frame 1
_root.j10.att = false;
Symbol 292 MovieClip Frame 22
_root.j10._x = random(575);
_root.j10._y = 900;
_root.j10.att = true;
_root.j10.gotoAndStop(1);
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 2
stop();
Symbol 293 MovieClip Frame 3
stop();
Symbol 295 MovieClip Frame 1
_root.j9.att = false;
Symbol 295 MovieClip Frame 12
_root.sco = _root.sco + 10;
Symbol 295 MovieClip Frame 22
_root.j9._x = random(575);
_root.j9._y = -800;
_root.j9.att = true;
_root.j9.gotoAndStop(1);
Symbol 296 MovieClip Frame 1
_root.j9.att = false;
Symbol 296 MovieClip Frame 22
_root.j9._x = random(575);
_root.j9._y = -800;
_root.j9.att = true;
_root.j9.gotoAndStop(1);
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 2
stop();
Symbol 297 MovieClip Frame 3
stop();
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 2
stop();
Symbol 309 MovieClip Frame 3
stop();
Symbol 310 MovieClip Frame 8
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
Symbol 316 MovieClip Frame 1
_root.caman.att = false;
Symbol 316 MovieClip Frame 8
_root.amitavavillb = _root.amitavavillb + 1;
Symbol 316 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 321 MovieClip Frame 1
_root.caman.att = false;
Symbol 321 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 321 MovieClip Frame 22
_root.caman._x = 1700;
_root.caman._y = random(1075);
_root.caman.att = true;
_root.amitavavillb = 0;
_root.caman.gotoAndStop(1);
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 2
stop();
Symbol 322 MovieClip Frame 3
stop();
Symbol 322 MovieClip Frame 4
stop();
Symbol 375 MovieClip Frame 20
stop();
Symbol 376 MovieClip Frame 21
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 2
stop();
Symbol 377 MovieClip Frame 3
stop();
Symbol 378 MovieClip Frame 10
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
Symbol 379 MovieClip Frame 1
_root.jet.att = false;
Symbol 379 MovieClip Frame 7
_root.amitavavillc = _root.amitavavillc + 1;
Symbol 379 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 382 MovieClip Frame 1
_root.jet.att = false;
Symbol 382 MovieClip Frame 20
_root.sco = _root.sco + 100;
Symbol 382 MovieClip Frame 26
_root.jet._x = 2000;
_root.jet._y = random(1200);
_root.jet.att = true;
_root.amitavavillc = 0;
_root.jet.gotoAndStop(1);
Symbol 383 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 2
stop();
Symbol 383 MovieClip Frame 3
stop();
Symbol 383 MovieClip Frame 4
stop();
Symbol 390 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 2
stop();
Symbol 390 MovieClip Frame 3
stop();
Symbol 391 MovieClip Frame 8
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
Symbol 392 MovieClip Frame 1
_root.sjet.att = false;
Symbol 392 MovieClip Frame 7
_root.amitavavilld = _root.amitavavilld + 1;
Symbol 392 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 395 MovieClip Frame 1
_root.sjet.att = false;
Symbol 395 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 395 MovieClip Frame 22
_root.sjet._x = 950;
_root.sjet._y = random(575);
_root.sjet.att = true;
_root.amitavavilld = 0;
_root.sjet.gotoAndStop(1);
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 2
stop();
Symbol 396 MovieClip Frame 3
stop();
Symbol 396 MovieClip Frame 4
stop();
Symbol 403 MovieClip Frame 1
_root.j6a.att = false;
Symbol 403 MovieClip Frame 5
_root.j6a.hit = _root.j6a.hit + 1;
Symbol 403 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 405 MovieClip Frame 1
_root.j6a.att = false;
Symbol 405 MovieClip Frame 20
_root.sco = _root.sco + 50;
Symbol 405 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 406 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 2
stop();
Symbol 406 MovieClip Frame 3
stop();
Symbol 406 MovieClip Frame 4
stop();
Symbol 410 MovieClip Frame 1
_root.camana.att = false;
Symbol 410 MovieClip Frame 8
_root.camana.hit = _root.camana.hit + 1;
Symbol 410 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 414 MovieClip Frame 1
_root.camana.att = false;
Symbol 414 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 414 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 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 2
stop();
Symbol 415 MovieClip Frame 3
stop();
Symbol 415 MovieClip Frame 4
stop();
Symbol 417 MovieClip Frame 1
_root.sjeta.att = false;
Symbol 417 MovieClip Frame 7
_root.sjeta.hit = _root.sjeta.hit + 1;
Symbol 417 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 419 MovieClip Frame 1
_root.sjeta.att = false;
Symbol 419 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 419 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 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 2
stop();
Symbol 420 MovieClip Frame 3
stop();
Symbol 420 MovieClip Frame 4
stop();
Symbol 421 MovieClip Frame 1
_root.jeta.att = false;
Symbol 421 MovieClip Frame 7
_root.jeta.hit = _root.jeta.hit + 1;
Symbol 421 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 423 MovieClip Frame 1
_root.jeta.att = false;
Symbol 423 MovieClip Frame 20
_root.sco = _root.sco + 100;
Symbol 423 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 424 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 2
stop();
Symbol 424 MovieClip Frame 3
stop();
Symbol 424 MovieClip Frame 4
stop();
Symbol 443 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 17
_root.trshot = true;
_root.normalgun = false;
_root.gunname = "tripple shot";
_root.amitavafire = "Unlimited";
Symbol 443 MovieClip Frame 21
stop();
removeMovieClip(this);
_root.tripple.att = false;
_root.tripple._x = -3000;
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 12
_root.lasergun = true;
_root.normalgun = false;
_root.trshot = false;
_root.gunname = "Laser Gun";
_root.amitavafire = "Unlimited";
Symbol 451 MovieClip Frame 17
stop();
removeMovieClip(this);
_root.laser.att = false;
_root.laser._x = -3000;
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 2
stop();
Symbol 455 MovieClip Frame 3
stop();
Symbol 455 MovieClip Frame 4
stop();
Symbol 461 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 11
_root.trshot = false;
_root.normalgun = false;
_root.lasergun = false;
_root.canongun = true;
_root.gunname = "canon shot";
_root.amitavafire = 500;
Symbol 461 MovieClip Frame 13
stop();
removeMovieClip(this);
_root.can.att = false;
_root.can._x = -3000;
Symbol 512 MovieClip Frame 23
stop();
Symbol 513 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 2
stop();
Symbol 513 MovieClip Frame 3
stop();
Symbol 514 MovieClip Frame 10
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
Symbol 515 MovieClip Frame 1
_root.sjet1.att = false;
Symbol 515 MovieClip Frame 7
_root.amitavaville = _root.amitavaville + 1;
Symbol 515 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 556 MovieClip Frame 20
stop();
Symbol 557 MovieClip Frame 21
stop();
Symbol 560 MovieClip Frame 1
_root.sjet1.att = false;
Symbol 560 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 560 MovieClip Frame 22
_root.sjet1._x = -950;
_root.sjet1._y = random(575);
_root.sjet1.att = true;
_root.amitavaville = 0;
_root.sjet1.gotoAndStop(1);
Symbol 561 MovieClip Frame 1
stop();
Symbol 561 MovieClip Frame 2
stop();
Symbol 561 MovieClip Frame 3
stop();
Symbol 561 MovieClip Frame 4
stop();
Symbol 562 MovieClip Frame 10
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
Symbol 563 MovieClip Frame 1
_root.sjet1a.att = false;
Symbol 563 MovieClip Frame 7
_root.sjet1a.hit = _root.sjet1a.hit + 1;
Symbol 563 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 565 MovieClip Frame 1
_root.sjet1a.att = false;
Symbol 565 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 565 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 566 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 2
stop();
Symbol 566 MovieClip Frame 3
stop();
Symbol 566 MovieClip Frame 4
stop();
Symbol 577 MovieClip Frame 1
stop();
Symbol 577 MovieClip Frame 2
stop();
Symbol 577 MovieClip Frame 3
stop();
Symbol 582 MovieClip Frame 26
stop();
Symbol 583 MovieClip Frame 2
stop();
Symbol 585 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 15
_root.amithealth = _root.amithealth + 20;
_root.hb._width = _root.hb._width + 40;
Symbol 585 MovieClip Frame 21
stop();
removeMovieClip(this);
_root.health.att = false;
_root.health._x = -3000;
Symbol 587 MovieClip Frame 1
stop();
Symbol 587 MovieClip Frame 2
stop();
Symbol 592 MovieClip Frame 17
c = Math.random() * 360;
_rotation = c;
_xscale = c;
_yscale = c;
stop();
Symbol 595 MovieClip Frame 2
stop();
Symbol 647 MovieClip Frame 23
stop();
Symbol 648 MovieClip Frame 1
stop();
Symbol 648 MovieClip Frame 2
stop();
Symbol 648 MovieClip Frame 3
stop();
Symbol 649 MovieClip Frame 10
_root.tank.truck.gotoAndStop(2);
_root.tank.turret.gotoAndStop(3);
Symbol 650 MovieClip Frame 1
_root.sjet2.att = false;
Symbol 650 MovieClip Frame 7
_root.amitavavillf = _root.amitavavillf + 1;
Symbol 650 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 653 MovieClip Frame 1
_root.sjet2.att = false;
Symbol 653 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 653 MovieClip Frame 21
_root.sjet2._x = -1950;
_root.sjet2._y = random(900);
_root.sjet2.att = true;
_root.amitavavillf = 0;
_root.sjet2.gotoAndStop(1);
Symbol 654 MovieClip Frame 1
stop();
Symbol 654 MovieClip Frame 2
stop();
Symbol 654 MovieClip Frame 3
stop();
Symbol 654 MovieClip Frame 4
stop();
Symbol 655 MovieClip Frame 1
_root.sjet2a.att = false;
Symbol 655 MovieClip Frame 7
_root.sjet2a.hit = _root.sjet2a.hit + 1;
Symbol 655 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 657 MovieClip Frame 1
_root.sjet2a.att = false;
Symbol 657 MovieClip Frame 15
_root.sco = _root.sco + 100;
Symbol 657 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 658 MovieClip Frame 1
stop();
Symbol 658 MovieClip Frame 2
stop();
Symbol 658 MovieClip Frame 3
stop();
Symbol 658 MovieClip Frame 4
stop();
Symbol 661 MovieClip Frame 1
stop();
_root.levup.pl = 1;
Symbol 661 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 661 MovieClip Frame 51
Symbol 680 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(276);
_root.gov.removeMovieClip();
}
Symbol 683 MovieClip Frame 1
stop();
Symbol 683 MovieClip Frame 2
var ssc = _root.sco;
_root.mask.removeMovieClip();
Symbol 683 MovieClip Frame 25
stop();
Mouse.show();