Frame 1
function drawmap(mymap) {
_root.createEmptyMovieClip("game", 1);
game._x = game._x + 40;
game._y = game._y + 20;
game.attachMovie("bg", "bg", 1);
game.bg._x = -40;
game.bg._y = -20;
i = 0;
while (i < 26) {
j = 0;
while (j < 26) {
var name;
name = (("T_" + i) + "_") + j;
game.attachMovie("gametile", name, ((100 * i) + j) + 100);
game[name].init(mymap[i][j], i, j);
j++;
}
i++;
}
game.attachMovie("home", "home", 3000);
game.home._x = 208;
game.home._y = 400;
i = 0;
while (i < 20) {
var name;
name = "N_" + i;
game.attachMovie("Nenemy", name, 50 + i);
with (game[name]) {
_x = (27 + (i % 2)) * 16;
_y = (1 + Math.floor(i / 2)) * 16;
}
i++;
}
}
function make_control() {
_root.game.createEmptyMovieClip("control", 2);
_root.game.control.onEnterFrame = function () {
if (Key.isDown(70)) {
if (_root.game.MT_1.Fire()) {
_root.S_fashe.start(0, 1);
}
}
if (Key.isDown(38)) {
_root.game.MT_1.move(0, -1);
} else if (Key.isDown(40)) {
_root.game.MT_1.move(0, 1);
} else if (Key.isDown(37)) {
_root.game.MT_1.move(-1, 0);
} else if (Key.isDown(39)) {
_root.game.MT_1.move(1, 0);
}
};
}
function draw_Tank(name) {
if (name == "MT_") {
_root.draw_mytank();
} else {
_root.draw_enemytank();
}
}
function draw_mytank() {
if (_root.myNumber > 0) {
var time = getTimer();
_root.game.attachMovie("donghua", "donghua", 3100);
_root.game.donghua._x = 128;
_root.game.donghua._y = 384;
_root.game.donghua.onEnterFrame = function () {
if ((getTimer() - time) >= 800) {
_root.game.attachMovie("Mtank" + _root.myLv, "MT_1", 3100);
_root.game.MT_1.attachMovie("baohu", "baohu", 1);
_root.game.MT_1.baohu.setTime(3000);
_root.game.MT_1.init(8, 24);
_root.myNumber--;
}
};
} else {
_root.gameOver();
}
}
function draw_enemytank() {
if (_root.enemyCurrentNumber <= 20) {
if (_root.enemyNumber < 4) {
var time = getTimer();
_root.game.createEmptyMovieClip("drawT", 3);
_root.game.drawT.onEnterFrame = function () {
if ((getTimer() - time) > 1500) {
var _local5 = _root.enemyCurrentNumber;
var _local3 = 0;
var _local4 = (_root.enemyCurrentNumber % 3) * 12;
_root.enemyNumber++;
_root.game.attachMovie("donghua", "donghua1", 3200);
_root.game.donghua1._x = _local4 * 16;
_root.game.donghua1._y = _local3;
_root.game.donghua1.number = _local5;
_root.game.donghua1.k = 0;
_root.game.donghua1.x = _local4;
_root.game.donghua1.y = _local3;
time = getTimer();
}
if ((_root.enemyNumber == 4) || (_root.enemyCurrentNumber > 20)) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
} else if (_root.enemyNumber == 0) {
_root.gameWin();
}
}
function startGame() {
enemyCurrentNumber = 1;
enemyNumber = 0;
drawmap(_root["gamemap" + gameLv]);
draw_mytank();
draw_enemytank();
make_control();
}
function gameOver() {
_root.game.control.removeMovieClip();
_root.game.attachMovie("gameover", "gameover", 3500);
_root.game.gameover._x = 208;
_root.game.gameover._y = 448;
_root.game.gameover.onEnterFrame = function () {
var _local3 = this._y;
if (_local3 > 182) {
_local3 = _local3 - 5;
this._y = _local3;
} else {
_root.endShow();
delete this.onEnterFrame;
}
};
}
function gameWin() {
_root.game.createEmptyMovieClip("gamewin", 3);
var time = getTimer();
_root.game.gamewin.onEnterFrame = function () {
if ((getTimer() - time) > 3500) {
_root.myNumber++;
_root.gameLv++;
if (_root.gameLv > 16) {
_root.endShow();
} else {
_root.startGame();
}
delete this.onEnterFrame;
}
};
}
function endShow() {
_root.attachMovie("end", "end", 1);
_root.end._x = 50;
_root.end._y = 10;
}
function piantouShow() {
S_ws.attachSound("sws");
S_yidong.attachSound("syidong");
S_hit.attachSound("shit");
S_hit2.attachSound("shit2");
S_jiangli.attachSound("sjiangli");
S_fashe.attachSound("sfashe");
S_fashe.setVolume(50);
_root.myLv = 1;
_root.gameLv = 1;
_root.myNumber = 3;
_root.attachMovie("piantou", "piantou", 1);
_root.piantou._x = 40;
_root.piantou._y = 10;
}
function choiceGame() {
_root.attachMovie("choice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1, 3, 3];
tanks3 = [1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 3, 3, 3, 3, 1, 1, 4, 4];
tanks4 = [2, 2, 2, 2, 2, 2, 1, 1, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 2, 2];
tanks5 = [3, 3, 3, 3, 2, 2, 1, 1, 1, 1, 4, 4, 1, 1, 1, 1, 3, 3, 3, 3];
tanks6 = [3, 3, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4];
tanks7 = [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3];
tanks8 = [2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 3, 3, 3, 3, 4, 4, 2, 2, 3, 3];
tanks9 = [1, 1, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1];
tanks10 = [4, 4, 4, 4, 2, 2, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 1, 1, 4, 4];
tanks11 = [3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2];
tanks12 = [4, 4, 4, 4, 4, 4, 1, 1, 1, 2, 3, 3, 2, 1, 1, 1, 4, 4, 4, 4];
tanks13 = [4, 4, 4, 4, 2, 2, 1, 1, 1, 3, 3, 3, 3, 1, 1, 1, 4, 4, 4, 4];
tanks14 = [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4];
tanks15 = [1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 4, 4, 3, 3, 1, 1, 2, 2];
tanks16 = [4, 4, 1, 1, 2, 2, 2, 2, 3, 3, 2, 2, 4, 4, 3, 3, 1, 1, 2, 2];
fscommand ("allowscale", false);
fscommand ("showmenu", false);
var sound = new Sound();
var S_yidong = new Sound();
var S_fashe = new Sound();
var S_jiangli = new Sound();
var S_hit = new Sound();
var S_hit2 = new Sound();
var S_ws = new Sound();
var gameLv;
var enemyCurrentNumber;
var enemyNumber;
var myLv;
var myNumber;
piantouShow();
Symbol 12 MovieClip [Mtank1] Frame 1
#initclip 25
Object.registerClass("Mtank1", myTank1);
#endinitclip
stop();
Symbol 20 MovieClip [xiaobaozha] Frame 4
if (_root.game[_parent.name] != undefined) {
_root.game[_parent.name].openFire();
}
_parent.removeMovieClip();
Symbol 21 MovieClip [bullet] Frame 1
#initclip 15
Object.registerClass("bullet", Bullet);
#endinitclip
stop();
Symbol 34 MovieClip [gametile] Frame 1
#initclip 16
Object.registerClass("gametile", gameTile);
#endinitclip
Symbol 39 MovieClip [home] Frame 1
stop();
Symbol 46 MovieClip [baozha] Frame 7
this.removeMovieClip();
Symbol 52 MovieClip [Etank1] Frame 1
#initclip 17
Object.registerClass("Etank1", enemyTank1);
#endinitclip
Symbol 60 MovieClip Frame 1
stop();
x = this._x;
speed = 2;
this.onEnterFrame = function () {
if ((x < 150) || (x > 350)) {
speed = -speed;
}
x = x + speed;
this._x = x;
};
Symbol 65 MovieClip [donghua] Frame 4
k++;
if (k == 3) {
var classnumber = ("Etank" + _root["tanks" + _root.gameLv][number - 1]);
var name = ("ET_" + number);
_root.game.attachMovie(classnumber, name, 3500 + number);
_root.game[name].id = number;
_root.game[name].init(x, y);
if ((number % 7) == 4) {
_root.game[name].setParent();
}
_root.game["N_" + (20 - number)].removeMovieClip();
_root.enemyCurrentNumber++;
this.removeMovieClip();
}
Symbol 81 Button
on (release) {
_root.choiceGame();
_parent.removeMovieClip();
}
Symbol 88 MovieClip [Etank2] Frame 1
#initclip 18
Object.registerClass("Etank2", enemyTank2);
#endinitclip
stop();
Symbol 94 MovieClip [Etank3] Frame 1
#initclip 19
Object.registerClass("Etank3", enemyTank3);
#endinitclip
stop();
Symbol 100 MovieClip [Etank4] Frame 1
#initclip 20
Object.registerClass("Etank4", enemyTank4);
#endinitclip
stop();
Symbol 106 MovieClip [Mtank2] Frame 1
#initclip 21
Object.registerClass("Mtank2", myTank2);
#endinitclip
Symbol 112 MovieClip [Mtank3] Frame 1
#initclip 22
Object.registerClass("Mtank3", myTank3);
#endinitclip
Symbol 133 MovieClip [jiangli] Frame 1
#initclip 23
Object.registerClass("jiangli", jiangLi);
#endinitclip
Symbol 137 MovieClip [baohu] Frame 1
#initclip 24
Object.registerClass("baohu", baoHu);
#endinitclip
Symbol 142 Button
on (release) {
_root.piantouShow();
}
Symbol 150 Button
on (release) {
if (_root.gameLv > 1) {
_root.gameLv--;
}
}
Symbol 152 Button
on (release) {
if (_root.gameLv < 16) {
_root.gameLv++;
}
}
Symbol 153 Button
on (release) {
_root.startGame();
_parent.removeMovieClip();
}
Symbol 157 MovieClip [__Packages.Bullet] Frame 0
class Bullet extends MovieClip
{
var width, height, name, enemy, dirx, diry, x, y, lv, speed, _x, _y, xtile, ytile, gotoAndStop, onEnterFrame, downY, upY, leftX, rightX, upleft, downleft, upright, downright;
function Bullet () {
super();
width = 4;
height = 4;
}
function changeEnemy() {
if (name.charAt(0) == "M") {
enemy = "ET_";
} else {
enemy = "MT_";
}
}
function init(x, y, dirx, diry, lv, name, shootspeed) {
this.dirx = dirx;
this.diry = diry;
this.x = x + (dirx * 16);
this.y = y + (diry * 16);
this.lv = lv;
this.name = name;
speed = shootspeed;
changeEnemy();
_x = this.x;
_y = this.y;
xtile = Math.floor((this.x - dirx) / 16);
ytile = Math.floor((this.y - diry) / 16);
(gotoAndStop((dirx + (diry * 2)) + 3));// not popped
move();
}
function move() {
onEnterFrame = function () {
this.getMyCorners(this.x + (this.speed * this.dirx), this.y + (this.speed * this.diry));
if (((this.upleft && (this.downleft)) && (this.upright)) && (this.downright)) {
this.x = this.x + (this.speed * this.dirx);
this.y = this.y + (this.speed * this.diry);
this.xtile = Math.floor(this.x / 16);
this.ytile = Math.floor(this.y / 16);
this._x = this.x;
this._y = this.y;
} else {
if (this.dirx == 1) {
this.x = (this.xtile + 1) * 16;
}
if (this.dirx == -1) {
this.x = this.xtile * 16;
}
if (this.diry == 1) {
this.y = (this.ytile + 1) * 16;
}
if (this.diry == -1) {
this.y = this.ytile * 16;
}
this._x = this.x;
this._y = this.y;
(this.gotoAndStop(6));// not popped
this.distory();
delete this.onEnterFrame;
}
var _local3 = 1;
while (_local3 <= 20) {
if (this.hitTest(_root.game[this.enemy + _local3])) {
(this.gotoAndStop(6));// not popped
if (this.lv < 3) {
_root.game[this.enemy + _local3].distorypower--;
} else {
_root.game[this.enemy + _local3].distorypower = 0;
}
if (_root.game[this.enemy + _local3].distorypower <= 0) {
var _local5 = _root.game[this.enemy + _local3]._x;
var _local4 = _root.game[this.enemy + _local3]._y;
_root.game[this.enemy + _local3].deleteup();
if (this.enemy == "ET_") {
_root.enemyNumber--;
if (_root.game[this.enemy + _local3].haveParent) {
_root.S_hit2.start(0, 1);
_root.game.attachMovie("jiangli", "jiangli", 95000);
}
} else {
_root.myLv = 1;
}
_root.game[this.enemy + _local3].removeMovieClip();
_root.game.attachMovie("baozha", "baozha" + this.name, this.getDepth() + 1);
_root.game["baozha" + this.name]._x = _local5;
_root.game["baozha" + this.name]._y = _local4;
_root.draw_Tank(this.enemy);
} else if (this.name == "MT_1") {
_root.S_ws.start(0, 1);
}
delete this.onEnterFrame;
}
_local3++;
}
if ((this.enemy == "MT_") && (this.hitTest(_root.game.B_MT_1))) {
_root.game.B_MT_1.removeMovieClip();
_root.game.MT_1.openFire();
_root.game[this.name].openFire();
this.removeMovieClip();
}
};
}
function getMyCorners(x, y) {
downY = Math.floor(((y + height) - 1) / 16);
upY = Math.floor((y - height) / 16);
leftX = Math.floor((x - width) / 16);
rightX = Math.floor(((x + width) - 1) / 16);
upleft = _root.game[(("T_" + upY) + "_") + leftX].shootable;
downleft = _root.game[(("T_" + downY) + "_") + leftX].shootable;
upright = _root.game[(("T_" + upY) + "_") + rightX].shootable;
downright = _root.game[(("T_" + downY) + "_") + rightX].shootable;
}
function distory() {
var _local4;
var _local3;
var _local5 = false;
if (((dirx != 0) && ((xtile + dirx) >= 0)) && ((xtile + dirx) <= 25)) {
_local4 = xtile + dirx;
_local3 = ytile;
if (_root.game[(("T_" + _local3) + "_") + _local4].distorylv <= lv) {
_root.game[(("T_" + _local3) + "_") + _local4].init(0, _local3, _local4);
}
if (_root.game[(("T_" + (_local3 - 1)) + "_") + _local4].distorylv <= lv) {
_root.game[(("T_" + (_local3 - 1)) + "_") + _local4].init(0, _local3 - 1, _local4);
}
if ((_root.game[(("T_" + _local3) + "_") + _local4].name == "laojia") || (_root.game[(("T_" + (_local3 - 1)) + "_") + _local4].name == "laojia")) {
_local5 = true;
}
}
if (diry != 0) {
_local4 = xtile;
_local3 = ytile + diry;
if (_root.game[(("T_" + _local3) + "_") + _local4].distorylv <= lv) {
_root.game[(("T_" + _local3) + "_") + _local4].init(0, _local3, _local4);
}
if (_root.game[(("T_" + _local3) + "_") + (_local4 - 1)].distorylv <= lv) {
_root.game[(("T_" + _local3) + "_") + (_local4 - 1)].init(0, _local3, _local4 - 1);
}
if ((_root.game[(("T_" + _local3) + "_") + _local4].name == "laojia") || (_root.game[(("T_" + _local3) + "_") + (_local4 - 1)].name == "laojia")) {
_local5 = true;
}
}
if (_local5) {
_root.game.home.attachMovie("baozha", "baozha", 1);
_root.game.home.gotoAndStop(2);
_root.gameOver();
}
}
}
Symbol 158 MovieClip [__Packages.gameTile] Frame 0
class gameTile extends MovieClip
{
var walkable, shootable, name, distorylv, swapDepths, getDepth, upOb, _y, _x, gotoAndStop;
function gameTile () {
super();
}
function init(flag, y, x) {
switch (flag) {
case 0 :
walkable = true;
shootable = true;
name = "lu";
distorylv = 5;
break;
case 1 :
walkable = false;
shootable = false;
name = "qiang";
distorylv = 1;
break;
case 2 :
walkable = false;
shootable = false;
name = "gangban";
distorylv = 3;
break;
case 3 :
walkable = true;
shootable = true;
name = "shu";
swapDepths(getDepth() + 90000);
distorylv = 5;
break;
case 4 :
walkable = false;
shootable = true;
name = "shui";
distorylv = 5;
break;
case 9 :
walkable = false;
shootable = false;
name = "laojia";
distorylv = 5;
}
upOb = "";
_y = y * 16;
_x = x * 16;
(gotoAndStop(name));// not popped
}
function checkwalkable(name) {
var _local2;
_local2 = (upOb == "") || (upOb == name);
return(walkable && (_local2));
}
}
Symbol 159 MovieClip [__Packages.Tank] Frame 0
class Tank extends MovieClip
{
var name, _name, width, height, distorypower, starttime, _x, _y, x, y, dirx, diry, gotoAndStop, xtile, ytile, speed, upleft, upright, downleft, downright, downY, upY, leftX, rightX, canfire, shoottime, id, lv, shootspeed;
function Tank () {
super();
name = _name;
width = 16;
height = 16;
distorypower = 1;
starttime = getTimer();
}
function init(tx, ty) {
_x = 16 * (tx + 1);
_y = 16 * (ty + 1);
x = _x;
y = _y;
openFire();
}
function move(dirx, diry) {
_root.S_yidong.stop("syidong");
_root.S_yidong.start(0, 1);
this.dirx = dirx;
this.diry = diry;
(gotoAndStop((dirx + (diry * 2)) + 3));// not popped
xtile = Math.round(x / 16);
ytile = Math.round(y / 16);
if (dirx) {
y = ytile * 16;
}
if (diry) {
x = xtile * 16;
}
deleteup();
getMyCorners(x, y + (diry * speed));
if (diry == -1) {
if (upleft && (upright)) {
y = y + (speed * diry);
}
}
if (diry == 1) {
if (downleft && (downright)) {
y = y + (speed * diry);
}
}
getMyCorners(x + (dirx * speed), y);
if (dirx == -1) {
if (upleft && (downleft)) {
x = x + (speed * dirx);
}
}
if (dirx == 1) {
if (upright && (downright)) {
x = x + (speed * dirx);
}
}
_x = x;
_y = y;
xtile = Math.round(x / 16);
ytile = Math.round(y / 16);
setup();
}
function getMyCorners(x, y) {
downY = Math.floor(((y + height) - 1) / 16);
upY = Math.floor((y - height) / 16);
leftX = Math.floor((x - width) / 16);
rightX = Math.floor(((x + width) - 1) / 16);
upleft = _root.game[(("T_" + upY) + "_") + leftX].checkwalkable();
downleft = _root.game[(("T_" + downY) + "_") + leftX].checkwalkable();
upright = _root.game[(("T_" + upY) + "_") + rightX].checkwalkable();
downright = _root.game[(("T_" + downY) + "_") + rightX].checkwalkable();
}
function Fire() {
if (canfire && ((getTimer() - starttime) > shoottime)) {
starttime = getTimer();
lockFire();
var _local3 = "B_" + name;
_root.game.attachMovie("bullet", _local3, 5000 + (id * 4));
_root.game[_local3].init(x, y, dirx, diry, lv, name, shootspeed);
return(true);
}
}
function lockFire() {
canfire = false;
}
function openFire() {
canfire = true;
}
function setup() {
_root.game[(("T_" + ytile) + "_") + xtile].upOb = "name";
_root.game[(("T_" + (ytile - 1)) + "_") + xtile].upOb = "name";
_root.game[(("T_" + ytile) + "_") + (xtile - 1)].upOb = "name";
_root.game[(("T_" + (ytile - 1)) + "_") + (xtile - 1)].upOb = "name";
}
function deleteup() {
_root.game[(("T_" + ytile) + "_") + xtile].upOb = "";
_root.game[(("T_" + (ytile - 1)) + "_") + xtile].upOb = "";
_root.game[(("T_" + ytile) + "_") + (xtile - 1)].upOb = "";
_root.game[(("T_" + (ytile - 1)) + "_") + (xtile - 1)].upOb = "";
}
}
Symbol 160 MovieClip [__Packages.enemyTank] Frame 0
class enemyTank extends Tank
{
var dirx, diry, lv, move, onEnterFrame, x, prevx, y, prevy, attachMovie;
function enemyTank () {
super();
dirx = 0;
diry = 1;
lv = 1;
move(dirx, diry);
brain();
}
function brain() {
onEnterFrame = function () {
this.prevx = this.x;
this.prevy = this.y;
this.move(this.dirx, this.diry);
this.Fire();
this.changeturn();
};
}
function changeturn() {
if ((prevx == x) && (prevy == y)) {
var _local2;
_local2 = Math.floor(Math.random() * 2);
if (_local2 == 0) {
_local2 = -1;
}
if (dirx == 0) {
dirx = _local2;
diry = 0;
} else {
dirx = 0;
diry = _local2;
}
}
}
function setParent() {
_root.game.jiangli.removeMovieClip();
haveParent = true;
attachMovie("hjiangli", "hjiangli", 1);
}
function stopBrain() {
delete onEnterFrame;
}
var haveParent = false;
}
Symbol 161 MovieClip [__Packages.enemyTank1] Frame 0
class enemyTank1 extends enemyTank
{
var shootspeed, speed, lv, shoottime;
function enemyTank1 () {
super();
shootspeed = 6;
speed = 3;
lv = 1;
shoottime = 1000;
}
}
Symbol 162 MovieClip [__Packages.enemyTank2] Frame 0
class enemyTank2 extends enemyTank
{
var shootspeed, speed, lv, shoottime;
function enemyTank2 () {
super();
shootspeed = 8;
speed = 5;
lv = 1;
shoottime = 800;
}
}
Symbol 163 MovieClip [__Packages.enemyTank3] Frame 0
class enemyTank3 extends enemyTank
{
var shootspeed, speed, lv, shoottime;
function enemyTank3 () {
super();
shootspeed = 10;
speed = 4;
lv = 1;
shoottime = 600;
}
}
Symbol 164 MovieClip [__Packages.enemyTank4] Frame 0
class enemyTank4 extends enemyTank
{
var speed, lv, distorypower, shoottime, shootspeed;
function enemyTank4 () {
super();
speed = 2;
lv = 1;
distorypower = 3;
shoottime = 900;
shootspeed = 9;
}
}
Symbol 165 MovieClip [__Packages.myTank] Frame 0
class myTank extends Tank
{
var id, dirx, diry, gotoAndStop, shoottime;
function myTank () {
super();
id = 0;
dirx = 0;
diry = -1;
(gotoAndStop((dirx + (diry * 2)) + 3));// not popped
shoottime = 0;
}
}
Symbol 166 MovieClip [__Packages.myTank2] Frame 0
class myTank2 extends myTank
{
var shootspeed, speed, lv;
function myTank2 () {
super();
shootspeed = 12;
speed = 4;
lv = 2;
}
}
Symbol 167 MovieClip [__Packages.myTank3] Frame 0
class myTank3 extends myTank
{
var shootspeed, speed, lv;
function myTank3 () {
super();
shootspeed = 11;
speed = 4;
lv = 3;
}
}
Symbol 168 MovieClip [__Packages.jiangLi] Frame 0
class jiangLi extends MovieClip
{
var id, gotoAndStop, _x, _y, onEnterFrame;
function jiangLi () {
super();
id = Math.floor(Math.random() * 6) + 1;
gotoAndStop(id);
var _local3 = Math.floor((Math.random() * 19) + 2);
var _local4 = Math.floor((Math.random() * 19) + 2);
_x = _local3 * 16;
_y = _local4 * 16;
makejiangli();
}
function makejiangli() {
onEnterFrame = function () {
if (this.hitTest(_root.game.MT_1)) {
_root.S_hit.start(0, 1);
switch (this.id) {
case 1 :
_root.game.MT_1.attachMovie("baohu", "baohu", 1);
_root.game.MT_1.baohu.setTime(10000);
_root.S_hit2.start(0, 1);
break;
case 2 :
_root.myNumber++;
_root.S_jiangli.start(0, 1);
break;
case 3 :
if (_root.myLv < 3) {
_root.myLv++;
var _local7 = _root.game.MT_1.xtile - 1;
var _local8 = _root.game.MT_1.ytile - 1;
var _local10 = _root.game.MT_1.dirx;
var _local9 = _root.game.MT_1.diry;
_root.game.attachMovie("Mtank" + _root.myLv, "MT_1", 3100);
_root.game.MT_1.init(_local7, _local8);
_root.game.MT_1.move(_local10, _local9);
}
break;
case 4 :
var _local4 = 1;
while (_local4 <= 20) {
if (_root.game["ET_" + _local4] != undefined) {
var _local6 = _root.game["ET_" + _local4]._x;
var _local5 = _root.game["ET_" + _local4]._y;
_root.game["ET_" + _local4].deleteup();
_root.game.attachMovie("baozha", "baozha" + _local4, _root.game["ET_" + _local4].getDepth());
_root.game["baozha" + _local4]._x = _local6;
_root.game["baozha" + _local4]._y = _local5;
_root.enemyNumber--;
_root.draw_enemytank();
}
_local4++;
}
break;
case 5 :
var starttime = getTimer();
_root.game.createEmptyMovieClip("stopEnemy", 5);
_root.game.stopEnemy.onEnterFrame = function () {
if ((getTimer() - starttime) < 12000) {
var _local3 = 1;
while (_local3 <= 20) {
if (_root.game["ET_" + _local3] != undefined) {
_root.game["ET_" + _local3].stopBrain();
}
_local3++;
}
} else {
var _local3 = 1;
while (_local3 <= 20) {
if (_root.game["ET_" + _local3] != undefined) {
_root.game["ET_" + _local3].brain();
}
_local3++;
}
delete this.onEnterFrame;
this.removeMovieClip();
}
};
break;
case 6 :
_local4 = 22;
while (_local4 < 26) {
var _local3 = 10;
while (_local3 < 16) {
if ((_root.game[(("T_" + _local4) + "_") + _local3].name != "laojia") && (_root.game[(("T_" + _local4) + "_") + _local3].upOb == "")) {
_root.game[(("T_" + _local4) + "_") + _local3].init(2, _local4, _local3);
}
_local3++;
}
_local4++;
}
var starttime = getTimer();
_root.game.createEmptyMovieClip("pHome", 6);
_root.game.pHome.onEnterFrame = function () {
if ((getTimer() - starttime) >= 12000) {
var _local4 = 22;
while (_local4 < 26) {
var _local3 = 10;
while (_local3 < 16) {
if ((_root.game[(("T_" + _local4) + "_") + _local3].name != "laojia") && (_root.game[(("T_" + _local4) + "_") + _local3].upOb == "")) {
_root.game[(("T_" + _local4) + "_") + _local3].init(1, _local4, _local3);
}
_local3++;
}
_local4++;
}
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
this.removeMovieClip();
}
};
}
}
Symbol 169 MovieClip [__Packages.baoHu] Frame 0
class baoHu extends MovieClip
{
var startTime, onEnterFrame;
function baoHu () {
super();
startTime = getTimer();
}
function setTime(time) {
onEnterFrame = function () {
_root.game.MT_1.distorypower = 5;
if ((getTimer() - this.startTime) > time) {
_root.game.MT_1.distorypower = 1;
this.removeMovieClip();
}
};
}
}
Symbol 170 MovieClip [__Packages.myTank1] Frame 0
class myTank1 extends myTank
{
var shootspeed, speed, lv;
function myTank1 () {
super();
shootspeed = 10;
speed = 4;
lv = 1;
}
}