Frame 1
fscommand ("allowscale", false);
stop();
Instance of Symbol 41 MovieClip in Frame 1
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
per = Math.round((loaded / total) * 100);
gotoAndStop(per);
if (loaded >= total) {
_root.play();
}
}
onClipEvent (load) {
total = _root.getBytesTotal();
per = 0;
}
Instance of Symbol 43 MovieClip in Frame 1
on (release) {
getURL ("http://www.loadfreegames.com/", "_blank");
}
Frame 2
stop();
Instance of Symbol 50 MovieClip in Frame 2
on (release) {
getURL ("http://www.loadfreegames.com", _blank);
}
Frame 3
_root.w = 87;
_root.a = 65;
_root.s = 83;
_root.d = 68;
_root.p = 80;
_root.no1 = 49;
_root.no2 = 50;
_root.no3 = 51;
_root.no4 = 52;
_root.no5 = 53;
_root.q = 81;
_root.e = 69;
_root.rspeed = 3;
_root.speed = 3;
_root.fashe = 0;
_root.deaded = 0;
_root.usetank = 0;
_root.usezplane = 0;
_root.usegweapon = 0;
_root.mancontol = 1;
_root.shangche = 0;
_root.wudi = 0;
_root.pao = 1;
_root.guy = 3;
_root.score = 0;
_root.sss = 10;
_root.paodan1 = 30;
_root.daguan = 1;
_root.xiaoguan = 1;
_root.zhanting = 1;
_root.bossbow = 0;
_root.ecount = 0;
_global.lloop = 0;
_global.iloop = 0;
Frame 4
stop();
Instance of Symbol 110 MovieClip in Frame 4
onClipEvent (enterFrame) {
startDrag (this, true);
Mouse.hide();
}
Frame 8
stop();
Frame 20
stopAllSounds();
Frame 21
stop();
Instance of Symbol 237 MovieClip "enemy50" in Frame 21
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 239 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.ecount >= 5) {
_root.compl.play();
}
}
Instance of Symbol 265 MovieClip "enemy11" in Frame 21
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy12" in Frame 21
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy13" in Frame 21
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy14" in Frame 21
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy15" in Frame 21
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 280 MovieClip "man" in Frame 21
onClipEvent (load) {
function sstep() {
if (xstep > 0) {
xstep = xstep - 1;
} else {
xstep = 0;
}
if (ystep > 0) {
ystep = ystep - 1;
} else {
ystep = 0;
}
}
function bjdongx() {
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - xstep;
_root["shello" + i]._x = _root["shello" + i]._x - xstep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - xstep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - xstep;
_root["eshello" + i]._x = _root["eshello" + i]._x - xstep;
_root["boshell" + i]._x = _root["boshell" + i]._x - xstep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._x = _root["item" + n]._x - xstep;
n++;
}
_root.lan._x = _root.lan._x - xstep;
_root.lan2._x = _root.lan2._x - xstep;
_root.back._x = _root.back._x - xstep;
_root.tank1._x = _root.tank1._x - xstep;
_x = 200;
}
function bjdongy() {
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - ystep;
_root["shello" + i]._y = _root["shello" + i]._y - ystep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - ystep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - ystep;
_root["eshello" + i]._y = _root["eshello" + i]._y - ystep;
_root["boshell" + i]._y = _root["boshell" + i]._y - ystep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._y = _root["item" + n]._y - ystep;
n++;
}
_root.lan._y = _root.lan._y - ystep;
_root.lan2._y = _root.lan2._y - ystep;
_root.back._y = _root.back._y - ystep;
_root.tank1._y = _root.tank1._y - ystep;
_y = 150;
}
bgtf2 = 0;
bgtf = 1;
xstep = 0;
ystep = 0;
degree = 0;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
function copyshell() {
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shell, "shell" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
}
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.fashe == 0) {
guan.play();
degree = (this._rotation * Math.PI) / 180;
copyshell();
_root["shell" + _global.loop]._x = _x + (Math.cos(degree) * 20);
_root["shell" + _global.loop]._y = _y + (Math.sin(degree) * 20);
_root["shell" + _global.loop].shelldegree = degree;
_root["shell" + _global.loop].rorotation = _rotation;
_root["shell" + _global.loop].gotoAndStop(2);
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
_x = (_x + xstep);
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
_y = (_y + ystep);
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x + _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x - _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y - _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y + _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (Key.isDown(_root.a)) {
xstep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.d)) {
xstep = _root.speed;
foot.play();
}
if (Key.isDown(_root.w)) {
ystep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.s)) {
ystep = _root.speed;
foot.play();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 0) {
_root.mancontol = 1;
_visible = true;
} else {
_root.mancontol = 0;
_visible = false;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i <= 10) {
if (_root.wudi == 0) {
if (_root.deaded == 0) {
if (_root.mancontol == 1) {
if (_root["enemy" + i].mian.hitTest(_x, _y, true)) {
gotoAndStop ("dead");
_root.deaded = 1;
}
}
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.mancontol == 1) {
if (_root.wudi == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].mian.hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["eshello" + i].mian.hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["boshell" + i].mian.hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
i++;
}
}
}
}
}
Instance of Symbol 302 MovieClip "shell" in Frame 21
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._x = this._x + (speed * Math.cos(shelldegree));
this._y = this._y + (speed * Math.sin(shelldegree));
this._rotation = rorotation;
}
}
onClipEvent (load) {
speed = 10;
}
Instance of Symbol 26 MovieClip [eshell] "eshell" in Frame 21
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._x = this._x + (speed * Math.cos(shelldegree));
this._y = this._y + (speed * Math.sin(shelldegree));
}
}
onClipEvent (load) {
speed = 3;
}
Instance of Symbol 307 MovieClip "shello" in Frame 21
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._x = this._x + (speed * Math.cos(shelldegree));
this._y = this._y + (speed * Math.sin(shelldegree));
this._rotation = rorotation;
}
}
onClipEvent (load) {
speed = 15;
}
Instance of Symbol 309 MovieClip "eshello" in Frame 21
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._x = this._x + (speed * Math.cos(shelldegree));
this._y = this._y + (speed * Math.sin(shelldegree));
}
}
onClipEvent (load) {
speed = 6;
}
Instance of Symbol 317 MovieClip "arm" in Frame 21
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._x = this._x + (speed * Math.cos(shelldegree));
this._y = this._y + (speed * Math.sin(shelldegree));
this._rotation = rorotation;
}
}
onClipEvent (load) {
speed = 30;
}
Instance of Symbol 325 MovieClip in Frame 21
onClipEvent (keyDown) {
if (Key.isDown(_root.no1)) {
_root.pao = 1;
}
if (Key.isDown(_root.no2)) {
_root.pao = 2;
}
if (Key.isDown(_root.q)) {
_root.pao = _root.pao - 1;
}
if (Key.isDown(_root.e)) {
_root.pao = _root.pao + 1;
}
}
Instance of Symbol 327 MovieClip in Frame 21
onClipEvent (keyDown) {
if (_root.sbp == 1) {
if (Key.isDown(_root.p)) {
_root.zhti.play();
}
}
}
Instance of Symbol 330 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_global.lloop >= 50) {
_global.lloop = 1;
}
}
Instance of Symbol 347 MovieClip "items" in Frame 21
onClipEvent (enterFrame) {
if (hitTest(_root.man)) {
gotoAndStop ("eat");
}
if (hitTest(_root.tank1)) {
gotoAndStop ("eat");
}
if (((0 < _x) < 400) and ((0 < _y) < 300)) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 363 MovieClip "itemh" in Frame 21
onClipEvent (enterFrame) {
if (hitTest(_root.man)) {
gotoAndStop ("eat");
}
if (hitTest(_root.tank1)) {
gotoAndStop ("eat");
}
if (((0 < _x) < 400) and ((0 < _y) < 300)) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 366 MovieClip "iteml" in Frame 21
onClipEvent (enterFrame) {
if (hitTest(_root.man)) {
gotoAndStop ("eat");
}
if (hitTest(_root.tank1)) {
gotoAndStop ("eat");
}
if (((0 < _x) < 400) and ((0 < _y) < 300)) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 388 MovieClip "itemp" in Frame 21
onClipEvent (enterFrame) {
if (hitTest(_root.man)) {
gotoAndStop ("eat");
}
if (hitTest(_root.tank1)) {
gotoAndStop ("eat");
}
if (((0 < _x) < 400) and ((0 < _y) < 300)) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 431 MovieClip "boshell" in Frame 21
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._x = this._x + (speed * Math.cos(shelldegree));
this._y = this._y + (speed * Math.sin(shelldegree));
}
}
onClipEvent (load) {
speed = 3;
}
Instance of Symbol 435 MovieClip "jushell" in Frame 21
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._x = this._x + (speed * Math.cos(shelldegree));
this._y = this._y + (speed * Math.sin(shelldegree));
this._rotation = dorotation;
}
}
onClipEvent (load) {
speed = 7;
}
Instance of Symbol 437 MovieClip "shellp" in Frame 21
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._x = this._x + (speed * Math.cos(shelldegree));
this._y = this._y + (speed * Math.sin(shelldegree));
this._rotation = rorotation;
}
}
onClipEvent (load) {
speed = 25;
}
Instance of Symbol 442 MovieClip "armp" in Frame 21
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._x = this._x + (speed * Math.cos(shelldegree));
this._y = this._y + (speed * Math.sin(shelldegree));
this._rotation = rorotation;
}
}
onClipEvent (load) {
speed = 60;
}
Instance of Symbol 453 MovieClip "se" in Frame 21
onClipEvent (enterFrame) {
if ((this._currentframe = 2)) {
this._rotation = rorotation;
}
if (this._currentframe == 3) {
this._x = this._x + (speed * Math.cos(shelldegree));
this._y = this._y + (speed * Math.sin(shelldegree));
}
}
onClipEvent (load) {
speed = 10;
}
Instance of Symbol 463 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
_visible = true;
gotoAndStop(_root.pao);
} else {
_visible = false;
}
if (_root.pao < 1) {
_root.pao = 1;
}
if (_root.pao > 2) {
_root.pao = 2;
}
}
Instance of Symbol 468 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
gotoAndStop(_root.pao);
gotoAndStop(_root.hp);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 475 MovieClip in Frame 21
onClipEvent (load) {
scorejj = 0;
}
Frame 23
stop();
_root.mis.play();
Instance of Symbol 530 MovieClip "enemy2" in Frame 23
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy11" in Frame 23
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy14" in Frame 23
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy15" in Frame 23
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy16" in Frame 23
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy17" in Frame 23
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy18" in Frame 23
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 239 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (_root.ecount >= 7) {
_root.compl.play();
}
}
Instance of Symbol 280 MovieClip "man" in Frame 23
onClipEvent (load) {
function sstep() {
if (xstep > 0) {
xstep = xstep - 1;
} else {
xstep = 0;
}
if (ystep > 0) {
ystep = ystep - 1;
} else {
ystep = 0;
}
}
function bjdongx() {
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - xstep;
_root["shello" + i]._x = _root["shello" + i]._x - xstep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - xstep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - xstep;
_root["eshello" + i]._x = _root["eshello" + i]._x - xstep;
_root["boshell" + i]._x = _root["boshell" + i]._x - xstep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._x = _root["item" + n]._x - xstep;
n++;
}
_root.lan._x = _root.lan._x - xstep;
_root.lan2._x = _root.lan2._x - xstep;
_root.back._x = _root.back._x - xstep;
_root.tank1._x = _root.tank1._x - xstep;
_x = 200;
}
function bjdongy() {
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - ystep;
_root["shello" + i]._y = _root["shello" + i]._y - ystep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - ystep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - ystep;
_root["eshello" + i]._y = _root["eshello" + i]._y - ystep;
_root["boshell" + i]._y = _root["boshell" + i]._y - ystep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._y = _root["item" + n]._y - ystep;
n++;
}
_root.lan._y = _root.lan._y - ystep;
_root.lan2._y = _root.lan2._y - ystep;
_root.back._y = _root.back._y - ystep;
_root.tank1._y = _root.tank1._y - ystep;
_y = 150;
}
bgtf2 = 0;
bgtf = 1;
xstep = 0;
ystep = 0;
degree = 0;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
function copyshell() {
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shell, "shell" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
}
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.fashe == 0) {
guan.play();
degree = (this._rotation * Math.PI) / 180;
copyshell();
_root["shell" + _global.loop]._x = _x + (Math.cos(degree) * 20);
_root["shell" + _global.loop]._y = _y + (Math.sin(degree) * 20);
_root["shell" + _global.loop].shelldegree = degree;
_root["shell" + _global.loop].rorotation = _rotation;
_root["shell" + _global.loop].gotoAndStop(2);
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
_x = (_x + xstep);
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
_y = (_y + ystep);
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x + _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x - _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y - _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y + _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (Key.isDown(_root.a)) {
xstep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.d)) {
xstep = _root.speed;
foot.play();
}
if (Key.isDown(_root.w)) {
ystep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.s)) {
ystep = _root.speed;
foot.play();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 0) {
_root.mancontol = 1;
_visible = true;
} else {
_root.mancontol = 0;
_visible = false;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i <= 10) {
if (_root.wudi == 0) {
if (_root.deaded == 0) {
if (_root.mancontol == 1) {
if (_root["enemy" + i].mian.hitTest(_x, _y, true)) {
gotoAndStop ("dead");
_root.deaded = 1;
}
}
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.mancontol == 1) {
if (_root.wudi == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].mian.hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["eshello" + i].mian.hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["boshell" + i].mian.hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
i++;
}
}
}
}
}
Instance of Symbol 531 MovieClip "lan" in Frame 23
/* no clip actions */
Frame 25
stop();
_root.mis.play();
Instance of Symbol 530 MovieClip "enemy1" in Frame 25
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy3" in Frame 25
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy50" in Frame 25
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy12" in Frame 25
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy15" in Frame 25
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy18" in Frame 25
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy19" in Frame 25
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy20" in Frame 25
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy23" in Frame 25
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 239 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.ecount >= 8) {
_root.compl.play();
}
}
Instance of Symbol 545 MovieClip "tank1" in Frame 25
onClipEvent (load) {
function sstep() {
if (step > 0) {
step = step - 1;
} else {
step = 0;
}
}
function bjdongx() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - (Math.cos(degree) * step);
_root["shello" + i]._x = _root["shello" + i]._x - (Math.cos(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (Math.cos(degree) * step);
_root["item" + nn]._x = _root["item" + nn]._x - (Math.cos(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - (Math.cos(degree) * step);
_root["eshello" + i]._x = _root["eshello" + i]._x - (Math.cos(degree) * step);
i++;
}
_root.lan._x = _root.lan._x - (Math.cos(degree) * step);
_root.lan2._x = _root.lan2._x - (Math.cos(degree) * step);
_root.back._x = _root.back._x - (Math.cos(degree) * step);
}
function bjdongy() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - (Math.sin(degree) * step);
_root["shello" + i]._y = _root["shello" + i]._y - (Math.sin(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (Math.sin(degree) * step);
_root["item" + nn]._y = _root["item" + nn]._y - (Math.sin(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - (Math.sin(degree) * step);
_root["eshello" + i]._y = _root["eshello" + i]._y - (Math.sin(degree) * step);
i++;
}
_root.lan._y = _root.lan._y - (Math.sin(degree) * step);
_root.lan2._y = _root.lan2._y - (Math.sin(degree) * step);
_root.back._y = _root.back._y - (Math.sin(degree) * step);
}
_root.paodan1 = 30;
degree = 0;
_root.hp = 100;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.deaded == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
degree = (tank._rotation * Math.PI) / 180;
_x = (_x + (Math.cos(degree) * step));
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
degree = (tank._rotation * Math.PI) / 180;
_y = (_y + (Math.sin(degree) * step));
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 3;
}
if (_root["eshello" + i].hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 5;
}
i++;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root["enemy" + nn].hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x + (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y + (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan2.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan2.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
gotoAndStop ("dead");
}
}
Instance of Symbol 280 MovieClip "man" in Frame 25
onClipEvent (load) {
function sstep() {
if (xstep > 0) {
xstep = xstep - 1;
} else {
xstep = 0;
}
if (ystep > 0) {
ystep = ystep - 1;
} else {
ystep = 0;
}
}
function bjdongx() {
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - xstep;
_root["shello" + i]._x = _root["shello" + i]._x - xstep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - xstep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - xstep;
_root["eshello" + i]._x = _root["eshello" + i]._x - xstep;
_root["boshell" + i]._x = _root["boshell" + i]._x - xstep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._x = _root["item" + n]._x - xstep;
n++;
}
_root.lan._x = _root.lan._x - xstep;
_root.lan2._x = _root.lan2._x - xstep;
_root.back._x = _root.back._x - xstep;
_root.tank1._x = _root.tank1._x - xstep;
_x = 200;
}
function bjdongy() {
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - ystep;
_root["shello" + i]._y = _root["shello" + i]._y - ystep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - ystep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - ystep;
_root["eshello" + i]._y = _root["eshello" + i]._y - ystep;
_root["boshell" + i]._y = _root["boshell" + i]._y - ystep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._y = _root["item" + n]._y - ystep;
n++;
}
_root.lan._y = _root.lan._y - ystep;
_root.lan2._y = _root.lan2._y - ystep;
_root.back._y = _root.back._y - ystep;
_root.tank1._y = _root.tank1._y - ystep;
_y = 150;
}
bgtf2 = 0;
bgtf = 1;
xstep = 0;
ystep = 0;
degree = 0;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
function copyshell() {
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shell, "shell" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
}
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.fashe == 0) {
guan.play();
degree = (this._rotation * Math.PI) / 180;
copyshell();
_root["shell" + _global.loop]._x = _x + (Math.cos(degree) * 20);
_root["shell" + _global.loop]._y = _y + (Math.sin(degree) * 20);
_root["shell" + _global.loop].shelldegree = degree;
_root["shell" + _global.loop].rorotation = _rotation;
_root["shell" + _global.loop].gotoAndStop(2);
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
_x = (_x + xstep);
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
_y = (_y + ystep);
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x + _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x - _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y - _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y + _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (Key.isDown(_root.a)) {
xstep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.d)) {
xstep = _root.speed;
foot.play();
}
if (Key.isDown(_root.w)) {
ystep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.s)) {
ystep = _root.speed;
foot.play();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 0) {
_root.mancontol = 1;
_visible = true;
} else {
_root.mancontol = 0;
_visible = false;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i <= 10) {
if (_root.wudi == 0) {
if (_root.deaded == 0) {
if (_root.mancontol == 1) {
if (_root["enemy" + i].mian.hitTest(_x, _y, true)) {
gotoAndStop ("dead");
_root.deaded = 1;
}
}
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.mancontol == 1) {
if (_root.wudi == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].mian.hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["eshello" + i].mian.hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["boshell" + i].mian.hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
i++;
}
}
}
}
}
Instance of Symbol 546 MovieClip "lan" in Frame 25
/* no clip actions */
Frame 26
stopAllSounds();
Frame 27
stop();
_root.mis.play();
Instance of Symbol 530 MovieClip "enemy1" in Frame 27
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy2" in Frame 27
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy50" in Frame 27
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy49" in Frame 27
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy14" in Frame 27
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy15" in Frame 27
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy16" in Frame 27
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 564 MovieClip "enemy5" in Frame 27
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (load) {
boss.hp = 500;
}
Instance of Symbol 239 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (_root.bossbow == 1) {
_root.compl.play();
}
}
Instance of Symbol 571 MovieClip "bhpp" in Frame 27
onClipEvent (enterFrame) {
gotoAndStop(Math.abs(_root.enemy5.boss.hp / 500) * 100);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 545 MovieClip "tank1" in Frame 27
onClipEvent (load) {
function sstep() {
if (step > 0) {
step = step - 1;
} else {
step = 0;
}
}
function bjdongx() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - (Math.cos(degree) * step);
_root["shello" + i]._x = _root["shello" + i]._x - (Math.cos(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (Math.cos(degree) * step);
_root["item" + nn]._x = _root["item" + nn]._x - (Math.cos(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - (Math.cos(degree) * step);
_root["eshello" + i]._x = _root["eshello" + i]._x - (Math.cos(degree) * step);
i++;
}
_root.lan._x = _root.lan._x - (Math.cos(degree) * step);
_root.lan2._x = _root.lan2._x - (Math.cos(degree) * step);
_root.back._x = _root.back._x - (Math.cos(degree) * step);
}
function bjdongy() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - (Math.sin(degree) * step);
_root["shello" + i]._y = _root["shello" + i]._y - (Math.sin(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (Math.sin(degree) * step);
_root["item" + nn]._y = _root["item" + nn]._y - (Math.sin(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - (Math.sin(degree) * step);
_root["eshello" + i]._y = _root["eshello" + i]._y - (Math.sin(degree) * step);
i++;
}
_root.lan._y = _root.lan._y - (Math.sin(degree) * step);
_root.lan2._y = _root.lan2._y - (Math.sin(degree) * step);
_root.back._y = _root.back._y - (Math.sin(degree) * step);
}
_root.paodan1 = 30;
degree = 0;
_root.hp = 100;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.deaded == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
degree = (tank._rotation * Math.PI) / 180;
_x = (_x + (Math.cos(degree) * step));
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
degree = (tank._rotation * Math.PI) / 180;
_y = (_y + (Math.sin(degree) * step));
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 3;
}
if (_root["eshello" + i].hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 5;
}
i++;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root["enemy" + nn].hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x + (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y + (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan2.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan2.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
gotoAndStop ("dead");
}
}
Instance of Symbol 280 MovieClip "man" in Frame 27
onClipEvent (load) {
function sstep() {
if (xstep > 0) {
xstep = xstep - 1;
} else {
xstep = 0;
}
if (ystep > 0) {
ystep = ystep - 1;
} else {
ystep = 0;
}
}
function bjdongx() {
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - xstep;
_root["shello" + i]._x = _root["shello" + i]._x - xstep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - xstep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - xstep;
_root["eshello" + i]._x = _root["eshello" + i]._x - xstep;
_root["boshell" + i]._x = _root["boshell" + i]._x - xstep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._x = _root["item" + n]._x - xstep;
n++;
}
_root.lan._x = _root.lan._x - xstep;
_root.lan2._x = _root.lan2._x - xstep;
_root.back._x = _root.back._x - xstep;
_root.tank1._x = _root.tank1._x - xstep;
_x = 200;
}
function bjdongy() {
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - ystep;
_root["shello" + i]._y = _root["shello" + i]._y - ystep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - ystep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - ystep;
_root["eshello" + i]._y = _root["eshello" + i]._y - ystep;
_root["boshell" + i]._y = _root["boshell" + i]._y - ystep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._y = _root["item" + n]._y - ystep;
n++;
}
_root.lan._y = _root.lan._y - ystep;
_root.lan2._y = _root.lan2._y - ystep;
_root.back._y = _root.back._y - ystep;
_root.tank1._y = _root.tank1._y - ystep;
_y = 150;
}
bgtf2 = 0;
bgtf = 1;
xstep = 0;
ystep = 0;
degree = 0;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
function copyshell() {
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shell, "shell" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
}
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.fashe == 0) {
guan.play();
degree = (this._rotation * Math.PI) / 180;
copyshell();
_root["shell" + _global.loop]._x = _x + (Math.cos(degree) * 20);
_root["shell" + _global.loop]._y = _y + (Math.sin(degree) * 20);
_root["shell" + _global.loop].shelldegree = degree;
_root["shell" + _global.loop].rorotation = _rotation;
_root["shell" + _global.loop].gotoAndStop(2);
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
_x = (_x + xstep);
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
_y = (_y + ystep);
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x + _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x - _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y - _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y + _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (Key.isDown(_root.a)) {
xstep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.d)) {
xstep = _root.speed;
foot.play();
}
if (Key.isDown(_root.w)) {
ystep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.s)) {
ystep = _root.speed;
foot.play();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 0) {
_root.mancontol = 1;
_visible = true;
} else {
_root.mancontol = 0;
_visible = false;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i <= 10) {
if (_root.wudi == 0) {
if (_root.deaded == 0) {
if (_root.mancontol == 1) {
if (_root["enemy" + i].mian.hitTest(_x, _y, true)) {
gotoAndStop ("dead");
_root.deaded = 1;
}
}
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.mancontol == 1) {
if (_root.wudi == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].mian.hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["eshello" + i].mian.hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["boshell" + i].mian.hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
i++;
}
}
}
}
}
Instance of Symbol 572 MovieClip "lan" in Frame 27
/* no clip actions */
Frame 28
stopAllSounds();
Frame 29
stop();
_root.mis.play();
Instance of Symbol 530 MovieClip "enemy1" in Frame 29
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy2" in Frame 29
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy11" in Frame 29
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy12" in Frame 29
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy13" in Frame 29
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy15" in Frame 29
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 239 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (_root.ecount >= 8) {
_root.compl.play();
}
}
Instance of Symbol 265 MovieClip "enemy19" in Frame 29
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy18" in Frame 29
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 545 MovieClip "tank1" in Frame 29
onClipEvent (load) {
function sstep() {
if (step > 0) {
step = step - 1;
} else {
step = 0;
}
}
function bjdongx() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - (Math.cos(degree) * step);
_root["shello" + i]._x = _root["shello" + i]._x - (Math.cos(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (Math.cos(degree) * step);
_root["item" + nn]._x = _root["item" + nn]._x - (Math.cos(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - (Math.cos(degree) * step);
_root["eshello" + i]._x = _root["eshello" + i]._x - (Math.cos(degree) * step);
i++;
}
_root.lan._x = _root.lan._x - (Math.cos(degree) * step);
_root.lan2._x = _root.lan2._x - (Math.cos(degree) * step);
_root.back._x = _root.back._x - (Math.cos(degree) * step);
}
function bjdongy() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - (Math.sin(degree) * step);
_root["shello" + i]._y = _root["shello" + i]._y - (Math.sin(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (Math.sin(degree) * step);
_root["item" + nn]._y = _root["item" + nn]._y - (Math.sin(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - (Math.sin(degree) * step);
_root["eshello" + i]._y = _root["eshello" + i]._y - (Math.sin(degree) * step);
i++;
}
_root.lan._y = _root.lan._y - (Math.sin(degree) * step);
_root.lan2._y = _root.lan2._y - (Math.sin(degree) * step);
_root.back._y = _root.back._y - (Math.sin(degree) * step);
}
_root.paodan1 = 30;
degree = 0;
_root.hp = 100;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.deaded == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
degree = (tank._rotation * Math.PI) / 180;
_x = (_x + (Math.cos(degree) * step));
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
degree = (tank._rotation * Math.PI) / 180;
_y = (_y + (Math.sin(degree) * step));
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 3;
}
if (_root["eshello" + i].hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 5;
}
i++;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root["enemy" + nn].hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x + (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y + (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan2.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan2.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
gotoAndStop ("dead");
}
}
Instance of Symbol 280 MovieClip "man" in Frame 29
onClipEvent (load) {
function sstep() {
if (xstep > 0) {
xstep = xstep - 1;
} else {
xstep = 0;
}
if (ystep > 0) {
ystep = ystep - 1;
} else {
ystep = 0;
}
}
function bjdongx() {
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - xstep;
_root["shello" + i]._x = _root["shello" + i]._x - xstep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - xstep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - xstep;
_root["eshello" + i]._x = _root["eshello" + i]._x - xstep;
_root["boshell" + i]._x = _root["boshell" + i]._x - xstep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._x = _root["item" + n]._x - xstep;
n++;
}
_root.lan._x = _root.lan._x - xstep;
_root.lan2._x = _root.lan2._x - xstep;
_root.back._x = _root.back._x - xstep;
_root.tank1._x = _root.tank1._x - xstep;
_x = 200;
}
function bjdongy() {
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - ystep;
_root["shello" + i]._y = _root["shello" + i]._y - ystep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - ystep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - ystep;
_root["eshello" + i]._y = _root["eshello" + i]._y - ystep;
_root["boshell" + i]._y = _root["boshell" + i]._y - ystep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._y = _root["item" + n]._y - ystep;
n++;
}
_root.lan._y = _root.lan._y - ystep;
_root.lan2._y = _root.lan2._y - ystep;
_root.back._y = _root.back._y - ystep;
_root.tank1._y = _root.tank1._y - ystep;
_y = 150;
}
bgtf2 = 0;
bgtf = 1;
xstep = 0;
ystep = 0;
degree = 0;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
function copyshell() {
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shell, "shell" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
}
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.fashe == 0) {
guan.play();
degree = (this._rotation * Math.PI) / 180;
copyshell();
_root["shell" + _global.loop]._x = _x + (Math.cos(degree) * 20);
_root["shell" + _global.loop]._y = _y + (Math.sin(degree) * 20);
_root["shell" + _global.loop].shelldegree = degree;
_root["shell" + _global.loop].rorotation = _rotation;
_root["shell" + _global.loop].gotoAndStop(2);
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
_x = (_x + xstep);
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
_y = (_y + ystep);
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x + _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x - _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y - _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y + _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (Key.isDown(_root.a)) {
xstep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.d)) {
xstep = _root.speed;
foot.play();
}
if (Key.isDown(_root.w)) {
ystep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.s)) {
ystep = _root.speed;
foot.play();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 0) {
_root.mancontol = 1;
_visible = true;
} else {
_root.mancontol = 0;
_visible = false;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i <= 10) {
if (_root.wudi == 0) {
if (_root.deaded == 0) {
if (_root.mancontol == 1) {
if (_root["enemy" + i].mian.hitTest(_x, _y, true)) {
gotoAndStop ("dead");
_root.deaded = 1;
}
}
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.mancontol == 1) {
if (_root.wudi == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].mian.hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["eshello" + i].mian.hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["boshell" + i].mian.hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
i++;
}
}
}
}
}
Instance of Symbol 574 MovieClip "lan" in Frame 29
/* no clip actions */
Frame 31
stop();
_root.mis.play();
Instance of Symbol 530 MovieClip "enemy4" in Frame 31
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy2" in Frame 31
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy3" in Frame 31
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy1" in Frame 31
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy5" in Frame 31
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy50" in Frame 31
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy14" in Frame 31
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy15" in Frame 31
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy16" in Frame 31
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 239 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (_root.ecount >= 10) {
_root.compl.play();
}
}
Instance of Symbol 265 MovieClip "enemy20" in Frame 31
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy21" in Frame 31
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 586 MovieClip "tank1" in Frame 31
onClipEvent (load) {
function sstep() {
if (step > 0) {
step = step - 1;
} else {
step = 0;
}
}
function bjdongx() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - (Math.cos(degree) * step);
_root["shello" + i]._x = _root["shello" + i]._x - (Math.cos(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (Math.cos(degree) * step);
_root["item" + nn]._x = _root["item" + nn]._x - (Math.cos(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - (Math.cos(degree) * step);
_root["eshello" + i]._x = _root["eshello" + i]._x - (Math.cos(degree) * step);
i++;
}
_root.lan._x = _root.lan._x - (Math.cos(degree) * step);
_root.lan2._x = _root.lan2._x - (Math.cos(degree) * step);
_root.back._x = _root.back._x - (Math.cos(degree) * step);
}
function bjdongy() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - (Math.sin(degree) * step);
_root["shello" + i]._y = _root["shello" + i]._y - (Math.sin(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (Math.sin(degree) * step);
_root["item" + nn]._y = _root["item" + nn]._y - (Math.sin(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - (Math.sin(degree) * step);
_root["eshello" + i]._y = _root["eshello" + i]._y - (Math.sin(degree) * step);
i++;
}
_root.lan._y = _root.lan._y - (Math.sin(degree) * step);
_root.lan2._y = _root.lan2._y - (Math.sin(degree) * step);
_root.back._y = _root.back._y - (Math.sin(degree) * step);
}
_root.paodan1 = 50;
degree = 0;
_root.hp = 100;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.deaded == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
degree = (tank._rotation * Math.PI) / 180;
_x = (_x + (Math.cos(degree) * step));
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
degree = (tank._rotation * Math.PI) / 180;
_y = (_y + (Math.sin(degree) * step));
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 2;
}
if (_root["eshello" + i].hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 3;
}
i++;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root["enemy" + nn].hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x + (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y + (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan2.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan2.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
gotoAndStop ("dead");
}
}
Instance of Symbol 280 MovieClip "man" in Frame 31
onClipEvent (load) {
function sstep() {
if (xstep > 0) {
xstep = xstep - 1;
} else {
xstep = 0;
}
if (ystep > 0) {
ystep = ystep - 1;
} else {
ystep = 0;
}
}
function bjdongx() {
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - xstep;
_root["shello" + i]._x = _root["shello" + i]._x - xstep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - xstep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - xstep;
_root["eshello" + i]._x = _root["eshello" + i]._x - xstep;
_root["boshell" + i]._x = _root["boshell" + i]._x - xstep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._x = _root["item" + n]._x - xstep;
n++;
}
_root.lan._x = _root.lan._x - xstep;
_root.lan2._x = _root.lan2._x - xstep;
_root.back._x = _root.back._x - xstep;
_root.tank1._x = _root.tank1._x - xstep;
_x = 200;
}
function bjdongy() {
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - ystep;
_root["shello" + i]._y = _root["shello" + i]._y - ystep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - ystep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - ystep;
_root["eshello" + i]._y = _root["eshello" + i]._y - ystep;
_root["boshell" + i]._y = _root["boshell" + i]._y - ystep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._y = _root["item" + n]._y - ystep;
n++;
}
_root.lan._y = _root.lan._y - ystep;
_root.lan2._y = _root.lan2._y - ystep;
_root.back._y = _root.back._y - ystep;
_root.tank1._y = _root.tank1._y - ystep;
_y = 150;
}
bgtf2 = 0;
bgtf = 1;
xstep = 0;
ystep = 0;
degree = 0;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
function copyshell() {
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shell, "shell" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
}
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.fashe == 0) {
guan.play();
degree = (this._rotation * Math.PI) / 180;
copyshell();
_root["shell" + _global.loop]._x = _x + (Math.cos(degree) * 20);
_root["shell" + _global.loop]._y = _y + (Math.sin(degree) * 20);
_root["shell" + _global.loop].shelldegree = degree;
_root["shell" + _global.loop].rorotation = _rotation;
_root["shell" + _global.loop].gotoAndStop(2);
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
_x = (_x + xstep);
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
_y = (_y + ystep);
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x + _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x - _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y - _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y + _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (Key.isDown(_root.a)) {
xstep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.d)) {
xstep = _root.speed;
foot.play();
}
if (Key.isDown(_root.w)) {
ystep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.s)) {
ystep = _root.speed;
foot.play();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 0) {
_root.mancontol = 1;
_visible = true;
} else {
_root.mancontol = 0;
_visible = false;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i <= 10) {
if (_root.wudi == 0) {
if (_root.deaded == 0) {
if (_root.mancontol == 1) {
if (_root["enemy" + i].mian.hitTest(_x, _y, true)) {
gotoAndStop ("dead");
_root.deaded = 1;
}
}
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.mancontol == 1) {
if (_root.wudi == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].mian.hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["eshello" + i].mian.hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["boshell" + i].mian.hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
i++;
}
}
}
}
}
Instance of Symbol 574 MovieClip "lan" in Frame 31
/* no clip actions */
Frame 33
stop();
_root.mis.play();
Instance of Symbol 530 MovieClip "enemy1" in Frame 33
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy7" in Frame 33
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy6" in Frame 33
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy5" in Frame 33
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy3" in Frame 33
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy4" in Frame 33
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy2" in Frame 33
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy49" in Frame 33
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy50" in Frame 33
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 265 MovieClip "enemy16" in Frame 33
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 239 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (_root.ecount >= 9) {
_root.compl.play();
}
}
Instance of Symbol 265 MovieClip "enemy20" in Frame 33
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 586 MovieClip "tank1" in Frame 33
onClipEvent (load) {
function sstep() {
if (step > 0) {
step = step - 1;
} else {
step = 0;
}
}
function bjdongx() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - (Math.cos(degree) * step);
_root["shello" + i]._x = _root["shello" + i]._x - (Math.cos(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (Math.cos(degree) * step);
_root["item" + nn]._x = _root["item" + nn]._x - (Math.cos(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - (Math.cos(degree) * step);
_root["eshello" + i]._x = _root["eshello" + i]._x - (Math.cos(degree) * step);
_root["boshello" + i]._x = _root["boshello" + i]._x - (Math.cos(degree) * step);
i++;
}
_root.lan._x = _root.lan._x - (Math.cos(degree) * step);
_root.lan2._x = _root.lan2._x - (Math.cos(degree) * step);
_root.back._x = _root.back._x - (Math.cos(degree) * step);
}
function bjdongy() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - (Math.sin(degree) * step);
_root["shello" + i]._y = _root["shello" + i]._y - (Math.sin(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (Math.sin(degree) * step);
_root["item" + nn]._y = _root["item" + nn]._y - (Math.sin(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - (Math.sin(degree) * step);
_root["eshello" + i]._y = _root["eshello" + i]._y - (Math.sin(degree) * step);
_root["boshello" + i]._y = _root["boshello" + i]._y - (Math.sin(degree) * step);
i++;
}
_root.lan._y = _root.lan._y - (Math.sin(degree) * step);
_root.lan2._y = _root.lan2._y - (Math.sin(degree) * step);
_root.back._y = _root.back._y - (Math.sin(degree) * step);
}
_root.paodan1 = 50;
degree = 0;
_root.hp = 100;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.deaded == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
degree = (tank._rotation * Math.PI) / 180;
_x = (_x + (Math.cos(degree) * step));
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
degree = (tank._rotation * Math.PI) / 180;
_y = (_y + (Math.sin(degree) * step));
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 2;
}
if (_root["eshello" + i].hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 3;
}
i++;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root["enemy" + nn].hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x + (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y + (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan2.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan2.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
gotoAndStop ("dead");
}
}
Instance of Symbol 280 MovieClip "man" in Frame 33
onClipEvent (load) {
function sstep() {
if (xstep > 0) {
xstep = xstep - 1;
} else {
xstep = 0;
}
if (ystep > 0) {
ystep = ystep - 1;
} else {
ystep = 0;
}
}
function bjdongx() {
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - xstep;
_root["shello" + i]._x = _root["shello" + i]._x - xstep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - xstep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - xstep;
_root["eshello" + i]._x = _root["eshello" + i]._x - xstep;
_root["boshell" + i]._x = _root["boshell" + i]._x - xstep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._x = _root["item" + n]._x - xstep;
n++;
}
_root.lan._x = _root.lan._x - xstep;
_root.lan2._x = _root.lan2._x - xstep;
_root.back._x = _root.back._x - xstep;
_root.tank1._x = _root.tank1._x - xstep;
_x = 200;
}
function bjdongy() {
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - ystep;
_root["shello" + i]._y = _root["shello" + i]._y - ystep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - ystep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - ystep;
_root["eshello" + i]._y = _root["eshello" + i]._y - ystep;
_root["boshell" + i]._y = _root["boshell" + i]._y - ystep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._y = _root["item" + n]._y - ystep;
n++;
}
_root.lan._y = _root.lan._y - ystep;
_root.lan2._y = _root.lan2._y - ystep;
_root.back._y = _root.back._y - ystep;
_root.tank1._y = _root.tank1._y - ystep;
_y = 150;
}
bgtf2 = 0;
bgtf = 1;
xstep = 0;
ystep = 0;
degree = 0;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
function copyshell() {
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shell, "shell" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
}
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.fashe == 0) {
guan.play();
degree = (this._rotation * Math.PI) / 180;
copyshell();
_root["shell" + _global.loop]._x = _x + (Math.cos(degree) * 20);
_root["shell" + _global.loop]._y = _y + (Math.sin(degree) * 20);
_root["shell" + _global.loop].shelldegree = degree;
_root["shell" + _global.loop].rorotation = _rotation;
_root["shell" + _global.loop].gotoAndStop(2);
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
_x = (_x + xstep);
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
_y = (_y + ystep);
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x + _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x - _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y - _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y + _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (Key.isDown(_root.a)) {
xstep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.d)) {
xstep = _root.speed;
foot.play();
}
if (Key.isDown(_root.w)) {
ystep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.s)) {
ystep = _root.speed;
foot.play();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 0) {
_root.mancontol = 1;
_visible = true;
} else {
_root.mancontol = 0;
_visible = false;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i <= 10) {
if (_root.wudi == 0) {
if (_root.deaded == 0) {
if (_root.mancontol == 1) {
if (_root["enemy" + i].mian.hitTest(_x, _y, true)) {
gotoAndStop ("dead");
_root.deaded = 1;
}
}
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.mancontol == 1) {
if (_root.wudi == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].mian.hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["eshello" + i].mian.hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["boshell" + i].mian.hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
i++;
}
}
}
}
}
Instance of Symbol 574 MovieClip "lan" in Frame 33
/* no clip actions */
Frame 34
stopAllSounds();
Frame 35
stop();
_root.mis.play();
Instance of Symbol 530 MovieClip "enemy1" in Frame 35
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy2" in Frame 35
onClipEvent (enterFrame) {
if ((((_x >= -50) and (_x <= 450)) and (_y >= -50)) and (_y <= 350)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy50" in Frame 35
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy49" in Frame 35
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy48" in Frame 35
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 239 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.bossbow == 1) {
_root.compl.play();
}
}
Instance of Symbol 571 MovieClip "bhpp" in Frame 35
onClipEvent (enterFrame) {
gotoAndStop(Math.abs(_root.enemy5.boss.hp / 500) * 100);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 586 MovieClip "tank1" in Frame 35
onClipEvent (load) {
function sstep() {
if (step > 0) {
step = step - 1;
} else {
step = 0;
}
}
function bjdongx() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - (Math.cos(degree) * step);
_root["shello" + i]._x = _root["shello" + i]._x - (Math.cos(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (Math.cos(degree) * step);
_root["item" + nn]._x = _root["item" + nn]._x - (Math.cos(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - (Math.cos(degree) * step);
_root["eshello" + i]._x = _root["eshello" + i]._x - (Math.cos(degree) * step);
_root["boshell" + i]._x = _root["boshell" + i]._x - (Math.cos(degree) * step);
i++;
}
_root.lan._x = _root.lan._x - (Math.cos(degree) * step);
_root.lan2._x = _root.lan2._x - (Math.cos(degree) * step);
_root.back._x = _root.back._x - (Math.cos(degree) * step);
}
function bjdongy() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - (Math.sin(degree) * step);
_root["shello" + i]._y = _root["shello" + i]._y - (Math.sin(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (Math.sin(degree) * step);
_root["item" + nn]._y = _root["item" + nn]._y - (Math.sin(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - (Math.sin(degree) * step);
_root["eshello" + i]._y = _root["eshello" + i]._y - (Math.sin(degree) * step);
_root["boshell" + i]._y = _root["boshell" + i]._y - (Math.sin(degree) * step);
i++;
}
_root.lan._y = _root.lan._y - (Math.sin(degree) * step);
_root.lan2._y = _root.lan2._y - (Math.sin(degree) * step);
_root.back._y = _root.back._y - (Math.sin(degree) * step);
}
_root.paodan1 = 50;
degree = 0;
_root.hp = 100;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.deaded == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
degree = (tank._rotation * Math.PI) / 180;
_x = (_x + (Math.cos(degree) * step));
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
degree = (tank._rotation * Math.PI) / 180;
_y = (_y + (Math.sin(degree) * step));
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 2;
}
if (_root["eshello" + i].hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 3;
}
if (_root["boshell" + i].hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 10;
}
i++;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root["enemy" + nn].hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x + (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y + (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan2.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan2.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
gotoAndStop ("dead");
}
}
Instance of Symbol 280 MovieClip "man" in Frame 35
onClipEvent (load) {
function sstep() {
if (xstep > 0) {
xstep = xstep - 1;
} else {
xstep = 0;
}
if (ystep > 0) {
ystep = ystep - 1;
} else {
ystep = 0;
}
}
function bjdongx() {
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - xstep;
_root["shello" + i]._x = _root["shello" + i]._x - xstep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - xstep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - xstep;
_root["eshello" + i]._x = _root["eshello" + i]._x - xstep;
_root["boshell" + i]._x = _root["boshell" + i]._x - xstep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._x = _root["item" + n]._x - xstep;
n++;
}
_root.lan._x = _root.lan._x - xstep;
_root.lan2._x = _root.lan2._x - xstep;
_root.back._x = _root.back._x - xstep;
_root.tank1._x = _root.tank1._x - xstep;
_x = 200;
}
function bjdongy() {
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - ystep;
_root["shello" + i]._y = _root["shello" + i]._y - ystep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - ystep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - ystep;
_root["eshello" + i]._y = _root["eshello" + i]._y - ystep;
_root["boshell" + i]._y = _root["boshell" + i]._y - ystep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._y = _root["item" + n]._y - ystep;
n++;
}
_root.lan._y = _root.lan._y - ystep;
_root.lan2._y = _root.lan2._y - ystep;
_root.back._y = _root.back._y - ystep;
_root.tank1._y = _root.tank1._y - ystep;
_y = 150;
}
bgtf2 = 0;
bgtf = 1;
xstep = 0;
ystep = 0;
degree = 0;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
function copyshell() {
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shell, "shell" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
}
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.fashe == 0) {
guan.play();
degree = (this._rotation * Math.PI) / 180;
copyshell();
_root["shell" + _global.loop]._x = _x + (Math.cos(degree) * 20);
_root["shell" + _global.loop]._y = _y + (Math.sin(degree) * 20);
_root["shell" + _global.loop].shelldegree = degree;
_root["shell" + _global.loop].rorotation = _rotation;
_root["shell" + _global.loop].gotoAndStop(2);
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
_x = (_x + xstep);
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
_y = (_y + ystep);
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x + _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x - _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y - _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y + _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (Key.isDown(_root.a)) {
xstep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.d)) {
xstep = _root.speed;
foot.play();
}
if (Key.isDown(_root.w)) {
ystep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.s)) {
ystep = _root.speed;
foot.play();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 0) {
_root.mancontol = 1;
_visible = true;
} else {
_root.mancontol = 0;
_visible = false;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i <= 10) {
if (_root.wudi == 0) {
if (_root.deaded == 0) {
if (_root.mancontol == 1) {
if (_root["enemy" + i].mian.hitTest(_x, _y, true)) {
gotoAndStop ("dead");
_root.deaded = 1;
}
}
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.mancontol == 1) {
if (_root.wudi == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].mian.hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["eshello" + i].mian.hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["boshell" + i].mian.hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
i++;
}
}
}
}
}
Instance of Symbol 574 MovieClip "lan" in Frame 35
/* no clip actions */
Frame 36
stopAllSounds();
Frame 37
stop();
_root.mis.play();
Instance of Symbol 530 MovieClip "enemy4" in Frame 37
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy2" in Frame 37
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy3" in Frame 37
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy1" in Frame 37
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy5" in Frame 37
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy10" in Frame 37
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy11" in Frame 37
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy12" in Frame 37
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy6" in Frame 37
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 239 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (_root.ecount >= 9) {
_root.compl.play();
}
}
Instance of Symbol 680 MovieClip "tank1" in Frame 37
onClipEvent (load) {
function sstep() {
if (step > 0) {
step = step - 1;
} else {
step = 0;
}
}
function bjdongx() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - (Math.cos(degree) * step);
_root["shello" + i]._x = _root["shello" + i]._x - (Math.cos(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (Math.cos(degree) * step);
_root["item" + nn]._x = _root["item" + nn]._x - (Math.cos(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - (Math.cos(degree) * step);
_root["eshello" + i]._x = _root["eshello" + i]._x - (Math.cos(degree) * step);
_root["boshell" + i]._x = _root["boshell" + i]._x - (Math.cos(degree) * step);
i++;
}
_root.lan._x = _root.lan._x - (Math.cos(degree) * step);
_root.lan2._x = _root.lan2._x - (Math.cos(degree) * step);
_root.back._x = _root.back._x - (Math.cos(degree) * step);
}
function bjdongy() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - (Math.sin(degree) * step);
_root["shello" + i]._y = _root["shello" + i]._y - (Math.sin(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (Math.sin(degree) * step);
_root["item" + nn]._y = _root["item" + nn]._y - (Math.sin(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - (Math.sin(degree) * step);
_root["eshello" + i]._y = _root["eshello" + i]._y - (Math.sin(degree) * step);
_root["boshell" + i]._y = _root["boshell" + i]._y - (Math.sin(degree) * step);
i++;
}
_root.lan._y = _root.lan._y - (Math.sin(degree) * step);
_root.lan2._y = _root.lan2._y - (Math.sin(degree) * step);
_root.back._y = _root.back._y - (Math.sin(degree) * step);
}
_root.sepao = 30;
_root.paodan1 = 50;
degree = 0;
_root.hp = 100;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.deaded == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
degree = (tank._rotation * Math.PI) / 180;
_x = (_x + (Math.cos(degree) * step));
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
degree = (tank._rotation * Math.PI) / 180;
_y = (_y + (Math.sin(degree) * step));
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 1;
}
if (_root["eshello" + i].hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 1;
}
if (_root["boshell" + i].hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 3;
}
i++;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root["enemy" + nn].hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x + (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y + (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan2.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan2.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
gotoAndStop ("dead");
}
}
Instance of Symbol 280 MovieClip "man" in Frame 37
onClipEvent (load) {
function sstep() {
if (xstep > 0) {
xstep = xstep - 1;
} else {
xstep = 0;
}
if (ystep > 0) {
ystep = ystep - 1;
} else {
ystep = 0;
}
}
function bjdongx() {
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - xstep;
_root["shello" + i]._x = _root["shello" + i]._x - xstep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - xstep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - xstep;
_root["eshello" + i]._x = _root["eshello" + i]._x - xstep;
_root["boshell" + i]._x = _root["boshell" + i]._x - xstep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._x = _root["item" + n]._x - xstep;
n++;
}
_root.lan._x = _root.lan._x - xstep;
_root.lan2._x = _root.lan2._x - xstep;
_root.back._x = _root.back._x - xstep;
_root.tank1._x = _root.tank1._x - xstep;
_x = 200;
}
function bjdongy() {
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - ystep;
_root["shello" + i]._y = _root["shello" + i]._y - ystep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - ystep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - ystep;
_root["eshello" + i]._y = _root["eshello" + i]._y - ystep;
_root["boshell" + i]._y = _root["boshell" + i]._y - ystep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._y = _root["item" + n]._y - ystep;
n++;
}
_root.lan._y = _root.lan._y - ystep;
_root.lan2._y = _root.lan2._y - ystep;
_root.back._y = _root.back._y - ystep;
_root.tank1._y = _root.tank1._y - ystep;
_y = 150;
}
bgtf2 = 0;
bgtf = 1;
xstep = 0;
ystep = 0;
degree = 0;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
function copyshell() {
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shell, "shell" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
}
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.fashe == 0) {
guan.play();
degree = (this._rotation * Math.PI) / 180;
copyshell();
_root["shell" + _global.loop]._x = _x + (Math.cos(degree) * 20);
_root["shell" + _global.loop]._y = _y + (Math.sin(degree) * 20);
_root["shell" + _global.loop].shelldegree = degree;
_root["shell" + _global.loop].rorotation = _rotation;
_root["shell" + _global.loop].gotoAndStop(2);
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
_x = (_x + xstep);
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
_y = (_y + ystep);
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x + _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x - _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y - _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y + _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (Key.isDown(_root.a)) {
xstep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.d)) {
xstep = _root.speed;
foot.play();
}
if (Key.isDown(_root.w)) {
ystep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.s)) {
ystep = _root.speed;
foot.play();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 0) {
_root.mancontol = 1;
_visible = true;
} else {
_root.mancontol = 0;
_visible = false;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i <= 10) {
if (_root.wudi == 0) {
if (_root.deaded == 0) {
if (_root.mancontol == 1) {
if (_root["enemy" + i].mian.hitTest(_x, _y, true)) {
gotoAndStop ("dead");
_root.deaded = 1;
}
}
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.mancontol == 1) {
if (_root.wudi == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].mian.hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["eshello" + i].mian.hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["boshell" + i].mian.hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["jushell" + i].mian.hitTest(this)) {
_root["jushell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
i++;
}
}
}
}
}
Instance of Symbol 686 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
_visible = true;
gotoAndStop(_root.pao);
} else {
_visible = false;
}
if (_root.pao < 1) {
_root.pao = 1;
}
if (_root.pao > 3) {
_root.pao = 3;
}
}
Frame 39
stop();
_root.mis.play();
Instance of Symbol 660 MovieClip "enemy11" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy12" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy13" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy14" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy15" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy16" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy17" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy18" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy19" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy20" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy21" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy22" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy23" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy50" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy49" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy48" in Frame 39
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 239 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.ecount >= 13) {
_root.compl.play();
}
}
Instance of Symbol 680 MovieClip "tank1" in Frame 39
onClipEvent (load) {
function sstep() {
if (step > 0) {
step = step - 1;
} else {
step = 0;
}
}
function bjdongx() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - (Math.cos(degree) * step);
_root["shello" + i]._x = _root["shello" + i]._x - (Math.cos(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (Math.cos(degree) * step);
_root["item" + nn]._x = _root["item" + nn]._x - (Math.cos(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - (Math.cos(degree) * step);
_root["eshello" + i]._x = _root["eshello" + i]._x - (Math.cos(degree) * step);
_root["boshell" + i]._x = _root["boshell" + i]._x - (Math.cos(degree) * step);
i++;
}
_root.lan._x = _root.lan._x - (Math.cos(degree) * step);
_root.lan2._x = _root.lan2._x - (Math.cos(degree) * step);
_root.back._x = _root.back._x - (Math.cos(degree) * step);
}
function bjdongy() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - (Math.sin(degree) * step);
_root["shello" + i]._y = _root["shello" + i]._y - (Math.sin(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (Math.sin(degree) * step);
_root["item" + nn]._y = _root["item" + nn]._y - (Math.sin(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - (Math.sin(degree) * step);
_root["eshello" + i]._y = _root["eshello" + i]._y - (Math.sin(degree) * step);
_root["boshell" + i]._y = _root["boshell" + i]._y - (Math.sin(degree) * step);
i++;
}
_root.lan._y = _root.lan._y - (Math.sin(degree) * step);
_root.lan2._y = _root.lan2._y - (Math.sin(degree) * step);
_root.back._y = _root.back._y - (Math.sin(degree) * step);
}
_root.sepao = 30;
_root.paodan1 = 50;
degree = 0;
_root.hp = 100;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.deaded == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
degree = (tank._rotation * Math.PI) / 180;
_x = (_x + (Math.cos(degree) * step));
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
degree = (tank._rotation * Math.PI) / 180;
_y = (_y + (Math.sin(degree) * step));
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 1;
}
if (_root["eshello" + i].hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 1;
}
if (_root["boshell" + i].hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 3;
}
i++;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root["enemy" + nn].hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x + (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y + (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan2.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan2.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
gotoAndStop ("dead");
}
}
Instance of Symbol 280 MovieClip "man" in Frame 39
onClipEvent (load) {
function sstep() {
if (xstep > 0) {
xstep = xstep - 1;
} else {
xstep = 0;
}
if (ystep > 0) {
ystep = ystep - 1;
} else {
ystep = 0;
}
}
function bjdongx() {
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - xstep;
_root["shello" + i]._x = _root["shello" + i]._x - xstep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - xstep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - xstep;
_root["eshello" + i]._x = _root["eshello" + i]._x - xstep;
_root["boshell" + i]._x = _root["boshell" + i]._x - xstep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._x = _root["item" + n]._x - xstep;
n++;
}
_root.lan._x = _root.lan._x - xstep;
_root.lan2._x = _root.lan2._x - xstep;
_root.back._x = _root.back._x - xstep;
_root.tank1._x = _root.tank1._x - xstep;
_x = 200;
}
function bjdongy() {
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - ystep;
_root["shello" + i]._y = _root["shello" + i]._y - ystep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - ystep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - ystep;
_root["eshello" + i]._y = _root["eshello" + i]._y - ystep;
_root["boshell" + i]._y = _root["boshell" + i]._y - ystep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._y = _root["item" + n]._y - ystep;
n++;
}
_root.lan._y = _root.lan._y - ystep;
_root.lan2._y = _root.lan2._y - ystep;
_root.back._y = _root.back._y - ystep;
_root.tank1._y = _root.tank1._y - ystep;
_y = 150;
}
bgtf2 = 0;
bgtf = 1;
xstep = 0;
ystep = 0;
degree = 0;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
function copyshell() {
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shell, "shell" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
}
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.fashe == 0) {
guan.play();
degree = (this._rotation * Math.PI) / 180;
copyshell();
_root["shell" + _global.loop]._x = _x + (Math.cos(degree) * 20);
_root["shell" + _global.loop]._y = _y + (Math.sin(degree) * 20);
_root["shell" + _global.loop].shelldegree = degree;
_root["shell" + _global.loop].rorotation = _rotation;
_root["shell" + _global.loop].gotoAndStop(2);
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
_x = (_x + xstep);
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
_y = (_y + ystep);
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x + _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x - _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y - _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y + _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (Key.isDown(_root.a)) {
xstep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.d)) {
xstep = _root.speed;
foot.play();
}
if (Key.isDown(_root.w)) {
ystep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.s)) {
ystep = _root.speed;
foot.play();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 0) {
_root.mancontol = 1;
_visible = true;
} else {
_root.mancontol = 0;
_visible = false;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i <= 10) {
if (_root.wudi == 0) {
if (_root.deaded == 0) {
if (_root.mancontol == 1) {
if (_root["enemy" + i].mian.hitTest(_x, _y, true)) {
gotoAndStop ("dead");
_root.deaded = 1;
}
}
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.mancontol == 1) {
if (_root.wudi == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].mian.hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["eshello" + i].mian.hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["boshell" + i].mian.hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["jushell" + i].mian.hitTest(this)) {
_root["jushell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
i++;
}
}
}
}
}
Frame 41
stop();
_root.mis.play();
Instance of Symbol 660 MovieClip "enemy12" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy13" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy14" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy16" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy17" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy4" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy3" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy1" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy5" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy21" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy22" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy20" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy19" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 660 MovieClip "enemy18" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy7" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy9" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy8" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip "enemy6" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy49" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy50" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy47" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy46" in Frame 41
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 239 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (_root.ecount >= 18) {
_root.compl.play();
}
}
Instance of Symbol 680 MovieClip "tank1" in Frame 41
onClipEvent (load) {
function sstep() {
if (step > 0) {
step = step - 1;
} else {
step = 0;
}
}
function bjdongx() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - (Math.cos(degree) * step);
_root["shello" + i]._x = _root["shello" + i]._x - (Math.cos(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (Math.cos(degree) * step);
_root["item" + nn]._x = _root["item" + nn]._x - (Math.cos(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - (Math.cos(degree) * step);
_root["eshello" + i]._x = _root["eshello" + i]._x - (Math.cos(degree) * step);
_root["boshell" + i]._x = _root["boshell" + i]._x - (Math.cos(degree) * step);
i++;
}
_root.lan._x = _root.lan._x - (Math.cos(degree) * step);
_root.lan2._x = _root.lan2._x - (Math.cos(degree) * step);
_root.back._x = _root.back._x - (Math.cos(degree) * step);
}
function bjdongy() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - (Math.sin(degree) * step);
_root["shello" + i]._y = _root["shello" + i]._y - (Math.sin(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (Math.sin(degree) * step);
_root["item" + nn]._y = _root["item" + nn]._y - (Math.sin(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - (Math.sin(degree) * step);
_root["eshello" + i]._y = _root["eshello" + i]._y - (Math.sin(degree) * step);
_root["boshell" + i]._y = _root["boshell" + i]._y - (Math.sin(degree) * step);
i++;
}
_root.lan._y = _root.lan._y - (Math.sin(degree) * step);
_root.lan2._y = _root.lan2._y - (Math.sin(degree) * step);
_root.back._y = _root.back._y - (Math.sin(degree) * step);
}
_root.sepao = 30;
_root.paodan1 = 50;
degree = 0;
_root.hp = 100;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.deaded == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
degree = (tank._rotation * Math.PI) / 180;
_x = (_x + (Math.cos(degree) * step));
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
degree = (tank._rotation * Math.PI) / 180;
_y = (_y + (Math.sin(degree) * step));
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 1;
}
if (_root["eshello" + i].hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 1;
}
if (_root["boshell" + i].hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 3;
}
i++;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root["enemy" + nn].hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x + (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y + (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan2.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan2.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
gotoAndStop ("dead");
}
}
Instance of Symbol 280 MovieClip "man" in Frame 41
onClipEvent (load) {
function sstep() {
if (xstep > 0) {
xstep = xstep - 1;
} else {
xstep = 0;
}
if (ystep > 0) {
ystep = ystep - 1;
} else {
ystep = 0;
}
}
function bjdongx() {
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - xstep;
_root["shello" + i]._x = _root["shello" + i]._x - xstep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - xstep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - xstep;
_root["eshello" + i]._x = _root["eshello" + i]._x - xstep;
_root["boshell" + i]._x = _root["boshell" + i]._x - xstep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._x = _root["item" + n]._x - xstep;
n++;
}
_root.lan._x = _root.lan._x - xstep;
_root.lan2._x = _root.lan2._x - xstep;
_root.back._x = _root.back._x - xstep;
_root.tank1._x = _root.tank1._x - xstep;
_x = 200;
}
function bjdongy() {
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - ystep;
_root["shello" + i]._y = _root["shello" + i]._y - ystep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - ystep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - ystep;
_root["eshello" + i]._y = _root["eshello" + i]._y - ystep;
_root["boshell" + i]._y = _root["boshell" + i]._y - ystep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._y = _root["item" + n]._y - ystep;
n++;
}
_root.lan._y = _root.lan._y - ystep;
_root.lan2._y = _root.lan2._y - ystep;
_root.back._y = _root.back._y - ystep;
_root.tank1._y = _root.tank1._y - ystep;
_y = 150;
}
bgtf2 = 0;
bgtf = 1;
xstep = 0;
ystep = 0;
degree = 0;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
function copyshell() {
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shell, "shell" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
}
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.fashe == 0) {
guan.play();
degree = (this._rotation * Math.PI) / 180;
copyshell();
_root["shell" + _global.loop]._x = _x + (Math.cos(degree) * 20);
_root["shell" + _global.loop]._y = _y + (Math.sin(degree) * 20);
_root["shell" + _global.loop].shelldegree = degree;
_root["shell" + _global.loop].rorotation = _rotation;
_root["shell" + _global.loop].gotoAndStop(2);
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
_x = (_x + xstep);
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
_y = (_y + ystep);
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x + _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x - _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y - _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y + _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (Key.isDown(_root.a)) {
xstep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.d)) {
xstep = _root.speed;
foot.play();
}
if (Key.isDown(_root.w)) {
ystep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.s)) {
ystep = _root.speed;
foot.play();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 0) {
_root.mancontol = 1;
_visible = true;
} else {
_root.mancontol = 0;
_visible = false;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i <= 10) {
if (_root.wudi == 0) {
if (_root.deaded == 0) {
if (_root.mancontol == 1) {
if (_root["enemy" + i].mian.hitTest(_x, _y, true)) {
gotoAndStop ("dead");
_root.deaded = 1;
}
}
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.mancontol == 1) {
if (_root.wudi == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].mian.hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["eshello" + i].mian.hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["boshell" + i].mian.hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["jushell" + i].mian.hitTest(this)) {
_root["jushell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
i++;
}
}
}
}
}
Frame 42
stopAllSounds();
Frame 43
stop();
_root.mis.play();
Instance of Symbol 237 MovieClip "enemy50" in Frame 43
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy49" in Frame 43
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy48" in Frame 43
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy47" in Frame 43
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy46" in Frame 43
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy45" in Frame 43
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy44" in Frame 43
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 237 MovieClip "enemy43" in Frame 43
onClipEvent (enterFrame) {
if ((((_x >= -10) and (_x <= 410)) and (_y >= -10)) and (_y <= 310)) {
gotoAndStop (2);
}
}
Instance of Symbol 239 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (_root.bossbow == 1) {
_root.gotoAndStop("win");
}
}
Instance of Symbol 571 MovieClip "bhpp" in Frame 43
onClipEvent (enterFrame) {
gotoAndStop(Math.abs(_root.enemy5.boss.hp / 1000) * 100);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 680 MovieClip "tank1" in Frame 43
onClipEvent (load) {
function sstep() {
if (step > 0) {
step = step - 1;
} else {
step = 0;
}
}
function bjdongx() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - (Math.cos(degree) * step);
_root["shello" + i]._x = _root["shello" + i]._x - (Math.cos(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (Math.cos(degree) * step);
_root["item" + nn]._x = _root["item" + nn]._x - (Math.cos(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - (Math.cos(degree) * step);
_root["eshello" + i]._x = _root["eshello" + i]._x - (Math.cos(degree) * step);
_root["boshell" + i]._x = _root["boshell" + i]._x - (Math.cos(degree) * step);
_root["jushell" + i]._x = _root["jushell" + i]._x - (Math.cos(degree) * step);
i++;
}
_root.lan._x = _root.lan._x - (Math.cos(degree) * step);
_root.lan2._x = _root.lan2._x - (Math.cos(degree) * step);
_root.back._x = _root.back._x - (Math.cos(degree) * step);
}
function bjdongy() {
degree = (tank._rotation * Math.PI) / 180;
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - (Math.sin(degree) * step);
_root["shello" + i]._y = _root["shello" + i]._y - (Math.sin(degree) * step);
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (Math.sin(degree) * step);
_root["item" + nn]._y = _root["item" + nn]._y - (Math.sin(degree) * step);
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - (Math.sin(degree) * step);
_root["eshello" + i]._y = _root["eshello" + i]._y - (Math.sin(degree) * step);
_root["boshell" + i]._y = _root["boshell" + i]._y - (Math.sin(degree) * step);
_root["jushell" + i]._y = _root["jushell" + i]._y - (Math.sin(degree) * step);
i++;
}
_root.lan._y = _root.lan._y - (Math.sin(degree) * step);
_root.lan2._y = _root.lan2._y - (Math.sin(degree) * step);
_root.back._y = _root.back._y - (Math.sin(degree) * step);
}
_root.sepao = 30;
_root.paodan1 = 50;
degree = 0;
_root.hp = 100;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.deaded == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
degree = (tank._rotation * Math.PI) / 180;
_x = (_x + (Math.cos(degree) * step));
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
degree = (tank._rotation * Math.PI) / 180;
_y = (_y + (Math.sin(degree) * step));
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 1;
}
if (_root["eshello" + i].hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 1;
}
if (_root["boshell" + i].hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 3;
}
if (_root["jushell" + i].hitTest(this)) {
_root["jushell" + i].gotoAndPlay("bow");
_root.soushang.play();
_root.hp = _root.hp - 10;
}
i++;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root["enemy" + nn].hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x + (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
_root["enemy" + nn]._x = _root["enemy" + nn]._x - (_root.speed * 2);
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y - (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root["enemy" + nn].hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
_root["enemy" + nn]._y = _root["enemy" + nn]._y + (_root.speed * 2);
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
if (_root.lan2.hitTest(_x + 230, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan2.hitTest(_x - 230, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
step = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y - 60, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan2.hitTest(_x, _y + 60, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
step = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
gotoAndStop ("dead");
}
}
Instance of Symbol 280 MovieClip "man" in Frame 43
onClipEvent (load) {
function sstep() {
if (xstep > 0) {
xstep = xstep - 1;
} else {
xstep = 0;
}
if (ystep > 0) {
ystep = ystep - 1;
} else {
ystep = 0;
}
}
function bjdongx() {
i = 0;
while (i <= 50) {
_root["shell" + i]._x = _root["shell" + i]._x - xstep;
_root["shello" + i]._x = _root["shello" + i]._x - xstep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - xstep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._x = _root["eshell" + i]._x - xstep;
_root["eshello" + i]._x = _root["eshello" + i]._x - xstep;
_root["boshell" + i]._x = _root["boshell" + i]._x - xstep;
_root["jushell" + i]._x = _root["jushell" + i]._x - xstep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._x = _root["item" + n]._x - xstep;
n++;
}
_root.lan._x = _root.lan._x - xstep;
_root.lan2._x = _root.lan2._x - xstep;
_root.back._x = _root.back._x - xstep;
_root.tank1._x = _root.tank1._x - xstep;
_x = 200;
}
function bjdongy() {
i = 0;
while (i <= 50) {
_root["shell" + i]._y = _root["shell" + i]._y - ystep;
_root["shello" + i]._y = _root["shello" + i]._y - ystep;
i++;
}
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - ystep;
nn++;
}
i = 0;
while (i <= 50) {
_root["eshell" + i]._y = _root["eshell" + i]._y - ystep;
_root["eshello" + i]._y = _root["eshello" + i]._y - ystep;
_root["boshell" + i]._y = _root["boshell" + i]._y - ystep;
_root["jushell" + i]._y = _root["jushell" + i]._y - ystep;
i++;
}
n = 0;
while (n <= 50) {
_root["item" + n]._y = _root["item" + n]._y - ystep;
n++;
}
_root.lan._y = _root.lan._y - ystep;
_root.lan2._y = _root.lan2._y - ystep;
_root.back._y = _root.back._y - ystep;
_root.tank1._y = _root.tank1._y - ystep;
_y = 150;
}
bgtf2 = 0;
bgtf = 1;
xstep = 0;
ystep = 0;
degree = 0;
wd = this._width;
setInterval(sstep, 100);
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
function copyshell() {
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shell, "shell" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
}
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.fashe == 0) {
guan.play();
degree = (this._rotation * Math.PI) / 180;
copyshell();
_root["shell" + _global.loop]._x = _x + (Math.cos(degree) * 20);
_root["shell" + _global.loop]._y = _y + (Math.sin(degree) * 20);
_root["shell" + _global.loop].shelldegree = degree;
_root["shell" + _global.loop].rorotation = _rotation;
_root["shell" + _global.loop].gotoAndStop(2);
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_x < 20) {
_x = 20;
}
if (_x > 380) {
_x = 380;
}
if (_y < 20) {
_y = 20;
}
if (_y > 280) {
_y = 280;
}
if (bgtf == 1) {
bjdongx();
} else {
_x = (_x + xstep);
if (_root.back._x >= -5) {
if (_x > 200) {
bjdongx();
}
}
if (_root.back._x <= ((-_root.back._width) + 400)) {
if (_x < 200) {
bjdongx();
}
}
}
if (bgtf2 == 1) {
bjdongy();
} else {
_y = (_y + ystep);
if (_root.back._y >= -10) {
if (_y > 150) {
bjdongy();
}
}
if (_root.back._y <= ((-_root.back._height) + 300)) {
if (_y < 150) {
bjdongy();
}
}
}
if ((_root.back._x >= -5) or (_root.back._x <= ((-_root.back._width) + 400))) {
bgtf = 0;
} else {
bgtf = 1;
}
if ((_root.back._y >= -10) or (_root.back._y <= ((-_root.back._height) + 300))) {
bgtf2 = 0;
} else {
bgtf2 = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_x + _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x + _root.speed;
_root.lan2._x = _root.lan2._x + _root.speed;
_root.back._x = _root.back._x + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x + _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x + _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x + _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x - _root.speed);
}
}
if (_root.lan.hitTest(_x - _root.sss, _y, true)) {
if (bgtf == 1) {
_root.lan._x = _root.lan._x - _root.speed;
_root.lan2._x = _root.lan2._x - _root.speed;
_root.back._x = _root.back._x - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._x = _root["enemy" + nn]._x - _root.speed;
_root["item" + nn]._x = _root["item" + nn]._x - _root.speed;
nn++;
}
_root.tank1._x = _root.tank1._x - _root.speed;
xstep = 0;
ystep = 0;
} else {
_x = (_x + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y - _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y - _root.speed;
_root.lan2._y = _root.lan2._y - _root.speed;
_root.back._y = _root.back._y - _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y - _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y - _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y - _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y + _root.speed);
}
}
if (_root.lan.hitTest(_x, _y + _root.sss, true)) {
if (bgtf2 == 1) {
_root.lan._y = _root.lan._y + _root.speed;
_root.lan2._y = _root.lan2._y + _root.speed;
_root.back._y = _root.back._y + _root.speed;
nn = 0;
while (nn <= 50) {
_root["enemy" + nn]._y = _root["enemy" + nn]._y + _root.speed;
_root["item" + nn]._y = _root["item" + nn]._y + _root.speed;
nn++;
}
_root.tank1._y = _root.tank1._y + _root.speed;
xstep = 0;
ystep = 0;
} else {
_y = (_y - _root.speed);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if ((_root.mancontol == 1) and (_root.deaded == 0)) {
if (Key.isDown(_root.a)) {
xstep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.d)) {
xstep = _root.speed;
foot.play();
}
if (Key.isDown(_root.w)) {
ystep = -_root.speed;
foot.play();
}
if (Key.isDown(_root.s)) {
ystep = _root.speed;
foot.play();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.usetank == 0) {
_root.mancontol = 1;
_visible = true;
} else {
_root.mancontol = 0;
_visible = false;
}
}
onClipEvent (enterFrame) {
i = 0;
while (i <= 10) {
if (_root.wudi == 0) {
if (_root.deaded == 0) {
if (_root.mancontol == 1) {
if (_root["enemy" + i].mian.hitTest(_x, _y, true)) {
gotoAndStop ("dead");
_root.deaded = 1;
}
}
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.mancontol == 1) {
if (_root.wudi == 0) {
i = 0;
while (i < 50) {
if (_root["eshell" + i].mian.hitTest(this)) {
_root["eshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["eshello" + i].mian.hitTest(this)) {
_root["eshello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["boshell" + i].mian.hitTest(this)) {
_root["boshell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
if (_root["jushell" + i].mian.hitTest(this)) {
_root["jushell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
_root.deaded = 1;
}
i++;
}
}
}
}
}
Frame 51
stopAllSounds();
Frame 52
stop();
Frame 59
stop();
Symbol 25 MovieClip Frame 50
_parent.gotoAndPlay("bow");
Symbol 26 MovieClip [eshell] Frame 1
stop();
Symbol 26 MovieClip [eshell] Frame 2
stop();
Instance of Symbol 25 MovieClip "mian" in Symbol 26 MovieClip [eshell] Frame 2
onClipEvent (enterFrame) {
if (_root.lan.hitTest(_parent._x, _parent._y, true)) {
_parent.gotoAndPlay("bow");
}
if ((((_parent._x > 400) or (_parent._x < 0)) or (_parent._y > 300)) or (_parent._y < 0)) {
_parent.gotoAndPlay("bow");
}
}
Symbol 26 MovieClip [eshell] Frame 15
stop();
removeMovieClip(this);
Symbol 26 MovieClip [eshell] Frame 20
stop();
removeMovieClip(this);
Symbol 41 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 50
_root.play();
Symbol 86 Button
on (release) {
_root.gotoAndPlay("stage1");
}
Symbol 87 Button
on (release) {
_root.gotoAndStop("help");
}
Symbol 88 Button
on (release) {
_root.gotoAndPlay(6);
}
Symbol 104 MovieClip Frame 10
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 4
stop();
Instance of Symbol 105 MovieClip in Symbol 106 MovieClip Frame 1
onClipEvent (mouseUp) {
if (_currentframe == 1) {
play();
}
}
Symbol 107 Button
on (release) {
getURL ("http://www.loadfreegames.com", _blank);
}
Symbol 117 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 131 Button
on (release) {
cla();
ltd._visible = true;
var ms = new LoadVars();
if (num < tal) {
ms.load("http://www.loadfreegames.com/arcadelist_com/upload/TruthBattle/msg.asp?page=" + nxt);
} else {
ms.load("http://www.loadfreegames.com/arcadelist_com/upload/TruthBattle/msg.asp?page=" + tal);
}
ms.onLoad = function (success) {
if (success) {
ltd._visible = false;
trace("OK");
num = ms.num;
nxt = ms.nxt;
tal = ms.tal;
i = 1;
while (i < 6) {
cx = "um" + i;
cs = "sc" + i;
cd = "dat" + i;
cn = "sn" + i;
_root["sn" + i] = ms[cn];
_root["um" + i] = ms[cx];
_root["sc" + i] = ms[cs];
_root["dat" + i] = ms[cd];
i++;
}
} else {
ltd._visible = true;
trace("FAI");
}
};
}
Symbol 132 Button
on (release) {
cla();
ltd._visible = true;
var ms = new LoadVars();
if (num > 1) {
ms.load("http://www.loadfreegames.com/arcadelist_com/upload/TruthBattle/msg.asp?page=" + (num - 1));
} else {
ms.load("http://www.loadfreegames.com/arcadelist_com/upload/TruthBattle/msg.asp?page=1", 0);
}
ms.onLoad = function (success) {
if (success) {
ltd._visible = false;
trace("OK");
num = ms.num;
tal = ms.tal;
i = 1;
while (i < 6) {
cx = "um" + i;
cs = "sc" + i;
cd = "dat" + i;
cn = "sn" + i;
_root["sn" + i] = ms[cn];
_root["um" + i] = ms[cx];
_root["sc" + i] = ms[cs];
_root["dat" + i] = ms[cd];
i++;
}
nxt = ms.nxt;
} else {
ltd._visible = true;
trace("FAI");
}
};
}
Symbol 172 MovieClip Frame 780
_visible = false;
Symbol 173 MovieClip Frame 1
function cla() {
i = 1;
while (i < 6) {
_root["sn" + i] = "";
_root["um" + i] = "";
_root["sc" + i] = "";
_root["dat" + i] = "";
i++;
}
}
System.useCodepage = true;
_root.un = 0;
var ms = new LoadVars();
ms.load("http://www.loadfreegames.com/arcadelist_com/upload/TruthBattle/msg.asp");
ms.onLoad = function (success) {
if (success) {
trace("OK");
ltd._visible = false;
_root.un = 1;
num = ms.num;
tal = ms.tal;
nxt = ms.nxt;
i = 1;
while (i < 6) {
cn = "sn" + i;
cx = "um" + i;
cs = "sc" + i;
cd = "dat" + i;
_root["sn" + i] = ms[cn];
_root["um" + i] = ms[cx];
_root["sc" + i] = ms[cs];
_root["dat" + i] = ms[cd];
i++;
}
} else {
ltd._visible = true;
trace("FAI");
}
};
stop();
Instance of Symbol 119 MovieClip in Symbol 173 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.sn1 == undefined) {
_root.sn1 = "";
}
if (_root.sn2 == undefined) {
_root.sn2 = "";
}
if (_root.sn3 == undefined) {
_root.sn3 = "";
}
if (_root.sn4 == undefined) {
_root.sn4 = "";
}
if (_root.sn5 == undefined) {
_root.sn5 = "";
}
if (_root.sn6 == undefined) {
_root.sn6 = "";
}
if (_root.um1 == undefined) {
_root.um1 = "";
}
if (_root.um2 == undefined) {
_root.um2 = "";
}
if (_root.um3 == undefined) {
_root.um3 = "";
}
if (_root.um4 == undefined) {
_root.um4 = "";
}
if (_root.um5 == undefined) {
_root.um5 = "";
}
if (_root.um6 == undefined) {
_root.um6 = "";
}
if (_root.sc1 == undefined) {
_root.sc1 = "";
}
if (_root.sc2 == undefined) {
_root.sc2 = "";
}
if (_root.sc3 == undefined) {
_root.sc3 = "";
}
if (_root.sc4 == undefined) {
_root.sc4 = "";
}
if (_root.sc5 == undefined) {
_root.sc5 = "";
}
if (_root.sc6 == undefined) {
_root.sc6 = "";
}
if (_root.dat1 == undefined) {
_root.dat1 = "";
}
if (_root.dat2 == undefined) {
_root.dat2 = "";
}
if (_root.dat3 == undefined) {
_root.dat3 = "";
}
if (_root.dat4 == undefined) {
_root.dat4 = "";
}
if (_root.dat5 == undefined) {
_root.dat5 = "";
}
if (_root.dat6 == undefined) {
_root.dat6 = "";
}
}
Symbol 175 Button
on (release) {
nextFrame();
}
Symbol 176 Button
on (release) {
_root.gotoAndStop("kkk");
}
Symbol 203 Button
on (release) {
_root.gotoAndPlay("stage1");
}
Symbol 204 Button
on (release) {
gotoAndStop (1);
}
Symbol 224 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 2
randd = random(100);
Symbol 235 MovieClip Frame 4
_global.iloop = _global.iloop + 1;
if (randd <= 30) {
duplicateMovieClip (_root.items, "item" + _global.iloop, _global.iloop);
_root["item" + _global.iloop]._x = _parent._parent._x;
_root["item" + _global.iloop]._y = _parent._parent._y;
}
if ((randd > 30) and (randd <= 50)) {
duplicateMovieClip (_root.itemg, "item" + _global.iloop, _global.iloop);
_root["item" + _global.iloop]._x = _parent._parent._x;
_root["item" + _global.iloop]._y = _parent._parent._y;
}
if ((randd > 50) and (randd <= 70)) {
duplicateMovieClip (_root.iteml, "item" + _global.iloop, _global.iloop);
_root["item" + _global.iloop]._x = _parent._parent._x;
_root["item" + _global.iloop]._y = _parent._parent._y;
}
if (randd > 70) {
duplicateMovieClip (_root.itemp, "item" + _global.iloop, _global.iloop);
_root["item" + _global.iloop]._x = _parent._parent._x;
_root["item" + _global.iloop]._y = _parent._parent._y;
}
Symbol 235 MovieClip Frame 9
stop();
_parent.lock = 1;
_parent.fashele = 1;
_parent.fashe = 1;
_parent._parent._x = -10000;
_parent._parent._y = -10000;
Symbol 236 MovieClip Frame 1
rad = random(100);
rdegree = random(180) - random(90);
fashele = 0;
Symbol 236 MovieClip Frame 25
gotoAndPlay (1);
Instance of Symbol 235 MovieClip in Symbol 236 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_parent.rad > 60) {
_rotation = _parent.guns._rotation;
} else {
_rotation = rdegree;
}
degree = (this._rotation * Math.PI) / 180;
if (_parent.rad < 90) {
_parent._x = _parent._x + (Math.cos(degree) * _parent.step);
_parent._y = _parent._y + (Math.sin(degree) * _parent.step);
}
}
onClipEvent (load) {
_parent.rad = 0;
}
Instance of Symbol 236 MovieClip in Symbol 237 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["shell" + i].mian.hitTest(this)) {
_root["shell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
}
if (_root["shello" + i].mian.hitTest(this)) {
_root["shello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
}
if (_root["shellp" + i].mian.hitTest(this)) {
_root["shellp" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
}
if (_root["arm" + i].mian.hitTest(this)) {
_root["arm" + i].gotoAndStop("bow");
gotoAndStop ("dead");
}
if (_root["armp" + i].mian.hitTest(this)) {
_root["armp" + i].gotoAndStop("bow");
gotoAndStop ("dead");
}
if (_root["se" + i].mian.hitTest(this)) {
_root["se" + i].gotoAndStop("bow");
gotoAndStop ("dead");
}
i++;
}
}
}
onClipEvent (enterFrame) {
_parent._visible = true;
}
Symbol 255 MovieClip Frame 6
stop();
Symbol 262 MovieClip Frame 1
stop();
_parent.fashe = 0;
Symbol 262 MovieClip Frame 2
_parent.fashe = 1;
Symbol 262 MovieClip Frame 3
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshell, "eshell" + _global.lloop, _global.lloop);
degree = (_parent._rotation * Math.PI) / 180;
_root["eshell" + _global.lloop]._x = _parent._parent._x + (_width * Math.cos(degree));
_root["eshell" + _global.lloop]._y = _parent._parent._y + (_width * Math.sin(degree));
_root["eshell" + _global.lloop].shelldegree = degree;
_root["eshell" + _global.lloop].dorotation = _parent._rotation;
_root["eshell" + _global.lloop].gotoAndStop(2);
Symbol 262 MovieClip Frame 20
gotoAndStop (1);
Symbol 263 MovieClip Frame 2
randd = random(100);
Symbol 263 MovieClip Frame 4
if (_parent.rad > 80) {
_global.iloop = _global.iloop + 1;
if (randd < 30) {
duplicateMovieClip (_root.items, "item" + _global.iloop, _global.iloop);
_root["item" + _global.iloop]._x = _parent._parent._x;
_root["item" + _global.iloop]._y = _parent._parent._y;
}
if ((randd > 30) and (randd < 50)) {
duplicateMovieClip (_root.itemg, "item" + _global.iloop, _global.iloop);
_root["item" + _global.iloop]._x = _parent._parent._x;
_root["item" + _global.iloop]._y = _parent._parent._y;
}
if ((randd > 50) and (randd < 70)) {
duplicateMovieClip (_root.iteml, "item" + _global.iloop, _global.iloop);
_root["item" + _global.iloop]._x = _parent._parent._x;
_root["item" + _global.iloop]._y = _parent._parent._y;
}
if (randd > 70) {
duplicateMovieClip (_root.itemp, "item" + _global.iloop, _global.iloop);
_root["item" + _global.iloop]._x = _parent._parent._x;
_root["item" + _global.iloop]._y = _parent._parent._y;
}
}
Symbol 263 MovieClip Frame 8
_root.ecount = _root.ecount + 1;
Symbol 263 MovieClip Frame 9
_root.score = _root.score + 100;
Symbol 263 MovieClip Frame 11
_parent.fashele = 1;
_parent.fashe = 1;
_parent._parent.unloadMovie();
_parent._parent.removeMovieClip();
_parent._parent.gotoAndStop(1);
_parent._parent._visible = false;
_parent._parent._x = -5000;
_parent._parent._y = -5000;
Symbol 263 MovieClip Frame 12
stop();
Symbol 264 MovieClip Frame 1
rad = random(100);
radpox = random(500);
radpoy = random(500);
Symbol 264 MovieClip Frame 20
gotoAndPlay (1);
Symbol 265 MovieClip Frame 1
stop();
Instance of Symbol 264 MovieClip in Symbol 265 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
ang = (aimx - _parent._x) / (_parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (rad > 10) {
if (fashe == 0) {
guan.play();
_parent.fashele = 1;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (rad > 60) {
if (_x < aimx) {
_parent._x = _parent._x + speed;
}
if (_x > aimx) {
_parent._x = _parent._x - speed;
}
if (_y > aimy) {
_parent._y = _parent._y - speed;
}
if (_y < aimy) {
_parent._y = _parent._y + speed;
}
}
if (rad < 40) {
if (_x < aimx) {
_parent._x = _parent._x - speed;
}
if (_x > aimx) {
_parent._x = _parent._x + speed;
}
if (_y > aimy) {
_parent._y = _parent._y + speed;
}
if (_y < aimy) {
_parent._y = _parent._y - speed;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["shell" + i].mian.hitTest(this)) {
_root["shell" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
}
if (_root["shello" + i].mian.hitTest(this)) {
_root["shello" + i].gotoAndPlay("bow");
gotoAndStop ("dead");
}
if (_root["armp" + i].mian.hitTest(this)) {
_root["armp" + i].gotoAndStop("bow");
gotoAndStop ("dead");
}
if (_root["se" + i].mian.hitTest(this)) {
_root["se" + i].gotoAndStop("bow");
gotoAndStop ("dead");
}
if (_root["arm" + i].mian.hitTest(this)) {
_root["arm" + i].gotoAndStop("bow");
hp = hp - 50;
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.tank1.hitTest(_parent._x, _parent._y, true)) {
gotoAndStop ("dead");
}
}
if (_root.lan.hitTest(_parent._x + _root.sss, _parent._y, true)) {
_parent._x = _parent._x - 10;
}
if (_root.lan.hitTest(_parent._x - _root.sss, _parent._y, true)) {
_parent._x = _parent._x + 10;
}
if (_root.lan.hitTest(_parent._x, _parent._y - _root.sss, true)) {
_parent._y = _parent._y + 10;
}
if (_root.lan.hitTest(_parent._x, _parent._y + _parent._root.sss, true)) {
_parent._y = _parent._y - 10;
}
if (_root.lan2.hitTest(_parent._x + _root.sss, _parent._y, true)) {
_parent._x = _parent._x - 10;
}
if (_root.lan2.hitTest(_parent._x - _root.sss, _parent._y, true)) {
_parent._x = _parent._x + 10;
}
if (_root.lan2.hitTest(_parent._x, _parent._y - _root.sss, true)) {
_parent._y = _parent._y + 10;
}
if (_root.lan2.hitTest(_parent._x, _parent._y + _root.sss, true)) {
_parent._y = _parent._y - 10;
}
if (_parent._x < (_root.back._x + 10)) {
_parent._x = _parent._x + 10;
}
if (_parent._x > ((_root.back._width + _root.back._x) - 20)) {
_parent._x = _parent._x - 10;
}
if (_parent._y < (_root.back._y + 10)) {
_parent._y = _parent._y + 10;
}
if (_parent._y > ((_root.back._height + _root.back._y) - 20)) {
_parent._y = _parent._y - 10;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
gotoAndStop ("dead");
}
}
onClipEvent (load) {
hp = 100;
speed = 1.5;
rad = 0;
aimx = 0;
aimy = 0;
radpox = 0;
radpoy = 0;
}
onClipEvent (enterFrame) {
_parent._visible = true;
}
Symbol 272 MovieClip Frame 6
stop();
Symbol 274 MovieClip Frame 1
stop();
_root.fashe = 0;
Symbol 274 MovieClip Frame 2
_root.fashe = 1;
Symbol 274 MovieClip Frame 15
gotoAndStop (1);
Symbol 276 MovieClip Frame 1
_root.deaded = 1;
Symbol 276 MovieClip Frame 9
_root.wudi = 1;
Symbol 276 MovieClip Frame 34
if (_root.guy > 0) {
_root.guy = _root.guy - 1;
_root.guylose.gotoAndPlay("lose");
_parent.gotoAndPlay("\u590D\u6D3B");
} else {
_root.gotoAndStop("gameover");
}
Symbol 276 MovieClip Frame 38
Symbol 276 MovieClip Frame 40
stop();
Symbol 280 MovieClip Frame 1
stop();
_root.wudi = 0;
Symbol 280 MovieClip Frame 20
gotoAndPlay (1);
Symbol 280 MovieClip Frame 30
_root.usetank = 1;
_root.shangche = 1;
Symbol 280 MovieClip Frame 41
gotoAndStop (1);
Symbol 280 MovieClip Frame 70
_root.wudi = 1;
Symbol 280 MovieClip Frame 71
_root.wudi = 1;
Symbol 280 MovieClip Frame 72
_root.wudi = 1;
Symbol 280 MovieClip Frame 73
_root.wudi = 1;
Symbol 280 MovieClip Frame 89
_root.deaded = 0;
Symbol 280 MovieClip Frame 90
_root.usetank = 0;
_root.shangche = 0;
_root.mancontol = 1;
Symbol 280 MovieClip Frame 195
gotoAndStop (1);
Symbol 288 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 7
stop();
_parent.removeMovieClip();
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 2
stop();
Instance of Symbol 25 MovieClip "mian" in Symbol 302 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.lan.hitTest(_parent._x, _parent._y, true)) {
_parent.gotoAndStop("bow");
}
if ((((_parent._x > 400) or (_parent._x < 0)) or (_parent._y > 300)) or (_parent._y < 0)) {
_parent.gotoAndPlay("bow");
}
}
Symbol 302 MovieClip Frame 20
stop();
removeMovieClip(this);
Symbol 306 MovieClip Frame 7
stop();
_parent.removeMovieClip();
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 2
stop();
Instance of Symbol 25 MovieClip "mian" in Symbol 307 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.lan.hitTest(_parent._x, _parent._y, true)) {
_parent.gotoAndStop("bow");
}
if ((((_parent._x > 400) or (_parent._x < 0)) or (_parent._y > 300)) or (_parent._y < 0)) {
_parent.gotoAndPlay("bow");
}
}
Symbol 307 MovieClip Frame 20
stop();
removeMovieClip(this);
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 2
stop();
Instance of Symbol 25 MovieClip "mian" in Symbol 309 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.lan.hitTest(_parent._x, _parent._y, true)) {
_parent.gotoAndStop("bow");
}
if ((((_parent._x > 400) or (_parent._x < 0)) or (_parent._y > 300)) or (_parent._y < 0)) {
_parent.gotoAndPlay("bow");
}
}
Symbol 309 MovieClip Frame 20
stop();
removeMovieClip(this);
Symbol 316 MovieClip Frame 5
_parent.removeMovieClip();
Symbol 317 MovieClip Frame 1
stop();
Instance of Symbol 25 MovieClip "mian" in Symbol 317 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.lan.hitTest(_parent._x, _parent._y, true)) {
_parent.gotoAndStop("bow");
}
if ((((_parent._x > 400) or (_parent._x < 0)) or (_parent._y > 300)) or (_parent._y < 0)) {
_parent.gotoAndPlay("bow");
}
}
Symbol 322 Button
on (keyPress "<Space>") {
if (_root.deaded == 0) {
if (_root.shangche == 0) {
if (_root.man.hitTest(_root.tank1._x, _root.tank1._y, true)) {
_root.man.gotoAndPlay("\u4E0A\u8F66");
}
}
}
if (_root.deaded == 0) {
if (_root.shangche == 1) {
_root.usetank = 0;
_root.man._x = _root.tank1._x;
_root.man._y = _root.tank1._y;
_root.shangche = 0;
}
}
}
Symbol 346 MovieClip Frame 4
_root.score = _root.score + 1000;
Symbol 346 MovieClip Frame 20
stop();
_parent.removeMovieClip(this);
Symbol 347 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 3
_root.guy = _root.guy + 1;
Symbol 362 MovieClip Frame 18
stop();
_parent.removeMovieClip(this);
Symbol 363 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 3
if (_root.usetank == 1) {
_root.hp = 100;
} else {
_root.score = _root.score + 500;
}
Symbol 365 MovieClip Frame 14
stop();
_parent.removeMovieClip(this);
Symbol 366 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 3
if (_root.usetank == 1) {
_root.paodan1 = _root.paodan1 + 10;
} else {
_root.score = _root.score + 500;
}
Symbol 387 MovieClip Frame 20
stop();
_parent.removeMovieClip(this);
Symbol 388 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 16
stop();
_parent.removeMovieClip();
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 2
stop();
Instance of Symbol 25 MovieClip "mian" in Symbol 431 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent.speed = _parent.speed + 1;
if (_root.lan.hitTest(_parent._x, _parent._y, true)) {
_parent.gotoAndPlay("bow");
}
if ((((_parent._x > 400) or (_parent._x < 0)) or (_parent._y > 300)) or (_parent._y < 0)) {
_parent.gotoAndPlay("bow");
}
}
Symbol 431 MovieClip Frame 15
_root._x = _root._x + 3;
Symbol 431 MovieClip Frame 16
_root._x = _root._x - 3;
Symbol 431 MovieClip Frame 17
_root._y = _root._y + 3;
Symbol 431 MovieClip Frame 18
_root._y = _root._y - 3;
Symbol 431 MovieClip Frame 23
_root._x = 0;
_root._y = 0;
Symbol 431 MovieClip Frame 30
stop();
removeMovieClip(this);
Symbol 434 MovieClip Frame 11
stop();
_parent.removeMovieClip();
Symbol 435 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 2
stop();
Instance of Symbol 25 MovieClip "mian" in Symbol 435 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.lan.hitTest(_parent._x, _parent._y, true)) {
_parent.gotoAndPlay("bow");
}
if ((((_parent._x > 400) or (_parent._x < 0)) or (_parent._y > 300)) or (_parent._y < 0)) {
_parent.gotoAndPlay("bow");
}
}
Symbol 435 MovieClip Frame 15
_root._x = _root._x + 3;
Symbol 435 MovieClip Frame 16
_root._x = _root._x - 3;
Symbol 435 MovieClip Frame 17
_root._y = _root._y + 3;
Symbol 435 MovieClip Frame 18
_root._y = _root._y - 3;
Symbol 435 MovieClip Frame 23
_root._x = 0;
_root._y = 0;
Symbol 435 MovieClip Frame 30
stop();
removeMovieClip(this);
Symbol 437 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 2
stop();
Instance of Symbol 25 MovieClip "mian" in Symbol 437 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.lan.hitTest(_parent._x, _parent._y, true)) {
_parent.gotoAndStop("bow");
}
if ((((_parent._x > 400) or (_parent._x < 0)) or (_parent._y > 300)) or (_parent._y < 0)) {
_parent.gotoAndPlay("bow");
}
}
Symbol 437 MovieClip Frame 20
stop();
removeMovieClip(this);
Symbol 439 MovieClip Frame 3
stop();
Symbol 441 MovieClip Frame 5
_parent.removeMovieClip();
Symbol 442 MovieClip Frame 1
stop();
Instance of Symbol 25 MovieClip "mian" in Symbol 442 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.lan.hitTest(_parent._x, _parent._y, true)) {
_parent.gotoAndStop("bow");
}
if ((((_parent._x > 400) or (_parent._x < 0)) or (_parent._y > 300)) or (_parent._y < 0)) {
_parent.gotoAndPlay("bow");
}
}
Symbol 447 MovieClip Frame 14
_parent.nextFrame();
Symbol 452 MovieClip Frame 7
stop();
_parent.removeMovieClip();
Symbol 453 MovieClip Frame 1
stop();
Symbol 453 MovieClip Frame 3
stop();
Instance of Symbol 25 MovieClip "mian" in Symbol 453 MovieClip Frame 3
onClipEvent (enterFrame) {
_parent.speed = _parent.speed + 1;
if (_root.lan.hitTest(_parent._x, _parent._y, true)) {
_parent.gotoAndStop("bow");
}
if ((((_parent._x > 400) or (_parent._x < 0)) or (_parent._y > 300)) or (_parent._y < 0)) {
_parent.gotoAndPlay("bow");
}
}
Symbol 453 MovieClip Frame 18
stop();
removeMovieClip(this);
Symbol 463 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 2
_root.sbp = 0;
_root.bossbow = 0;
Symbol 494 MovieClip Frame 3
_root.sbp = 0;
_root.bossbow = 0;
Symbol 494 MovieClip Frame 70
stop();
Instance of Symbol 492 MovieClip in Symbol 494 MovieClip Frame 70
onClipEvent (keyUp) {
_parent.play();
}
Symbol 494 MovieClip Frame 73
_root.zhanting = 0;
_root.sbp = 1;
Symbol 494 MovieClip Frame 74
stop();
Symbol 501 MovieClip Frame 1
stop();
_root.sbp = 1;
Symbol 501 MovieClip Frame 2
_root.sbp = 0;
Symbol 501 MovieClip Frame 3
_root.sbp = 0;
Symbol 501 MovieClip Frame 4
_root.zhanting = 1;
Symbol 501 MovieClip Frame 88
nn = 0;
while (nn <= 50) {
_root["item" + nn].removeMovieClip();
nn++;
}
Symbol 501 MovieClip Frame 109
_root.usetank = 0;
_root.man._x = _root.tank1._x;
_root.man._y = _root.tank1._y;
_root.shangche = 0;
Symbol 501 MovieClip Frame 118
_root.xiaoguan = _root.xiaoguan + 1;
_root.ecount = 0;
Symbol 501 MovieClip Frame 119
if (_root.xiaoguan > 4) {
_root.daguan = _root.daguan + 1;
_root.xiaoguan = 1;
}
Symbol 501 MovieClip Frame 120
_root.play();
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 3
_root.zhanting = 1;
Symbol 504 MovieClip Frame 8
stop();
Symbol 504 MovieClip Frame 13
_root.zhanting = 0;
Symbol 504 MovieClip Frame 15
gotoAndStop (1);
Symbol 512 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 1
stop();
_parent.fashe = 0;
Symbol 522 MovieClip Frame 2
_parent.fashe = 1;
Symbol 522 MovieClip Frame 15
gotoAndStop (1);
Symbol 527 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 2
_root._y = _root._y + 2;
_root._x = _root._x + 2;
randd = random(100);
Symbol 528 MovieClip Frame 3
_root._y = _root._y - 2;
_root._x = _root._x - 2;
Symbol 528 MovieClip Frame 4
if (_parent.rad > 60) {
_global.iloop = _global.iloop + 1;
if (randd < 30) {
duplicateMovieClip (_root.items, "item" + _global.iloop, _global.iloop);
_root["item" + _global.iloop]._x = _parent._parent._x;
_root["item" + _global.iloop]._y = _parent._parent._y;
}
if ((randd > 30) and (randd < 50)) {
duplicateMovieClip (_root.itemg, "item" + _global.iloop, _global.iloop);
_root["item" + _global.iloop]._x = _parent._parent._x;
_root["item" + _global.iloop]._y = _parent._parent._y;
}
if ((randd > 50) and (randd < 70)) {
duplicateMovieClip (_root.iteml, "item" + _global.iloop, _global.iloop);
_root["item" + _global.iloop]._x = _parent._parent._x;
_root["item" + _global.iloop]._y = _parent._parent._y;
}
if (randd > 70) {
duplicateMovieClip (_root.itemp, "item" + _global.iloop, _global.iloop);
_root["item" + _global.iloop]._x = _parent._parent._x;
_root["item" + _global.iloop]._y = _parent._parent._y;
}
}
Symbol 528 MovieClip Frame 5
_root._y = 0;
_root._x = 0;
Symbol 528 MovieClip Frame 8
_root.ecount = _root.ecount + 1;
Symbol 528 MovieClip Frame 9
stop();
_root.score = _root.score + 3000;
_parent.lock = 1;
_parent.fashele = 1;
_parent.fashe = 1;
_parent._parent._x = -10000;
_parent._parent._y = -10000;
_parent._parent.gotoAndStop(1);
_parent._parent._visible = false;
Symbol 529 MovieClip Frame 1
rad = random(100);
rdegree = random(180) - random(90);
fashele = 0;
Instance of Symbol 513 MovieClip "tank" in Symbol 529 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.lock == 0) {
if (_parent.rad > 70) {
rrotation = _parent.guns._rotation - 90;
} else {
rrotation = _parent.rdegree;
}
if (_rotation < rrotation) {
_rotation = (_rotation + rspeed);
}
if (_rotation > rrotation) {
_rotation = (_rotation - rspeed);
}
degree = (_rotation * Math.PI) / 180;
if (_parent.rad < 40) {
_parent._parent._x = _parent._parent._x + (Math.cos(degree) * _parent.step);
_parent._parent._y = _parent._parent._y + (Math.sin(degree) * _parent.step);
}
if (_parent.rad > 60) {
_parent._parent._x = _parent._parent._x - ((Math.cos(degree) * _parent.step) * 0.7);
_parent._parent._y = _parent._parent._y - ((Math.sin(degree) * _parent.step) * 0.7);
}
}
}
}
onClipEvent (load) {
_parent.rad = 0;
rspeed = 5;
rrotation = 0;
}
Instance of Symbol 523 MovieClip "guns" in Symbol 529 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.fashele == 0) {
if (_parent.rad > 10) {
if (fashe == 0) {
guan.play();
_parent.fashele = 1;
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshello, "eshello" + _global.lloop, _global.lloop);
degree = (_rotation * Math.PI) / 180;
_root["eshello" + _global.lloop]._x = _parent._parent._x + (_width * Math.cos(degree));
_root["eshello" + _global.lloop]._y = _parent._parent._y + (_width * Math.sin(degree));
_root["eshello" + _global.lloop].shelldegree = degree;
_root["eshello" + _global.lloop].dorotation = _rotation;
_root["eshello" + _global.lloop].gotoAndStop(2);
}
}
}
}
}
Instance of Symbol 527 MovieClip "hpp" in Symbol 529 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.hp);
}
onClipEvent (load) {
_visible = false;
}
Symbol 529 MovieClip Frame 48
gotoAndPlay (1);
Instance of Symbol 528 MovieClip in Symbol 529 MovieClip Frame 60
onClipEvent (enterFrame) {
if (_parent.rad > 60) {
_rotation = _parent.guns._rotation;
} else {
_rotation = rdegree;
}
degree = (this._rotation * Math.PI) / 180;
if (_parent.rad < 90) {
_parent._x = _parent._x + (Math.cos(degree) * _parent.step);
_parent._y = _parent._y + (Math.sin(degree) * _parent.step);
}
}
onClipEvent (load) {
_parent.rad = 0;
}
Instance of Symbol 529 MovieClip in Symbol 530 MovieClip Frame 2
onClipEvent (load) {
lock = 0;
hp = 100;
step = 1.5;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_parent._x + _root.sss, _parent._y, true)) {
_parent._x = _parent._x - 10;
di._rotation = di._rotation - 10;
}
if (_root.lan.hitTest(_parent._x - _root.sss, _parent._y, true)) {
_parent._x = _parent._x + 10;
di._rotation = di._rotation + 10;
}
if (_root.lan.hitTest(_parent._x, _parent._y - _root.sss, true)) {
_parent._y = _parent._y + 10;
di._rotation = di._rotation - 10;
}
if (_root.lan.hitTest(_parent._x, _parent._y + _root.sss, true)) {
_parent._y = _parent._y - 10;
di._rotation = di._rotation + 10;
}
if (_root.lan2.hitTest(_parent._x + _parent._root.sss, _y, true)) {
_parent._x = _parent._x - 10;
di._rotation = di._rotation + 10;
}
if (_root.lan2.hitTest(_parent._x - _root.sss, _parent._y, true)) {
_parent._x = _parent._x + 10;
di._rotation = di._rotation + 10;
}
if (_root.lan2.hitTest(_parent._x, _parent._y - _root.sss, true)) {
_parent._y = _parent._y + 10;
di._rotation = di._rotation + 10;
}
if (_root.lan2.hitTest(_parent._x, _parent._y + _root.sss, true)) {
_parent._y = _parent._y - 10;
di._rotation = di._rotation + 10;
}
if (_parent._x < (_root.back._x + 10)) {
_parent._x = _parent._x + 10;
}
if (_parent._x > ((_root.back._width + _root.back._x) - 20)) {
_parent._x = _parent._x - 10;
}
if (_parent._y < (_root.back._y + 10)) {
_parent._y = _parent._y + 10;
}
if (_parent._y > ((_root.back._height + _root.back._y) - 20)) {
_parent._y = _parent._y - 10;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["shell" + i].mian.hitTest(this)) {
tank.hit.play();
_root["shell" + i].gotoAndPlay("bow");
hp = hp - 20;
hpp._visible = true;
}
if (_root["shello" + i].mian.hitTest(this)) {
_root["shello" + i].gotoAndPlay("bow");
tank.hit.play();
hp = hp - 40;
hpp._visible = true;
}
if (_root["shellp" + i].mian.hitTest(this)) {
_root["shellp" + i].gotoAndPlay("bow");
tank.hit.play();
hp = hp - 80;
hpp._visible = true;
}
if (_root["armp" + i].mian.hitTest(this)) {
_root["armp" + i].gotoAndStop("bow");
tank.hit.play();
hp = hp - 30;
hpp._visible = true;
}
if (_root["arm" + i].mian.hitTest(this)) {
_root["arm" + i].gotoAndStop("bow");
tank.hit.play();
hp = hp - 10;
hpp._visible = true;
}
if (_root["se" + i].mian.hitTest(this)) {
_root["se" + i].gotoAndStop("bow");
gotoAndStop ("dead");
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
gotoAndStop ("dead");
}
}
onClipEvent (enterFrame) {
_parent._visible = true;
}
Symbol 539 MovieClip Frame 1
stop();
_root.fashe = 0;
Symbol 539 MovieClip Frame 2
_root.fashe = 1;
Symbol 539 MovieClip Frame 15
gotoAndStop (1);
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 7
gotoAndStop (1);
Symbol 541 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 1
if (_root.usetank == 0) {
gotoAndPlay (4);
}
Symbol 543 MovieClip Frame 2
gotoAndPlay (1);
Symbol 543 MovieClip Frame 13
if (_root.usetank == 1) {
gotoAndPlay (1);
} else {
gotoAndPlay (2);
}
Symbol 544 MovieClip Frame 1
_root.deaded = 1;
Symbol 544 MovieClip Frame 3
_root._y = _root._y + 2;
_root._x = _root._x + 2;
Symbol 544 MovieClip Frame 4
_root._y = _root._y - 4;
_root._x = _root._x - 4;
Symbol 544 MovieClip Frame 5
_root._y = _root._y + 2;
_root._x = _root._x + 2;
Symbol 544 MovieClip Frame 6
_root._y = 0;
_root._x = 0;
Symbol 544 MovieClip Frame 11
_root.shangche = 0;
_root.usetank = 0;
_root.man.gotoAndPlay("\u590D\u6D3B");
_root.man._x = _parent._x;
_root.man._y = _parent._y;
Symbol 544 MovieClip Frame 13
stop();
Symbol 545 MovieClip Frame 1
stop();
Instance of Symbol 533 MovieClip "tank" in Symbol 545 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root.zhanting == 0) {
if (_root.deaded == 0) {
if (Key.isDown(_root.a)) {
_rotation = (_rotation - _root.rspeed);
}
if (Key.isDown(_root.d)) {
_rotation = (_rotation + _root.rspeed);
}
if (Key.isDown(_root.w)) {
_parent.step = _root.speed;
}
if (Key.isDown(_root.s)) {
_parent.step = (-_root.speed) * 0.7;
}
}
}
}
}
Instance of Symbol 541 MovieClip "gun" in Symbol 545 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.fashe == 0) {
if (_root.pao == 1) {
degree = (this._rotation * Math.PI) / 180;
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.arm, "arm" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
fire.play();
_root["arm" + _global.loop]._x = _parent._x;
_root["arm" + _global.loop]._y = _parent._y;
_root["arm" + _global.loop].shelldegree = degree;
_root["arm" + _global.loop].rorotation = _rotation;
_root["arm" + _global.loop].gotoAndStop(2);
}
if (_root.pao == 2) {
if (_root.paodan1 > 0) {
guan.play();
_root.paodan1 = _root.paodan1 - 1;
degree = (this._rotation * Math.PI) / 180;
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shello, "shello" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
_root["shello" + _global.loop]._x = _parent._x + (50 * Math.cos(degree));
_root["shello" + _global.loop]._y = _parent._y + (50 * Math.sin(degree));
_root["shello" + _global.loop].shelldegree = degree;
_root["shello" + _global.loop].rorotation = _rotation;
_root["shello" + _global.loop].gotoAndStop(2);
}
}
}
}
}
}
Symbol 558 MovieClip Frame 1
stop();
_parent.fashe = 0;
Symbol 558 MovieClip Frame 2
_parent.fashe = 1;
Symbol 558 MovieClip Frame 10
gotoAndStop (1);
Symbol 561 MovieClip Frame 9
stop();
Symbol 562 MovieClip Frame 2
_root._x = _root._x + 2;
Symbol 562 MovieClip Frame 3
_root._y = _root._y + 2;
Symbol 562 MovieClip Frame 4
_root._x = _root._x - 2;
Symbol 562 MovieClip Frame 5
_root._y = _root._y - 2;
Symbol 562 MovieClip Frame 7
_root._x = _root._x - 2;
Symbol 562 MovieClip Frame 8
_root._y = _root._y - 2;
Symbol 562 MovieClip Frame 9
_root._x = _root._x + 2;
Symbol 562 MovieClip Frame 10
_root._y = _root._y + 2;
Symbol 562 MovieClip Frame 12
_root._x = _root._x + 2;
Symbol 562 MovieClip Frame 13
_root._y = _root._y + 2;
Symbol 562 MovieClip Frame 14
_root._x = _root._x - 2;
Symbol 562 MovieClip Frame 15
_root._y = _root._y - 2;
Symbol 562 MovieClip Frame 16
_root._x = _root._x + 2;
Symbol 562 MovieClip Frame 17
_root._x = _root._x - 2;
Symbol 562 MovieClip Frame 19
_root._x = _root._x - 5;
_parent.nextFrame();
Symbol 562 MovieClip Frame 20
_root._y = _root._y + 5;
Symbol 562 MovieClip Frame 21
_root._x = _root._x + 5;
Symbol 562 MovieClip Frame 22
_root._y = _root._y - 5;
Symbol 562 MovieClip Frame 23
_root._y = _root._y + 3;
Symbol 562 MovieClip Frame 24
_root._y = _root._y - 3;
Symbol 562 MovieClip Frame 27
_root._x = 0;
_root._y = 0;
Symbol 562 MovieClip Frame 29
_root.bossbow = 1;
Symbol 562 MovieClip Frame 30
stop();
_root.score = _root.score + 10000;
_parent.lock = 1;
_parent.fashele = 1;
_parent.fashe = 1;
_parent._parent._x = -10000;
_parent._parent._y = -10000;
Symbol 563 MovieClip Frame 1
rad = random(100);
rdegree = random(180) - random(90);
fashele = 0;
fashele1 = 0;
Instance of Symbol 551 MovieClip "tank" in Symbol 563 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.rad < 50) {
_parent._parent._x = _parent._parent._x + speed;
}
if (_parent.rad > 50) {
_parent._parent._x = _parent._parent._x - speed;
}
}
}
onClipEvent (load) {
_parent.rad = 0;
speed = 5;
rrotation = 0;
}
Instance of Symbol 553 MovieClip in Symbol 563 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.fashele1 == 0) {
if (_parent.rad < 30) {
if (fashe == 0) {
_parent.fashele1 = 1;
guan.play();
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshello, "eshello" + _global.lloop, _global.lloop);
degree = (_rotation * Math.PI) / 180;
_root["eshello" + _global.lloop]._x = _parent._parent._x + 50;
_root["eshello" + _global.lloop]._y = _parent._parent._y;
_root["eshello" + _global.lloop].shelldegree = degree;
_root["eshello" + _global.lloop].dorotation = _rotation;
_root["eshello" + _global.lloop].gotoAndStop(2);
}
}
}
}
}
Instance of Symbol 553 MovieClip in Symbol 563 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.fashele == 0) {
if (_parent.rad > 50) {
if (fashe == 0) {
_parent.fashele = 1;
guan.play();
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshello, "eshello" + _global.lloop, _global.lloop);
degree = (_rotation * Math.PI) / 180;
_root["eshello" + _global.lloop]._x = _parent._parent._x - 60;
_root["eshello" + _global.lloop]._y = _parent._parent._y;
_root["eshello" + _global.lloop].shelldegree = degree;
_root["eshello" + _global.lloop].dorotation = _rotation;
_root["eshello" + _global.lloop].gotoAndStop(2);
}
}
}
}
}
Instance of Symbol 559 MovieClip in Symbol 563 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.rad > 50) {
if (fashe == 0) {
guan.play();
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshell, "eshell" + _global.lloop, _global.lloop);
degree = (_rotation * Math.PI) / 180;
_root["eshell" + _global.lloop]._x = _parent._parent._x + 9;
_root["eshell" + _global.lloop]._y = _parent._parent._y + 20;
_root["eshell" + _global.lloop].shelldegree = degree;
_root["eshell" + _global.lloop].dorotation = _rotation;
_root["eshell" + _global.lloop].gotoAndStop(2);
}
}
}
}
Instance of Symbol 559 MovieClip in Symbol 563 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.rad < 50) {
if (fashe == 0) {
guan.play();
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshell, "eshell" + _global.lloop, _global.lloop);
degree = (_rotation * Math.PI) / 180;
_root["eshell" + _global.lloop]._x = _parent._parent._x - 21;
_root["eshell" + _global.lloop]._y = _parent._parent._y + 20;
_root["eshell" + _global.lloop].shelldegree = degree;
_root["eshell" + _global.lloop].dorotation = _rotation;
_root["eshell" + _global.lloop].gotoAndStop(2);
}
}
}
}
Symbol 563 MovieClip Frame 48
gotoAndPlay (1);
Instance of Symbol 562 MovieClip in Symbol 563 MovieClip Frame 60
onClipEvent (enterFrame) {
if (_parent.rad > 60) {
_rotation = _parent.guns._rotation;
} else {
_rotation = rdegree;
}
degree = (this._rotation * Math.PI) / 180;
if (_parent.rad < 90) {
_parent._x = _parent._x + (Math.cos(degree) * _parent.step);
_parent._y = _parent._y + (Math.sin(degree) * _parent.step);
}
}
onClipEvent (load) {
_parent.rad = 0;
}
Instance of Symbol 563 MovieClip "boss" in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
hp = 500;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_parent._x + 30, _parent._y, true)) {
_parent._x = _parent._x - 30;
rad = 55;
}
if (_root.lan.hitTest(_parent._x - 30, _parent._y, true)) {
_parent._x = _parent._x + 30;
rad = 45;
}
if (_root.lan2.hitTest(_parent._x + 30, _parent._y, true)) {
_parent._x = _parent._x - 30;
rad = 55;
}
if (_root.lan2.hitTest(_parent._x - 30, _parent._y, true)) {
_parent._x = _parent._x + 30;
rad = 45;
}
if (_parent._x < (_root.back._x + 50)) {
_parent._x = _parent._x + 30;
rad = 55;
}
if (_parent._x > ((_root.back._width + _root.back._x) - 50)) {
_parent._x = _parent._x - 30;
rad = 45;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["shell" + i].mian.hitTest(this)) {
tank.hit.play();
_root["shell" + i].gotoAndPlay("bow");
hp = hp - 20;
_root.bhpp._visible = true;
}
if (_root["shello" + i].mian.hitTest(this)) {
_root["shello" + i].gotoAndPlay("bow");
tank.hit.play();
hp = hp - 40;
_root.bhpp._visible = true;
}
if (_root["arm" + i].mian.hitTest(this)) {
_root["arm" + i].gotoAndStop("bow");
tank.hit.play();
hp = hp - 5;
_root.bhpp._visible = true;
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (_currentframe == "deaded") {
} else if (hp <= 0) {
gotoAndStop ("dead");
}
}
onClipEvent (enterFrame) {
_parent._visible = true;
}
Symbol 571 MovieClip Frame 1
stop();
Symbol 583 MovieClip Frame 1
stop();
_root.fashe = _root.fashe - 1;
if (_root.fashe < 0) {
_root.fashe = 0;
}
Symbol 583 MovieClip Frame 2
_root.fashe = _root.fashe + 1;
Symbol 583 MovieClip Frame 15
gotoAndStop (1);
Symbol 585 MovieClip Frame 1
stop();
Symbol 586 MovieClip Frame 1
stop();
Instance of Symbol 577 MovieClip "tank" in Symbol 586 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root.zhanting == 0) {
if (_root.deaded == 0) {
if (Key.isDown(_root.a)) {
_rotation = (_rotation - _root.rspeed);
}
if (Key.isDown(_root.d)) {
_rotation = (_rotation + _root.rspeed);
}
if (Key.isDown(_root.w)) {
_parent.step = _root.speed;
}
if (Key.isDown(_root.s)) {
_parent.step = (-_root.speed) * 0.7;
}
}
}
}
}
Instance of Symbol 585 MovieClip "gun" in Symbol 586 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.pao == 1) {
degree = (this._rotation * Math.PI) / 180;
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.arm, "arm" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
fire.play();
_root["arm" + _global.loop]._x = _parent._x;
_root["arm" + _global.loop]._y = _parent._y;
_root["arm" + _global.loop].shelldegree = degree;
_root["arm" + _global.loop].rorotation = _rotation;
_root["arm" + _global.loop].gotoAndStop(2);
}
if (_root.pao == 2) {
if (_root.fashe == 0) {
if (_root.paodan1 > 0) {
guan1.play();
_root.paodan1 = _root.paodan1 - 1;
degree = (this._rotation * Math.PI) / 180;
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shello, "shello" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
_root["shello" + _global.loop]._x = (_parent._x + (50 * Math.cos(degree))) - 5;
_root["shello" + _global.loop]._y = (_parent._y + (50 * Math.sin(degree))) - 5;
_root["shello" + _global.loop].shelldegree = degree;
_root["shello" + _global.loop].rorotation = _rotation;
_root["shello" + _global.loop].gotoAndStop(2);
}
}
if (_root.fashe == 1) {
if (_root.paodan1 > 0) {
guan2.play();
_root.paodan1 = _root.paodan1 - 1;
degree = (this._rotation * Math.PI) / 180;
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shello, "shello" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
_root["shello" + _global.loop]._x = _parent._x + (50 * Math.cos(degree));
_root["shello" + _global.loop]._y = _parent._y + (50 * Math.sin(degree));
_root["shello" + _global.loop].shelldegree = degree;
_root["shello" + _global.loop].rorotation = _rotation;
_root["shello" + _global.loop].gotoAndStop(2);
}
}
}
}
}
}
Symbol 595 MovieClip Frame 1
stop();
_parent.fashe1 = 0;
Symbol 595 MovieClip Frame 2
_parent.fashe1 = 1;
Symbol 595 MovieClip Frame 3
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshello, "eshello" + _global.lloop, _global.lloop);
degree = (_parent._rotation * Math.PI) / 180;
_root["eshello" + _global.lloop]._x = _parent._parent._parent._x + (_width * Math.cos(degree));
_root["eshello" + _global.lloop]._y = _parent._parent._parent._y + (_width * Math.sin(degree));
_root["eshello" + _global.lloop].shelldegree = _parent.degree;
_root["eshello" + _global.lloop].gotoAndStop(2);
Symbol 595 MovieClip Frame 9
_parent.tfashe = 1;
Symbol 595 MovieClip Frame 15
gotoAndStop (1);
Symbol 596 MovieClip Frame 1
stop();
_parent.fashe2 = 0;
Symbol 596 MovieClip Frame 2
_parent.fashe2 = 1;
Symbol 596 MovieClip Frame 3
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshello, "eshello" + _global.lloop, _global.lloop);
degree = (_parent._rotation * Math.PI) / 180;
_root["eshello" + _global.lloop]._x = _parent._parent._parent._x + (_width * Math.cos(degree));
_root["eshello" + _global.lloop]._y = _parent._parent._parent._y + (_width * Math.sin(degree));
_root["eshello" + _global.lloop].shelldegree = _parent.degree;
_root["eshello" + _global.lloop].gotoAndStop(2);
Symbol 596 MovieClip Frame 15
gotoAndStop (1);
Symbol 631 MovieClip Frame 1
stop();
Symbol 631 MovieClip Frame 95
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
ang = (aimx - _parent._parent._parent._x) / (_parent._parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
degree = (angle * Math.PI) / 180;
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.boshell, "boshell" + _global.lloop, _global.lloop);
_root["boshell" + _global.lloop]._x = _parent._parent._parent._x;
_root["boshell" + _global.lloop]._y = _parent._parent._parent._y;
_root["boshell" + _global.lloop].shelldegree = degree;
_root["boshell" + _global.lloop].gotoAndStop(2);
Symbol 634 MovieClip Frame 1
stop();
Symbol 640 MovieClip Frame 1
rad = 0;
attrad = 0;
Symbol 640 MovieClip Frame 20
attrad = random(100);
Symbol 640 MovieClip Frame 21
if (hp < 200) {
if (attrad < 50) {
gotoAndPlay ("\u5FC5\u6740");
}
}
Symbol 640 MovieClip Frame 22
if (attrad > 50) {
gotoAndPlay ("\u673A\u67AA");
}
Symbol 640 MovieClip Frame 23
if (hp < 50) {
gotoAndPlay ("\u5FC5\u6740");
}
Symbol 640 MovieClip Frame 39
rad = random(100);
attrad = random(100);
Symbol 640 MovieClip Frame 40
if (attrad > 60) {
if (_root.usetank == 1) {
if (_parent._x < _root.tank._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.tank._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.tank._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.tank._y) {
gotoAndPlay ("\u540E\u9000");
}
} else {
if (_parent._x < _root.man._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.man._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.man._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.man._y) {
gotoAndPlay ("\u540E\u9000");
}
}
} else {
if ((rad >= 0) and (rad < 15)) {
gotoAndPlay ("\u5DE6\u884C");
}
if ((rad >= 15) and (rad < 30)) {
gotoAndPlay ("\u53F3\u884C");
}
if ((rad >= 30) and (rad < 45)) {
gotoAndPlay ("\u540E\u9000");
}
if ((rad >= 45) and (rad < 60)) {
gotoAndPlay ("\u524D\u8FDB");
}
if (rad >= 60) {
gotoAndPlay ("\u9759\u6B62");
}
}
Instance of Symbol 636 MovieClip "body" in Symbol 640 MovieClip Frame 46
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
degree = (_rotation * Math.PI) / 180;
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
Instance of Symbol 638 MovieClip in Symbol 640 MovieClip Frame 47
onClipEvent (enterFrame) {
_parent._parent._y = _parent._parent._y + _parent.speed;
}
Symbol 640 MovieClip Frame 83
rad = random(100);
attrad = random(100);
Symbol 640 MovieClip Frame 84
if (attrad > 60) {
if (_root.usetank == 1) {
if (_parent._x < _root.tank._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.tank._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.tank._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.tank._y) {
gotoAndPlay ("\u540E\u9000");
}
} else {
if (_parent._x < _root.man._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.man._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.man._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.man._y) {
gotoAndPlay ("\u540E\u9000");
}
}
} else {
if ((rad >= 0) and (rad < 15)) {
gotoAndPlay ("\u5DE6\u884C");
}
if ((rad >= 15) and (rad < 30)) {
gotoAndPlay ("\u53F3\u884C");
}
if ((rad >= 30) and (rad < 45)) {
gotoAndPlay ("\u540E\u9000");
}
if ((rad >= 45) and (rad < 60)) {
gotoAndPlay ("\u524D\u8FDB");
}
if (rad >= 60) {
gotoAndPlay ("\u9759\u6B62");
}
}
Symbol 640 MovieClip Frame 85
gotoAndPlay ("\u9759\u6B62");
Instance of Symbol 636 MovieClip "body" in Symbol 640 MovieClip Frame 90
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
degree = (_rotation * Math.PI) / 180;
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
Instance of Symbol 638 MovieClip in Symbol 640 MovieClip Frame 91
onClipEvent (enterFrame) {
_parent._parent._y = _parent._parent._y - _parent.speed;
}
Symbol 640 MovieClip Frame 128
rad = random(100);
attrad = random(100);
Symbol 640 MovieClip Frame 129
if (attrad > 60) {
if (_root.usetank == 1) {
if (_parent._x < _root.tank._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.tank._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.tank._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.tank._y) {
gotoAndPlay ("\u540E\u9000");
}
} else {
if (_parent._x < _root.man._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.man._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.man._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.man._y) {
gotoAndPlay ("\u540E\u9000");
}
}
} else {
if ((rad >= 0) and (rad < 15)) {
gotoAndPlay ("\u5DE6\u884C");
}
if ((rad >= 15) and (rad < 30)) {
gotoAndPlay ("\u53F3\u884C");
}
if ((rad >= 30) and (rad < 45)) {
gotoAndPlay ("\u540E\u9000");
}
if ((rad >= 45) and (rad < 60)) {
gotoAndPlay ("\u524D\u8FDB");
}
if (rad >= 60) {
gotoAndPlay ("\u9759\u6B62");
}
}
Symbol 640 MovieClip Frame 130
gotoAndPlay ("\u9759\u6B62");
Instance of Symbol 636 MovieClip "body" in Symbol 640 MovieClip Frame 140
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
degree = (_rotation * Math.PI) / 180;
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
Instance of Symbol 638 MovieClip in Symbol 640 MovieClip Frame 141
onClipEvent (enterFrame) {
_parent._parent._x = _parent._parent._x - _parent.speed;
}
Symbol 640 MovieClip Frame 178
rad = random(100);
attrad = random(100);
Symbol 640 MovieClip Frame 179
if (attrad > 60) {
if (_root.usetank == 1) {
if (_parent._x < _root.tank._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.tank._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.tank._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.tank._y) {
gotoAndPlay ("\u540E\u9000");
}
} else {
if (_parent._x < _root.man._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.man._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.man._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.man._y) {
gotoAndPlay ("\u540E\u9000");
}
}
} else {
if ((rad >= 0) and (rad < 15)) {
gotoAndPlay ("\u5DE6\u884C");
}
if ((rad >= 15) and (rad < 30)) {
gotoAndPlay ("\u53F3\u884C");
}
if ((rad >= 30) and (rad < 45)) {
gotoAndPlay ("\u540E\u9000");
}
if ((rad >= 45) and (rad < 60)) {
gotoAndPlay ("\u524D\u8FDB");
}
if (rad >= 60) {
gotoAndPlay ("\u9759\u6B62");
}
}
Symbol 640 MovieClip Frame 180
gotoAndPlay ("\u9759\u6B62");
Instance of Symbol 636 MovieClip "body" in Symbol 640 MovieClip Frame 185
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
degree = (_rotation * Math.PI) / 180;
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
Instance of Symbol 638 MovieClip in Symbol 640 MovieClip Frame 186
onClipEvent (enterFrame) {
_parent._parent._x = _parent._parent._x + _parent.speed;
}
Symbol 640 MovieClip Frame 223
rad = random(100);
attrad = random(100);
Symbol 640 MovieClip Frame 224
if (attrad > 60) {
if (_root.usetank == 1) {
if (_parent._x < _root.tank._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.tank._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.tank._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.tank._y) {
gotoAndPlay ("\u540E\u9000");
}
} else {
if (_parent._x < _root.man._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.man._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.man._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.man._y) {
gotoAndPlay ("\u540E\u9000");
}
}
} else {
if ((rad >= 0) and (rad < 15)) {
gotoAndPlay ("\u5DE6\u884C");
}
if ((rad >= 15) and (rad < 30)) {
gotoAndPlay ("\u53F3\u884C");
}
if ((rad >= 30) and (rad < 45)) {
gotoAndPlay ("\u540E\u9000");
}
if ((rad >= 45) and (rad < 60)) {
gotoAndPlay ("\u524D\u8FDB");
}
if (rad >= 60) {
gotoAndPlay ("\u9759\u6B62");
}
}
Symbol 640 MovieClip Frame 225
gotoAndPlay ("\u9759\u6B62");
Instance of Symbol 636 MovieClip "body" in Symbol 640 MovieClip Frame 233
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
degree = (_rotation * Math.PI) / 180;
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
tfashe = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (fashe1 == 0) {
guan1.play();
}
if ((tfashe == 1) and (fashe2 == 0)) {
guan2.play();
}
}
}
Symbol 640 MovieClip Frame 313
rad = random(100);
attrad = random(100);
Symbol 640 MovieClip Frame 314
if (attrad > 60) {
if (_root.usetank == 1) {
if (_parent._x < _root.tank._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.tank._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.tank._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.tank._y) {
gotoAndPlay ("\u540E\u9000");
}
} else {
if (_parent._x < _root.man._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.man._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.man._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.man._y) {
gotoAndPlay ("\u540E\u9000");
}
}
} else {
if ((rad >= 0) and (rad < 15)) {
gotoAndPlay ("\u5DE6\u884C");
}
if ((rad >= 15) and (rad < 30)) {
gotoAndPlay ("\u53F3\u884C");
}
if ((rad >= 30) and (rad < 45)) {
gotoAndPlay ("\u540E\u9000");
}
if ((rad >= 45) and (rad < 60)) {
gotoAndPlay ("\u524D\u8FDB");
}
if (rad >= 60) {
gotoAndPlay ("\u9759\u6B62");
}
}
Symbol 640 MovieClip Frame 315
gotoAndPlay ("\u9759\u6B62");
Symbol 640 MovieClip Frame 321
body.lz.play();
Symbol 640 MovieClip Frame 429
rad = random(100);
attrad = random(100);
Symbol 640 MovieClip Frame 430
if (attrad > 60) {
if (_root.usetank == 1) {
if (_parent._x < _root.tank._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.tank._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.tank._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.tank._y) {
gotoAndPlay ("\u540E\u9000");
}
} else {
if (_parent._x < _root.man._x) {
gotoAndPlay ("\u53F3\u884C");
}
if (_parent._x > _root.man._x) {
gotoAndPlay ("\u5DE6\u884C");
}
if (_parent._y < _root.man._y) {
gotoAndPlay ("\u524D\u8FDB");
}
if (_parent._y > _root.man._y) {
gotoAndPlay ("\u540E\u9000");
}
}
} else {
if ((rad >= 0) and (rad < 15)) {
gotoAndPlay ("\u5DE6\u884C");
}
if ((rad >= 15) and (rad < 30)) {
gotoAndPlay ("\u53F3\u884C");
}
if ((rad >= 30) and (rad < 45)) {
gotoAndPlay ("\u540E\u9000");
}
if ((rad >= 45) and (rad < 60)) {
gotoAndPlay ("\u524D\u8FDB");
}
if (rad >= 60) {
gotoAndPlay ("\u9759\u6B62");
}
}
Symbol 640 MovieClip Frame 431
gotoAndPlay ("\u9759\u6B62");
Symbol 640 MovieClip Frame 440
deaded = 1;
Symbol 640 MovieClip Frame 502
_root.bossbow = 1;
Symbol 640 MovieClip Frame 503
stop();
_root.score = _root.score + 30000;
_parent._x = -1000;
_parent._y = -1000;
Symbol 642 MovieClip Frame 1
stop();
Instance of Symbol 640 MovieClip "boss" in Symbol 642 MovieClip Frame 1
onClipEvent (load) {
speed = 5;
hp = 500;
deaded = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_parent._x + (_width / 2), _parent._y, true)) {
_parent._x = _parent._x - 10;
}
if (_root.lan.hitTest(_parent._x - (_width / 2), _parent._y, true)) {
_parent._x = _parent._x + 10;
}
if (_root.lan.hitTest(_parent._y + (_height / 2), _parent._y, true)) {
_parent._y = _parent._y - 10;
}
if (_root.lan.hitTest(_parent._y - (_height / 2), _parent._y, true)) {
_parent._y = _parent._y + 10;
}
if (_root.lan2.hitTest(_parent._x + (_width / 2), _parent._y, true)) {
_parent._x = _parent._x - 10;
}
if (_root.lan2.hitTest(_parent._x - (_width / 2), _parent._y, true)) {
_parent._x = _parent._x + 10;
}
if (_root.lan2.hitTest(_parent._y + (_height / 2), _parent._y, true)) {
_parent._y = _parent._y - 10;
}
if (_root.lan2.hitTest(_parent._y - (_height / 2), _parent._y, true)) {
_parent._y = _parent._y + 10;
}
if (_parent._x < (_root.back._x + 10)) {
_parent._x = _parent._x + 10;
}
if (_parent._x > ((_root.back._width + _root.back._x) - 10)) {
_parent._x = _parent._x - 10;
}
if (_parent._y < (_root.back._y + 10)) {
_parent._y = _parent._y + 10;
}
if (_parent._y > ((_root.back._height + _root.back._y) - 20)) {
_parent._y = _parent._y - 10;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["shell" + i].mian.hitTest(this)) {
behit.play();
_root["shell" + i].gotoAndPlay("bow");
hp = hp - 10;
_root.bhpp._visible = true;
}
if (_root["shello" + i].mian.hitTest(this)) {
_root["shello" + i].gotoAndPlay("bow");
behit.play();
hp = hp - 20;
_root.bhpp._visible = true;
}
if (_root["arm" + i].mian.hitTest(this)) {
_root["arm" + i].gotoAndStop("bow");
behit.play();
hp = hp - 5;
_root.bhpp._visible = true;
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (deaded == 0) {
if (hp <= 0) {
gotoAndPlay ("dead");
}
}
}
onClipEvent (enterFrame) {
_parent._visible = true;
}
Symbol 650 MovieClip Frame 1
stop();
Symbol 657 MovieClip Frame 1
stop();
_parent.fashe = 0;
Symbol 657 MovieClip Frame 2
_parent.fashe = 1;
Symbol 657 MovieClip Frame 15
gotoAndStop (1);
Symbol 659 MovieClip Frame 1
rad = random(100);
rdegree = random(180) - random(90);
fashele = 0;
Instance of Symbol 658 MovieClip "guns" in Symbol 659 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.fashele == 0) {
if (_parent.rad > 10) {
if (fashe == 0) {
guan.play();
_parent.fashele = 1;
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshello, "eshello" + _global.lloop, _global.lloop);
degree = (_rotation * Math.PI) / 180;
_root["eshello" + _global.lloop]._x = _parent._parent._x + (_width * Math.cos(degree));
_root["eshello" + _global.lloop]._y = _parent._parent._y + (_width * Math.sin(degree));
_root["eshello" + _global.lloop].shelldegree = degree;
_root["eshello" + _global.lloop].dorotation = _rotation;
_root["eshello" + _global.lloop].gotoAndStop(2);
}
}
}
}
}
Instance of Symbol 527 MovieClip "hpp" in Symbol 659 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.hp);
}
onClipEvent (load) {
_visible = false;
}
Symbol 659 MovieClip Frame 25
gotoAndPlay (1);
Instance of Symbol 528 MovieClip in Symbol 659 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_parent.rad > 60) {
_rotation = _parent.guns._rotation;
} else {
_rotation = rdegree;
}
degree = (this._rotation * Math.PI) / 180;
if (_parent.rad < 90) {
_parent._x = _parent._x + (Math.cos(degree) * _parent.step);
_parent._y = _parent._y + (Math.sin(degree) * _parent.step);
}
}
onClipEvent (load) {
_parent.rad = 0;
}
Instance of Symbol 659 MovieClip in Symbol 660 MovieClip Frame 2
onClipEvent (load) {
lock = 0;
hp = 100;
step = 1.5;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_parent._x + _root.sss, _parent._y, true)) {
_parent._x = _parent._x - 10;
di._rotation = di._rotation - 10;
}
if (_root.lan.hitTest(_parent._x - _root.sss, _parent._y, true)) {
_parent._x = _parent._x + 10;
di._rotation = di._rotation + 10;
}
if (_root.lan.hitTest(_parent._x, _parent._y - _root.sss, true)) {
_parent._y = _parent._y + 10;
di._rotation = di._rotation - 10;
}
if (_root.lan.hitTest(_parent._x, _parent._y + _root.sss, true)) {
_parent._y = _parent._y - 10;
di._rotation = di._rotation + 10;
}
if (_root.lan2.hitTest(_parent._x + _parent._root.sss, _y, true)) {
_parent._x = _parent._x - 10;
di._rotation = di._rotation + 10;
}
if (_root.lan2.hitTest(_parent._x - _root.sss, _parent._y, true)) {
_parent._x = _parent._x + 10;
di._rotation = di._rotation + 10;
}
if (_root.lan2.hitTest(_parent._x, _parent._y - _root.sss, true)) {
_parent._y = _parent._y + 10;
di._rotation = di._rotation + 10;
}
if (_root.lan2.hitTest(_parent._x, _parent._y + _root.sss, true)) {
_parent._y = _parent._y - 10;
di._rotation = di._rotation + 10;
}
if (_parent._x < (_root.back._x + 10)) {
_parent._x = _parent._x + 10;
}
if (_parent._x > ((_root.back._width + _root.back._x) - 20)) {
_parent._x = _parent._x - 10;
}
if (_parent._y < (_root.back._y + 10)) {
_parent._y = _parent._y + 10;
}
if (_parent._y > ((_root.back._height + _root.back._y) - 20)) {
_parent._y = _parent._y - 10;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["shell" + i].mian.hitTest(this)) {
tank.hit.play();
_root["shell" + i].gotoAndPlay("bow");
hp = hp - 10;
hpp._visible = true;
}
if (_root["shellp" + i].mian.hitTest(this)) {
_root["shellp" + i].gotoAndPlay("bow");
tank.hit.play();
hp = hp - 40;
hpp._visible = true;
}
if (_root["armp" + i].mian.hitTest(this)) {
_root["armp" + i].gotoAndStop("bow");
tank.hit.play();
hp = hp - 15;
hpp._visible = true;
}
if (_root["se" + i].mian.hitTest(this)) {
_root["se" + i].gotoAndStop("bow");
gotoAndStop ("dead");
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
gotoAndStop ("dead");
}
}
onClipEvent (enterFrame) {
_parent._visible = true;
}
Symbol 663 MovieClip Frame 1
stop();
fashe = 0;
Symbol 663 MovieClip Frame 2
fashe = 1;
_root.sepao = _root.sepao - 2;
Instance of Symbol 663 MovieClip in Symbol 664 MovieClip Frame 1
onClipEvent (load) {
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.pao == 3) {
if (fashe == 0) {
if (_root.sepao >= 2) {
degree = (_parent._rotation * Math.PI) / 180;
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.se, "se" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
play();
_root["se" + _global.loop]._x = _parent._parent._x;
_root["se" + _global.loop]._y = _parent._parent._y;
_root["se" + _global.loop].shelldegree = degree;
_root["se" + _global.loop].rorotation = _parent._rotation;
_root["se" + _global.loop].gotoAndStop(2);
}
}
}
}
}
}
Symbol 676 MovieClip Frame 1
stop();
_root.fashe = _root.fashe - 1;
if (_root.fashe < 0) {
_root.fashe = 0;
}
Symbol 676 MovieClip Frame 2
_root.fashe = _root.fashe + 1;
Symbol 676 MovieClip Frame 15
gotoAndStop (1);
Symbol 678 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 7
gotoAndStop (1);
Symbol 679 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 1
stop();
Instance of Symbol 664 MovieClip "tank" in Symbol 680 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.usetank == 1) {
if (_root.zhanting == 0) {
if (_root.deaded == 0) {
if (Key.isDown(_root.a)) {
_rotation = (_rotation - _root.rspeed);
}
if (Key.isDown(_root.d)) {
_rotation = (_rotation + _root.rspeed);
}
if (Key.isDown(_root.w)) {
_parent.step = _root.speed;
}
if (Key.isDown(_root.s)) {
_parent.step = (-_root.speed) * 0.7;
}
}
}
}
}
Instance of Symbol 679 MovieClip "gun" in Symbol 680 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
ang = (_parent._xmouse - this._x) / (this._y - _parent._ymouse);
angle = Math.atan(ang);
if ((_parent._ymouse - this._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
_global.loop = 0;
wd = this._width;
}
onClipEvent (mouseUp) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
if (_root.pao == 1) {
degree = (this._rotation * Math.PI) / 180;
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.armp, "armp" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
fire.play();
_root["armp" + _global.loop]._x = _parent._x;
_root["armp" + _global.loop]._y = _parent._y;
_root["armp" + _global.loop].shelldegree = degree;
_root["armp" + _global.loop].rorotation = _rotation;
_root["armp" + _global.loop].gotoAndStop(2);
}
if (_root.pao == 2) {
if (_root.fashe == 0) {
if (_root.paodan1 > 0) {
guan.play();
_root.paodan1 = _root.paodan1 - 1;
degree = (this._rotation * Math.PI) / 180;
_global.loop = _global.loop + 1;
duplicateMovieClip (_root.shellp, "shellp" + _global.loop, _global.loop);
if (_global.loop >= 50) {
_global.loop = 0;
}
_root["shellp" + _global.loop]._x = (_parent._x + (50 * Math.cos(degree))) - 5;
_root["shellp" + _global.loop]._y = (_parent._y + (50 * Math.sin(degree))) - 5;
_root["shellp" + _global.loop].shelldegree = degree;
_root["shellp" + _global.loop].rorotation = _rotation;
_root["shellp" + _global.loop].gotoAndStop(2);
}
}
}
}
}
}
Symbol 686 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 1
stop();
_parent.fashe = 0;
Symbol 691 MovieClip Frame 2
_parent.fashe = 1;
Symbol 691 MovieClip Frame 10
gotoAndStop (1);
Symbol 696 MovieClip Frame 15
stop();
Symbol 697 MovieClip Frame 1
stop();
Symbol 704 MovieClip Frame 1
stop();
_parent.fashe = 0;
Symbol 704 MovieClip Frame 2
_parent.fashe = 1;
Symbol 704 MovieClip Frame 40
gotoAndStop (1);
Symbol 705 MovieClip Frame 1
stop();
Symbol 712 MovieClip Frame 1
fashe = 0;
stop();
Symbol 712 MovieClip Frame 2
fashe = 1;
Symbol 712 MovieClip Frame 95
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
degree = (angle * Math.PI) / 180;
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.boshell, "boshell" + _global.lloop, _global.lloop);
_root["boshell" + _global.lloop]._x = _parent._parent._x - 23;
_root["boshell" + _global.lloop]._y = _parent._parent._y;
_root["boshell" + _global.lloop].shelldegree = degree;
_root["boshell" + _global.lloop].gotoAndStop(2);
Symbol 720 MovieClip Frame 1
stop();
fashe = 0;
Symbol 720 MovieClip Frame 2
fashe = 1;
Symbol 720 MovieClip Frame 3
degree = (_rotation * Math.PI) / 180;
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.jushell, "jushell" + _global.lloop, _global.lloop);
_root["jushell" + _global.lloop]._x = (_parent._parent._x + (100 * Math.cos(degree))) + 85;
_root["jushell" + _global.lloop]._y = _parent._parent._y + (100 * Math.sin(degree));
_root["jushell" + _global.lloop].shelldegree = degree;
_root["jushell" + _global.lloop].dorotation = _rotation;
_root["jushell" + _global.lloop].gotoAndStop(2);
Symbol 722 MovieClip Frame 1
stop();
Symbol 734 MovieClip Frame 1
rad = 0;
attrad = 0;
Instance of Symbol 697 MovieClip in Symbol 734 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hp > 500) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.hp > 500) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
}
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
onClipEvent (enterFrame) {
if (_parent.hp < 500) {
gotoAndStop (2);
} else if (_root.zhanting == 0) {
if (_parent.rad > 50) {
if (fashe == 0) {
guan.play();
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshell, "eshell" + _global.lloop, _global.lloop);
degree = (_rotation * Math.PI) / 180;
_root["eshell" + _global.lloop]._x = _parent._parent._x - 128;
_root["eshell" + _global.lloop]._y = _parent._parent._y + 40;
_root["eshell" + _global.lloop].shelldegree = degree;
_root["eshell" + _global.lloop].dorotation = _rotation;
_root["eshell" + _global.lloop].gotoAndStop(2);
}
}
}
}
Instance of Symbol 697 MovieClip in Symbol 734 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.hp > 500) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.hp > 500) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
}
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.rad > 50) {
if (fashe == 0) {
if (_parent.hp < 500) {
gotoAndStop (2);
} else {
guan.play();
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshell, "eshell" + _global.lloop, _global.lloop);
degree = (_rotation * Math.PI) / 180;
_root["eshell" + _global.lloop]._x = _parent._parent._x - 128;
_root["eshell" + _global.lloop]._y = _parent._parent._y - 40;
_root["eshell" + _global.lloop].shelldegree = degree;
_root["eshell" + _global.lloop].dorotation = _rotation;
_root["eshell" + _global.lloop].gotoAndStop(2);
}
}
}
}
}
Instance of Symbol 697 MovieClip in Symbol 734 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.hp > 600) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
}
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.hp < 600) {
gotoAndStop (2);
} else if (_parent.rad > 50) {
if (fashe == 0) {
guan.play();
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshell, "eshell" + _global.lloop, _global.lloop);
degree = (_rotation * Math.PI) / 180;
_root["eshell" + _global.lloop]._x = _parent._parent._x - 172;
_root["eshell" + _global.lloop]._y = _parent._parent._y - 21;
_root["eshell" + _global.lloop].shelldegree = degree;
_root["eshell" + _global.lloop].dorotation = _rotation;
_root["eshell" + _global.lloop].gotoAndStop(2);
}
}
}
}
Instance of Symbol 697 MovieClip in Symbol 734 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.hp > 600) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
}
onClipEvent (enterFrame) {
if (_parent.hp > 600) {
if (_root.zhanting == 0) {
ang = (aimx - _parent._parent._x) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
}
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.hp < 600) {
gotoAndStop (2);
} else if (_parent.rad > 50) {
if (fashe == 0) {
guan.play();
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshell, "eshell" + _global.lloop, _global.lloop);
degree = (_rotation * Math.PI) / 180;
_root["eshell" + _global.lloop]._x = _parent._parent._x - 172;
_root["eshell" + _global.lloop]._y = _parent._parent._y + 21;
_root["eshell" + _global.lloop].shelldegree = degree;
_root["eshell" + _global.lloop].dorotation = _rotation;
_root["eshell" + _global.lloop].gotoAndStop(2);
}
}
}
}
Instance of Symbol 705 MovieClip in Symbol 734 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.hp > 300) {
ang = ((aimx - _parent._parent._x) + 108) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.hp <= 300) {
gotoAndStop (2);
} else if (_parent.rad > 20) {
if (fashe == 0) {
guan.play();
_parent.fashele = 1;
_global.lloop = _global.lloop + 1;
duplicateMovieClip (_root.eshello, "eshello" + _global.lloop, _global.lloop);
degree = (_rotation * Math.PI) / 180;
_root["eshello" + _global.lloop]._x = (_parent._parent._x + (_width * Math.cos(degree))) - 108;
_root["eshello" + _global.lloop]._y = _parent._parent._y + (_width * Math.sin(degree));
_root["eshello" + _global.lloop].shelldegree = degree;
_root["eshello" + _global.lloop].dorotation = _rotation;
_root["eshello" + _global.lloop].gotoAndStop(2);
}
}
}
}
Instance of Symbol 712 MovieClip in Symbol 734 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.hp < 200) {
if (_parent.rad > 50) {
if (fashe == 0) {
play();
}
}
}
}
}
onClipEvent (load) {
fashe = 0;
}
Instance of Symbol 720 MovieClip in Symbol 734 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.usetank == 1) {
aimx = _root.tank1._x;
aimy = _root.tank1._y;
}
if (_root.mancontol == 1) {
aimx = _root.man._x;
aimy = _root.man._y;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
ang = ((aimx - _parent._parent._x) - 85) / (_parent._parent._y - aimy);
angle = Math.atan(ang);
if ((aimy - _parent._parent._y) < 0) {
angle = (((angle * 180) / Math.PI) + 270) % 360;
} else {
angle = (((angle * 180) / Math.PI) + 90) % 360;
}
this._rotation = angle;
}
}
onClipEvent (load) {
aimx = 0;
aimy = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.rad < 25) {
if (_parent.hp < 350) {
if (fashe == 0) {
play();
}
}
}
}
}
Symbol 734 MovieClip Frame 2
rad = random(100);
attrad = random(100);
Instance of Symbol 25 MovieClip in Symbol 734 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_parent.attrad > 60) {
if (_root.usetank == 1) {
if (_parent._parent._x < _root.tank._x) {
_parent._parent._x = _parent._parent._x + _parent.speed;
}
if (_parent._parent._x > _root.tank._x) {
_parent._parent._x = _parent._parent._x - _parent.speed;
}
} else {
if (_parent._parent._x < _root.man._x) {
_parent._parent._x = _parent._parent._x + _parent.speed;
}
if (_parent._parent._x > _root.man._x) {
_parent._parent._x = _parent._parent._x - _parent.speed;
}
}
} else {
if ((_parent.rad >= 0) and (_parent.rad < 30)) {
_parent._parent._x = _parent._parent._x + _parent.speed;
}
if ((_parent.rad >= 30) and (_parent.rad < 60)) {
_parent._parent._x = _parent._parent._x - _parent.speed;
}
if ((_parent.rad >= 60) and (_parent.rad < 100)) {
}
}
}
}
Symbol 734 MovieClip Frame 49
if (attrad > 90) {
gotoAndPlay ("\u6A2A\u6F5C");
}
Symbol 734 MovieClip Frame 50
gotoAndPlay ("\u6A2A\u5411");
Symbol 734 MovieClip Frame 104
_parent._x = random(300) + 100;
_parent._y = random(200) + 100;
Symbol 734 MovieClip Frame 131
gotoAndPlay ("\u6A2A\u5411");
Symbol 734 MovieClip Frame 145
deaded = 1;
Symbol 734 MovieClip Frame 146
_root._x = _root._x + 2;
Symbol 734 MovieClip Frame 147
_root._y = _root._y + 2;
Symbol 734 MovieClip Frame 148
_root._x = _root._x - 2;
Symbol 734 MovieClip Frame 149
_root._y = _root._y - 2;
Symbol 734 MovieClip Frame 151
_root._x = _root._x - 2;
Symbol 734 MovieClip Frame 152
_root._y = _root._y - 2;
Symbol 734 MovieClip Frame 153
_root._x = _root._x + 2;
Symbol 734 MovieClip Frame 154
_root._y = _root._y + 2;
Symbol 734 MovieClip Frame 156
_root._x = _root._x + 2;
Symbol 734 MovieClip Frame 157
_root._y = _root._y + 2;
Symbol 734 MovieClip Frame 158
_root._x = _root._x - 2;
Symbol 734 MovieClip Frame 159
_root._y = _root._y - 2;
Symbol 734 MovieClip Frame 160
_root._x = _root._x + 2;
Symbol 734 MovieClip Frame 161
_root._x = _root._x - 2;
Symbol 734 MovieClip Frame 163
_root._x = _root._x - 5;
_parent.nextFrame();
Symbol 734 MovieClip Frame 164
_root._y = _root._y + 5;
Symbol 734 MovieClip Frame 165
_root._x = _root._x + 5;
Symbol 734 MovieClip Frame 166
_root._y = _root._y - 5;
Symbol 734 MovieClip Frame 167
_root._y = _root._y + 3;
Symbol 734 MovieClip Frame 168
_root._y = _root._y - 3;
Symbol 734 MovieClip Frame 171
_root._x = 0;
_root._y = 0;
Symbol 734 MovieClip Frame 173
_root.bossbow = 1;
Symbol 734 MovieClip Frame 174
stop();
_root.score = _root.score + 50000;
_parent._parent._x = -10000;
_parent._parent._y = -10000;
Instance of Symbol 734 MovieClip "boss" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
speed = 3;
hp = 1000;
deaded = 0;
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
if (_root.lan.hitTest(_parent._x + (_width / 2), _parent._y, true)) {
_parent._x = _parent._x - 10;
}
if (_root.lan.hitTest(_parent._x - (_width / 2), _parent._y, true)) {
_parent._x = _parent._x + 10;
}
if (_root.lan.hitTest(_parent._y + (_height / 2), _parent._y, true)) {
_parent._y = _parent._y - 10;
}
if (_root.lan.hitTest(_parent._y - (_height / 2), _parent._y, true)) {
_parent._y = _parent._y + 10;
}
if (_root.lan2.hitTest(_parent._x + (_width / 2), _parent._y, true)) {
_parent._x = _parent._x - 10;
}
if (_root.lan2.hitTest(_parent._x - (_width / 2), _parent._y, true)) {
_parent._x = _parent._x + 10;
}
if (_root.lan2.hitTest(_parent._y + (_height / 2), _parent._y, true)) {
_parent._y = _parent._y - 10;
}
if (_root.lan2.hitTest(_parent._y - (_height / 2), _parent._y, true)) {
_parent._y = _parent._y + 10;
}
if (_parent._x < (_root.back._x + (_width / 2))) {
_parent._x = _parent._x + 10;
}
if (_parent._x > ((_root.back._width + _root.back._x) - 10)) {
_parent._x = _parent._x - 10;
}
if (_parent._y < (_root.back._y + (_width / 2))) {
_parent._y = _parent._y + 10;
}
if (_parent._y > ((_root.back._height + _root.back._y) - 20)) {
_parent._y = _parent._y - 10;
}
}
}
onClipEvent (enterFrame) {
if (_root.zhanting == 0) {
i = 0;
while (i < 50) {
if (_root["shell" + i].mian.hitTest(this)) {
behit.play();
_root["shell" + i].gotoAndPlay("bow");
hp = hp - 5;
_root.bhpp._visible = true;
}
if (_root["shellp" + i].mian.hitTest(this)) {
_root["shellp" + i].gotoAndPlay("bow");
behit.play();
hp = hp - 20;
_root.bhpp._visible = true;
}
if (_root["armp" + i].mian.hitTest(this)) {
_root["armp" + i].gotoAndStop("bow");
behit.play();
hp = hp - 10;
_root.bhpp._visible = true;
}
if (_root["se" + i].mian.hitTest(this)) {
_root["se" + i].gotoAndStop("bow");
behit.play();
hp = hp - 50;
_root.bhpp._visible = true;
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (deaded == 0) {
if (hp <= 0) {
gotoAndPlay ("dead");
}
}
}
Symbol 743 Button
on (release) {
stopAllSounds();
gotoAndPlay (1);
}
Symbol 754 Button
on (release) {
System.useCodepage = true;
if (_parent.hero == "") {
_parent.heroo.play();
} else {
this.loadVariables("http://www.loadfreegames.com/arcadelist_com/upload/TruthBattle/adsco.asp", "POST");
gotoAndStop ("loading");
}
}
Symbol 757 Button
on (release) {
getURL ("http://www.loadfreegames.com", "_blank");
}
Symbol 762 MovieClip Frame 1
stop();
Symbol 768 Button
on (release) {
System.useCodepage = true;
this.loadVariables("http://www.loadfreegames/arcadelist_com/upload/TruthBattle/adsco.asp", "POST");
gotoAndStop ("loading");
}
Symbol 769 Button
on (release) {
getURL ("http://www.loadfreegames.com", _blank);
}
Symbol 771 MovieClip Frame 1
stop();
fs = _root.score;
Instance of Symbol 765 MovieClip in Symbol 771 MovieClip Frame 6
onClipEvent (load) {
function timeout() {
_parent.gotoAndStop("timeout");
}
setInterval(timeout, 10000);
}
Symbol 771 MovieClip Frame 12
stop();
Symbol 772 MovieClip Frame 1
stop();
Instance of Symbol 771 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (data) {
this.gotoAndStop("done");
}