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 (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Frame 5
var del = true;
Mouse.show();
fscommand ("allowscale", false);
stopAllSounds();
Instance of Symbol 73 MovieClip in Frame 5
onClipEvent (enterFrame) {
_root.wat.removeMovieClip();
}
Frame 6
fscommand ("allowscale", false);
Frame 15
var herohita = false;
var herohitb = false;
var herohitc = false;
var listener = new Object();
listener.onKeyDown = function () {
var _local1 = Key.getCode();
if (_local1 == 65) {
herohita = true;
} else if (_local1 == 83) {
herohitb = true;
} else if (_local1 == 68) {
herohitc = true;
}
};
Key.addListener(listener);
listener.onKeyUp = function () {
var _local1 = Key.getCode();
if (_local1 == 65) {
herohita = false;
} else if (_local1 == 83) {
herohitb = false;
} else if (_local1 == 68) {
herohitc = false;
}
};
Key.addListener(listener);
var amitavaplay = true;
var amitavalevel = 1;
var amitavaterget = 1000;
var amitavasubmerine = 10;
var sco = 0;
var helidis = 0;
var subdis = 0;
var missile = 10;
var enemynum = 0;
_root.del = false;
s = new Sound();
s.attachSound("cop");
bumSound = new Sound();
bumSound.attachSound("fir");
mis = new Sound();
mis.attachSound("bum");
en = new Sound();
en.attachSound("enf");
_quality = "MEDIUM";
fscommand ("allowscale", false);
Instance of Symbol 128 MovieClip "tank" in Frame 15
onClipEvent (load) {
die = false;
}
onClipEvent (mouseDown) {
if (_root.amitavaplay == true) {
if (((shotTimer <= 0) && (this.turret._rotation > -95)) && (this.turret._rotation < 76)) {
this.turret.gotoAndStop(2);
_root.ter.gotoAndStop(1);
_root.bumSound.start();
shotCount++;
duplicateMovieClip (_parent.shot, "shot" + shotCount, (shotCount % 100) + 1100);
shotTimer = 1;
} else {
_root.ter.gotoAndStop(2);
}
shotTimer--;
}
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if ((_root.herohitc == true) && (_x < 530)) {
_x = (_x + 4);
_root.scp._x = _root.scp._x + 4;
} else if ((_root.herohita == true) && (_x > 50)) {
_x = (_x - 4);
_root.scp._x = _root.scp._x - 4;
}
if (((_root.herohitb == true) && (shotTimera <= 0)) && (_root.missile > 0)) {
_root.mis.start();
_root.missile = _root.missile - 1;
shotCounta++;
duplicateMovieClip (_parent.shota, "shota" + shotCounta, (shotCounta % 300) + 1300);
shotTimera = 15;
}
shotTimera--;
}
}
Instance of Symbol 130 MovieClip "shota" in Frame 15
onClipEvent (load) {
if (String(_name) != "shota") {
laga = 0;
_x = (_root.tank._x + 20);
_y = (_root.tank._y + 20);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.s1)) {
if (_root.s1.att == true) {
_root.s1.att = false;
_root.s1.gotoAndStop(3);
this.play();
laga = 1;
}
}
if (this.hitTest(_root.s2)) {
if (_root.s2.att == true) {
_root.s2.att = false;
_root.s2.gotoAndStop(3);
this.play();
laga = 1;
}
}
if (this.hitTest(_root.s3)) {
if (_root.s3.att == true) {
_root.s3.att = false;
_root.s3.gotoAndStop(3);
this.play();
laga = 1;
}
}
if (this.hitTest(_root.s4)) {
if (_root.s4.att == true) {
_root.s4.att = false;
_root.s4.gotoAndStop(3);
this.play();
laga = 1;
}
}
if (this._y < 0) {
removeMovieClip(this);
}
if (this._y > 518) {
laga = 1;
this.play();
}
if (this._x < 15) {
removeMovieClip(this);
}
if (this._x > 565) {
removeMovieClip(this);
}
if ((String(_name) != "shota") && (laga == 0)) {
_y = (_y + 3);
}
}
Instance of Symbol 98 MovieClip "shot" in Frame 15
onClipEvent (load) {
if (String(_name) != "shot") {
cannonLength = 20;
turretpoint = _parent.tank._rotation + _parent.tank.turret._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.tank._x);
_y = (ycomponent + _parent.tank._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.e1)) {
if (_root.e1.life > 0) {
_root.e1.life = _root.e1.life - 1;
_root.e1.gotoAndStop(3);
removeMovieClip(this);
} else {
_root.e1.att = false;
_root.e1.gotoAndStop(4);
removeMovieClip(this);
}
}
if (this.hitTest(_root.e2)) {
if (_root.e2.life > 0) {
_root.e2.life = _root.e2.life - 1;
_root.e2.gotoAndStop(3);
removeMovieClip(this);
} else {
_root.e2.att = false;
_root.e2.gotoAndStop(4);
removeMovieClip(this);
}
}
if (this.hitTest(_root.e3)) {
if (_root.e3.life > 0) {
_root.e3.life = _root.e3.life - 1;
_root.e3.gotoAndStop(3);
removeMovieClip(this);
} else {
_root.e3.att = false;
_root.e3.gotoAndStop(4);
removeMovieClip(this);
}
}
if (this.hitTest(_root.e4)) {
if (_root.e4.life > 0) {
_root.e4.life = _root.e4.life - 1;
_root.e4.gotoAndStop(3);
removeMovieClip(this);
} else {
_root.e4.att = false;
_root.e4.gotoAndStop(4);
removeMovieClip(this);
}
}
if (this._y < 0) {
removeMovieClip(this);
}
if (this._y > 585) {
removeMovieClip(this);
}
if (this._x < 15) {
removeMovieClip(this);
}
if (this._x > 565) {
removeMovieClip(this);
}
if (String(_name) != "shot") {
_x = (_x + xmove);
_y = (_y + ymove);
}
}
Instance of Symbol 131 MovieClip "scp" in Frame 15
onClipEvent (load) {
rot = true;
_root.tank.turret._rotation = 60;
}
onClipEvent (mouseMove) {
if (rot == true) {
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();
}
}
onClipEvent (enterFrame) {
peg = Math.round(_root.tank.turret._rotation);
}
Instance of Symbol 147 MovieClip "e1" in Frame 15
onClipEvent (load) {
function reset() {
if (_root.amitavalevel < 8) {
att = true;
}
_x = 700;
_y = random(200);
if (_y < 45) {
_y = (_y + 50);
}
life = 5;
fir = 1;
sn = 1;
this.gotoAndStop(1);
}
sn = 1;
_y = random(200);
if (_y < 45) {
_y = (_y + 50);
}
att = true;
fir = 1;
life = 5;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this._x < 575) {
if (sn == 1) {
_root.s.start();
sn = 0;
}
}
if (att == true) {
_x = (_x - 3);
if (_x < -50) {
_x = 700;
_y = random(200);
if (_y < 45) {
_y = (_y + 50);
}
fir = 1;
life = 5;
sn = 1;
}
}
if ((_x <= (_root.tank._x + 5)) && (shotTimer <= 0)) {
if ((fir == 1) && (life > 0)) {
_root.en.start();
shotCount++;
duplicateMovieClip (_parent.eshota, "eshota" + shotCount, (shotCount % 200) + 2100);
shotTimer = 10;
fir = 0;
}
}
shotTimer--;
treadcheck++;
if (treadcheck > 2) {
treadcount++;
duplicateMovieClip (_root.htread, "htread" + treadcount, (treadcount % 600) + 6000);
treadcheck = 0;
}
}
}
Instance of Symbol 165 MovieClip "s1" in Frame 15
onClipEvent (load) {
function reset() {
if (_root.amitavalevel < 8) {
att = true;
}
_x = 700;
radnum = random(190);
_y = (radnum + 310);
fir = 1;
life = 5;
fir = 1;
this.gotoAndStop(1);
}
att = true;
radnum = random(190);
_y = (radnum + 310);
fir = 1;
life = 5;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (att == true) {
_x = (_x - 3);
if (_x < -50) {
_x = 700;
radnum = random(190);
_y = (radnum + 310);
fir = 1;
}
}
if (((_x <= (_root.tank._x + 5)) && (shotTimer <= 0)) && (att == true)) {
if (fir == 1) {
shotCount++;
duplicateMovieClip (_parent.sshota, "sshota" + shotCount, (shotCount % 300) + 2550);
shotTimer = 10;
fir = 0;
}
}
shotTimer--;
treadcheck++;
if (treadcheck > 2) {
treadcount++;
duplicateMovieClip (_root.tread, "tread" + treadcount, (treadcount % 100) + 1000);
treadcheck = 0;
}
}
}
Instance of Symbol 169 MovieClip "sshota" in Frame 15
onClipEvent (load) {
if (String(_name) != "sshota") {
fata = 1;
laga = 0;
_x = (_root.s1._x + 5);
_y = _root.s1._y;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br) && (fata == 1)) {
if (_root.tank.die == false) {
_root.tank.gotoAndStop(3);
this.play();
laga = 1;
posx = _x;
_root.tank.die = true;
}
}
if (this._y < 254) {
this.play();
fata = 0;
}
if (this._y > 585) {
removeMovieClip(this);
}
if (this._x < 15) {
removeMovieClip(this);
}
if (this._x > 565) {
removeMovieClip(this);
}
if ((String(_name) != "sshota") && (laga == 0)) {
_y = (_y - 2);
}
}
Instance of Symbol 147 MovieClip "e2" in Frame 15
onClipEvent (load) {
function reset() {
if (_root.amitavalevel < 8) {
att = true;
}
_x = -300;
_y = random(200);
if (_y < 45) {
_y = (_y + 50);
}
life = 5;
fir = 1;
sn = 1;
this.gotoAndStop(1);
}
sn = 1;
_y = random(200);
if (_y < 45) {
_y = (_y + 50);
}
att = true;
life = 5;
fir = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (this._x > 0) {
if (sn == 1) {
_root.s.start();
sn = 0;
}
}
if (att == true) {
_x = (_x + 3);
if (_x > 600) {
_x = -300;
_y = random(200);
if (_y < 45) {
_y = (_y + 50);
}
fir = 1;
life = 5;
sn = 1;
}
}
if ((_x >= (_root.tank._x + 5)) && (shotTimer <= 0)) {
if ((fir == 1) && (life > 0)) {
_root.en.start();
shotCount++;
duplicateMovieClip (_parent.eshotb, "eshotb" + shotCount, (shotCount % 230) + 2150);
shotTimer = 10;
fir = 0;
}
}
shotTimer--;
treadcheck++;
if (treadcheck > 2) {
treadcount++;
duplicateMovieClip (_root.htreada, "htreada" + treadcount, (treadcount % 800) + 8000);
treadcheck = 0;
}
}
}
Instance of Symbol 172 MovieClip "eshota" in Frame 15
onClipEvent (load) {
if (String(_name) != "eshota") {
laga = 0;
_x = _root.e1._x;
_y = _root.e1._y;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (_root.tank.die == false) {
_root.tank.gotoAndStop(3);
this.play();
laga = 1;
posx = _x;
_root.tank.die = true;
}
}
if (this._y < 0) {
removeMovieClip(this);
}
if (this._y > 510) {
laga = 1;
this.play();
}
if (this._x < 15) {
removeMovieClip(this);
}
if (this._x > 565) {
removeMovieClip(this);
}
if ((String(_name) != "eshota") && (laga == 0)) {
_y = (_y + 5);
}
}
Instance of Symbol 172 MovieClip "eshotb" in Frame 15
onClipEvent (load) {
if (String(_name) != "eshotb") {
laga = 0;
_x = _root.e2._x;
_y = _root.e2._y;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (_root.tank.die == false) {
_root.tank.gotoAndStop(3);
this.play();
laga = 1;
posx = _x;
_root.tank.die = true;
}
}
if (this._y < 0) {
removeMovieClip(this);
}
if (this._y > 510) {
laga = 1;
this.play();
}
if (this._x < 15) {
removeMovieClip(this);
}
if (this._x > 565) {
removeMovieClip(this);
}
if ((String(_name) != "eshotb") && (laga == 0)) {
_y = (_y + 5);
}
}
Instance of Symbol 165 MovieClip "s2" in Frame 15
onClipEvent (load) {
function reset() {
if (_root.amitavalevel < 8) {
att = true;
}
_x = 700;
radnum = random(190);
_y = (radnum + 310);
fir = 1;
life = 5;
fir = 1;
this.gotoAndStop(1);
}
pl = 1;
att = false;
radnum = random(190);
_y = (radnum + 310);
fir = 1;
life = 5;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.amitavalevel == 2) {
if (pl == 1) {
att = true;
pl = 0;
}
}
if (att == true) {
_x = (_x - 4);
if (_x < -50) {
_x = 700;
radnum = random(190);
_y = (radnum + 310);
fir = 1;
}
}
if (((_x <= (_root.tank._x + 5)) && (shotTimer <= 0)) && (att == true)) {
if (fir == 1) {
shotCount++;
duplicateMovieClip (_parent.sshotb, "sshotb" + shotCount, (shotCount % 320) + 2580);
shotTimer = 10;
fir = 0;
}
}
shotTimer--;
treadcheck++;
if (treadcheck > 2) {
treadcount++;
duplicateMovieClip (_root.treada, "treada" + treadcount, (treadcount % 1000) + 2500);
treadcheck = 0;
}
}
}
Instance of Symbol 165 MovieClip "s3" in Frame 15
onClipEvent (load) {
function reset() {
if (_root.amitavalevel < 8) {
att = true;
}
_x = 700;
radnum = random(190);
_y = (radnum + 310);
fir = 1;
life = 5;
fir = 1;
this.gotoAndStop(1);
}
pl = 1;
att = false;
radnum = random(190);
_y = (radnum + 310);
fir = 1;
life = 5;
}
onClipEvent (enterFrame) {
if (_root.amitavalevel == 4) {
if (pl == 1) {
att = true;
pl = 0;
}
}
if (_root.amitavaplay == true) {
if (att == true) {
_x = (_x + 5);
if (_x > 650) {
_x = -500;
radnum = random(190);
_y = (radnum + 310);
fir = 1;
}
}
if (((_x >= (_root.tank._x + 5)) && (shotTimer <= 0)) && (att == true)) {
if (fir == 1) {
shotCount++;
duplicateMovieClip (_parent.sshotc, "sshotc" + shotCount, (shotCount % 360) + 2600);
shotTimer = 10;
fir = 0;
}
}
shotTimer--;
treadcheck++;
if (treadcheck > 2) {
treadcount++;
duplicateMovieClip (_root.treadb, "treadb" + treadcount, (treadcount % 1500) + 15000);
treadcheck = 0;
}
}
}
Instance of Symbol 169 MovieClip "sshotb" in Frame 15
onClipEvent (load) {
if (String(_name) != "sshotb") {
fata = 1;
laga = 0;
_x = (_root.s2._x + 5);
_y = _root.s2._y;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br) && (fata == 1)) {
if (_root.tank.die == false) {
_root.tank.gotoAndStop(3);
this.play();
laga = 1;
posx = _x;
_root.tank.die = true;
}
}
if (this._y < 254) {
this.play();
fata = 0;
}
if (this._y > 585) {
removeMovieClip(this);
}
if (this._x < 15) {
removeMovieClip(this);
}
if (this._x > 565) {
removeMovieClip(this);
}
if ((String(_name) != "sshotb") && (laga == 0)) {
_y = (_y - 2);
}
}
Instance of Symbol 147 MovieClip "e3" in Frame 15
onClipEvent (load) {
function reset() {
if (_root.amitavalevel < 8) {
att = true;
}
_x = 700;
_y = random(200);
if (_y < 45) {
_y = (_y + 50);
}
life = 5;
fir = 1;
sn = 1;
this.gotoAndStop(1);
}
pl = 1;
sn = 1;
_y = random(200);
if (_y < 45) {
_y = (_y + 50);
}
att = false;
fir = 1;
life = 5;
}
onClipEvent (enterFrame) {
if (_root.amitavalevel == 6) {
if (pl == 1) {
att = true;
pl = 0;
}
}
if (_root.amitavaplay == true) {
if (this._x < 575) {
if (sn == 1) {
_root.s.start();
sn = 0;
}
}
if (att == true) {
_x = (_x - 4);
if (_x < -50) {
_x = 700;
_y = random(200);
if (_y < 45) {
_y = (_y + 50);
}
fir = 1;
life = 5;
sn = 1;
}
}
if ((_x <= (_root.tank._x + 5)) && (shotTimer <= 0)) {
if ((fir == 1) && (life > 0)) {
_root.en.start();
shotCount++;
duplicateMovieClip (_parent.eshotc, "eshotc" + shotCount, (shotCount % 250) + 2250);
shotTimer = 10;
fir = 0;
}
}
shotTimer--;
treadcheck++;
if (treadcheck > 2) {
treadcount++;
duplicateMovieClip (_root.htreadb, "htreadb" + treadcount, (treadcount % 1400) + 14000);
treadcheck = 0;
}
}
}
Instance of Symbol 172 MovieClip "eshotc" in Frame 15
onClipEvent (load) {
if (String(_name) != "eshotc") {
laga = 0;
_x = _root.e3._x;
_y = _root.e3._y;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (_root.tank.die == false) {
_root.tank.gotoAndStop(3);
this.play();
laga = 1;
posx = _x;
_root.tank.die = true;
}
}
if (this._y < 0) {
removeMovieClip(this);
}
if (this._y > 510) {
laga = 1;
this.play();
}
if (this._x < 15) {
removeMovieClip(this);
}
if (this._x > 565) {
removeMovieClip(this);
}
if ((String(_name) != "eshotc") && (laga == 0)) {
_y = (_y + 5);
}
}
Instance of Symbol 169 MovieClip "sshotc" in Frame 15
onClipEvent (load) {
if (String(_name) != "sshotc") {
fata = 1;
laga = 0;
_x = (_root.s3._x - 5);
_y = _root.s3._y;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br) && (fata == 1)) {
if (_root.tank.die == false) {
_root.tank.gotoAndStop(3);
this.play();
laga = 1;
posx = _x;
_root.tank.die = true;
}
}
if (this._y < 254) {
this.play();
fata = 0;
}
if (this._y > 585) {
removeMovieClip(this);
}
if (this._x < 15) {
removeMovieClip(this);
}
if (this._x > 565) {
removeMovieClip(this);
}
if ((String(_name) != "sshotc") && (laga == 0)) {
_y = (_y - 2);
}
}
Instance of Symbol 147 MovieClip "e4" in Frame 15
onClipEvent (load) {
function reset() {
if (_root.amitavalevel < 8) {
att = true;
}
_x = -300;
_y = random(200);
if (_y < 45) {
_y = (_y + 50);
}
life = 5;
fir = 1;
sn = 1;
this.gotoAndStop(1);
}
pl = 1;
sn = 1;
_y = random(200);
if (_y < 45) {
_y = (_y + 50);
}
att = false;
life = 5;
fir = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavalevel == 5) {
if (pl == 1) {
att = true;
pl = 0;
}
}
if (_root.amitavaplay == true) {
if (this._x > 0) {
if (sn == 1) {
_root.s.start();
sn = 0;
}
}
if (att == true) {
_x = (_x + 5);
if (_x > 600) {
_x = -300;
_y = random(200);
if (_y < 45) {
_y = (_y + 50);
}
fir = 1;
life = 5;
sn = 1;
}
}
if ((_x >= (_root.tank._x + 5)) && (shotTimer <= 0)) {
if ((fir == 1) && (life > 0)) {
_root.en.start();
shotCount++;
duplicateMovieClip (_parent.eshotd, "eshotd" + shotCount, (shotCount % 280) + 2450);
shotTimer = 10;
fir = 0;
}
}
shotTimer--;
treadcheck++;
if (treadcheck > 2) {
treadcount++;
duplicateMovieClip (_root.htreadc, "htreadc" + treadcount, (treadcount % 850) + 8500);
treadcheck = 0;
}
}
}
Instance of Symbol 172 MovieClip "eshotd" in Frame 15
onClipEvent (load) {
if (String(_name) != "eshotd") {
laga = 0;
_x = _root.e4._x;
_y = _root.e4._y;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br)) {
if (_root.tank.die == false) {
_root.tank.gotoAndStop(3);
this.play();
laga = 1;
posx = _x;
_root.tank.die = true;
}
}
if (this._y < 0) {
removeMovieClip(this);
}
if (this._y > 510) {
laga = 1;
this.play();
}
if (this._x < 15) {
removeMovieClip(this);
}
if (this._x > 565) {
removeMovieClip(this);
}
if ((String(_name) != "eshotd") && (laga == 0)) {
_y = (_y + 5);
}
}
Instance of Symbol 165 MovieClip "s4" in Frame 15
onClipEvent (load) {
function reset() {
if (_root.amitavalevel < 8) {
att = true;
}
_x = 700;
radnum = random(190);
_y = (radnum + 310);
fir = 1;
life = 5;
fir = 1;
this.gotoAndStop(1);
}
pl = 1;
att = false;
radnum = random(190);
_y = (radnum + 310);
fir = 1;
life = 5;
}
onClipEvent (enterFrame) {
if (_root.amitavalevel == 6) {
if (pl == 1) {
att = true;
pl = 0;
}
}
if (_root.amitavaplay == true) {
if (att == true) {
_x = (_x + 4);
if (_x > 650) {
_x = -500;
radnum = random(190);
_y = (radnum + 310);
fir = 1;
}
}
if (((_x >= (_root.tank._x + 5)) && (shotTimer <= 0)) && (att == true)) {
if (fir == 1) {
shotCount++;
duplicateMovieClip (_parent.sshotd, "sshotd" + shotCount, (shotCount % 380) + 2620);
shotTimer = 10;
fir = 0;
}
}
shotTimer--;
treadcheck++;
if (treadcheck > 2) {
treadcount++;
duplicateMovieClip (_root.treadc, "treadc" + treadcount, (treadcount % 3500) + 35000);
treadcheck = 0;
}
}
}
Instance of Symbol 169 MovieClip "sshotd" in Frame 15
onClipEvent (load) {
if (String(_name) != "sshotd") {
fata = 1;
laga = 0;
_x = (_root.s4._x - 5);
_y = _root.s4._y;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank.br) && (fata == 1)) {
if (_root.tank.die == false) {
_root.tank.gotoAndStop(3);
this.play();
laga = 1;
posx = _x;
_root.tank.die = true;
}
}
if (this._y < 254) {
this.play();
fata = 0;
}
if (this._y > 585) {
removeMovieClip(this);
}
if (this._x < 15) {
removeMovieClip(this);
}
if (this._x > 565) {
removeMovieClip(this);
}
if ((String(_name) != "sshotd") && (laga == 0)) {
_y = (_y - 2);
}
}
Instance of Symbol 174 MovieClip "tread" in Frame 15
onClipEvent (load) {
pl = 1;
_alpha = 100;
_rotation = _parent.s1._rotation;
_x = (_parent.s1._x + 50);
_y = (_parent.s1._y + 10);
}
onClipEvent (enterFrame) {
if (pl == 1) {
_width = random(10);
if (_width < 2) {
_width = (_width + 2);
}
_height = random(10);
if (_height < 2) {
_height = (_height + 2);
}
pl = 0;
}
timer++;
_y = (_y - random(3));
if (timer > 10) {
_alpha = (_alpha - 2);
}
if (timer > 50) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 177 MovieClip "htread" in Frame 15
onClipEvent (load) {
pl = 1;
_alpha = 100;
_rotation = _parent.e1._rotation;
_x = _parent.e1._x;
_y = _parent.e1._y;
}
onClipEvent (enterFrame) {
if (pl == 1) {
_width = random(20);
if (_width < 2) {
_width = (_width + 2);
}
_height = random(20);
if (_height < 2) {
_height = (_height + 2);
}
pl = 0;
}
timer++;
_y = (_y - 1);
if (timer > 10) {
_alpha = (_alpha - 2);
}
if (timer > 50) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 177 MovieClip "htreada" in Frame 15
onClipEvent (load) {
pl = 1;
_alpha = 100;
_rotation = _parent.e2._rotation;
_x = _parent.e2._x;
_y = _parent.e2._y;
}
onClipEvent (enterFrame) {
if (pl == 1) {
_width = random(20);
if (_width < 2) {
_width = (_width + 2);
}
_height = random(20);
if (_height < 2) {
_height = (_height + 2);
}
pl = 0;
}
timer++;
_y = (_y - 1);
if (timer > 10) {
_alpha = (_alpha - 2);
}
if (timer > 50) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 183 MovieClip "ter" in Frame 15
onClipEvent (load) {
Mouse.hide();
startDrag ("", true);
}
onClipEvent (enterFrame) {
}
Instance of Symbol 174 MovieClip "treada" in Frame 15
onClipEvent (load) {
pl = 1;
_alpha = 100;
_rotation = _parent.s2._rotation;
_x = (_parent.s2._x + 50);
_y = (_parent.s2._y + 10);
}
onClipEvent (enterFrame) {
if (pl == 1) {
_width = random(10);
if (_width < 2) {
_width = (_width + 2);
}
_height = random(10);
if (_height < 2) {
_height = (_height + 2);
}
pl = 0;
}
timer++;
_y = (_y - random(3));
if (timer > 10) {
_alpha = (_alpha - 2);
}
if (timer > 50) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 177 MovieClip "htreadb" in Frame 15
onClipEvent (load) {
pl = 1;
_alpha = 100;
_rotation = _parent.e3._rotation;
_x = _parent.e3._x;
_y = _parent.e3._y;
}
onClipEvent (enterFrame) {
if (pl == 1) {
_width = random(20);
_height = random(20);
pl = 0;
}
timer++;
_y = (_y - 1);
if (timer > 10) {
_alpha = (_alpha - 2);
}
if (timer > 50) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 187 MovieClip "b1" in Frame 15
onClipEvent (load) {
function reset() {
_x = random(550);
_y = ypos;
count = 0;
_root.b1.hit = 1;
_root.b1.pl = 1;
}
sb = 1;
coun = 0;
hit = 1;
pl = 1;
att = false;
go = false;
xpos = random(550);
ypos = _y;
reset();
}
onClipEvent (enterFrame) {
if (_root.missile == 0) {
if (sb == 1) {
att = true;
sb = 0;
}
}
if ((att == true) && (_root.missile < 1)) {
count = count + 1;
}
if (count > 500) {
if (pl == 1) {
go = true;
pl = 0;
}
}
if (go == true) {
_y = (_y + 2);
}
if (this.hitTest(_root.tank)) {
if (hit == 1) {
att = false;
go = false;
this.play();
hit = 0;
}
}
if (_y > 550) {
att = false;
go = false;
reset();
}
}
Instance of Symbol 174 MovieClip "treadb" in Frame 15
onClipEvent (load) {
pl = 1;
_alpha = 100;
_rotation = _parent.s3._rotation;
_x = (_parent.s3._x - 50);
_y = (_parent.s3._y + 10);
}
onClipEvent (enterFrame) {
if (pl == 1) {
_width = random(10);
if (_width < 2) {
_width = (_width + 2);
}
_height = random(10);
if (_height < 2) {
_height = (_height + 2);
}
pl = 0;
}
timer++;
_y = (_y - random(3));
if (timer > 10) {
_alpha = (_alpha - 2);
}
if (timer > 50) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 177 MovieClip "htreadc" in Frame 15
onClipEvent (load) {
pl = 1;
_alpha = 100;
_rotation = _parent.e4._rotation;
_x = _parent.e4._x;
_y = _parent.e4._y;
}
onClipEvent (enterFrame) {
if (pl == 1) {
_width = random(20);
if (_width < 2) {
_width = (_width + 2);
}
_height = random(20);
if (_height < 2) {
_height = (_height + 2);
}
pl = 0;
}
timer++;
_y = (_y - 1);
if (timer > 10) {
_alpha = (_alpha - 2);
}
if (timer > 50) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 174 MovieClip "treadc" in Frame 15
onClipEvent (load) {
pl = 1;
_alpha = 100;
_rotation = _parent.s4._rotation;
_x = (_parent.s4._x - 50);
_y = (_parent.s4._y + 10);
}
onClipEvent (enterFrame) {
if (pl == 1) {
_width = random(10);
if (_width < 2) {
_width = (_width + 2);
}
_height = random(10);
if (_height < 2) {
_height = (_height + 2);
}
pl = 0;
}
timer++;
_y = (_y - random(3));
if (timer > 10) {
_alpha = (_alpha - 2);
}
if (timer > 50) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 190 MovieClip "lev" in Frame 15
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.sco >= _root.amitavaterget) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Instance of Symbol 214 MovieClip in Frame 15
onClipEvent (load) {
this.swapDepths(5000);
}
onClipEvent (enterFrame) {
if (_root.del == true) {
removeMovieClip(this);
}
}
Instance of Symbol 233 MovieClip "gov" in Frame 15
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.sh.hb._xscale < 1) {
if (pl == 1) {
_root.tank.gotoAndStop(4);
pl = 0;
}
}
}
Instance of Symbol 249 MovieClip "wel" in Frame 15
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if ((_root.amitavalevel > 7) && (_root.enemynum > 7)) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Symbol 15 MovieClip Frame 35
stop();
Symbol 18 MovieClip Frame 1
this._visible = false;
Symbol 22 MovieClip Frame 1
_root.stop();
Symbol 22 MovieClip Frame 3
xyb1 = _root.getBytesLoaded();
xyb2 = _root.getBytesTotal();
xytgFrame = Math.round((xyb1 / xyb2) * 100) + 1;
prelbar.gotoAndStop(xytgFrame);
Symbol 22 MovieClip Frame 5
if ((xyb1 >= xyb2) && (xyb2 > 50)) {
stop();
_root.play();
} else {
gotoAndPlay ("xloop1");
}
Symbol 27 MovieClip Frame 1
function installStatus(statusValue) {
if (statusValue == "Download.Complete") {
} else if (statusValue == "Download.Cancelled") {
_parent.gotoAndStop("cancelled");
} else if (statusValue == "Download.Failed") {
_parent.gotoAndStop("failed");
}
}
function checkLoaded() {
if (loaderClip.startUpdate.toString() == "[type Function]") {
clearInterval(id);
loadComplete();
}
}
function loadComplete() {
loaderClip.redirectURL = _root.MMredirectURL;
loaderClip.MMplayerType = _root.MMplayerType;
loaderClip.MMdoctitle = _root.MMdoctitle;
loaderClip.startUpdate();
}
System.security.allowDomain("fpdownload.macromedia.com");
var cacheBuster = Math.random();
var updateSWF = ("http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + cacheBuster);
loaderClip.loadMovie(updateSWF);
var id = setInterval(checkLoaded, 10);
Symbol 32 MovieClip Frame 1
var playerVer = System.capabilities.version.split(" ");
playerVer = playerVer[1].split(",");
if (playerVer[0] >= 7) {
if (playerVer[1] >= 0) {
if (playerVer[2] >= 14) {
_root.gotoAndStop("mymovie");
} else {
this.gotoAndStop("update");
}
} else {
this.gotoAndStop("update");
}
} else {
this.gotoAndStop("update");
}
stop();
Symbol 39 Button
on (press) {
gotoAndStop (6);
}
Symbol 45 MovieClip Frame 12
stop();
Symbol 46 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 48 Button
on (release) {
getURL ("http://www.dailyfreegames.com/free-games.html", "_blank");
}
Symbol 57 Button
on (press) {
gotoAndStop (15);
}
Symbol 85 Button
on (press) {
gotoAndStop (5);
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 5
_root.tank.turret.gotoAndStop(1);
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 12
_root.sh.hb._xscale = _root.sh.hb._xscale - 5;
_root.tank.die = false;
_parent.gotoAndStop(1);
Symbol 127 MovieClip Frame 2
_root.amitavaplay = false;
_root.tank.die = true;
Symbol 127 MovieClip Frame 39
_root.gov.play();
Symbol 127 MovieClip Frame 50
stop();
Symbol 128 MovieClip Frame 1
stop();
Instance of Symbol 109 MovieClip "br" in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 128 MovieClip Frame 2
stop();
Symbol 128 MovieClip Frame 3
stop();
Symbol 128 MovieClip Frame 4
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 9
removeMovieClip(this);
Symbol 145 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 146 MovieClip Frame 15
_root.helidis = _root.helidis + 1;
_root.sco = _root.sco + 100;
if (_root.amitavalevel > 7) {
_root.enemynum = _root.enemynum + 1;
}
Symbol 146 MovieClip Frame 27
if (_root.amitavalevel < 8) {
_parent.reset();
} else {
_parent.reset();
_parent.att = false;
stop();
}
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 2
stop();
Symbol 147 MovieClip Frame 3
stop();
Symbol 147 MovieClip Frame 4
stop();
Symbol 164 MovieClip Frame 43
_root.subdis = _root.subdis + 1;
_root.sco = _root.sco + 50;
if (_root.amitavalevel > 7) {
_root.enemynum = _root.enemynum + 1;
}
Symbol 164 MovieClip Frame 48
if (_root.amitavalevel < 8) {
_parent.reset();
} else {
_parent.reset();
_parent.att = false;
stop();
}
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
stop();
Symbol 165 MovieClip Frame 3
stop();
Symbol 169 MovieClip Frame 1
stop();
Instance of Symbol 168 MovieClip "br" in Symbol 169 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 169 MovieClip Frame 10
removeMovieClip(this);
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 9
removeMovieClip(this);
Symbol 174 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 2
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 15
_root.missile = 10;
_root.b1.sb = 1;
Symbol 187 MovieClip Frame 31
_root.b1.reset();
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 30
_root.amitavaterget = _root.amitavaterget + 1000;
_root.amitavalevel = _root.amitavalevel + 1;
_root.b1.att = true;
_root.b1.hit = 1;
_root.b1.pl = 1;
Symbol 190 MovieClip Frame 40
_root.lev.pl = 1;
Symbol 226 Button
on (press) {
_root.gotoAndStop(5);
}
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 2
var ssc = _root.sco;
_root.del = true;
_root.amitavaplay = false;
Symbol 233 MovieClip Frame 13
stop();
stopAllSounds();
Mouse.show();
Symbol 243 Button
on (press) {
_root.gotoAndStop(5);
}
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 2
var ssc = _root.sco;
_root.amitavaplay = false;
_root.wat.removeMovieClip();
_root.del = true;
Symbol 249 MovieClip Frame 12
stop();
stopAllSounds();
Mouse.show();