Frame 1
stop();
Stage.scaleMode = "noScale";
Stage.showMenu = false;
Stage.align = "TL";
System.useCodepage = true;
secureMovie = new Object();
secureMovie.auth_ret = true;
Instance of Symbol 43 MovieClip in Frame 1
on (release) {
getURL ("http://www.qingdaono1.com", "_blank");
}
Frame 2
if (false) {
}
Frame 8
stop();
fscommand ("allowscale", true);
_global.myscore = 0;
_root.lives = 5555;
glevel = 1;
ppause = false;
Frame 14
function gg(ss) {
if (_root.glevel == 9) {
_root.finalstagesound.stop();
} else {
_root.levelsound.stop();
_root.awardsound.start(0, 99);
}
_root["ggmenu" + glevel]._visible = true;
_root["ggmenu" + glevel].mgg(ss);
}
function slice(arrayname, index) {
i = 0;
while (i <= _root[arrayname].length) {
if (_root[arrayname][i] == index) {
_root[arrayname].splice(i, 1);
}
i++;
}
}
function swapz(obj, type) {
_root[obj].swapDepths(_root[type]);
_root[type]++;
}
function getdmg(int) {
_root.tank.hp = _root.tank.hp - int;
}
function t_countshot() {
t_readyshot = true;
t_z1 = true;
}
function path(px, py, pr, ps) {
duplicateMovieClip ("path", "path_" + _root.pathdp, pathdp);
_root["path_" + _root.pathdp]._x = px;
_root["path_" + _root.pathdp]._y = py;
_root["path_" + _root.pathdp]._width = ps;
_root["path_" + _root.pathdp]._rotation = pr;
_root.pathdp++;
}
function boom(bx, by, bs) {
boom_ns.start();
boomdp++;
duplicateMovieClip ("boom", "boom_" + _root.boomdp, boomdp);
_root["boom_" + _root.boomdp]._x = bx;
_root["boom_" + _root.boomdp]._y = by;
_root["boom_" + _root.boomdp]._height = bs;
_root["boom_" + _root.boomdp]._width = bs;
}
function booms(bx, by, bs) {
boomsdp++;
duplicateMovieClip ("booms", "booms_" + _root.boomsdp, boomsdp);
_root["booms_" + _root.boomsdp]._x = bx;
_root["booms_" + _root.boomsdp]._y = by;
_root["booms_" + _root.boomsdp]._height = bs;
_root["booms_" + _root.boomsdp]._width = bs;
}
function re() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
_root.coversound.stop();
gotoAndStop ("re");
}
function rem() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
gotoAndStop ("Menu");
}
function swapn(nm) {
_root[nm]._name = nm + namedp;
_root.namedp = _root.namedp + 1;
}
function htTest(trg) {
cx1 = tank._x;
cy1 = tank._y;
cx2 = tank._x + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy2 = tank._y - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx3 = tank._x - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy3 = tank._y + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx4 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy4 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx5 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy5 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx6 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy6 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx6 = cx6 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy6 = cy6 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx7 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy7 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx7 = cx7 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy7 = cy7 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx8 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy8 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx8 = cx8 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy8 = cy8 + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx9 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy9 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx9 = cx9 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy9 = cy9 + (20 * Math.cos(tank.body._rotation * 0.01745329));
if ((((((((_root[trg].hitTest(cx1, cy1, false) || (_root[trg].hitTest(cx2, cy2, false))) || (_root[trg].hitTest(cx3, cy3, false))) || (_root[trg].hitTest(cx4, cy4, false))) || (_root[trg].hitTest(cx5, cy5, false))) || (_root[trg].hitTest(cx6, cy6, false))) || (_root[trg].hitTest(cx7, cy7, false))) || (_root[trg].hitTest(cx8, cy8, false))) || (_root[trg].hitTest(cx9, cy9, false))) {
return(true);
}
return(false);
}
tank.hp = 1000;
namedp = 1;
boomsdp = 300;
obj0dp = 400;
pathdp = 500;
objdp = 1100;
shotdp = 2010;
boomdp = 2101;
obj2dp = 2201;
menudp = 3001;
var keyListener = new Object();
var pauseListener = new Object();
var gameoversound = new Sound();
gameoversound.attachSound("negativefinish");
var finalstagesound = new Sound();
finalstagesound.attachSound("finalstagesound");
var awardsound = new Sound();
awardsound.attachSound("awarding");
var endsound = new Sound();
endsound.attachSound("endsound");
var levelsound = new Sound();
levelsound.attachSound("levelsound");
var boom_ns = new Sound();
boom_ns.attachSound("boom_s");
var cg_ns = new Sound();
cg_ns.attachSound("cg_s");
var rl_ns = new Sound();
rl_ns.attachSound("rl_s");
var ss_ns = new Sound();
ss_ns.attachSound("ss_s");
var back_ns = new Sound();
back_ns.attachSound("back_s");
objmaxsize = 90;
enemyKilled = 0;
enemySurvived = 0;
totalShots = 0;
hitShots = 0;
terArray = new Array();
lose = false;
ggame = false;
aa = _root._url;
isDown = false;
isToggle = true;
t_readyshot = false;
t_z1 = true;
speed = 0;
i = 0;
ilk = 0;
time = 0;
duplicateMovieClip ("t_shot", "t_shot_1", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_2", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_3", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_4", _root.shotdp);
_root.shotdp++;
_root.t_shot_1._x = 200000 /* 0x030D40 */;
_root.t_shot_1._y = 200000 /* 0x030D40 */;
_root.t_shot_2._x = 200000 /* 0x030D40 */;
_root.t_shot_2._y = 200000 /* 0x030D40 */;
_root.t_shot_3._x = 200000 /* 0x030D40 */;
_root.t_shot_3._y = 200000 /* 0x030D40 */;
_root.t_shot_4._x = 200000 /* 0x030D40 */;
_root.t_shot_4._y = 200000 /* 0x030D40 */;
boss.swapDepths(2003);
tank.swapDepths(2002);
_root.terArray.push("tank");
onEnterFrame = function () {
if (!_root.ppause) {
if (_root.tank.hp > 0) {
time++;
}
if (((time >= leveltime) && (terArray.length <= 1)) && (lose == false)) {
ggame = true;
setTimeout(gg, 100, 1);
lose = true;
}
if ((_root.tank.hp <= 0) && (lose == false)) {
boom(tank._x, tank._y, 100);
boom(tank._x - 5, tank._y + 4, 150);
booms(tank._x, tank._y, 100);
_root["stats" + glevel].m_hp.gotoAndStop(11);
_root.lives = _root.lives - 1;
_root.tank.hp = 0;
if (_root.lives <= 0) {
setTimeout(gg, 2000, 3);
} else {
setTimeout(gg, 2000, 2);
}
lose = true;
tank.removeMovieClip();
}
if (_root.tank.hp > 0) {
_root["stats" + glevel].m_hp.gotoAndStop(11 - Math.ceil(_root.tank.hp / 100));
}
_root["stats" + glevel].m_lv.gotoAndStop(6 - _root.lives);
if (boomsdp >= 399) {
boomsdp = 300;
}
if (pathdp >= 1000) {
pathdp = 500;
}
if (terArray.length >= 7) {
if (boomdp >= 2115) {
boomdp = 2101;
}
} else if (boomdp >= 2200) {
boomdp = 2101;
}
if (shotdp >= 2100) {
shotdp = 2011;
}
if (objdp >= 2000) {
objdp = 1100;
}
if (obj0dp >= 499) {
obj0dp = 400;
}
if (obj2dp >= 3000) {
shotdp = 2200;
}
if ((speed >= -0.2) && (speed <= 0.2)) {
speed = 0;
} else if (Key.isDown(39) || (Key.isDown(37))) {
path(tank._x, tank._y, tank.body._rotation);
}
if ((speed - 0.2) >= 0) {
speed = speed - 0.2;
}
if ((speed + 0.2) <= 0) {
speed = speed + 0.2;
}
tank._x = tank._x + (speed * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (speed * Math.cos(tank.body._rotation * 0.01745329));
if (tilemap._y >= (-((tilemap._height / 2) - 500))) {
tilemap._y = (-tilemap._height) + 500;
}
if (!ggame) {
tilemap._y = tilemap._y + 1;
}
if (tank._y > 401) {
tank._y = 401;
path(tank._x, tank._y, 0);
}
if (tank._y < 20) {
tank._y = 20;
}
if (tank._x < 20) {
tank._x = 20;
}
if (tank._x > 530) {
tank._x = 530;
}
if (!ggame) {
tank._y = tank._y + 1;
}
if (lose == false) {
if (Key.isDown(68)) {
tank.body._rotation = tank.body._rotation + 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation + 3;
}
if (((!Key.isDown(83)) && (!Key.isDown(87))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(65)) {
tank.body._rotation = tank.body._rotation - 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation - 3;
}
if (((!Key.isDown(87)) && (!Key.isDown(83))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(87)) {
if ((speed + 0.5) <= 4) {
speed = speed + 0.5;
}
}
if (Key.isDown(83)) {
if ((speed - 0.5) >= -3) {
speed = speed - 0.5;
}
}
if (t_readyshot == false) {
if (t_z1 == true) {
t_z1 = false;
intervalId = setTimeout(t_countshot, 500);
}
}
}
}
if (Key.isDown(32)) {
if (!_root.ppause) {
_root.ppause = true;
_root.pmenu._visible = true;
} else {
_root.ppause = false;
_root.pmenu._visible = false;
}
}
};
onMouseDown = function () {
isDown = true;
};
onMouseUp = function () {
isDown = false;
};
tank.onEnterFrame = function () {
if (!_root.ppause) {
if (lose == false) {
delta_x = this._x - _xmouse;
delta_y = this._y - _ymouse;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (isDown) {
tilemap.collapse();
if (t_readyshot) {
ilk++;
if (ilk > 4) {
ilk = 1;
}
t_readyshot = false;
this.gun.gotoAndPlay(2);
totalShots++;
duplicateMovieClip ("t_shot", "t_shot_" + ilk, 2005 + ilk);
_root["t_shot_" + ilk]._rotation = this.gun._rotation;
_root["t_shot_" + ilk]._x = (this._x + this.dulo._x) + (_root.speed * Math.sin(_root.tank.body._rotation * 0.01745329));
_root["t_shot_" + ilk]._y = (this._y + this.dulo._y) - (_root.speed * Math.cos(_root.tank.body._rotation * 0.01745329));
}
}
}
}
};
Key.addListener(keyListener);
ppause = false;
leveltime = 2300;
levelsound.start(0, 999);
Instance of Symbol 173 MovieClip [explode] "boom" in Frame 14
onClipEvent (enterFrame) {
if (!_root.ppause) {
play();
if (this._name != "boom") {
this._y = this._y + 1;
}
if ((((this._x >= 600) || (this._x <= -50)) || (this._y >= 475)) || (this._y <= -50)) {
this.removeMovieClip();
}
} else {
stop();
}
}
Instance of Symbol 225 MovieClip "t_shot" in Frame 14
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (this._name != "t_shot") {
this._y = this._y + 1;
this._x = this._x + (10 * Math.sin(this._rotation * 0.01745329));
this._y = this._y - (10 * Math.cos(this._rotation * 0.01745329));
if ((((this._x >= 600) || (this._x <= -50)) || (this._y >= 475)) || (this._y <= -50)) {
this.removeMovieClip();
}
}
}
}
Instance of Symbol 227 MovieClip "cg" in Frame 14
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (this._name != "cg") {
this._y = this._y + 1;
if (_root.tank.hitTest(this._x, this._y, true)) {
_root.getdmg(15);
_root.boom(this._x, this._y, 35);
this.removeMovieClip();
}
this._x = this._x + (8 * Math.sin(this._rotation * 0.01745329));
this._y = this._y - (8 * Math.cos(this._rotation * 0.01745329));
if ((((this._x >= 600) || (this._x <= -50)) || (this._y >= 475)) || (this._y <= -50)) {
this.removeMovieClip();
}
}
}
}
onClipEvent (load) {
this.i = 5;
}
Instance of Symbol 230 MovieClip "rl" in Frame 14
onClipEvent (load) {
this.i = 4;
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (this._name != "rl") {
this._y = this._y + 1;
if (_root.tank.hitTest(this._x, this._y, true)) {
_root.boom(this._x, this._y, 75);
_root.getdmg(75);
this.removeMovieClip();
}
this.i = this.i + 0.1;
this._x = this._x + (i * Math.sin(this._rotation * 0.01745329));
if ((((this._x >= 600) || (this._x <= -50)) || (this._y >= 475)) || (this._y <= -50)) {
this.removeMovieClip();
}
this._y = this._y - (i * Math.cos(this._rotation * 0.01745329));
}
}
}
Instance of Symbol 255 MovieClip "stats1" in Frame 14
onClipEvent (load) {
_root.swapz(this._name, "menudp");
}
Instance of Symbol 258 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
_y = (_y + 1);
}
}
Instance of Symbol 261 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
_y = (_y + 1);
}
}
Instance of Symbol 258 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
_y = (_y + 1);
}
}
Instance of Symbol 264 MovieClip in Frame 14
onClipEvent (load) {
_root.swapz(this._name, "menudp");
}
Instance of Symbol 266 MovieClip "path" in Frame 14
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (!_root.ggame) {
_y = (_y+1);
_y = (_y+1);
}
if (_y >= 435) {
this.removeMovieClip();
}
}
}
onClipEvent (load) {
_alpha = (random(20) + 10);
}
Instance of Symbol 269 MovieClip "booms" in Frame 14
onClipEvent (enterFrame) {
if (!_root.ppause) {
if ((this._name != "booms") && (!_root.ggame)) {
this._y = this._y + 1;
}
if ((((this._x >= 600) || (this._x <= -50)) || (this._y >= 475)) || (this._y <= -50)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 227 MovieClip "cgb" in Frame 14
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (this._name != "cgb") {
this._y = this._y + 1;
if (_root.tank.hitTest(this._x, this._y, true)) {
_root.getdmg(25);
_root.boom(this._x, this._y, 35);
this.removeMovieClip();
}
this._x = this._x + (9 * Math.sin(this._rotation * 0.01745329));
this._y = this._y - (9 * Math.cos(this._rotation * 0.01745329));
if ((((this._x >= 600) || (this._x <= -50)) || (this._y >= 475)) || (this._y <= -50)) {
this.removeMovieClip();
}
}
}
}
onClipEvent (load) {
this.i = 5;
}
Instance of Symbol 225 MovieClip "shot" in Frame 14
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (this._name != "shot") {
this._y = this._y + 1;
if (_root.tank.hitTest(this._x, this._y, true)) {
_root.getdmg(75);
_root.boom(this._x, this._y, 100);
this.removeMovieClip();
}
this._x = this._x + (6 * Math.sin(this._rotation * 0.01745329));
this._y = this._y - (6 * Math.cos(this._rotation * 0.01745329));
if ((((this._x >= 570) || (this._x <= -20)) || (this._y >= 445)) || (this._y <= -20)) {
this.removeMovieClip();
}
}
}
}
onClipEvent (load) {
this.i = 5;
}
Instance of Symbol 271 MovieClip "mshot" in Frame 14
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (this._name != "mshot") {
this._y = this._y + 1;
if (_root.tank.hitTest(this._x, this._y, true)) {
_root.getdmg(120);
_root.boom(this._x, this._y, 100);
this.removeMovieClip();
}
this._x = this._x + (9 * Math.sin(this._rotation * 0.01745329));
this._y = this._y - (9 * Math.cos(this._rotation * 0.01745329));
if ((((this._x >= 570) || (this._x <= -20)) || (this._y >= 445)) || (this._y <= -20)) {
this.removeMovieClip();
}
}
}
}
onClipEvent (load) {
this.i = 5;
}
Instance of Symbol 281 MovieClip "tower1" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 258 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 281 MovieClip "tower2" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 290 MovieClip "cacg1" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "cacg2" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "carl1" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 281 MovieClip "tower4" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 290 MovieClip "cacg3" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (400 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "cacg4" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (400 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "cacg5" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (400 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 281 MovieClip "tower5" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "tower6" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 304 MovieClip "lacg1" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "carl3" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "carl4" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "cacg6" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "cacg7" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "cacg8" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 281 MovieClip "tower8" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "tower7" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 304 MovieClip "lacg2" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "cacg9" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "cacg10" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (400 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "carl5" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem < (400 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "carl6" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem < (400 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 281 MovieClip "tower10" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "tower9" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 304 MovieClip "lacg3" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation + 1);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 304 MovieClip "lacg4" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation + 1);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 261 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree1" in Frame 14
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 281 MovieClip "tower3" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 304 MovieClip "lacg6" in Frame 14
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation + 0.4);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "carl7" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "carl8" in Frame 14
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 307 MovieClip "can1" in Frame 14
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "can2" in Frame 14
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "can3" in Frame 14
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "can4" in Frame 14
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "can5" in Frame 14
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "can6" in Frame 14
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 374 MovieClip "ggmenu1" in Frame 14
onClipEvent (load) {
_root.swapz(this._name, "menudp");
_visible = false;
}
onClipEvent (enterFrame) {
function mgg(ss) {
if (_root.lives <= 0) {
menui._visible = false;
} else {
menui._visible = true;
}
this.stat.gotoAndStop(ss);
this.butl.gotoAndStop(ss);
enemykill = _root.enemyKilled;
enemysurv = _root.enemySurvived;
shottotal = _root.totalShots;
shothit = _root.hitShots;
accu = Math.round((shothit * 100) / shottotal) + "%";
gamescore = gamescore + _global.myscore;
if ((shothit <= 0) && (shottotal <= 0)) {
accu = "0%";
}
}
if ((_visible == true) && (_alpha <= 100)) {
_alpha = (_alpha + 5);
}
if (_visible == false) {
_alpha = 0;
}
}
Instance of Symbol 380 MovieClip "pmenu" in Frame 14
onClipEvent (load) {
_visible = false;
swapDepths(100350);
}
Frame 20
function gg(ss) {
if (_root.glevel == 9) {
_root.finalstagesound.stop();
} else {
_root.levelsound.stop();
_root.awardsound.start(0, 99);
}
_root["ggmenu" + glevel]._visible = true;
_root["ggmenu" + glevel].mgg(ss);
}
function slice(arrayname, index) {
i = 0;
while (i <= _root[arrayname].length) {
if (_root[arrayname][i] == index) {
_root[arrayname].splice(i, 1);
}
i++;
}
}
function swapz(obj, type) {
_root[obj].swapDepths(_root[type]);
_root[type]++;
}
function getdmg(int) {
_root.tank.hp = _root.tank.hp - int;
}
function t_countshot() {
t_readyshot = true;
t_z1 = true;
}
function path(px, py, pr, ps) {
duplicateMovieClip ("path", "path_" + _root.pathdp, pathdp);
_root["path_" + _root.pathdp]._x = px;
_root["path_" + _root.pathdp]._y = py;
_root["path_" + _root.pathdp]._width = ps;
_root["path_" + _root.pathdp]._rotation = pr;
_root.pathdp++;
}
function boom(bx, by, bs) {
boom_ns.start();
boomdp++;
duplicateMovieClip ("boom", "boom_" + _root.boomdp, boomdp);
_root["boom_" + _root.boomdp]._x = bx;
_root["boom_" + _root.boomdp]._y = by;
_root["boom_" + _root.boomdp]._height = bs;
_root["boom_" + _root.boomdp]._width = bs;
}
function booms(bx, by, bs) {
boomsdp++;
duplicateMovieClip ("booms", "booms_" + _root.boomsdp, boomsdp);
_root["booms_" + _root.boomsdp]._x = bx;
_root["booms_" + _root.boomsdp]._y = by;
_root["booms_" + _root.boomsdp]._height = bs;
_root["booms_" + _root.boomsdp]._width = bs;
}
function re() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
_root.coversound.stop();
gotoAndStop ("re");
}
function rem() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
gotoAndStop ("Menu");
}
function swapn(nm) {
_root[nm]._name = nm + namedp;
_root.namedp = _root.namedp + 1;
}
function htTest(trg) {
cx1 = tank._x;
cy1 = tank._y;
cx2 = tank._x + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy2 = tank._y - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx3 = tank._x - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy3 = tank._y + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx4 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy4 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx5 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy5 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx6 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy6 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx6 = cx6 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy6 = cy6 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx7 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy7 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx7 = cx7 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy7 = cy7 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx8 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy8 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx8 = cx8 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy8 = cy8 + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx9 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy9 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx9 = cx9 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy9 = cy9 + (20 * Math.cos(tank.body._rotation * 0.01745329));
if ((((((((_root[trg].hitTest(cx1, cy1, false) || (_root[trg].hitTest(cx2, cy2, false))) || (_root[trg].hitTest(cx3, cy3, false))) || (_root[trg].hitTest(cx4, cy4, false))) || (_root[trg].hitTest(cx5, cy5, false))) || (_root[trg].hitTest(cx6, cy6, false))) || (_root[trg].hitTest(cx7, cy7, false))) || (_root[trg].hitTest(cx8, cy8, false))) || (_root[trg].hitTest(cx9, cy9, false))) {
return(true);
}
return(false);
}
tank.hp = 1000;
namedp = 1;
boomsdp = 300;
obj0dp = 400;
pathdp = 500;
objdp = 1100;
shotdp = 2010;
boomdp = 2101;
obj2dp = 2201;
menudp = 3001;
var keyListener = new Object();
var pauseListener = new Object();
var gameoversound = new Sound();
gameoversound.attachSound("negativefinish");
var finalstagesound = new Sound();
finalstagesound.attachSound("finalstagesound");
var awardsound = new Sound();
awardsound.attachSound("awarding");
var endsound = new Sound();
endsound.attachSound("endsound");
var levelsound = new Sound();
levelsound.attachSound("levelsound");
var boom_ns = new Sound();
boom_ns.attachSound("boom_s");
var cg_ns = new Sound();
cg_ns.attachSound("cg_s");
var rl_ns = new Sound();
rl_ns.attachSound("rl_s");
var ss_ns = new Sound();
ss_ns.attachSound("ss_s");
var back_ns = new Sound();
back_ns.attachSound("back_s");
objmaxsize = 90;
enemyKilled = 0;
enemySurvived = 0;
totalShots = 0;
hitShots = 0;
terArray = new Array();
lose = false;
ggame = false;
aa = _root._url;
isDown = false;
isToggle = true;
t_readyshot = false;
t_z1 = true;
speed = 0;
i = 0;
ilk = 0;
time = 0;
duplicateMovieClip ("t_shot", "t_shot_1", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_2", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_3", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_4", _root.shotdp);
_root.shotdp++;
_root.t_shot_1._x = 200000 /* 0x030D40 */;
_root.t_shot_1._y = 200000 /* 0x030D40 */;
_root.t_shot_2._x = 200000 /* 0x030D40 */;
_root.t_shot_2._y = 200000 /* 0x030D40 */;
_root.t_shot_3._x = 200000 /* 0x030D40 */;
_root.t_shot_3._y = 200000 /* 0x030D40 */;
_root.t_shot_4._x = 200000 /* 0x030D40 */;
_root.t_shot_4._y = 200000 /* 0x030D40 */;
boss.swapDepths(2003);
tank.swapDepths(2002);
_root.terArray.push("tank");
onEnterFrame = function () {
if (!_root.ppause) {
if (_root.tank.hp > 0) {
time++;
}
if (((time >= leveltime) && (terArray.length <= 1)) && (lose == false)) {
ggame = true;
setTimeout(gg, 100, 1);
lose = true;
}
if ((_root.tank.hp <= 0) && (lose == false)) {
boom(tank._x, tank._y, 100);
boom(tank._x - 5, tank._y + 4, 150);
booms(tank._x, tank._y, 100);
_root["stats" + glevel].m_hp.gotoAndStop(11);
_root.lives = _root.lives - 1;
_root.tank.hp = 0;
if (_root.lives <= 0) {
setTimeout(gg, 2000, 3);
} else {
setTimeout(gg, 2000, 2);
}
lose = true;
tank.removeMovieClip();
}
if (_root.tank.hp > 0) {
_root["stats" + glevel].m_hp.gotoAndStop(11 - Math.ceil(_root.tank.hp / 100));
}
_root["stats" + glevel].m_lv.gotoAndStop(6 - _root.lives);
if (boomsdp >= 399) {
boomsdp = 300;
}
if (pathdp >= 1000) {
pathdp = 500;
}
if (terArray.length >= 7) {
if (boomdp >= 2115) {
boomdp = 2101;
}
} else if (boomdp >= 2200) {
boomdp = 2101;
}
if (shotdp >= 2100) {
shotdp = 2011;
}
if (objdp >= 2000) {
objdp = 1100;
}
if (obj0dp >= 499) {
obj0dp = 400;
}
if (obj2dp >= 3000) {
shotdp = 2200;
}
if ((speed >= -0.2) && (speed <= 0.2)) {
speed = 0;
} else if (Key.isDown(39) || (Key.isDown(37))) {
path(tank._x, tank._y, tank.body._rotation);
}
if ((speed - 0.2) >= 0) {
speed = speed - 0.2;
}
if ((speed + 0.2) <= 0) {
speed = speed + 0.2;
}
tank._x = tank._x + (speed * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (speed * Math.cos(tank.body._rotation * 0.01745329));
if (tilemap._y >= (-((tilemap._height / 2) - 500))) {
tilemap._y = (-tilemap._height) + 500;
}
if (!ggame) {
tilemap._y = tilemap._y + 1;
}
if (tank._y > 401) {
tank._y = 401;
path(tank._x, tank._y, 0);
}
if (tank._y < 20) {
tank._y = 20;
}
if (tank._x < 20) {
tank._x = 20;
}
if (tank._x > 530) {
tank._x = 530;
}
if (!ggame) {
tank._y = tank._y + 1;
}
if (lose == false) {
if (Key.isDown(68)) {
tank.body._rotation = tank.body._rotation + 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation + 3;
}
if (((!Key.isDown(83)) && (!Key.isDown(87))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(65)) {
tank.body._rotation = tank.body._rotation - 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation - 3;
}
if (((!Key.isDown(87)) && (!Key.isDown(83))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(87)) {
if ((speed + 0.5) <= 4) {
speed = speed + 0.5;
}
}
if (Key.isDown(83)) {
if ((speed - 0.5) >= -3) {
speed = speed - 0.5;
}
}
if (t_readyshot == false) {
if (t_z1 == true) {
t_z1 = false;
intervalId = setTimeout(t_countshot, 500);
}
}
}
}
if (Key.isDown(32)) {
if (!_root.ppause) {
_root.ppause = true;
_root.pmenu._visible = true;
} else {
_root.ppause = false;
_root.pmenu._visible = false;
}
}
};
onMouseDown = function () {
isDown = true;
};
onMouseUp = function () {
isDown = false;
};
tank.onEnterFrame = function () {
if (!_root.ppause) {
if (lose == false) {
delta_x = this._x - _xmouse;
delta_y = this._y - _ymouse;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (isDown) {
tilemap.collapse();
if (t_readyshot) {
ilk++;
if (ilk > 4) {
ilk = 1;
}
t_readyshot = false;
this.gun.gotoAndPlay(2);
totalShots++;
duplicateMovieClip ("t_shot", "t_shot_" + ilk, 2005 + ilk);
_root["t_shot_" + ilk]._rotation = this.gun._rotation;
_root["t_shot_" + ilk]._x = (this._x + this.dulo._x) + (_root.speed * Math.sin(_root.tank.body._rotation * 0.01745329));
_root["t_shot_" + ilk]._y = (this._y + this.dulo._y) - (_root.speed * Math.cos(_root.tank.body._rotation * 0.01745329));
}
}
}
}
};
Key.addListener(keyListener);
leveltime = 2300;
ppause = false;
levelsound.start(0, 999);
Instance of Symbol 199 MovieClip "tilemap" in Frame 20
onClipEvent (load) {
function collapse() {
as.gotoAndPlay(3);
}
}
Instance of Symbol 255 MovieClip "stats2" in Frame 20
onClipEvent (load) {
_root.swapz(this._name, "menudp");
}
Instance of Symbol 258 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
_y = (_y + 1);
}
}
Instance of Symbol 261 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
_y = (_y + 1);
}
}
Instance of Symbol 258 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
_y = (_y + 1);
}
}
Instance of Symbol 385 MovieClip in Frame 20
onClipEvent (load) {
_root.swapz(this._name, "menudp");
}
Instance of Symbol 281 MovieClip "tower11" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 258 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 290 MovieClip "cacg11" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "cacg12" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 281 MovieClip "tower12" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 290 MovieClip "cacg13" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "carl9" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 304 MovieClip "lacg6" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 304 MovieClip "lacg5" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 390 MovieClip "lacss2" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "lacss1" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "lacss3" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "tower13" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 261 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 304 MovieClip "lacg8" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 281 MovieClip "tower14" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 295 MovieClip "carl10" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "carl11" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "cacg14" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "cacg15" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 390 MovieClip "lacss4" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "lacss1" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "tower15" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "tower16" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 390 MovieClip "lacss5" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (load) {
speed = 0.5;
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 390 MovieClip "lacss6" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (load) {
speed = 0.5;
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 390 MovieClip "lacss8" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 0.5;
}
Instance of Symbol 390 MovieClip "lacss7" in Frame 20
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation - 0.4);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "tower18" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 304 MovieClip "lacg11" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation + 0.2);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 304 MovieClip "lacg12" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 304 MovieClip "lacg13" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation - 0.2);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 304 MovieClip "lacg14" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 258 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree2" in Frame 20
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 307 MovieClip "can7" in Frame 20
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "can8" in Frame 20
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "can9" in Frame 20
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "can10" in Frame 20
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "can12" in Frame 20
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 304 MovieClip "lacg9" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 304 MovieClip "lacg10" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 307 MovieClip "can11" in Frame 20
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "tower17" in Frame 20
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 374 MovieClip "ggmenu2" in Frame 20
onClipEvent (load) {
_root.swapz(this._name, "menudp");
_visible = false;
}
onClipEvent (enterFrame) {
function mgg(ss) {
if (_root.lives <= 0) {
menui._visible = false;
} else {
menui._visible = true;
}
this.stat.gotoAndStop(ss);
this.butl.gotoAndStop(ss);
this.stat.award.medals.gotoAndPlay("l1");
enemykill = _root.enemyKilled;
enemysurv = _root.enemySurvived;
shottotal = _root.totalShots;
shothit = _root.hitShots;
accu = Math.round((shothit * 100) / shottotal) + "%";
gamescore = gamescore + _global.myscore;
if ((shothit <= 0) && (shottotal <= 0)) {
accu = "0%";
}
}
if ((_visible == true) && (_alpha <= 100)) {
_alpha = (_alpha + 5);
}
if (_visible == false) {
_alpha = 0;
}
}
Frame 26
function gg(ss) {
if (_root.glevel == 9) {
_root.finalstagesound.stop();
} else {
_root.levelsound.stop();
_root.awardsound.start(0, 99);
}
_root["ggmenu" + glevel]._visible = true;
_root["ggmenu" + glevel].mgg(ss);
}
function slice(arrayname, index) {
i = 0;
while (i <= _root[arrayname].length) {
if (_root[arrayname][i] == index) {
_root[arrayname].splice(i, 1);
}
i++;
}
}
function swapz(obj, type) {
_root[obj].swapDepths(_root[type]);
_root[type]++;
}
function getdmg(int) {
_root.tank.hp = _root.tank.hp - int;
}
function t_countshot() {
t_readyshot = true;
t_z1 = true;
}
function path(px, py, pr, ps) {
duplicateMovieClip ("path", "path_" + _root.pathdp, pathdp);
_root["path_" + _root.pathdp]._x = px;
_root["path_" + _root.pathdp]._y = py;
_root["path_" + _root.pathdp]._width = ps;
_root["path_" + _root.pathdp]._rotation = pr;
_root.pathdp++;
}
function boom(bx, by, bs) {
boom_ns.start();
boomdp++;
duplicateMovieClip ("boom", "boom_" + _root.boomdp, boomdp);
_root["boom_" + _root.boomdp]._x = bx;
_root["boom_" + _root.boomdp]._y = by;
_root["boom_" + _root.boomdp]._height = bs;
_root["boom_" + _root.boomdp]._width = bs;
}
function booms(bx, by, bs) {
boomsdp++;
duplicateMovieClip ("booms", "booms_" + _root.boomsdp, boomsdp);
_root["booms_" + _root.boomsdp]._x = bx;
_root["booms_" + _root.boomsdp]._y = by;
_root["booms_" + _root.boomsdp]._height = bs;
_root["booms_" + _root.boomsdp]._width = bs;
}
function re() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
_root.coversound.stop();
gotoAndStop ("re");
}
function rem() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
gotoAndStop ("Menu");
}
function swapn(nm) {
_root[nm]._name = nm + namedp;
_root.namedp = _root.namedp + 1;
}
function htTest(trg) {
cx1 = tank._x;
cy1 = tank._y;
cx2 = tank._x + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy2 = tank._y - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx3 = tank._x - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy3 = tank._y + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx4 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy4 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx5 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy5 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx6 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy6 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx6 = cx6 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy6 = cy6 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx7 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy7 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx7 = cx7 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy7 = cy7 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx8 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy8 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx8 = cx8 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy8 = cy8 + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx9 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy9 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx9 = cx9 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy9 = cy9 + (20 * Math.cos(tank.body._rotation * 0.01745329));
if ((((((((_root[trg].hitTest(cx1, cy1, false) || (_root[trg].hitTest(cx2, cy2, false))) || (_root[trg].hitTest(cx3, cy3, false))) || (_root[trg].hitTest(cx4, cy4, false))) || (_root[trg].hitTest(cx5, cy5, false))) || (_root[trg].hitTest(cx6, cy6, false))) || (_root[trg].hitTest(cx7, cy7, false))) || (_root[trg].hitTest(cx8, cy8, false))) || (_root[trg].hitTest(cx9, cy9, false))) {
return(true);
}
return(false);
}
tank.hp = 1000;
namedp = 1;
boomsdp = 300;
obj0dp = 400;
pathdp = 500;
objdp = 1100;
shotdp = 2010;
boomdp = 2101;
obj2dp = 2201;
menudp = 3001;
var keyListener = new Object();
var pauseListener = new Object();
var gameoversound = new Sound();
gameoversound.attachSound("negativefinish");
var finalstagesound = new Sound();
finalstagesound.attachSound("finalstagesound");
var awardsound = new Sound();
awardsound.attachSound("awarding");
var endsound = new Sound();
endsound.attachSound("endsound");
var levelsound = new Sound();
levelsound.attachSound("levelsound");
var boom_ns = new Sound();
boom_ns.attachSound("boom_s");
var cg_ns = new Sound();
cg_ns.attachSound("cg_s");
var rl_ns = new Sound();
rl_ns.attachSound("rl_s");
var ss_ns = new Sound();
ss_ns.attachSound("ss_s");
var back_ns = new Sound();
back_ns.attachSound("back_s");
objmaxsize = 90;
enemyKilled = 0;
enemySurvived = 0;
totalShots = 0;
hitShots = 0;
terArray = new Array();
lose = false;
ggame = false;
aa = _root._url;
isDown = false;
isToggle = true;
t_readyshot = false;
t_z1 = true;
speed = 0;
i = 0;
ilk = 0;
time = 0;
duplicateMovieClip ("t_shot", "t_shot_1", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_2", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_3", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_4", _root.shotdp);
_root.shotdp++;
_root.t_shot_1._x = 200000 /* 0x030D40 */;
_root.t_shot_1._y = 200000 /* 0x030D40 */;
_root.t_shot_2._x = 200000 /* 0x030D40 */;
_root.t_shot_2._y = 200000 /* 0x030D40 */;
_root.t_shot_3._x = 200000 /* 0x030D40 */;
_root.t_shot_3._y = 200000 /* 0x030D40 */;
_root.t_shot_4._x = 200000 /* 0x030D40 */;
_root.t_shot_4._y = 200000 /* 0x030D40 */;
boss.swapDepths(2003);
tank.swapDepths(2002);
_root.terArray.push("tank");
onEnterFrame = function () {
if (!_root.ppause) {
if (_root.tank.hp > 0) {
time++;
}
if (((time >= leveltime) && (terArray.length <= 1)) && (lose == false)) {
ggame = true;
setTimeout(gg, 100, 1);
lose = true;
}
if ((_root.tank.hp <= 0) && (lose == false)) {
boom(tank._x, tank._y, 100);
boom(tank._x - 5, tank._y + 4, 150);
booms(tank._x, tank._y, 100);
_root["stats" + glevel].m_hp.gotoAndStop(11);
_root.lives = _root.lives - 1;
_root.tank.hp = 0;
if (_root.lives <= 0) {
setTimeout(gg, 2000, 3);
} else {
setTimeout(gg, 2000, 2);
}
lose = true;
tank.removeMovieClip();
}
if (_root.tank.hp > 0) {
_root["stats" + glevel].m_hp.gotoAndStop(11 - Math.ceil(_root.tank.hp / 100));
}
_root["stats" + glevel].m_lv.gotoAndStop(6 - _root.lives);
if (boomsdp >= 399) {
boomsdp = 300;
}
if (pathdp >= 1000) {
pathdp = 500;
}
if (terArray.length >= 7) {
if (boomdp >= 2115) {
boomdp = 2101;
}
} else if (boomdp >= 2200) {
boomdp = 2101;
}
if (shotdp >= 2100) {
shotdp = 2011;
}
if (objdp >= 2000) {
objdp = 1100;
}
if (obj0dp >= 499) {
obj0dp = 400;
}
if (obj2dp >= 3000) {
shotdp = 2200;
}
if ((speed >= -0.2) && (speed <= 0.2)) {
speed = 0;
} else if (Key.isDown(39) || (Key.isDown(37))) {
path(tank._x, tank._y, tank.body._rotation);
}
if ((speed - 0.2) >= 0) {
speed = speed - 0.2;
}
if ((speed + 0.2) <= 0) {
speed = speed + 0.2;
}
tank._x = tank._x + (speed * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (speed * Math.cos(tank.body._rotation * 0.01745329));
if (tilemap._y >= (-((tilemap._height / 2) - 500))) {
tilemap._y = (-tilemap._height) + 500;
}
if (!ggame) {
tilemap._y = tilemap._y + 1;
}
if (tank._y > 401) {
tank._y = 401;
path(tank._x, tank._y, 0);
}
if (tank._y < 20) {
tank._y = 20;
}
if (tank._x < 20) {
tank._x = 20;
}
if (tank._x > 530) {
tank._x = 530;
}
if (!ggame) {
tank._y = tank._y + 1;
}
if (lose == false) {
if (Key.isDown(68)) {
tank.body._rotation = tank.body._rotation + 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation + 3;
}
if (((!Key.isDown(83)) && (!Key.isDown(87))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(65)) {
tank.body._rotation = tank.body._rotation - 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation - 3;
}
if (((!Key.isDown(87)) && (!Key.isDown(83))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(87)) {
if ((speed + 0.5) <= 4) {
speed = speed + 0.5;
}
}
if (Key.isDown(83)) {
if ((speed - 0.5) >= -3) {
speed = speed - 0.5;
}
}
if (t_readyshot == false) {
if (t_z1 == true) {
t_z1 = false;
intervalId = setTimeout(t_countshot, 500);
}
}
}
}
if (Key.isDown(32)) {
if (!_root.ppause) {
_root.ppause = true;
_root.pmenu._visible = true;
} else {
_root.ppause = false;
_root.pmenu._visible = false;
}
}
};
onMouseDown = function () {
isDown = true;
};
onMouseUp = function () {
isDown = false;
};
tank.onEnterFrame = function () {
if (!_root.ppause) {
if (lose == false) {
delta_x = this._x - _xmouse;
delta_y = this._y - _ymouse;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (isDown) {
tilemap.collapse();
if (t_readyshot) {
ilk++;
if (ilk > 4) {
ilk = 1;
}
t_readyshot = false;
this.gun.gotoAndPlay(2);
totalShots++;
duplicateMovieClip ("t_shot", "t_shot_" + ilk, 2005 + ilk);
_root["t_shot_" + ilk]._rotation = this.gun._rotation;
_root["t_shot_" + ilk]._x = (this._x + this.dulo._x) + (_root.speed * Math.sin(_root.tank.body._rotation * 0.01745329));
_root["t_shot_" + ilk]._y = (this._y + this.dulo._y) - (_root.speed * Math.cos(_root.tank.body._rotation * 0.01745329));
}
}
}
}
};
Key.addListener(keyListener);
leveltime = 2400;
ppause = false;
levelsound.start(0, 999);
Instance of Symbol 255 MovieClip "stats3" in Frame 26
onClipEvent (load) {
_root.swapz(this._name, "menudp");
}
Instance of Symbol 258 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
_y = (_y + 1);
}
}
Instance of Symbol 261 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
_y = (_y + 1);
}
}
Instance of Symbol 258 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
_y = (_y + 1);
}
}
Instance of Symbol 391 MovieClip in Frame 26
onClipEvent (load) {
_root.swapz(this._name, "menudp");
}
Instance of Symbol 390 MovieClip "l3lass1" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l3lass2" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 290 MovieClip "l3cacg1" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l3cacg2" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 390 MovieClip "l3lass3" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l3lass4" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l3larl1" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l3larl2" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l3tower1" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l3tower2" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 304 MovieClip "l3lacg1" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation + 0.3);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 0.5;
}
Instance of Symbol 290 MovieClip "l3cacg4" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l3cacg3" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l3cacg7" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l3car1" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l3carl2" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 281 MovieClip "l3tower3" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l3tower4" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l3tower5" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 395 MovieClip "l3larl4" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l3larl3" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l3larl5" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l3lass6" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l3lass7" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l3lass5" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l3lass8" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l3larl6" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 304 MovieClip "l3lacg2" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 304 MovieClip "l3lacg3" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l3lass9" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation + 0.3);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l3lass10" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 304 MovieClip "l3lacg4" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation - 0.3);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l3tower6" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 290 MovieClip "l3cacg7" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l3carl2" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation - 0.3);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l3cacg8" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 281 MovieClip "l3tower8" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l3tower7" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 395 MovieClip "l3larl8" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l3larl7" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l3larl10" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l3larl9" in Frame 26
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l3lass11" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l3lass12" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l3lass13" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 295 MovieClip "l3carl3" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation - 0.3);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l3carl4" in Frame 26
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation - 0.3);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 307 MovieClip "l3can1" in Frame 26
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l3can2" in Frame 26
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l3can3" in Frame 26
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l3can4" in Frame 26
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l3can6" in Frame 26
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l3can5" in Frame 26
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l3can7" in Frame 26
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l3can9" in Frame 26
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l3can8" in Frame 26
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l3can10" in Frame 26
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l3can11" in Frame 26
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 258 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree3" in Frame 26
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 374 MovieClip "ggmenu3" in Frame 26
onClipEvent (load) {
_root.swapz(this._name, "menudp");
_visible = false;
}
onClipEvent (enterFrame) {
function mgg(ss) {
if (_root.lives <= 0) {
menui._visible = false;
} else {
menui._visible = true;
}
this.stat.gotoAndStop(ss);
this.butl.gotoAndStop(ss);
this.stat.award.medals.gotoAndPlay("l2");
enemykill = _root.enemyKilled;
enemysurv = _root.enemySurvived;
shottotal = _root.totalShots;
shothit = _root.hitShots;
accu = Math.round((shothit * 100) / shottotal) + "%";
gamescore = gamescore + _global.myscore;
if ((shothit <= 0) && (shottotal <= 0)) {
accu = "0%";
}
}
if ((_visible == true) && (_alpha <= 100)) {
_alpha = (_alpha + 5);
}
if (_visible == false) {
_alpha = 0;
}
}
Frame 32
function gg(ss) {
if (_root.glevel == 9) {
_root.finalstagesound.stop();
} else {
_root.levelsound.stop();
_root.awardsound.start(0, 99);
}
_root["ggmenu" + glevel]._visible = true;
_root["ggmenu" + glevel].mgg(ss);
}
function slice(arrayname, index) {
i = 0;
while (i <= _root[arrayname].length) {
if (_root[arrayname][i] == index) {
_root[arrayname].splice(i, 1);
}
i++;
}
}
function swapz(obj, type) {
_root[obj].swapDepths(_root[type]);
_root[type]++;
}
function getdmg(int) {
_root.tank.hp = _root.tank.hp - int;
}
function t_countshot() {
t_readyshot = true;
t_z1 = true;
}
function path(px, py, pr, ps) {
duplicateMovieClip ("path", "path_" + _root.pathdp, pathdp);
_root["path_" + _root.pathdp]._x = px;
_root["path_" + _root.pathdp]._y = py;
_root["path_" + _root.pathdp]._width = ps;
_root["path_" + _root.pathdp]._rotation = pr;
_root.pathdp++;
}
function boom(bx, by, bs) {
boom_ns.start();
boomdp++;
duplicateMovieClip ("boom", "boom_" + _root.boomdp, boomdp);
_root["boom_" + _root.boomdp]._x = bx;
_root["boom_" + _root.boomdp]._y = by;
_root["boom_" + _root.boomdp]._height = bs;
_root["boom_" + _root.boomdp]._width = bs;
}
function booms(bx, by, bs) {
boomsdp++;
duplicateMovieClip ("booms", "booms_" + _root.boomsdp, boomsdp);
_root["booms_" + _root.boomsdp]._x = bx;
_root["booms_" + _root.boomsdp]._y = by;
_root["booms_" + _root.boomsdp]._height = bs;
_root["booms_" + _root.boomsdp]._width = bs;
}
function re() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
_root.coversound.stop();
gotoAndStop ("re");
}
function rem() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
gotoAndStop ("Menu");
}
function swapn(nm) {
_root[nm]._name = nm + namedp;
_root.namedp = _root.namedp + 1;
}
function htTest(trg) {
cx1 = tank._x;
cy1 = tank._y;
cx2 = tank._x + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy2 = tank._y - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx3 = tank._x - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy3 = tank._y + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx4 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy4 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx5 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy5 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx6 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy6 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx6 = cx6 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy6 = cy6 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx7 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy7 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx7 = cx7 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy7 = cy7 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx8 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy8 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx8 = cx8 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy8 = cy8 + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx9 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy9 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx9 = cx9 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy9 = cy9 + (20 * Math.cos(tank.body._rotation * 0.01745329));
if ((((((((_root[trg].hitTest(cx1, cy1, false) || (_root[trg].hitTest(cx2, cy2, false))) || (_root[trg].hitTest(cx3, cy3, false))) || (_root[trg].hitTest(cx4, cy4, false))) || (_root[trg].hitTest(cx5, cy5, false))) || (_root[trg].hitTest(cx6, cy6, false))) || (_root[trg].hitTest(cx7, cy7, false))) || (_root[trg].hitTest(cx8, cy8, false))) || (_root[trg].hitTest(cx9, cy9, false))) {
return(true);
}
return(false);
}
tank.hp = 1000;
namedp = 1;
boomsdp = 300;
obj0dp = 400;
pathdp = 500;
objdp = 1100;
shotdp = 2010;
boomdp = 2101;
obj2dp = 2201;
menudp = 3001;
var keyListener = new Object();
var pauseListener = new Object();
var gameoversound = new Sound();
gameoversound.attachSound("negativefinish");
var finalstagesound = new Sound();
finalstagesound.attachSound("finalstagesound");
var awardsound = new Sound();
awardsound.attachSound("awarding");
var endsound = new Sound();
endsound.attachSound("endsound");
var levelsound = new Sound();
levelsound.attachSound("levelsound");
var boom_ns = new Sound();
boom_ns.attachSound("boom_s");
var cg_ns = new Sound();
cg_ns.attachSound("cg_s");
var rl_ns = new Sound();
rl_ns.attachSound("rl_s");
var ss_ns = new Sound();
ss_ns.attachSound("ss_s");
var back_ns = new Sound();
back_ns.attachSound("back_s");
objmaxsize = 90;
enemyKilled = 0;
enemySurvived = 0;
totalShots = 0;
hitShots = 0;
terArray = new Array();
lose = false;
ggame = false;
aa = _root._url;
isDown = false;
isToggle = true;
t_readyshot = false;
t_z1 = true;
speed = 0;
i = 0;
ilk = 0;
time = 0;
duplicateMovieClip ("t_shot", "t_shot_1", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_2", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_3", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_4", _root.shotdp);
_root.shotdp++;
_root.t_shot_1._x = 200000 /* 0x030D40 */;
_root.t_shot_1._y = 200000 /* 0x030D40 */;
_root.t_shot_2._x = 200000 /* 0x030D40 */;
_root.t_shot_2._y = 200000 /* 0x030D40 */;
_root.t_shot_3._x = 200000 /* 0x030D40 */;
_root.t_shot_3._y = 200000 /* 0x030D40 */;
_root.t_shot_4._x = 200000 /* 0x030D40 */;
_root.t_shot_4._y = 200000 /* 0x030D40 */;
boss.swapDepths(2003);
tank.swapDepths(2002);
_root.terArray.push("tank");
onEnterFrame = function () {
if (!_root.ppause) {
if (_root.tank.hp > 0) {
time++;
}
if (((time >= leveltime) && (terArray.length <= 1)) && (lose == false)) {
ggame = true;
setTimeout(gg, 100, 1);
lose = true;
}
if ((_root.tank.hp <= 0) && (lose == false)) {
boom(tank._x, tank._y, 100);
boom(tank._x - 5, tank._y + 4, 150);
booms(tank._x, tank._y, 100);
_root["stats" + glevel].m_hp.gotoAndStop(11);
_root.lives = _root.lives - 1;
_root.tank.hp = 0;
if (_root.lives <= 0) {
setTimeout(gg, 2000, 3);
} else {
setTimeout(gg, 2000, 2);
}
lose = true;
tank.removeMovieClip();
}
if (_root.tank.hp > 0) {
_root["stats" + glevel].m_hp.gotoAndStop(11 - Math.ceil(_root.tank.hp / 100));
}
_root["stats" + glevel].m_lv.gotoAndStop(6 - _root.lives);
if (boomsdp >= 399) {
boomsdp = 300;
}
if (pathdp >= 1000) {
pathdp = 500;
}
if (terArray.length >= 7) {
if (boomdp >= 2115) {
boomdp = 2101;
}
} else if (boomdp >= 2200) {
boomdp = 2101;
}
if (shotdp >= 2100) {
shotdp = 2011;
}
if (objdp >= 2000) {
objdp = 1100;
}
if (obj0dp >= 499) {
obj0dp = 400;
}
if (obj2dp >= 3000) {
shotdp = 2200;
}
if ((speed >= -0.2) && (speed <= 0.2)) {
speed = 0;
} else if (Key.isDown(39) || (Key.isDown(37))) {
path(tank._x, tank._y, tank.body._rotation);
}
if ((speed - 0.2) >= 0) {
speed = speed - 0.2;
}
if ((speed + 0.2) <= 0) {
speed = speed + 0.2;
}
tank._x = tank._x + (speed * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (speed * Math.cos(tank.body._rotation * 0.01745329));
if (tilemap._y >= (-((tilemap._height / 2) - 500))) {
tilemap._y = (-tilemap._height) + 500;
}
if (!ggame) {
tilemap._y = tilemap._y + 1;
}
if (tank._y > 401) {
tank._y = 401;
path(tank._x, tank._y, 0);
}
if (tank._y < 20) {
tank._y = 20;
}
if (tank._x < 20) {
tank._x = 20;
}
if (tank._x > 530) {
tank._x = 530;
}
if (!ggame) {
tank._y = tank._y + 1;
}
if (lose == false) {
if (Key.isDown(68)) {
tank.body._rotation = tank.body._rotation + 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation + 3;
}
if (((!Key.isDown(83)) && (!Key.isDown(87))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(65)) {
tank.body._rotation = tank.body._rotation - 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation - 3;
}
if (((!Key.isDown(87)) && (!Key.isDown(83))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(87)) {
if ((speed + 0.5) <= 4) {
speed = speed + 0.5;
}
}
if (Key.isDown(83)) {
if ((speed - 0.5) >= -3) {
speed = speed - 0.5;
}
}
if (t_readyshot == false) {
if (t_z1 == true) {
t_z1 = false;
intervalId = setTimeout(t_countshot, 500);
}
}
}
}
if (Key.isDown(32)) {
if (!_root.ppause) {
_root.ppause = true;
_root.pmenu._visible = true;
} else {
_root.ppause = false;
_root.pmenu._visible = false;
}
}
};
onMouseDown = function () {
isDown = true;
};
onMouseUp = function () {
isDown = false;
};
tank.onEnterFrame = function () {
if (!_root.ppause) {
if (lose == false) {
delta_x = this._x - _xmouse;
delta_y = this._y - _ymouse;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (isDown) {
tilemap.collapse();
if (t_readyshot) {
ilk++;
if (ilk > 4) {
ilk = 1;
}
t_readyshot = false;
this.gun.gotoAndPlay(2);
totalShots++;
duplicateMovieClip ("t_shot", "t_shot_" + ilk, 2005 + ilk);
_root["t_shot_" + ilk]._rotation = this.gun._rotation;
_root["t_shot_" + ilk]._x = (this._x + this.dulo._x) + (_root.speed * Math.sin(_root.tank.body._rotation * 0.01745329));
_root["t_shot_" + ilk]._y = (this._y + this.dulo._y) - (_root.speed * Math.cos(_root.tank.body._rotation * 0.01745329));
}
}
}
}
};
Key.addListener(keyListener);
leveltime = 2500;
levelsound.start(0, 999);
ppause = false;
Instance of Symbol 255 MovieClip "stats4" in Frame 32
onClipEvent (load) {
_root.swapz(this._name, "menudp");
}
Instance of Symbol 396 MovieClip in Frame 32
onClipEvent (load) {
_root.swapz(this._name, "menudp");
}
Instance of Symbol 261 MovieClip "tree3" in Frame 32
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
_y = (_y + 1);
}
}
Instance of Symbol 261 MovieClip "tree3" in Frame 32
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
_y = (_y + 1);
}
}
Instance of Symbol 395 MovieClip "l4larl1" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 304 MovieClip "l4lacg1" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 281 MovieClip "l4tower1" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l4tower2" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 402 MovieClip "l4lane1" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation - 0.3);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l4cacg1" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (400 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 402 MovieClip "l4lane2" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 0.5;
}
Instance of Symbol 395 MovieClip "l4larl2" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l4larl3" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l4lass2" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l4lass1" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 307 MovieClip "l4can1" in Frame 32
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l4can8" in Frame 32
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l4can6" in Frame 32
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l4tower4" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l4tower3" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 304 MovieClip "l4lacg2" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 0.5;
}
Instance of Symbol 304 MovieClip "l4lacg5" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 0.5;
}
Instance of Symbol 295 MovieClip "l4carl2" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l4carl1" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 390 MovieClip "l4lass4" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l4lass3" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 307 MovieClip "l4can9" in Frame 32
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l4can10" in Frame 32
onClipEvent (load) {
hp = 50;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_global.myscore = _global.myscore + 50;
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 120, this._x, this._y, 45);
_root.boom(this._x, this._y, 150);
i = 0;
while (i <= _root.terArray.length) {
if (Math.sqrt(((_x - _root[_root.terArray[i]]._x) * (_x - _root[_root.terArray[i]]._x)) + ((_y - _root[_root.terArray[i]]._y) * (_y - _root[_root.terArray[i]]._y))) < (65 + (_root[_root.terArray[i]]._width / 2))) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 150;
}
i++;
}
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 290 MovieClip "l4cacg2" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 304 MovieClip "l4lacg6" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 304 MovieClip "l4lacg7" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 402 MovieClip "l4lane3" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l4tower7" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l4tower6" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l4tower5" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 395 MovieClip "l4larl5" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l4larl4" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l4tower8" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l4tower9" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 402 MovieClip "l4lane" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1.5;
}
Instance of Symbol 295 MovieClip "l4carl3" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l4carl4" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 390 MovieClip "l4lass6" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (50 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 0.5;
}
Instance of Symbol 390 MovieClip "l4lass5" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (50 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 0.5;
}
Instance of Symbol 390 MovieClip "l4lass7" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1.2;
}
Instance of Symbol 395 MovieClip "l3larl5" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1.2;
}
Instance of Symbol 290 MovieClip "l4cacg4" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l4cacg3" in Frame 32
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 402 MovieClip "l4lane6" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 402 MovieClip "l4lane5" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l4tower10" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 402 MovieClip "l4lane7" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation + 0.2);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 402 MovieClip "l4lane9" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l4larl6" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1.2;
}
Instance of Symbol 261 MovieClip "tree4" in Frame 32
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree4" in Frame 32
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree4" in Frame 32
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree4" in Frame 32
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree4" in Frame 32
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 258 MovieClip "tree4" in Frame 32
onClipEvent (load) {
st = false;
_root.swapz(this._name, "obj2dp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
this.removeMovieClip();
}
if (st && (!_root.ggame)) {
_y = (_y + 1);
}
}
}
Instance of Symbol 261 MovieClip "tree4" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree4" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree4" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree4" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree4" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree4" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree4" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree4" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l4can7" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l4can12" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l4can11" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l4can14" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l4can13" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l4can16" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l4can15" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l4can17" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree4" in Frame 32
onClipEvent (load) {
!!!ERROR
Instance of Symbol 281 MovieClip "l4tower13" in Frame 32
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 374 MovieClip "ggmenu4" in Frame 32
onClipEvent (load) {
!!!ERROR
Frame 38
function gg(ss) {
if (_root.glevel == 9) {
_root.finalstagesound.stop();
} else {
_root.levelsound.stop();
_root.awardsound.start(0, 99);
}
_root["ggmenu" + glevel]._visible = true;
_root["ggmenu" + glevel].mgg(ss);
}
function slice(arrayname, index) {
i = 0;
while (i <= _root[arrayname].length) {
if (_root[arrayname][i] == index) {
_root[arrayname].splice(i, 1);
}
i++;
}
}
function swapz(obj, type) {
_root[obj].swapDepths(_root[type]);
_root[type]++;
}
function getdmg(int) {
_root.tank.hp = _root.tank.hp - int;
}
function t_countshot() {
t_readyshot = true;
t_z1 = true;
}
function path(px, py, pr, ps) {
duplicateMovieClip ("path", "path_" + _root.pathdp, pathdp);
_root["path_" + _root.pathdp]._x = px;
_root["path_" + _root.pathdp]._y = py;
_root["path_" + _root.pathdp]._width = ps;
_root["path_" + _root.pathdp]._rotation = pr;
_root.pathdp++;
}
function boom(bx, by, bs) {
boom_ns.start();
boomdp++;
duplicateMovieClip ("boom", "boom_" + _root.boomdp, boomdp);
_root["boom_" + _root.boomdp]._x = bx;
_root["boom_" + _root.boomdp]._y = by;
_root["boom_" + _root.boomdp]._height = bs;
_root["boom_" + _root.boomdp]._width = bs;
}
function booms(bx, by, bs) {
boomsdp++;
duplicateMovieClip ("booms", "booms_" + _root.boomsdp, boomsdp);
_root["booms_" + _root.boomsdp]._x = bx;
_root["booms_" + _root.boomsdp]._y = by;
_root["booms_" + _root.boomsdp]._height = bs;
_root["booms_" + _root.boomsdp]._width = bs;
}
function re() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
_root.coversound.stop();
gotoAndStop ("re");
}
function rem() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
gotoAndStop ("Menu");
}
function swapn(nm) {
_root[nm]._name = nm + namedp;
_root.namedp = _root.namedp + 1;
}
function htTest(trg) {
cx1 = tank._x;
cy1 = tank._y;
cx2 = tank._x + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy2 = tank._y - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx3 = tank._x - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy3 = tank._y + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx4 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy4 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx5 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy5 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx6 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy6 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx6 = cx6 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy6 = cy6 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx7 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy7 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx7 = cx7 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy7 = cy7 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx8 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy8 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx8 = cx8 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy8 = cy8 + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx9 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy9 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx9 = cx9 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy9 = cy9 + (20 * Math.cos(tank.body._rotation * 0.01745329));
if ((((((((_root[trg].hitTest(cx1, cy1, false) || (_root[trg].hitTest(cx2, cy2, false))) || (_root[trg].hitTest(cx3, cy3, false))) || (_root[trg].hitTest(cx4, cy4, false))) || (_root[trg].hitTest(cx5, cy5, false))) || (_root[trg].hitTest(cx6, cy6, false))) || (_root[trg].hitTest(cx7, cy7, false))) || (_root[trg].hitTest(cx8, cy8, false))) || (_root[trg].hitTest(cx9, cy9, false))) {
return(true);
}
return(false);
}
tank.hp = 1000;
namedp = 1;
boomsdp = 300;
obj0dp = 400;
pathdp = 500;
objdp = 1100;
shotdp = 2010;
boomdp = 2101;
obj2dp = 2201;
menudp = 3001;
var keyListener = new Object();
var pauseListener = new Object();
var gameoversound = new Sound();
gameoversound.attachSound("negativefinish");
var finalstagesound = new Sound();
finalstagesound.attachSound("finalstagesound");
var awardsound = new Sound();
awardsound.attachSound("awarding");
var endsound = new Sound();
endsound.attachSound("endsound");
var levelsound = new Sound();
levelsound.attachSound("levelsound");
var boom_ns = new Sound();
boom_ns.attachSound("boom_s");
var cg_ns = new Sound();
cg_ns.attachSound("cg_s");
var rl_ns = new Sound();
rl_ns.attachSound("rl_s");
var ss_ns = new Sound();
ss_ns.attachSound("ss_s");
var back_ns = new Sound();
back_ns.attachSound("back_s");
objmaxsize = 90;
enemyKilled = 0;
enemySurvived = 0;
totalShots = 0;
hitShots = 0;
terArray = new Array();
lose = false;
ggame = false;
aa = _root._url;
isDown = false;
isToggle = true;
t_readyshot = false;
t_z1 = true;
speed = 0;
i = 0;
ilk = 0;
time = 0;
duplicateMovieClip ("t_shot", "t_shot_1", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_2", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_3", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_4", _root.shotdp);
_root.shotdp++;
_root.t_shot_1._x = 200000 /* 0x030D40 */;
_root.t_shot_1._y = 200000 /* 0x030D40 */;
_root.t_shot_2._x = 200000 /* 0x030D40 */;
_root.t_shot_2._y = 200000 /* 0x030D40 */;
_root.t_shot_3._x = 200000 /* 0x030D40 */;
_root.t_shot_3._y = 200000 /* 0x030D40 */;
_root.t_shot_4._x = 200000 /* 0x030D40 */;
_root.t_shot_4._y = 200000 /* 0x030D40 */;
boss.swapDepths(2003);
tank.swapDepths(2002);
_root.terArray.push("tank");
onEnterFrame = function () {
if (!_root.ppause) {
if (_root.tank.hp > 0) {
time++;
}
if (((time >= leveltime) && (terArray.length <= 1)) && (lose == false)) {
ggame = true;
setTimeout(gg, 100, 1);
lose = true;
}
if ((_root.tank.hp <= 0) && (lose == false)) {
boom(tank._x, tank._y, 100);
boom(tank._x - 5, tank._y + 4, 150);
booms(tank._x, tank._y, 100);
_root["stats" + glevel].m_hp.gotoAndStop(11);
_root.lives = _root.lives - 1;
_root.tank.hp = 0;
if (_root.lives <= 0) {
setTimeout(gg, 2000, 3);
} else {
setTimeout(gg, 2000, 2);
}
lose = true;
tank.removeMovieClip();
}
if (_root.tank.hp > 0) {
_root["stats" + glevel].m_hp.gotoAndStop(11 - Math.ceil(_root.tank.hp / 100));
}
_root["stats" + glevel].m_lv.gotoAndStop(6 - _root.lives);
if (boomsdp >= 399) {
boomsdp = 300;
}
if (pathdp >= 1000) {
pathdp = 500;
}
if (terArray.length >= 7) {
if (boomdp >= 2115) {
boomdp = 2101;
}
} else if (boomdp >= 2200) {
boomdp = 2101;
}
if (shotdp >= 2100) {
shotdp = 2011;
}
if (objdp >= 2000) {
objdp = 1100;
}
if (obj0dp >= 499) {
obj0dp = 400;
}
if (obj2dp >= 3000) {
shotdp = 2200;
}
if ((speed >= -0.2) && (speed <= 0.2)) {
speed = 0;
} else if (Key.isDown(39) || (Key.isDown(37))) {
path(tank._x, tank._y, tank.body._rotation);
}
if ((speed - 0.2) >= 0) {
speed = speed - 0.2;
}
if ((speed + 0.2) <= 0) {
speed = speed + 0.2;
}
tank._x = tank._x + (speed * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (speed * Math.cos(tank.body._rotation * 0.01745329));
if (tilemap._y >= (-((tilemap._height / 2) - 500))) {
tilemap._y = (-tilemap._height) + 500;
}
if (!ggame) {
tilemap._y = tilemap._y + 1;
}
if (tank._y > 401) {
tank._y = 401;
path(tank._x, tank._y, 0);
}
if (tank._y < 20) {
tank._y = 20;
}
if (tank._x < 20) {
tank._x = 20;
}
if (tank._x > 530) {
tank._x = 530;
}
if (!ggame) {
tank._y = tank._y + 1;
}
if (lose == false) {
if (Key.isDown(68)) {
tank.body._rotation = tank.body._rotation + 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation + 3;
}
if (((!Key.isDown(83)) && (!Key.isDown(87))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(65)) {
tank.body._rotation = tank.body._rotation - 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation - 3;
}
if (((!Key.isDown(87)) && (!Key.isDown(83))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(87)) {
if ((speed + 0.5) <= 4) {
speed = speed + 0.5;
}
}
if (Key.isDown(83)) {
if ((speed - 0.5) >= -3) {
speed = speed - 0.5;
}
}
if (t_readyshot == false) {
if (t_z1 == true) {
t_z1 = false;
intervalId = setTimeout(t_countshot, 500);
}
}
}
}
if (Key.isDown(32)) {
if (!_root.ppause) {
_root.ppause = true;
_root.pmenu._visible = true;
} else {
_root.ppause = false;
_root.pmenu._visible = false;
}
}
};
onMouseDown = function () {
isDown = true;
};
onMouseUp = function () {
isDown = false;
};
tank.onEnterFrame = function () {
if (!_root.ppause) {
if (lose == false) {
delta_x = this._x - _xmouse;
delta_y = this._y - _ymouse;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (isDown) {
tilemap.collapse();
if (t_readyshot) {
ilk++;
if (ilk > 4) {
ilk = 1;
}
t_readyshot = false;
this.gun.gotoAndPlay(2);
totalShots++;
duplicateMovieClip ("t_shot", "t_shot_" + ilk, 2005 + ilk);
_root["t_shot_" + ilk]._rotation = this.gun._rotation;
_root["t_shot_" + ilk]._x = (this._x + this.dulo._x) + (_root.speed * Math.sin(_root.tank.body._rotation * 0.01745329));
_root["t_shot_" + ilk]._y = (this._y + this.dulo._y) - (_root.speed * Math.cos(_root.tank.body._rotation * 0.01745329));
}
}
}
}
};
Key.addListener(keyListener);
leveltime = 2600;
ppause = false;
levelsound.start(0, 999);
Instance of Symbol 255 MovieClip "stats5" in Frame 38
onClipEvent (load) {
_root.swapz(this._name, "menudp");
}
Instance of Symbol 403 MovieClip in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 295 MovieClip "l5carl" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 281 MovieClip "l5tower1" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l5tower2" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 304 MovieClip "l5lacg1" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 304 MovieClip "l5lacg2" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 390 MovieClip "l5lass1" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation - 0.1);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l5lass2" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation + 0.1);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l5larl1" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 402 MovieClip "l5lane1" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation + 0.3);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l5larl2" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 402 MovieClip "l5lane2" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation - 0.3);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l5larl4" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l5larl3" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 307 MovieClip "l5can2" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l5can1" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 290 MovieClip "l5cacg1" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 281 MovieClip "l5tower3" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l5tower4" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l5tower5" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 304 MovieClip "l5lacg3" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 395 MovieClip "l5larl8" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l5larl7" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l5larl6" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l5larl5" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 406 MovieClip "l5tower6" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l5tower7" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l5tower8" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l5can3" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l5can4" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 390 MovieClip "l5lass4" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation - 0.2);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l5lass3" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation - 0.3);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 290 MovieClip "l5cacg2" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l5cacg3" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l5cacg4" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l5cacg4" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (140 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l5cacg5" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (140 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l5carl2" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (140 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l5carl3" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (140 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 390 MovieClip "l5lass6" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l5lass7" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 406 MovieClip "l5tower9" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l5tower10" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l5tower11" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 395 MovieClip "l5larl10" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation + 0.3);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l5larl9" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation - 0.3);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 402 MovieClip "l5lane12" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 402 MovieClip "l5lane11" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 406 MovieClip "l5tower15" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 290 MovieClip "l5cacg13" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (140 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l5cacg14" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (140 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 406 MovieClip "l5tower13" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l5tower12" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l5tower14" in Frame 38
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 290 MovieClip "l5cacg17" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (140 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l5carl15" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (140 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l5carl16" in Frame 38
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (140 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 307 MovieClip "l5can7" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l5can8" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l5can9" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l5can10" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l5can11" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree51" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree5" in Frame 38
onClipEvent (load) {
!!!ERROR
Instance of Symbol 374 MovieClip "ggmenu5" in Frame 38
onClipEvent (load) {
!!!ERROR
Frame 44
function gg(ss) {
if (_root.glevel == 9) {
_root.finalstagesound.stop();
} else {
_root.levelsound.stop();
_root.awardsound.start(0, 99);
}
_root["ggmenu" + glevel]._visible = true;
_root["ggmenu" + glevel].mgg(ss);
}
function slice(arrayname, index) {
i = 0;
while (i <= _root[arrayname].length) {
if (_root[arrayname][i] == index) {
_root[arrayname].splice(i, 1);
}
i++;
}
}
function swapz(obj, type) {
_root[obj].swapDepths(_root[type]);
_root[type]++;
}
function getdmg(int) {
_root.tank.hp = _root.tank.hp - int;
}
function t_countshot() {
t_readyshot = true;
t_z1 = true;
}
function path(px, py, pr, ps) {
duplicateMovieClip ("path", "path_" + _root.pathdp, pathdp);
_root["path_" + _root.pathdp]._x = px;
_root["path_" + _root.pathdp]._y = py;
_root["path_" + _root.pathdp]._width = ps;
_root["path_" + _root.pathdp]._rotation = pr;
_root.pathdp++;
}
function boom(bx, by, bs) {
boom_ns.start();
boomdp++;
duplicateMovieClip ("boom", "boom_" + _root.boomdp, boomdp);
_root["boom_" + _root.boomdp]._x = bx;
_root["boom_" + _root.boomdp]._y = by;
_root["boom_" + _root.boomdp]._height = bs;
_root["boom_" + _root.boomdp]._width = bs;
}
function booms(bx, by, bs) {
boomsdp++;
duplicateMovieClip ("booms", "booms_" + _root.boomsdp, boomsdp);
_root["booms_" + _root.boomsdp]._x = bx;
_root["booms_" + _root.boomsdp]._y = by;
_root["booms_" + _root.boomsdp]._height = bs;
_root["booms_" + _root.boomsdp]._width = bs;
}
function re() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
_root.coversound.stop();
gotoAndStop ("re");
}
function rem() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
gotoAndStop ("Menu");
}
function swapn(nm) {
_root[nm]._name = nm + namedp;
_root.namedp = _root.namedp + 1;
}
function htTest(trg) {
cx1 = tank._x;
cy1 = tank._y;
cx2 = tank._x + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy2 = tank._y - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx3 = tank._x - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy3 = tank._y + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx4 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy4 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx5 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy5 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx6 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy6 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx6 = cx6 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy6 = cy6 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx7 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy7 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx7 = cx7 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy7 = cy7 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx8 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy8 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx8 = cx8 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy8 = cy8 + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx9 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy9 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx9 = cx9 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy9 = cy9 + (20 * Math.cos(tank.body._rotation * 0.01745329));
if ((((((((_root[trg].hitTest(cx1, cy1, false) || (_root[trg].hitTest(cx2, cy2, false))) || (_root[trg].hitTest(cx3, cy3, false))) || (_root[trg].hitTest(cx4, cy4, false))) || (_root[trg].hitTest(cx5, cy5, false))) || (_root[trg].hitTest(cx6, cy6, false))) || (_root[trg].hitTest(cx7, cy7, false))) || (_root[trg].hitTest(cx8, cy8, false))) || (_root[trg].hitTest(cx9, cy9, false))) {
return(true);
}
return(false);
}
tank.hp = 1000;
namedp = 1;
boomsdp = 300;
obj0dp = 400;
pathdp = 500;
objdp = 1100;
shotdp = 2010;
boomdp = 2101;
obj2dp = 2201;
menudp = 3001;
var keyListener = new Object();
var pauseListener = new Object();
var gameoversound = new Sound();
gameoversound.attachSound("negativefinish");
var finalstagesound = new Sound();
finalstagesound.attachSound("finalstagesound");
var awardsound = new Sound();
awardsound.attachSound("awarding");
var endsound = new Sound();
endsound.attachSound("endsound");
var levelsound = new Sound();
levelsound.attachSound("levelsound");
var boom_ns = new Sound();
boom_ns.attachSound("boom_s");
var cg_ns = new Sound();
cg_ns.attachSound("cg_s");
var rl_ns = new Sound();
rl_ns.attachSound("rl_s");
var ss_ns = new Sound();
ss_ns.attachSound("ss_s");
var back_ns = new Sound();
back_ns.attachSound("back_s");
objmaxsize = 90;
enemyKilled = 0;
enemySurvived = 0;
totalShots = 0;
hitShots = 0;
terArray = new Array();
lose = false;
ggame = false;
aa = _root._url;
isDown = false;
isToggle = true;
t_readyshot = false;
t_z1 = true;
speed = 0;
i = 0;
ilk = 0;
time = 0;
duplicateMovieClip ("t_shot", "t_shot_1", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_2", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_3", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_4", _root.shotdp);
_root.shotdp++;
_root.t_shot_1._x = 200000 /* 0x030D40 */;
_root.t_shot_1._y = 200000 /* 0x030D40 */;
_root.t_shot_2._x = 200000 /* 0x030D40 */;
_root.t_shot_2._y = 200000 /* 0x030D40 */;
_root.t_shot_3._x = 200000 /* 0x030D40 */;
_root.t_shot_3._y = 200000 /* 0x030D40 */;
_root.t_shot_4._x = 200000 /* 0x030D40 */;
_root.t_shot_4._y = 200000 /* 0x030D40 */;
boss.swapDepths(2003);
tank.swapDepths(2002);
_root.terArray.push("tank");
onEnterFrame = function () {
if (!_root.ppause) {
if (_root.tank.hp > 0) {
time++;
}
if (((time >= leveltime) && (terArray.length <= 1)) && (lose == false)) {
ggame = true;
setTimeout(gg, 100, 1);
lose = true;
}
if ((_root.tank.hp <= 0) && (lose == false)) {
boom(tank._x, tank._y, 100);
boom(tank._x - 5, tank._y + 4, 150);
booms(tank._x, tank._y, 100);
_root["stats" + glevel].m_hp.gotoAndStop(11);
_root.lives = _root.lives - 1;
_root.tank.hp = 0;
if (_root.lives <= 0) {
setTimeout(gg, 2000, 3);
} else {
setTimeout(gg, 2000, 2);
}
lose = true;
tank.removeMovieClip();
}
if (_root.tank.hp > 0) {
_root["stats" + glevel].m_hp.gotoAndStop(11 - Math.ceil(_root.tank.hp / 100));
}
_root["stats" + glevel].m_lv.gotoAndStop(6 - _root.lives);
if (boomsdp >= 399) {
boomsdp = 300;
}
if (pathdp >= 1000) {
pathdp = 500;
}
if (terArray.length >= 7) {
if (boomdp >= 2115) {
boomdp = 2101;
}
} else if (boomdp >= 2200) {
boomdp = 2101;
}
if (shotdp >= 2100) {
shotdp = 2011;
}
if (objdp >= 2000) {
objdp = 1100;
}
if (obj0dp >= 499) {
obj0dp = 400;
}
if (obj2dp >= 3000) {
shotdp = 2200;
}
if ((speed >= -0.2) && (speed <= 0.2)) {
speed = 0;
} else if (Key.isDown(39) || (Key.isDown(37))) {
path(tank._x, tank._y, tank.body._rotation);
}
if ((speed - 0.2) >= 0) {
speed = speed - 0.2;
}
if ((speed + 0.2) <= 0) {
speed = speed + 0.2;
}
tank._x = tank._x + (speed * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (speed * Math.cos(tank.body._rotation * 0.01745329));
if (tilemap._y >= (-((tilemap._height / 2) - 500))) {
tilemap._y = (-tilemap._height) + 500;
}
if (!ggame) {
tilemap._y = tilemap._y + 1;
}
if (tank._y > 401) {
tank._y = 401;
path(tank._x, tank._y, 0);
}
if (tank._y < 20) {
tank._y = 20;
}
if (tank._x < 20) {
tank._x = 20;
}
if (tank._x > 530) {
tank._x = 530;
}
if (!ggame) {
tank._y = tank._y + 1;
}
if (lose == false) {
if (Key.isDown(68)) {
tank.body._rotation = tank.body._rotation + 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation + 3;
}
if (((!Key.isDown(83)) && (!Key.isDown(87))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(65)) {
tank.body._rotation = tank.body._rotation - 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation - 3;
}
if (((!Key.isDown(87)) && (!Key.isDown(83))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(87)) {
if ((speed + 0.5) <= 4) {
speed = speed + 0.5;
}
}
if (Key.isDown(83)) {
if ((speed - 0.5) >= -3) {
speed = speed - 0.5;
}
}
if (t_readyshot == false) {
if (t_z1 == true) {
t_z1 = false;
intervalId = setTimeout(t_countshot, 500);
}
}
}
}
if (Key.isDown(32)) {
if (!_root.ppause) {
_root.ppause = true;
_root.pmenu._visible = true;
} else {
_root.ppause = false;
_root.pmenu._visible = false;
}
}
};
onMouseDown = function () {
isDown = true;
};
onMouseUp = function () {
isDown = false;
};
tank.onEnterFrame = function () {
if (!_root.ppause) {
if (lose == false) {
delta_x = this._x - _xmouse;
delta_y = this._y - _ymouse;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (isDown) {
tilemap.collapse();
if (t_readyshot) {
ilk++;
if (ilk > 4) {
ilk = 1;
}
t_readyshot = false;
this.gun.gotoAndPlay(2);
totalShots++;
duplicateMovieClip ("t_shot", "t_shot_" + ilk, 2005 + ilk);
_root["t_shot_" + ilk]._rotation = this.gun._rotation;
_root["t_shot_" + ilk]._x = (this._x + this.dulo._x) + (_root.speed * Math.sin(_root.tank.body._rotation * 0.01745329));
_root["t_shot_" + ilk]._y = (this._y + this.dulo._y) - (_root.speed * Math.cos(_root.tank.body._rotation * 0.01745329));
}
}
}
}
};
Key.addListener(keyListener);
leveltime = 2500;
ppause = false;
levelsound.start(0, 999);
Instance of Symbol 255 MovieClip "stats6" in Frame 44
onClipEvent (load) {
_root.swapz(this._name, "menudp");
}
Instance of Symbol 407 MovieClip in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l6can43" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 395 MovieClip "l6larl2" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l6larl1" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 413 MovieClip "l6hamb4" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 413 MovieClip "l6hamb3" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 413 MovieClip "l6hamb7" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 0.5;
}
Instance of Symbol 290 MovieClip "l6cacg12" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l6cacg11" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l6cacg10" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l6cacg9" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l6carl14" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 390 MovieClip "l6lacs20" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 406 MovieClip "l6tower19" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 413 MovieClip "l6hamb18" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 402 MovieClip "l6lane15" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 402 MovieClip "l6lane13" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 406 MovieClip "l6tower28" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l6tower24" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 418 MovieClip "l6wall27" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l6wall26" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 413 MovieClip "l6hamb31" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 413 MovieClip "l6hamb32" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 295 MovieClip "l6carl25" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l6carl33" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 395 MovieClip "l6larl35" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l6tower38" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 402 MovieClip "l6lane39" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 402 MovieClip "l6lane40" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 418 MovieClip "l6wall41" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l6wall42" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l6wall50" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l6wall51" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 413 MovieClip "l6hamb46" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 413 MovieClip "l6hamb49" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 413 MovieClip "l6hamb44" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 307 MovieClip "l6can36" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l6can48" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l6can47" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l6can45" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 281 MovieClip "l6tower52" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l6tower53" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l6tower54" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l6tower55" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l6tower60" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l6tower63" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 413 MovieClip "l6hamb56" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 0.5;
}
Instance of Symbol 413 MovieClip "l6hamb57" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 0.5;
}
Instance of Symbol 413 MovieClip "l6hamb61" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 0.5;
}
Instance of Symbol 413 MovieClip "l6hamb58" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 0.5;
}
Instance of Symbol 395 MovieClip "l6larl64" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l6tower67" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 295 MovieClip "l6carl66" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation + 0.2);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 390 MovieClip "l6lacs65" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l6lacs69" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (250 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 413 MovieClip "l6hamb68" in Frame 44
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 0.5;
}
Instance of Symbol 304 MovieClip "l6lacg70" in Frame 44
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 307 MovieClip "l6can37" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l6can34" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l6can30" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l6can29" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l6can21" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l6can17" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l6can16" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l6can8" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l6wall22" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l6wall3" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree6" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l6canB1" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l6canB2" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l6canB3" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l6canB3" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l6canB3" in Frame 44
onClipEvent (load) {
!!!ERROR
Instance of Symbol 374 MovieClip "ggmenu6" in Frame 44
onClipEvent (load) {
!!!ERROR
Frame 50
function gg(ss) {
if (_root.glevel == 9) {
_root.finalstagesound.stop();
} else {
_root.levelsound.stop();
_root.awardsound.start(0, 99);
}
_root["ggmenu" + glevel]._visible = true;
_root["ggmenu" + glevel].mgg(ss);
}
function slice(arrayname, index) {
i = 0;
while (i <= _root[arrayname].length) {
if (_root[arrayname][i] == index) {
_root[arrayname].splice(i, 1);
}
i++;
}
}
function swapz(obj, type) {
_root[obj].swapDepths(_root[type]);
_root[type]++;
}
function getdmg(int) {
_root.tank.hp = _root.tank.hp - int;
}
function t_countshot() {
t_readyshot = true;
t_z1 = true;
}
function path(px, py, pr, ps) {
duplicateMovieClip ("path", "path_" + _root.pathdp, pathdp);
_root["path_" + _root.pathdp]._x = px;
_root["path_" + _root.pathdp]._y = py;
_root["path_" + _root.pathdp]._width = ps;
_root["path_" + _root.pathdp]._rotation = pr;
_root.pathdp++;
}
function boom(bx, by, bs) {
boom_ns.start();
boomdp++;
duplicateMovieClip ("boom", "boom_" + _root.boomdp, boomdp);
_root["boom_" + _root.boomdp]._x = bx;
_root["boom_" + _root.boomdp]._y = by;
_root["boom_" + _root.boomdp]._height = bs;
_root["boom_" + _root.boomdp]._width = bs;
}
function booms(bx, by, bs) {
boomsdp++;
duplicateMovieClip ("booms", "booms_" + _root.boomsdp, boomsdp);
_root["booms_" + _root.boomsdp]._x = bx;
_root["booms_" + _root.boomsdp]._y = by;
_root["booms_" + _root.boomsdp]._height = bs;
_root["booms_" + _root.boomsdp]._width = bs;
}
function re() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
_root.coversound.stop();
gotoAndStop ("re");
}
function rem() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
gotoAndStop ("Menu");
}
function swapn(nm) {
_root[nm]._name = nm + namedp;
_root.namedp = _root.namedp + 1;
}
function htTest(trg) {
cx1 = tank._x;
cy1 = tank._y;
cx2 = tank._x + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy2 = tank._y - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx3 = tank._x - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy3 = tank._y + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx4 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy4 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx5 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy5 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx6 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy6 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx6 = cx6 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy6 = cy6 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx7 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy7 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx7 = cx7 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy7 = cy7 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx8 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy8 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx8 = cx8 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy8 = cy8 + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx9 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy9 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx9 = cx9 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy9 = cy9 + (20 * Math.cos(tank.body._rotation * 0.01745329));
if ((((((((_root[trg].hitTest(cx1, cy1, false) || (_root[trg].hitTest(cx2, cy2, false))) || (_root[trg].hitTest(cx3, cy3, false))) || (_root[trg].hitTest(cx4, cy4, false))) || (_root[trg].hitTest(cx5, cy5, false))) || (_root[trg].hitTest(cx6, cy6, false))) || (_root[trg].hitTest(cx7, cy7, false))) || (_root[trg].hitTest(cx8, cy8, false))) || (_root[trg].hitTest(cx9, cy9, false))) {
return(true);
}
return(false);
}
tank.hp = 1000;
namedp = 1;
boomsdp = 300;
obj0dp = 400;
pathdp = 500;
objdp = 1100;
shotdp = 2010;
boomdp = 2101;
obj2dp = 2201;
menudp = 3001;
var keyListener = new Object();
var pauseListener = new Object();
var gameoversound = new Sound();
gameoversound.attachSound("negativefinish");
var finalstagesound = new Sound();
finalstagesound.attachSound("finalstagesound");
var awardsound = new Sound();
awardsound.attachSound("awarding");
var endsound = new Sound();
endsound.attachSound("endsound");
var levelsound = new Sound();
levelsound.attachSound("levelsound");
var boom_ns = new Sound();
boom_ns.attachSound("boom_s");
var cg_ns = new Sound();
cg_ns.attachSound("cg_s");
var rl_ns = new Sound();
rl_ns.attachSound("rl_s");
var ss_ns = new Sound();
ss_ns.attachSound("ss_s");
var back_ns = new Sound();
back_ns.attachSound("back_s");
objmaxsize = 90;
enemyKilled = 0;
enemySurvived = 0;
totalShots = 0;
hitShots = 0;
terArray = new Array();
lose = false;
ggame = false;
aa = _root._url;
isDown = false;
isToggle = true;
t_readyshot = false;
t_z1 = true;
speed = 0;
i = 0;
ilk = 0;
time = 0;
duplicateMovieClip ("t_shot", "t_shot_1", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_2", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_3", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_4", _root.shotdp);
_root.shotdp++;
_root.t_shot_1._x = 200000 /* 0x030D40 */;
_root.t_shot_1._y = 200000 /* 0x030D40 */;
_root.t_shot_2._x = 200000 /* 0x030D40 */;
_root.t_shot_2._y = 200000 /* 0x030D40 */;
_root.t_shot_3._x = 200000 /* 0x030D40 */;
_root.t_shot_3._y = 200000 /* 0x030D40 */;
_root.t_shot_4._x = 200000 /* 0x030D40 */;
_root.t_shot_4._y = 200000 /* 0x030D40 */;
boss.swapDepths(2003);
tank.swapDepths(2002);
_root.terArray.push("tank");
onEnterFrame = function () {
if (!_root.ppause) {
if (_root.tank.hp > 0) {
time++;
}
if (((time >= leveltime) && (terArray.length <= 1)) && (lose == false)) {
ggame = true;
setTimeout(gg, 100, 1);
lose = true;
}
if ((_root.tank.hp <= 0) && (lose == false)) {
boom(tank._x, tank._y, 100);
boom(tank._x - 5, tank._y + 4, 150);
booms(tank._x, tank._y, 100);
_root["stats" + glevel].m_hp.gotoAndStop(11);
_root.lives = _root.lives - 1;
_root.tank.hp = 0;
if (_root.lives <= 0) {
setTimeout(gg, 2000, 3);
} else {
setTimeout(gg, 2000, 2);
}
lose = true;
tank.removeMovieClip();
}
if (_root.tank.hp > 0) {
_root["stats" + glevel].m_hp.gotoAndStop(11 - Math.ceil(_root.tank.hp / 100));
}
_root["stats" + glevel].m_lv.gotoAndStop(6 - _root.lives);
if (boomsdp >= 399) {
boomsdp = 300;
}
if (pathdp >= 1000) {
pathdp = 500;
}
if (terArray.length >= 7) {
if (boomdp >= 2115) {
boomdp = 2101;
}
} else if (boomdp >= 2200) {
boomdp = 2101;
}
if (shotdp >= 2100) {
shotdp = 2011;
}
if (objdp >= 2000) {
objdp = 1100;
}
if (obj0dp >= 499) {
obj0dp = 400;
}
if (obj2dp >= 3000) {
shotdp = 2200;
}
if ((speed >= -0.2) && (speed <= 0.2)) {
speed = 0;
} else if (Key.isDown(39) || (Key.isDown(37))) {
path(tank._x, tank._y, tank.body._rotation);
}
if ((speed - 0.2) >= 0) {
speed = speed - 0.2;
}
if ((speed + 0.2) <= 0) {
speed = speed + 0.2;
}
tank._x = tank._x + (speed * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (speed * Math.cos(tank.body._rotation * 0.01745329));
if (tilemap._y >= (-((tilemap._height / 2) - 500))) {
tilemap._y = (-tilemap._height) + 500;
}
if (!ggame) {
tilemap._y = tilemap._y + 1;
}
if (tank._y > 401) {
tank._y = 401;
path(tank._x, tank._y, 0);
}
if (tank._y < 20) {
tank._y = 20;
}
if (tank._x < 20) {
tank._x = 20;
}
if (tank._x > 530) {
tank._x = 530;
}
if (!ggame) {
tank._y = tank._y + 1;
}
if (lose == false) {
if (Key.isDown(68)) {
tank.body._rotation = tank.body._rotation + 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation + 3;
}
if (((!Key.isDown(83)) && (!Key.isDown(87))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(65)) {
tank.body._rotation = tank.body._rotation - 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation - 3;
}
if (((!Key.isDown(87)) && (!Key.isDown(83))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(87)) {
if ((speed + 0.5) <= 4) {
speed = speed + 0.5;
}
}
if (Key.isDown(83)) {
if ((speed - 0.5) >= -3) {
speed = speed - 0.5;
}
}
if (t_readyshot == false) {
if (t_z1 == true) {
t_z1 = false;
intervalId = setTimeout(t_countshot, 500);
}
}
}
}
if (Key.isDown(32)) {
if (!_root.ppause) {
_root.ppause = true;
_root.pmenu._visible = true;
} else {
_root.ppause = false;
_root.pmenu._visible = false;
}
}
};
onMouseDown = function () {
isDown = true;
};
onMouseUp = function () {
isDown = false;
};
tank.onEnterFrame = function () {
if (!_root.ppause) {
if (lose == false) {
delta_x = this._x - _xmouse;
delta_y = this._y - _ymouse;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (isDown) {
tilemap.collapse();
if (t_readyshot) {
ilk++;
if (ilk > 4) {
ilk = 1;
}
t_readyshot = false;
this.gun.gotoAndPlay(2);
totalShots++;
duplicateMovieClip ("t_shot", "t_shot_" + ilk, 2005 + ilk);
_root["t_shot_" + ilk]._rotation = this.gun._rotation;
_root["t_shot_" + ilk]._x = (this._x + this.dulo._x) + (_root.speed * Math.sin(_root.tank.body._rotation * 0.01745329));
_root["t_shot_" + ilk]._y = (this._y + this.dulo._y) - (_root.speed * Math.cos(_root.tank.body._rotation * 0.01745329));
}
}
}
}
};
Key.addListener(keyListener);
leveltime = 2500;
ppause = false;
levelsound.start(0, 999);
Instance of Symbol 255 MovieClip "stats7" in Frame 50
onClipEvent (load) {
_root.swapz(this._name, "menudp");
}
Instance of Symbol 422 MovieClip in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 290 MovieClip "l7cacg25" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l7carl24" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 281 MovieClip "l7tower1" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l7tower3" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l7tower2" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l7tower4" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 413 MovieClip "l7hamb5" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation + 0.2);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 413 MovieClip "l7hamb6" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_rotation = (_rotation + 0.3);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 418 MovieClip "l7wall8" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l7wall7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 390 MovieClip "l7lacs9" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l7lacs10" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l7lacs13" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l7lacs12" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 433 MovieClip "l7hasz14" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l7tower11" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 418 MovieClip "l7wall17" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l7wall16" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l7wall18" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l7wall19" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 304 MovieClip "l7lacg15" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 304 MovieClip "l7lacg116" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 433 MovieClip "l7hasz21" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 433 MovieClip "l7hasz20" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 290 MovieClip "l7cacg22" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l7cacg26" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l7carl27" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 406 MovieClip "l7tower36" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 290 MovieClip "l7cacg29" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 433 MovieClip "l7hasz30" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 433 MovieClip "l7hasz32" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 295 MovieClip "l7carl33" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l7cacg45" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 307 MovieClip "l7can37" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can43" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can38" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can46" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can53" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can52" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can45" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can57" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can39" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can56" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can63" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can60" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can62" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can65" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 390 MovieClip "l7lacs40" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 402 MovieClip "l7lane55" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 402 MovieClip "l7lane51" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l7larl49" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l7larl58" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 304 MovieClip "l7lacg61" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 304 MovieClip "l7lacg48" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 304 MovieClip "l7lacg42" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 402 MovieClip "l7lane64" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 418 MovieClip "l7wall71" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l7wall69" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l7wall73" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l7wall72" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 281 MovieClip "l7tower67" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l7tower68" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 433 MovieClip "l7hasz80" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 433 MovieClip "l7hasz79" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 413 MovieClip "l7hamb76" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 290 MovieClip "l7cacg77" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l7cacg75" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 406 MovieClip "l7tower78" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l7tower74" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l7can82" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can87" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can89" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l6canB92" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 433 MovieClip "l7hasz98" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 413 MovieClip "l7hamb86" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 433 MovieClip "l7hasz91" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 413 MovieClip "l7hamb94" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 433 MovieClip "l7hasz83" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 413 MovieClip "l7hamb97" in Frame 50
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 307 MovieClip "l7can90" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can95" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can81" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can84" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can88" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can96" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can101" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can102" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can103" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can99" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 395 MovieClip "l7larl93" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l7larl100" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l7larl105" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 307 MovieClip "l7can104" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 395 MovieClip "l7larl85" in Frame 50
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 258 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree7" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l6canB112" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l6canB111" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can114" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can113" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can115" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can110" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l7can119" in Frame 50
onClipEvent (load) {
!!!ERROR
Instance of Symbol 374 MovieClip "ggmenu7" in Frame 50
onClipEvent (load) {
!!!ERROR
Frame 56
function gg(ss) {
if (_root.glevel == 9) {
_root.finalstagesound.stop();
} else {
_root.levelsound.stop();
_root.awardsound.start(0, 99);
}
_root["ggmenu" + glevel]._visible = true;
_root["ggmenu" + glevel].mgg(ss);
}
function slice(arrayname, index) {
i = 0;
while (i <= _root[arrayname].length) {
if (_root[arrayname][i] == index) {
_root[arrayname].splice(i, 1);
}
i++;
}
}
function swapz(obj, type) {
_root[obj].swapDepths(_root[type]);
_root[type]++;
}
function getdmg(int) {
_root.tank.hp = _root.tank.hp - int;
}
function t_countshot() {
t_readyshot = true;
t_z1 = true;
}
function path(px, py, pr, ps) {
duplicateMovieClip ("path", "path_" + _root.pathdp, pathdp);
_root["path_" + _root.pathdp]._x = px;
_root["path_" + _root.pathdp]._y = py;
_root["path_" + _root.pathdp]._width = ps;
_root["path_" + _root.pathdp]._rotation = pr;
_root.pathdp++;
}
function boom(bx, by, bs) {
boom_ns.start();
boomdp++;
duplicateMovieClip ("boom", "boom_" + _root.boomdp, boomdp);
_root["boom_" + _root.boomdp]._x = bx;
_root["boom_" + _root.boomdp]._y = by;
_root["boom_" + _root.boomdp]._height = bs;
_root["boom_" + _root.boomdp]._width = bs;
}
function booms(bx, by, bs) {
boomsdp++;
duplicateMovieClip ("booms", "booms_" + _root.boomsdp, boomsdp);
_root["booms_" + _root.boomsdp]._x = bx;
_root["booms_" + _root.boomsdp]._y = by;
_root["booms_" + _root.boomsdp]._height = bs;
_root["booms_" + _root.boomsdp]._width = bs;
}
function re() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
_root.coversound.stop();
gotoAndStop ("re");
}
function rem() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
gotoAndStop ("Menu");
}
function swapn(nm) {
_root[nm]._name = nm + namedp;
_root.namedp = _root.namedp + 1;
}
function htTest(trg) {
cx1 = tank._x;
cy1 = tank._y;
cx2 = tank._x + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy2 = tank._y - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx3 = tank._x - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy3 = tank._y + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx4 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy4 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx5 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy5 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx6 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy6 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx6 = cx6 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy6 = cy6 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx7 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy7 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx7 = cx7 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy7 = cy7 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx8 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy8 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx8 = cx8 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy8 = cy8 + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx9 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy9 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx9 = cx9 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy9 = cy9 + (20 * Math.cos(tank.body._rotation * 0.01745329));
if ((((((((_root[trg].hitTest(cx1, cy1, false) || (_root[trg].hitTest(cx2, cy2, false))) || (_root[trg].hitTest(cx3, cy3, false))) || (_root[trg].hitTest(cx4, cy4, false))) || (_root[trg].hitTest(cx5, cy5, false))) || (_root[trg].hitTest(cx6, cy6, false))) || (_root[trg].hitTest(cx7, cy7, false))) || (_root[trg].hitTest(cx8, cy8, false))) || (_root[trg].hitTest(cx9, cy9, false))) {
return(true);
}
return(false);
}
tank.hp = 1000;
namedp = 1;
boomsdp = 300;
obj0dp = 400;
pathdp = 500;
objdp = 1100;
shotdp = 2010;
boomdp = 2101;
obj2dp = 2201;
menudp = 3001;
var keyListener = new Object();
var pauseListener = new Object();
var gameoversound = new Sound();
gameoversound.attachSound("negativefinish");
var finalstagesound = new Sound();
finalstagesound.attachSound("finalstagesound");
var awardsound = new Sound();
awardsound.attachSound("awarding");
var endsound = new Sound();
endsound.attachSound("endsound");
var levelsound = new Sound();
levelsound.attachSound("levelsound");
var boom_ns = new Sound();
boom_ns.attachSound("boom_s");
var cg_ns = new Sound();
cg_ns.attachSound("cg_s");
var rl_ns = new Sound();
rl_ns.attachSound("rl_s");
var ss_ns = new Sound();
ss_ns.attachSound("ss_s");
var back_ns = new Sound();
back_ns.attachSound("back_s");
objmaxsize = 90;
enemyKilled = 0;
enemySurvived = 0;
totalShots = 0;
hitShots = 0;
terArray = new Array();
lose = false;
ggame = false;
aa = _root._url;
isDown = false;
isToggle = true;
t_readyshot = false;
t_z1 = true;
speed = 0;
i = 0;
ilk = 0;
time = 0;
duplicateMovieClip ("t_shot", "t_shot_1", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_2", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_3", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_4", _root.shotdp);
_root.shotdp++;
_root.t_shot_1._x = 200000 /* 0x030D40 */;
_root.t_shot_1._y = 200000 /* 0x030D40 */;
_root.t_shot_2._x = 200000 /* 0x030D40 */;
_root.t_shot_2._y = 200000 /* 0x030D40 */;
_root.t_shot_3._x = 200000 /* 0x030D40 */;
_root.t_shot_3._y = 200000 /* 0x030D40 */;
_root.t_shot_4._x = 200000 /* 0x030D40 */;
_root.t_shot_4._y = 200000 /* 0x030D40 */;
boss.swapDepths(2003);
tank.swapDepths(2002);
_root.terArray.push("tank");
onEnterFrame = function () {
if (!_root.ppause) {
if (_root.tank.hp > 0) {
time++;
}
if (((time >= leveltime) && (terArray.length <= 1)) && (lose == false)) {
ggame = true;
setTimeout(gg, 100, 1);
lose = true;
}
if ((_root.tank.hp <= 0) && (lose == false)) {
boom(tank._x, tank._y, 100);
boom(tank._x - 5, tank._y + 4, 150);
booms(tank._x, tank._y, 100);
_root["stats" + glevel].m_hp.gotoAndStop(11);
_root.lives = _root.lives - 1;
_root.tank.hp = 0;
if (_root.lives <= 0) {
setTimeout(gg, 2000, 3);
} else {
setTimeout(gg, 2000, 2);
}
lose = true;
tank.removeMovieClip();
}
if (_root.tank.hp > 0) {
_root["stats" + glevel].m_hp.gotoAndStop(11 - Math.ceil(_root.tank.hp / 100));
}
_root["stats" + glevel].m_lv.gotoAndStop(6 - _root.lives);
if (boomsdp >= 399) {
boomsdp = 300;
}
if (pathdp >= 1000) {
pathdp = 500;
}
if (terArray.length >= 7) {
if (boomdp >= 2115) {
boomdp = 2101;
}
} else if (boomdp >= 2200) {
boomdp = 2101;
}
if (shotdp >= 2100) {
shotdp = 2011;
}
if (objdp >= 2000) {
objdp = 1100;
}
if (obj0dp >= 499) {
obj0dp = 400;
}
if (obj2dp >= 3000) {
shotdp = 2200;
}
if ((speed >= -0.2) && (speed <= 0.2)) {
speed = 0;
} else if (Key.isDown(39) || (Key.isDown(37))) {
path(tank._x, tank._y, tank.body._rotation);
}
if ((speed - 0.2) >= 0) {
speed = speed - 0.2;
}
if ((speed + 0.2) <= 0) {
speed = speed + 0.2;
}
tank._x = tank._x + (speed * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (speed * Math.cos(tank.body._rotation * 0.01745329));
if (tilemap._y >= (-((tilemap._height / 2) - 500))) {
tilemap._y = (-tilemap._height) + 500;
}
if (!ggame) {
tilemap._y = tilemap._y + 1;
}
if (tank._y > 401) {
tank._y = 401;
path(tank._x, tank._y, 0);
}
if (tank._y < 20) {
tank._y = 20;
}
if (tank._x < 20) {
tank._x = 20;
}
if (tank._x > 530) {
tank._x = 530;
}
if (!ggame) {
tank._y = tank._y + 1;
}
if (lose == false) {
if (Key.isDown(68)) {
tank.body._rotation = tank.body._rotation + 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation + 3;
}
if (((!Key.isDown(83)) && (!Key.isDown(87))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(65)) {
tank.body._rotation = tank.body._rotation - 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation - 3;
}
if (((!Key.isDown(87)) && (!Key.isDown(83))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(87)) {
if ((speed + 0.5) <= 4) {
speed = speed + 0.5;
}
}
if (Key.isDown(83)) {
if ((speed - 0.5) >= -3) {
speed = speed - 0.5;
}
}
if (t_readyshot == false) {
if (t_z1 == true) {
t_z1 = false;
intervalId = setTimeout(t_countshot, 500);
}
}
}
}
if (Key.isDown(32)) {
if (!_root.ppause) {
_root.ppause = true;
_root.pmenu._visible = true;
} else {
_root.ppause = false;
_root.pmenu._visible = false;
}
}
};
onMouseDown = function () {
isDown = true;
};
onMouseUp = function () {
isDown = false;
};
tank.onEnterFrame = function () {
if (!_root.ppause) {
if (lose == false) {
delta_x = this._x - _xmouse;
delta_y = this._y - _ymouse;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (isDown) {
tilemap.collapse();
if (t_readyshot) {
ilk++;
if (ilk > 4) {
ilk = 1;
}
t_readyshot = false;
this.gun.gotoAndPlay(2);
totalShots++;
duplicateMovieClip ("t_shot", "t_shot_" + ilk, 2005 + ilk);
_root["t_shot_" + ilk]._rotation = this.gun._rotation;
_root["t_shot_" + ilk]._x = (this._x + this.dulo._x) + (_root.speed * Math.sin(_root.tank.body._rotation * 0.01745329));
_root["t_shot_" + ilk]._y = (this._y + this.dulo._y) - (_root.speed * Math.cos(_root.tank.body._rotation * 0.01745329));
}
}
}
}
};
Key.addListener(keyListener);
leveltime = 2500;
ppause = false;
levelsound.start(0, 999);
Instance of Symbol 255 MovieClip "stats8" in Frame 56
onClipEvent (load) {
_root.swapz(this._name, "menudp");
}
Instance of Symbol 434 MovieClip in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree7" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree7" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 440 MovieClip "srocket" in Frame 56
onClipEvent (load) {
function newrr() {
newr = 1;
}
this.i = 4;
newr = 2;
setTimeout(this.newrr, 600);
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (this._name != "srocket") {
this._y = this._y + 1;
if (newr == 2) {
delta_x = _x - _root.tank._x;
delta_y = _y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
_rotation = a;
}
if (_root.tank.hitTest(this._x, this._y, true)) {
_root.boom(this._x, this._y, 75);
_root.getdmg(100);
this.removeMovieClip();
}
this.i = this.i + 0.1;
this._x = this._x + (i * Math.sin(this._rotation * 0.01745329));
if ((((this._x >= 600) || (this._x <= -50)) || (this._y >= 475)) || (this._y <= -50)) {
this.removeMovieClip();
}
this._y = this._y - (i * Math.cos(this._rotation * 0.01745329));
}
}
}
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 290 MovieClip "l8cacg" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 281 MovieClip "l8tower" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 295 MovieClip "l8carl" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 304 MovieClip "l8lacg" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 390 MovieClip "l8lacs" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (300 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 418 MovieClip "l8wall60" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 402 MovieClip "l8lane" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 406 MovieClip "l8tower" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 413 MovieClip "l8hamb" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 433 MovieClip "l8hasz" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can1" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l8canB100" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can2" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can5" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can9" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can10" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can11" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l8canB" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can21" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can27" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l8canB13" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l8canB32" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 281 MovieClip "l8tower6" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l8tower4" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l8tower7" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l8tower14" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l8tower12" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l8tower15" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 307 MovieClip "l8can100" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l8canB3" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can22" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 390 MovieClip "l8lacs25" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l8lacs24" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l8lacs33" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l8lacs29" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l8lacs30" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 390 MovieClip "l8lacs31" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l8tower28" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l8tower23" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 444 MovieClip "l8haro34" in Frame 56
onClipEvent (load) {
function cgshot(nm, ztp) {
_root.rl_ns.start();
if (ztp == 1) {
_root[nm].gun.gotoAndPlay("z1");
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root.shotdp++;
}
if (ztp == 2) {
_root[nm].gun.gotoAndPlay("z2");
_root.shotdp++;
duplicateMovieClip (_root.srocket, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 500;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 500;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (400 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 290 MovieClip "l8cacg36" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l8cacg37" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 406 MovieClip "l8tower38" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 413 MovieClip "l8hamb40" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 413 MovieClip "l8hamb39" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l8larl44" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l8larl43" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l8tower41" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 433 MovieClip "l8hasz50" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 433 MovieClip "l8hasz49" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 444 MovieClip "l8haro45" in Frame 56
onClipEvent (load) {
function cgshot(nm, ztp) {
_root.rl_ns.start();
if (ztp == 1) {
_root[nm].gun.gotoAndPlay("z1");
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root.shotdp++;
}
if (ztp == 2) {
_root[nm].gun.gotoAndPlay("z2");
_root.shotdp++;
duplicateMovieClip (_root.srocket, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 500;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 500;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 444 MovieClip "l8haro48" in Frame 56
onClipEvent (load) {
function cgshot(nm, ztp) {
_root.rl_ns.start();
if (ztp == 1) {
_root[nm].gun.gotoAndPlay("z1");
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root.shotdp++;
}
if (ztp == 2) {
_root[nm].gun.gotoAndPlay("z2");
_root.shotdp++;
duplicateMovieClip (_root.srocket, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 500;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 500;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l8tower51" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 413 MovieClip "l8hamb52" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.mshot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 750;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 750;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (100 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 444 MovieClip "l8haro153" in Frame 56
onClipEvent (load) {
function cgshot(nm, ztp) {
_root.rl_ns.start();
if (ztp == 1) {
_root[nm].gun.gotoAndPlay("z1");
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root.shotdp++;
}
if (ztp == 2) {
_root[nm].gun.gotoAndPlay("z2");
_root.shotdp++;
duplicateMovieClip (_root.srocket, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 500;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 500;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 295 MovieClip "l8carl55" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 295 MovieClip "l8carl54" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.rl_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 99;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 402 MovieClip "l8lane56" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = ((_root[nm]._rotation + _root[nm].gun._rotation) + random(20)) - 10;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (35 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (35 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 75, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 250, this._name);
setTimeout(cgshot, 325, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 350;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 418 MovieClip "l8wall61" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l8wall62" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l8wall63" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l8wall" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l8wall64" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 406 MovieClip "l8tower58" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l8tower59" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 433 MovieClip "l8hasz67" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 433 MovieClip "l8hasz65" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = (_root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (6 * Math.sin((_root[nm].gun._rotation + 90) * 0.01745329));
_root["ss_" + _root.shotdp]._y = (_root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (6 * Math.cos((_root[nm].gun._rotation + 90) * 0.01745329));
_root.shotdp++;
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 1000;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 1000;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 444 MovieClip "l8haro66" in Frame 56
onClipEvent (load) {
function cgshot(nm, ztp) {
_root.rl_ns.start();
if (ztp == 1) {
_root[nm].gun.gotoAndPlay("z1");
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root.shotdp++;
}
if (ztp == 2) {
_root[nm].gun.gotoAndPlay("z2");
_root.shotdp++;
duplicateMovieClip (_root.srocket, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 500;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 500;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (0 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 290 MovieClip "l8cacg70" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 290 MovieClip "l8cacg69" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.cg_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = _root[nm]._x + (20 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["chain_" + _root.shotdp]._y = _root[nm]._y - (20 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
speed = 1;
movem = 0;
z1 = true;
readyshot = false;
i = 1;
hp = 100;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
setTimeout(cgshot, 400, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 20, this._x, this._y, 55);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
_root.boom(this._x, this._y, 100);
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (1000 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 444 MovieClip "l8haro89" in Frame 56
onClipEvent (load) {
function cgshot(nm, ztp) {
_root.rl_ns.start();
if (ztp == 1) {
_root[nm].gun.gotoAndPlay("z1");
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root.shotdp++;
}
if (ztp == 2) {
_root[nm].gun.gotoAndPlay("z2");
_root.shotdp++;
duplicateMovieClip (_root.srocket, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 500;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 500;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l8tower72" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l8tower73" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 444 MovieClip "l8haro76" in Frame 56
onClipEvent (load) {
function cgshot(nm, ztp) {
_root.rl_ns.start();
if (ztp == 1) {
_root[nm].gun.gotoAndPlay("z1");
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root.shotdp++;
}
if (ztp == 2) {
_root[nm].gun.gotoAndPlay("z2");
_root.shotdp++;
duplicateMovieClip (_root.srocket, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 500;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 500;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 304 MovieClip "l8lacg71" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cg, "chain_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chain_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chain_" + _root.shotdp]._x = (_root[nm]._x + (25 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chain_" + _root.shotdp]._y = (_root[nm]._y - (25 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
speed = 1;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 300, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
setTimeout(cgshot, 900, this._name, 2);
setTimeout(cgshot, 1200, this._name, 1);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 250;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
Instance of Symbol 390 MovieClip "l8lacs74" in Frame 56
onClipEvent (load) {
function cgshot(nm) {
_root.shotdp++;
_root.ss_ns.start();
_root[nm].gun.gotoAndPlay(3);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 300;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (150 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 395 MovieClip "l8larl78" in Frame 56
onClipEvent (load) {
function cgshot(nm, pos) {
_root.rl_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(3);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
if (_root.fpp >= 24) {
_root[nm].gun.gotoAndPlay(20);
}
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (4 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (4 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
movem = 0;
i = 1;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 600, this._name, 2);
readyshot = false;
}
if ((_root.htTest(this._name) && (this._x > 0)) && (this._x < 550)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if ((this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if ((this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (this._x > 0)) && (this._x < 550)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 75);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 120);
_root.enemyKilled++;
_global.myscore = _global.myscore + 400;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 261 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can26" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l8canB42" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can36" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can35" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can46" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can47" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l8canB68" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can57" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can75" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l8canB77" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l8canB20" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 258 MovieClip "tree8" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l8canB4110" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l8can474" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l8canB4110" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 374 MovieClip "ggmenu8" in Frame 56
onClipEvent (load) {
!!!ERROR
Frame 62
function gg(ss) {
_root["ggmenu" + glevel]._visible = true;
_root["ggmenu" + glevel].mgg(ss);
}
function slice(arrayname, index) {
i = 0;
while (i <= _root[arrayname].length) {
if (_root[arrayname][i] == index) {
_root[arrayname].splice(i, 1);
}
i++;
}
}
function swapz(obj, type) {
_root[obj].swapDepths(_root[type]);
_root[type]++;
}
function getdmg(int) {
_root.tank.hp = _root.tank.hp - int;
}
function t_countshot() {
t_readyshot = true;
t_z1 = true;
}
function path(px, py, pr, ps) {
duplicateMovieClip ("path", "path_" + _root.pathdp, pathdp);
_root["path_" + _root.pathdp]._x = px;
_root["path_" + _root.pathdp]._y = py;
_root["path_" + _root.pathdp]._width = ps;
_root["path_" + _root.pathdp]._rotation = pr;
_root.pathdp++;
}
function boom(bx, by, bs) {
boom_ns.start();
boomdp++;
duplicateMovieClip ("boom", "boom_" + _root.boomdp, boomdp);
_root["boom_" + _root.boomdp]._x = bx;
_root["boom_" + _root.boomdp]._y = by;
_root["boom_" + _root.boomdp]._height = bs;
_root["boom_" + _root.boomdp]._width = bs;
}
function booms(bx, by, bs) {
boomsdp++;
duplicateMovieClip ("booms", "booms_" + _root.boomsdp, boomsdp);
_root["booms_" + _root.boomsdp]._x = bx;
_root["booms_" + _root.boomsdp]._y = by;
_root["booms_" + _root.boomsdp]._height = bs;
_root["booms_" + _root.boomsdp]._width = bs;
}
function re() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
gotoAndStop ("re");
}
function rem() {
do {
removeMovieClip(getInstanceAtDepth(getNextHighestDepth() - 1));
} while ((getNextHighestDepth() - 1) > 0);
gotoAndStop ("Menu");
}
function swapn(nm) {
_root[nm]._name = nm + namedp;
_root.namedp = _root.namedp + 1;
}
function htTest(trg) {
cx1 = tank._x;
cy1 = tank._y;
cx2 = tank._x + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy2 = tank._y - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx3 = tank._x - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy3 = tank._y + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx4 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy4 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx5 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy5 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx6 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy6 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx6 = cx6 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy6 = cy6 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx7 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy7 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx7 = cx7 + (20 * Math.sin(tank.body._rotation * 0.01745329));
cy7 = cy7 - (20 * Math.cos(tank.body._rotation * 0.01745329));
cx8 = tank._x + (15 * Math.sin((tank.body._rotation - 90) * 0.01745329));
cy8 = tank._y - (15 * Math.cos((tank.body._rotation - 90) * 0.01745329));
cx8 = cx8 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy8 = cy8 + (20 * Math.cos(tank.body._rotation * 0.01745329));
cx9 = tank._x + (15 * Math.sin((tank.body._rotation + 90) * 0.01745329));
cy9 = tank._y - (15 * Math.cos((tank.body._rotation + 90) * 0.01745329));
cx9 = cx9 - (20 * Math.sin(tank.body._rotation * 0.01745329));
cy9 = cy9 + (20 * Math.cos(tank.body._rotation * 0.01745329));
if ((((((((_root[trg].hitTest(cx1, cy1, false) || (_root[trg].hitTest(cx2, cy2, false))) || (_root[trg].hitTest(cx3, cy3, false))) || (_root[trg].hitTest(cx4, cy4, false))) || (_root[trg].hitTest(cx5, cy5, false))) || (_root[trg].hitTest(cx6, cy6, false))) || (_root[trg].hitTest(cx7, cy7, false))) || (_root[trg].hitTest(cx8, cy8, false))) || (_root[trg].hitTest(cx9, cy9, false))) {
return(true);
}
return(false);
}
tank.hp = 1000;
namedp = 1;
boomsdp = 300;
obj0dp = 400;
pathdp = 500;
objdp = 1100;
shotdp = 2010;
boomdp = 2101;
obj2dp = 2201;
menudp = 3001;
var keyListener = new Object();
var boom_ns = new Sound();
boom_ns.attachSound("boom_s");
var cg_ns = new Sound();
cg_ns.attachSound("cg_s");
var rl_ns = new Sound();
rl_ns.attachSound("rl_s");
var ss_ns = new Sound();
ss_ns.attachSound("ss_s");
var back_ns = new Sound();
back_ns.attachSound("back_s");
objmaxsize = 90;
enemyKilled = 0;
enemySurvived = 0;
totalShots = 0;
hitShots = 0;
terArray = new Array();
lose = false;
ggame = false;
aa = _root._url;
isDown = false;
isToggle = true;
t_readyshot = false;
t_z1 = true;
speed = 0;
i = 0;
ilk = 0;
time = 0;
duplicateMovieClip ("t_shot", "t_shot_1", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_2", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_3", _root.shotdp);
_root.shotdp++;
duplicateMovieClip ("t_shot", "t_shot_4", _root.shotdp);
_root.shotdp++;
_root.t_shot_1._x = 200000 /* 0x030D40 */;
_root.t_shot_1._y = 200000 /* 0x030D40 */;
_root.t_shot_2._x = 200000 /* 0x030D40 */;
_root.t_shot_2._y = 200000 /* 0x030D40 */;
_root.t_shot_3._x = 200000 /* 0x030D40 */;
_root.t_shot_3._y = 200000 /* 0x030D40 */;
_root.t_shot_4._x = 200000 /* 0x030D40 */;
_root.t_shot_4._y = 200000 /* 0x030D40 */;
boss.swapDepths(2003);
tank.swapDepths(2002);
_root.terArray.push("tank");
onEnterFrame = function () {
if (!_root.ppause) {
if ((_root.tank.hp > 0) && (!ggame)) {
time++;
}
if ((bhp <= 0) && (lose == false)) {
ggame = true;
setTimeout(gg, 100, 4);
lose = true;
}
if ((_root.tank.hp <= 0) && (lose == false)) {
boom(tank._x, tank._y, 100);
boom(tank._x - 5, tank._y + 4, 150);
booms(tank._x, tank._y, 100);
_root["stats" + glevel].m_hp.gotoAndStop(11);
_root.lives = _root.lives - 1;
_root.tank.hp = 0;
if (_root.lives <= 0) {
setTimeout(gg, 2000, 3);
} else {
setTimeout(gg, 2000, 2);
}
lose = true;
tank.removeMovieClip();
}
if (_root.tank.hp > 0) {
_root["stats" + glevel].m_hp.gotoAndStop(11 - Math.ceil(_root.tank.hp / 100));
}
_root["stats" + glevel].m_lv.gotoAndStop(6 - _root.lives);
if (boomsdp >= 399) {
boomsdp = 300;
}
if (pathdp >= 1000) {
pathdp = 500;
}
if (terArray.length >= 7) {
if (boomdp >= 2115) {
boomdp = 2101;
}
} else if (boomdp >= 2200) {
boomdp = 2101;
}
if (shotdp >= 2100) {
shotdp = 2011;
}
if (objdp >= 2000) {
objdp = 1100;
}
if (obj0dp >= 499) {
obj0dp = 400;
}
if (obj2dp >= 3000) {
shotdp = 2200;
}
if ((speed >= -0.2) && (speed <= 0.2)) {
speed = 0;
} else if (Key.isDown(39) || (Key.isDown(37))) {
path(tank._x, tank._y, tank.body._rotation);
}
if ((speed - 0.2) >= 0) {
speed = speed - 0.2;
}
if ((speed + 0.2) <= 0) {
speed = speed + 0.2;
}
tank._x = tank._x + (speed * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (speed * Math.cos(tank.body._rotation * 0.01745329));
if (tilemap._y >= (-((tilemap._height / 2) - 500))) {
tilemap._y = (-tilemap._height) + 500;
}
if (!ggame) {
tilemap._y = tilemap._y + 1;
}
if (tank._y > 401) {
tank._y = 401;
path(tank._x, tank._y, 0);
}
if (tank._y < 20) {
tank._y = 20;
}
if (tank._x < 20) {
tank._x = 20;
}
if (tank._x > 530) {
tank._x = 530;
}
tank._y = tank._y + 1;
if (lose == false) {
if (Key.isDown(68)) {
tank.body._rotation = tank.body._rotation + 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation + 3;
}
if (((!Key.isDown(83)) && (!Key.isDown(87))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(65)) {
tank.body._rotation = tank.body._rotation - 2;
if (speed >= 3) {
tank.body._rotation = tank.body._rotation - 3;
}
if (((!Key.isDown(87)) && (!Key.isDown(83))) && (speed == 0)) {
tank._x = tank._x + (0.5 * Math.sin(tank.body._rotation * 0.01745329));
tank._y = tank._y - (0.5 * Math.cos(tank.body._rotation * 0.01745329));
}
}
if (Key.isDown(87)) {
if ((speed + 0.5) <= 4) {
speed = speed + 0.5;
}
}
if (Key.isDown(83)) {
if ((speed - 0.5) >= -3) {
speed = speed - 0.5;
}
}
if (t_readyshot == false) {
if (t_z1 == true) {
t_z1 = false;
intervalId = setTimeout(t_countshot, 500);
}
}
}
}
};
onMouseDown = function () {
isDown = true;
};
onMouseUp = function () {
isDown = false;
};
tank.onEnterFrame = function () {
if (!_root.ppause) {
if (lose == false) {
delta_x = this._x - _xmouse;
delta_y = this._y - _ymouse;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (isDown) {
tilemap.collapse();
if (t_readyshot) {
ilk++;
if (ilk > 4) {
ilk = 1;
}
t_readyshot = false;
this.gun.gotoAndPlay(2);
totalShots++;
duplicateMovieClip ("t_shot", "t_shot_" + ilk, 2005 + ilk);
_root["t_shot_" + ilk]._rotation = this.gun._rotation;
_root["t_shot_" + ilk]._x = (this._x + this.dulo._x) + (_root.speed * Math.sin(_root.tank.body._rotation * 0.01745329));
_root["t_shot_" + ilk]._y = (this._y + this.dulo._y) - (_root.speed * Math.cos(_root.tank.body._rotation * 0.01745329));
}
}
}
}
};
Key.addListener(keyListener);
leveltime = 2500;
bhp = 1000;
ppause = false;
finalstagesound.start(0, 999);
Instance of Symbol 255 MovieClip "stats9" in Frame 62
onClipEvent (load) {
_root.swapz(this._name, "menudp");
}
Instance of Symbol 445 MovieClip in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 450 MovieClip "boss" in Frame 62
onClipEvent (load) {
hp = 10000;
_root.terArray.push("boss");
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this._rotation = a;
speed = 5;
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
_y = (_y + 1);
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
if ((((this._x >= 800) || (this._x <= -300)) || (this._y >= 750)) || (this._y <= -300)) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this._rotation = a;
}
i = 0;
while (i <= _root.terArray.length) {
if (this.hitTest(_root[_root.terArray[i]]._x, _root[_root.terArray[i]]._y, true) && (_root.terArray[i] != "boss")) {
_root[_root.terArray[i]].hp = _root[_root.terArray[i]].hp - 100000;
}
i++;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true) && (_root.t_shot_1._x > 0)) {
_root.hitShots++;
this.hp = this.hp - 150;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true) && (_root.t_shot_2._x > 0)) {
_root.hitShots++;
this.hp = this.hp - 150;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true) && (_root.t_shot_3._x > 0)) {
_root.hitShots++;
this.hp = this.hp - 150;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true) && (_root.t_shot_4._x > 0)) {
_root.hitShots++;
this.hp = this.hp - 150;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 300);
_root.boom(this._x - 5, this._y - 5, 70);
setTimeout(_root.boom, 50, this._x, this._y, 400);
setTimeout(_root.boom, 50, this._x + 100, this._y - 50, 250);
setTimeout(_root.boom, 250, this._x, this._y, 550);
_root.enemyKilled++;
_root.slice("terArray", this._name);
_root.bhp = 0;
this.removeMovieClip();
}
}
}
Instance of Symbol 281 MovieClip "l9tower2" in Frame 62
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 444 MovieClip "l9haro18" in Frame 62
onClipEvent (load) {
function cgshot(nm, ztp) {
_root.rl_ns.start();
if (ztp == 1) {
_root[nm].gun.gotoAndPlay("z1");
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root.shotdp++;
}
if (ztp == 2) {
_root[nm].gun.gotoAndPlay("z2");
_root.shotdp++;
duplicateMovieClip (_root.srocket, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 500;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 500;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l9tower1" in Frame 62
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l9tower9" in Frame 62
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l9tower6" in Frame 62
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 421 MovieClip "l9canB4" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l9canB7" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l9canB10" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l9canB14" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l9canB11" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l9canB15" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l9can" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l9can5" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l9can13" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l9can19" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l9canB22" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l9can20" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l9canB28" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l9canB30" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l9can23" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l9canB42" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 406 MovieClip "l9tower24" in Frame 62
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l9tower25" in Frame 62
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 444 MovieClip "l9haro129" in Frame 62
onClipEvent (load) {
function cgshot(nm, ztp) {
_root.rl_ns.start();
if (ztp == 1) {
_root[nm].gun.gotoAndPlay("z1");
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = (_root[nm]._x + (45 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (10 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (_root[nm]._y - (45 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (10 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root.shotdp++;
}
if (ztp == 2) {
_root[nm].gun.gotoAndPlay("z2");
_root.shotdp++;
duplicateMovieClip (_root.srocket, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["rocket_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root.shotdp++;
}
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
movem = 0;
readyshot = false;
i = 1;
hp = 350;
speed = 1;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
clearTimeout(intervalId);
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_root.enemySurvived++;
_global.myscore = _global.myscore - 500;
this.removeMovieClip();
}
if (st) {
_y = (_y + 1);
}
if ((((this._y >= (-_height)) && (this._y <= (425 + _height))) && (this._x >= ((-_width) / 2))) && (this._x <= (550 + (_width / 2)))) {
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
this.dulo._x = this.gun._x;
this.dulo._y = this.gun._y;
this.dulo._rotation = this.gun._rotation;
this.dulo._x = this.dulo._x + (20 * Math.sin(this.dulo._rotation * 0.01745329));
this.dulo._y = this.dulo._y - (20 * Math.cos(this.dulo._rotation * 0.01745329));
updateAfterEvent();
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 2000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 10, this._name, 2);
setTimeout(cgshot, 600, this._name, 1);
readyshot = false;
}
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - (this.hp * 2);
_root.boom(this._x + 2, this._y - 2, 75);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 75);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 75);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 75);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
_root.hitShots++;
this.hp = this.hp - 100;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 75);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 100);
_root.boom(this._x, this._y, 100);
_root.enemyKilled++;
_global.myscore = _global.myscore + 500;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((movem <= (200 / speed)) && (_y >= ((-this._height) / 2))) {
movem++;
_x = (_x + (speed * Math.sin(_rotation * 0.01745329)));
_y = (_y - (speed * Math.cos(_rotation * 0.01745329)));
}
}
onClipEvent (load) {
speed = 1;
}
Instance of Symbol 281 MovieClip "l9tower21" in Frame 62
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l9tower31" in Frame 62
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 281 MovieClip "l9tower38" in Frame 62
onClipEvent (load) {
function cgshot(nm, pos) {
_root.cg_ns.start();
_root.shotdp++;
duplicateMovieClip (_root.cgb, "chainb_" + _root.shotdp, _root.shotdp);
if (pos == 1) {
_root[nm].gun.gotoAndPlay(3);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (5 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (5 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) + 90) * 0.01745329));
}
if (pos == 2) {
_root[nm].gun.gotoAndPlay(20);
_root["chainb_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["chainb_" + _root.shotdp]._x = (_root[nm]._x + (55 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) + (3 * Math.sin(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
_root["chainb_" + _root.shotdp]._y = (_root[nm]._y - (55 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329))) - (3 * Math.cos(((_root[nm]._rotation + _root[nm].gun._rotation) - 90) * 0.01745329));
}
return("aa");
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 200;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.enemySurvived++;
_global.myscore = _global.myscore - 100;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
if (_y > 0) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name, 1);
setTimeout(cgshot, 200, this._name, 2);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, false)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y + 35, 125);
setTimeout(_root.boom, 100, this._x, this._y + 35, 150);
_root.slice("terArray", this._name);
_root.enemyKilled++;
_global.myscore = _global.myscore + 100;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 406 MovieClip "l9tower34" in Frame 62
onClipEvent (load) {
function cgshot(nm) {
_root.ss_ns.start();
_root.shotdp++;
_root[nm].gun.gotoAndPlay(2);
duplicateMovieClip (_root.shot, "ss_" + _root.shotdp, _root.shotdp);
_root["ss_" + _root.shotdp]._rotation = _root[nm]._rotation + _root[nm].gun._rotation;
_root["ss_" + _root.shotdp]._x = _root[nm]._x + (40 * Math.sin((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
_root["ss_" + _root.shotdp]._y = _root[nm]._y - (40 * Math.cos((_root[nm]._rotation + _root[nm].gun._rotation) * 0.01745329));
}
function countshot() {
readyshot = true;
z1 = true;
}
z1 = true;
readyshot = false;
hp = 300;
st = false;
_root.swapz(this._name, "objdp");
}
onClipEvent (enterFrame) {
if (!_root.ppause) {
if (((Math.abs(this._y) - _root.objmaxsize) <= _root.time) && (st == false)) {
_root.terArray.push(this._name);
_y = (-_root.objmaxsize);
st = true;
}
if (_y >= (425 + _root.objmaxsize)) {
_root.slice("terArray", this._name);
_global.myscore = _global.myscore - 150;
this.removeMovieClip();
}
if (_y > -100) {
if (readyshot == false) {
if (z1) {
intervalId = setTimeout(countshot, 1000);
z1 = false;
}
}
if (readyshot && (!_root.lose)) {
setTimeout(cgshot, 1, this._name);
setTimeout(cgshot, 150, this._name);
readyshot = false;
}
}
if (st) {
_y = (_y + 1);
delta_x = this._x - _root.tank._x;
delta_y = this._y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this.gun._rotation = a - this._rotation;
if (_root.htTest(this._name)) {
_root.tank.hp = _root.tank.hp - 200;
_root.boom(this._x, this._y, 100);
this.hp = this.hp - 1000000;
}
if (this.hitTest(_root.t_shot_1._x, _root.t_shot_1._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_1._x, _root.t_shot_1._y, 100);
_root.t_shot_1.removeMovieClip();
}
if (this.hitTest(_root.t_shot_2._x, _root.t_shot_2._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_2._x, _root.t_shot_2._y, 100);
_root.t_shot_2.removeMovieClip();
}
if (this.hitTest(_root.t_shot_3._x, _root.t_shot_3._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_3._x, _root.t_shot_3._y, 100);
_root.t_shot_3.removeMovieClip();
}
if (this.hitTest(_root.t_shot_4._x, _root.t_shot_4._y, true)) {
this.hp = this.hp - 100;
_root.hitShots++;
_root.boom(_root.t_shot_4._x, _root.t_shot_4._y, 100);
_root.t_shot_4.removeMovieClip();
}
if (this.hp <= 0) {
setTimeout(_root.booms, 110, this._x, this._y, 125);
setTimeout(_root.boom, 100, this._x - random(7), this._y - random(7), 150);
_root.boom(this._x, this._y, 120);
_global.myscore = _global.myscore + 150;
_root.slice("terArray", this._name);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 421 MovieClip "l9canB32" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l9can33" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l9canB39" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 307 MovieClip "l9can40" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l9canB41" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 421 MovieClip "l9canB3" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l9wall8" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l9wall12" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l9wall17" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l9wall16" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l9wall26" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l9wall27" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l9wall37" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l9wall" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l9wall36" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 418 MovieClip "l9wall35" in Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 374 MovieClip "ggmenu9" in Frame 62
onClipEvent (load) {
!!!ERROR
Frame 68
if (false) {
}
Frame 71
!!!ERROR
Frame 72
function updateScoreboard(sNum) {
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
_root["mcScoreboard" + sNum].mcLoading._visible = false;
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = _root["mcScoreboard" + sNum].sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.item = myPlayer.length;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.speedy = 0;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.desty = 0;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "up")) {
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) {
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
if (sNum == 1) {
updateScoreboard(2);
}
};
if (sNum == 1) {
xmlPlayer.load((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + _root.gameID) + "&rand=") + random(999999));
} else if (sNum == 2) {
xmlPlayer.load(((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + _root.gameID) + "&rand=") + random(999999)) + "&filt=1");
}
}
stop();
_root.coversound.stop();
mcScoreboard1.sboard.dir = "stop";
mcScoreboard2.sboard.dir = "stop";
mcScoreboard1.sboard.mcScoreHolder.mcScore._visible = false;
mcScoreboard2.sboard.mcScoreHolder.mcScore._visible = false;
updateScoreboard(1);
Symbol 41 MovieClip Frame 8
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
loadingBar._x = (((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) * 1.47) + -153.7;
if (_root.secureMovie.auth_ret) {
this._parent.gotoAndPlay("loadingOk");
} else {
stop();
loadingBar.onEnterFrame = function () {
trace(this._x);
if (_root.secureMovie.auth_ret) {
this._parent.gotoAndPlay("loadingOk");
this.onEnterFrame = null;
}
};
}
} else {
stop();
loadingBar.onEnterFrame = function () {
trace(this._x);
this._x = (((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) * 1.47) + -143.7;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
if (_root.secureMovie.auth_ret) {
this._parent.gotoAndPlay("loadingOk");
this.onEnterFrame = null;
} else {
loadingBar._x = (((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) * 1.47) + -153.7;
}
}
};
}
Symbol 41 MovieClip Frame 24
!!!ERROR
Symbol 43 MovieClip Frame 165
!!!ERROR
Symbol 43 MovieClip Frame 174
if (_root.secureMovie.auth_ret) {
_root.gotoAndPlay("menu");
stop();
} else {
this._parent.gotoAndStop(1);
}
Symbol 63 MovieClip Frame 55
!!!ERROR
Symbol 104 MovieClip Frame 1
!!!ERROR
Instance of Symbol 47 MovieClip "mcNotice" in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 104 MovieClip Frame 28
l++;
if (l < 3) {
gotoAndPlay ("loop");
} else if ((_url.indexOf("freeonlinegames.com") >= 0) && (_url.indexOf("file:") == -1)) {
_root.okToPlay = true;
_root.play();
stop();
} else if (_root.debug) {
_root.okToPlay = true;
_root.play();
stop();
} else {
mcNotice._visible = true;
l = 3;
gotoAndPlay ("loop");
}
Instance of Symbol 104 MovieClip "logo" in Symbol 105 MovieClip Frame 1
on (release) {
!!!ERROR
Symbol 112 Button
on (release) {
!!!ERROR
Instance of Symbol 127 MovieClip in Symbol 173 MovieClip [explode] Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Symbol 173 MovieClip [explode] Frame 24
!!!ERROR
Symbol 174 MovieClip Frame 45
!!!ERROR
Symbol 181 Button
on (release) {
!!!ERROR
Symbol 188 Button
on (release) {
!!!ERROR
Symbol 194 Button
on (release) {
!!!ERROR
Symbol 195 MovieClip Frame 30
!!!ERROR
Symbol 216 MovieClip Frame 10
!!!ERROR
Symbol 218 MovieClip Frame 1
!!!ERROR
Instance of Symbol 234 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_root.tank.body._rotation - 180);
}
Symbol 247 MovieClip Frame 1
!!!ERROR
Symbol 247 MovieClip Frame 2
!!!ERROR
Symbol 247 MovieClip Frame 3
!!!ERROR
Symbol 247 MovieClip Frame 4
!!!ERROR
Symbol 247 MovieClip Frame 5
!!!ERROR
Symbol 247 MovieClip Frame 6
!!!ERROR
Symbol 247 MovieClip Frame 7
!!!ERROR
Symbol 247 MovieClip Frame 8
!!!ERROR
Symbol 247 MovieClip Frame 9
!!!ERROR
Symbol 247 MovieClip Frame 10
!!!ERROR
Symbol 247 MovieClip Frame 11
!!!ERROR
Symbol 254 MovieClip Frame 1
!!!ERROR
Symbol 254 MovieClip Frame 2
!!!ERROR
Symbol 254 MovieClip Frame 3
!!!ERROR
Symbol 254 MovieClip Frame 4
!!!ERROR
Symbol 254 MovieClip Frame 5
!!!ERROR
Symbol 254 MovieClip Frame 6
!!!ERROR
Symbol 264 MovieClip Frame 100
!!!ERROR
Symbol 266 MovieClip Frame 545
!!!ERROR
Symbol 280 MovieClip Frame 1
!!!ERROR
Symbol 280 MovieClip Frame 10
!!!ERROR
Symbol 280 MovieClip Frame 28
!!!ERROR
Symbol 289 MovieClip Frame 1
!!!ERROR
Symbol 294 MovieClip Frame 1
!!!ERROR
Symbol 303 MovieClip Frame 1
!!!ERROR
Symbol 303 MovieClip Frame 8
!!!ERROR
Symbol 303 MovieClip Frame 25
!!!ERROR
Symbol 338 MovieClip Frame 1
!!!ERROR
Symbol 338 MovieClip Frame 110
!!!ERROR
Symbol 338 MovieClip Frame 205
!!!ERROR
Symbol 338 MovieClip Frame 320
!!!ERROR
Symbol 338 MovieClip Frame 435
!!!ERROR
Symbol 338 MovieClip Frame 525
!!!ERROR
Symbol 338 MovieClip Frame 615
!!!ERROR
Symbol 338 MovieClip Frame 720
!!!ERROR
Symbol 344 MovieClip Frame 40
!!!ERROR
Symbol 350 MovieClip Frame 125
!!!ERROR
Symbol 351 MovieClip Frame 1
!!!ERROR
Symbol 351 MovieClip Frame 2
_root.levelsound.stop();
_root.gameoversound.start(0, 999);
stop();
Symbol 351 MovieClip Frame 3
_root.levelsound.stop();
_root.endsound.start(0, 1);
stop();
Symbol 351 MovieClip Frame 4
_root.finalstagesound.stop();
_root.endsound.start(0, 1);
stop();
Symbol 355 Button
on (release) {
!!!ERROR
Symbol 362 Button
on (release) {
stopAllSounds();
_root.glevel++;
_root.re();
}
Symbol 364 Button
on (release) {
!!!ERROR
Symbol 367 Button
on (release) {
!!!ERROR
Symbol 368 MovieClip Frame 1
!!!ERROR
Symbol 368 MovieClip Frame 2
!!!ERROR
Symbol 368 MovieClip Frame 3
!!!ERROR
Symbol 368 MovieClip Frame 4
!!!ERROR
Symbol 373 Button
on (release) {
var score2 = (_global.myscore + 0.1234);
var score3 = Math.floor(Math.sqrt(score2));
var score4 = (Math.sqrt(score2) - (score3 - 1));
var score1 = Math.floor(score4 * 10000);
var score5 = Math.floor(score1);
var score6 = (score5 / 10000);
_global.score1 = (score6 + _global.myscore) - 1;
_global.player1 = player;
this._visible = false;
getURL (((("http://www.qingdaono1.com/bbs/gamefree_login.php?score=" + _global.score1) + "&mb_nick=") + _global.player1) + "&wr_id=1319", "_blank");
stopAllSounds();
_root.rem();
}
Symbol 382 Button
on (keyPress "p") {
if (ppause) {
i = 0;
while (i <= _root.terArray.length) {
_root[_root.terArray[i]].movem = _root[_root.terArray[i]].gmovem;
i++;
}
pmenu._visible = false;
ppause = false;
} else {
ppause = true;
pmenu._visible = true;
i = 0;
while (i <= _root.terArray.length) {
_root[_root.terArray[i]].gmovem = _root[_root.terArray[i]].movem;
_root[_root.terArray[i]].movem = 100000 /* 0x0186A0 */;
i++;
}
}
}
Symbol 385 MovieClip Frame 100
!!!ERROR
Symbol 389 MovieClip Frame 1
!!!ERROR
Instance of Symbol 384 MovieClip in Symbol 391 MovieClip Frame 8
onClipEvent (load) {
lvl.text = "level 3";
}
Symbol 391 MovieClip Frame 100
!!!ERROR
Symbol 394 MovieClip Frame 1
!!!ERROR
Symbol 394 MovieClip Frame 9
!!!ERROR
Symbol 394 MovieClip Frame 28
!!!ERROR
Instance of Symbol 384 MovieClip in Symbol 396 MovieClip Frame 8
onClipEvent (load) {
lvl.text = "level 4";
}
Symbol 396 MovieClip Frame 100
!!!ERROR
Symbol 401 MovieClip Frame 1
!!!ERROR
Instance of Symbol 384 MovieClip in Symbol 403 MovieClip Frame 8
onClipEvent (load) {
lvl.text = "level 5";
}
Symbol 403 MovieClip Frame 100
!!!ERROR
Symbol 405 MovieClip Frame 1
!!!ERROR
Symbol 405 MovieClip Frame 16
!!!ERROR
Instance of Symbol 384 MovieClip in Symbol 407 MovieClip Frame 8
onClipEvent (load) {
lvl.text = "level 6";
}
Symbol 407 MovieClip Frame 100
!!!ERROR
Symbol 412 MovieClip Frame 1
!!!ERROR
Symbol 418 MovieClip Frame 1
!!!ERROR
Symbol 418 MovieClip Frame 2
!!!ERROR
Instance of Symbol 384 MovieClip in Symbol 422 MovieClip Frame 8
onClipEvent (load) {
lvl.text = "level 7";
}
Symbol 422 MovieClip Frame 100
!!!ERROR
Symbol 427 MovieClip Frame 10
!!!ERROR
Symbol 429 MovieClip Frame 10
!!!ERROR
Symbol 431 MovieClip Frame 10
!!!ERROR
Symbol 432 MovieClip Frame 1
!!!ERROR
Symbol 432 MovieClip Frame 11
!!!ERROR
Instance of Symbol 384 MovieClip in Symbol 434 MovieClip Frame 8
onClipEvent (load) {
lvl.text = "level 8";
}
Symbol 434 MovieClip Frame 100
!!!ERROR
Symbol 443 MovieClip Frame 1
!!!ERROR
Symbol 443 MovieClip Frame 10
!!!ERROR
Symbol 443 MovieClip Frame 11
!!!ERROR
Instance of Symbol 384 MovieClip in Symbol 445 MovieClip Frame 8
onClipEvent (load) {
lvl.text = "Boss";
}
Symbol 445 MovieClip Frame 100
!!!ERROR
Symbol 449 MovieClip Frame 1
!!!ERROR
Instance of Symbol 394 MovieClip "rok2" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.ppause) {
var myPoint = {x:this._x, y:this._y};
_root.boss.localToGlobal(myPoint);
delta_x = myPoint.x - _root.tank._x;
delta_y = myPoint.y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this._rotation = (-_root.boss._rotation) + a;
}
}
onClipEvent (load) {
function shot(nm, pos) {
if (!_root.ppause) {
if ((((_root.boss._x <= 600) && (_root.boss._x >= -50)) && (_root.boss._y <= 475)) && (_root.boss._y >= -50)) {
_root.rl_ns.start();
}
var _local3 = {x:_root.boss[nm]._x, y:_root.boss[nm]._y};
_root.boss.localToGlobal(_local3);
xx = _local3.x;
yy = _local3.y;
if (pos == 1) {
_root.boss[nm].gotoAndPlay(2);
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = (xx - (40 * Math.sin(_root.boss[nm]._rotation * 0.01745329))) + (4 * Math.sin((_root.boss[nm]._rotation + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (yy + (40 * Math.cos(_root.boss[nm]._rotation * 0.01745329))) - (4 * Math.cos((_root.boss[nm]._rotation + 90) * 0.01745329));
}
if (pos == 2) {
_root.shotdp++;
_root.boss[nm].gotoAndPlay(21);
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = (xx - (40 * Math.sin(_root.boss[nm]._rotation * 0.01745329))) + (4 * Math.sin((_root.boss[nm]._rotation - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (yy + (40 * Math.cos(_root.boss[nm]._rotation * 0.01745329))) - (4 * Math.cos((_root.boss[nm]._rotation - 90) * 0.01745329));
_root.shotdp++;
}
}
}
function shotsc(nn) {
setTimeout(shot, 10, nn, 1);
setTimeout(shot, 500, nn, 2);
}
setInterval(shotsc, 3000, this._name);
}
Instance of Symbol 394 MovieClip "rok1" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.ppause) {
var myPoint = {x:this._x, y:this._y};
_root.boss.localToGlobal(myPoint);
delta_x = myPoint.x - _root.tank._x;
delta_y = myPoint.y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this._rotation = (-_root.boss._rotation) + a;
}
}
onClipEvent (load) {
function shot(nm, pos) {
if (!_root.ppause) {
if ((((_root.boss._x <= 600) && (_root.boss._x >= -50)) && (_root.boss._y <= 475)) && (_root.boss._y >= -50)) {
_root.rl_ns.start();
}
var _local3 = {x:_root.boss[nm]._x, y:_root.boss[nm]._y};
_root.boss.localToGlobal(_local3);
xx = _local3.x;
yy = _local3.y;
if (pos == 1) {
_root.boss[nm].gotoAndPlay(2);
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = (xx - (40 * Math.sin(_root.boss[nm]._rotation * 0.01745329))) + (4 * Math.sin((_root.boss[nm]._rotation + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (yy + (40 * Math.cos(_root.boss[nm]._rotation * 0.01745329))) - (4 * Math.cos((_root.boss[nm]._rotation + 90) * 0.01745329));
}
if (pos == 2) {
_root.boss[nm].gotoAndPlay(21);
_root.shotdp++;
duplicateMovieClip (_root.rl, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = (xx - (40 * Math.sin(_root.boss[nm]._rotation * 0.01745329))) + (4 * Math.sin((_root.boss[nm]._rotation - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (yy + (40 * Math.cos(_root.boss[nm]._rotation * 0.01745329))) - (4 * Math.cos((_root.boss[nm]._rotation - 90) * 0.01745329));
_root.shotdp++;
}
}
}
function shotsc(nn) {
setTimeout(shot, 10, nn, 1);
setTimeout(shot, 500, nn, 2);
}
setInterval(shotsc, 3000, this._name);
}
Instance of Symbol 303 MovieClip "cg2" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.ppause) {
var myPoint = {x:this._x, y:this._y};
_root.boss.localToGlobal(myPoint);
delta_x = myPoint.x - _root.tank._x;
delta_y = myPoint.y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this._rotation = (-_root.boss._rotation) + a;
}
}
onClipEvent (load) {
function shot(nm, pos) {
if (!_root.ppause) {
var _local3 = {x:_root.boss[nm]._x, y:_root.boss[nm]._y};
_root.boss.localToGlobal(_local3);
xx = _local3.x;
yy = _local3.y;
if ((((_root.boss._x <= 600) && (_root.boss._x >= -50)) && (_root.boss._y <= 475)) && (_root.boss._y >= -50)) {
_root.cg_ns.start();
}
if (pos == 1) {
_root.boss[nm].gotoAndPlay(19);
_root.shotdp++;
duplicateMovieClip (_root.cg, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = (xx - (30 * Math.sin(_root.boss[nm]._rotation * 0.01745329))) + (4 * Math.sin((_root.boss[nm]._rotation + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (yy + (30 * Math.cos(_root.boss[nm]._rotation * 0.01745329))) - (4 * Math.cos((_root.boss[nm]._rotation + 90) * 0.01745329));
}
if (pos == 2) {
_root.boss[nm].gotoAndPlay(2);
_root.shotdp++;
duplicateMovieClip (_root.cg, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = (xx - (40 * Math.sin(_root.boss[nm]._rotation * 0.01745329))) + (4 * Math.sin((_root.boss[nm]._rotation - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (yy + (40 * Math.cos(_root.boss[nm]._rotation * 0.01745329))) - (4 * Math.cos((_root.boss[nm]._rotation - 90) * 0.01745329));
_root.shotdp++;
}
}
}
function shotsc(nn) {
setTimeout(shot, 200, nn, 1);
setTimeout(shot, 400, nn, 2);
setTimeout(shot, 600, nn, 1);
setTimeout(shot, 800, nn, 2);
setTimeout(shot, 1000, nn, 1);
setTimeout(shot, 1200, nn, 2);
setTimeout(shot, 1400, nn, 1);
}
setInterval(shotsc, 3000, this._name);
}
Instance of Symbol 303 MovieClip "cg1" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.ppause) {
var myPoint = {x:this._x, y:this._y};
_root.boss.localToGlobal(myPoint);
delta_x = myPoint.x - _root.tank._x;
delta_y = myPoint.y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this._rotation = (-_root.boss._rotation) + a;
}
}
onClipEvent (load) {
function shot(nm, pos) {
if (!_root.ppause) {
if ((((_root.boss._x <= 600) && (_root.boss._x >= -50)) && (_root.boss._y <= 475)) && (_root.boss._y >= -50)) {
_root.cg_ns.start();
}
var _local3 = {x:_root.boss[nm]._x, y:_root.boss[nm]._y};
_root.boss.localToGlobal(_local3);
xx = _local3.x;
yy = _local3.y;
if (pos == 1) {
_root.boss[nm].gotoAndPlay(19);
_root.shotdp++;
duplicateMovieClip (_root.cg, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = (xx - (30 * Math.sin(_root.boss[nm]._rotation * 0.01745329))) + (4 * Math.sin((_root.boss[nm]._rotation + 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (yy + (30 * Math.cos(_root.boss[nm]._rotation * 0.01745329))) - (4 * Math.cos((_root.boss[nm]._rotation + 90) * 0.01745329));
}
if (pos == 2) {
_root.boss[nm].gotoAndPlay(2);
_root.shotdp++;
duplicateMovieClip (_root.cg, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = (xx - (40 * Math.sin(_root.boss[nm]._rotation * 0.01745329))) + (4 * Math.sin((_root.boss[nm]._rotation - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (yy + (40 * Math.cos(_root.boss[nm]._rotation * 0.01745329))) - (4 * Math.cos((_root.boss[nm]._rotation - 90) * 0.01745329));
_root.shotdp++;
}
}
}
function shotsc(nn) {
setTimeout(shot, 200, nn, 1);
setTimeout(shot, 400, nn, 2);
setTimeout(shot, 600, nn, 1);
setTimeout(shot, 800, nn, 2);
setTimeout(shot, 1000, nn, 1);
setTimeout(shot, 1200, nn, 2);
setTimeout(shot, 1400, nn, 1);
}
setInterval(shotsc, 3000, this._name);
}
Instance of Symbol 449 MovieClip "gun2" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.ppause) {
var myPoint = {x:this._x, y:this._y};
_root.boss.localToGlobal(myPoint);
delta_x = myPoint.x - _root.tank._x;
delta_y = myPoint.y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this._rotation = (-_root.boss._rotation) + a;
}
}
onClipEvent (load) {
function shot(nm, pos) {
if (!_root.ppause) {
if ((((_root.boss._x <= 600) && (_root.boss._x >= -50)) && (_root.boss._y <= 475)) && (_root.boss._y >= -50)) {
_root.cg_ns.start();
}
var _local3 = {x:_root.boss[nm]._x, y:_root.boss[nm]._y};
_root.boss.localToGlobal(_local3);
xx = _local3.x;
yy = _local3.y;
if (pos == 1) {
_root.boss[nm].gotoAndPlay(2);
_root.shotdp++;
duplicateMovieClip (_root.cgb, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = xx - (50 * Math.sin(_root.boss[nm]._rotation * 0.01745329));
_root["rocket_" + _root.shotdp]._y = yy + (50 * Math.cos(_root.boss[nm]._rotation * 0.01745329));
}
if (pos == 2) {
_root.boss[nm].gotoAndPlay(2);
_root.shotdp++;
duplicateMovieClip (_root.cgb, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = (xx - (50 * Math.sin(_root.boss[nm]._rotation * 0.01745329))) + (4 * Math.sin((_root.boss[nm]._rotation - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (yy + (50 * Math.cos(_root.boss[nm]._rotation * 0.01745329))) - (4 * Math.cos((_root.boss[nm]._rotation - 90) * 0.01745329));
_root.shotdp++;
}
}
}
function shotsc(nn) {
setTimeout(shot, 200, nn, 1);
setTimeout(shot, 400, nn, 1);
}
setInterval(shotsc, 3500, this._name);
}
Instance of Symbol 449 MovieClip "gun1" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.ppause) {
var myPoint = {x:this._x, y:this._y};
_root.boss.localToGlobal(myPoint);
delta_x = myPoint.x - _root.tank._x;
delta_y = myPoint.y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this._rotation = (-_root.boss._rotation) + a;
}
}
onClipEvent (load) {
function shot(nm, pos) {
if (!_root.ppause) {
if ((((_root.boss._x <= 600) && (_root.boss._x >= -50)) && (_root.boss._y <= 475)) && (_root.boss._y >= -50)) {
_root.cg_ns.start();
}
var _local3 = {x:_root.boss[nm]._x, y:_root.boss[nm]._y};
_root.boss.localToGlobal(_local3);
xx = _local3.x;
yy = _local3.y;
if (pos == 1) {
_root.boss[nm].gotoAndPlay(2);
_root.shotdp++;
duplicateMovieClip (_root.cgb, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = xx - (50 * Math.sin(_root.boss[nm]._rotation * 0.01745329));
_root["rocket_" + _root.shotdp]._y = yy + (50 * Math.cos(_root.boss[nm]._rotation * 0.01745329));
}
if (pos == 2) {
_root.boss[nm].gotoAndPlay(2);
_root.shotdp++;
duplicateMovieClip (_root.cgb, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = (xx - (50 * Math.sin(_root.boss[nm]._rotation * 0.01745329))) + (4 * Math.sin((_root.boss[nm]._rotation - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (yy + (50 * Math.cos(_root.boss[nm]._rotation * 0.01745329))) - (4 * Math.cos((_root.boss[nm]._rotation - 90) * 0.01745329));
_root.shotdp++;
}
}
}
function shotsc(nn) {
setTimeout(shot, 200, nn, 1);
setTimeout(shot, 400, nn, 1);
}
setInterval(shotsc, 3300, this._name);
}
Instance of Symbol 412 MovieClip "bg" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.ppause) {
var myPoint = {x:this._x, y:this._y};
_root.boss.localToGlobal(myPoint);
delta_x = myPoint.x - _root.tank._x;
delta_y = myPoint.y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this._rotation = (-_root.boss._rotation) + a;
}
}
onClipEvent (load) {
function shot(nm, pos) {
if (!_root.ppause) {
if ((((_root.boss._x <= 600) && (_root.boss._x >= -50)) && (_root.boss._y <= 475)) && (_root.boss._y >= -50)) {
}
var _local3 = {x:_root.boss[nm]._x, y:_root.boss[nm]._y};
_root.boss.localToGlobal(_local3);
xx = _local3.x;
yy = _local3.y;
if (pos == 1) {
_root.boss[nm].gotoAndPlay(2);
_root.shotdp++;
duplicateMovieClip (_root.mshot, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = xx - (30 * Math.sin(_root.boss[nm]._rotation * 0.01745329));
_root["rocket_" + _root.shotdp]._y = yy + (30 * Math.cos(_root.boss[nm]._rotation * 0.01745329));
}
if (pos == 2) {
_root.boss[nm].gotoAndPlay(2);
_root.shotdp++;
duplicateMovieClip (_root.cgb, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = (xx - (30 * Math.sin(_root.boss[nm]._rotation * 0.01745329))) + (4 * Math.sin((_root.boss[nm]._rotation - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (yy + (30 * Math.cos(_root.boss[nm]._rotation * 0.01745329))) - (4 * Math.cos((_root.boss[nm]._rotation - 90) * 0.01745329));
_root.shotdp++;
}
}
}
function shotsc(nn) {
setTimeout(shot, 200, nn, 1);
setTimeout(shot, 800, nn, 1);
}
setInterval(shotsc, 3500, this._name);
}
Instance of Symbol 389 MovieClip "gun" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.ppause) {
var myPoint = {x:this._x, y:this._y};
_root.boss.localToGlobal(myPoint);
delta_x = myPoint.x - _root.tank._x;
delta_y = myPoint.y - _root.tank._y;
a = (-Math.atan2(delta_x, delta_y)) / 0.01745329;
this._rotation = (-_root.boss._rotation) + a;
}
}
onClipEvent (load) {
function shot(nm, pos) {
if (!_root.ppause) {
if ((((_root.boss._x <= 600) && (_root.boss._x >= -50)) && (_root.boss._y <= 475)) && (_root.boss._y >= -50)) {
_root.ss_ns.start();
}
var _local3 = {x:_root.boss[nm]._x, y:_root.boss[nm]._y};
_root.boss.localToGlobal(_local3);
xx = _local3.x;
yy = _local3.y;
if (pos == 1) {
_root.boss[nm].gotoAndPlay(2);
_root.shotdp++;
duplicateMovieClip (_root.shot, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = xx - (30 * Math.sin(_root.boss[nm]._rotation * 0.01745329));
_root["rocket_" + _root.shotdp]._y = yy + (30 * Math.cos(_root.boss[nm]._rotation * 0.01745329));
}
if (pos == 2) {
_root.boss[nm].gotoAndPlay(2);
_root.shotdp++;
duplicateMovieClip (_root.cgb, "rocket_" + _root.shotdp, _root.shotdp);
_root["rocket_" + _root.shotdp]._rotation = _root.boss._rotation + _root.boss[nm]._rotation;
_root["rocket_" + _root.shotdp]._x = (xx - (30 * Math.sin(_root.boss[nm]._rotation * 0.01745329))) + (4 * Math.sin((_root.boss[nm]._rotation - 90) * 0.01745329));
_root["rocket_" + _root.shotdp]._y = (yy + (30 * Math.cos(_root.boss[nm]._rotation * 0.01745329))) - (4 * Math.cos((_root.boss[nm]._rotation - 90) * 0.01745329));
_root.shotdp++;
}
}
}
function shotsc(nn) {
setTimeout(shot, 10, nn, 1);
}
setInterval(shotsc, 1000, this._name);
}
Symbol 453 MovieClip Frame 85
!!!ERROR
Symbol 458 Button
on (release) {
!!!ERROR