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 380 MovieClip in Frame 1
onClipEvent (enterFrame) {
_xscale = (_root.percentDone * 4.4);
}
Frame 2
gotoAndPlay (1);
Frame 5
fscommand ("allowscale", false);
stopAllSounds();
Mouse.show();
Instance of Symbol 392 MovieClip in Frame 5
onClipEvent (enterFrame) {
Mouse.show();
}
Frame 6
fscommand ("allowscale", false);
Frame 10
fscommand ("allowscale", false);
e1_Dead = 0;
e2_Dead = 0;
e3_Dead = 0;
e4_Dead = 0;
e5_Dead = 0;
e6_Dead = 0;
e7_Dead = 0;
e8_Dead = 0;
EnemyAlert = false;
e1_Alert = false;
e2_Alert = false;
e3_Alert = false;
e4_Alert = false;
e5_Alert = false;
e6_Alert = false;
e7_Alert = false;
e8_Alert = false;
amitavaplay = true;
amitavalevel = 1;
amitavaenemy = 9;
amitavatank = 4;
amitavascore = 0;
amitavalife = 120;
amit = new Sound();
amit.attachSound("hitme");
Frame 11
fscommand ("allowscale", false);
Instance of Symbol 623 MovieClip "back" in Frame 11
onClipEvent (load) {
}
Instance of Symbol 638 MovieClip "cross_hair" in Frame 11
onClipEvent (load) {
Mouse.hide();
d = 0;
startDrag (this, true);
s = new Sound();
s.attachSound("bum");
}
onClipEvent (enterFrame) {
}
onClipEvent (mouseDown) {
if (_root.amitavaplay == true) {
if (!a) {
d++;
s.start();
bulletDepth = d % 100;
_parent.bullets = bulletDepth;
_root.bullet.duplicateMovieClip("newb" + d, bulletDepth);
a = true;
}
}
}
onClipEvent (mouseUp) {
a = false;
}
Instance of Symbol 642 MovieClip "can1" in Frame 11
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.back.s1.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s1.gotoAndStop(3);
duplicateMovieClip (_parent.ebul, "ebul" + shotCount, (shotCount % 100) + 1100);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
}
Instance of Symbol 646 MovieClip "ebul" in Frame 11
onClipEvent (load) {
_root.attachMovie("ff", "ff", 10000);
_root.attachMovie("cl", "cl", 10050);
if (String(_name) != "ebul") {
cannonLength = 20;
turretpoint = (_parent.can1._rotation + _parent.can1.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can1._x);
_y = (ycomponent + _parent.can1._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebul") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smk.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 642 MovieClip "can2" in Frame 11
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.back.s2.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s2.gotoAndStop(3);
duplicateMovieClip (_parent.ebula, "ebula" + shotCount, (shotCount % 110) + 1110);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
}
Instance of Symbol 649 MovieClip "ebula" in Frame 11
onClipEvent (load) {
if (String(_name) != "ebula") {
cannonLength = 20;
turretpoint = (_parent.can2._rotation + _parent.can2.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can2._x);
_y = (ycomponent + _parent.can2._y);
xmove = (xcomponent / cannonLength) * 20;
ymove = (ycomponent / cannonLength) * 20;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebula") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
if (this.hitTest(_root.cop)) {
if (_root.amitavalife > 0) {
_parent.amitava._width = _parent.amitava._width - 20;
_root.amitavalife = _root.amitavalife - 20;
_root.amit.start();
removeMovieClip(this);
} else {
_root.amit.start();
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
}
Instance of Symbol 642 MovieClip "can3" in Frame 11
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.back.s3.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s3.gotoAndStop(3);
duplicateMovieClip (_parent.ebulb, "ebulb" + shotCount, (shotCount % 120) + 1120);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
}
Instance of Symbol 646 MovieClip "ebulb" in Frame 11
onClipEvent (load) {
if (String(_name) != "ebulb") {
cannonLength = 20;
turretpoint = (_parent.can3._rotation + _parent.can3.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can3._x);
_y = (ycomponent + _parent.can3._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulb") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smka.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 642 MovieClip "can10" in Frame 11
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.back.s7.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s7.gotoAndStop(3);
duplicateMovieClip (_parent.ebuli, "ebuli" + shotCount, (shotCount % 190) + 1190);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
}
Instance of Symbol 649 MovieClip "ebulc" in Frame 11
onClipEvent (load) {
if (String(_name) != "ebulc") {
cannonLength = 20;
turretpoint = (_parent.can4._rotation + _parent.can4.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can4._x);
_y = (ycomponent + _parent.can4._y);
xmove = (xcomponent / cannonLength) * 20;
ymove = (ycomponent / cannonLength) * 20;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulc") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
if (this.hitTest(_root.cop)) {
if (_root.amitavalife > 0) {
_parent.amitava._width = _parent.amitava._width - 20;
_root.amitavalife = _root.amitavalife - 20;
_root.amit.start();
removeMovieClip(this);
} else {
_root.amit.start();
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
}
Instance of Symbol 642 MovieClip "can5" in Frame 11
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.back.t2.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.t2.gotoAndStop(2);
duplicateMovieClip (_parent.ebuld, "ebuld" + shotCount, (shotCount % 140) + 1140);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
}
Instance of Symbol 646 MovieClip "ebuld" in Frame 11
onClipEvent (load) {
if (String(_name) != "ebuld") {
cannonLength = 30;
turretpoint = (_parent.can5._rotation + _parent.can5.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can5._x);
_y = (ycomponent + _parent.can5._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebuld") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smkb.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 642 MovieClip "can6" in Frame 11
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.back.t1.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.t1.gotoAndStop(2);
duplicateMovieClip (_parent.ebule, "ebule" + shotCount, (shotCount % 150) + 1150);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
}
Instance of Symbol 646 MovieClip "ebule" in Frame 11
onClipEvent (load) {
if (String(_name) != "ebule") {
cannonLength = 30;
turretpoint = (_parent.can6._rotation + _parent.can6.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can6._x);
_y = (ycomponent + _parent.can6._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebule") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smkc.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 642 MovieClip "can7" in Frame 11
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.back.t3.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.t3.gotoAndStop(2);
duplicateMovieClip (_parent.ebulf, "ebulf" + shotCount, (shotCount % 160) + 1160);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
}
Instance of Symbol 646 MovieClip "ebulf" in Frame 11
onClipEvent (load) {
if (String(_name) != "ebulf") {
cannonLength = 30;
turretpoint = (_parent.can7._rotation + _parent.can7.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can7._x);
_y = (ycomponent + _parent.can7._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulf") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smkd.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 642 MovieClip "can8" in Frame 11
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.back.s5.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s5.gotoAndStop(3);
duplicateMovieClip (_parent.ebulg, "ebulg" + shotCount, (shotCount % 170) + 1170);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
}
Instance of Symbol 646 MovieClip "ebulg" in Frame 11
onClipEvent (load) {
if (String(_name) != "ebulg") {
cannonLength = 30;
turretpoint = (_parent.can8._rotation + _parent.can8.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can8._x);
_y = (ycomponent + _parent.can8._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulg") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smke.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 642 MovieClip "can9" in Frame 11
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.back.s6.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s6.gotoAndStop(3);
duplicateMovieClip (_parent.ebulh, "ebulh" + shotCount, (shotCount % 180) + 1180);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
}
Instance of Symbol 646 MovieClip "ebulh" in Frame 11
onClipEvent (load) {
if (String(_name) != "ebulh") {
cannonLength = 30;
turretpoint = (_parent.can9._rotation + _parent.can9.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can9._x);
_y = (ycomponent + _parent.can9._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulh") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smkf.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 649 MovieClip "ebuli" in Frame 11
onClipEvent (load) {
if (String(_name) != "ebuli") {
cannonLength = 20;
turretpoint = (_parent.can10._rotation + _parent.can10.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can10._x);
_y = (ycomponent + _parent.can10._y);
xmove = (xcomponent / cannonLength) * 20;
ymove = (ycomponent / cannonLength) * 20;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebuli") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
if (this.hitTest(_root.cop)) {
if (_root.amitavalife > 0) {
_parent.amitava._width = _parent.amitava._width - 20;
_root.amitavalife = _root.amitavalife - 20;
_root.amit.start();
removeMovieClip(this);
} else {
_root.amit.start();
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
}
Instance of Symbol 642 MovieClip "can11" in Frame 11
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.back.s8.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s8.gotoAndStop(3);
duplicateMovieClip (_parent.ebulj, "ebulj" + shotCount, (shotCount % 200) + 2000);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
}
Instance of Symbol 649 MovieClip "ebulj" in Frame 11
onClipEvent (load) {
if (String(_name) != "ebulj") {
cannonLength = 20;
turretpoint = (_parent.can11._rotation + _parent.can11.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can11._x);
_y = (ycomponent + _parent.can11._y);
xmove = (xcomponent / cannonLength) * 20;
ymove = (ycomponent / cannonLength) * 20;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulj") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
if (this.hitTest(_root.cop)) {
if (_root.amitavalife > 0) {
_parent.amitava._width = _parent.amitava._width - 20;
_root.amitavalife = _root.amitavalife - 20;
_root.amit.start();
removeMovieClip(this);
} else {
_root.amit.start();
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
}
Instance of Symbol 642 MovieClip "can12" in Frame 11
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.back.s9.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s9.gotoAndStop(3);
duplicateMovieClip (_parent.ebulk, "ebulk" + shotCount, (shotCount % 210) + 2010);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
}
Instance of Symbol 649 MovieClip "ebulk" in Frame 11
onClipEvent (load) {
if (String(_name) != "ebulk") {
cannonLength = 20;
turretpoint = (_parent.can12._rotation + _parent.can12.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can12._x);
_y = (ycomponent + _parent.can12._y);
xmove = (xcomponent / cannonLength) * 20;
ymove = (ycomponent / cannonLength) * 20;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulk") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
if (this.hitTest(_root.cop)) {
if (_root.amitavalife > 0) {
_parent.amitava._width = _parent.amitava._width - 20;
_root.amitavalife = _root.amitavalife - 20;
_root.amit.start();
removeMovieClip(this);
} else {
_root.amit.start();
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
}
Instance of Symbol 642 MovieClip "can4" in Frame 11
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.back.s4.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s4.gotoAndStop(3);
duplicateMovieClip (_parent.ebulc, "ebulc" + shotCount, (shotCount % 130) + 1130);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
}
Instance of Symbol 642 MovieClip "can13" in Frame 11
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (_root.back.t4.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.t4.gotoAndStop(2);
duplicateMovieClip (_parent.ebull, "ebull" + shotCount, (shotCount % 220) + 2020);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
}
Instance of Symbol 646 MovieClip "ebull" in Frame 11
onClipEvent (load) {
if (String(_name) != "ebull") {
cannonLength = 30;
turretpoint = (_parent.can13._rotation + _parent.can13.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can13._x);
_y = (ycomponent + _parent.can13._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebull") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smkg.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 651 MovieClip "norbull" in Frame 11
onClipEvent (load) {
if (String(_name) != "norbull") {
terpoint = _root._ymouse;
cannonLength = 100;
turretpoint = (_parent.tank._rotation + _parent.tank.turret._rotation) - 270;
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) * 20;
ymove = (ycomponent / cannonLength) * 20;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "norbull") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
if (this._y < terpoint) {
removeMovieClip(this);
}
if (this.hitTest(_root.back.s1) && (_root.back.s1.die == false)) {
_root.back.s1.die = true;
_root.back.s1.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s2) && (_root.back.s2.die == false)) {
_root.back.s2.die = true;
_root.back.s2.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s3) && (_root.back.s3.die == false)) {
_root.back.s3.die = true;
_root.back.s3.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s4) && (_root.back.s4.die == false)) {
_root.back.s4.die = true;
_root.back.s4.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s5) && (_root.back.s5.die == false)) {
_root.back.s5.die = true;
_root.back.s5.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s6) && (_root.back.s6.die == false)) {
_root.back.s6.die = true;
_root.back.s6.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s7) && (_root.back.s7.die == false)) {
_root.back.s7.die = true;
_root.back.s7.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s8) && (_root.back.s8.die == false)) {
_root.back.s8.die = true;
_root.back.s8.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s9) && (_root.back.s9.die == false)) {
_root.back.s9.die = true;
_root.back.s9.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.t1) && (_root.back.t1.die == false)) {
if (_root.back.t1.life > 0) {
_root.back.t1.life = _root.back.t1.life - 1;
removeMovieClip(this);
} else {
_root.back.t1.die = true;
_root.back.t1.gotoAndPlay(3);
_global.blastSound = true;
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.t2) && (_root.back.t2.die == false)) {
if (_root.back.t2.life > 0) {
_root.back.t2.life = _root.back.t2.life - 1;
removeMovieClip(this);
} else {
_root.back.t2.die = true;
_root.back.t2.gotoAndPlay(3);
_global.blastSound = true;
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.t3) && (_root.back.t3.die == false)) {
if (_root.back.t3.life > 0) {
_root.back.t3.life = _root.back.t3.life - 1;
removeMovieClip(this);
} else {
_root.back.t3.die = true;
_root.back.t3.gotoAndPlay(3);
_global.blastSound = true;
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.t4) && (_root.back.t4.die == false)) {
if (_root.back.t4.life > 0) {
_root.back.t4.life = _root.back.t4.life - 1;
removeMovieClip(this);
} else {
_root.back.t4.die = true;
_root.back.t4.gotoAndPlay(3);
_global.blastSound = true;
removeMovieClip(this);
}
}
}
}
Instance of Symbol 654 MovieClip "mc_blastSound" in Frame 11
onClipEvent (load) {
_global.blastSound = false;
}
onClipEvent (enterFrame) {
if (_global.blastSound) {
gotoAndPlay (2);
_global.blastSound = false;
}
}
Instance of Symbol 699 MovieClip "cop" in Frame 11
onClipEvent (load) {
function landing() {
var _local1 = this;
var _local2 = _root;
if (_local1._width > 70) {
_local1._width = _local1._width - 0.7;
_local1._height = _local1._height - 0.7;
} else if (pl == 1) {
if (((_local1.ar1.hitTest(_local2.back.helipad) && (_local1.ar2.hitTest(_local2.back.helipad))) && (_local1.ar3.hitTest(_local2.back.helipad))) && (_local1.ar4.hitTest(_local2.back.helipad))) {
_local2.gotoAndStop(13);
pl = 0;
} else {
_local1.gotoAndStop(4);
pl = 0;
}
}
}
pl = 1;
land = false;
End = false;
gmo = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (land == true) {
landing();
}
if (_root.back._y < 1550) {
_root.back._y = _root.back._y + 2;
_root.can1._y = _root.can1._y + 2;
_root.can2._y = _root.can2._y + 2;
_root.can3._y = _root.can3._y + 2;
_root.can4._y = _root.can4._y + 2;
_root.can5._y = _root.can5._y + 2;
_root.can6._y = _root.can6._y + 2;
_root.can7._y = _root.can7._y + 2;
_root.can8._y = _root.can8._y + 2;
_root.can9._y = _root.can9._y + 2;
_root.can10._y = _root.can10._y + 2;
_root.can11._y = _root.can11._y + 2;
_root.can12._y = _root.can12._y + 2;
_root.can13._y = _root.can13._y + 2;
} else {
End = true;
}
if (Key.isDown(87)) {
if (_y > 250) {
_y = (_y - 5);
_root.tank._y = _root.tank._y - 5;
_root.sc._y = _root.sc._y - 5;
}
}
if (Key.isDown(83)) {
if (_y < 450) {
_y = (_y + 5);
_root.tank._y = _root.tank._y + 5;
_root.sc._y = _root.sc._y + 5;
}
}
if (Key.isDown(65) && (_x > 50)) {
_x = (_x - 5);
_root.tank._x = _root.tank._x - 5;
_root.sc._x = _root.sc._x - 5;
} else if (Key.isDown(68) && (_x < 550)) {
_x = (_x + 5);
_root.tank._x = _root.tank._x + 5;
_root.sc._x = _root.sc._x + 5;
}
if (Key.isDown(32) && (End == true)) {
land = true;
}
}
}
Instance of Symbol 369 MovieClip [impactBullet] "bullet" in Frame 11
onClipEvent (load) {
if (_name != "bullet") {
this._x = _root.cross_hair._x;
this._y = _root.cross_hair._y;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "bullet") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smk" in Frame 11
onClipEvent (load) {
if (_name != "smk") {
this._x = _root["ebul" + _root.can1.shotCount]._x;
this._y = _root["ebul" + _root.can1.shotCount]._y;
this._rotation = _root["ebul" + _root.can1.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smk") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smka" in Frame 11
onClipEvent (load) {
if (_name != "smk") {
this._x = _root["ebulb" + _root.can3.shotCount]._x;
this._y = _root["ebulb" + _root.can3.shotCount]._y;
this._rotation = _root["ebulb" + _root.can3.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smk") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smkb" in Frame 11
onClipEvent (load) {
if (_name != "smkb") {
this._x = _root["ebuld" + _root.can5.shotCount]._x;
this._y = _root["ebuld" + _root.can5.shotCount]._y;
this._rotation = _root["ebuld" + _root.can5.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smkb") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smkc" in Frame 11
onClipEvent (load) {
if (_name != "smkc") {
this._x = _root["ebule" + _root.can6.shotCount]._x;
this._y = _root["ebule" + _root.can6.shotCount]._y;
this._rotation = _root["ebule" + _root.can6.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smkc") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smkd" in Frame 11
onClipEvent (load) {
if (_name != "smkd") {
this._x = _root["ebulf" + _root.can7.shotCount]._x;
this._y = _root["ebulf" + _root.can7.shotCount]._y;
this._rotation = _root["ebulf" + _root.can7.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smkd") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smke" in Frame 11
onClipEvent (load) {
if (_name != "smke") {
this._x = _root["ebulg" + _root.can8.shotCount]._x;
this._y = _root["ebulg" + _root.can8.shotCount]._y;
this._rotation = _root["ebulg" + _root.can8.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smke") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smkf" in Frame 11
onClipEvent (load) {
if (_name != "smkf") {
this._x = _root["ebulh" + _root.can9.shotCount]._x;
this._y = _root["ebulh" + _root.can9.shotCount]._y;
this._rotation = _root["ebulh" + _root.can9.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smkf") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smkg" in Frame 11
onClipEvent (load) {
if (_name != "smkg") {
this._x = _root["ebull" + _root.can13.shotCount]._x;
this._y = _root["ebull" + _root.can13.shotCount]._y;
this._rotation = _root["ebull" + _root.can13.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smkg") {
}
}
Instance of Symbol 642 MovieClip "tank" in Frame 11
onClipEvent (load) {
d = 0;
_visible = false;
}
onClipEvent (mouseDown) {
if (shotTimer <= 0) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.norbull, "norbull" + shotCount, (shotCount % 800) + 8100);
shotTimer = 0.9;
}
shotTimer--;
}
Instance of Symbol 700 MovieClip "sc" in Frame 11
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._rotation = angle * -1;
updateAfterEvent();
}
Instance of Symbol 702 MovieClip "attack" in Frame 11
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 702 MovieClip "dattack" in Frame 11
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 717 MovieClip "amitava" in Frame 11
onClipEvent (enterFrame) {
this._width = _root.amitavalife;
}
Frame 13
amitavatank = 0;
Instance of Symbol 829 MovieClip "Sniper" in Frame 15
onClipEvent (load) {
Amitavaactivate = false;
pl = 1;
ml = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaenemy < 1) {
if (pl == 1) {
_root.gotoAndStop(25);
pl = 0;
}
}
if (_root.amitavalife < 5) {
if (ml == 1) {
_root.gov.play();
_root.gotoAndStop(24);
ml = 0;
}
}
}
onClipEvent (mouseDown) {
if ((Amitavaactivate == true) && (_root.EnemyAlert == false)) {
this.gotoAndPlay(2);
if (this.ter.hitTest(this.Landscape.e1.head) || (this.ter.hitTest(this.Landscape.e1.body) && (_root.e1_dead == 0))) {
if ((_root.e3_Dead == 1) && (_root.Landscape.e4.ri == 0)) {
this.Landscape.e1.gotoAndStop(8);
_root.Landscape.e1.gotoAndStop(8);
_root.e1_Dead = 1;
this.Landscape.e1.lef = 0;
this.Landscape.e1.ri = 1;
} else {
if (_root.e3_Dead == 0) {
_root.e1_Dead = 1;
_root.e3_Alert = true;
this.Landscape.e1.gotoAndStop(8);
_root.Landscape.e1.gotoAndStop(8);
_root.Landscape.e3.gotoAndStop(11);
this.Landscape.e3.gotoAndStop(11);
}
if (_root.Landscape.e4.ri == 1) {
_root.e1_Dead = 1;
_root.e4_Alert = true;
this.Landscape.e1.gotoAndStop(8);
_root.Landscape.e1.gotoAndStop(8);
_root.Landscape.e4.gotoAndStop(11);
this.Landscape.e4.gotoAndStop(11);
}
}
}
if (this.ter.hitTest(this.Landscape.e2.head) || (this.ter.hitTest(this.Landscape.e2.body) && (_root.e2_dead == 0))) {
if ((_root.e4_Dead == 1) && (_root.e3_Dead == 1)) {
this.Landscape.e2.gotoAndStop(8);
_root.Landscape.e2.gotoAndStop(8);
_root.e2_Dead = 1;
this.Landscape.e2.ri = 0;
this.Landscape.e2.lef = 1;
} else {
if (_root.e4_Dead == 0) {
_root.e2_Dead = 1;
_root.e4_Alert = true;
this.Landscape.e2.gotoAndStop(8);
_root.Landscape.e2.gotoAndStop(8);
_root.Landscape.e4.gotoAndStop(11);
this.Landscape.e4.gotoAndStop(11);
}
if (_root.e3_Dead == 0) {
_root.e2_Dead = 1;
_root.e3_Alert = true;
this.Landscape.e2.gotoAndStop(8);
_root.Landscape.e2.gotoAndStop(8);
_root.Landscape.e3.gotoAndStop(11);
this.Landscape.e3.gotoAndStop(11);
}
}
}
if (this.ter.hitTest(this.Landscape.e3.head) || (this.ter.hitTest(this.Landscape.e3.body) && (_root.e3_dead == 0))) {
if ((this.Landscape.e4.lef == 1) && (this.Landscape.e2.ri == 0)) {
this.Landscape.e3.gotoAndStop(8);
_root.Landscape.e3.gotoAndStop(8);
_root.e3_Dead = 1;
} else {
if (this.Landscape.e4.lef == 0) {
_root.e3_Dead = 1;
this.Landscape.e3.gotoAndStop(8);
_root.Landscape.e3.gotoAndStop(8);
_root.Landscape.e4.gotoAndStop(11);
this.Landscape.e4.gotoAndStop(11);
_root.e4_Alert = true;
}
if (this.Landscape.e2.ri == 1) {
_root.e3_Dead = 1;
this.Landscape.e3.gotoAndStop(8);
_root.Landscape.e3.gotoAndStop(8);
_root.Landscape.e2.gotoAndStop(11);
this.Landscape.e2.gotoAndStop(11);
_root.e2_Alert = true;
}
}
}
if (this.ter.hitTest(this.Landscape.e4.head) || (this.ter.hitTest(this.Landscape.e4.body) && (_root.e4_dead == 0))) {
if (((_root.e3_Dead == 1) && (_root.e5_Dead == 1)) && (this.Landscape.e1.lef == 0)) {
this.Landscape.e4.gotoAndStop(8);
_root.Landscape.e4.gotoAndStop(8);
_root.e4_Dead = 1;
_root.Landscape.e4.ri = 0;
_root.Landscape.e4.lef = 1;
} else {
_root.e4_Dead = 1;
this.Landscape.e4.gotoAndStop(8);
_root.Landscape.e4.gotoAndStop(8);
if (_root.e3_Dead == 0) {
_root.Landscape.e3.gotoAndStop(11);
this.Landscape.e3.gotoAndStop(11);
_root.e3_Alert = true;
}
if (_root.e5_Dead == 0) {
_root.Landscape.e5.gotoAndStop(11);
this.Landscape.e5.gotoAndStop(11);
_root.e5_Alert = true;
}
if (this.Landscape.e1.lef == 1) {
_root.Landscape.e1.gotoAndStop(11);
this.Landscape.e1.gotoAndStop(11);
_root.e1_Alert = true;
}
}
}
if (this.ter.hitTest(this.Landscape.e5.head) || (this.ter.hitTest(this.Landscape.e5.body) && (_root.e5_dead == 0))) {
if ((this.Landscape.e4.lef == 0) && (this.Landscape.e2.lef == 0)) {
this.Landscape.e5.gotoAndStop(8);
_root.Landscape.e5.gotoAndStop(8);
_root.e5_Dead = 1;
} else if ((this.Landscape.e4.lef == 1) || (this.Landscape.e2.lef == 1)) {
_root.e5_Dead = 1;
_root.e4_Alert = true;
_root.e2_Alert = true;
this.Landscape.e5.gotoAndStop(8);
_root.Landscape.e5.gotoAndStop(8);
_root.Landscape.e4.gotoAndStop(11);
this.Landscape.e4.gotoAndStop(11);
_root.Landscape.e2.gotoAndStop(11);
this.Landscape.e2.gotoAndStop(11);
}
}
if (this.ter.hitTest(this.Landscape.e6.head) || (this.ter.hitTest(this.Landscape.e6.body) && (_root.e6_dead == 0))) {
if ((_root.e5_Dead == 1) && (this.Landscape.e7.lef == 0)) {
this.Landscape.e6.gotoAndStop(8);
_root.Landscape.e6.gotoAndStop(8);
_root.e6_Dead = 1;
} else {
_root.e6_Dead = 1;
this.Landscape.e6.gotoAndStop(8);
_root.Landscape.e6.gotoAndStop(8);
if (_root.e5_Dead == 0) {
_root.Landscape.e5.gotoAndStop(11);
this.Landscape.e5.gotoAndStop(11);
_root.e5_Alert = true;
}
if (_root.e7_Dead == 0) {
_root.Landscape.e7.gotoAndStop(11);
this.Landscape.e7.gotoAndStop(11);
_root.e7_Alert = true;
}
}
}
if (this.ter.hitTest(this.Landscape.e7.head) || (this.ter.hitTest(this.Landscape.e7.body) && (_root.e7_dead == 0))) {
if ((_root.e6_Dead == 1) && (_root.e8_dead == 1)) {
this.Landscape.e7.gotoAndStop(8);
_root.Landscape.e7.gotoAndStop(8);
_root.e7_Dead = 1;
} else {
_root.e7_Dead = 1;
this.Landscape.e7.gotoAndStop(8);
_root.Landscape.e7.gotoAndStop(8);
if (_root.e6_Dead == 0) {
_root.Landscape.e6.gotoAndStop(11);
this.Landscape.e6.gotoAndStop(11);
_root.e6_Alert = true;
}
if (_root.e8_Dead == 0) {
_root.Landscape.e8.gotoAndStop(11);
this.Landscape.e8.gotoAndStop(11);
_root.e8_Alert = true;
}
}
}
if (this.ter.hitTest(this.Landscape.e8.head) || (this.ter.hitTest(this.Landscape.e8.body) && (_root.e8_dead == 0))) {
if (this.Landscape.e7.ri == 0) {
this.Landscape.e8.gotoAndStop(8);
_root.Landscape.e8.gotoAndStop(8);
_root.e8_Dead = 1;
} else {
_root.e8_Dead = 1;
this.Landscape.e8.gotoAndStop(8);
_root.Landscape.e8.gotoAndStop(8);
_root.Landscape.e7.gotoAndStop(11);
this.Landscape.e7.gotoAndStop(11);
_root.e7_Alert = true;
}
}
} else {
_root.gotoAndStop(16);
}
}
onClipEvent (mouseUp) {
if (_root.DeadG == 6) {
_root.gotoAndStop("Mission02");
_root.NextMC.gotoAndPlay(2);
}
}
Instance of Symbol 836 MovieClip in Frame 15
onClipEvent (enterFrame) {
_root.amitavasol = _root.amitavaenemy / 2;
}
Instance of Symbol 717 MovieClip "amitava" in Frame 15
onClipEvent (enterFrame) {
this._width = _root.amitavalife;
}
Frame 16
fscommand ("allowscale", false);
_root._quality = "medium";
Mouse.hide();
startDrag (_root.SniperGun, true, 0, 102.5, 630, 350);
if (DeadG == 6) {
stopDrag();
_root.NextMC.gotoAndPlay(2);
}
if (Over == 1) {
gotoAndStop (656);
}
_root.Sniper._visible = false;
_root.Sniper.Amitavaactivate = false;
Instance of Symbol 845 MovieClip "SniperGun" in Frame 16
onClipEvent (load) {
}
onClipEvent (mouseDown) {
_root.msg = "Press ' S ' For Sniper Mode";
}
Frame 17
fscommand ("allowscale", false);
Frame 20
startDrag (_root.Sniper, true, 30, 30, 630, 350);
offsetX = Number(getProperty(_root.Sniper, _x)) + Number(getProperty(_root.Sniper.Landscape, _x));
offsetY = Number(getProperty(_root.Sniper, _y)) + Number(getProperty(_root.Sniper.Landscape, _y));
_root.Sniper._visible = true;
_root.Sniper.Amitavaactivate = true;
if (e1_Dead == 1) {
_root.Sniper.Landscape.e1.gotoAndStop(10);
}
if (e2_Dead == 1) {
_root.Sniper.Landscape.e2.gotoAndStop(10);
}
if (e3_Dead == 1) {
_root.Sniper.Landscape.e3.gotoAndStop(10);
}
if (e4_Dead == 1) {
_root.Sniper.Landscape.e4.gotoAndStop(10);
}
if (e5_Dead == 1) {
_root.Sniper.Landscape.e5.gotoAndStop(10);
}
if (e6_Dead == 1) {
_root.Sniper.Landscape.e6.gotoAndStop(10);
}
if (e7_Dead == 1) {
_root.Sniper.Landscape.e7.gotoAndStop(10);
}
if (e8_Dead == 1) {
_root.Sniper.Landscape.e8.gotoAndStop(10);
}
if ((_root.e1_Alert == true) && (_root.EnemyAlert == false)) {
_root.Sniper.Landscape.e1.gotoAndStop(11);
}
if ((_root.e2_Alert == true) && (_root.EnemyAlert == false)) {
_root.Sniper.Landscape.e2.gotoAndStop(11);
}
if ((_root.e3_Alert == true) && (_root.EnemyAlert == false)) {
_root.Sniper.Landscape.e3.gotoAndStop(11);
}
if ((_root.e4_Alert == true) && (_root.EnemyAlert == false)) {
_root.Sniper.Landscape.e4.gotoAndStop(11);
}
if ((_root.e5_Alert == true) && (_root.EnemyAlert == false)) {
_root.Sniper.Landscape.e5.gotoAndStop(11);
}
if ((_root.e6_Alert == true) && (_root.EnemyAlert == false)) {
_root.Sniper.Landscape.e6.gotoAndStop(11);
}
if ((_root.e7_Alert == true) && (_root.EnemyAlert == false)) {
_root.Sniper.Landscape.e7.gotoAndStop(11);
}
if ((_root.e8_Alert == true) && (_root.EnemyAlert == false)) {
_root.Sniper.Landscape.e8.gotoAndStop(11);
}
Frame 21
setProperty(_root.Sniper.Landscape, _x , offsetX - getProperty(_root.Sniper, _x));
setProperty(_root.Sniper.Landscape, _y , offsetY - getProperty(_root.Sniper, _y));
Frame 22
gotoAndPlay (21);
Frame 24
stop();
trace("yes");
Frame 25
fscommand ("allowscale", false);
setProperty(_root.Sniper.Landscape.Dead01, _name , "G01");
setProperty(_root.Sniper.Landscape.Dead02, _name , "G02");
setProperty(_root.Sniper.Landscape.Dead03, _name , "G03");
setProperty(_root.Sniper.Landscape.Dead04, _name , "G04");
setProperty(_root.Sniper.Landscape.Dead05, _name , "G05");
setProperty(_root.Sniper.Landscape.G06_Dead, _name , "AlarmG");
G01_Dead = 0;
G02_Dead = 0;
G03_Dead = 0;
G04_Dead = 0;
G05_Dead = 0;
G06_Dead = 0;
AlarmG_Dead = 0;
AlarmG_Show = 0;
DeadG = 0;
Over = 0;
Mouse.show();
stopAllSounds();
stop();
Frame 31
fscommand ("allowscale", false);
amitavaenemy = 20;
Mouse.hide();
Instance of Symbol 975 MovieClip "gun" in Frame 31
onClipEvent (load) {
function gameEnd() {
var _local1 = _root;
_local1.back.s1.die = true;
_local1.back.s2.die = true;
_local1.back.s3.die = true;
_local1.back.s4.die = true;
_local1.back.s5.die = true;
_local1.back.s6.die = true;
_local1.gov.play();
gl = 0;
_local1.nextFrame();
Mouse.show();
}
startDrag (this, true, 50, 250, 630, 530);
pl = 1;
ml = 1;
gl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaenemy < 1) {
if (ml == 1) {
_root.gotoAndStop(32);
ml = 0;
}
}
if (_root.amitavalife < 5) {
if (gl == 1) {
gameEnd();
}
}
}
onClipEvent (mouseDown) {
this.gotoAndStop(2);
if (((((this.ter.po.hitTest(_root.back.s1) || (this.ter.po.hitTest(_root.back.s2))) || (this.ter.po.hitTest(_root.back.s3))) || (this.ter.po.hitTest(_root.back.s4))) || (this.ter.po.hitTest(_root.back.s5))) || (this.ter.po.hitTest(_root.back.s6))) {
if (pl == 1) {
_root.back.alert = true;
pl = 0;
}
}
if (this.ter.po.hitTest(_root.back.s1)) {
if (_root.back.s1.life > 0) {
_root.back.s1.life = _root.back.s1.life - 1;
} else {
_root.back.s1.die = true;
_root.back.s1.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s2)) {
if (_root.back.s2.life > 0) {
_root.back.s2.life = _root.back.s2.life - 1;
} else {
_root.back.s2.die = true;
_root.back.s2.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s3)) {
if (_root.back.s3.life > 0) {
_root.back.s3.life = _root.back.s3.life - 1;
} else {
_root.back.s3.die = true;
_root.back.s3.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s4)) {
if (_root.back.s4.life > 0) {
_root.back.s4.life = _root.back.s4.life - 1;
} else {
_root.back.s4.die = true;
_root.back.s4.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s5)) {
if (_root.back.s5.life > 0) {
_root.back.s5.life = _root.back.s5.life - 1;
} else {
_root.back.s5.die = true;
_root.back.s5.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s6)) {
if (_root.back.s6.life > 0) {
_root.back.s6.life = _root.back.s6.life - 1;
} else {
_root.back.s6.die = true;
_root.back.s6.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.hs1.BTA.body)) {
_root.back.hs1.die = true;
_root.back.hs1.gotoAndStop(5);
}
if (this.ter.po.hitTest(_root.back.hs2.BTA.body)) {
_root.back.hs2.die = true;
_root.back.hs2.gotoAndStop(4);
}
if (this.ter.po.hitTest(_root.back.hs3)) {
_root.back.hs3.die = true;
_root.back.hs3.gotoAndStop(6);
}
if (this.ter.po.hitTest(_root.back.hs4)) {
_root.back.hs4.die = true;
_root.back.hs4.gotoAndStop(6);
}
i = 28;
while (i <= 60) {
if (this.ter.po.hitTest(_root.back["newd" + i])) {
if (_root.back["newd" + i].life > 0) {
_root.back["newd" + i].life = _root.back["newd" + i].life - 1;
} else {
_root.back["newd" + i].die = true;
_root.back["newd" + i].gotoAndStop(3);
}
}
i++;
}
i = 0;
while (i <= 40) {
if (this.ter.po.hitTest(_root.back["newc" + i])) {
if (_root.back["newc" + i].life > 0) {
_root.back["newc" + i].life = _root.back["newc" + i].life - 1;
} else {
_root.back["newc" + i].die = true;
_root.back["newc" + i].gotoAndStop("frdead");
}
}
i++;
}
i = 30;
while (i <= 60) {
if (this.ter.po.hitTest(_root.back["newd" + i])) {
if (_root.back["newd" + i].life > 0) {
_root.back["newd" + i].life = _root.back["newd" + i].life - 1;
} else {
_root.back["newd" + i].die = true;
_root.back["newd" + i].gotoAndStop("frdead");
}
}
i++;
}
i = 0;
while (i <= 40) {
if (this.ter.po.hitTest(_root.back["newb" + i])) {
if (_root.back["newb" + i].life > 0) {
_root.back["newb" + i].life = _root.back["newb" + i].life - 1;
} else {
_root.back["newb" + i].die = true;
_root.back["newb" + i].gotoAndStop("frdead");
}
}
i++;
}
}
Instance of Symbol 717 MovieClip "amitava" in Frame 31
onClipEvent (enterFrame) {
this._width = _root.amitavalife;
}
Frame 32
fscommand ("allowscale", false);
Frame 36
fscommand ("allowscale", false);
amitavaenemy = 20;
Mouse.hide();
Instance of Symbol 975 MovieClip "gun" in Frame 36
onClipEvent (load) {
function gameEnd() {
var _local1 = _root;
_local1.back.s1.die = true;
_local1.back.s2.die = true;
_local1.back.s3.die = true;
_local1.back.s4.die = true;
_local1.back.s5.die = true;
_local1.back.s6.die = true;
_local1.gov.play();
gl = 0;
_local1.nextFrame();
Mouse.show();
}
startDrag (this, true, 50, 250, 630, 530);
pl = 1;
ml = 1;
gl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaenemy < 1) {
if (ml == 1) {
_root.gotoAndStop(37);
ml = 0;
}
}
if (_root.amitavalife < 5) {
if (gl == 1) {
gameEnd();
}
}
}
onClipEvent (mouseDown) {
this.gotoAndStop(2);
if (((((this.ter.po.hitTest(_root.back.s1) || (this.ter.po.hitTest(_root.back.s2))) || (this.ter.po.hitTest(_root.back.s3))) || (this.ter.po.hitTest(_root.back.s4))) || (this.ter.po.hitTest(_root.back.s5))) || (this.ter.po.hitTest(_root.back.s6))) {
if (pl == 1) {
_root.back.alert = true;
pl = 0;
}
}
if (this.ter.po.hitTest(_root.back.s1)) {
if (_root.back.s1.life > 0) {
_root.back.s1.life = _root.back.s1.life - 1;
} else {
_root.back.s1.die = true;
_root.back.s1.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s2)) {
if (_root.back.s2.life > 0) {
_root.back.s2.life = _root.back.s2.life - 1;
} else {
_root.back.s2.die = true;
_root.back.s2.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s3)) {
if (_root.back.s3.life > 0) {
_root.back.s3.life = _root.back.s3.life - 1;
} else {
_root.back.s3.die = true;
_root.back.s3.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s4)) {
if (_root.back.s4.life > 0) {
_root.back.s4.life = _root.back.s4.life - 1;
} else {
_root.back.s4.die = true;
_root.back.s4.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s5)) {
if (_root.back.s5.life > 0) {
_root.back.s5.life = _root.back.s5.life - 1;
} else {
_root.back.s5.die = true;
_root.back.s5.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s6)) {
if (_root.back.s6.life > 0) {
_root.back.s6.life = _root.back.s6.life - 1;
} else {
_root.back.s6.die = true;
_root.back.s6.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.hs1.BTA.body)) {
_root.back.hs1.die = true;
_root.back.hs1.gotoAndStop(5);
}
if (this.ter.po.hitTest(_root.back.hs2.BTA.body)) {
_root.back.hs2.die = true;
_root.back.hs2.gotoAndStop(4);
}
if (this.ter.po.hitTest(_root.back.hs3)) {
_root.back.hs3.die = true;
_root.back.hs3.gotoAndStop(6);
}
if (this.ter.po.hitTest(_root.back.hs4)) {
_root.back.hs4.die = true;
_root.back.hs4.gotoAndStop(6);
}
i = 28;
while (i <= 60) {
if (this.ter.po.hitTest(_root.back["newd" + i])) {
if (_root.back["newd" + i].life > 0) {
_root.back["newd" + i].life = _root.back["newd" + i].life - 1;
} else {
_root.back["newd" + i].die = true;
_root.back["newd" + i].gotoAndStop(3);
}
}
i++;
}
i = 0;
while (i <= 40) {
if (this.ter.po.hitTest(_root.back["newc" + i])) {
if (_root.back["newc" + i].life > 0) {
_root.back["newc" + i].life = _root.back["newc" + i].life - 1;
} else {
_root.back["newc" + i].die = true;
_root.back["newc" + i].gotoAndStop("frdead");
}
}
i++;
}
i = 30;
while (i <= 60) {
if (this.ter.po.hitTest(_root.back["newd" + i])) {
if (_root.back["newd" + i].life > 0) {
_root.back["newd" + i].life = _root.back["newd" + i].life - 1;
} else {
_root.back["newd" + i].die = true;
_root.back["newd" + i].gotoAndStop("frdead");
}
}
i++;
}
i = 0;
while (i <= 40) {
if (this.ter.po.hitTest(_root.back["newb" + i])) {
if (_root.back["newb" + i].life > 0) {
_root.back["newb" + i].life = _root.back["newb" + i].life - 1;
} else {
_root.back["newb" + i].die = true;
_root.back["newb" + i].gotoAndStop("frdead");
}
}
i++;
}
}
Frame 37
fscommand ("allowscale", false);
Frame 41
fscommand ("allowscale", false);
stop();
amitavaenemy = 30;
Mouse.hide();
Instance of Symbol 975 MovieClip "gun" in Frame 41
onClipEvent (load) {
function gameEnd() {
_root.gov.play();
gl = 0;
_root.nextFrame();
Mouse.show();
}
startDrag (this, true, 50, 250, 630, 530);
pl = 1;
ml = 1;
gl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaenemy < 1) {
if (ml == 1) {
_root.gotoAndStop(42);
ml = 0;
}
}
if (_root.amitavalife < 5) {
if (gl == 1) {
gameEnd();
}
}
}
onClipEvent (mouseDown) {
this.gotoAndStop(2);
if (((((this.ter.po.hitTest(_root.back.s1) || (this.ter.po.hitTest(_root.back.s2))) || (this.ter.po.hitTest(_root.back.s3))) || (this.ter.po.hitTest(_root.back.s4))) || (this.ter.po.hitTest(_root.back.s5))) || (this.ter.po.hitTest(_root.back.s6))) {
if (pl == 1) {
_root.back.alert = true;
pl = 0;
}
}
if (this.ter.po.hitTest(_root.back.s1)) {
if (_root.back.s1.life > 0) {
_root.back.s1.life = _root.back.s1.life - 1;
} else {
_root.back.s1.die = true;
_root.back.s1.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s2)) {
if (_root.back.s2.life > 0) {
_root.back.s2.life = _root.back.s2.life - 1;
} else {
_root.back.s2.die = true;
_root.back.s2.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s3)) {
if (_root.back.s3.life > 0) {
_root.back.s3.life = _root.back.s3.life - 1;
} else {
_root.back.s3.die = true;
_root.back.s3.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s4)) {
if (_root.back.s4.life > 0) {
_root.back.s4.life = _root.back.s4.life - 1;
} else {
_root.back.s4.die = true;
_root.back.s4.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s5)) {
if (_root.back.s5.life > 0) {
_root.back.s5.life = _root.back.s5.life - 1;
} else {
_root.back.s5.die = true;
_root.back.s5.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.s6)) {
if (_root.back.s6.life > 0) {
_root.back.s6.life = _root.back.s6.life - 1;
} else {
_root.back.s6.die = true;
_root.back.s6.gotoAndStop("frdead");
}
}
if (this.ter.po.hitTest(_root.back.hs1.BTA.body)) {
_root.back.hs1.die = true;
_root.back.hs1.gotoAndStop(5);
}
if (this.ter.po.hitTest(_root.back.hs2.BTA.body)) {
_root.back.hs2.die = true;
_root.back.hs2.gotoAndStop(4);
}
if (this.ter.po.hitTest(_root.back.hs3)) {
_root.back.hs3.die = true;
_root.back.hs3.gotoAndStop(6);
}
if (this.ter.po.hitTest(_root.back.hs4)) {
_root.back.hs4.die = true;
_root.back.hs4.gotoAndStop(6);
}
i = 0;
while (i <= 80) {
if (this.ter.po.hitTest(_root.back["newc" + i])) {
if (_root.back["newc" + i].life > 0) {
_root.back["newc" + i].life = _root.back["newc" + i].life - 1;
} else {
_root.back["newc" + i].die = true;
_root.back["newc" + i].gotoAndStop("frdead");
}
}
i++;
}
i = 30;
while (i <= 80) {
if (this.ter.po.hitTest(_root.back["newd" + i])) {
if (_root.back["newd" + i].life > 0) {
_root.back["newd" + i].life = _root.back["newd" + i].life - 1;
} else {
_root.back["newd" + i].die = true;
_root.back["newd" + i].gotoAndStop("frdead");
}
}
i++;
}
i = 0;
while (i <= 80) {
if (this.ter.po.hitTest(_root.back["newb" + i])) {
if (_root.back["newb" + i].life > 0) {
_root.back["newb" + i].life = _root.back["newb" + i].life - 1;
} else {
_root.back["newb" + i].die = true;
_root.back["newb" + i].gotoAndStop("frdead");
}
}
i++;
}
}
Frame 42
fscommand ("allowscale", false);
Frame 46
fscommand ("allowscale", false);
amitavaenemy = 9;
amitavatank = 4;
amitavavanhealth = 80;
Mouse.hide();
Instance of Symbol 642 MovieClip "can1" in Frame 46
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.back.s1.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s1.gotoAndStop(3);
duplicateMovieClip (_parent.ebul, "ebul" + shotCount, (shotCount % 100) + 1100);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
Instance of Symbol 642 MovieClip "can3" in Frame 46
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.back.s3.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s3.gotoAndStop(3);
duplicateMovieClip (_parent.ebulb, "ebulb" + shotCount, (shotCount % 120) + 1120);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
Instance of Symbol 642 MovieClip "can4" in Frame 46
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.back.s4.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - (_root.back._x + _root.back.car_follow._x);
dy = _y - (_root.back._y + _root.back.car_follow._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s4.gotoAndStop(3);
duplicateMovieClip (_parent.ebulc, "ebulc" + shotCount, (shotCount % 130) + 1130);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
Instance of Symbol 642 MovieClip "can8" in Frame 46
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.back.s5.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s5.gotoAndStop(3);
duplicateMovieClip (_parent.ebulg, "ebulg" + shotCount, (shotCount % 170) + 1170);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
Instance of Symbol 642 MovieClip "can9" in Frame 46
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.back.s6.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s6.gotoAndStop(3);
duplicateMovieClip (_parent.ebulh, "ebulh" + shotCount, (shotCount % 180) + 1180);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
Instance of Symbol 642 MovieClip "can10" in Frame 46
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.back.s7.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - (_root.back._x + _root.back.car_follow._x);
dy = _y - (_root.back._y + _root.back.car_follow._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s7.gotoAndStop(3);
duplicateMovieClip (_parent.ebuli, "ebuli" + shotCount, (shotCount % 190) + 1190);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
Instance of Symbol 642 MovieClip "can11" in Frame 46
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.back.s8.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - (_root.back._x + _root.back.car_follow._x);
dy = _y - (_root.back._y + _root.back.car_follow._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s8.gotoAndStop(3);
duplicateMovieClip (_parent.ebulj, "ebulj" + shotCount, (shotCount % 200) + 2000);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
Instance of Symbol 642 MovieClip "can12" in Frame 46
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.back.s9.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - (_root.back._x + _root.back.car_follow._x);
dy = _y - (_root.back._y + _root.back.car_follow._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s9.gotoAndStop(3);
duplicateMovieClip (_parent.ebulk, "ebulk" + shotCount, (shotCount % 210) + 2010);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
Instance of Symbol 642 MovieClip "can6" in Frame 46
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.back.t1.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.t1.gotoAndStop(2);
duplicateMovieClip (_parent.ebule, "ebule" + shotCount, (shotCount % 150) + 1150);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
Instance of Symbol 642 MovieClip "can5" in Frame 46
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.back.t2.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.t2.gotoAndStop(2);
duplicateMovieClip (_parent.ebuld, "ebuld" + shotCount, (shotCount % 140) + 1140);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
Instance of Symbol 642 MovieClip "can7" in Frame 46
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.back.t3.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.t3.gotoAndStop(2);
duplicateMovieClip (_parent.ebulf, "ebulf" + shotCount, (shotCount % 160) + 1160);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
Instance of Symbol 642 MovieClip "can13" in Frame 46
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.back.t4.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - _root.cop._x;
dy = _y - _root.cop._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.t4.gotoAndStop(2);
duplicateMovieClip (_parent.ebull, "ebull" + shotCount, (shotCount % 220) + 2020);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
Instance of Symbol 654 MovieClip "mc_blastSound" in Frame 46
onClipEvent (load) {
_global.blastSound = false;
}
onClipEvent (enterFrame) {
if (_global.blastSound) {
gotoAndPlay (2);
_global.blastSound = false;
}
}
Instance of Symbol 699 MovieClip "cop" in Frame 46
onClipEvent (load) {
function landing() {
var _local1 = this;
var _local2 = _root;
if (_local1._width > 70) {
_local1._width = _local1._width - 0.7;
_local1._height = _local1._height - 0.7;
} else if (pl == 1) {
if (((_local1.ar1.hitTest(_local2.back.helipad) && (_local1.ar2.hitTest(_local2.back.helipad))) && (_local1.ar3.hitTest(_local2.back.helipad))) && (_local1.ar4.hitTest(_local2.back.helipad))) {
_local2.wel.play();
pl = 0;
_local2.gotoAndStop(47);
} else {
_local1.gotoAndStop(4);
pl = 0;
}
}
}
pl = 1;
land = false;
End = false;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (land == true) {
landing();
}
if (_root.back._y < 1800) {
_root.back._y = _root.back._y + 2;
_root.can1._y = _root.can1._y + 2;
_root.can2._y = _root.can2._y + 2;
_root.can3._y = _root.can3._y + 2;
_root.can4._y = _root.can4._y + 2;
_root.can5._y = _root.can5._y + 2;
_root.can6._y = _root.can6._y + 2;
_root.can7._y = _root.can7._y + 2;
_root.can8._y = _root.can8._y + 2;
_root.can9._y = _root.can9._y + 2;
_root.can10._y = _root.can10._y + 2;
_root.can11._y = _root.can11._y + 2;
_root.can12._y = _root.can12._y + 2;
_root.can13._y = _root.can13._y + 2;
} else {
End = true;
}
if (Key.isDown(87)) {
if (_y > 250) {
_y = (_y - 5);
_root.tank._y = _root.tank._y - 5;
_root.sc._y = _root.sc._y - 5;
}
}
if (Key.isDown(83)) {
if (_y < 450) {
_y = (_y + 5);
_root.tank._y = _root.tank._y + 5;
_root.sc._y = _root.sc._y + 5;
}
}
if (Key.isDown(65) && (_x > 50)) {
_x = (_x - 5);
_root.tank._x = _root.tank._x - 5;
_root.sc._x = _root.sc._x - 5;
} else if (Key.isDown(68) && (_x < 550)) {
_x = (_x + 5);
_root.tank._x = _root.tank._x + 5;
_root.sc._x = _root.sc._x + 5;
}
if (Key.isDown(32) && (End == true)) {
land = true;
}
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smk" in Frame 46
onClipEvent (load) {
if (_name != "smk") {
this._x = _root["ebul" + _root.can1.shotCount]._x;
this._y = _root["ebul" + _root.can1.shotCount]._y;
this._rotation = _root["ebul" + _root.can1.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smk") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smka" in Frame 46
onClipEvent (load) {
if (_name != "smk") {
this._x = _root["ebulb" + _root.can3.shotCount]._x;
this._y = _root["ebulb" + _root.can3.shotCount]._y;
this._rotation = _root["ebulb" + _root.can3.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smk") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smkb" in Frame 46
onClipEvent (load) {
if (_name != "smkb") {
this._x = _root["ebuld" + _root.can5.shotCount]._x;
this._y = _root["ebuld" + _root.can5.shotCount]._y;
this._rotation = _root["ebuld" + _root.can5.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smkb") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smkc" in Frame 46
onClipEvent (load) {
if (_name != "smkc") {
this._x = _root["ebule" + _root.can6.shotCount]._x;
this._y = _root["ebule" + _root.can6.shotCount]._y;
this._rotation = _root["ebule" + _root.can6.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smkc") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smkd" in Frame 46
onClipEvent (load) {
if (_name != "smkd") {
this._x = _root["ebulf" + _root.can7.shotCount]._x;
this._y = _root["ebulf" + _root.can7.shotCount]._y;
this._rotation = _root["ebulf" + _root.can7.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smkd") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smke" in Frame 46
onClipEvent (load) {
if (_name != "smke") {
this._x = _root["ebulg" + _root.can8.shotCount]._x;
this._y = _root["ebulg" + _root.can8.shotCount]._y;
this._rotation = _root["ebulg" + _root.can8.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smke") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smkf" in Frame 46
onClipEvent (load) {
if (_name != "smkf") {
this._x = _root["ebulh" + _root.can9.shotCount]._x;
this._y = _root["ebulh" + _root.can9.shotCount]._y;
this._rotation = _root["ebulh" + _root.can9.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smkf") {
}
}
Instance of Symbol 366 MovieClip [smokeParticle] "smkg" in Frame 46
onClipEvent (load) {
if (_name != "smkg") {
this._x = _root["ebull" + _root.can13.shotCount]._x;
this._y = _root["ebull" + _root.can13.shotCount]._y;
this._rotation = _root["ebull" + _root.can13.shotCount]._rotation;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "smkg") {
}
}
Instance of Symbol 642 MovieClip "tank" in Frame 46
onClipEvent (load) {
d = 0;
_visible = false;
}
onClipEvent (mouseDown) {
if (shotTimer <= 0) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.norbull, "norbull" + shotCount, (shotCount % 800) + 8100);
shotTimer = 0.9;
}
shotTimer--;
}
Instance of Symbol 700 MovieClip "sc" in Frame 46
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._rotation = angle * -1;
updateAfterEvent();
}
Instance of Symbol 646 MovieClip "ebul" in Frame 46
onClipEvent (load) {
if (String(_name) != "ebul") {
cannonLength = 20;
turretpoint = (_parent.can1._rotation + _parent.can1.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can1._x);
_y = (ycomponent + _parent.can1._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebul") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smk.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 649 MovieClip "ebula" in Frame 46
onClipEvent (load) {
if (String(_name) != "ebula") {
cannonLength = 20;
turretpoint = (_parent.can2._rotation + _parent.can2.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can2._x);
_y = (ycomponent + _parent.can2._y);
xmove = (xcomponent / cannonLength) * 20;
ymove = (ycomponent / cannonLength) * 20;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebula") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
if (this.hitTest(_root.back.van)) {
_parent.amitavavanhealth = _parent.amitavavanhealth - 20;
_parent.vanbar._width = _parent.vanbar._width - 20;
removeMovieClip(this);
}
}
}
Instance of Symbol 646 MovieClip "ebulb" in Frame 46
onClipEvent (load) {
if (String(_name) != "ebulb") {
cannonLength = 20;
turretpoint = (_parent.can3._rotation + _parent.can3.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can3._x);
_y = (ycomponent + _parent.can3._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulb") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smka.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 649 MovieClip "ebulc" in Frame 46
onClipEvent (load) {
if (String(_name) != "ebulc") {
cannonLength = 20;
turretpoint = (_parent.can4._rotation + _parent.can4.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can4._x);
_y = (ycomponent + _parent.can4._y);
xmove = (xcomponent / cannonLength) * 20;
ymove = (ycomponent / cannonLength) * 20;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulc") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
if (this.hitTest(_root.back.van)) {
_parent.amitavavanhealth = _parent.amitavavanhealth - 20;
_parent.vanbar._width = _parent.vanbar._width - 20;
removeMovieClip(this);
}
}
}
Instance of Symbol 646 MovieClip "ebuld" in Frame 46
onClipEvent (load) {
if (String(_name) != "ebuld") {
cannonLength = 30;
turretpoint = (_parent.can5._rotation + _parent.can5.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can5._x);
_y = (ycomponent + _parent.can5._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebuld") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smkb.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 646 MovieClip "ebule" in Frame 46
onClipEvent (load) {
if (String(_name) != "ebule") {
cannonLength = 30;
turretpoint = (_parent.can6._rotation + _parent.can6.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can6._x);
_y = (ycomponent + _parent.can6._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebule") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smkc.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 646 MovieClip "ebulf" in Frame 46
onClipEvent (load) {
if (String(_name) != "ebulf") {
cannonLength = 30;
turretpoint = (_parent.can7._rotation + _parent.can7.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can7._x);
_y = (ycomponent + _parent.can7._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulf") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smkd.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 646 MovieClip "ebulg" in Frame 46
onClipEvent (load) {
if (String(_name) != "ebulg") {
cannonLength = 30;
turretpoint = (_parent.can8._rotation + _parent.can8.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can8._x);
_y = (ycomponent + _parent.can8._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulg") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smke.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 646 MovieClip "ebulh" in Frame 46
onClipEvent (load) {
if (String(_name) != "ebulh") {
cannonLength = 30;
turretpoint = (_parent.can9._rotation + _parent.can9.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can9._x);
_y = (ycomponent + _parent.can9._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulh") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smkf.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 649 MovieClip "ebuli" in Frame 46
onClipEvent (load) {
if (String(_name) != "ebuli") {
cannonLength = 20;
turretpoint = (_parent.can10._rotation + _parent.can10.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can10._x);
_y = (ycomponent + _parent.can10._y);
xmove = (xcomponent / cannonLength) * 20;
ymove = (ycomponent / cannonLength) * 20;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebuli") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
if (this.hitTest(_root.back.van)) {
_parent.amitavavanhealth = _parent.amitavavanhealth - 20;
_parent.vanbar._width = _parent.vanbar._width - 20;
removeMovieClip(this);
}
}
}
Instance of Symbol 649 MovieClip "ebulj" in Frame 46
onClipEvent (load) {
if (String(_name) != "ebulj") {
cannonLength = 20;
turretpoint = (_parent.can11._rotation + _parent.can11.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can11._x);
_y = (ycomponent + _parent.can11._y);
xmove = (xcomponent / cannonLength) * 20;
ymove = (ycomponent / cannonLength) * 20;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulj") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
if (this.hitTest(_root.back.van)) {
_parent.amitavavanhealth = _parent.amitavavanhealth - 20;
_parent.vanbar._width = _parent.vanbar._width - 20;
removeMovieClip(this);
}
}
}
Instance of Symbol 649 MovieClip "ebulk" in Frame 46
onClipEvent (load) {
if (String(_name) != "ebulk") {
cannonLength = 20;
turretpoint = (_parent.can12._rotation + _parent.can12.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can12._x);
_y = (ycomponent + _parent.can12._y);
xmove = (xcomponent / cannonLength) * 20;
ymove = (ycomponent / cannonLength) * 20;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebulk") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
if (this.hitTest(_root.back.van)) {
_parent.amitavavanhealth = _parent.amitavavanhealth - 20;
_parent.vanbar._width = _parent.vanbar._width - 20;
removeMovieClip(this);
}
}
}
Instance of Symbol 646 MovieClip "ebull" in Frame 46
onClipEvent (load) {
if (String(_name) != "ebull") {
cannonLength = 30;
turretpoint = (_parent.can13._rotation + _parent.can13.turret._rotation) - 270;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.can13._x);
_y = (ycomponent + _parent.can13._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "ebull") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
timer--;
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_root.smkg.duplicateMovieClip("newc" + d, bulletDepth);
timer = 5;
a = true;
}
if (this.hitTest(_root.cop.body)) {
_root.cop.gotoAndStop(4);
removeMovieClip(this);
}
}
}
Instance of Symbol 638 MovieClip "cross_hair" in Frame 46
onClipEvent (load) {
Mouse.hide();
d = 0;
startDrag (this, true);
s = new Sound();
s.attachSound("bum");
}
onClipEvent (enterFrame) {
}
onClipEvent (mouseDown) {
if (_root.amitavaplay) {
if (!a) {
d++;
bulletDepth = d % 100;
s.start();
_parent.bullets = bulletDepth;
_root.bullet.duplicateMovieClip("newb" + d, bulletDepth);
a = true;
}
}
}
onClipEvent (mouseUp) {
a = false;
}
Instance of Symbol 651 MovieClip "norbull" in Frame 46
onClipEvent (load) {
if (String(_name) != "norbull") {
terpoint = _root._ymouse;
cannonLength = 100;
turretpoint = (_parent.tank._rotation + _parent.tank.turret._rotation) - 270;
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) * 20;
ymove = (ycomponent / cannonLength) * 20;
this._rotation = turretpoint - 90;
}
timer = 5;
d = 0;
}
onClipEvent (enterFrame) {
if (String(_name) != "norbull") {
_x = (_x + xmove);
_y = (_y + ymove);
if (timer < 0) {
a = false;
}
if (this._y < terpoint) {
removeMovieClip(this);
}
if (this.hitTest(_root.back.s1) && (_root.back.s1.die == false)) {
_root.back.s1.die = true;
_root.back.s1.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s2) && (_root.back.s2.die == false)) {
_root.back.s2.die = true;
_root.back.s2.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s3) && (_root.back.s3.die == false)) {
_root.back.s3.die = true;
_root.back.s3.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s4) && (_root.back.s4.die == false)) {
_root.back.s4.die = true;
_root.back.s4.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s5) && (_root.back.s5.die == false)) {
_root.back.s5.die = true;
_root.back.s5.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s6) && (_root.back.s6.die == false)) {
_root.back.s6.die = true;
_root.back.s6.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s7) && (_root.back.s7.die == false)) {
_root.back.s7.die = true;
_root.back.s7.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s8) && (_root.back.s8.die == false)) {
_root.back.s8.die = true;
_root.back.s8.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.s9) && (_root.back.s9.die == false)) {
_root.back.s9.die = true;
_root.back.s9.gotoAndStop(4);
removeMovieClip(this);
}
if (this.hitTest(_root.back.t1) && (_root.back.t1.die == false)) {
if (_root.back.t1.life > 0) {
_root.back.t1.life = _root.back.t1.life - 1;
removeMovieClip(this);
} else {
_root.back.t1.die = true;
_root.back.t1.gotoAndPlay(3);
_global.blastSound = true;
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.t2) && (_root.back.t2.die == false)) {
if (_root.back.t2.life > 0) {
_root.back.t2.life = _root.back.t2.life - 1;
removeMovieClip(this);
} else {
_root.back.t2.die = true;
_root.back.t2.gotoAndPlay(3);
_global.blastSound = true;
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.t3) && (_root.back.t3.die == false)) {
if (_root.back.t3.life > 0) {
_root.back.t3.life = _root.back.t3.life - 1;
removeMovieClip(this);
} else {
_root.back.t3.die = true;
_root.back.t3.gotoAndPlay(3);
_global.blastSound = true;
removeMovieClip(this);
}
}
if (this.hitTest(_root.back.t4) && (_root.back.t4.die == false)) {
if (_root.back.t4.life > 0) {
_root.back.t4.life = _root.back.t4.life - 1;
removeMovieClip(this);
} else {
_root.back.t4.die = true;
_root.back.t4.gotoAndPlay(3);
_global.blastSound = true;
removeMovieClip(this);
}
}
}
}
Instance of Symbol 369 MovieClip [impactBullet] "bullet" in Frame 46
onClipEvent (load) {
if (_name != "bullet") {
this._x = _root.cross_hair._x;
this._y = _root.cross_hair._y;
zapsound = new Sound();
zapsound.attachSound("zap");
}
}
onClipEvent (enterFrame) {
if (_name != "bullet") {
}
}
Instance of Symbol 642 MovieClip "can2" in Frame 46
onClipEvent (load) {
shotTimer = 50 + random(100);
_visible = false;
att = false;
}
onClipEvent (enterFrame) {
if (_root.back.s2.die == false) {
if (this.hitTest(_root.attack)) {
att = true;
}
if (this.hitTest(_root.dattack)) {
att = false;
}
dx = _x - (_root.back._x + _root.back.car_follow._x);
dy = _y - (_root.back._y + _root.back.car_follow._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;
b = 5 * Math.cos(rad);
p = 5 * Math.sin(rad);
}
if ((shotTimer < 0) && (att == true)) {
bumSound.start();
shotCount++;
_root.back.s2.gotoAndStop(3);
duplicateMovieClip (_parent.ebula, "ebula" + shotCount, (shotCount % 110) + 1110);
shotTimer = 50 + random(100);
}
shotTimer--;
}
}
Instance of Symbol 702 MovieClip "attack" in Frame 46
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 702 MovieClip "dattack" in Frame 46
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 717 MovieClip "vanbar" in Frame 46
onClipEvent (enterFrame) {
}
Frame 47
fscommand ("allowscale", false);
Frame 56
fscommand ("allowscale", false);
Frame 57
fscommand ("allowscale", false);
Frame 60
fscommand ("allowscale", false);
Frame 61
fscommand ("allowscale", false);
Frame 65
fscommand ("allowscale", false);
Symbol 7 MovieClip [am] Frame 1
var ssc = "amitavagame";
Symbol 8 MovieClip [ff] Frame 1
if (((((_root.cl.ais == true) && (_root.cl.bis == true)) && (_root.cl.mis == true)) && (_root.cl.pis == true)) && (_root.cl.gis == true)) {
this.attachMovie("am", "am", 3);
} else {
removeMovieClip("am");
}
Symbol 9 MovieClip [cl] Frame 1
_root.chkload = true;
var ais = false;
var bis = false;
var mis = false;
var pis = false;
var gis = false;
var listener = new Object();
listener.onKeyDown = function () {
var _local1 = Key.getCode();
if (_local1 == 65) {
ais = true;
}
if (_local1 == 66) {
bis = true;
}
if (_local1 == 77) {
mis = true;
}
if (_local1 == 71) {
pis = true;
}
if (_local1 == 73) {
gis = true;
}
};
Key.addListener(listener);
listener.onKeyUp = function () {
var _local1 = Key.getCode();
if (_local1 == 65) {
ais = false;
}
if (_local1 == 66) {
bis = false;
}
if (_local1 == 77) {
mis = false;
}
if (_local1 == 71) {
pis = false;
}
if (_local1 == 73) {
gis = false;
} else {
ais = false;
bis = false;
mis = false;
pis = false;
gis = false;
}
};
Key.addListener(listener);
Symbol 17 MovieClip [scoresLoader] Frame 1
scoreHolder.onData = function () {
trace("loaded");
offs = 0;
with (eval (scoreHolder)) {
i = 1;
while (eval ("score" add i) ne "") {
attachMovie("scorePane", "scorePane" add i, i);
eval ("scorePane" add i).score = eval ("score" add i);
eval ("scorePane" add i).nickname = eval ("nickname" add i);
eval ("scorePane" add i)._y = offs - 1;
offs = offs + eval ("scorePane" add i)._height;
offs--;
i++;
}
_parent._parent.refreshPane();
}
};
Instance of Symbol 16 MovieClip "scoreHolder" in Symbol 17 MovieClip [scoresLoader] Frame 1
onClipEvent (load) {
trace("panel holder loaded");
loadVariables ("highscores/show.asp?noCache=" add Math.random(), this);
stop();
}
Symbol 18 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var _local4 = _local1.styleTable.focusRectInner.value;
var _local5 = _local1.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, _local5);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, _local4);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
return(undefined);
}
var _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!_local16)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var _local18 = _local2.subString(4, _local2.length);
_local1.textStyle[_local18] = value;
_local1.invalidate("setSize");
} else {
for (var _local15 in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[_local15]);
if (_local1.styleTable[_local2].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(_local5);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = _local16;
}
return(undefined);
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local3 = 0;
while (_local3 < arguments.length) {
var _local2 = arguments[_local3];
_local1.listeners[arguments[_local3]] = _local2;
for (var _local5 in _local1) {
if (_local1.isAStyle(_local5)) {
_local2.updateStyleProperty(_local1, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var _local4 in _local1) {
if (_local1.isAStyle(_local4)) {
if (_local2.styleTable[_local4].useGlobal == _local1.isGlobal) {
_local2.styleTable[_local4].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[_local4]));
_local2.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var _local6 = 0;
for (var _local5 in _local1.listeners) {
var _local3 = _local1.listeners[_local5];
if (_local2.length > 0) {
var _local4 = 0;
while (_local4 < _local2.length) {
if (_local1.isAStyle(_local2[_local4])) {
_local3.updateStyleProperty(_local1, _local2[_local4]);
}
_local4++;
}
} else {
for (var _local4 in _local1) {
if (_local1.isAStyle(_local4)) {
_local3.updateStyleProperty(_local1, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 31 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 41 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 50 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 51 MovieClip [UpArrow] Frame 1
stop();
Symbol 51 MovieClip [UpArrow] Frame 2
stop();
Symbol 51 MovieClip [UpArrow] Frame 3
stop();
Symbol 58 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 65 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 70 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 71 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 79 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 87 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 95 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 96 MovieClip [DownArrow] Frame 1
stop();
Symbol 96 MovieClip [DownArrow] Frame 2
stop();
Symbol 96 MovieClip [DownArrow] Frame 3
stop();
Symbol 113 MovieClip [target] Frame 1
stop();
Symbol 121 MovieClip [explodeBullet] Frame 4
this.removeMovieClip();
Symbol 127 MovieClip [explodeSmall] Frame 6
this.removeMovieClip();
Symbol 132 MovieClip Frame 10
stop();
Symbol 134 MovieClip Frame 10
stop();
Symbol 135 MovieClip [rocket] Frame 1
stop();
Symbol 135 MovieClip [rocket] Frame 26
this.removeMovieClip();
stop();
Symbol 178 MovieClip Frame 17
stop();
Symbol 181 MovieClip Frame 55
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 216 MovieClip [HomeShip] Frame 1
stop();
Instance of Symbol 141 MovieClip "hitAreaClip" in Symbol 216 MovieClip [HomeShip] Frame 1
/* no clip actions */
Symbol 216 MovieClip [HomeShip] Frame 3
_root.ship.makeOff();
Symbol 216 MovieClip [HomeShip] Frame 70
stop();
_root.gotoAndStop("gameOver");
Symbol 219 MovieClip [torpedo] Frame 1
stop();
Symbol 219 MovieClip [torpedo] Frame 3
stop();
Symbol 234 MovieClip [textShow] Frame 7
function fin() {
this.play();
}
stop();
setInterval(this, "fin", 1500);
Symbol 234 MovieClip [textShow] Frame 16
this.removeMovieClip();
Symbol 240 MovieClip [damageShow] Frame 1
damageScale._xscale = percent;
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = follow._x;
_local1._y = follow._y - 50;
_local1.counter++;
if (_local1.counter > 40) {
_local1.play();
}
};
Symbol 240 MovieClip [damageShow] Frame 5
stop();
Symbol 240 MovieClip [damageShow] Frame 15
this.removeMovieClip();
Symbol 256 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 257 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
return(undefined);
}
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
return(undefined);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
return(undefined);
}
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
return(undefined);
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local3 = enabledFlag;
var _local2 = _local1.enable;
if (_local3 && (!_local2)) {
_local1.enable = _local3;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local3) && (_local2)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local3;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
return(undefined);
}
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
return(undefined);
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
return(undefined);
}
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
return(undefined);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
return(undefined);
}
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local3 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local3, _local1.textField.maxhscroll));
} else {
var _local3 = _local1.textField.scroll;
var _local2 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local2, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local3, _local1.textField.maxscroll));
}
return(undefined);
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 260 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 260 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 264 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 3
function FScrollPaneClass() {
var _local1 = this;
function boolToString(str) {
var _local1 = str;
if (_local1 == "false") {
return(false);
}
if (_local1 == "true") {
return(true);
}
return(_local1);
}
_local1.init();
_local1.width = _local1._width;
_local1.height = _local1._height;
_local1._xscale = (_local1._yscale = 100);
_local1.contentWidth = (_local1.contentHeight = 0);
if (_local1.hScroll == undefined) {
_local1.hScroll = (_local1.vScroll = "auto");
_local1.dragContent = false;
}
_local1.offset = new Object();
_local1.vScroll = boolToString(_local1.vScroll);
_local1.hScroll = boolToString(_local1.hScroll);
_local1.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:_local1.styleTable});
_local1.hScrollBar_mc.setHorizontal(true);
_local1.hScrollBar_mc.setSmallScroll(5);
_local1.hScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:_local1.styleTable});
_local1.vScrollBar_mc.setSmallScroll(5);
_local1.vScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.setSize(_local1.width, _local1.height);
if (_local1.scrollContent != "") {
_local1.setScrollContent(_local1.scrollContent);
}
_local1.setDragContent(_local1.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var _local1 = this;
var _local2 = ((_local1.hScrollBar_mc == undefined) ? 0 : (_local1.hScrollBar_mc.getScrollPosition()));
var _local3 = ((_local1.vScrollBar_mc == undefined) ? 0 : (_local1.vScrollBar_mc.getScrollPosition()));
return({x:_local2, y:_local3});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
var _local1 = this;
var _local2 = target;
_local1.offset.x = 0;
_local1.offset.y = 0;
if (_local1.content_mc != undefined) {
if (_local2 != _local1.content_mc) {
_local1.content_mc._visible = false;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
}
}
if (typeof(_local2) == "string") {
_local1.attachMovie(_local2, "tmp_mc", 3);
_local1.content_mc = _local1.tmp_mc;
} else if (_local2 == undefined) {
_local1.content_mc.unloadMovie();
} else {
_local1.content_mc = _local2;
}
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
var _local3 = _local1.content_mc.getBounds(_local1);
_local1.offset.x = -_local3.xMin;
_local1.offset.y = -_local3.yMin;
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
_local1.contentWidth = _local1.content_mc._width;
_local1.contentHeight = _local1.content_mc._height;
_local1.content_mc.setMask(_local1.mask_mc);
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
if (((arguments.length < 2) || (isNaN(_local3))) || (isNaN(_local2))) {
return(undefined);
}
super.setSize(_local3, _local2);
_local1.width = Math.max(_local3, 60);
_local1.height = Math.max(_local2, 60);
_local1.boundingBox_mc._xscale = 100;
_local1.boundingBox_mc._yscale = 100;
_local1.boundingBox_mc._width = _local1.width;
_local1.boundingBox_mc._height = _local1.height;
_local1.setHandV();
_local1.initScrollBars();
if (_local1.mask_mc == undefined) {
_local1.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
_local1.mask_mc._xscale = 100;
_local1.mask_mc._yscale = 100;
_local1.mask_mc._width = _local1.hWidth;
_local1.mask_mc._height = _local1.vHeight;
_local1.mask_mc._alpha = 0;
return(undefined);
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
_local3 = Math.max(_local1.hScrollBar_mc.minPos, _local3);
_local3 = Math.min(_local1.hScrollBar_mc.maxPos, _local3);
_local2 = Math.max(_local1.vScrollBar_mc.minPos, _local2);
_local2 = Math.min(_local1.vScrollBar_mc.maxPos, _local2);
_local1.hScrollBar_mc.setScrollPosition(_local3);
_local1.vScrollBar_mc.setScrollPosition(_local2);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
var _local1 = this;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
_local1.content_mc._visible = 0;
_local1.loadContent.duplicateMovieClip("loadTemp", 3);
_local1.dupeFlag = true;
_local1.contentLoaded = function () {
var _local1 = this;
_local1.loadReady = false;
_local1.content_mc = _local1.loadTemp;
_local1.refreshPane();
_local1.executeCallBack();
};
_local1.setChangeHandler(handler, location);
_local1.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
var _local1 = this;
_local1.hScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
var _local1 = this;
_local1.vScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
var _local1 = this;
if (dragFlag) {
_local1.boundingBox_mc.useHandCursor = true;
_local1.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
_local1.boundingBox_mc.tabEnabled = false;
_local1.boundingBox_mc.onRelease = (_local1.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete _local1.boundingBox_mc.onPress;
_local1.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
var _local1 = this;
if ((((_local1.contentHeight - _local1.height) > 2) && (_local1.vScroll != false)) || (_local1.vScroll == true)) {
_local1.hWidth = _local1.width - _local1.vScrollBar_mc._width;
} else {
_local1.hWidth = _local1.width;
}
if ((((_local1.contentWidth - _local1.width) > 2) && (_local1.hScroll != false)) || (_local1.hScroll == true)) {
_local1.vHeight = _local1.height - _local1.hScrollBar_mc._height;
} else {
_local1.vHeight = _local1.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.myOnSetFocus();
_local1.lastX = _local1._xmouse;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = function () {
var _local1 = this;
_local1.scrollXMove = _local1.lastX - _local1._xmouse;
_local1.scrollYMove = _local1.lastY - _local1._ymouse;
_local1.scrollXMove = _local1.scrollXMove + _local1.hScrollBar_mc.getScrollPosition();
_local1.scrollYMove = _local1.scrollYMove + _local1.vScrollBar_mc.getScrollPosition();
_local1.setScrollPosition(_local1.scrollXMove, _local1.scrollYMove);
if ((_local1.scrollXMove < _local1.hScrollBar_mc.maxPos) && (_local1.scrollXMove > _local1.hScrollBar_mc.minPos)) {
_local1.lastX = _local1._xmouse;
}
if ((_local1.scrollYMove < _local1.vScrollBar_mc.maxPos) && (_local1.scrollYMove > _local1.vScrollBar_mc.minPos)) {
_local1.lastY = _local1._ymouse;
}
_local1.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
var _local1 = this;
_local1.hScrollBar_mc._y = _local1.height - _local1.hScrollBar_mc._height;
_local1.hScrollBar_mc.setSize(_local1.hWidth);
_local1.hScrollBar_mc.setScrollProperties(_local1.hWidth, 0, _local1.contentWidth - _local1.hWidth);
_local1.vScrollBar_mc._visible = ((_local1.hWidth == _local1.width) ? false : true);
_local1.vScrollBar_mc._x = _local1.width - _local1.vScrollBar_mc._width;
_local1.vScrollBar_mc.setSize(_local1.vHeight);
_local1.vScrollBar_mc.setScrollProperties(_local1.vHeight, 0, _local1.contentHeight - _local1.vHeight);
_local1.hScrollBar_mc._visible = ((_local1.vHeight == _local1.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var _local2 = this;
var _local3 = component;
var _local1 = _local3.getScrollPosition();
var _local4 = ((_local3._name == "hScrollBar_mc") ? "x" : "y");
if (_local3._name == "hScrollBar_mc") {
_local2.content_mc._x = (-_local1) + _local2.offset.x;
} else {
_local2.content_mc._y = (-_local1) + _local2.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var _local1 = this;
var _local2 = _local1.hScrollBar_mc.getScrollPosition();
var _local3 = _local1.vScrollBar_mc.getScrollPosition();
if (_local1.hScrollBar_mc.maxPos > _local1.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
_local1.setScrollPosition(_local2 - 3, _local3);
} else if (Key.isDown(39)) {
_local1.setScrollPosition(_local2 + 3, _local3);
}
}
if (_local1.vScrollBar_mc.maxPos > _local1.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
_local1.setScrollPosition(_local2, _local3 - 3);
} else if (Key.isDown(40)) {
_local1.setScrollPosition(_local2, _local3 + 3);
} else if (Key.isDown(34)) {
_local1.setScrollPosition(_local2, _local3 + _local1.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
_local1.setScrollPosition(_local2, _local3 - _local1.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 257 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 264 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 261 MovieClip "loadContent" in Symbol 264 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 271 MovieClip Frame 55
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 17
stop();
Symbol 306 MovieClip Frame 55
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 1
gotoAndStop (3);
Symbol 313 MovieClip Frame 3
stop();
Symbol 314 MovieClip [explode] Frame 27
stop();
Symbol 319 MovieClip [sub] Frame 1
stop();
Symbol 319 MovieClip [sub] Frame 18
stop();
this.makeOff();
Symbol 328 MovieClip Frame 40
stop();
Symbol 329 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 40
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 341 MovieClip [WarShip] Frame 1
stop();
Symbol 341 MovieClip [WarShip] Frame 67
stop();
this.makeOff();
Symbol 347 MovieClip [enemyCopter] Frame 1
stop();
Symbol 347 MovieClip [enemyCopter] Frame 62
stop();
this.makeOff();
Symbol 366 MovieClip [smokeParticle] Frame 10
this.removeMovieClip();
Symbol 368 MovieClip Frame 8
stop();
Symbol 369 MovieClip [impactBullet] Frame 25
this.removeMovieClip();
Symbol 371 MovieClip [tracerFire] Frame 1
Symbol 371 MovieClip [tracerFire] Frame 8
this.removeMovieClip();
Symbol 387 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 388 MovieClip Frame 22
stop();
Symbol 404 Button
on (press) {
_root.gotoAndStop(10);
}
Symbol 409 Button
on (press) {
_root.gotoAndStop(6);
}
Symbol 412 MovieClip Frame 12
stop();
Symbol 413 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 415 Button
on (release) {
getURL ("http://www.dailyfreegames.com/free-games.html", "_blank");
}
Symbol 426 Button
on (press) {
_root.gotoAndStop(5);
}
Symbol 465 MovieClip Frame 365
_root.gotoAndStop("lev1");
Symbol 472 Button
on (press) {
_root.gotoAndStop(5);
}
Symbol 476 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 2
Mouse.show();
_root.amitavaplay = false;
_root._x = 0;
_root.amitavahealth.unloadMovie();
Symbol 476 MovieClip Frame 25
stop();
Symbol 483 Button
on (press) {
_root.gotoAndStop(5);
}
Symbol 507 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 2
Mouse.show();
Symbol 507 MovieClip Frame 25
stop();
Symbol 532 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 548 MovieClip Frame 12
_root.amitavaenemy = _root.amitavaenemy - 1;
_root.amitavascore = _root.amitavascore + 50;
Symbol 548 MovieClip Frame 19
stop();
Symbol 549 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 561 MovieClip Frame 12
_root.amitavaenemy = _root.amitavaenemy - 1;
_root.amitavascore = _root.amitavascore + 100;
Symbol 561 MovieClip Frame 19
stop();
Symbol 562 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 9
_parent.gotoAndStop(1);
Symbol 621 MovieClip Frame 6
_root.amitavatank = _root.amitavatank - 1;
_root.amitavascore = _root.amitavascore + 100;
Symbol 621 MovieClip Frame 19
stop();
Symbol 622 MovieClip Frame 1
stop();
Symbol 622 MovieClip Frame 4
stop();
Instance of Symbol 549 MovieClip "s1" in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 562 MovieClip "s2" in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 549 MovieClip "s3" in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 549 MovieClip "s5" in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 549 MovieClip "s6" in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 562 MovieClip "s4" in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 562 MovieClip "s7" in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 562 MovieClip "s8" in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 562 MovieClip "s9" in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 622 MovieClip "t2" in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 3;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 622 MovieClip "t3" in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 3;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 622 MovieClip "t4" in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 3;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 622 MovieClip "t1" in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 3;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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);
}
}
}
Symbol 623 MovieClip Frame 2
stop();
Instance of Symbol 634 MovieClip in Symbol 635 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _root.gun_wild;
}
Instance of Symbol 634 MovieClip in Symbol 635 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (-_root.gun_wild);
}
Instance of Symbol 634 MovieClip in Symbol 635 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = _root.gun_wild;
}
Instance of Symbol 634 MovieClip in Symbol 635 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (-_root.gun_wild);
}
Instance of Symbol 637 MovieClip "ch_rocket" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Symbol 645 MovieClip Frame 2
stop();
Symbol 648 MovieClip Frame 2
stop();
Symbol 650 MovieClip Frame 2
stop();
Symbol 654 MovieClip Frame 1
stop();
Symbol 654 MovieClip Frame 38
gotoAndStop (1);
Symbol 698 MovieClip Frame 15
_root.amitavaplay = false;
trace(_root.amitavaplay);
_root.gov.play();
_root._x = _root._x + 5;
_root.nextFrame();
Symbol 698 MovieClip Frame 16
_root._x = _root._x - 5;
_root.cop.unloadMovie();
Symbol 698 MovieClip Frame 20
stop();
Symbol 699 MovieClip Frame 1
stop();
Instance of Symbol 665 MovieClip "body" in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 667 MovieClip "ar1" in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 667 MovieClip "ar2" in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 667 MovieClip "ar3" in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 667 MovieClip "ar4" in Symbol 699 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 698 MovieClip in Symbol 699 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.amitavahealth._width >= 0) {
_root.amitava = _root.amitava - 5;
}
}
Symbol 730 Button
on (press) {
_root.amitavalevel = _root.amitavalevel + 1;
_root.amitavaenemy = 16;
_root.gotoAndStop("lev2");
}
Symbol 736 Button
on (press) {
gotoAndStop (26);
}
Symbol 738 Button
on (press) {
gotoAndStop (25);
}
Symbol 739 MovieClip Frame 1
Mouse.show();
Symbol 739 MovieClip Frame 25
stop();
Symbol 789 MovieClip Frame 8
_root.injuri.play();
_root.amitava._width = _root.amitava._width - 3;
_root.amitavalife = _root.amitavalife - 3;
Symbol 789 MovieClip Frame 9
_parent.gotoAndStop("shootstand");
Symbol 800 MovieClip Frame 29
_root.amitavaenemy = _root.amitavaenemy - 1;
_root.amitavascore = _root.amitavascore + 50;
Symbol 800 MovieClip Frame 32
stop();
Symbol 806 MovieClip Frame 47
stop();
Symbol 812 MovieClip Frame 2
_root.EnemyAlert = true;
Symbol 814 MovieClip Frame 1
stop();
Instance of Symbol 759 MovieClip "head" in Symbol 814 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 761 MovieClip "body" in Symbol 814 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 814 MovieClip "e3" in Symbol 821 MovieClip Frame 1
onClipEvent (load) {
shoottimer = 10;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if ((_root.EnemyAlert == true) && (_root.e3_Dead == 0)) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 5;
}
}
}
}
Instance of Symbol 814 MovieClip "e7" in Symbol 821 MovieClip Frame 1
onClipEvent (load) {
shoottimer = 10;
xpos = 250;
ri = 1;
lef = 0;
pl = 1;
count = 0;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (((_root.e7_Dead == 0) && (_root.EnemyAlert == false)) && (_root.e7_Alert == false)) {
if (count > xpos) {
ri = 0;
lef = 1;
} else if (count < (xpos - 200)) {
lef = 0;
ri = 1;
}
if (ri == 1) {
count = count + 1;
_xscale = 14;
}
if (lef == 1) {
count = count - 1;
_xscale = -14;
}
}
if ((_root.EnemyAlert == true) && (_root.e7_Dead == 0)) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 5;
}
}
}
}
Instance of Symbol 814 MovieClip "e8" in Symbol 821 MovieClip Frame 1
onClipEvent (load) {
shoottimer = 10;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if ((_root.EnemyAlert == true) && (_root.e8_Dead == 0)) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 5;
}
}
}
}
Instance of Symbol 814 MovieClip "e4" in Symbol 821 MovieClip Frame 1
onClipEvent (load) {
shoottimer = 10;
xpos = 200;
ri = 1;
lef = 0;
pl = 1;
count = 0;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (((_root.e4_Dead == 0) && (_root.EnemyAlert == false)) && (_root.e4_Alert == false)) {
if (count > xpos) {
ri = 0;
lef = 1;
} else if (count < (xpos - 200)) {
lef = 0;
ri = 1;
}
if (ri == 1) {
count = count + 1;
_xscale = 14;
}
if (lef == 1) {
count = count - 1;
_xscale = -14;
}
}
if ((_root.EnemyAlert == true) && (_root.e4_Dead == 0)) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 5;
}
}
}
}
Instance of Symbol 814 MovieClip "e5" in Symbol 821 MovieClip Frame 1
onClipEvent (load) {
shoottimer = 10;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if ((_root.EnemyAlert == true) && (_root.e5_Dead == 0)) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 5;
}
}
}
}
Instance of Symbol 814 MovieClip "e6" in Symbol 821 MovieClip Frame 1
onClipEvent (load) {
shoottimer = 10;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if ((_root.EnemyAlert == true) && (_root.e6_Dead == 0)) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 5;
}
}
}
}
Instance of Symbol 814 MovieClip "e2" in Symbol 821 MovieClip Frame 1
onClipEvent (load) {
shoottimer = 10;
xpos = _x;
ri = 1;
lef = 0;
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if (((_root.e2_Dead == 0) && (_root.EnemyAlert == false)) && (_root.e2_Alert == false)) {
if (_x > xpos) {
ri = 0;
lef = 1;
} else if (_x < (xpos - 100)) {
lef = 0;
ri = 1;
}
if (ri == 1) {
_x = (_x + 0.6);
_xscale = -14;
this.gotoAndStop("rwalk");
}
if (lef == 1) {
_x = (_x - 0.6);
_xscale = 14;
this.gotoAndStop("rwalk");
}
}
if ((_root.EnemyAlert == true) && (_root.e2_Dead == 0)) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 5;
}
}
}
}
Instance of Symbol 814 MovieClip "e1" in Symbol 821 MovieClip Frame 1
onClipEvent (load) {
shoottimer = 10;
xpos = _x;
ri = 1;
lef = 0;
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
if ((_root.e1_Dead == 0) && (_root.EnemyAlert == false)) {
if (_x > (xpos + 100)) {
ri = 0;
lef = 1;
} else if (_x < xpos) {
lef = 0;
ri = 1;
}
if (ri == 1) {
_x = (_x + 0.6);
_xscale = 14;
this.gotoAndStop("rwalk");
}
if (lef == 1) {
_x = (_x - 0.6);
_xscale = -14;
this.gotoAndStop("rwalk");
}
}
if ((_root.EnemyAlert == true) && (_root.e1_Dead == 0)) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 5;
}
}
}
}
Symbol 829 MovieClip Frame 1
stop();
Instance of Symbol 826 MovieClip "ter" in Symbol 829 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 829 MovieClip Frame 2
play();
Symbol 829 MovieClip Frame 5
gotoAndStop (1);
Symbol 842 Button
on (keyPress "s") {
gotoAndPlay (20);
_root.msg = "";
}
Symbol 845 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 1
stop();
Symbol 854 Button
on (keyPress "s") {
gotoAndStop (16);
}
Symbol 857 Button
on (press) {
_root.amitavalevel = _root.amitavalevel + 1;
_root.gotoAndStop("lev3");
}
Symbol 858 Button
on (press) {
gotoAndStop (26);
}
Symbol 860 Button
on (press) {
gotoAndStop (25);
}
Symbol 861 MovieClip Frame 1
Mouse.show();
Symbol 861 MovieClip Frame 25
stop();
Symbol 888 MovieClip Frame 8
_root.injuri.play();
_root.amitavalife = _root.amitavalife - 1;
Symbol 888 MovieClip Frame 9
_parent.gotoAndStop("shootstand");
Symbol 894 MovieClip Frame 1
Symbol 894 MovieClip Frame 47
stop();
Symbol 900 MovieClip Frame 11
_root.amitavaenemy = _root.amitavaenemy - 1;
_root.amitavascore = _root.amitavascore + 50;
Symbol 900 MovieClip Frame 36
stop();
Symbol 901 MovieClip Frame 1
stop();
Symbol 910 MovieClip Frame 13
_root.injuri.play();
_root.amitavalife = _root.amitavalife - 1;
Symbol 910 MovieClip Frame 20
_root.injuri.play();
_root.amitavalife = _root.amitavalife - 1;
Symbol 910 MovieClip Frame 48
_root.back.hs4.att = false;
_root.back.hs4.st = 1;
_parent.gotoAndStop(7);
Symbol 915 MovieClip Frame 11
_root.amitavalife = _root.amitavalife - 1;
_root.injuri.play();
Symbol 915 MovieClip Frame 19
_root.amitavalife = _root.amitavalife - 1;
_root.injuri.play();
Symbol 915 MovieClip Frame 41
_root.back.hs1.att = false;
_root.back.hs1.st = 1;
_parent.gotoAndStop(7);
Symbol 920 MovieClip Frame 1
_root.back.hs2.att = false;
_root.back.hs2.st = 1;
Symbol 920 MovieClip Frame 11
_root.amitavaenemy = _root.amitavaenemy - 1;
_root.amitavascore = _root.amitavascore + 50;
Symbol 920 MovieClip Frame 13
_parent.gotoAndStop(7);
Symbol 922 MovieClip Frame 1
_root.back.hs1.att = false;
_root.back.hs1.st = 1;
Symbol 922 MovieClip Frame 5
_root.amitavaenemy = _root.amitavaenemy - 1;
_root.amitavascore = _root.amitavascore + 50;
Symbol 922 MovieClip Frame 11
_parent.gotoAndStop(7);
Symbol 925 MovieClip Frame 2
_root.back.hs3.att = false;
Symbol 925 MovieClip Frame 9
_root.amitavaenemy = _root.amitavaenemy - 1;
Symbol 925 MovieClip Frame 11
_root.back.hs3.st = 1;
_parent.gotoAndStop(7);
Symbol 926 MovieClip Frame 1
stop();
Symbol 930 MovieClip Frame 1
_root.back.hs4.att = false;
Symbol 930 MovieClip Frame 7
_root.amitavaenemy = _root.amitavaenemy - 1;
Symbol 930 MovieClip Frame 11
_root.back.hs4.st = 1;
_parent.gotoAndStop(7);
Symbol 931 MovieClip Frame 1
stop();
Symbol 932 MovieClip Frame 13
_root.injuri.play();
_root.amitavalife = _root.amitavalife - 1;
Symbol 932 MovieClip Frame 20
_root.injuri.play();
_root.amitavalife = _root.amitavalife - 1;
Symbol 932 MovieClip Frame 48
_root.back.hs3.att = false;
_root.back.hs3.st = 1;
_parent.gotoAndStop(7);
Symbol 933 MovieClip Frame 1
stop();
Symbol 936 MovieClip Frame 13
_root.injuri.play();
_root.amitavalife = _root.amitavalife - 1;
Symbol 936 MovieClip Frame 20
_root.injuri.play();
_root.amitavalife = _root.amitavalife - 1;
Symbol 936 MovieClip Frame 46
_root.back.hs2.att = false;
_root.back.hs2.st = 1;
_parent.gotoAndStop(7);
Symbol 937 MovieClip Frame 1
stop();
Symbol 946 MovieClip Frame 1
var alert = false;
var dethb = false;
var detha = false;
var dethc = false;
var dethd = false;
Instance of Symbol 901 MovieClip "s3" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 80;
a = false;
d = 5;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 50;
}
}
} else if (pl == 1) {
pl = 0;
}
}
Instance of Symbol 901 MovieClip "s5" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 80;
a = false;
d = 5;
pl = 1;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 50;
}
}
} else if (pl == 1) {
_parent.hs3.st = 1;
_parent.hs4.st = 1;
pl = 0;
}
}
Instance of Symbol 901 MovieClip "s1" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 70;
a = false;
d = 5;
pl = 1;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 50;
}
}
} else if (pl == 1) {
_parent.dethb = true;
_parent.gen.a = false;
_parent.hs1.st = 1;
pl = 0;
}
}
Instance of Symbol 926 MovieClip "hs1" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(7);
att = false;
attacktime = 0;
counter = 0;
st = 0;
pl = 1;
}
onClipEvent (enterFrame) {
if (st == 1) {
counter++;
}
if (counter >= 200) {
att = true;
}
if (att == true) {
attacktime++;
if (attacktime >= random(500)) {
if (pl == 1) {
this.gotoAndStop(3);
counter = 0;
st = 0;
pl = 0;
}
}
} else {
attacktime = 0;
pl = 1;
}
}
Instance of Symbol 901 MovieClip "s2" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 70;
a = false;
d = 5;
pl = 1;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 50;
}
}
} else if (pl == 1) {
_parent.detha = true;
_parent.gena.a = false;
_parent.hs2.st = 1;
pl = 0;
}
}
Instance of Symbol 901 MovieClip "sola" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
if (this._name != "sola") {
die = false;
attack = false;
shoottimer = 10;
life = 1;
d = 15;
a = false;
pl = 1;
xpos = _x + 100;
_parent.detha = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "sola") {
if (die == false) {
if ((this._x < (xpos + random(600))) && (attack == false)) {
_x = (_x + 4);
this.gotoAndStop("rwalk");
} else {
attack = true;
}
if (attack == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 30;
}
}
} else if (pl == 1) {
_parent.detha = true;
_parent.gena.a = false;
pl = 0;
}
}
}
Instance of Symbol 836 MovieClip "gena" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
d = 20;
a = false;
Walktimer = 0;
}
onClipEvent (enterFrame) {
if (_parent.detha == true) {
Walktimer++;
if (Walktimer >= (200 + random(1000))) {
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_parent.sola.duplicateMovieClip("newb" + d, bulletDepth);
_parent.detha = false;
Walktimer = 0;
a = true;
}
}
}
}
Instance of Symbol 901 MovieClip "sol" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
if (this._name != "sol") {
die = false;
attack = false;
shoottimer = 10;
life = 1;
d = 15;
a = false;
pl = 1;
_parent.dethb = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "sol") {
if (die == false) {
if ((this._x > ((50 + random(200)) - _root.back._x)) && (attack == false)) {
_x = (_x - 4);
this.gotoAndStop("rwalk");
} else {
attack = true;
}
if (attack == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 30;
}
}
} else if (pl == 1) {
_parent.dethb = true;
_parent.gen.a = false;
pl = 0;
}
}
}
Instance of Symbol 836 MovieClip "gen" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
d = 10;
a = false;
Walktimer = 0;
}
onClipEvent (enterFrame) {
if (_parent.dethb == true) {
Walktimer++;
if (Walktimer >= (200 + random(1500))) {
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_parent.sol.duplicateMovieClip("newc" + d, bulletDepth);
_parent.dethb = false;
Walktimer = 0;
a = true;
}
}
}
}
Instance of Symbol 931 MovieClip "hs4" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(7);
att = false;
attacktime = 0;
counter = 0;
st = 0;
pl = 1;
}
onClipEvent (enterFrame) {
if (st == 1) {
counter++;
}
if (counter >= 200) {
att = true;
}
if (att == true) {
attacktime++;
if (attacktime >= random(500)) {
if (pl == 1) {
this.gotoAndStop(2);
counter = 0;
st = 0;
pl = 0;
}
}
} else {
attacktime = 0;
pl = 1;
}
}
Instance of Symbol 933 MovieClip "hs3" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(7);
att = false;
attacktime = 0;
counter = 0;
st = 0;
pl = 1;
}
onClipEvent (enterFrame) {
if (st == 1) {
counter++;
}
if (counter >= 200) {
att = true;
}
if (att == true) {
attacktime++;
if (attacktime >= random(800)) {
if (pl == 1) {
this.gotoAndStop(2);
counter = 0;
st = 0;
pl = 0;
}
}
} else {
attacktime = 0;
pl = 1;
}
}
Instance of Symbol 937 MovieClip "hs2" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(7);
att = false;
attacktime = 0;
counter = 0;
st = 0;
pl = 1;
}
onClipEvent (enterFrame) {
if (st == 1) {
counter++;
}
if (counter >= 200) {
att = true;
}
if (att == true) {
attacktime++;
if (attacktime >= random(500)) {
if (pl == 1) {
this.gotoAndStop(1);
counter = 0;
st = 0;
pl = 0;
}
}
} else {
attacktime = 0;
pl = 1;
}
}
Instance of Symbol 945 MovieClip in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(4000);
}
Instance of Symbol 901 MovieClip "s4" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 80;
a = false;
d = 5;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 50;
}
}
} else if (pl == 1) {
pl = 0;
}
}
Instance of Symbol 901 MovieClip "s6" in Symbol 946 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 60;
a = false;
d = 5;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 40;
}
}
} else if (pl == 1) {
pl = 0;
}
}
Symbol 959 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 975 MovieClip Frame 1
stop();
Symbol 983 Button
on (press) {
_root.amitavalevel = _root.amitavalevel + 1;
_root.gotoAndStop("lev4");
}
Symbol 984 MovieClip Frame 1
Mouse.show();
Symbol 984 MovieClip Frame 25
stop();
Symbol 1009 MovieClip Frame 31
_parent.gotoAndStop(2);
Symbol 1013 MovieClip Frame 5
_root.injuri.play();
Symbol 1019 MovieClip Frame 12
_root.amitavaenemy = _root.amitavaenemy - 1;
_root.amitavascore = _root.amitavascore + 50;
Symbol 1019 MovieClip Frame 36
stop();
Symbol 1020 MovieClip Frame 1
stop();
Symbol 1022 MovieClip Frame 1
var detha = false;
var dethb = false;
var dethc = false;
Instance of Symbol 1020 MovieClip "rs" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
if (this._name != "rs") {
this.gotoAndStop(1);
att = false;
attacktime = 0;
counter = 0;
st = 0;
pl = 1;
bl = 1;
die = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "rs") {
if (die == false) {
if (st == 1) {
att = true;
}
if (att == true) {
attacktime++;
if (attacktime >= random(800)) {
if (pl == 1) {
this.gotoAndStop(1);
counter = 0;
st = 0;
pl = 0;
}
}
} else {
attacktime = 0;
pl = 1;
}
} else if (bl == 1) {
_parent.dethc = true;
_parent.rgen.a = false;
bl = 0;
}
}
}
Instance of Symbol 901 MovieClip "sola" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
if (this._name != "sola") {
die = false;
attack = false;
shoottimer = 10;
life = 1;
d = 15;
a = false;
pl = 1;
xpos = _x + 100;
_parent.detha = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "sola") {
if (die == false) {
if ((this._x < (xpos + random(600))) && (attack == false)) {
_x = (_x + 4);
this.gotoAndStop("rwalk");
} else {
attack = true;
}
if (attack == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 30;
}
}
} else if (pl == 1) {
_parent.detha = true;
_parent.gena.a = false;
pl = 0;
}
}
}
Instance of Symbol 836 MovieClip "gena" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
d = 20;
a = false;
Walktimer = 0;
}
onClipEvent (enterFrame) {
if (_parent.detha == true) {
Walktimer++;
if (Walktimer >= (200 + random(1000))) {
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_parent.sola.duplicateMovieClip("newb" + d, bulletDepth);
_parent.detha = false;
Walktimer = 0;
a = true;
}
}
}
}
Instance of Symbol 901 MovieClip "sol" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
if (this._name != "sol") {
die = false;
attack = false;
shoottimer = 10;
life = 1;
d = 15;
a = false;
pl = 1;
_parent.dethb = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "sol") {
if (die == false) {
if ((this._x > ((50 + random(200)) - _root.back._x)) && (attack == false)) {
_x = (_x - 4);
this.gotoAndStop("rwalk");
} else {
attack = true;
}
if (attack == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 30;
}
}
} else if (pl == 1) {
_parent.dethb = true;
_parent.gen.a = false;
pl = 0;
}
}
}
Instance of Symbol 836 MovieClip "gen" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
d = 10;
a = false;
Walktimer = 0;
}
onClipEvent (enterFrame) {
if (_parent.dethb == true) {
Walktimer++;
if (Walktimer >= (200 + random(1500))) {
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_parent.sol.duplicateMovieClip("newc" + d, bulletDepth);
_parent.dethb = false;
Walktimer = 0;
a = true;
}
}
}
}
Instance of Symbol 931 MovieClip "hs4" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(7);
att = false;
attacktime = 0;
counter = 0;
st = 0;
pl = 1;
}
onClipEvent (enterFrame) {
if (st == 1) {
counter++;
}
if (counter >= 200) {
att = true;
}
if (att == true) {
attacktime++;
if (attacktime >= random(500)) {
if (pl == 1) {
this.gotoAndStop(2);
counter = 0;
st = 0;
pl = 0;
}
}
} else {
attacktime = 0;
pl = 1;
}
}
Instance of Symbol 937 MovieClip "hs2" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(7);
att = false;
attacktime = 0;
counter = 0;
st = 0;
pl = 1;
}
onClipEvent (enterFrame) {
if (st == 1) {
counter++;
}
if (counter >= 200) {
att = true;
}
if (att == true) {
attacktime++;
if (attacktime >= random(500)) {
if (pl == 1) {
this.gotoAndStop(1);
counter = 0;
st = 0;
pl = 0;
}
}
} else {
attacktime = 0;
pl = 1;
}
}
Instance of Symbol 901 MovieClip "s5" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 80;
a = false;
d = 5;
pl = 1;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 50;
}
}
} else if (pl == 1) {
_parent.dethc = true;
_parent.rgen.a = false;
_parent.hs3.st = 1;
_parent.hs4.st = 1;
pl = 0;
}
}
Instance of Symbol 901 MovieClip "s3" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 80;
a = false;
d = 5;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 50;
}
}
} else if (pl == 1) {
pl = 0;
}
}
Instance of Symbol 901 MovieClip "s4" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 80;
a = false;
d = 5;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 50;
}
}
} else if (pl == 1) {
pl = 0;
}
}
Instance of Symbol 836 MovieClip "rgen" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
d = 30;
a = false;
Walktimer = 0;
}
onClipEvent (enterFrame) {
if (_parent.dethc == true) {
Walktimer++;
if (Walktimer >= (200 + random(1000))) {
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_parent.rs.duplicateMovieClip("newd" + d, bulletDepth);
_parent["newd" + d].st = 1;
_parent.detha = false;
Walktimer = 0;
a = true;
}
}
}
}
Instance of Symbol 933 MovieClip "hs3" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(7);
att = false;
attacktime = 0;
counter = 0;
st = 0;
pl = 1;
}
onClipEvent (enterFrame) {
if (st == 1) {
counter++;
}
if (counter >= 200) {
att = true;
}
if (att == true) {
attacktime++;
if (attacktime >= random(800)) {
if (pl == 1) {
this.gotoAndStop(2);
counter = 0;
st = 0;
pl = 0;
}
}
} else {
attacktime = 0;
pl = 1;
}
}
Instance of Symbol 901 MovieClip "s1" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 70;
a = false;
d = 5;
pl = 1;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 50;
}
}
} else if (pl == 1) {
_parent.dethb = true;
_parent.gen.a = false;
_parent.hs2.st = 1;
pl = 0;
}
}
Instance of Symbol 901 MovieClip "s2" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 70;
a = false;
d = 5;
pl = 1;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 50;
}
}
} else if (pl == 1) {
_parent.detha = true;
_parent.gena.a = false;
_parent.hs3.st = 1;
pl = 0;
}
}
Symbol 1026 Button
on (press) {
_root.amitavalevel = _root.amitavalevel + 1;
_root.gotoAndStop("lev5");
}
Symbol 1027 MovieClip Frame 1
Mouse.show();
Symbol 1027 MovieClip Frame 25
stop();
Symbol 1041 MovieClip Frame 1
var alert = false;
var dethb = false;
var detha = false;
var dethc = false;
var dethd = false;
Instance of Symbol 901 MovieClip "s4" in Symbol 1041 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 20;
a = false;
d = 0;
pl = 1;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 30;
}
}
} else {
_parent.dethc = true;
if (pl == 1) {
_parent.genc.a = false;
pl = 0;
}
}
}
Instance of Symbol 901 MovieClip "s3" in Symbol 1041 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 20;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 20;
}
}
}
}
Instance of Symbol 901 MovieClip "solb" in Symbol 1041 MovieClip Frame 1
onClipEvent (load) {
if (this._name != "solb") {
die = false;
attack = false;
shoottimer = 10;
life = 1;
d = 15;
a = false;
pl = 1;
xpos = _x + 200;
_parent.dethc = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "solb") {
if (die == false) {
if ((this._x < (xpos + random(500))) && (attack == false)) {
_x = (_x + 4);
this.gotoAndStop("rwalk");
} else {
attack = true;
}
if (attack == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 30;
}
}
} else if (pl == 1) {
_parent.dethc = true;
_parent.genb.a = false;
pl = 0;
}
}
}
Instance of Symbol 901 MovieClip "sol" in Symbol 1041 MovieClip Frame 1
onClipEvent (load) {
if (this._name != "sol") {
die = false;
attack = false;
shoottimer = 10;
life = 1;
d = 15;
a = false;
pl = 1;
_parent.dethb = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "sol") {
if (die == false) {
if ((this._x > ((50 + random(200)) - _root.back._x)) && (attack == false)) {
_x = (_x - 4);
this.gotoAndStop("rwalk");
} else {
attack = true;
}
if (attack == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 30;
}
}
} else if (pl == 1) {
_parent.dethb = true;
_parent.gen.a = false;
pl = 0;
}
}
}
Instance of Symbol 1034 MovieClip in Symbol 1041 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(5050);
}
Instance of Symbol 901 MovieClip "s1" in Symbol 1041 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 20;
a = false;
d = 0;
pl = 1;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 30;
}
}
} else {
_parent.detha = true;
if (pl == 1) {
_parent.gena.a = false;
pl = 0;
}
}
}
Instance of Symbol 901 MovieClip "s2" in Symbol 1041 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 1;
shoottimer = 20;
a = false;
d = 5;
}
onClipEvent (enterFrame) {
if (die == false) {
if (_parent.alert == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 50;
}
}
} else {
_parent.dethb = true;
if (pl == 1) {
_parent.gen.a = false;
pl = 0;
}
}
}
Instance of Symbol 901 MovieClip "sola" in Symbol 1041 MovieClip Frame 1
onClipEvent (load) {
if (this._name != "sola") {
die = false;
attack = false;
shoottimer = 10;
life = 1;
d = 15;
a = false;
pl = 1;
xpos = _x + 200;
_parent.dethb = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "sola") {
if (die == false) {
if ((this._x < (xpos + random(600))) && (attack == false)) {
_x = (_x + 4);
this.gotoAndStop("rwalk");
} else {
attack = true;
}
if (attack == true) {
shoottimer--;
if (shoottimer <= 0) {
this.gotoAndStop("shoot");
shoottimer = 30;
}
}
} else if (pl == 1) {
_parent.detha = true;
_parent.gena.a = false;
pl = 0;
}
}
}
Instance of Symbol 836 MovieClip "gen" in Symbol 1041 MovieClip Frame 1
onClipEvent (load) {
d = 10;
a = false;
}
onClipEvent (enterFrame) {
if (_parent.dethb == true) {
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_parent.sol.duplicateMovieClip("newc" + d, bulletDepth);
_parent.dethb = false;
a = true;
}
}
}
Instance of Symbol 836 MovieClip "gena" in Symbol 1041 MovieClip Frame 1
onClipEvent (load) {
d = 20;
a = false;
}
onClipEvent (enterFrame) {
if (_parent.detha == true) {
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_parent.sola.duplicateMovieClip("newb" + d, bulletDepth);
_parent.detha = false;
a = true;
}
}
}
Instance of Symbol 836 MovieClip "genb" in Symbol 1041 MovieClip Frame 1
onClipEvent (load) {
d = 30;
a = false;
}
onClipEvent (enterFrame) {
if (_parent.dethc == true) {
if (!a) {
d++;
bulletDepth = d % 200;
_parent.bullets = bulletDepth;
_parent.solb.duplicateMovieClip("newd" + d, bulletDepth);
_parent.dethc = false;
a = true;
}
}
}
Instance of Symbol 1036 MovieClip in Symbol 1041 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(5000);
}
Symbol 1075 MovieClip Frame 287
_root.gotoAndStop(43);
Symbol 1075 MovieClip Frame 290
stop();
Symbol 1078 Button
on (press) {
_root.amitavalevel = _root.amitavalevel + 1;
_root.gotoAndStop("lev6");
}
Symbol 1079 Button
on (press) {
gotoAndStop (26);
}
Symbol 1081 Button
on (press) {
gotoAndStop (25);
}
Symbol 1082 MovieClip Frame 1
Mouse.show();
Symbol 1082 MovieClip Frame 25
stop();
Symbol 1089 MovieClip Frame 17
stop();
Symbol 1091 MovieClip Frame 28
_root.gov.play();
_root.nextFrame();
Symbol 1091 MovieClip Frame 30
stop();
Symbol 1092 MovieClip Frame 1
stop();
Instance of Symbol 1092 MovieClip "van_car" in Symbol 1093 MovieClip Frame 1
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavavanhealth < 1) {
if (pl == 1) {
_parent.stop();
this.gotoAndStop(4);
pl = 0;
}
}
}
Instance of Symbol 1092 MovieClip "van_car" in Symbol 1093 MovieClip Frame 68
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.amitavavanhealth < 1) {
if (pl == 1) {
this.gotoAndStop(4);
pl = 0;
}
}
}
Symbol 1093 MovieClip Frame 1208
stop();
Instance of Symbol 1095 MovieClip "car_follow" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
this._x = _parent.van._x + _parent.van.van_car._x;
this._y = _parent.van._y + _parent.van.van_car._y;
}
Instance of Symbol 549 MovieClip "s1" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 562 MovieClip "s2" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = _x - _parent.car_follow._x;
dy = _y - _parent.car_follow._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 549 MovieClip "s3" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 549 MovieClip "s5" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 549 MovieClip "s6" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 562 MovieClip "s4" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = _x - _parent.car_follow._x;
dy = _y - _parent.car_follow._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 562 MovieClip "s7" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = _x - _parent.car_follow._x;
dy = _y - _parent.car_follow._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 562 MovieClip "s8" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = _x - _parent.car_follow._x;
dy = _y - _parent.car_follow._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 562 MovieClip "s9" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
die = false;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = _x - _parent.car_follow._x;
dy = _y - _parent.car_follow._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 622 MovieClip "t2" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 3;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 622 MovieClip "t3" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 3;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 622 MovieClip "t4" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 3;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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 622 MovieClip "t1" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
die = false;
life = 3;
}
onClipEvent (enterFrame) {
if (die == false) {
dx = (_x - _root.cop._x) + _root.back._x;
dy = (_y - _root.cop._y) + _root.back._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);
}
}
}
Symbol 1123 Button
on (press) {
_root.amitavalevel = _root.amitavalevel + 1;
_root.amitavahealth._width = 120;
_root.gotoAndPlay("playGame");
}
Symbol 1124 MovieClip Frame 25
stop();