Frame 1
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
theall = _root.getBytesTotal();
theloaded = _root.getBytesLoaded();
if (theall == theloaded) {
gotoAndPlay (4);
}
percent = int((theloaded / theall) * 100);
loaded = int((theloaded / theall) * 100) + " loading...";
_root.loading.gotoAndStop(percent);
Frame 2
if (theall == theloaded) {
gotoAndPlay (4);
} else {
gotoAndPlay (1);
}
Frame 3
if (false) {
}
Frame 4
delete this.onEnterFrame;
stop();
restart();
if (!init0) {
init0 = true;
KeyMap = {};
KeyMap[0] = "unknown";
KeyMap[1] = "\u9F20\u6807\u5DE6\u952E";
KeyMap[2] = "\u9F20\u6807\u53F3\u952E";
KeyMap[3] = "unknown";
KeyMap[4] = "\u9F20\u6807\u4E2D\u952E";
KeyMap[5] = "unknown";
KeyMap[6] = "unknown";
KeyMap[7] = "unknown";
KeyMap[8] = "\u9000\u683C";
KeyMap[9] = "Tab";
KeyMap[10] = "unknown";
KeyMap[11] = "unknown";
KeyMap[12] = "Clear";
KeyMap[13] = "\u56DE\u8F66";
KeyMap[14] = "unknown";
KeyMap[15] = "unknown";
KeyMap[16] = "Shift";
KeyMap[17] = "Ctrl";
KeyMap[18] = "Alt";
KeyMap[19] = "Break";
KeyMap[20] = "Caps";
KeyMap[21] = "unknown";
KeyMap[22] = "unknown";
KeyMap[23] = "unknown";
KeyMap[24] = "unknown";
KeyMap[25] = "unknown";
KeyMap[26] = "unknown";
KeyMap[27] = "Esc";
KeyMap[28] = "unknown";
KeyMap[29] = "unknown";
KeyMap[30] = "unknown";
KeyMap[31] = "unknown";
KeyMap[32] = "Space";
KeyMap[33] = "PageUp";
KeyMap[34] = "PageDn";
KeyMap[35] = "End";
KeyMap[36] = "Home";
KeyMap[37] = "\u65B9\u5411\u952E\u5DE6";
KeyMap[38] = "\u65B9\u5411\u952E\u4E0A";
KeyMap[39] = "\u65B9\u5411\u952E\u53F3";
KeyMap[40] = "\u65B9\u5411\u952E\u4E0B";
KeyMap[41] = "unknown";
KeyMap[42] = "unknown";
KeyMap[43] = "unknown";
KeyMap[44] = "\u622A\u56FE";
KeyMap[45] = "Insert";
KeyMap[46] = "\u5220\u9664";
KeyMap[47] = "Help";
KeyMap[48] = "0";
KeyMap[49] = "1";
KeyMap[50] = "2";
KeyMap[51] = "3";
KeyMap[52] = "4";
KeyMap[53] = "5";
KeyMap[54] = "6";
KeyMap[55] = "7";
KeyMap[56] = "8";
KeyMap[57] = "9";
KeyMap[58] = "unknown";
KeyMap[59] = "unknown";
KeyMap[60] = "unknown";
KeyMap[61] = "unknown";
KeyMap[62] = "unknown";
KeyMap[63] = "unknown";
KeyMap[64] = "unknown";
KeyMap[65] = "A";
KeyMap[66] = "B";
KeyMap[67] = "C";
KeyMap[68] = "D";
KeyMap[69] = "E";
KeyMap[70] = "F";
KeyMap[71] = "G";
KeyMap[72] = "H";
KeyMap[73] = "I";
KeyMap[74] = "J";
KeyMap[75] = "K";
KeyMap[76] = "L";
KeyMap[77] = "M";
KeyMap[78] = "N";
KeyMap[79] = "O";
KeyMap[80] = "P";
KeyMap[81] = "Q";
KeyMap[82] = "R";
KeyMap[83] = "S";
KeyMap[84] = "T";
KeyMap[85] = "U";
KeyMap[86] = "V";
KeyMap[87] = "W";
KeyMap[88] = "X";
KeyMap[89] = "Y";
KeyMap[90] = "Z";
KeyMap[91] = "\u5DE6Win";
KeyMap[92] = "\u53F3Win";
KeyMap[93] = "\u5F39\u51FA\u83DC\u5355";
KeyMap[94] = "unknown";
KeyMap[95] = "Sleep";
KeyMap[96] = "Num 0";
KeyMap[97] = "Num 1";
KeyMap[98] = "Num 2";
KeyMap[99] = "Num 3";
KeyMap[100] = "Num 4";
KeyMap[101] = "Num 5";
KeyMap[102] = "Num 6";
KeyMap[103] = "Num 7";
KeyMap[104] = "Num 8";
KeyMap[105] = "Num 9";
KeyMap[106] = "Num *";
KeyMap[107] = "Num +";
KeyMap[108] = "unknown";
KeyMap[109] = "Num -";
KeyMap[110] = "Num .";
KeyMap[111] = "Num /";
KeyMap[112] = "F1";
KeyMap[113] = "F2";
KeyMap[114] = "F3";
KeyMap[115] = "F4";
KeyMap[116] = "F5";
KeyMap[117] = "F6";
KeyMap[118] = "F7";
KeyMap[119] = "F8";
KeyMap[120] = "F9";
KeyMap[121] = "F10";
KeyMap[122] = "F11";
KeyMap[123] = "F12";
KeyMap[124] = "F13";
KeyMap[125] = "F14";
KeyMap[126] = "F15";
KeyMap[127] = "unknown";
KeyMap[128] = "unknown";
KeyMap[129] = "unknown";
KeyMap[130] = "unknown";
KeyMap[131] = "unknown";
KeyMap[132] = "unknown";
KeyMap[133] = "unknown";
KeyMap[134] = "unknown";
KeyMap[135] = "unknown";
KeyMap[136] = "unknown";
KeyMap[137] = "unknown";
KeyMap[138] = "unknown";
KeyMap[139] = "unknown";
KeyMap[140] = "unknown";
KeyMap[141] = "unknown";
KeyMap[142] = "unknown";
KeyMap[143] = "unknown";
KeyMap[144] = "Numloc";
KeyMap[145] = "SclLoc";
KeyMap[146] = "unknown";
KeyMap[147] = "unknown";
KeyMap[148] = "unknown";
KeyMap[149] = "unknown";
KeyMap[150] = "unknown";
KeyMap[151] = "unknown";
KeyMap[152] = "unknown";
KeyMap[153] = "unknown";
KeyMap[154] = "unknown";
KeyMap[155] = "unknown";
KeyMap[156] = "unknown";
KeyMap[157] = "unknown";
KeyMap[158] = "unknown";
KeyMap[159] = "unknown";
KeyMap[160] = "\u5DE6Shift";
KeyMap[161] = "\u53F3Shift";
KeyMap[162] = "\u5DE6Ctrl";
KeyMap[163] = "\u53F3Ctrl";
KeyMap[164] = "\u5DE6Alt";
KeyMap[165] = "\u53F3Alt";
KeyMap[166] = "unknown";
KeyMap[167] = "unknown";
KeyMap[168] = "unknown";
KeyMap[169] = "unknown";
KeyMap[170] = "unknown";
KeyMap[171] = "unknown";
KeyMap[172] = "unknown";
KeyMap[173] = "unknown";
KeyMap[174] = "unknown";
KeyMap[175] = "unknown";
KeyMap[176] = "unknown";
KeyMap[177] = "unknown";
KeyMap[178] = "unknown";
KeyMap[179] = "unknown";
KeyMap[180] = "unknown";
KeyMap[181] = "unknown";
KeyMap[182] = "unknown";
KeyMap[183] = "unknown";
KeyMap[184] = "unknown";
KeyMap[185] = "unknown";
KeyMap[186] = ":;";
KeyMap[187] = "+=";
KeyMap[188] = "<,";
KeyMap[189] = "_-";
KeyMap[190] = ">.";
KeyMap[191] = "?/";
KeyMap[192] = "~";
KeyMap[193] = "unknown";
KeyMap[194] = "unknown";
KeyMap[195] = "unknown";
KeyMap[196] = "unknown";
KeyMap[197] = "unknown";
KeyMap[198] = "unknown";
KeyMap[199] = "unknown";
KeyMap[200] = "unknown";
KeyMap[201] = "unknown";
KeyMap[202] = "unknown";
KeyMap[203] = "unknown";
KeyMap[204] = "unknown";
KeyMap[205] = "unknown";
KeyMap[206] = "unknown";
KeyMap[207] = "unknown";
KeyMap[208] = "unknown";
KeyMap[209] = "unknown";
KeyMap[210] = "unknown";
KeyMap[211] = "unknown";
KeyMap[212] = "unknown";
KeyMap[213] = "unknown";
KeyMap[214] = "unknown";
KeyMap[215] = "unknown";
KeyMap[216] = "unknown";
KeyMap[217] = "unknown";
KeyMap[218] = "unknown";
KeyMap[219] = "{[";
KeyMap[220] = "|";
KeyMap[221] = "}]";
KeyMap[222] = "'";
KeyMap[223] = "unknown";
KeyMap[224] = "unknown";
KeyMap[225] = "unknown";
KeyMap[226] = "unknown";
KeyMap[227] = "unknown";
KeyMap[228] = "unknown";
KeyMap[229] = "unknown";
KeyMap[230] = "unknown";
KeyMap[231] = "unknown";
KeyMap[232] = "unknown";
KeyMap[233] = "unknown";
KeyMap[234] = "unknown";
KeyMap[235] = "unknown";
KeyMap[236] = "unknown";
KeyMap[237] = "unknown";
KeyMap[238] = "unknown";
KeyMap[239] = "unknown";
KeyMap[240] = "unknown";
KeyMap[241] = "unknown";
KeyMap[242] = "unknown";
KeyMap[243] = "unknown";
KeyMap[244] = "unknown";
KeyMap[245] = "unknown";
KeyMap[246] = "unknown";
KeyMap[247] = "unknown";
KeyMap[248] = "unknown";
KeyMap[249] = "unknown";
KeyMap[250] = "unknown";
KeyMap[251] = "unknown";
KeyMap[252] = "unknown";
KeyMap[253] = "unknown";
KeyMap[254] = "unknown";
KeyMap[255] = "\u9644\u52A0\u7801";
var control_up = 87;
var control_infor_up = KeyMap[control_up];
var control_down = 83;
var control_infor_down = KeyMap[control_down];
var control_left = 65;
var control_infor_left = KeyMap[control_left];
var control_right = 68;
var control_infor_right = KeyMap[control_right];
var control_att = 74;
var control_infor_att = KeyMap[control_att];
var control_jump = 75;
var control_infor_jump = KeyMap[control_jump];
var control_menu = 85;
var control_infor_menu = KeyMap[control_menu];
var control_use = 73;
var control_infor_use = KeyMap[control_use];
var control_pause = 32;
var control_infor_pause = KeyMap[control_pause];
}
mySOData = SharedObject.getLocal("sanguo", "/");
if (mySOData.data.highScore == null) {
mySOData.data.highScore = 0;
}
highScoreInfo = mySOData.data.highScore;
Frame 24
MovieClip.prototype.hitAndShake = function (range, shakeTime, colorRGBValue, funcCall) {
if (this.basex == null) {
this.basex = this._x;
}
if (this.basey == null) {
this.basey = this._y;
}
if (this.colorObject == null) {
this.colorObject = new Color(this);
}
if (colorRGBValue == null) {
this.colorRGBValue = null;
} else if (colorRGBValue instanceof Object) {
this.colorSetByObject = true;
this.colorRGBValue = colorRGBValue;
} else {
delete this.colorSetByObject;
this.colorRGBValue = int(colorRGBValue);
if ((this.colorRGBValue < 0) || (this.colorRGBValue > 16777215)) {
this.colorRGBValue = 16777215 /* 0xFFFFFF */;
}
}
if (range == null) {
this.range = 20;
} else {
this.range = int(range);
}
if (typeof(this.range) != "number") {
this.range = 20;
}
this._x = (this.basex - (this.range / 2)) + (this.range * Math.random());
this._y = (this.basey - this.range) + ((2 * this.range) * Math.random());
this.flashTime = 6;
if (funcCall == null) {
this.funcCall = null;
} else {
this.funcCall = funcCall;
}
if (shakeTime == null) {
shakeTime = 7;
}
this.shakeTimeCount = 0;
if (this.oldOnEnterFrameFunc != undefined) {
return(undefined);
}
if (this.onEnterFrame != null) {
this.oldOnEnterFrameFunc = this.onEnterFrame;
} else {
this.oldOnEnterFrameFunc = function () {
};
}
this.onEnterFrame = function () {
this.shakeTimeCount++;
this._x = this._x + (1.7 * (this.basex - this._x));
this._y = this._y + (1.7 * (this.basey - this._y));
if ((this.shakeTimeCount <= this.flashTime) && ((this.shakeTimeCount % 2) == 0)) {
if (this.colorSetByObject != null) {
this.colorObject.setTransform(this.colorRGBValue);
} else if (this.colorRGBValue != null) {
this.colorObject.setRGB(this.colorRGBValue);
}
} else if (this.colorSetByObject | this.colorRGBValue) {
this.colorObject.setTransform({ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"});
}
this.oldOnEnterFrameFunc();
if (this.shakeTimeCount == shakeTime) {
this.cancelHitAndShake();
this.funcCall();
}
};
};
MovieClip.prototype.cancelHitAndShake = function () {
if (this.oldOnEnterFrameFunc == undefined) {
return(undefined);
}
this._x = this.basex;
this._y = this.basey;
if (this.colorSetByObject | this.colorRGBValue) {
this.colorObject.setTransform({ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"});
}
delete this.onEnterFrame;
this.onEnterFrame = this.oldOnEnterFrameFunc;
delete this.oldOnEnterFrameFunc;
};
play();
Frame 25
function makeEnemy(enemyId, x, y, w, h, ifbegin, frame) {
enemyNum++;
_root.attachMovie(enemyId, enemyId + enemydep, enemydep++);
alllist.enemylist[enemyId + enemydep] = _root[enemyId + enemydep];
alllist.enemylist[enemyId + enemydep].id = mcID;
mcID++;
if (x == null) {
alllist.enemylist[enemyId + enemydep]._x = (200 * Math.random()) + 100;
} else {
alllist.enemylist[enemyId + enemydep]._x = x;
}
if (y == null) {
alllist.enemylist[enemyId + enemydep]._y = (100 * Math.random()) + 150;
} else {
alllist.enemylist[enemyId + enemydep]._y = y;
}
if (w != null) {
alllist.enemylist[enemyId + enemydep]._width = w;
}
if (h != null) {
alllist.enemylist[enemyId + enemydep]._height = h;
}
if (ifbegin != null) {
alllist.enemylist[enemyId + enemydep].begin = ifbegin;
alllist.enemylist[enemyId + enemydep].gotoAndStop(frame);
}
if (ifbegin == null) {
alllist.enemylist[enemyId + enemydep].begin = true;
}
}
function makeEnemys(enemyID, num, x, y) {
var i = 0;
while (i < num) {
makeEnemy(enemyID, x, y);
i++;
}
}
function makeItem(itemid, x, y) {
_root.attachMovie(itemid, itemid + itemdep, itemdep++);
alllist.itemlist[itemid + itemdep] = _root[itemid + itemdep];
alllist.itemlist[itemid + itemdep].id = mcID;
mcID++;
alllist.itemlist[itemid + itemdep]._x = x;
alllist.itemlist[itemid + itemdep]._y = y;
}
function makeBox(itemid, x, y) {
_root.attachMovie(itemid, itemid + itemdep, itemdep++);
alllist.boxlist[itemid + itemdep] = _root[itemid + itemdep];
alllist.boxlist[itemid + itemdep].id = mcID;
MCid++;
alllist.boxlist[itemid + itemdep]._x = x;
alllist.boxlist[itemid + itemdep]._y = y;
}
function makeWeapon(itemid, x, y) {
_root.attachMovie(itemid, itemid + itemdep, itemdep++);
alllist.weaponlist[itemid + itemdep] = _root[itemid + itemdep];
alllist.weaponlist[itemid + itemdep].id = mcID;
mcID++;
alllist.weaponlist[itemid + itemdep]._x = x;
alllist.weaponlist[itemid + itemdep]._y = y;
}
function makeS(itemid, x, y) {
_root.attachMovie(itemid, itemid + itemdep, itemdep++);
alllist.playerSlist[itemid + itemdep] = _root[itemid + itemdep];
alllist.playerSlist[itemid + itemdep].id = mcID;
mcID++;
alllist.playerSlist[itemid + itemdep]._x = x;
alllist.playerSlist[itemid + itemdep]._y = y;
}
function restart() {
for (var i in alllist.enemylist) {
removeMovieClip(alllist.enemylist[i]);
delete alllist.enemylist[i];
}
for (var i in alllist.movebglist) {
removeMovieClip(alllist.movebglist[i]);
delete alllist.movebglist[i];
}
for (var i in alllist.bglist) {
removeMovieClip(alllist.bglist[i]);
delete alllist.bglist[i];
}
for (var i in alllist.itemlist) {
removeMovieClip(alllist.itemlist[i]);
delete alllist.itemlist[i];
}
for (var i in alllist.gongjianlist) {
removeMovieClip(alllist.gongjianlist[i]);
delete alllist.gongjianlist[i];
}
for (var i in alllist.boxlist) {
removeMovieClip(alllist.boxlist[i]);
delete alllist.boxlist[i];
}
for (var i in alllist.playerSlist) {
removeMovieClip(alllist.playerSlist[i]);
delete alllist.playerSlist[i];
}
for (var i in alllist.weaponlist) {
removeMovieClip(alllist.weaponlist[i]);
delete alllist.weaponlist[i];
}
removeMovieClip(start1);
removeMovieClip(gomc);
removeMovieClip(gametimeMC);
removeMovieClip(pauseMC);
removeMovieClip(bgmMC);
removeMovieClip(scoreMC);
removeMovieClip(guanyuinfor);
removeMovieClip(player1);
removeMovieClip(restartMC);
removeMovieClip(demo);
removeMovieClip(lidiantiao);
removeMovieClip(guoguan);
delete bgmusic;
flag1 = (flag2 = (flag2_0 = (flag2_1 = (flag2_2 = (tomax = (flag3 = (flag3_0 = (flag3_1 = (flag3_2 = (flag4 = (flag4_1 = (flag4_0 = (flag4_2 = (flag4_3 = (flag4_4 = (flag5 = (flag6 = (flag7 = false))))))))))))))))));
}
function enemyalldie() {
for (var i in _root.alllist.enemylist) {
if ((_root.alllist.enemylist[i] == null) || (_root.alllist.enemylist[i] == undefined)) {
// unexpected jump
}
return(false);
}
return(true);
}
stop();
restart();
enemydep = 300;
itemdep = 20;
mcID = 0;
enemyNum = 0;
var regame = false;
var agnow = false;
var downyou;
var gameTime = 99;
var nowinfor;
var tt;
var bgcanmove = false;
var bgcanmove2 = false;
var player1;
var pause = false;
var boss;
if (!continueGame) {
var life = 2;
var score = 0;
var thing0 = 3;
var thing1 = 0;
var thing2 = 0;
var thing3 = 0;
var thing4 = 0;
}
alllist = {};
alllist.enemylist = {};
alllist.movebglist = {};
alllist.itemlist = {};
alllist.gongjianlist = {};
alllist.boxlist = {};
alllist.playerSlist = {};
alllist.weaponlist = {};
alllist.bglist = {};
_root.attachMovie("start1", "start1", 200004, {_x:153, _y:125});
_root.attachMovie("gomc", "gomc", 200005);
_root.attachMovie("bg1", "bg1", 1);
alllist.bglist.bg1 = _root.bg1;
_root.attachMovie("movebg1", "movebg1", 200000, {_x:0, _y:300});
alllist.movebglist.movebg1 = _root.movebg1;
_root.attachMovie("movebg2", "movebg2", 200001, {_y:300});
alllist.movebglist.movebg2 = _root.movebg2;
_root.attachMovie("movebg3", "movebg3", 200002, {_y:300});
alllist.movebglist.movebg3 = _root.movebg3;
_root.attachMovie("movebg4", "movebg4", 200003, {_y:300});
alllist.movebglist.movebg4 = _root.movebg4;
makeBox("box1", 100, 130);
makeBox("box1", 200, 130);
_root.attachMovie("gametimeMC", "gametimeMC", 200006);
_root.attachMovie("pauseMC", "pauseMC", 200020, {_x:205, _y:135});
_root.attachMovie("bgmmc", "bgmMC", 200008);
bgmusic = new Sound(_root.bgmMC);
bgmusic.attachSound("bgm1");
bgmusic.setVolume(30);
bgmusic.start();
bgmusic.onSoundComplete = function () {
bgmusic.start();
};
_root.onEnterFrame = function () {
if (agnow) {
gotoAndPlay (24);
}
if (regame) {
gotoAndStop (4);
}
if (itemdep > 200) {
itemdep = 20;
}
if (_root.alllist.bglist.bg1._x <= -2925) {
_root.alllist.bglist.bg1._x = -2925;
bgcanmove = false;
}
if (!flag1) {
flag1 = true;
makeEnemy("yang", 210, 120, 80, 105, false, "c1");
makeEnemy("yang", 310, 200, 80, 105, false, "c2");
makeEnemy("yang", 410, 220, 80, 105, false, "c3");
bgcanmove = true;
bgcanmove2 = true;
}
if (flag1 && (!flag2)) {
if ((_root.bg1._x < -200) && (enemyNum != 0)) {
bgcanmove = false;
} else {
bgcanmove = true;
}
if (_root.bg1._x >= 0) {
_root.bg1._x = 0;
bgcanmove2 = false;
} else {
bgcanmove2 = true;
}
if (enemyNum == 0) {
bgcanmove2 = false;
if (!_root.gomc.playing) {
_root.gomc.gotoAndPlay(2);
}
}
if (_root.bg1._x <= -300) {
makeBox("box1", 450, 100);
makeBox("box1", 510, 100);
makeBox("box1", 700, 100);
makeBox("box1", 760, 100);
flag2 = true;
}
}
if (flag2 && (!flag3)) {
if ((_root.bg1._x < -750) && (enemyNum != 0)) {
bgcanmove = false;
tomax = true;
} else {
bgcanmove = true;
}
if ((_root.bg1._x <= -300) && (!flag2_0)) {
flag2_0 = true;
makeEnemy("yang", 500, 120, 78, 102);
makeEnemy("yang", 500, 180, 78, 102);
}
if (((_root.bg1._x <= -450) && (!flag2_1)) && (flag2_0)) {
flag2_1 = true;
makeEnemy("yang", 500, 120, 78, 102);
makeEnemy("yang", 500, 180, 78, 102);
if (!_root.gomc.playing) {
_root.gomc.gotoAndPlay(2);
}
}
if (((_root.bg1._x <= -650) && (!flag2_2)) && (flag2_1)) {
flag2_2 = true;
makeEnemy("yang", 500, 120, 78, 102);
makeEnemy("yang", 500, 180, 78, 102);
if (!_root.gomc.playing) {
_root.gomc.gotoAndPlay(2);
}
}
if ((_root.bg1._x >= -450) && (tomax)) {
_root.bg1._x = -450;
bgcanmove2 = false;
} else if (tomax) {
bgcanmove2 = true;
}
if (enemyNum == 0) {
bgcanmove2 = false;
bgcanmove = true;
if (!_root.gomc.playing) {
_root.gomc.gotoAndPlay(2);
}
tomax = false;
}
if (_root.bg1._x < -755) {
makeBox("box1", 450, 100);
makeBox("box1", 510, 100);
makeBox("box1", 600, 100);
makeBox("box1", 660, 100);
flag3 = true;
}
}
if (flag3 && (!flag4)) {
if (_root.bg1._x < -1200) {
bgcanmove = false;
tomax = true;
} else {
bgcanmove = true;
}
if ((_root.bg1._x <= -800) && (!flag3_0)) {
flag3_0 = true;
makeEnemy("yang", 500, 120, 78, 102);
makeEnemy("yang", 500, 180, 78, 102);
makeEnemy("yang", 500, 210, 78, 102);
if (!_root.gomc.playing) {
_root.gomc.gotoAndPlay(2);
}
}
if (((_root.bg1._x <= -950) && (!flag3_1)) && (flag3_0)) {
flag3_1 = true;
makeEnemy("yang", 500, 120, 78, 102);
makeEnemy("yang", 500, 180, 78, 102);
if (!_root.gomc.playing) {
_root.gomc.gotoAndPlay(2);
}
makeEnemy("yang", 500, 210, 78, 102);
}
if (((_root.bg1._x <= -1150) && (!flag3_2)) && (flag3_1)) {
flag3_2 = true;
makeEnemy("yang", 480, 120, 78, 102);
makeEnemy("yang", 500, 180, 78, 102);
}
if ((_root.bg1._x >= -850) && (tomax)) {
_root.bg1._x = -850;
bgcanmove2 = false;
} else if (tomax) {
bgcanmove2 = true;
}
if (enemyNum <= 1) {
bgcanmove2 = false;
bgcanmove = true;
if (!_root.gomc.playing) {
_root.gomc.gotoAndPlay(2);
}
tomax = false;
}
if (_root.bg1._x <= -1400) {
flag4 = true;
}
}
if (flag4 && (!flag5)) {
if (_root.bg1._x < -2400) {
bgcanmove = false;
tomax = true;
} else {
bgcanmove = true;
}
if ((_root.bg1._x <= -1400) && (!flag4_0)) {
flag4_0 = true;
makeEnemy("yang", 500, 140, 78, 102);
makeEnemy("xu", 500, 150);
makeEnemy("yang", 500, 200, 78, 102);
if (!_root.gomc.playing) {
_root.gomc.gotoAndPlay(2);
}
}
if (((_root.bg1._x <= -1600) && (!flag4_1)) && (flag4_0)) {
flag4_1 = true;
makeEnemy("yang", 500, 140, 78, 102);
makeEnemy("yang", 500, 150, 78, 102);
if (!_root.gomc.playing) {
_root.gomc.gotoAndPlay(2);
}
makeEnemy("xu", 500, 200);
}
if (((_root.bg1._x <= -1800) && (!flag4_2)) && (flag4_1)) {
flag4_2 = true;
makeEnemy("yang", 480, 140, 78, 102);
makeEnemy("xu", 500, 150);
makeEnemy("yang", 500, 200, 78, 102);
if (!_root.gomc.playing) {
_root.gomc.gotoAndPlay(2);
}
}
if (((_root.bg1._x <= -2100) && (!flag4_3)) && (flag4_2)) {
flag4_3 = true;
makeEnemy("yang", 480, 140, 78, 102);
makeEnemy("yang", 500, 150, 78, 102);
makeEnemy("xu", 500, 200);
if (!_root.gomc.playing) {
_root.gomc.gotoAndPlay(2);
}
}
if (((_root.bg1._x <= -2350) && (!flag4_4)) && (flag4_3)) {
flag4_4 = true;
makeEnemy("yang", 480, 140, 78, 102);
makeEnemy("yang", 500, 150, 78, 102);
makeEnemy("xu", 500, 200);
}
if (tomax) {
bgcanmove2 = false;
}
if (flag4_4 && (enemyNum == 0)) {
tomax = false;
flag5 = true;
flag6 = false;
_root.attachMovie("start1-2", "start1-2", itemdep++);
_root.attachMovie("lidian", "lidian", enemydep++, {_x:_root.bg1._x + 3290, _y:175});
enemyNum++;
alllist.enemylist["lidian" + enemydep] = _root.lidian;
boss = _root.lidian;
makeBox("box2", _root.bg1._x + 3330, 195);
_root.player1.gotoAndStop("\u81EA\u52A8\u52A8\u4F5C");
}
}
if (flag6) {
if (_root.alllist.bglist.bg1._x > -2925) {
bgcanmove = true;
}
if (_root.bg1._x < -2200) {
bgcanmove2 = true;
} else {
bgcanmove2 = false;
}
if ((enemyNum <= 1) && (boss != null)) {
makeEnemy("yang", 500, 150, 78, 102);
makeEnemy("xu", 500, 240);
makeEnemy("yang", 500, 160, 78, 102);
makeEnemy("xu", 500, 200);
}
if ((enemyNum == 0) && (!flag7)) {
flag7 = true;
_root.player1.gotoAndStop("\u80DC\u5229");
_root.attachMovie("victory", "victory", 200016, {_x:213, _y:127});
removeMovieClip(gametimeMC);
removeMovieClip(lidiantiao);
}
}
};
Instance of Symbol 1516 MovieClip "demo" in Frame 25
onClipEvent (load) {
this.swapDepths(1000000);
}
Instance of Symbol 1518 MovieClip in Frame 25
onClipEvent (load) {
this.swapDepths(999999);
}
Symbol 8 MovieClip [s3] Frame 1
this.swapDepths(this._y + this._x);
this._x = _root.guanyu._x;
this._y = _root.guanyu._y;
_root.makeS("bomb", this._x + 100, this._y - 10);
Symbol 8 MovieClip [s3] Frame 2
_root.guanyu.canuse = true;
this.removeMovieClip();
Symbol 9 MovieClip [s1] Frame 1
this.swapDepths(this._y + this._x);
_root.guanyu.canuse = false;
this._x = _root.guanyu._x;
this._y = _root.guanyu._y + 50;
Symbol 9 MovieClip [s1] Frame 11
delete this.onEnterFrame;
Symbol 9 MovieClip [s1] Frame 12
_root.makeS("rock", this._x - 40, this._y - 40);
Symbol 9 MovieClip [s1] Frame 17
_root.makeS("rock", this._x - 10, this._y);
Symbol 9 MovieClip [s1] Frame 22
_root.makeS("rock", this._x + 100, this._y - 40);
Symbol 9 MovieClip [s1] Frame 27
_root.makeS("rock", this._x + 180, this._y);
Symbol 9 MovieClip [s1] Frame 32
_root.makeS("rock", this._x + 220, this._y - 40);
Symbol 9 MovieClip [s1] Frame 37
_root.makeS("rock", this._x + 300, this._y);
_root.makeS("rock", this._x - 10, this._y - 40);
Symbol 9 MovieClip [s1] Frame 43
_root.makeS("rock", this._x + 250, this._y + 20);
_root.makeS("rock", this._x - 80, this._y - 12);
Symbol 9 MovieClip [s1] Frame 48
_root.makeS("rock", this._x - 100, this._y + 20);
_root.makeS("rock", this._x + 100, this._y - 10);
_root.guanyu.canuse = true;
this.removeMovieClip();
Symbol 11 MovieClip [s0] Frame 1
_root.guanyu.canuse = false;
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
this._x = _root.guanyu._x;
this._y = _root.guanyu._y + 50;
Symbol 11 MovieClip [s0] Frame 11
delete this.onEnterFrame;
Symbol 11 MovieClip [s0] Frame 12
_root.makeS("fires", this._x + 50, this._y - 80);
_root.makeS("fires", this._x - 50, this._y - 80);
Symbol 11 MovieClip [s0] Frame 20
_root.makeS("fires", this._x + 100, this._y - 80);
_root.makeS("fires", this._x - 100, this._y - 80);
Symbol 11 MovieClip [s0] Frame 28
_root.makeS("fires", this._x + 150, this._y - 80);
_root.makeS("fires", this._x - 150, this._y - 80);
Symbol 11 MovieClip [s0] Frame 36
_root.makeS("fires", this._x + 200, this._y - 80);
_root.makeS("fires", this._x - 200, this._y - 80);
Symbol 11 MovieClip [s0] Frame 44
_root.makeS("fires", this._x + 250, this._y + 20);
_root.makeS("fires", this._x - 80, this._y - 80);
Symbol 11 MovieClip [s0] Frame 52
_root.makeS("fires", this._x - 100, this._y + 20);
_root.makeS("fires", this._x + 100, this._y - 100);
_root.guanyu.canuse = true;
this.removeMovieClip();
Symbol 21 MovieClip Frame 1
this._visible = false;
Symbol 34 MovieClip Frame 1
stop();
Symbol 36 MovieClip [knife] Frame 1
this.swapDepths(((_y * 100) + (id % 100)) + 15000);
var maxnum = 9;
Symbol 36 MovieClip [knife] Frame 7
stop();
var nowbg;
var bx;
for (var i in _root.alllist.bglist) {
if (_root.alllist.bglist[i].hitTest(this)) {
nowbg = _root.alllist.bglist[i];
break;
}
}
bx = Math.abs(nowbg._x - this._x);
this.onEnterFrame = function () {
this._x = nowbg._x + bx;
if (this._x < -500) {
this.removeMovieClip();
}
};
Symbol 36 MovieClip [knife] Frame 8
delete this.onEnterFrame;
this.swapDepths((((_y * 100) + (id % 100)) + 20000) + 10000);
_root.thing2++;
nownum = _root.thing2;
if (nownum < 10) {
allnum.num0.gotoAndStop(nownum);
allnum.num1.gotoAndStop(11);
} else {
n0 = Math.floor(nownum / 10);
n1 = nownum % 10;
allnum.num0.gotoAndStop(n0);
if (n1 == 0) {
allnum.num1.gotoAndStop(10);
} else {
allnum.num1.gotoAndStop(n1);
}
}
Symbol 36 MovieClip [knife] Frame 34
this.removeMovieClip();
Symbol 47 MovieClip [firebone] Frame 1
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
var maxnum = 9;
var nowbg;
var bx;
for (var i in _root.alllist.bglist) {
if (_root.alllist.bglist[i].hitTest(this)) {
nowbg = _root.alllist.bglist[i];
break;
}
}
bx = Math.abs(nowbg._x - this._x);
this.onEnterFrame = function () {
this._x = nowbg._x + bx;
if (this._x < -500) {
this.removeMovieClip();
}
};
Symbol 47 MovieClip [firebone] Frame 20
stop();
Symbol 47 MovieClip [firebone] Frame 21
delete this.onEnterFrame;
_root.thing0++;
nownum = _root.thing0;
if (nownum < 10) {
allnum.num0.gotoAndStop(nownum);
allnum.num1.gotoAndStop(11);
} else {
n0 = Math.floor(nownum / 10);
n1 = nownum % 10;
allnum.num0.gotoAndStop(n0);
if (n1 == 0) {
allnum.num1.gotoAndStop(10);
} else {
allnum.num1.gotoAndStop(n1);
}
}
Symbol 47 MovieClip [firebone] Frame 44
this.removeMovieClip();
Symbol 61 MovieClip [weapons] Frame 1
stop();
if (!_root.guanyu.weapon) {
this._visible = false;
}
Symbol 69 MovieClip Frame 1
if (!init) {
init = true;
index = 2;
num = _root.thing2;
thenum = "\u98DE\u5200\u00D7 " + num;
this._visible = false;
var itemType = "throw";
}
this.onEnterFrame = function () {
num = _root.thing2;
thenum = "\u98DE\u5200\u00D7 " + _root.thing2;
};
Symbol 69 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 3
stop();
Symbol 72 MovieClip Frame 1
if (!init) {
init = true;
index = 0;
num = _root.thing0;
thenum = "\u706B\u653B\u00D7 " + num;
this._visible = false;
var itemType = "use";
}
this.onEnterFrame = function () {
num = _root.thing0;
thenum = "\u706B\u653B\u00D7 " + _root.thing0;
};
Symbol 72 MovieClip Frame 2
stop();
Symbol 72 MovieClip Frame 3
stop();
Symbol 76 MovieClip Frame 1
if (!init) {
init = true;
index = 1;
num = _root.thing1;
thenum = "\u843D\u77F3\u00D7 " + num;
this._visible = false;
var itemType = "use";
}
this.onEnterFrame = function () {
num = _root.thing1;
thenum = "\u843D\u77F3\u00D7 " + _root.thing1;
};
Symbol 76 MovieClip Frame 2
stop();
Symbol 76 MovieClip Frame 3
stop();
Symbol 81 MovieClip Frame 1
if (!init) {
init = true;
index = 4;
num = _root.thing4;
thenum = "\u9690\u8EAB\u8863\u00D7 " + num;
this._visible = false;
var itemType = "yinshen";
}
this.onEnterFrame = function () {
num = _root.thing4;
thenum = "\u9690\u8EAB\u8863\u00D7 " + _root.thing4;
};
Symbol 81 MovieClip Frame 2
stop();
Symbol 81 MovieClip Frame 3
stop();
Symbol 85 MovieClip Frame 1
if (!init) {
init = true;
index = 3;
num = _root.thing3;
thenum = "\u7206\u5F39\u00D7 " + num;
this._visible = false;
var itemType = "throw";
}
this.onEnterFrame = function () {
num = _root.thing3;
thenum = "\u7206\u5F39\u00D7 " + _root.thing3;
};
Symbol 85 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 3
stop();
Symbol 91 MovieClip Frame 1
this._visible = false;
Symbol 108 MovieClip Frame 1
if (Key.isDown(_root.control_down)) {
_parent.downmove = true;
}
this.onEnterFrame = function () {
for (var i in _root.alllist.enemylist) {
if (this.catch1.hitTest(_root.alllist.enemylist[i].becatch)) {
_parent.atting = true;
_parent.catching = true;
_parent.beCatchedman = _root.alllist.enemylist[i];
if (_parent._xscale == _parent.startxscale) {
_parent.beCatchedman._x = _parent._x + 35;
_parent.beCatchedman._y = _parent._y;
_parent.beCatchedman._xscale = _parent.beCatchedman.startXscale;
} else if (_parent._xscale == (-_parent.startxscale)) {
_parent.beCatchedman._x = _parent._x - 35;
_parent.beCatchedman._y = _parent._y;
_parent.beCatchedman._xscale = -_parent.beCatchedman.startXscale;
}
delete _root.alllist.enemylist[i].onEnterFrame;
_root.alllist.enemylist[i].gotoAndPlay("\u88AB\u6293");
_parent.gotoAndStop("\u6293\u4EBA");
break;
}
}
if (_parent.downmove) {
if (Key.isDown(_root.control_up)) {
_parent.upmove = true;
}
if (Key.isDown(_root.control_att) && (_parent.upmove)) {
_parent.atting = true;
_parent.gotoAndStop("\u7EDD\u62DB3");
}
}
if (!_parent.moving) {
_parent.returnWalk();
}
};
Symbol 108 MovieClip Frame 8
_parent.downmove = false;
Symbol 108 MovieClip Frame 24
_parent.returnWalk();
Symbol 138 MovieClip Frame 1
function test() {
for (var i in _root.alllist.enemylist) {
if ((kp > 1) && (this.hit.hitTest(_root.alllist.enemylist[i].behit))) {
gotoAndPlay (10);
return(true);
}
}
return(false);
}
function test2() {
for (var i in _root.alllist.enemylist) {
if ((kp > 2) && (this.hit.hitTest(_root.alllist.enemylist[i].behit))) {
gotoAndPlay (19);
return(true);
}
}
return(false);
}
function test3() {
for (var i in _root.alllist.enemylist) {
if (((kp > 2) && (this.hit.hitTest(_root.alllist.enemylist[i].behit))) && (Key.isDown(_root.control_down))) {
_parent.throwingman = _root.alllist.enemylist[i];
_parent.throwingman.bethrow = true;
this.gotoAndPlay("\u653B\u51FB4");
return(true);
}
}
return(false);
}
function test4() {
for (var i in _root.alllist.enemylist) {
if (((kp > 2) && (this.hit.hitTest(_root.alllist.enemylist[i].behit))) && (Key.isDown(_root.control_up))) {
_parent.throwingman = _root.alllist.enemylist[i];
_parent._xscale = -_parent._xscale;
_parent.throwingman._xscale = -_parent.throwingman._xscale;
_parent.throwingman._x = _parent.throwingman._x - ((_parent.throwingman._x - _parent._x) * 2);
gotoAndPlay (35);
return(true);
}
}
return(false);
}
var kp = 0;
var t;
if (_parent.throwing) {
delete this.onEnterFrame;
this.gotoAndPlay("\u653B\u51FB4");
}
for (var i in _root.alllist.itemlist) {
if (_root.alllist.itemlist[i].hit3.hitTest(this.gethit)) {
_parent.atting = true;
_root.alllist.itemlist[i].gotoAndPlay("\u88AB\u6361\u5230");
_parent.gotoAndStop("\u6361\u4E1C\u897F");
}
}
for (var i in _root.alllist.weaponlist) {
if (_root.alllist.weaponlist[i].hit3.hitTest(this.gethit)) {
_parent.atting = true;
_parent.weapon = true;
_parent.handweapon = _root.alllist.weaponlist[i];
_parent.handweapon._x = -1000;
_parent.handweapon._y = -1000;
_parent.handweapon._visible = false;
_parent.handweapon.using = true;
_parent.gotoAndStop("\u6361\u4E1C\u897F");
}
}
this.onEnterFrame = function () {
for (var i in _root.alllist.enemylist) {
if (this.hit.hitTest(_root.alllist.enemylist[i].behit) && (!_root.alllist.enemylist[i].bethrow)) {
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
if (Key.isDown(_root.control_att) && (!flag)) {
kp++;
flag = true;
_root.alllist.enemylist[i].gotoAndPlay("\u88AB\u653B\u51FB");
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 10;
_root.score = _root.score + 50;
break;
}
if ((!Key.isDown(_root.control_att)) && (flag)) {
flag = false;
}
}
}
for (var i in _root.alllist.boxlist) {
if (this.hit.hitTest(_root.alllist.boxlist[i].behit)) {
if (Key.isDown(_root.control_att) && (!flag2)) {
kp++;
flag2 = true;
_root.alllist.boxlist[i].gotoAndPlay("\u88AB\u653B\u51FB");
_root.score = _root.score + 30;
break;
}
if ((!Key.isDown(_root.control_att)) && (flag2)) {
flag2 = false;
}
}
}
};
Symbol 138 MovieClip Frame 9
t = test();
if (!t) {
_parent.returnWalk();
}
Symbol 138 MovieClip Frame 18
delete this.onEnterFrame;
t3 = test4();
t2 = test3();
t = test2();
if (((!t) && (!t2)) && (!t3)) {
_parent.returnWalk();
}
Symbol 138 MovieClip Frame 19
delete this.onEnterFrame;
Symbol 138 MovieClip Frame 27
for (var i in _root.alllist.enemylist) {
if (this.hit.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 20;
_root.score = _root.score + 125;
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
}
}
Symbol 138 MovieClip Frame 34
delete this.onEnterFrame;
_parent.returnWalk();
Symbol 138 MovieClip Frame 35
delete this.onEnterFrame;
if (_parent.throwingman._x > _parent._x) {
_parent.throwingman._x = _parent._x + 5;
} else {
_parent.throwingman._x = _parent._x - 5;
}
_parent.throwingman._y = _parent._y;
_parent.throwingman.gotoAndPlay("\u88AB\u6454");
Symbol 138 MovieClip Frame 36
_parent.throwingman.gotoAndPlay("\u88AB\u6454");
Symbol 138 MovieClip Frame 45
_parent.returnWalk();
Symbol 156 MovieClip Frame 1
if (Key.isDown(_root.control_left)) {
flag = 1;
} else if (Key.isDown(_root.control_right)) {
flag = 2;
} else {
flag = 3;
_parent.jumpnomove = true;
}
this.onEnterFrame = function () {
if (_parent.jumping) {
if (flag == 1) {
_parent._x = _parent._x - _parent.jumpspeed;
_parent._xscale = -_parent.startxscale;
} else if (flag == 2) {
_parent._x = _parent._x + _parent.jumpspeed;
_parent._xscale = _parent.startxscale;
} else if (flag == 3) {
_parent._x = _parent._x + 0;
}
if (Key.isDown(_root.control_att) && (this._currentframe < 13)) {
_parent.jumpatting = true;
_parent.gotoAndStop("\u8DF3\u8DC3\u653B\u51FB");
}
}
};
Symbol 156 MovieClip Frame 20
_parent.returnWalk();
Symbol 167 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.jumpatting) {
if (!_parent.jumpnomove) {
if (_parent._xscale == (-_parent.startxscale)) {
_parent._x = _parent._x - _parent.jumpspeed;
}
if (_parent._xscale == _parent.startxscale) {
_parent._x = _parent._x + _parent.jumpspeed;
}
}
for (var i in _root.alllist.enemylist) {
if (this.hit.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 10;
_root.score = _root.score + 125;
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
}
}
for (var i in _root.alllist.boxlist) {
if (this.hit.hitTest(_root.alllist.boxlist[i].behit)) {
_root.alllist.boxlist[i].gotoAndPlay("\u88AB\u653B\u51FB");
}
}
}
};
Symbol 167 MovieClip Frame 9
this.onEnterFrame = function () {
if (_parent.jumpatting) {
if (!_parent.jumpnomove) {
if (_parent._xscale == (-_parent.startxscale)) {
_parent._x = _parent._x - _parent.jumpspeed;
}
if (_parent._xscale == _parent.startxscale) {
_parent._x = _parent._x + _parent.jumpspeed;
}
}
for (var i in _root.alllist.enemylist) {
if (this.hit.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 10;
_root.score = _root.score + 125;
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
}
}
for (var i in _root.alllist.boxlist) {
if (this.hit.hitTest(_root.alllist.boxlist[i].behit)) {
_root.alllist.boxlist[i].gotoAndPlay("\u88AB\u653B\u51FB");
}
}
}
};
Symbol 167 MovieClip Frame 16
_parent.returnWalk();
Symbol 193 MovieClip Frame 1
_parent.behit = true;
if (_parent.weapon) {
_parent.weapon = false;
_parent.handweapon._x = _parent._x;
_parent.handweapon._y = _parent._y + 50;
_parent.handweapon._visible = true;
_parent.handweapon.using = false;
_parent.handweapon.gotoAndPlay("\u843D\u5251");
}
if ((_parent.hp < 0) || (_parent.fall)) {
this.gotoAndPlay("tumble");
}
Symbol 193 MovieClip Frame 3
_parent.returnWalk();
Symbol 193 MovieClip Frame 4
this.onEnterFrame = function () {
if (_parent._x > _root.downyou._x) {
_parent._x = _parent._x + 3.5;
} else {
_parent._x = _parent._x - 3.5;
}
};
Symbol 193 MovieClip Frame 36
delete this.onEnterFrame;
if (_parent.hp < 0) {
gotoAndPlay (60);
} else {
gotoAndPlay (121);
}
Symbol 193 MovieClip Frame 44
_parent.returnWalk();
Symbol 193 MovieClip Frame 120
if (_root.life > 0) {
_root.attachMovie("guanyu", "guanyu", 7, {_x:150, _y:200});
_root.life--;
_root.gameTime = 99;
} else {
if (_root.score > _root.mySOData.data.highScore) {
_root.mySOData.data.highScore = _root.score;
}
_root.attachMovie("restartMC", "restartMC", 200020, {_x:215, _y:140});
}
_parent.removeMovieClip();
Symbol 193 MovieClip Frame 141
_parent.returnWalk();
Symbol 207 MovieClip Frame 1
flag = false;
if (_parent.weapon) {
_parent.weapon = false;
_parent.handweapon._x = _parent._x;
_parent.handweapon._y = _parent._y + 50;
_parent.handweapon._visible = true;
_parent.handweapon.using = false;
_parent.handweapon.gotoAndPlay("\u843D\u5251");
}
this.onEnterFrame = function () {
for (var i in _root.alllist.enemylist) {
if (this.hit.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 10;
_root.score = _root.score + 100;
if (!flag) {
flag = true;
_parent.hp = _parent.hp - _parent.skillhp;
if (_parent.hp < 0) {
_parent.hp = 0;
}
}
}
}
for (var i in _root.alllist.boxlist) {
if (this.hit.hitTest(_root.alllist.boxlist[i].behit)) {
_root.alllist.boxlist[i].gotoAndPlay("\u88AB\u653B\u51FB");
if (!flag) {
flag = true;
_parent.hp = _parent.hp - _parent.skillhp;
if (_parent.hp < 0) {
_parent.hp = 0;
}
}
}
}
};
Symbol 207 MovieClip Frame 24
_parent.returnWalk();
Symbol 214 MovieClip Frame 1
var move;
if (_parent._xscale == _parent.startxscale) {
move = 4;
} else {
move = -4;
}
Symbol 214 MovieClip Frame 9
this.onEnterFrame = function () {
_parent._x = _parent._x + move;
for (var i in _root.alllist.enemylist) {
if (this.hit.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 10;
_root.score = _root.score + 125;
}
}
for (var i in _root.alllist.boxlist) {
if (this.hit.hitTest(_root.alllist.boxlist[i].behit)) {
_root.alllist.boxlist[i].gotoAndPlay("\u88AB\u653B\u51FB");
_root.score = _root.score + 50;
}
}
};
Symbol 214 MovieClip Frame 22
delete this.onEnterFrame;
_parent.returnWalk();
Symbol 254 MovieClip Frame 1
var move;
if (_parent._xscale == _parent.startxscale) {
move = 3;
} else {
move = -3;
}
this.onEnterFrame = function () {
_parent._x = _parent._x + move;
for (var i in _root.alllist.enemylist) {
if (this.hit1.hitTest(_root.alllist.enemylist[i].behit) && (!_root.alllist.enemylist[i].beatted)) {
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u88AB\u653B\u51FB");
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 8;
_root.score = _root.score + 50;
}
}
for (var i in _root.alllist.boxlist) {
if (this.hit1.hitTest(_root.alllist.boxlist[i].behit)) {
_root.alllist.boxlist[i].gotoAndPlay("\u88AB\u653B\u51FB");
_root.score = _root.score + 50;
}
}
};
Symbol 254 MovieClip Frame 23
delete this.onEnterFrame;
this.onEnterFrame = function () {
_parent._x = _parent._x + move;
for (var i in _root.alllist.enemylist) {
if (this.hit2.hitTest(_root.alllist.enemylist[i].behit)) {
trace(_root.alllist.enemylist[i]);
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 13;
_root.score = _root.score + 200;
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
}
}
for (var i in _root.alllist.boxlist) {
if (this.hit2.hitTest(_root.alllist.boxlist[i].behit)) {
_root.alllist.boxlist[i].gotoAndPlay("\u88AB\u653B\u51FB");
_root.score = _root.score + 75;
}
}
};
Symbol 254 MovieClip Frame 27
_root.hitAndShake(18, 5);
Symbol 254 MovieClip Frame 28
delete this.onEnterFrame;
Symbol 254 MovieClip Frame 38
_parent._x = _parent._x + move;
Symbol 254 MovieClip Frame 51
_parent.returnWalk();
Symbol 256 MovieClip Frame 10
_parent.returnWalk();
Symbol 277 MovieClip Frame 1
_parent.behit = true;
if (_parent.weapon) {
_parent.weapon = false;
_parent.handweapon._x = _parent._x;
_parent.handweapon._y = _parent._y + 50;
_parent.handweapon._visible = true;
_parent.handweapon.using = false;
_parent.handweapon.gotoAndPlay("\u843D\u5251");
}
if (((_root.tt < _parent._x) && (_parent._xscale == _parent.startxscale)) || ((_root.tt > _parent._x) && (_parent._xscale == (-_parent.startxscale)))) {
this.gotoAndPlay("\u80CC\u540E");
}
this.onEnterFrame = function () {
if (_parent._xscale == _parent.startxscale) {
if (_root.tt > _parent._x) {
_parent._x = _parent._x - 3;
} else {
_parent._x = _parent._x + 3;
}
} else if (_root.tt < _parent._x) {
_parent._x = _parent._x + 3;
} else {
_parent._x = _parent._x - 3;
}
};
Symbol 277 MovieClip Frame 5
delete this.onEnterFrame;
Symbol 277 MovieClip Frame 9
_parent.returnWalk();
Symbol 277 MovieClip Frame 11
delete this.onEnterFrame;
this.onEnterFrame = function () {
if (_parent._xscale == _parent.startxscale) {
if (_root.tt > _parent._x) {
_parent._x = _parent._x - 3;
} else {
_parent._x = _parent._x + 3;
}
} else if (_root.tt < _parent._x) {
_parent._x = _parent._x + 3;
} else {
_parent._x = _parent._x - 3;
}
};
Symbol 277 MovieClip Frame 18
delete this.onEnterFrame;
Symbol 277 MovieClip Frame 23
_parent.returnWalk();
Symbol 282 MovieClip Frame 1
for (var i in _root.alllist.weaponlist) {
if (_root.alllist.weaponlist[i].hit3.hitTest(this.gethit)) {
lastweapon = _parent.handweapon;
lastweapon._x = _parent._x;
lastweapon._y = _parent._y + 50;
lastweapon._visible = true;
lastweapon.using = false;
_parent.atting = true;
_parent.handweapon = _root.alllist.weaponlist[i];
_parent.handweapon._x = -1000;
_parent.handweapon._y = -1000;
_parent.handweapon._visible = false;
_parent.handweapon.using = true;
lastweapon.gotoAndPlay("\u843D\u5251");
_parent.gotoAndStop("\u6361\u4E1C\u897F");
}
}
for (var i in _root.alllist.itemlist) {
if (_root.alllist.itemlist[i].hit3.hitTest(this.gethit)) {
_parent.atting = true;
_root.alllist.itemlist[i].gotoAndPlay("\u88AB\u6361\u5230");
_parent.gotoAndStop("\u6361\u4E1C\u897F");
}
}
Symbol 282 MovieClip Frame 6
this.onEnterFrame = function () {
for (var i in _root.alllist.enemylist) {
if (this.hit.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 100;
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
}
}
for (var i in _root.alllist.boxlist) {
if (this.hit.hitTest(_root.alllist.boxlist[i].behit)) {
_root.alllist.boxlist[i].gotoAndPlay("\u88AB\u653B\u51FB");
}
}
};
Symbol 282 MovieClip Frame 10
delete this.onEnterFrame;
Symbol 282 MovieClip Frame 15
_parent.returnWalk();
Symbol 341 MovieClip Frame 1
_parent.atting = true;
stop();
if (!Init) {
Init = true;
num = 0;
Jp = false;
turnto = null;
btime = 250;
var time1;
var time2;
var flag1 = false;
var flag2 = false;
var flag3 = false;
}
this.onEnterFrame = function () {
if (!_root.pause) {
if (Key.isDown(_root.control_down)) {
flag1 = true;
flag2 = false;
time1 = getTimer();
} else if (((getTimer() - time1) > btime) && (flag1)) {
flag1 = false;
} else if ((Key.isDown(_root.control_up) && (flag1)) && (!flag2)) {
flag2 = true;
time2 = getTimer();
} else if (((getTimer() - time2) > btime) && (flag2)) {
flag1 = false;
flag2 = false;
} else if (Key.isDown(_root.control_att) && (flag2)) {
_parent.beCatchedman.gotoAndPlay("\u88AB\u653B\u51FB");
_parent.gotoAndStop("\u7EDD\u62DB3");
}
if (Key.isDown(_root.control_att) && (Key.isDown(_root.control_left))) {
_parent.throwingman = _parent.beCatchedman;
_parent.ll = "left";
if (_parent._xscale == _parent.startxscale) {
_parent._xscale = -_parent.startxscale;
}
_parent.throwing = true;
_parent.gotoAndStop("\u653B\u51FB1");
} else if (Key.isDown(_root.control_att) && (Key.isDown(_root.control_right))) {
_parent.throwingman = _parent.beCatchedman;
_parent.ll = "right";
if (_parent._xscale == (-_parent.startxscale)) {
_parent._xscale = _parent.startxscale;
}
_parent.throwing = true;
_parent.gotoAndStop("\u653B\u51FB1");
} else if (Key.isDown(_root.control_jump)) {
_parent.beCatchedman.becatched = true;
this.gotoAndPlay("\u4E3E\u4EBA");
} else if (Key.isDown(_root.control_att) && (!Jp)) {
Jp = true;
delete this.onEnterFrame;
this.gotoAndPlay("\u5934\u649E");
} else if ((!Key.isDown(_root.control_att)) && (Jp)) {
Jp = false;
}
}
};
Symbol 341 MovieClip Frame 5
delete this.onEnterFrame;
num++;
Symbol 341 MovieClip Frame 7
_parent.beCatchedman.tiao._visible = true;
_parent.beCatchedman.tiao.time2 = getTimer();
_parent.beCatchedman.hp = _parent.beCatchedman.hp - 5;
_root.score = _root.score + 50;
_parent.beCatchedman.gotoAndPlay("\u88AB\u5934\u649E");
Symbol 341 MovieClip Frame 9
if (num == 3) {
_parent.beCatchedman.gotoAndPlay("\u5012\u5730");
_parent.returnWalk();
}
Symbol 341 MovieClip Frame 16
if (_parent.beCatchedman.hp > 0) {
_parent.beCatchedman.gotoAndPlay("\u88AB\u6293");
this.gotoAndStop(1);
} else {
_parent.beCatchedman.gotoAndPlay("\u5012\u5730");
_parent.returnWalk();
}
Symbol 341 MovieClip Frame 17
delete this.onEnterFrame;
if (Key.isDown(_root.control_left)) {
turnto = "left";
} else if (Key.isDown(_root.control_right)) {
turnto = "right";
}
_parent.beCatchedman._x = _parent._x;
_parent.beCatchedman._y = _parent._y;
_parent.beCatchedman.gotoAndPlay("\u88AB\u4E3E");
Symbol 341 MovieClip Frame 18
this.onEnterFrame = function () {
if (turnto == "left") {
_parent._x = _parent._x - 3;
} else if (turnto == "right") {
_parent._x = _parent._x + 3;
}
_parent.beCatchedman._x = _parent._x;
_parent.beCatchedman._y = _parent._y;
};
Symbol 341 MovieClip Frame 21
delete this.onEnterFrame;
this.onEnterFrame = function () {
if (turnto == "left") {
_parent._x = _parent._x - 3;
} else if (turnto == "right") {
_parent._x = _parent._x + 3;
}
_parent.beCatchedman._x = _parent._x;
_parent.beCatchedman._y = _parent._y;
for (var i in _root.alllist.enemylist) {
if (!_root.alllist.enemylist[i].catched) {
if (this.hit.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 8;
_root.score = _root.score + 80;
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
}
}
}
if (Key.isDown(74) && (!flag3)) {
flag3 = true;
_parent.beCatchedman.gotoAndPlay(_parent.beCatchedman._currentframe + 52);
this.gotoAndPlay(_currentframe + 30);
}
};
Symbol 341 MovieClip Frame 50
_parent.returnWalk();
Symbol 341 MovieClip Frame 81
delete this.onEnterFrame;
_parent.beCatchedman.tiao._visible = true;
_parent.beCatchedman.tiao.time2 = getTimer();
_parent.beCatchedman.gotoAndPlay("\u53D6\u6D88\u88AB\u4E3E");
this.onEnterFrame = function () {
if (turnto == "left") {
_parent._x = _parent._x - 2;
} else if (turnto == "right") {
_parent._x = _parent._x + 2;
}
};
Symbol 341 MovieClip Frame 82
_parent.beCatchedman.gotoAndPlay("\u53D6\u6D88\u88AB\u4E3E");
Symbol 341 MovieClip Frame 92
_parent.returnWalk();
Symbol 351 MovieClip Frame 1
stop();
_parent.atting = true;
_parent.canuse = false;
if ((_parent.trueIndex == 2) || (_parent.trueIndex == 3)) {
gotoAndPlay (2);
} else if (_parent.trueIndex == 4) {
gotoAndPlay (17);
}
Symbol 351 MovieClip Frame 10
trace(_parent.trueIndex);
_root.attachMovie("s" + _parent.trueIndex, ("s" + _parent.trueIndex) + _root.itemdep, _root.itemdep++);
Symbol 351 MovieClip Frame 16
_parent.canuse = true;
_parent.returnWalk();
Symbol 351 MovieClip Frame 35
_parent.yinshen = true;
_parent.canuse = true;
_parent.returnWalk();
Symbol 353 MovieClip Frame 13
_parent.out = true;
_parent.returnWalk();
Symbol 354 MovieClip Frame 1
if (!init) {
init = true;
_parent._xscale = _parent.startxscale;
if (_parent.showmenu) {
_parent.selectedIndex = _parent.trueIndex;
_parent.showmenu = false;
_parent.hidemenu();
}
}
this.onEnterFrame = function () {
_parent.autoMoving = true;
_root.bg1._x = _root.bg1._x - 4;
for (var i in _root.alllist.enemylist) {
_root.alllist.enemylist[i]._x = _root.alllist.enemylist[i]._x - 4;
}
for (var i in _root.alllist.playerSlist) {
_root.alllist.playerSlist[i]._x = _root.alllist.playerSlist[i]._x - 4;
}
for (var i in _root.alllist.gongjianlist) {
_root.alllist.gongjianlist[i]._x = _root.alllist.gongjianlist[i]._x - 4;
}
for (var i in _root.alllist.boxlist) {
_root.alllist.boxlist[i]._x = _root.alllist.boxlist[i]._x - 4;
}
if ((_root.bg1._x < -2500) && (!flag)) {
flag = true;
_root.attachMovie("lidiantiao", "lidiantiao", 200012, {_x:210, _y:250});
}
if (_root.bg1._x < -2920) {
_root.attachMovie("lidiansay", "lidiansay", 200013, {_x:280, _y:123});
_parent.returnWalk();
}
};
Symbol 356 MovieClip Frame 2
stop();
delete _parent.onEnterFrame;
Symbol 357 MovieClip [guanyu] Frame 1
function returnWalk() {
moving = false;
atting = false;
jumping = false;
jumpatting = false;
behit = false;
jumpnomove = false;
downmove = false;
upmove = false;
fall = false;
upthrow = false;
throwing = false;
catching = false;
gotoAndStop (2);
}
function getItem() {
var itemNum;
var i = 0;
while (i < itemsNum) {
if (this.allmenu["item" + i].num > 0) {
this.allmenu["item" + i]._visible = true;
itemNum++;
}
i++;
}
return(itemNum);
}
function getSelectedItem() {
if (this.allmenu["item" + selectedIndex].num <= 0) {
var i = 0;
while (i < itemsNum) {
if (this.allmenu["item" + i].num > 0) {
selectedIndex = i;
trueIndex = i;
break;
}
i++;
}
}
var i = 0;
while (i < itemsNum) {
if (i == selectedIndex) {
this.allmenu["item" + i].gotoAndStop(2);
} else if (allmenu["item" + i].num > 0) {
this.allmenu["item" + i].gotoAndStop(1);
}
i++;
}
}
function hideMenu() {
var i = 0;
while (i < itemsNum) {
allmenu["item" + i]._visible = false;
i++;
}
}
function menuControl(way) {
var itemNum;
var nowi;
var nowj;
var found;
itemNum = getItem();
var i = 0;
while (i < 3) {
var j = 0;
while (j < 3) {
if (menus[i][j] == selectedIndex) {
nowi = i;
nowj = j;
}
j++;
}
i++;
}
trace(menus);
switch (way) {
case "left" :
if (nowj == 1) {
if (nowi == 0) {
i = 0;
while (i < 3) {
if (menus[i][0] != null) {
selectedIndex = menus[i][0];
break;
}
i++;
}
} else if (nowi == 2) {
i = 2;
while (i >= 0) {
if (menus[i][2] != null) {
selectedIndex = menus[i][2];
break;
}
i--;
}
}
} else if (nowj == 0) {
if (nowi == 0) {
trace(menus[1][0]);
selectedIndex = menus[1][0];
} else if (nowi == 2) {
var j = 1;
while (j < 3) {
if (menus[2][j] != null) {
selectedIndex = menus[2][j];
break;
}
j++;
}
} else if (nowi == 1) {
var i = 2;
while (i >= nowi) {
var j = 0;
while (j < 3) {
if ((menus[i][j] != null) && (selectedIndex != menus[i][j])) {
selectedIndex = menus[i][j];
found = true;
break;
}
j++;
}
if (found) {
break;
}
i--;
}
}
} else if (nowj == 2) {
if (nowi == 0) {
var i = nowi;
while (i <= 2) {
var j = (nowj - 1);
while (j >= 0) {
if (menus[i][j] != null) {
selectedIndex = menus[i][j];
found = true;
break;
}
j++;
}
if (found) {
break;
}
i--;
}
} else if (nowi == 2) {
var i = (nowi - 1);
while (i >= 0) {
var j = nowj;
while (j >= 0) {
if (menus[i][j] != null) {
selectedIndex = menus[i][j];
found = true;
break;
}
j--;
}
if (found) {
break;
}
i--;
}
} else if (nowi == 1) {
var i = 0;
while (i < 2) {
var j = 2;
while (j >= 0) {
if ((menus[i][j] != null) && (selectedIndex != menus[i][j])) {
selectedIndex = menus[i][j];
found = true;
break;
}
j--;
}
if (found) {
break;
}
i++;
}
}
}
break;
case "right" :
if (nowj == 1) {
if (nowi == 0) {
i = 0;
while (i < 3) {
if (menus[i][2] != null) {
selectedIndex = menus[i][2];
break;
}
i++;
}
} else if (nowi == 2) {
i = 2;
while (i >= 0) {
if (menus[i][0] != null) {
selectedIndex = menus[i][0];
break;
}
i--;
}
}
} else if (nowj == 0) {
if (nowi == 2) {
selectedIndex = menus[1][0];
} else if (nowi == 0) {
selectedIndex = menus[0][1];
} else if (nowi == 1) {
var i = 0;
while (i < 2) {
var j = 0;
while (j < 3) {
if ((menus[i][j] != null) && (selectedIndex != menus[i][j])) {
selectedIndex = menus[i][j];
found = true;
break;
}
j++;
}
if (found) {
break;
}
i++;
}
}
} else {
if (nowj != 2) {
break;
}
if (nowi == 0) {
selectedIndex = menus[1][2];
} else {
if (!((nowi == 2) || (nowi == 1))) {
break;
}
var i = 2;
for(;;){
if (i < 1) {
break;
}
var j = 2;
while (j >= 0) {
if ((menus[i][j] != null) && (selectedIndex != menus[i][j])) {
selectedIndex = menus[i][j];
found = true;
break;
}
j--;
}
if (found) {
break;
}
i--;
};
}
}
}
getSelectedItem();
}
function putItem() {
var itemNum;
itemNum = getItem();
switch (itemNum) {
case 1 :
menuData[0][0] = 0;
menuData[0][1] = 1;
menuData[0][2] = 0;
menuData[1][0] = 0;
menuData[1][2] = 0;
menuData[2][0] = 0;
menuData[2][1] = 0;
menuData[2][2] = 0;
break;
case 2 :
menuData[0][0] = 0;
menuData[0][1] = 0;
menuData[0][2] = 0;
menuData[1][0] = 1;
menuData[1][2] = 1;
menuData[2][0] = 0;
menuData[2][1] = 0;
menuData[2][2] = 0;
break;
case 3 :
menuData[0][0] = 0;
menuData[0][1] = 1;
menuData[0][2] = 0;
menuData[1][0] = 1;
menuData[1][2] = 1;
menuData[2][0] = 0;
menuData[2][1] = 0;
menuData[2][2] = 0;
break;
case 4 :
menuData[0][0] = 0;
menuData[0][1] = 1;
menuData[0][2] = 0;
menuData[1][0] = 1;
menuData[1][2] = 1;
menuData[2][0] = 0;
menuData[2][1] = 1;
menuData[2][2] = 0;
break;
case 5 :
menuData[0][0] = 1;
menuData[0][1] = 1;
menuData[0][2] = 1;
menuData[1][0] = 1;
menuData[1][2] = 1;
menuData[2][0] = 0;
menuData[2][1] = 0;
menuData[2][2] = 0;
break;
case 6 :
menuData[0][0] = 1;
menuData[0][1] = 1;
menuData[0][2] = 1;
menuData[1][0] = 1;
menuData[1][2] = 1;
menuData[2][0] = 0;
menuData[2][1] = 1;
menuData[2][2] = 0;
break;
case 7 :
menuData[0][0] = 1;
menuData[0][1] = 1;
menuData[0][2] = 1;
menuData[1][0] = 1;
menuData[1][2] = 1;
menuData[2][0] = 1;
menuData[2][1] = 0;
menuData[2][2] = 1;
break;
case 8 :
menuData[0][0] = 1;
menuData[0][1] = 1;
menuData[0][2] = 1;
menuData[1][0] = 1;
menuData[1][2] = 1;
menuData[2][0] = 1;
menuData[2][1] = 1;
menuData[2][2] = 1;
break;
default :
return(undefined);
}
menuData[1][1] = 0;
var i = 0;
while (i < 3) {
var j = 0;
while (j < 3) {
menus[i][j] = null;
j++;
}
i++;
}
var startIndex = 0;
var i = 0;
while (i < 3) {
var j = 0;
while (j < 3) {
if (menuData[i][j] == 1) {
var k = startIndex;
while (k < itemsNum) {
if (this.allmenu["item" + k].num > 0) {
menus[i][j] = k;
this.allmenu["item" + k]._x = (j - 1) * 33;
this.allmenu["item" + k]._y = (i - 2) * 33;
startIndex = k + 1;
break;
}
k++;
}
}
j++;
}
i++;
}
getSelectedItem();
}
stop();
if (!init) {
init = true;
var out = false;
var hp = 100;
var skillhp = 8;
var maxhp = 100;
var xspeed = 4;
var yspeed = 2.5;
var jumpspeed = 3;
var yinshenstart;
var yinshentime = 13000;
var fires = 3;
var Jpressed = false;
var Kpressed = false;
var Ipressed = false;
var Apressed = false;
var Dpressed = false;
var Upressed = false;
var pausekeypressed = false;
var showmenu = false;
_height = 135;
_width = 120;
var moving = false;
var atting = false;
var jumpatting = false;
var jumping = false;
var downmove = false;
var upmove = false;
var autoMoving = false;
var startxscale = _xscale;
var pressed = false;
var fall = false;
var weapon = false;
var handweapon = null;
var throwingman = null;
var beCatchedman = null;
var ll = null;
var throwing = false;
var catching = false;
var canuse = true;
var yinshen = false;
var menuData = [[0, 0, 0], [0, 0, 0], [0, 0, 0]];
var menus = [[null, null, null], [null, null, null], [null, null, null]];
var itemsNum = 5;
var selectedIndex = 0;
var trueIndex = 0;
}
if (!out) {
delete this.onEnterFrame;
this.gotoAndStop("\u51FA\u573A");
}
Symbol 357 MovieClip [guanyu] Frame 2
stop();
this.onEnterFrame = function () {
if ((Key.isDown(_root.control_pause) && (!pausekeypressed)) && (!autoMoving)) {
if (!_root.pause) {
_root.pause = true;
_root.pauseMC._visible = true;
} else {
_root.pause = false;
_root.pauseMC._visible = false;
}
pausekeypressed = true;
} else if ((!Key.isDown(_root.control_pause)) && (pausekeypressed)) {
pausekeypressed = false;
}
if (!_root.pause) {
if (yinshen) {
this.pic._alpha = 50;
}
if (_root.gameTime <= 0) {
this.hp = -1;
this.gotoAndPlay("\u88AB\u653B\u51FB");
}
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
if (this.hp < 0) {
this.gotoAndStop("\u88AB\u653B\u51FB");
}
if ((((((((Key.isDown(_root.control_att) && (Key.isDown(_root.control_jump))) && (!atting)) && (!jumping)) && (!jumpatting)) && (!behit)) && (!pressed)) && (hp > 0)) && (!autoMoving)) {
atting = true;
pressed = true;
gotoAndStop (31);
} else if (pressed) {
if ((!Key.isDown(_root.control_att)) || (!Key.isDown(_root.control_jump))) {
pressed = false;
}
} else {
if (((((Key.isDown(_root.control_up) && (!atting)) && (!jumping)) && (!behit)) && (!showmenu)) && (!autoMoving)) {
this.gotoAndStop("\u884C\u8D70");
this._y = this._y - yspeed;
moving = true;
}
if ((((((Key.isDown(_root.control_down) && (!atting)) && (!jumping)) && (!behit)) && (!showmenu)) && (!Key.isDown(_root.control_jump))) && (!autoMoving)) {
this._y = this._y + yspeed;
this.gotoAndStop("\u884C\u8D70");
moving = true;
downmove = true;
} else if (((((((Key.isDown(_root.control_down) && (!atting)) && (!jumping)) && (!behit)) && (!showmenu)) && (Key.isDown(_root.control_jump))) && (!Kpressed)) && (!autoMoving)) {
Kpressed = true;
this.gotoAndStop("\u7EDD\u62DB2");
atting = true;
} else if ((!Key.isDown(_root.control_jump)) && (Kpressed)) {
Kpressed = false;
}
if (((((Key.isDown(_root.control_left) && (!atting)) && (!jumping)) && (!behit)) && (!showmenu)) && (!autoMoving)) {
if (!_root.bgcanmove2) {
this._x = this._x - xspeed;
} else if (_root.bgcanmove2 && (this._x > 160)) {
this._x = this._x - xspeed;
} else if (_root.bgcanmove2 && (this._x <= 160)) {
for (var i in _root.alllist.bglist) {
_root.alllist.bglist[i]._x = _root.alllist.bglist[i]._x + xspeed;
for (var i in _root.alllist.enemylist) {
_root.alllist.enemylist[i]._x = _root.alllist.enemylist[i]._x + xspeed;
}
for (var i in _root.alllist.playerSlist) {
_root.alllist.playerSlist[i]._x = _root.alllist.playerSlist[i]._x + xspeed;
}
for (var i in _root.alllist.gongjianlist) {
_root.alllist.gongjianlist[i]._x = _root.alllist.gongjianlist[i]._x + xspeed;
}
for (var i in _root.alllist.boxlist) {
_root.alllist.boxlist[i]._x = _root.alllist.boxlist[i]._x + xspeed;
}
}
}
this._xscale = -this.startxscale;
this.allmenu._xscale = -100;
moving = true;
downmove = false;
this.gotoAndStop("\u884C\u8D70");
}
if (((((Key.isDown(_root.control_right) && (!atting)) && (!jumping)) && (!behit)) && (!showmenu)) && (!autoMoving)) {
if (!_root.bgcanmove) {
this._x = this._x + xspeed;
} else if (_root.bgcanmove && (this._x < 260)) {
this._x = this._x + xspeed;
} else if (_root.bgcanmove && (this._x >= 260)) {
for (var i in _root.alllist.bglist) {
_root.alllist.bglist[i]._x = _root.alllist.bglist[i]._x - xspeed;
for (var i in _root.alllist.enemylist) {
_root.alllist.enemylist[i]._x = _root.alllist.enemylist[i]._x - xspeed;
}
for (var i in _root.alllist.playerSlist) {
_root.alllist.playerSlist[i]._x = _root.alllist.playerSlist[i]._x - xspeed;
}
for (var i in _root.alllist.gongjianlist) {
_root.alllist.gongjianlist[i]._x = _root.alllist.gongjianlist[i]._x - xspeed;
}
for (var i in _root.alllist.boxlist) {
_root.alllist.boxlist[i]._x = _root.alllist.boxlist[i]._x - xspeed;
}
}
}
this._xscale = this.startxscale;
this.allmenu._xscale = 100;
moving = true;
downmove = false;
this.gotoAndStop("\u884C\u8D70");
}
if (((((!Key.isDown(_root.control_up)) && (!Key.isDown(_root.control_down))) && (!Key.isDown(_root.control_left))) && (!Key.isDown(_root.control_right))) && (!downmove)) {
moving = false;
}
if ((((((((Key.isDown(_root.control_att) && (!atting)) && (!Jpressed)) && (!jumpatting)) && (!behit)) && (!jumping)) && (!weapon)) && (!showmenu)) && (!autoMoving)) {
this.gotoAndStop("\u653B\u51FB1");
atting = true;
Jpressed = true;
} else if ((((((((Key.isDown(_root.control_att) && (!atting)) && (!Jpressed)) && (!jumpatting)) && (!behit)) && (!jumping)) && (weapon)) && (!showmenu)) && (!autoMoving)) {
this.gotoAndStop("\u6B66\u5668\u653B\u51FB");
atting = true;
Jpressed = true;
} else if ((!Key.isDown(_root.control_att)) && (Jpressed)) {
Jpressed = false;
}
if (((((((Key.isDown(_root.control_jump) && (!atting)) && (!jumping)) && (!Kpressed)) && (!jumpatting)) && (!behit)) && (!showmenu)) && (!autoMoving)) {
this.gotoAndStop("\u8DF3\u8DC3");
Kpressed = true;
jumping = true;
} else if ((!Key.isDown(_root.control_jump)) && (Kpressed)) {
Kpressed = false;
}
}
if ((((((((Key.isDown(_root.control_menu) && (!atting)) && (!jumping)) && (!jumpatting)) && (!behit)) && (!showmenu)) && (!Upressed)) && (getItem() > 0)) && (!autoMoving)) {
putItem();
showmenu = true;
Upressed = true;
} else if ((!Key.isDown(_root.control_menu)) && (Upressed)) {
Upressed = false;
} else if ((Key.isDown(_root.control_menu) && (showmenu)) && (!Upressed)) {
Upressed = true;
selectedIndex = trueIndex;
canuse = true;
showmenu = false;
hidemenu();
}
if (showmenu && (!autoMoving)) {
if (Key.isDown(_root.control_left) && (!Apressed)) {
menuControl("left");
Apressed = true;
} else if ((!Key.isDown(_root.control_left)) && (Apressed)) {
Apressed = false;
}
if (Key.isDown(_root.control_right) && (!Dpressed)) {
menuControl("right");
Dpressed = true;
} else if ((!Key.isDown(_root.control_right)) && (Dpressed)) {
Dpressed = false;
}
if (Key.isDown(_root.control_att)) {
trueindex = selectedIndex;
showmenu = false;
hidemenu();
}
}
if ((((((((Key.isDown(_root.control_use) && (!Ipressed)) && (!atting)) && (!jumping)) && (!jumpatting)) && (!behit)) && (!showmenu)) && (canuse)) && (!autoMoving)) {
Ipressed = true;
switch (trueIndex) {
case 0 :
if (allmenu.item0.num > 0) {
canuse = false;
_root.attachMovie("s" + trueIndex, ("s" + trueIndex) + _root.itemdep, _root.itemdep++);
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
} else {
var i = 0;
while (i < itemsNum) {
if (allmenu["item" + i].num > 0) {
trueIndex = i;
selectedIndex = trueIndex;
if (allmenu["item" + i].itemType == "use") {
_root.attachMovie("s" + trueIndex, ("s" + trueIndex) + _root.itemdep, _root.itemdep++);
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
} else if (allmenu["item" + i].itemType == "throw") {
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
} else if (allmenu["item" + i].itemType == "yinshen") {
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
yinshenstart = getTimer();
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
}
break;
}
i++;
}
}
break;
case 1 :
if (allmenu.item1.num > 0) {
_root.attachMovie("s" + trueIndex, ("s" + trueIndex) + _root.itemdep, _root.itemdep++);
allmenu.item1.num--;
_root["thing" + trueIndex]--;
} else {
var i = 0;
while (i < itemsNum) {
if (allmenu["item" + i].num > 0) {
trueIndex = i;
canuse = true;
selectedIndex = trueIndex;
if (allmenu["item" + i].itemType == "use") {
_root.attachMovie("s" + trueIndex, ("s" + trueIndex) + _root.itemdep, _root.itemdep++);
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
} else if (allmenu["item" + i].itemType == "throw") {
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
} else if (allmenu["item" + i].itemType == "yinshen") {
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
yinshenstart = getTimer();
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
}
break;
}
i++;
}
}
break;
case 2 :
if (allmenu.item2.num > 0) {
allmenu.item2.num--;
_root["thing" + trueIndex]--;
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
} else {
var i = 0;
while (i < itemsNum) {
if (allmenu["item" + i].num > 0) {
trueIndex = i;
canuse = true;
selectedIndex = trueIndex;
if (allmenu["item" + i].itemType == "use") {
_root.attachMovie("s" + trueIndex, ("s" + trueIndex) + _root.itemdep, _root.itemdep++);
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
} else if (allmenu["item" + i].itemType == "throw") {
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
} else if (allmenu["item" + i].itemType == "yinshen") {
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
yinshenstart = getTimer();
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
}
break;
}
i++;
}
}
break;
case 3 :
if (allmenu.item3.num > 0) {
allmenu.item3.num--;
_root["thing" + trueIndex]--;
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
} else {
var i = 0;
while (i < itemsNum) {
if (allmenu["item" + i].num > 0) {
trueIndex = i;
canuse = true;
selectedIndex = trueIndex;
if (allmenu["item" + i].itemType == "use") {
_root.attachMovie("s" + trueIndex, ("s" + trueIndex) + _root.itemdep, _root.itemdep++);
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
} else if (allmenu["item" + i].itemType == "throw") {
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
} else if (allmenu["item" + i].itemType == "yinshen") {
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
yinshenstart = getTimer();
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
}
break;
}
i++;
}
}
break;
case 4 :
if (allmenu.item4.num > 0) {
allmenu.item4.num--;
_root["thing" + trueIndex]--;
yinshenstart = getTimer();
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
} else {
var i = 0;
while (i < itemsNum) {
if (allmenu["item" + i].num > 0) {
trueIndex = i;
canuse = true;
selectedIndex = trueIndex;
if (allmenu["item" + i].itemType == "use") {
_root.attachMovie("s" + trueIndex, ("s" + trueIndex) + _root.itemdep, _root.itemdep++);
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
} else if (allmenu["item" + i].itemType == "throw") {
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
} else if (allmenu["item" + i].itemType == "yinshen") {
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
yinshenstart = getTimer();
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
}
break;
}
i++;
}
}
break;
default :
canuse = true;
var i = 0;
for(;;){
if (i >= itemsNum) {
break;
}
if (allmenu["item" + i].num > 0) {
trueIndex = i;
canuse = true;
selectedIndex = trueIndex;
if (allmenu["item" + i].itemType == "use") {
_root.attachMovie("s" + trueIndex, ("s" + trueIndex) + _root.itemdep, _root.itemdep++);
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
} else if (allmenu["item" + i].itemType == "throw") {
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
} else if (allmenu["item" + i].itemType == "yinshen") {
allmenu["item" + trueIndex].num--;
_root["thing" + trueIndex]--;
yinshenstart = getTimer();
this.gotoAndStop("\u4F7F\u7528\u9053\u5177");
}
break;
}
i++;
};
}
} else if ((!Key.isDown(_root.control_use)) && (Ipressed)) {
Ipressed = false;
}
if (!yinshen) {
for (var i in _root.alllist.enemylist) {
if (_root.alllist.enemylist[i].hit1.hitTest(this.pic.panding)) {
if (catching) {
catching = false;
beCatchedman.becatched = false;
beCatchedman.gotoAndPlay("\u653E\u624B");
}
this.hp = this.hp - 5;
if (_root.alllist.enemylist[i]._x > this._x) {
this._x = this._x - 8;
} else {
this._x = this._x + 8;
}
if (this.hp <= 0) {
_root.downyou = _root.alllist.enemylist[i];
}
this.gotoAndStop("\u88AB\u653B\u51FB");
break;
}
if (_root.alllist.enemylist[i].hit2.hitTest(this.pic.panding)) {
if (catching) {
catching = false;
beCatchedman.becatched = false;
beCatchedman.gotoAndPlay("\u653E\u624B");
}
this.hp = this.hp - 8;
fall = true;
_root.downyou = _root.alllist.enemylist[i];
this.gotoAndStop("\u88AB\u653B\u51FB");
break;
}
}
for (var i in _root.alllist.gongjianlist) {
if (_root.alllist.gongjianlist[i].hit3.hitTest(this.pic.panding)) {
if (catching) {
catching = false;
beCatchedman.becatched = false;
beCatchedman.gotoAndPlay("\u653E\u624B");
}
this.hp = this.hp - 8;
_root.tt = _root.alllist.gongjianlist[i]._x;
removeMovieClip(_root.alllist.gongjianlist[i]);
this.gotoAndStop("\u88AB\u7BAD\u5C04\u4E2D");
break;
}
}
}
if (this._x > 420) {
this._x = 420;
}
if (this._x < 30) {
this._x = 30;
}
if (((this._x - _root.alllist.bglist.bg1._x) > 1500) && ((this._x - _root.alllist.bglist.bg1._x) < 2920)) {
if (this._y < 140) {
this._y = 140;
}
} else if (this._y < 100) {
this._y = 100;
}
if (this._y > 235) {
this._y = 235;
}
if (((getTimer() - yinshenstart) > yinshentime) && (yinshen)) {
yinshen = false;
this.pic._alpha = 100;
}
}
};
Symbol 357 MovieClip [guanyu] Frame 5
if (yinshen) {
this.pic._alpha = 50;
}
Symbol 357 MovieClip [guanyu] Frame 10
if (yinshen) {
this.pic._alpha = 50;
}
Symbol 357 MovieClip [guanyu] Frame 15
if (yinshen) {
this.pic._alpha = 50;
}
Symbol 357 MovieClip [guanyu] Frame 85
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
Symbol 373 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.life < 1) {
this._visible = false;
}
this.num.gotoAndStop(_root.life);
};
Symbol 380 MovieClip Frame 1
if (!init) {
init = true;
nowhp = _parent._parent.guanyu.hp;
this.gotoAndStop(nowhp);
}
this.onEnterFrame = function () {
if (_parent._parent.guanyu.hp > 100) {
_parent._parent.guanyu.hp = _parent._parent.guanyu.maxhp;
}
if (_parent._parent.guanyu.hp < nowhp) {
nowhp--;
this.gotoAndStop(nowhp);
}
if (_parent._parent.guanyu.hp > nowhp) {
nowhp = _parent._parent.guanyu.hp;
this.gotoAndStop(nowhp);
}
};
Symbol 401 MovieClip [gongjian] Frame 1
if (!init) {
this.swapDepths((this._y + (Math.random() * 200)) + this._x);
init = true;
this._xscale = sender._xscale;
this._x = sender._x;
this._y = sender._y - 20;
}
Symbol 401 MovieClip [gongjian] Frame 22
for (var i in _root.alllist.gongjianlist) {
if (_root.alllist.gongjianlist[i] == this) {
delete _root.alllist.gongjianlist[i];
break;
}
}
this.swapDepths(12345);
this.removeMovieClip();
Symbol 406 MovieClip Frame 1
if (!init) {
init = true;
nowhp = _parent.hp;
this.gotoAndStop(nowhp);
this._visible = false;
this._height = 6;
this._width = 65;
var time2;
var per;
}
this.onEnterFrame = function () {
per = int((_parent.hp / _parent.maxhp) * 100);
if (this._visible) {
if ((getTimer() - time2) > 1500) {
this._visible = false;
}
}
if (_parent.hp > 0) {
this.gotoAndStop(per);
} else {
this.gotoAndStop(1);
}
};
Symbol 528 MovieClip [xu] Frame 1
function mcDepth() {
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
}
stop();
delete this.onEnterFrame;
if (!init) {
init = true;
this._height = 105;
this._width = 72;
var speed = 3;
var startXscale = _xscale;
var hp = 100;
var maxhp = 100;
var side = null;
var bethrow = false;
var becatched = false;
var beatted = false;
xusound = new Sound(this);
}
this.onEnterFrame = function () {
if (!pause) {
mcDepth();
if (this._x > _parent.guanyu._x) {
this._xscale = startXscale;
this.tiao._xscale = 20;
} else {
this._xscale = -startXscale;
this.tiao._xscale = -20;
}
if ((Math.abs(this._x - _parent.guanyu._x) > 120) && (Math.random() < 0.02)) {
this.gotoAndPlay("\u5C04\u7BAD");
} else if ((Math.abs(this._x - _parent.guanyu._x) > 100) && (Math.random() < 0.07)) {
this.gotoAndPlay("\u884C\u8D70");
} else if (((Math.random() < 0.01) && (Math.abs(this._x - _parent.guanyu._x) < 80)) && (Math.abs(this._y - _parent.guanyu._y) < 50)) {
gotoAndPlay (37);
}
if (this._y > 220) {
this._y = 220;
}
if (this._y < 130) {
this._y = 130;
}
}
};
Symbol 528 MovieClip [xu] Frame 5
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
if (this._x > _parent.guanyu._x) {
this._x = this._x - speed;
} else if (this._x <= _parent.guanyu._x) {
this._x = this._x + speed;
}
if ((this._y > _parent.guanyu._y) && (Math.abs(this._y - _parent.guanyu._y) > 30)) {
this._y = this._y - 2;
} else if (this._y <= _parent.guanyu._y) {
this._y = this._y + 2;
}
if (this._y > 220) {
this._y = 220;
}
if (this._y < 130) {
this._y = 130;
}
if (this._x > _parent.guanyu._x) {
this._xscale = startXscale;
this.tiao._xscale = 20;
} else {
this._xscale = -startXscale;
this.tiao._xscale = -20;
}
};
Symbol 528 MovieClip [xu] Frame 22
delete this.onEnterFrame;
if ((Math.random() < 0.05) && ((this._x - _parent.guanyu._x) > 140)) {
this.gotoAndPlay("\u884C\u8D70");
} else if ((Math.abs(this._x - _parent.guanyu._x) < 100) && (Math.random() < 0.05)) {
this.gotoAndPlay("\u653B\u51FB");
} else {
this.gotoAndPlay("\u7AD9\u7ACB");
}
Symbol 528 MovieClip [xu] Frame 23
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
};
Symbol 528 MovieClip [xu] Frame 32
_parent.attachMovie("gongjian", "gongjian" + _root.itemdep, _root.itemdep++);
_parent["gongjian" + _root.itemdep].sender = this;
_root.alllist.gongjianlist["gongjian" + _root.itemdep] = _parent["gongjian" + _root.itemdep];
Symbol 528 MovieClip [xu] Frame 36
this.gotoAndStop("\u7AD9\u7ACB");
Symbol 528 MovieClip [xu] Frame 37
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
};
Symbol 528 MovieClip [xu] Frame 47
if ((Math.abs(this._x - _parent.guanyu._x) < 100) && (Math.random() < 0.08)) {
this.gotoAndPlay("\u653B\u51FB");
} else {
this.gotoAndStop("\u7AD9\u7ACB");
}
Symbol 528 MovieClip [xu] Frame 48
delete this.onEnterFrame;
beatted = true;
if (hp <= 0) {
delete this.onEnterFrame;
gotoAndPlay (52);
}
Symbol 528 MovieClip [xu] Frame 49
this.onEnterFrame = function () {
mcDepth();
if (this._x > _parent.guanyu._x) {
this._x = this._x + 0.5;
} else {
this._x = this._x - 0.5;
}
};
Symbol 528 MovieClip [xu] Frame 51
delete this.onEnterFrame;
beatted = false;
this.gotoAndStop("\u7AD9\u7ACB");
Symbol 528 MovieClip [xu] Frame 52
delete this.onEnterFrame;
this.gotoAndPlay("\u5012\u5730");
Symbol 528 MovieClip [xu] Frame 53
if (hp <= 0) {
yangsound.attachSound("die");
yangsound.start();
}
if (this._x > _parent.guanyu._x) {
side = 1;
} else {
side = 2;
}
Symbol 528 MovieClip [xu] Frame 54
this.onEnterFrame = function () {
mcDepth();
if (side == 1) {
this._x = this._x + 5;
} else if (side == 2) {
this._x = this._x - 5;
}
};
Symbol 528 MovieClip [xu] Frame 84
delete this.onEnterFrame;
Symbol 528 MovieClip [xu] Frame 102
if (hp > 0) {
gotoAndPlay (103);
} else {
gotoAndPlay (109);
}
Symbol 528 MovieClip [xu] Frame 103
this.onEnterFrame = function () {
mcDepth();
};
Symbol 528 MovieClip [xu] Frame 108
gotoAndStop (1);
Symbol 528 MovieClip [xu] Frame 109
this.onEnterFrame = function () {
mcDepth();
};
if (Math.random() < 0.2) {
_root.makeItem("knife", this._x, this._y + 40);
} else if (Math.random() < 0.2) {
_root.makeItem("boom", this._x, this._y - 10);
} else if (Math.random() < 0.2) {
_root.makeItem("rocks", this._x, this._y - 10);
} else if (Math.random() < 0.2) {
_root.makeItem("firebone", this._x, this._y - 10);
} else if (Math.random() < 0.2) {
_root.makeItem("fish", this._x, this._y + 40);
} else if (Math.random() < 0.05) {
_root.makeItem("treasure1", this._x, this._y - 30);
}
Symbol 528 MovieClip [xu] Frame 153
for (var i in _root.alllist.enemylist) {
if (_root.alllist.enemylist[i] == this) {
delete _root.alllist.enemylist[i];
break;
}
}
_root.enemyNum--;
this.removeMovieClip();
Symbol 528 MovieClip [xu] Frame 154
delete this.onEnterFrame;
this.bethrow = true;
if (this._x >= _parent.guanyu._x) {
side = 1;
} else {
side = 2;
}
this.onEnterFrame = function () {
mcDepth();
for (var i in _root.alllist.enemylist) {
if (!_root.alllist.enemylist[i].bethrow) {
if (this.hit3.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 5;
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
}
}
}
};
Symbol 528 MovieClip [xu] Frame 161
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
if (side == 1) {
this._x = this._x + 8;
} else if (side == 2) {
this._x = this._x - 8;
}
};
Symbol 528 MovieClip [xu] Frame 176
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
for (var i in _root.alllist.enemylist) {
if (!_root.alllist.enemylist[i].bethrow) {
if (this.hit3.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 8;
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
}
}
}
if (side == 1) {
this._x = this._x + 8;
} else if (side == 2) {
this._x = this._x - 8;
}
};
Symbol 528 MovieClip [xu] Frame 181
delete this.onEnterFrame;
this.hp = this.hp - 10;
this.onEnterFrame = function () {
mcDepth();
if (side == 1) {
this._x = this._x + 8;
} else if (side == 2) {
this._x = this._x - 8;
}
};
Symbol 528 MovieClip [xu] Frame 191
delete this.onEnterFrame;
Symbol 528 MovieClip [xu] Frame 207
this.bethrow = false;
if (hp > 0) {
gotoAndPlay (103);
} else {
this._xscale = -this._xscale;
gotoAndPlay (109);
}
Symbol 528 MovieClip [xu] Frame 208
delete this.onEnterFrame;
if (hp <= 0) {
xusound.attachSound("die");
xusound.start();
}
this.onEnterFrame = function () {
mcDepth();
if (side == 1) {
this._x = this._x + 4;
} else if (side == 2) {
this._x = this._x - 4;
}
};
Symbol 528 MovieClip [xu] Frame 254
delete this.onEnterFrame;
Symbol 528 MovieClip [xu] Frame 267
if (hp > 0) {
gotoAndPlay (103);
} else {
gotoAndPlay (109);
}
Symbol 531 MovieClip Frame 1
if (!init) {
init = true;
nowhp = _parent.hp;
this.gotoAndStop(nowhp);
this._visible = false;
this._height = 4;
this._width = 45;
var time2;
}
this.onEnterFrame = function () {
if (this._visible) {
if ((getTimer() - time2) > 1500) {
this._visible = false;
}
}
if (_parent.hp > 0) {
this.gotoAndStop(_parent.hp);
} else {
this.gotoAndStop(1);
}
};
Symbol 797 MovieClip [yang] Frame 1
function mcDepth() {
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
}
function mcBorder() {
if (this._x < -50) {
this._x = -50;
}
if (this._y > 220) {
this._y = 220;
}
if (this._y <= 120) {
this._y = 120;
}
}
delete this.onEnterFrame;
stop();
if (!init) {
init = true;
var speed = 3;
var backspeed = 2;
var startXscale = _xscale;
var ran;
var hp = 100;
var bethrow = false;
var becatched = false;
var beatted = false;
var begin;
var side = null;
yangsound = new Sound(this);
}
this.onEnterFrame = function () {
if (!_root.pause) {
mcDepth();
if (begin) {
if (this._x > _parent.guanyu._x) {
this._xscale = startXscale;
this.tiao._xscale = 20;
} else {
this._xscale = -startXscale;
this.tiao._xscale = -20;
}
ran = random(70);
if ((ran < 1) && (Math.abs(this._x - _parent.guanyu._x) > 30)) {
this.gotoAndPlay("\u884C\u8D70");
} else if (((((ran > 1) && (ran < 4)) && (Math.abs(this._x - _parent.guanyu._x) < 150)) && (Math.abs(this._y - _parent.guanyu._y) > 50)) && (Math.abs(this._y - _parent.guanyu._y) < 150)) {
this.gotoAndPlay("\u5411\u540E\u9000");
} else if (((ran > 68) && (Math.abs(this._x - _parent.guanyu._x) < 80)) && (Math.abs(this._x - _parent.guanyu._x) > 20)) {
this.gotoAndPlay("\u653B\u51FB");
} else if (((Math.abs(this._x - _parent.guanyu._x) < 10) && (Math.abs(this._y - _parent.guanyu._y) < 10)) && (ran < 20)) {
this.gotoAndPlay("\u5411\u540E\u9000");
} else if (Math.random() < 0.005) {
this.gotoAndPlay("\u8DF3\u8DC3\u653B\u51FB");
}
mcBorder();
}
}
};
Symbol 797 MovieClip [yang] Frame 5
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
if (this._x > _parent.guanyu._x) {
this._x = this._x - speed;
} else {
this._x = this._x + speed;
}
if (this._y > _parent.guanyu._y) {
this._y = this._y - speed;
} else {
this._y = this._y + 2;
}
if (this._y > 220) {
this._y = 220;
}
if (this._y < 130) {
this._y = 130;
}
if ((Math.abs(this._x - _parent.guanyu._x) < 100) && (random(20) < 1)) {
delete this.onEnterFrame;
this.gotoAndPlay("\u5411\u540E\u9000");
}
};
Symbol 797 MovieClip [yang] Frame 19
delete this.onEnterFrame;
if (!_root.pause) {
tt = random(5);
if (tt < 4) {
gotoAndStop (1);
} else {
gotoAndPlay (5);
}
} else {
gotoAndStop (1);
}
Symbol 797 MovieClip [yang] Frame 20
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
};
Symbol 797 MovieClip [yang] Frame 28
gotoAndStop (1);
Symbol 797 MovieClip [yang] Frame 29
delete this.onEnterFrame;
beatted = true;
if (hp <= 0) {
gotoAndPlay (33);
}
Symbol 797 MovieClip [yang] Frame 30
this.onEnterFrame = function () {
mcDepth();
if (this._x > _parent.guanyu._x) {
this._x = this._x + 0.5;
} else {
this._x = this._x - 0.5;
}
if (hp <= 0) {
gotoAndPlay (33);
}
};
Symbol 797 MovieClip [yang] Frame 32
delete this.onEnterFrame;
beatted = false;
if (hp > 0) {
gotoAndStop (1);
} else {
yangsound.attachSound("die");
yangsound.start();
gotoAndPlay (33);
}
Symbol 797 MovieClip [yang] Frame 33
delete this.onEnterFrame;
this.gotoAndPlay("\u5012\u5730");
if (hp <= 0) {
yangsound.attachSound("die");
yangsound.start();
}
if (this._x > _parent.guanyu._x) {
side = 1;
} else {
side = 2;
}
this.onEnterFrame = function () {
mcDepth();
mcBorder();
if (side == 1) {
this._x = this._x + 4;
} else if (side == 2) {
this._x = this._x - 4;
}
};
Symbol 797 MovieClip [yang] Frame 68
delete this.onEnterFrame;
Symbol 797 MovieClip [yang] Frame 80
if (hp > 0) {
gotoAndPlay (81);
} else {
gotoAndPlay (87);
}
Symbol 797 MovieClip [yang] Frame 81
if (hp <= 0) {
gotoAndPlay (87);
}
Symbol 797 MovieClip [yang] Frame 86
bethrow = false;
gotoAndStop (1);
Symbol 797 MovieClip [yang] Frame 116
for (var i in _root.alllist.enemylist) {
if (_root.alllist.enemylist[i] == this) {
delete _root.alllist.enemylist[i];
break;
}
}
_root.enemyNum--;
this.swapDepths(12345);
this.removeMovieClip();
Symbol 797 MovieClip [yang] Frame 117
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
if (this._x > _parent.guanyu._x) {
this._x = this._x + backspeed;
} else {
this._x = this._x - backspeed;
}
if (this._y > _parent.guanyu._y) {
this._y = this._y + backspeed;
} else {
this._y = this._y - backspeed;
}
if (this._y > 220) {
this._y = 220;
}
if (this._y < 130) {
this._y = 130;
}
};
Symbol 797 MovieClip [yang] Frame 134
gotoAndStop (1);
Symbol 797 MovieClip [yang] Frame 135
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
if (this._xscale == startXscale) {
this._x = this._x - 1;
} else {
this._x = this._x + 1;
}
};
Symbol 797 MovieClip [yang] Frame 161
delete this.onEnterFrame;
Symbol 797 MovieClip [yang] Frame 172
gotoAndStop (1);
Symbol 797 MovieClip [yang] Frame 202
delete this.onEnterFrame;
this.bethrow = true;
if (!_parent.guanyu.throwing) {
if (this._x >= _parent.guanyu._x) {
side = 1;
} else {
side = 2;
}
} else if (_parent.guanyu.throwing) {
if (_parent.guanyu.ll == "right") {
side = 1;
} else if (_parent.guanyu.ll == "left") {
side = 2;
}
}
this.onEnterFrame = function () {
trace(this._x);
mcDepth();
mcBorder();
for (var i in _root.alllist.enemylist) {
if (!_root.alllist.enemylist[i].bethrow) {
if (this.hit3.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 5;
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
}
}
}
};
Symbol 797 MovieClip [yang] Frame 209
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
mcBorder();
for (var i in _root.alllist.enemylist) {
if (!_root.alllist.enemylist[i].bethrow) {
if (this.hit3.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 5;
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
}
}
}
if (side == 1) {
this._x = this._x + 8;
} else if (side == 2) {
this._x = this._x - 8;
}
};
Symbol 797 MovieClip [yang] Frame 211
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
mcBorder();
if (side == 1) {
this._x = this._x + 8;
} else if (side == 2) {
this._x = this._x - 8;
}
};
Symbol 797 MovieClip [yang] Frame 223
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
mcBorder();
for (var i in _root.alllist.enemylist) {
if (!_root.alllist.enemylist[i].bethrow) {
if (this.hit3.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 5;
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
}
}
}
if (side == 1) {
this._x = this._x + 8;
} else if (side == 2) {
this._x = this._x - 8;
}
};
Symbol 797 MovieClip [yang] Frame 228
delete this.onEnterFrame;
this.tiao._visible = true;
this.tiao.time2 = getTimer();
this.hp = this.hp - 10;
this.onEnterFrame = function () {
mcDepth();
mcBorder();
if (side == 1) {
this._x = this._x + 8;
} else if (side == 2) {
this._x = this._x - 8;
}
};
Symbol 797 MovieClip [yang] Frame 237
delete this.onEnterFrame;
Symbol 797 MovieClip [yang] Frame 249
this.bethrow = false;
if (hp > 0) {
gotoAndPlay (81);
} else {
this._xscale = -this._xscale;
gotoAndPlay (87);
}
Symbol 797 MovieClip [yang] Frame 250
becatched = true;
Symbol 797 MovieClip [yang] Frame 315
_root.guanyu.returnWalk();
becatched = false;
Symbol 797 MovieClip [yang] Frame 332
bethrow = false;
gotoAndStop (1);
Symbol 797 MovieClip [yang] Frame 333
delete this.onEnterFrame;
Symbol 797 MovieClip [yang] Frame 344
delete this.onEnterFrame;
becatched = true;
Symbol 797 MovieClip [yang] Frame 399
becatched = false;
gotoAndStop (1);
Symbol 797 MovieClip [yang] Frame 430
delete this.onEnterFrame;
this.hp = this.hp - 15;
this.onEnterFrame = function () {
mcDepth();
mcBorder();
if (this._xscale == this.startXscale) {
this._x = this._x + 3;
} else if (this._xscale == (-this.startXscale)) {
this._x = this._x - 3;
}
trace(this._x);
};
Symbol 797 MovieClip [yang] Frame 474
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
mcBorder();
};
Symbol 797 MovieClip [yang] Frame 487
becatched = false;
if (hp > 0) {
gotoAndPlay (81);
} else {
this._xscale = -this._xscale;
gotoAndPlay (87);
}
Symbol 797 MovieClip [yang] Frame 488
delete this.onEnterFrame;
if (hp <= 0) {
yangsound.attachSound("die");
yangsound.start();
}
this.onEnterFrame = function () {
mcDepth();
mcBorder();
if (side == 1) {
this._x = this._x + 4;
} else if (side == 2) {
this._x = this._x - 4;
}
};
Symbol 797 MovieClip [yang] Frame 534
delete this.onEnterFrame;
Symbol 797 MovieClip [yang] Frame 547
if (hp > 0) {
gotoAndPlay (81);
} else {
gotoAndPlay (87);
}
Symbol 797 MovieClip [yang] Frame 548
stop();
delete this.onEnterFrame;
this.onEnterFrame = function () {
if ((this._x - _root.guanyu._x) < 80) {
this.begin = true;
}
if (this.begin) {
gotoAndPlay (551);
}
};
Symbol 797 MovieClip [yang] Frame 549
stop();
delete this.onEnterFrame;
this.onEnterFrame = function () {
if ((this._x - _root.guanyu._x) < 80) {
this.begin = true;
}
if (this.begin) {
gotoAndPlay (551);
}
};
Symbol 797 MovieClip [yang] Frame 550
stop();
delete this.onEnterFrame;
this.onEnterFrame = function () {
if ((this._x - _root.guanyu._x) < 210) {
this.begin = true;
}
if (this.begin) {
gotoAndPlay (551);
}
};
Symbol 797 MovieClip [yang] Frame 551
delete this.onEnterFrame;
Symbol 797 MovieClip [yang] Frame 557
this.gotoAndStop("\u7AD9\u7ACB");
Symbol 804 MovieClip Frame 1
stop();
this.gotoAndStop(_root.downyou.hp);
this.onEnterFrame = function () {
trace((_root.downyou.hp + " ") + nowhp);
if (_root.downyou.hp < _root.downyou.nowhp) {
_root.downyou.nowhp--;
this.gotoAndStop(_root.downyou.nowhp);
trace("--");
}
};
Symbol 805 MovieClip [yanginfor] Frame 25
this.removeMovieClip();
Symbol 816 MovieClip Frame 1
stop();
Symbol 818 MovieClip [gametimeMC] Frame 1
if (!init) {
init = true;
var nowtime;
nowtime = _root.gameTime;
var t2 = int(nowtime / 10);
var t1 = (nowtime % 10);
this._x = 200;
this._y = 30;
this._height = 28;
this._width = 28;
var i = 0;
if (this.t2 == 0) {
this.num2.gotoAndStop(10);
} else {
this.num2.gotoAndStop(t2);
}
this.num1.gotoAndStop(t1);
}
this.onEnterFrame = function () {
if (!_root.pause) {
i++;
if ((i % 200) == 0) {
_root.gameTime--;
nowtime = _root.gameTime;
t2 = int(nowtime / 10);
t1 = nowtime % 10;
if (this.t2 == 0) {
num2.gotoAndStop(10);
} else {
num2.gotoAndStop(t2);
}
if ((_root.gameTime > 0) && (t1 != 0)) {
num1.gotoAndStop(t1);
} else {
num1.gotoAndStop(10);
}
}
}
};
Symbol 829 MovieClip [bg1] Frame 1
stop();
this._height = 300;
Symbol 831 MovieClip [movebg1] Frame 1
this.onEnterFrame = function () {
this._x = _root.bg1._x + 3;
};
Symbol 833 MovieClip [movebg2] Frame 1
this.onEnterFrame = function () {
this._x = _root.bg1._x + 504;
};
Symbol 848 MovieClip [tulong] Frame 1
stop();
if (!init) {
init = true;
var nowbg;
var bx;
var life = 2;
var wname = "tulong";
var using = false;
this.swapDepths((((_y - 50) * 100) + (id % 100)) + 20000);
}
for (var i in _root.alllist.bglist) {
if (_root.alllist.bglist[i].hitTest(this)) {
nowbg = _root.alllist.bglist[i];
break;
}
}
bx = Math.abs(nowbg._x - this._x);
this.onEnterFrame = function () {
if (!using) {
this._x = nowbg._x + bx;
if (this._x < -500) {
this.removeMovieClip();
}
}
};
Symbol 848 MovieClip [tulong] Frame 3
life--;
delete this.onEnterFrame;
Symbol 848 MovieClip [tulong] Frame 14
if (life > 0) {
this.gotoAndStop(1);
} else {
this.gotoAndPlay("\u6B66\u5668\u6D88\u5931");
}
Symbol 848 MovieClip [tulong] Frame 15
for (var i in _root.alllist.bglist) {
if (_root.alllist.bglist[i].hitTest(this)) {
nowbg = _root.alllist.bglist[i];
break;
}
}
bx = Math.abs(nowbg._x - this._x);
this.onEnterFrame = function () {
if (!using) {
this._x = nowbg._x + bx;
if (this._x < -40) {
this.swapDepths(12345);
this.removeMovieClip();
}
}
};
Symbol 848 MovieClip [tulong] Frame 60
this.swapDepths(12345);
for (var i in _root.alllist.weaponlist) {
if (_root.alllist.weaponlist[i] == this) {
delete _root.alllist.weaponlist[i];
break;
}
}
this.removeMovieClip();
Symbol 851 MovieClip [fish] Frame 1
stop();
foodhp = 25;
var nowbg;
var bx;
for (var i in _root.alllist.bglist) {
if (_root.alllist.bglist[i].hitTest(this)) {
nowbg = _root.alllist.bglist[i];
break;
}
}
bx = Math.abs(nowbg._x - this._x);
this.onEnterFrame = function () {
this._x = nowbg._x + bx;
if (this._x < -40) {
this.swapDepths(12345);
this.removeMovieClip();
}
};
Symbol 851 MovieClip [fish] Frame 2
_root.guanyu.hp = _root.guanyu.hp + foodhp;
this.swapDepths(12345);
this.removeMovieClip();
Symbol 856 MovieClip [gomc] Frame 1
stop();
Symbol 856 MovieClip [gomc] Frame 2
if ((getTimer() - time1) > 4000) {
gotoAndPlay (3);
} else {
gotoAndStop (1);
}
Symbol 856 MovieClip [gomc] Frame 3
playing = true;
this._x = 320;
this._y = 100;
mcsound = new Sound(this);
mcsound.attachSound("gosound");
mcsound.start();
Symbol 856 MovieClip [gomc] Frame 24
_root.bgcanmove = true;
Symbol 856 MovieClip [gomc] Frame 114
playing = false;
time1 = getTimer();
gotoAndStop (1);
Symbol 858 MovieClip [movebg3] Frame 1
this.onEnterFrame = function () {
this._x = _root.bg1._x + 1590;
};
Symbol 860 MovieClip [movebg4] Frame 1
this.onEnterFrame = function () {
this._x = _root.bg1._x + 2564;
};
Symbol 1171 MovieClip [lidian] Frame 1
function mcDepth() {
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
}
stop();
if (!init) {
init = true;
this._height = 145;
this._width = 141;
var speed = 3.5;
var walkTo = null;
var startXscale = _xscale;
var hp = 300;
var maxhp = 300;
var side = null;
var bethrow = false;
var becatched = false;
var beatted = false;
var theSound = new Sound(this);
}
this.onEnterFrame = function () {
mcDepth();
if (this._y > 220) {
this._y = 220;
}
if (this._y < 130) {
this._y = 130;
}
};
Symbol 1171 MovieClip [lidian] Frame 2
_root.flag6 = true;
Symbol 1171 MovieClip [lidian] Frame 16
stop();
delete this.onEnterFrame;
beatted = false;
this.onEnterFrame = function () {
if (!_root.pause) {
trace(_root.pause);
mcDepth();
if (this._y > 220) {
this._y = 220;
}
if (this._y < 130) {
this._y = 130;
}
if (((Math.abs(this._x - _root.player1._x) > 100) && (Math.abs(this._y - _root.player1._y) < 50)) && (Math.random() < 0.05)) {
this.gotoAndPlay("\u8FDC\u7A0B\u653B\u51FB");
} else if ((Math.abs(this._y - _root.player1._y) < 10) && (Math.random() < 0.2)) {
this.gotoAndPlay("\u653B\u51FB1");
} else if ((Math.abs(this._x - _root.player1._x) > 50) && (Math.random() < 0.2)) {
this.gotoAndPlay("\u884C\u8D70");
} else if ((Math.abs(this._x - _root.player1._y) >= 10) && (Math.random() < 0.05)) {
this.gotoAndPlay("\u884C\u8D70");
}
}
};
Symbol 1171 MovieClip [lidian] Frame 20
delete this.onEnterFrame;
if (this._x > _parent.player1._x) {
walkTo = "left";
} else if (this._x <= _parent.player1._x) {
walkTo = "right";
}
this.onEnterFrame = function () {
mcDepth();
if (walkTo == "left") {
this._x = this._x - speed;
} else if (walkTo == "right") {
this._x = this._x + speed;
}
if (this._y > _parent.player1._y) {
this._y = this._y - 2;
} else if (this._y <= _parent.player1._y) {
this._y = this._y + 2;
}
if (this._y > 220) {
this._y = 220;
}
if (this._y < 130) {
this._y = 130;
}
if (Math.abs(this._x - _root.player1._x) > 20) {
if (this._x > _parent.player1._x) {
this._xscale = startXscale;
this.tiao._xscale = 20;
} else {
this._xscale = -startXscale;
this.tiao._xscale = -20;
}
}
};
Symbol 1171 MovieClip [lidian] Frame 41
delete this.onEnterFrame;
if (!_root.pause) {
if ((Math.random() < 0.05) && ((this._x - _parent.player1._x) > 140)) {
this.gotoAndPlay("\u884C\u8D70");
} else if ((Math.abs(this._x - _parent.player1._x) < 100) && (Math.random() < 0.05)) {
this.gotoAndPlay("\u653B\u51FB1");
} else {
this.gotoAndStop("\u7AD9\u7ACB");
}
} else {
this.gotoAndStop("\u7AD9\u7ACB");
}
Symbol 1171 MovieClip [lidian] Frame 42
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
if (this._x > _parent.guanyu._x) {
this._xscale = startXscale;
this.tiao._xscale = 20;
} else {
this._xscale = -startXscale;
this.tiao._xscale = -20;
}
};
Symbol 1171 MovieClip [lidian] Frame 56
if (!_root.pause) {
if (Math.random() < 0.2) {
this.gotoAndPlay("\u653B\u51FB2");
} else {
gotoAndStop (16);
}
} else {
this.gotoAndStop("\u7AD9\u7ACB");
}
Symbol 1171 MovieClip [lidian] Frame 81
if (Math.abs(this._y - _root.player1._y) < 50) {
this.gotoAndPlay("\u8DF3\u8DC3\u653B\u51FB1");
} else {
this.gotoAndPlay("\u53D6\u6D88\u8DF3\u8DC3");
}
Symbol 1171 MovieClip [lidian] Frame 95
this.gotoAndStop("\u7AD9\u7ACB");
Symbol 1171 MovieClip [lidian] Frame 96
delete this.onEnterFrame;
if ((this._x > _root.player1._x) && (Math.abs(this._x - _root.player1._x) > 100)) {
jumpAttSpeed = -4;
} else if ((this._x <= _root.player1._x) && (Math.abs(this._x - _root.player1._x) > 100)) {
jumpAttSpeed = 4;
} else {
jumpAttSpeed = 0;
}
this.onEnterFrame = function () {
this._x = this._x + jumpAttSpeed;
if (this._x > _parent.guanyu._x) {
this._xscale = startXscale;
this.tiao._xscale = 20;
} else {
this._xscale = -startXscale;
this.tiao._xscale = -20;
}
};
Symbol 1171 MovieClip [lidian] Frame 107
delete this.onEnterFrame;
this.gotoAndStop("\u7AD9\u7ACB");
Symbol 1171 MovieClip [lidian] Frame 108
delete this.onEnterFrame;
if (this._x > _parent.player1._x) {
this._xscale = startXscale;
this.tiao._xscale = 20;
} else {
this._xscale = -startXscale;
this.tiao._xscale = -20;
}
if ((this._x > _root.player1._x) && (Math.abs(this._x - _root.player1._x) > 100)) {
jumpAttSpeed = -10;
} else if ((this._x <= _root.player1._x) && (Math.abs(this._x - _root.player1._x) > 100)) {
jumpAttSpeed = 10;
} else {
jumpAttSpeed = 0;
}
Symbol 1171 MovieClip [lidian] Frame 117
this.onEnterFrame = function () {
mcDepth();
this._x = this._x + jumpAttSpeed;
};
Symbol 1171 MovieClip [lidian] Frame 140
this.gotoAndStop("\u7AD9\u7ACB");
Symbol 1171 MovieClip [lidian] Frame 141
delete this.onEnterFrame;
Symbol 1171 MovieClip [lidian] Frame 166
this.gotoAndStop("\u7AD9\u7ACB");
Symbol 1171 MovieClip [lidian] Frame 167
delete this.onEnterFrame;
beatted = true;
if (hp <= 0) {
theSound.attachSound("lidiansi");
theSound.start();
gotoAndPlay (171);
}
this.onEnterFrame = function () {
if (this._x > _parent.player1._x) {
this._x = this._x + 0.5;
} else {
this._x = this._x - 0.5;
}
mcDepth();
};
Symbol 1171 MovieClip [lidian] Frame 170
delete this.onEnterFrame;
this.beatted = false;
if (hp > 0) {
gotoAndStop (16);
} else {
gotoAndPlay (171);
}
Symbol 1171 MovieClip [lidian] Frame 171
delete this.onEnterFrame;
Symbol 1171 MovieClip [lidian] Frame 172
if (this._x > _parent.guanyu._x) {
side = 1;
} else {
side = 2;
}
Symbol 1171 MovieClip [lidian] Frame 173
this.onEnterFrame = function () {
mcDepth();
if (side == 1) {
this._x = this._x + 6;
} else if (side == 2) {
this._x = this._x - 6;
}
};
Symbol 1171 MovieClip [lidian] Frame 212
delete this.onEnterFrame;
Symbol 1171 MovieClip [lidian] Frame 236
if (hp > 0) {
gotoAndPlay (237);
} else {
this._xscale = -this._xscale;
gotoAndPlay (546);
}
Symbol 1171 MovieClip [lidian] Frame 246
!!!ERROR
Symbol 1171 MovieClip [lidian] Frame 247
delete this.onEnterFrame;
this.bethrow = true;
if (!_parent.guanyu.throwing) {
if (this._x >= _parent.guanyu._x) {
side = 1;
} else {
side = 2;
}
} else if (_parent.guanyu.throwing) {
if (_parent.guanyu.ll == "right") {
side = 1;
} else if (_parent.guanyu.ll == "left") {
side = 2;
}
}
this.onEnterFrame = function () {
mcDepth();
for (var i in _root.alllist.enemylist) {
if (!_root.alllist.enemylist[i].bethrow) {
if (this.hit3.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 5;
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
}
}
}
};
Symbol 1171 MovieClip [lidian] Frame 254
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
if (side == 1) {
this._x = this._x + 10;
} else if (side == 2) {
this._x = this._x - 10;
}
};
Symbol 1171 MovieClip [lidian] Frame 269
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
for (var i in _root.alllist.enemylist) {
if (!_root.alllist.enemylist[i].bethrow) {
if (this.hit3.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 8;
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
}
}
}
if (side == 1) {
this._x = this._x + 10;
} else if (side == 2) {
this._x = this._x - 10;
}
};
Symbol 1171 MovieClip [lidian] Frame 273
delete this.onEnterFrame;
this.hp = this.hp - 10;
this.onEnterFrame = function () {
mcDepth();
if (side == 1) {
this._x = this._x + 8;
} else if (side == 2) {
this._x = this._x - 8;
}
};
Symbol 1171 MovieClip [lidian] Frame 283
!!!ERROR
Symbol 1171 MovieClip [lidian] Frame 297
!!!ERROR
Symbol 1171 MovieClip [lidian] Frame 298
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
if (side == 1) {
this._x = this._x + 4;
} else if (side == 2) {
this._x = this._x - 4;
}
};
Symbol 1171 MovieClip [lidian] Frame 346
!!!ERROR
Symbol 1171 MovieClip [lidian] Frame 362
if (this.hp > 0) {
this.gotoAndPlay("\u722C\u8D77\u6765");
} else {
theSound.attachSound("lidiansi");
theSound.start();
this._xscale = -this._xscale;
gotoAndPlay (546);
}
Symbol 1171 MovieClip [lidian] Frame 363
!!!ERROR
Symbol 1171 MovieClip [lidian] Frame 380
!!!ERROR
Symbol 1171 MovieClip [lidian] Frame 390
!!!ERROR
Symbol 1171 MovieClip [lidian] Frame 391
!!!ERROR
Symbol 1171 MovieClip [lidian] Frame 402
!!!ERROR
Symbol 1171 MovieClip [lidian] Frame 456
!!!ERROR
Symbol 1171 MovieClip [lidian] Frame 487
delete this.onEnterFrame;
this.hp = this.hp - 15;
this.onEnterFrame = function () {
mcDepth();
if (this._xscale == this.startXscale) {
this._x = this._x + 4;
} else if (this._xscale == (-this.startXscale)) {
this._x = this._x - 4;
}
};
Symbol 1171 MovieClip [lidian] Frame 531
delete this.onEnterFrame;
this.onEnterFrame = function () {
mcDepth();
};
Symbol 1171 MovieClip [lidian] Frame 545
!!!ERROR
Symbol 1171 MovieClip [lidian] Frame 546
delete this.onEnterFrame;
mcDepth();
_root.makeItem("yinshenyi", this._x, this._y - 20);
Symbol 1171 MovieClip [lidian] Frame 570
for (var i in _root.alllist.enemylist) {
if (_root.alllist.enemylist[i] == this) {
delete _root.alllist.enemylist[i];
break;
}
}
_root.enemyNum--;
_root.boss = null;
this.removeMovieClip();
Symbol 1178 Button
on (release) {
_root.continueGame = false;
stopAllSounds();
_root.regame = true;
}
Symbol 1179 MovieClip [restartMC] Frame 10
!!!ERROR
Symbol 1183 MovieClip [lidiansay] Frame 52
_root.player1.autoMoving = false;
_root.boss.gotoAndPlay("\u51FA\u573A");
_root.bgmusic.stop();
_root.bgmusic.attachSound("bgm1-2");
_root.bgmusic.start();
_root.bgmusic.setVolume(30);
_root.bgmusic.onSoundComplete = function () {
_root.bgmusic.start();
};
this.removeMovieClip();
Symbol 1191 MovieClip [start1] Frame 150
_root.attachMovie("guanyu", "guanyu", 7, {_x:150, _y:200});
if (!_root.continueGame) {
_root.life--;
}
_root.player1 = _root.guanyu;
_root.player1.id = _root.mcID;
_root.mcID++;
_root.attachMovie("guanyuinfor", "guanyuinfor", 200009);
_root.attachMovie("scoreMC", "scoreMC", 200010, {_x:360, _y:15});
this.removeMovieClip();
Symbol 1194 MovieClip [start1-2] Frame 1
this._x = 241;
this._y = 73;
Symbol 1194 MovieClip [start1-2] Frame 57
!!!ERROR
Symbol 1210 MovieClip [fires] Frame 1
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
this.onEnterFrame = function () {
for (var i in _root.alllist.enemylist) {
if (this.hit.hitTest(_root.alllist.enemylist[i].behit)) {
if (_root.alllist.enemylist[i]._x > this._x) {
_root.alllist.enemylist[i].side = 1;
} else {
_root.alllist.enemylist[i].side = 2;
}
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 35;
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u88AB\u706B\u70E7");
_root.score = _root.score + 800;
}
}
};
Symbol 1210 MovieClip [fires] Frame 23
!!!ERROR
Symbol 1212 MovieClip [s2] Frame 1
if (!init) {
init = true;
startscale = this._xscale;
this._y = _root.guanyu._y - 24;
if (_root.guanyu._xscale == _root.guanyu.startxscale) {
speed = 12;
this._x = _root.guanyu._x + 40;
} else if (_root.guanyu._xscale == (-_root.guanyu.startxscale)) {
this._xscale = -startscale;
this._x = _root.guanyu._x - 40;
speed = -12;
}
theSound = new Sound(this);
theSound.attachSound("feidao");
theSound.start(0.1);
}
this.onEnterFrame = function () {
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
this._x = this._x + speed;
for (var i in _root.alllist.enemylist) {
if (this.hit.hitTest(_root.alllist.enemylist[i].behit)) {
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 10;
_root.score = _root.score + 80;
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
this.removeMovieClip();
}
}
for (var i in _root.alllist.boxlist) {
if (this.hit.hitTest(_root.alllist.boxlist[i].behit)) {
_root.alllist.boxlist[i].gotoAndPlay("\u88AB\u653B\u51FB");
_root.score = _root.score + 30;
this.removeMovieClip();
}
}
if ((this._x > 400) || (this._x < -50)) {
this.removeMovieClip();
}
};
Symbol 1263 MovieClip [bomb] Frame 1
if (!init) {
init = true;
startscale = this._xscale;
this._y = _root.guanyu._y - 24;
if (_root.guanyu._xscale == _root.guanyu.startxscale) {
this._x = _root.guanyu._x + 40;
} else if (_root.guanyu._xscale == (-_root.guanyu.startxscale)) {
this._xscale = -startscale;
this._x = _root.guanyu._x - 40;
}
}
this.onEnterFrame = function () {
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
for (var i in _root.alllist.enemylist) {
if (this.hit.hitTest(_root.alllist.enemylist[i].behit)) {
if (_root.alllist.enemylist[i]._x > this._x) {
_root.alllist.enemylist[i].side = 1;
} else {
_root.alllist.enemylist[i].side = 2;
}
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 30;
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u88AB\u706B\u70E7");
}
}
};
Symbol 1263 MovieClip [bomb] Frame 121
!!!ERROR
Symbol 1306 MovieClip [rock] Frame 1
this.onEnterFrame = function () {
this.swapDepths((((_y - 50) * 100) + (id % 100)) + 20000);
for (var i in _root.alllist.enemylist) {
if (this.hit.hitTest(_root.alllist.enemylist[i].behit)) {
if (_root.alllist.enemylist[i]._x > this._x) {
_root.alllist.enemylist[i].side = 1;
} else {
_root.alllist.enemylist[i].side = 2;
}
_root.alllist.enemylist[i].hp = _root.alllist.enemylist[i].hp - 40;
_root.alllist.enemylist[i].tiao._visible = true;
_root.alllist.enemylist[i].tiao.time2 = getTimer();
_root.alllist.enemylist[i].gotoAndPlay("\u5012\u5730");
_root.score = _root.score + 480;
}
}
for (var i in _root.alllist.boxlist) {
if (this.hit.hitTest(_root.alllist.boxlist[i].behit)) {
_root.alllist.boxlist[i].gotoAndPlay("\u88AB\u653B\u51FB");
_root.score = _root.score + 30;
}
}
};
Symbol 1306 MovieClip [rock] Frame 13
!!!ERROR
Symbol 1306 MovieClip [rock] Frame 70
!!!ERROR
Symbol 1317 MovieClip Frame 1
!!!ERROR
Symbol 1318 MovieClip [scoreMC] Frame 1
this.onEnterFrame = function () {
score = _root.score;
n0 = Math.floor(score / 10000000);
n00 = Math.floor(score % 10000000);
n1 = Math.floor(n00 / 1000000);
n11 = Math.floor(n00 % 1000000);
n2 = Math.floor(n11 / 100000);
n22 = Math.floor(n11 % 100000);
n3 = Math.floor(n22 / 10000);
n33 = Math.floor(n22 % 10000);
n4 = Math.floor(n33 / 1000);
n44 = Math.floor(n33 % 1000);
n5 = Math.floor(n44 / 100);
n55 = Math.floor(n44 % 100);
n6 = Math.floor(n55 / 10);
n66 = Math.floor(n55 % 10);
n7 = Math.floor(n66 % 10);
var i = 0;
while (i < 8) {
if (eval ("n" + i) == 0) {
this["num" + i].gotoAndStop(10);
} else {
this["num" + i].gotoAndStop(eval ("n" + i));
}
i++;
}
};
Symbol 1322 MovieClip [victory] Frame 26
this.onEnterFrame = function () {
var temp = _root.bgmusic.getVolume();
temp = temp - 1;
_root.bgmusic.setVolume(temp);
if (temp <= 0) {
_root.bgmusic.stop();
delete this.onEnterFrame;
}
};
Symbol 1322 MovieClip [victory] Frame 59
_root.attachMovie("guoguan", "guoguan", 200017, {_x:230, _y:120});
this.removeMovieClip();
Symbol 1335 Button
on (release) {
if (_root.score > _root.mySOData.data.highScore) {
_root.mySOData.data.highScore = _root.score;
}
_root.continueGame = false;
stopAllSounds();
_root.regame = true;
}
Symbol 1338 Button
on (release) {
if (_root.score > _root.mySOData.data.highScore) {
_root.mySOData.data.highScore = _root.score;
}
_root.continueGame = true;
stopAllSounds();
_root.agnow = true;
}
Symbol 1339 MovieClip [guoguan] Frame 1
timescore = _root.gameTime * 100;
hpscore = _root.player1.hp * 100;
allscore = (10000 + timescore) + hpscore;
if ((_root.gameTime >= 50) && (_root.player1.hp == 100)) {
dengji = "A";
} else if ((_root.gameTime < 50) && (_root.player1.hp == 100)) {
dengji = "A -";
} else if (((_root.gameTime >= 50) && (_root.player1.hp < 100)) && (_root.player1.hp >= 80)) {
dengji = "B";
} else if (((_root.gameTime < 50) && (_root.player1.hp < 100)) && (_root.player1.hp >= 80)) {
dengji = "B -";
} else if (((_root.gameTime >= 50) && (_root.player1.hp < 80)) && (_root.player1.hp >= 60)) {
dengji = "C";
} else if (((_root.gameTime < 50) && (_root.player1.hp < 60)) && (_root.player1.hp >= 40)) {
dengji = "C -";
} else {
dengji = "D";
}
Symbol 1339 MovieClip [guoguan] Frame 53
stop();
_root.bgmusic.setVolume(25);
this.onEnterFrame = function () {
if (allscore >= 100) {
allscore = allscore - 100;
_root.score = _root.score + 100;
_root.bgmusic.attachSound("defen");
_root.bgmusic.start();
_root.bgmusic.onSoundComplete = function () {
_root.bgmusic.start();
};
} else if (allscore > 0) {
allscore = allscore - allscore;
_root.score = _root.score + allscore;
} else if (allscore <= 0) {
_root.bgmusic.stop();
this.gotoAndPlay("\u7EE7\u7EED");
delete this.onEnterFrame;
}
};
Symbol 1339 MovieClip [guoguan] Frame 54
!!!ERROR
Symbol 1339 MovieClip [guoguan] Frame 59
!!!ERROR
Symbol 1343 MovieClip [treasure1] Frame 1
var nowbg;
var bx;
var gotscore = Math.floor((Math.random() * 9000) + 1000);
trace(gotscore);
n0 = Math.floor(gotscore / 1000);
n00 = gotscore % 1000;
n1 = Math.floor(n00 / 100);
n11 = n00 % 100;
n2 = Math.floor(n11 / 10);
n3 = n11 % 10;
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
for (var i in _root.alllist.bglist) {
if (_root.alllist.bglist[i].hitTest(this)) {
nowbg = _root.alllist.bglist[i];
break;
}
}
bx = Math.abs(nowbg._x - this._x);
this.onEnterFrame = function () {
this._x = nowbg._x + bx;
if (this._x < -400) {
this.swapDepths(12345);
this.removeMovieClip();
}
};
Symbol 1343 MovieClip [treasure1] Frame 24
!!!ERROR
Symbol 1343 MovieClip [treasure1] Frame 25
this.swapDepths((((_y * 100) + (id % 100)) + 20000) + 10000);
delete this.onEnterFrame;
_root.score = _root.score + gotscore;
var i = 0;
while (i < 4) {
if (eval ("n" + i) == 0) {
allnum["num" + i].gotoAndStop(10);
} else {
allnum["num" + i].gotoAndStop(eval ("n" + i));
}
i++;
}
Symbol 1343 MovieClip [treasure1] Frame 50
!!!ERROR
Symbol 1384 MovieClip [box2] Frame 1
!!!ERROR
Symbol 1384 MovieClip [box2] Frame 2
_root.makeItem("fish", this._x, this._y);
Symbol 1384 MovieClip [box2] Frame 32
for (var i in _root.alllist.boxlist) {
if (_root.alllist.boxlist[i] == this) {
delete _root.alllist.boxlist[i];
}
}
this.removeMovieClip();
Symbol 1428 MovieClip [box1] Frame 1
!!!ERROR
Symbol 1428 MovieClip [box1] Frame 6
if (Math.random() < 0.2) {
_root.makeItem("knife", this._x, this._y + 40);
} else if (Math.random() < 0.2) {
_root.makeItem("boom", this._x, this._y - 10);
} else if (Math.random() < 0.1) {
_root.makeItem("rocks", this._x, this._y - 10);
} else if (Math.random() < 0.1) {
_root.makeItem("firebone", this._x, this._y - 10);
} else if (Math.random() < 0.05) {
_root.makeWeapon("tulong", this._x, this._y + 60);
} else if (Math.random() < 0.5) {
_root.makeItem("treasure1", this._x, this._y - 35);
}
Symbol 1428 MovieClip [box1] Frame 37
for (var i in _root.alllist.boxlist) {
if (_root.alllist.boxlist[i] == this) {
delete _root.alllist.boxlist[i];
}
}
this.removeMovieClip();
Symbol 1429 MovieClip [rocks] Frame 1
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
var maxnum = 9;
var nowbg;
var bx;
for (var i in _root.alllist.bglist) {
if (_root.alllist.bglist[i].hitTest(this)) {
nowbg = _root.alllist.bglist[i];
break;
}
}
bx = Math.abs(nowbg._x - this._x);
this.onEnterFrame = function () {
this._x = nowbg._x + bx;
if (this._x < -500) {
this.removeMovieClip();
}
};
Symbol 1429 MovieClip [rocks] Frame 20
!!!ERROR
Symbol 1429 MovieClip [rocks] Frame 21
delete this.onEnterFrame;
_root.thing1++;
nownum = _root.thing1;
if (nownum < 10) {
allnum.num0.gotoAndStop(nownum);
allnum.num1.gotoAndStop(11);
} else {
n0 = Math.floor(nownum / 10);
n1 = nownum % 10;
allnum.num0.gotoAndStop(n0);
if (n1 == 0) {
allnum.num1.gotoAndStop(10);
} else {
allnum.num1.gotoAndStop(n1);
}
}
Symbol 1429 MovieClip [rocks] Frame 44
!!!ERROR
Symbol 1431 MovieClip [yinshenyi] Frame 1
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
var maxnum = 9;
var nowbg;
var bx;
for (var i in _root.alllist.bglist) {
if (_root.alllist.bglist[i].hitTest(this)) {
nowbg = _root.alllist.bglist[i];
break;
}
}
bx = Math.abs(nowbg._x - this._x);
this.onEnterFrame = function () {
this._x = nowbg._x + bx;
if (this._x < -500) {
this.removeMovieClip();
}
};
Symbol 1431 MovieClip [yinshenyi] Frame 20
!!!ERROR
Symbol 1431 MovieClip [yinshenyi] Frame 21
delete this.onEnterFrame;
_root.thing4++;
nownum = _root.thing4;
if (nownum < 10) {
allnum.num0.gotoAndStop(nownum);
allnum.num1.gotoAndStop(11);
} else {
n0 = Math.floor(nownum / 10);
n1 = nownum % 10;
allnum.num0.gotoAndStop(n0);
if (n1 == 0) {
allnum.num1.gotoAndStop(10);
} else {
allnum.num1.gotoAndStop(n1);
}
}
Symbol 1431 MovieClip [yinshenyi] Frame 44
!!!ERROR
Symbol 1433 MovieClip [boom] Frame 1
this.swapDepths(((_y * 100) + (id % 100)) + 20000);
var maxnum = 9;
var nowbg;
var bx;
for (var i in _root.alllist.bglist) {
if (_root.alllist.bglist[i].hitTest(this)) {
nowbg = _root.alllist.bglist[i];
break;
}
}
bx = Math.abs(nowbg._x - this._x);
this.onEnterFrame = function () {
this._x = nowbg._x + bx;
if (this._x < -500) {
this.removeMovieClip();
}
};
Symbol 1433 MovieClip [boom] Frame 20
!!!ERROR
Symbol 1433 MovieClip [boom] Frame 21
delete this.onEnterFrame;
_root.thing3++;
nownum = _root.thing3;
if (nownum < 10) {
allnum.num0.gotoAndStop(nownum);
allnum.num1.gotoAndStop(11);
} else {
n0 = Math.floor(nownum / 10);
n1 = nownum % 10;
allnum.num0.gotoAndStop(n0);
if (n1 == 0) {
allnum.num1.gotoAndStop(10);
} else {
allnum.num1.gotoAndStop(n1);
}
}
Symbol 1433 MovieClip [boom] Frame 44
!!!ERROR
Symbol 1437 MovieClip [pauseMC] Frame 1
!!!ERROR
Symbol 1443 MovieClip [lidiantiao] Frame 1
if (!init) {
init = true;
shp = _root.boss.hp;
this.gotoAndStop(shp);
}
this.onEnterFrame = function () {
nowhp = _root.boss.hp;
if ((nowhp < shp) && (nowhp > 0)) {
shp--;
this.gotoAndStop(shp);
}
if (nowhp <= 0) {
this.gotoAndStop(1);
}
};
Symbol 1455 Button
on (release) {
!!!ERROR
Symbol 1459 Button
on (release) {
!!!ERROR
Symbol 1463 Button
on (release) {
!!!ERROR
Symbol 1482 Button
on (release) {
infor = "\u4E0A\u884C";
this.b1.enabled = false;
this.b2.enabled = false;
this.b3.enabled = false;
this.b4.enabled = false;
this.b5.enabled = false;
this.b6.enabled = false;
this.b7.enabled = false;
this.b8.enabled = false;
this.b9.enabled = false;
this.b10.enabled = false;
this.submenu._visible = true;
}
Symbol 1483 Button
on (release) {
infor = "\u4E0B\u884C";
this.b1.enabled = false;
this.b2.enabled = false;
this.b3.enabled = false;
this.b4.enabled = false;
this.b5.enabled = false;
this.b6.enabled = false;
this.b7.enabled = false;
this.b8.enabled = false;
this.b9.enabled = false;
this.b10.enabled = false;
this.submenu._visible = true;
}
Symbol 1484 Button
on (release) {
infor = "\u5DE6\u884C";
this.b1.enabled = false;
this.b2.enabled = false;
this.b3.enabled = false;
this.b4.enabled = false;
this.b5.enabled = false;
this.b6.enabled = false;
this.b7.enabled = false;
this.b8.enabled = false;
this.b9.enabled = false;
this.b10.enabled = false;
this.submenu._visible = true;
}
Symbol 1485 Button
on (release) {
infor = "\u53F3\u884C";
this.b1.enabled = false;
this.b2.enabled = false;
this.b3.enabled = false;
this.b4.enabled = false;
this.b5.enabled = false;
this.b6.enabled = false;
this.b7.enabled = false;
this.b8.enabled = false;
this.b9.enabled = false;
this.submenu._visible = true;
}
Symbol 1486 Button
on (release) {
infor = "\u83DC\u5355\u4FE1\u606F";
this.b1.enabled = false;
this.b2.enabled = false;
this.b3.enabled = false;
this.b4.enabled = false;
this.b5.enabled = false;
this.b6.enabled = false;
this.b7.enabled = false;
this.b8.enabled = false;
this.b9.enabled = false;
this.b10.enabled = false;
this.submenu._visible = true;
}
Symbol 1487 Button
on (release) {
infor = "\u4F7F\u7528\u9053\u5177";
this.b1.enabled = false;
this.b2.enabled = false;
this.b3.enabled = false;
this.b4.enabled = false;
this.b5.enabled = false;
this.b6.enabled = false;
this.b7.enabled = false;
this.b8.enabled = false;
this.b9.enabled = false;
this.b10.enabled = false;
this.submenu._visible = true;
}
Symbol 1488 Button
on (release) {
infor = "\u653B\u51FB";
this.b1.enabled = false;
this.b2.enabled = false;
this.b3.enabled = false;
this.b4.enabled = false;
this.b5.enabled = false;
this.b6.enabled = false;
this.b7.enabled = false;
this.b8.enabled = false;
this.b9.enabled = false;
this.b10.enabled = false;
this.submenu._visible = true;
}
Symbol 1489 Button
on (release) {
infor = "\u8DF3\u8DC3";
this.b1.enabled = false;
this.b2.enabled = false;
this.b3.enabled = false;
this.b4.enabled = false;
this.b5.enabled = false;
this.b6.enabled = false;
this.b7.enabled = false;
this.b8.enabled = false;
this.b9.enabled = false;
this.b10.enabled = false;
this.submenu._visible = true;
}
Symbol 1490 Button
on (release) {
infor = "\u6682\u505C\u6E38\u620F";
this.b1.enabled = false;
this.b2.enabled = false;
this.b3.enabled = false;
this.b4.enabled = false;
this.b5.enabled = false;
this.b6.enabled = false;
this.b7.enabled = false;
this.b8.enabled = false;
this.b9.enabled = false;
this.b10.enabled = false;
this.submenu._visible = true;
}
Symbol 1492 Button
on (release) {
!!!ERROR
Symbol 1511 MovieClip Frame 1
stop();
var keyis;
this._visible = false;
someListener = new Object();
someListener.onKeyDown = function () {
if (_parent.submenu._visible) {
keyis = Key.getCode();
if (_parent.infor == "\u4E0A\u884C") {
_root.control_up = keyis;
_root.control_infor_up = _root.KeyMap[_root.control_up];
} else if (_parent.infor == "\u4E0B\u884C") {
_root.control_down = keyis;
_root.control_infor_down = _root.KeyMap[_root.control_down];
} else if (_parent.infor == "\u5DE6\u884C") {
_root.control_left = keyis;
_root.control_infor_left = _root.KeyMap[_root.control_left];
} else if (_parent.infor == "\u53F3\u884C") {
_root.control_right = keyis;
_root.control_infor_right = _root.KeyMap[_root.control_right];
} else if (_parent.infor == "\u653B\u51FB") {
_root.control_att = keyis;
_root.control_infor_att = _root.KeyMap[_root.control_att];
} else if (_parent.infor == "\u8DF3\u8DC3") {
_root.control_jump = keyis;
_root.control_infor_jump = _root.KeyMap[_root.control_jump];
} else if (_parent.infor == "\u83DC\u5355\u4FE1\u606F") {
_root.control_menu = keyis;
_root.control_infor_menu = _root.KeyMap[_root.control_menu];
} else if (_parent.infor == "\u4F7F\u7528\u9053\u5177") {
_root.control_use = keyis;
_root.control_infor_use = _root.KeyMap[_root.control_use];
} else if (_parent.infor == "\u6682\u505C\u6E38\u620F") {
_root.control_pause = keyis;
_root.control_infor_pause = _root.KeyMap[_root.control_pause];
}
_parent.b1.enabled = true;
_parent.b2.enabled = true;
_parent.b3.enabled = true;
_parent.b4.enabled = true;
_parent.b5.enabled = true;
_parent.b6.enabled = true;
_parent.b7.enabled = true;
_parent.b8.enabled = true;
_parent.b9.enabled = true;
_parent.b10.enabled = true;
_parent.submenu._visible = false;
}
};
Key.addListener(someListener);
Symbol 1512 MovieClip Frame 1
!!!ERROR
Symbol 1512 MovieClip Frame 13
!!!ERROR
Symbol 1512 MovieClip Frame 24
!!!ERROR
Symbol 1514 Button
on (release) {
!!!ERROR
Symbol 1515 MovieClip Frame 10
!!!ERROR
Symbol 1515 MovieClip Frame 17
!!!ERROR