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) {
gotoAndStop (5);
}
Instance of Symbol 11 MovieClip in Frame 1
onClipEvent (enterFrame) {
_xscale = (_root.percentDone * 4);
}
Frame 2
gotoAndPlay (1);
Frame 5
stopAllSounds();
fscommand ("allowscale", false);
i = 0;
while (i < 500) {
_root["bshot" + i].removeMovieClip();
_root["shot" + i].removeMovieClip();
i++;
}
Frame 6
fscommand ("allowscale", false);
Frame 15
fscommand ("allowscale", false);
var amitavaleft = false;
var amitavabomthrow = false;
var amitavaright = false;
var listener = new Object();
listener.onKeyDown = function () {
var _local1 = Key.getCode();
if (_local1 == 65) {
amitavaleft = true;
} else if (_local1 == 83) {
amitavabomthrow = true;
} else if (_local1 == 68) {
amitavaright = true;
}
};
Key.addListener(listener);
listener.onKeyUp = function () {
var _local1 = Key.getCode();
if (_local1 == 65) {
amitavaleft = false;
} else if (_local1 == 83) {
amitavabomthrow = false;
} else if (_local1 == 68) {
amitavaright = false;
}
};
Key.addListener(listener);
var amitavabullet = 40;
var amitavabomb = 5;
var amitavaplay = true;
var sco = 0;
var frm = "2nd";
a = new Sound();
a.attachSound("bomb");
Instance of Symbol 131 MovieClip "back" in Frame 15
onClipEvent (enterFrame) {
_root.kg = _x;
}
Instance of Symbol 133 MovieClip "rotpoint1" in Frame 15
onClipEvent (load) {
function reset() {
_x = xpos;
}
_visible = false;
xpos = _x;
}
onClipEvent (enterFrame) {
if (_root.back.pod.life > 0) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (d > 30) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
_root.back.pod.tur._rotation = deg + 90;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
}
}
Instance of Symbol 165 MovieClip "tank" in Frame 15
onClipEvent (load) {
function reset() {
_x = xpos;
rlimit = 400;
llimit = 300;
}
rlimit = 400;
llimit = 300;
movement = true;
xpos = _x;
}
onClipEvent (mouseDown) {
if (_root.amitavaplay == true) {
if ((shotTimer <= 0) && (_root.amitavabullet > 0)) {
_root.amitavabullet = _root.amitavabullet - 1;
this.turret.gotoAndStop("fir");
shotCount++;
duplicateMovieClip (_parent.shot, "shot" + shotCount, (shotCount % 600) + 6100);
shotTimer = 1;
}
shotTimer--;
}
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (((_root.amitavabomthrow == true) && (shotTimer <= 0)) && (_root.amitavabomb > 0)) {
_root.amitavabomb = _root.amitavabomb - 1;
this.turret.gotoAndStop("fir");
shotCount++;
_root.a.start();
duplicateMovieClip (_parent.bshot, "bshot" + shotCount, (shotCount % 100) + 1100);
shotTimer = 10;
}
shotTimer--;
if ((_root.amitavaleft == true) && (movement == true)) {
if (_x > llimit) {
this._x = this._x - 2;
_root.clp._x = _root.clp._x - 2;
}
if (_root.back._x < 879) {
_root.back._x = _root.back._x + 3;
_root.rotpoint._x = _root.rotpoint._x + 3;
_root.rotpoint1._x = _root.rotpoint1._x + 3;
_root.rotpoint3._x = _root.rotpoint3._x + 3;
_root.rotpoint4._x = _root.rotpoint4._x + 3;
_root.bg._x = _root.bg._x + 0.4;
llimit = 300;
} else {
llimit = 50;
}
}
if (_root.amitavaright == true) {
if (_x < rlimit) {
this._x = this._x + 2;
_root.clp._x = _root.clp._x + 2;
}
if (_root.back._x > -304) {
_root.back._x = _root.back._x - 3;
_root.rotpoint._x = _root.rotpoint._x - 3;
_root.rotpoint1._x = _root.rotpoint1._x - 3;
_root.rotpoint3._x = _root.rotpoint3._x - 3;
_root.rotpoint4._x = _root.rotpoint4._x - 3;
_root.bg._x = _root.bg._x - 0.4;
rlimit = 400;
} else {
rlimit = 550;
}
}
if ((this.hitTest(_root.back.bof) || (this.hitTest(_root.back.bof1))) || (this.hitTest(_root.back.bof2))) {
movement = false;
} else {
movement = true;
}
}
}
Instance of Symbol 166 MovieClip "clp" in Frame 15
onClipEvent (load) {
function reset() {
_x = xpos;
}
xpos = _x;
}
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) + 90;
updateAfterEvent();
}
Instance of Symbol 168 MovieClip "shot" in Frame 15
onClipEvent (load) {
if (String(_name) != "shot") {
cannonLength = 50;
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 (_root.amitavaplay == true) {
if (String(_name) != "shot") {
_x = (_x + xmove);
_y = (_y + ymove);
}
if (_x < -10) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
if (_y > 330) {
removeMovieClip(this);
}
if (_y < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 23) {
if (this.hitTest(_root.back["m" + i])) {
_root.back["m" + i].play();
removeMovieClip(this);
}
i++;
}
if (this.hitTest(_root.back.bof)) {
if (_root.back.bof.life > 0) {
_root.back.bof.life = _root.back.bof.life - 1;
_root.back.bof.inj = false;
_root.back.bof.gotoAndStop(3);
removeMovieClip(this);
} else {
_root.back.bof.gotoAndStop(4);
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.bof1)) {
if (_root.back.bof1.life > 0) {
_root.back.bof1.life = _root.back.bof1.life - 1;
_root.back.bof1.inj = false;
_root.back.bof1.gotoAndStop(3);
removeMovieClip(this);
} else {
_root.back.bof1.gotoAndStop(4);
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.bof2)) {
if (_root.back.bof2.life > 0) {
_root.back.bof2.life = _root.back.bof2.life - 1;
_root.back.bof2.inj = false;
_root.back.bof2.gotoAndStop(3);
removeMovieClip(this);
} else {
_root.back.bof2.gotoAndStop(4);
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.pod.br)) {
if (_root.back.pod.life > 0) {
_root.back.pod.life = _root.back.pod.life - 1;
_root.back.pod.tur.gotoAndStop(2);
removeMovieClip(this);
} else {
_root.back.pod.tur.gotoAndStop(3);
}
}
if (this.hitTest(_root.back.pod1.br)) {
if (_root.back.pod1.life > 0) {
_root.back.pod1.life = _root.back.pod1.life - 1;
_root.back.pod1.tur.gotoAndStop(2);
removeMovieClip(this);
} else {
_root.back.pod1.tur.gotoAndStop(3);
}
}
if (this.hitTest(_root.back.pod2.br)) {
if (_root.back.pod2.life > 0) {
_root.back.pod2.life = _root.back.pod2.life - 1;
_root.back.pod2.tur.gotoAndStop(2);
removeMovieClip(this);
} else {
_root.back.pod2.tur.gotoAndStop(3);
}
}
if (this.hitTest(_root.back.pod3.br)) {
if (_root.back.pod3.life > 0) {
_root.back.pod3.life = _root.back.pod3.life - 1;
_root.back.pod3.tur.gotoAndStop(2);
removeMovieClip(this);
} else {
_root.back.pod3.tur.gotoAndStop(3);
}
}
if (this.hitTest(_root.back.pod4.br)) {
if (_root.back.pod4.life > 0) {
_root.back.pod4.life = _root.back.pod4.life - 1;
_root.back.pod4.tur.gotoAndStop(2);
removeMovieClip(this);
} else {
_root.back.pod4.tur.gotoAndStop(3);
}
}
if (this.hitTest(_root.heli)) {
if (_root.heli.life > 0) {
_root.heli.life = _root.heli.life - 1;
_root.heli.gotoAndStop(2);
removeMovieClip(this);
} else {
_root.heli.gotoAndStop(3);
removeMovieClip(this);
}
}
}
}
Instance of Symbol 170 MovieClip "bshot" in Frame 15
onClipEvent (load) {
if (String(_name) != "bshot") {
cannonLength = 50;
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 (_root.amitavaplay == true) {
if (String(_name) != "bshot") {
_x = (_x + xmove);
_y = (_y + ymove);
}
if (_x < -10) {
removeMovieClip(this);
}
if (_x > 550) {
removeMovieClip(this);
}
if (_y > 330) {
removeMovieClip(this);
}
if (_y < 0) {
removeMovieClip(this);
}
i = 0;
while (i < 23) {
if (this.hitTest(_root.back["m" + i])) {
_root.back["m" + i].play();
removeMovieClip(this);
}
i++;
}
if (this.hitTest(_root.back.bof)) {
if (_root.back.bof.life >= 0) {
_root.back.bof.life = -1;
_root.back.bof.inj = false;
_root.back.bof.gotoAndStop(4);
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.bof1)) {
if (_root.back.bof1.life >= 0) {
_root.back.bof1.life = -1;
_root.back.bof1.inj = false;
_root.back.bof1.gotoAndStop(4);
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.bof2)) {
if (_root.back.bof2.life >= 0) {
_root.back.bof2.life = -1;
_root.back.bof2.inj = false;
_root.back.bof2.gotoAndStop(4);
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.pod.br)) {
if (_root.back.pod.life >= 0) {
_root.back.pod.life = -1;
_root.back.pod.tur.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.pod1.br)) {
if (_root.back.pod1.life >= 0) {
_root.back.pod1.life = -1;
_root.back.pod1.tur.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.pod2.br)) {
if (_root.back.pod2.life >= 0) {
_root.back.pod2.life = -1;
_root.back.pod2.tur.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.pod3.br)) {
if (_root.back.pod3.life >= 0) {
_root.back.pod3.life = -1;
_root.back.pod3.tur.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.pod4.br)) {
if (_root.back.pod4.life >= 0) {
_root.back.pod4.life = -1;
_root.back.pod4.tur.gotoAndStop(3);
removeMovieClip(this);
}
}
if (this.hitTest(_root.heli)) {
_root.heli.gotoAndStop(3);
removeMovieClip(this);
}
}
}
Instance of Symbol 188 MovieClip "heli" in Frame 15
onClipEvent (load) {
function reset() {
this.gotoAndStop(1);
rady = random(150);
_x = 700;
_root.rotpoint2._x = 700;
_y = rady;
_root.rotpoint2._y = rady;
att = false;
count = 0;
st = true;
rad = random(200);
hit = 1;
sn = 1;
fir = false;
life = 2;
}
life = 1;
sn = 1;
att = false;
count = 0;
st = true;
rad = random(200);
hit = 1;
fir = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (st == true) {
count = count + 1;
}
if (count > rad) {
att = true;
}
if (att == true) {
if (sn == 1) {
_root.s.start();
sn = 0;
}
_x = (_x - 3);
_root.rotpoint2._x = _root.rotpoint2._x - 3;
st = false;
}
if (_x < -150) {
_x = 700;
_root.rotpoint2._x = 700;
rady = random(150);
_y = rady;
_root.rotpoint2._y = rady;
att = false;
count = 0;
st = true;
rad = random(200);
hit = 1;
sn = 1;
fir = false;
life = 2;
}
if ((shotTimer <= 0) && (fir == true)) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.hshot, "hshot" + shotCount, (shotCount % 100) + 1100);
shotTimer = 100;
}
shotTimer--;
if (this.hitTest(_root.act2)) {
fir = true;
}
if (this.hitTest(_root.act)) {
fir = false;
}
}
}
Instance of Symbol 189 MovieClip "act" in Frame 15
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 133 MovieClip "rotpoint2" in Frame 15
onClipEvent (load) {
function reset() {
_x = xpos;
}
_visible = false;
xpos = _x;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (d > 30) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
_root.heli.tur._rotation = deg + 90;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
}
}
Instance of Symbol 93 MovieClip "hshot" in Frame 15
onClipEvent (load) {
if (String(_name) != "hshot") {
cannonLength = 30;
turretpoint = _parent.heli._rotation + _parent.heli.tur._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.heli._x);
_y = (ycomponent + _parent.heli._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (String(_name) != "hshot") {
_x = (_x + xmove);
_y = (_y + ymove);
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
}
Instance of Symbol 189 MovieClip "act2" in Frame 15
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 189 MovieClip "act3" in Frame 15
onClipEvent (load) {
_visible = false;
}
Frame 17
fscommand ("allowscale", false);
heli.att = false;
heli.reset();
tank.reset();
clp.reset();
frm = "3rd";
i = 0;
while (i < 200) {
_root["hshot" + i].removeMovieClip();
i++;
}
Instance of Symbol 133 MovieClip "rotpoint3" in Frame 17
onClipEvent (load) {
function reset() {
_x = xpos;
}
_visible = false;
xpos = _x;
}
onClipEvent (enterFrame) {
if (_root.back.pod.life > 0) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (d > 30) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
_root.back.pod.tur._rotation = deg + 90;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
}
}
Instance of Symbol 133 MovieClip "rotpoint4" in Frame 17
onClipEvent (load) {
function reset() {
_x = xpos;
}
_visible = false;
xpos = _x;
}
onClipEvent (enterFrame) {
if (_root.back.pod1.life > 0) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (d > 30) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
_root.back.pod1.tur._rotation = deg + 90;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
}
}
Frame 19
fscommand ("allowscale", false);
heli.att = false;
heli.reset();
tank.reset();
clp.reset();
frm = "4th";
i = 0;
while (i < 200) {
_root["hshot" + i].removeMovieClip();
i++;
}
Instance of Symbol 133 MovieClip "rotpoint1" in Frame 19
onClipEvent (load) {
function reset() {
_x = xpos;
}
_visible = false;
xpos = _x;
}
onClipEvent (enterFrame) {
if (_root.back.pod.life > 0) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (d > 30) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
_root.back.pod.tur._rotation = deg + 90;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
}
}
Instance of Symbol 133 MovieClip "rotpoint" in Frame 19
onClipEvent (load) {
function reset() {
_x = xpos;
}
_visible = false;
xpos = _x;
}
onClipEvent (enterFrame) {
if (_root.back.pod1.life > 0) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (d > 30) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
_root.back.pod1.tur._rotation = deg + 90;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
}
}
Instance of Symbol 133 MovieClip "rotpoint3" in Frame 19
onClipEvent (load) {
function reset() {
_x = xpos;
}
_visible = false;
xpos = _x;
}
onClipEvent (enterFrame) {
if (_root.back.pod2.life > 0) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (d > 30) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
_root.back.pod2.tur._rotation = deg + 90;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
}
}
Frame 21
fscommand ("allowscale", false);
heli.att = false;
heli.reset();
tank.reset();
clp.reset();
frm = "5th";
i = 0;
while (i < 200) {
_root["hshot" + i].removeMovieClip();
i++;
}
Instance of Symbol 133 MovieClip "rotpoint" in Frame 21
onClipEvent (load) {
function reset() {
_x = xpos;
}
_visible = false;
xpos = _x;
}
onClipEvent (enterFrame) {
if (_root.back.pod4.life > 0) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (d > 30) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
_root.back.pod4.tur._rotation = deg + 90;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
}
}
Instance of Symbol 133 MovieClip "rotpoint1" in Frame 21
onClipEvent (load) {
function reset() {
_x = xpos;
}
_visible = false;
xpos = _x;
}
onClipEvent (enterFrame) {
if (_root.back.pod1.life > 0) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (d > 30) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
_root.back.pod1.tur._rotation = deg + 90;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
}
}
Instance of Symbol 133 MovieClip "rotpoint3" in Frame 21
onClipEvent (load) {
function reset() {
_x = xpos;
}
_visible = false;
xpos = _x;
}
onClipEvent (enterFrame) {
if (_root.back.pod2.life > 0) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (d > 30) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
_root.back.pod2.tur._rotation = deg + 90;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
}
}
Instance of Symbol 133 MovieClip "rotpoint4" in Frame 21
onClipEvent (load) {
function reset() {
_x = xpos;
}
_visible = false;
xpos = _x;
}
onClipEvent (enterFrame) {
if (_root.back.pod3.life > 0) {
dx = _x - _root.tank._x;
dy = _y - _root.tank._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (d > 30) {
rad = Math.atan2(dy, dx) + Math.PI;
deg = (rad * 180) / Math.PI;
_rotation = deg;
_root.back.pod3.tur._rotation = deg + 90;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
}
}
Symbol 19 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 20 MovieClip Frame 22
stop();
Symbol 29 Button
on (press) {
gotoAndStop ("1st");
}
Symbol 36 Button
on (press) {
gotoAndStop (6);
}
Symbol 39 MovieClip Frame 12
stop();
Symbol 40 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 42 Button
on (release) {
getURL ("http://www.dailyfreegames.com/free-games.html", "_blank");
}
Symbol 53 Button
on (press) {
gotoAndStop (5);
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 13
stop();
Symbol 77 MovieClip Frame 6
_parent.gotoAndStop(1);
Symbol 85 MovieClip Frame 6
_root.sco = _root.sco + 50;
Symbol 85 MovieClip Frame 7
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Instance of Symbol 88 MovieClip "br" in Symbol 89 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 92 MovieClip Frame 2
stop();
Symbol 96 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 17
c = Math.random() * 360;
_rotation = c;
_xscale = c;
_yscale = c;
stop();
Symbol 105 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 108 MovieClip Frame 6
_parent.gotoAndStop(1);
Symbol 117 MovieClip Frame 6
_root.sco = _root.sco + 50;
Symbol 117 MovieClip Frame 7
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 19
_root.gotoAndStop(_root.frm);
_root.heli.fir = false;
_root.tank.reset();
Symbol 122 MovieClip Frame 20
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 24
_root.amitavabullet = _root.amitavabullet + 30;
Symbol 130 MovieClip Frame 25
stop();
Instance of Symbol 74 MovieClip "m1" in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m2" in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
_root.hb._width = _root.hb._width - 5;
this.play();
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m3" in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
_root.hb._width = _root.hb._width - 5;
this.play();
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m4" in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
_root.hb._width = _root.hb._width - 5;
this.play();
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 89 MovieClip "pod" in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
life = 3;
pl = 1;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.act)) {
att = true;
}
if (att == true) {
if (life > 0) {
if (shotTimer <= 0) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.eshot, "eshot" + shotCount, (shotCount % 100) + 1100);
shotTimer = 100;
}
shotTimer--;
} else if (pl == 1) {
this.tur.gotoAndStop(3);
pl = 0;
}
}
}
}
Instance of Symbol 93 MovieClip "tshot" in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "tshot") {
_x = (_parent.bof._x + 23);
_y = (_parent.bof._y - 23);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "tshot") {
_x = (_x + 20);
timer++;
if (timer > 50) {
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 97 MovieClip "eshot" in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "eshot") {
cannonLength = 10;
turretpoint = _parent.pod._rotation + _parent.pod.tur._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.pod._x);
_y = (ycomponent + _parent.pod._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "eshot") {
_x = (_x + xmove);
_y = (_y + ymove);
timer++;
if (timer > (30 + random(20))) {
_parent.d++;
duplicateMovieClip (_parent.damagedGround, "d" + _parent.d, (_parent.d % 100) + 500);
_parent["d" + _parent.d]._x = _x;
_parent["d" + _parent.d]._y = _y;
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 100 MovieClip "damagedGround" in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_alpha = (_alpha - 2);
}
if (timer > 80) {
_visible = false;
removeMovieClip(this);
}
}
Instance of Symbol 100 MovieClip "tdamagedGround" in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_alpha = (_alpha - 2);
}
if (timer > 80) {
_visible = false;
removeMovieClip(this);
}
}
Instance of Symbol 118 MovieClip "bof" in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
life = 2;
pl = 1;
att = false;
shotTimer = 0;
xpos = _x;
inj = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (this.hitTest(_root.act)) {
att = true;
}
if (att == true) {
if (((_x < (xpos + 400)) && (inj == false)) && (!this.hitTest(_root.tank))) {
_x = (_x + 2);
}
if ((shotTimer <= 0) && (life > 0)) {
bumSound.start();
this.gotoAndStop(2);
shotCount++;
duplicateMovieClip (_parent.tshot, "tshot" + shotCount, (shotCount % 280) + 2800);
shotTimer = 100;
}
shotTimer--;
}
} else if (pl == 1) {
this.gotoAndStop(4);
pl = 0;
}
}
}
Instance of Symbol 122 MovieClip in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.b2)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Instance of Symbol 130 MovieClip in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Symbol 145 MovieClip Frame 4
_root.tank.turret.gotoAndStop(1);
Symbol 147 MovieClip Frame 1
stop();
Instance of Symbol 136 MovieClip in Symbol 156 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._rotation = this._rotation + 45;
}
if (Key.isDown(37)) {
this._rotation = this._rotation - 45;
}
}
Instance of Symbol 136 MovieClip in Symbol 156 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._rotation = this._rotation + 45;
}
if (Key.isDown(37)) {
this._rotation = this._rotation - 45;
}
}
Symbol 156 MovieClip Frame 5
if (_root.hb._width > 2) {
_parent.gotoAndStop(1);
} else {
_root.tank.turret.gotoAndStop(3);
_parent.gotoAndStop(3);
}
Instance of Symbol 136 MovieClip in Symbol 164 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._rotation = this._rotation + 45;
}
if (Key.isDown(37)) {
this._rotation = this._rotation - 45;
}
}
Instance of Symbol 136 MovieClip in Symbol 164 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._rotation = this._rotation + 45;
}
if (Key.isDown(37)) {
this._rotation = this._rotation - 45;
}
}
Symbol 164 MovieClip Frame 2
_root.amitavaplay = false;
Symbol 164 MovieClip Frame 16
_root.gov.play();
Symbol 164 MovieClip Frame 17
stop();
Symbol 165 MovieClip Frame 1
stop();
Instance of Symbol 136 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.amitavaright == true) {
this._rotation = this._rotation + 10;
}
if (_root.amitavaleft == true) {
this._rotation = this._rotation - 10;
}
}
Instance of Symbol 136 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.amitavaright == true) {
this._rotation = this._rotation + 10;
}
if (_root.amitavaleft == true) {
this._rotation = this._rotation - 10;
}
}
Instance of Symbol 138 MovieClip "br" in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 148 MovieClip "b1" in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 148 MovieClip "b2" in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 150 MovieClip "b3" in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 178 MovieClip Frame 6
_parent.gotoAndStop(1);
Symbol 187 MovieClip Frame 6
_root.sco = _root.sco + 100;
_root.heli.reset();
Symbol 187 MovieClip Frame 7
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 211 Button
on (press) {
_root.gotoAndStop(5);
}
Symbol 215 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 2
_root.amitavaplay = false;
var ssc = _root.sco;
Symbol 218 MovieClip Frame 18
stop();
Symbol 225 Button
on (press) {
_root.gotoAndStop(5);
}
Symbol 228 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 2
_root.amimtavaplay = false;
var ssc = _root.sco;
Symbol 230 MovieClip Frame 22
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 12
_root.amitavabomb = _root.amitavabomb + 3;
Symbol 247 MovieClip Frame 13
stop();
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 13
_root.hb._width = 80;
Symbol 253 MovieClip Frame 14
stop();
Instance of Symbol 93 MovieClip "tshot" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "tshot") {
_x = (_parent.bof._x + 23);
_y = (_parent.bof._y - 23);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "tshot") {
_x = (_x + 20);
timer++;
if (timer > 50) {
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 93 MovieClip "tshota" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "tshota") {
_x = (_parent.bof1._x + 23);
_y = (_parent.bof1._y - 23);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "tshota") {
_x = (_x + 20);
timer++;
if (timer > 50) {
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 247 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Instance of Symbol 74 MovieClip "m5" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m6" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m7" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m8" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 89 MovieClip "pod" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
life = 3;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (shotTimer <= 0) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.eshot, "eshot" + shotCount, (shotCount % 100) + 1100);
shotTimer = 100;
}
shotTimer--;
} else if (pl == 1) {
this.tur.gotoAndStop(3);
pl = 0;
}
}
}
Instance of Symbol 89 MovieClip "pod1" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
life = 3;
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (shotTimer <= 0) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.eshota, "eshota" + shotCount, (shotCount % 160) + 1600);
shotTimer = 100;
}
shotTimer--;
} else if (pl == 1) {
this.tur.gotoAndStop(3);
pl = 0;
}
}
}
Instance of Symbol 97 MovieClip "eshot" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "eshot") {
cannonLength = 10;
turretpoint = _parent.pod._rotation + _parent.pod.tur._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.pod._x);
_y = (ycomponent + _parent.pod._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "eshot") {
_x = (_x + xmove);
_y = (_y + ymove);
timer++;
if (timer > (30 + random(20))) {
_parent.d++;
duplicateMovieClip (_parent.damagedGround, "d" + _parent.d, (_parent.d % 100) + 500);
_parent["d" + _parent.d]._x = _x;
_parent["d" + _parent.d]._y = _y;
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 100 MovieClip "damagedGround" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_alpha = (_alpha - 2);
}
if (timer > 80) {
_visible = false;
removeMovieClip(this);
}
}
Instance of Symbol 130 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Instance of Symbol 97 MovieClip "eshota" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "eshota") {
cannonLength = 10;
turretpoint = _parent.pod1._rotation + _parent.pod1.tur._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.pod1._x);
_y = (ycomponent + _parent.pod1._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "eshota") {
_x = (_x + xmove);
_y = (_y + ymove);
timer++;
if (timer > (30 + random(20))) {
_parent.da++;
duplicateMovieClip (_parent.damagedGrounda, "da" + _parent.da, (_parent.da % 100) + 500);
_parent["da" + _parent.da]._x = _x;
_parent["da" + _parent.da]._y = _y;
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 100 MovieClip "damagedGrounda" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_alpha = (_alpha - 2);
}
if (timer > 80) {
_visible = false;
removeMovieClip(this);
}
}
Instance of Symbol 253 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Instance of Symbol 118 MovieClip "bof" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
life = 5;
pl = 1;
att = false;
shotTimer = 0;
xpos = _x;
inj = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (this.hitTest(_root.act)) {
att = true;
}
if (att == true) {
if (((_x < (xpos + 400)) && (inj == false)) && (!this.hitTest(_root.tank))) {
_x = (_x + 2);
}
if ((shotTimer <= 0) && (life > 0)) {
bumSound.start();
this.gotoAndStop(2);
shotCount++;
duplicateMovieClip (_parent.tshot, "tshot" + shotCount, (shotCount % 280) + 2800);
shotTimer = 100;
}
shotTimer--;
}
} else if (pl == 1) {
this.gotoAndStop(4);
pl = 0;
}
}
}
Instance of Symbol 118 MovieClip "bof1" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
life = 3;
att = false;
shotTimer = 0;
xpos = _x;
inj = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (this.hitTest(_root.act)) {
att = true;
}
if (att == true) {
if (((_x < (xpos + 400)) && (inj == false)) && (!this.hitTest(_root.tank))) {
_x = (_x + 2);
}
if ((shotTimer <= 0) && (life > 0)) {
bumSound.start();
this.gotoAndStop(2);
shotCount++;
duplicateMovieClip (_parent.tshota, "tshota" + shotCount, (shotCount % 290) + 2900);
shotTimer = 100;
}
shotTimer--;
}
} else if (pl == 1) {
this.gotoAndStop(4);
pl = 0;
}
}
}
Instance of Symbol 122 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.b2)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Instance of Symbol 93 MovieClip "tshotb" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "tshotb") {
_x = (_parent.bof2._x + 23);
_y = (_parent.bof2._y - 23);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "tshotb") {
_x = (_x + 20);
timer++;
if (timer > 50) {
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 93 MovieClip "tshota" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "tshota") {
_x = (_parent.bof1._x + 23);
_y = (_parent.bof1._y - 23);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "tshota") {
_x = (_x + 20);
timer++;
if (timer > 50) {
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 93 MovieClip "tshot" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "tshot") {
_x = (_parent.bof._x + 23);
_y = (_parent.bof._y - 23);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "tshot") {
_x = (_x + 20);
timer++;
if (timer > 50) {
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 89 MovieClip "pod1" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
life = 3;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (shotTimer <= 0) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.eshotb, "eshotb" + shotCount, (shotCount % 500) + 5100);
shotTimer = 100;
}
shotTimer--;
} else if (pl == 1) {
this.tur.gotoAndStop(3);
pl = 0;
}
}
}
Instance of Symbol 74 MovieClip "m9" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m10" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m12" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m13" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m14" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m15" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 89 MovieClip "pod" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
life = 3;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (shotTimer <= 0) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.eshot, "eshot" + shotCount, (shotCount % 100) + 1100);
shotTimer = 100;
}
shotTimer--;
} else if (pl == 1) {
this.tur.gotoAndStop(3);
pl = 0;
}
}
}
Instance of Symbol 89 MovieClip "pod2" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
life = 3;
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (shotTimer <= 0) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.eshotc, "eshotc" + shotCount, (shotCount % 560) + 5600);
shotTimer = 100;
}
shotTimer--;
} else if (pl == 1) {
this.tur.gotoAndStop(3);
pl = 0;
}
}
}
Instance of Symbol 253 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Instance of Symbol 247 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Instance of Symbol 130 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Instance of Symbol 97 MovieClip "eshot" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "eshot") {
cannonLength = 10;
turretpoint = _parent.pod._rotation + _parent.pod.tur._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.pod._x);
_y = (ycomponent + _parent.pod._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "eshot") {
_x = (_x + xmove);
_y = (_y + ymove);
timer++;
if (timer > (30 + random(20))) {
_parent.d++;
duplicateMovieClip (_parent.damagedGround, "d" + _parent.d, (_parent.d % 100) + 500);
_parent["d" + _parent.d]._x = _x;
_parent["d" + _parent.d]._y = _y;
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 100 MovieClip "damagedGround" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_alpha = (_alpha - 2);
}
if (timer > 80) {
_visible = false;
removeMovieClip(this);
}
}
Instance of Symbol 97 MovieClip "eshotb" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "eshotb") {
cannonLength = 10;
turretpoint = _parent.pod1._rotation + _parent.pod1.tur._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.pod1._x);
_y = (ycomponent + _parent.pod1._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "eshotb") {
_x = (_x + xmove);
_y = (_y + ymove);
timer++;
if (timer > (30 + random(20))) {
_parent.db++;
duplicateMovieClip (_parent.damagedGroundb, "db" + _parent.db, (_parent.db % 100) + 500);
_parent["db" + _parent.db]._x = _x;
_parent["db" + _parent.db]._y = _y;
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 100 MovieClip "damagedGroundb" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_alpha = (_alpha - 2);
}
if (timer > 80) {
_visible = false;
removeMovieClip(this);
}
}
Instance of Symbol 97 MovieClip "eshotc" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "eshotc") {
cannonLength = 10;
turretpoint = _parent.pod2._rotation + _parent.pod2.tur._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.pod2._x);
_y = (ycomponent + _parent.pod2._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "eshotc") {
_x = (_x + xmove);
_y = (_y + ymove);
timer++;
if (timer > (30 + random(20))) {
_parent.dc++;
duplicateMovieClip (_parent.damagedGroundc, "dc" + _parent.dc, (_parent.dc % 100) + 500);
_parent["dc" + _parent.dc]._x = _x;
_parent["dc" + _parent.dc]._y = _y;
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 100 MovieClip "damagedGroundc" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_alpha = (_alpha - 2);
}
if (timer > 80) {
_visible = false;
removeMovieClip(this);
}
}
Instance of Symbol 118 MovieClip "bof" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
life = 5;
att = false;
shotTimer = 0;
xpos = _x;
inj = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (this.hitTest(_root.act)) {
att = true;
}
if (att == true) {
if (((_x < (xpos + 400)) && (inj == false)) && (!this.hitTest(_root.tank))) {
_x = (_x + 2);
}
if ((shotTimer <= 0) && (life > 0)) {
bumSound.start();
this.gotoAndStop(2);
shotCount++;
duplicateMovieClip (_parent.tshot, "tshot" + shotCount, (shotCount % 280) + 2800);
shotTimer = 100;
}
shotTimer--;
}
} else if (pl == 1) {
this.gotoAndStop(4);
pl = 0;
}
}
}
Instance of Symbol 118 MovieClip "bof2" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
life = 3;
att = false;
shotTimer = 0;
xpos = _x;
inj = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (this.hitTest(_root.act)) {
att = true;
}
if (att == true) {
if (((_x < (xpos + 400)) && (inj == false)) && (!this.hitTest(_root.tank))) {
_x = (_x + 2);
}
if ((shotTimer <= 0) && (life > 0)) {
bumSound.start();
this.gotoAndStop(2);
shotCount++;
duplicateMovieClip (_parent.tshotb, "tshotb" + shotCount, (shotCount % 480) + 4800);
shotTimer = 100;
}
shotTimer--;
}
} else if (pl == 1) {
this.gotoAndStop(4);
pl = 0;
}
}
}
Instance of Symbol 118 MovieClip "bof1" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
life = 3;
att = false;
shotTimer = 0;
xpos = _x;
inj = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (this.hitTest(_root.act)) {
att = true;
}
if (att == true) {
if (((_x < (xpos + 400)) && (inj == false)) && (!this.hitTest(_root.tank))) {
_x = (_x + 2);
}
if ((shotTimer <= 0) && (life > 0)) {
bumSound.start();
this.gotoAndStop(2);
shotCount++;
duplicateMovieClip (_parent.tshota, "tshota" + shotCount, (shotCount % 380) + 3800);
shotTimer = 100;
}
shotTimer--;
}
} else if (pl == 1) {
this.gotoAndStop(4);
pl = 0;
}
}
}
Instance of Symbol 122 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.b2)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 19
_root.wel.play();
_root.heli.fir = false;
_root.tank.reset();
Symbol 262 MovieClip Frame 20
stop();
Instance of Symbol 89 MovieClip "pod4" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
life = 3;
att = true;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.act3)) {
att = true;
}
if (life > 0) {
if ((shotTimer <= 0) && (att == true)) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.eshot, "eshot" + shotCount, (shotCount % 690) + 6900);
shotTimer = 100;
}
shotTimer--;
} else if (pl == 1) {
this.tur.gotoAndStop(3);
pl = 0;
}
}
}
Instance of Symbol 74 MovieClip "m16" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m17" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m18" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m19" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m20" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
Instance of Symbol 74 MovieClip "m21" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 74 MovieClip "m22" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
pl = 0;
}
}
}
}
Instance of Symbol 89 MovieClip "pod1" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
life = 3;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.act3)) {
att = true;
}
if (life > 0) {
if ((shotTimer <= 0) && (att == true)) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.eshota, "eshota" + shotCount, (shotCount % 420) + 2300);
shotTimer = 100;
}
shotTimer--;
} else if (pl == 1) {
this.tur.gotoAndStop(3);
pl = 0;
}
}
}
Instance of Symbol 89 MovieClip "pod3" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
life = 3;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.act3)) {
att = true;
}
if (life > 0) {
if ((shotTimer <= 0) && (att == true)) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.eshotc, "eshotc" + shotCount, (shotCount % 580) + 5800);
shotTimer = 100;
}
shotTimer--;
} else if (pl == 1) {
this.tur.gotoAndStop(3);
pl = 0;
}
}
}
Instance of Symbol 89 MovieClip "pod2" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
life = 3;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this.hitTest(_root.act3)) {
att = true;
}
if (life > 0) {
if ((shotTimer <= 0) && (att == true)) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.eshotb, "eshotb" + shotCount, (shotCount % 480) + 2800);
shotTimer = 100;
}
shotTimer--;
} else if (pl == 1) {
this.tur.gotoAndStop(3);
pl = 0;
}
}
}
Instance of Symbol 97 MovieClip "eshot" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "eshot") {
cannonLength = 10;
turretpoint = _parent.pod4._rotation + _parent.pod4.tur._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.pod4._x);
_y = (ycomponent + _parent.pod4._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "eshot") {
_x = (_x + xmove);
_y = (_y + ymove);
timer++;
if (timer > (30 + random(20))) {
_parent.d++;
duplicateMovieClip (_parent.damagedGround, "d" + _parent.d, (_parent.d % 100) + 500);
_parent["d" + _parent.d]._x = _x;
_parent["d" + _parent.d]._y = _y;
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 100 MovieClip "damagedGround" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_alpha = (_alpha - 2);
}
if (timer > 80) {
_visible = false;
removeMovieClip(this);
}
}
Instance of Symbol 97 MovieClip "eshota" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "eshota") {
cannonLength = 10;
turretpoint = _parent.pod1._rotation + _parent.pod1.tur._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.pod1._x);
_y = (ycomponent + _parent.pod1._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (String(_name) != "eshota") {
_x = (_x + xmove);
_y = (_y + ymove);
timer++;
if (timer > (30 + random(20))) {
_parent.d++;
duplicateMovieClip (_parent.damagedGrounda, "da" + _parent.da, (_parent.da % 100) + 500);
_parent["da" + _parent.da]._x = _x;
_parent["da" + _parent.da]._y = _y;
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
}
Instance of Symbol 100 MovieClip "damagedGroundb" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_alpha = (_alpha - 2);
}
if (timer > 80) {
_visible = false;
removeMovieClip(this);
}
}
Instance of Symbol 97 MovieClip "eshotb" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "eshotb") {
cannonLength = 10;
turretpoint = _parent.pod2._rotation + _parent.pod2.tur._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.pod2._x);
_y = (ycomponent + _parent.pod2._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (String(_name) != "eshotb") {
_x = (_x + xmove);
_y = (_y + ymove);
timer++;
if (timer > (30 + random(20))) {
_parent.db++;
duplicateMovieClip (_parent.damagedGroundb, "db" + _parent.db, (_parent.db % 100) + 500);
_parent["db" + _parent.db]._x = _x;
_parent["db" + _parent.da]._y = _y;
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
}
Instance of Symbol 100 MovieClip "damagedGroundb" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_alpha = (_alpha - 2);
}
if (timer > 80) {
_visible = false;
removeMovieClip(this);
}
}
Instance of Symbol 97 MovieClip "eshotc" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "eshotc") {
cannonLength = 10;
turretpoint = _parent.pod3._rotation + _parent.pod3.tur._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.pod3._x);
_y = (ycomponent + _parent.pod3._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (String(_name) != "eshotc") {
_x = (_x + xmove);
_y = (_y + ymove);
timer++;
if (timer > (30 + random(20))) {
_parent.dc++;
duplicateMovieClip (_parent.damagedGroundc, "dc" + _parent.dc, (_parent.dc % 100) + 500);
_parent["dc" + _parent.dc]._x = _x;
_parent["dc" + _parent.dc]._y = _y;
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
}
Instance of Symbol 100 MovieClip "damagedGroundc" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_alpha = (_alpha - 2);
}
if (timer > 80) {
_visible = false;
removeMovieClip(this);
}
}
Instance of Symbol 247 MovieClip in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Instance of Symbol 130 MovieClip in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Instance of Symbol 253 MovieClip in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Instance of Symbol 118 MovieClip "bof" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
life = 5;
att = false;
shotTimer = 0;
xpos = _x;
inj = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (this.hitTest(_root.act)) {
att = true;
}
if (att == true) {
if (((_x < (xpos + 400)) && (inj == false)) && (!this.hitTest(_root.tank))) {
_x = (_x + 2);
}
if ((shotTimer <= 0) && (life > 0)) {
bumSound.start();
this.gotoAndStop(2);
shotCount++;
duplicateMovieClip (_parent.tshot, "tshot" + shotCount, (shotCount % 280) + 2800);
shotTimer = 100;
}
shotTimer--;
}
} else if (pl == 1) {
this.gotoAndStop(4);
pl = 0;
}
}
}
Instance of Symbol 118 MovieClip "bof2" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
life = 5;
att = false;
shotTimer = 0;
xpos = _x;
inj = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (this.hitTest(_root.act)) {
att = true;
}
if (att == true) {
if (((_x < (xpos + 400)) && (inj == false)) && (!this.hitTest(_root.tank))) {
_x = (_x + 2);
}
if ((shotTimer <= 0) && (life > 0)) {
bumSound.start();
this.gotoAndStop(2);
shotCount++;
duplicateMovieClip (_parent.tshotb, "tshotb" + shotCount, (shotCount % 880) + 8800);
shotTimer = 100;
}
shotTimer--;
}
} else if (pl == 1) {
this.gotoAndStop(4);
pl = 0;
}
}
}
Instance of Symbol 118 MovieClip "bof1" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
life = 5;
att = false;
shotTimer = 0;
xpos = _x;
inj = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (life > 0) {
if (this.hitTest(_root.act)) {
att = true;
}
if (att == true) {
if (((_x < (xpos + 400)) && (inj == false)) && (!this.hitTest(_root.tank))) {
_x = (_x + 2);
}
if ((shotTimer <= 0) && (life > 0)) {
bumSound.start();
this.gotoAndStop(2);
shotCount++;
duplicateMovieClip (_parent.tshota, "tshota" + shotCount, (shotCount % 580) + 5800);
shotTimer = 100;
}
shotTimer--;
}
} else if (pl == 1) {
this.gotoAndStop(4);
pl = 0;
}
}
}
Instance of Symbol 262 MovieClip in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.b2)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Instance of Symbol 93 MovieClip "tshot" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "tshot") {
_x = (_parent.bof._x + 23);
_y = (_parent.bof._y - 23);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "tshot") {
_x = (_x + 20);
timer++;
if (timer > 50) {
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 93 MovieClip "tshota" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "tshota") {
_x = (_parent.bof1._x + 23);
_y = (_parent.bof1._y - 23);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "tshota") {
_x = (_x + 20);
timer++;
if (timer > 50) {
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}
Instance of Symbol 93 MovieClip "tshotb" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
if (String(_name) != "tshotb") {
_x = (_parent.bof2._x + 23);
_y = (_parent.bof2._y - 23);
}
}
onClipEvent (enterFrame) {
if (String(_name) != "tshotb") {
_x = (_x + 20);
timer++;
if (timer > 50) {
removeMovieClip(this);
}
}
if ((this.hitTest(_root.tank.b1) || (this.hitTest(_root.tank.b2))) || (this.hitTest(_root.tank.b3))) {
_root.hb._width = _root.hb._width - 5;
_root.tank.gotoAndStop(2);
removeMovieClip(this);
}
}