Frame 2
function soObj() {
var _local2 = SharedObject.getLocal();
if (_local2.data.levelN == undefined) {
_local2.data.levelN = 1;
}
if (_local2.data.ppArr == undefined) {
_local2.data.ppArr = new Array();
}
if (_local2.data.life == undefined) {
_local2.data.life = 10;
}
if (_local2.data.trophyArr == undefined) {
_local2.data.trophyArr = new Array();
var _local3 = 0;
while (_local3 <= 12) {
_local2.data.trophyArr.push(false);
_local3++;
}
}
if (_local2.data.rowArr == undefined) {
_local2.data.rowArr = new Array();
}
if (_local2.data.fullArr == undefined) {
_local2.data.fullArr = new Array();
}
if (_local2.data.onlyArr == undefined) {
_local2.data.onlyArr = new Array();
}
if (_local2.data.jiaoxue == undefined) {
_local2.data.jiaoxue = false;
}
_global.levelN = _local2.data.levelN;
_global.ppArr = _local2.data.ppArr;
_global.life = _local2.data.life;
_global.trophyArr = _local2.data.trophyArr;
_global.rowArr = _local2.data.rowArr;
_global.fullArr = _local2.data.fullArr;
_global.onlyArr = _local2.data.onlyArr;
_global.jiaoxue = _local2.data.jiaoxue;
}
stop();
var ss = new Sound();
ss.setVolume(100);
soObj();
start_btn.onRelease = function () {
stopAllSounds();
var _local2 = SharedObject.getLocal();
_local2.clear();
soObj();
_root.gotoAndStop("\u5730\u56FE");
};
help_btn.onRelease = function () {
_root.gotoAndStop("\u600E\u4E48\u73A9");
};
con_btn.onRelease = function () {
stopAllSounds();
soObj();
_root.gotoAndStop("\u5730\u56FE");
};
tro_btn.onRelease = function () {
_root.gotoAndStop("\u6210\u5C31");
};
Frame 8
stop();
var ss = new Sound();
ss.setVolume(100);
var i = 1;
while (i <= 12) {
if (_global.trophyArr[i] == true) {
this["a" + i].gotoAndStop(2);
} else {
this["a" + i].gotoAndStop(1);
}
i++;
}
back_btn.onRelease = function () {
stopAllSounds();
_root.gotoAndStop("\u5F00\u59CB\u753B\u9762");
};
Frame 12
stop();
var ss = new Sound();
ss.setVolume(100);
back_btn.onRelease = function () {
stopAllSounds();
_root.gotoAndStop("\u5F00\u59CB\u753B\u9762");
};
Frame 18
function go() {
stopAllSounds();
levelTarget();
_root.guodu.gotoAndPlay(2);
}
function levelTarget() {
_global.tp = _global.levelN * 50;
_global.yp = _global.levelN * 150;
_global.jp = _global.levelN * 250;
}
stop();
var ss = new Sound();
ss.setVolume(100);
var so = SharedObject.getLocal();
_global.levelN = so.data.levelN;
_global.ppArr = so.data.ppArr;
_global.life = so.data.life;
_global.trophyArr = so.data.trophyArr;
_global.rowArr = so.data.rowArr;
_global.fullArr = so.data.fullArr;
_global.onlyArr = so.data.onlyArr;
_global.jiaoxue = so.data.jiaoxue;
_global.money = 0;
if ((_global.levelN >= 1) && (_global.levelN < 4)) {
_root.b1.gotoAndStop(2);
}
if ((_global.levelN >= 4) && (_global.levelN < 6)) {
_root.b1.gotoAndStop(2);
_root.b2.gotoAndStop(2);
}
if ((_global.levelN >= 6) && (_global.levelN < 8)) {
_root.b1.gotoAndStop(2);
_root.b2.gotoAndStop(2);
_root.b3.gotoAndStop(2);
}
if ((_global.levelN >= 8) && (_global.levelN <= 9)) {
_root.b1.gotoAndStop(2);
_root.b2.gotoAndStop(2);
_root.b3.gotoAndStop(2);
_root.b4.gotoAndStop(2);
}
if (_global.levelN > 9) {
_root.b1.gotoAndStop(2);
_root.b2.gotoAndStop(2);
_root.b3.gotoAndStop(2);
_root.b4.gotoAndStop(2);
_root.b5.gotoAndStop(2);
}
var i = 1;
while (i <= 9) {
_root["a" + i].pp._visible = false;
_root["a" + i].aa.gotoAndStop(2);
_root["a" + i].n = i;
_root["a" + i].onRelease = function () {
if ((_root["a" + i].aa._currentframe != 2) && (this.n <= _global.levelN)) {
_global.levelN = this.n;
go();
}
};
_root["a" + i].onRollOver = function () {
if ((_root["a" + i].aa._currentframe != 2) && (this.n <= _global.levelN)) {
this.aa.gotoAndStop(3);
}
};
_root["a" + i].onRollOut = function () {
if ((_root["a" + i].aa._currentframe != 2) && (this.n <= _global.levelN)) {
if (this.n != _global.levelN) {
this.aa.gotoAndStop(1);
}
}
};
i++;
}
var i = 1;
while (i < _global.levelN) {
_root["a" + i].aa.gotoAndStop(1);
i++;
}
_root["a" + _global.levelN].aa.gotoAndStop(3);
var i = 1;
while (i < _global.ppArr.length) {
_root["a" + i].pp._visible = true;
_root["a" + i].pp.gotoAndStop(_global.ppArr[i]);
i++;
}
menu_btn.onRelease = function () {
stopAllSounds();
_root.gotoAndStop("\u5F00\u59CB\u753B\u9762");
};
play_btn.onRelease = function () {
go();
};
Frame 22
function startGame() {
_global.pauseBool = false;
_root.top.sj_mc.gotoAndPlay(2);
roleMove();
addDD();
addLJT();
duilieN = 1;
_root.cmTT.gotoAndPlay(130);
if (_global.jiaoxue == false) {
ys_mc._visible = true;
}
}
function comein() {
if (!_global.pauseBool) {
duilieN--;
if (duilieN <= 0) {
duilieN = 0;
}
var _local3 = 1;
while (_local3 <= 5) {
if ((_root.bg["cm" + _local3]._currentframe == 1) || (_root.bg["cm" + _local3]._currentframe == _root.bg["cm" + _local3]._totalframes)) {
cmN++;
if (cmN > 5) {
cmN = 1;
}
_root.bg["cm" + _local3].aa.gotoAndStop(cmN);
_root.bg["cm" + _local3].gotoAndPlay(2);
return(undefined);
}
_local3++;
}
}
}
function yunxingduilie() {
var _local3 = 0;
var _local2 = 1;
while (_local2 <= 5) {
if ((_root.bg["cm" + _local2]._currentframe == 1) || (_root.bg["cm" + _local2]._currentframe == _root.bg["cm" + _local2]._totalframes)) {
_local3++;
}
_local2++;
}
if ((_local3 == 5) && (duilieN <= 0)) {
chanshengduilie();
} else if (duilieN != 0) {
comein();
}
}
function chanshengduilie() {
if (duilieN != 0) {
return(undefined);
}
duilieN = 1;
if (_global.levelN == 2) {
var _local3 = Math.ceil(Math.random() * 10);
if (_local3 <= 3) {
duilieN = 2;
}
}
if (_global.levelN == 3) {
var _local3 = Math.ceil(Math.random() * 10);
if (_local3 <= 4) {
duilieN = 2;
}
}
if (_global.levelN == 4) {
var _local3 = Math.ceil(Math.random() * 10);
if ((_local3 >= 1) && (_local3 <= 4)) {
duilieN = 2;
}
if (_local3 == 6) {
duilieN = 3;
}
}
if (_global.levelN == 5) {
var _local3 = Math.ceil(Math.random() * 10);
if ((_local3 >= 4) && (_local3 <= 7)) {
duilieN = 2;
}
if ((_local3 >= 8) && (_local3 <= 9)) {
duilieN = 3;
}
}
if (_global.levelN == 6) {
var _local3 = Math.ceil(Math.random() * 10);
if ((_local3 >= 1) && (_local3 <= 4)) {
duilieN = 2;
}
if ((_local3 >= 5) && (_local3 <= 7)) {
duilieN = 3;
}
if (_local3 == 8) {
duilieN = 4;
}
}
if (_global.levelN == 7) {
var _local3 = Math.ceil(Math.random() * 10);
if ((_local3 >= 1) && (_local3 <= 4)) {
duilieN = 2;
}
if ((_local3 >= 5) && (_local3 <= 7)) {
duilieN = 3;
}
if ((_local3 >= 8) && (_local3 <= 9)) {
duilieN = 4;
}
}
if (_global.levelN == 8) {
var _local3 = Math.ceil(Math.random() * 10);
if ((_local3 >= 1) && (_local3 <= 3)) {
duilieN = 2;
}
if ((_local3 >= 5) && (_local3 <= 7)) {
duilieN = 3;
}
if ((_local3 >= 8) && (_local3 <= 10)) {
duilieN = 4;
}
}
if (_global.levelN >= 9) {
var _local3 = Math.ceil(Math.random() * 10);
if (_local3 == 1) {
duilieN = 2;
}
if ((_local3 >= 2) && (_local3 <= 4)) {
duilieN = 3;
}
if ((_local3 >= 5) && (_local3 <= 8)) {
duilieN = 4;
}
if (_local3 == 9) {
duilieN = 5;
}
}
_root.cmTT.gotoAndPlay(120);
}
function pauseFun() {
_global.pauseBool = true;
_root.top.sj_mc.stop();
_root.top.sj_mc.aa.stop();
_root.top.sj_mc.bb.stop();
_root.cmTT.stop();
}
function continueFun() {
_global.pauseBool = false;
_root.mb_mc._visible = false;
_root.top.sj_mc.play();
_root.top.sj_mc.aa.play();
_root.top.sj_mc.bb.play();
_root.cmTT.play();
}
function addDD() {
addRP1(juzi_btn, "juzi");
addRP1(xiangjiao_btn, "xiangjiao");
addRP1(li_btn, "li");
addRP1(putao_btn, "putao");
addRP1(tudou_btn, "tudou");
addRP1(yangcong_btn, "yangcong");
addRP1(ziganlan_btn, "ziganlan");
addRP1(qingcai_btn, "qingcai");
addRP1(pingguo_btn, "pingguo");
addRP2(baidai_btn, "baidai");
addRP2(zongdai_btn, "zongdai");
addRP2(landai_btn, "landai");
addRP3(cheng_mc.a1);
addRP3(cheng_mc.a2);
addRP3(cheng_mc.a3);
addRP4(daizi1);
addRP4(daizi2);
addRP4(daizi3);
}
function showTarget() {
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("levelTarget");
}
function go() {
var _local3 = SharedObject.getLocal();
n = _local3.data.levelN;
if (((_global.levelN == 1) || (_global.levelN > 9)) || (n != _global.levelN)) {
startGame();
return(undefined);
}
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("add");
}
function deleteEnter() {
delete role.onEnterFrame;
delete lajitong_mc.onEnterFrame;
}
function roleMove() {
role.onEnterFrame = function () {
if (!_global.pauseBool) {
var _local3 = 7;
if (Math.abs(role._x - _root._xmouse) <= _local3) {
role.gotoAndStop(1);
return(undefined);
}
if (role._x >= _root._xmouse) {
role.gotoAndStop(2);
role._x = role._x - _local3;
} else {
role.gotoAndStop(3);
role._x = role._x + _local3;
}
}
};
}
function addRP1(mc1, str) {
mc1.onPress = function () {
if (!_global.pauseBool) {
sp.gotoAndStop(str);
sp._x = _root._xmouse;
sp._y = _root._ymouse;
sp.startDrag();
if (_global.jiaoxue == false) {
_root.jt_mc._x = 152;
_root.jt_mc._y = 224;
}
}
};
mc1.onRelease = (mc1.onReleaseOutside = function () {
if (_global.levelN == 0) {
_root.jt_mc._x = 181;
_root.jt_mc._y = 404;
}
if (sp.hitTest(cheng_mc)) {
if ((_global.jiaoxue == false) && (_root.ys_mc._currentframe == 3)) {
_root.ys_mc.gotoAndStop(4);
_root.jt_mc._x = 411;
_root.jt_mc._y = 234;
}
if ((_global.jiaoxue == false) && (_root.ys_mc._currentframe == 2)) {
_root.ys_mc.gotoAndStop(3);
_root.jt_mc._x = 117;
_root.jt_mc._y = 299;
}
if ((cheng_mc.zl == "") || (str == cheng_mc.zl)) {
cheng_mc.zl = str;
cheng_mc.visAA(str);
}
} else if (sp.hitTest(lajitong_mc)) {
var _local4 = jiagebiao();
var _local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3][0] == str) {
n = Math.ceil(_local4[_local3][1] * 0.2);
}
_local3++;
}
lajipai_mc._visible = true;
lajipai_mc.tt.tt.text = "-" + n;
lajipai_mc.gotoAndPlay(2);
_root.top.reduceMM(n);
var _local5 = new Sound();
_local5.attachSound("\u5783\u573E\u6876\u97F3\u6548.mp3");
_local5.start();
}
sp.stopDrag();
sp._y = 1000;
});
}
function addRP2(mc1, str) {
mc1.onPress = function () {
if (!_global.pauseBool) {
sp.gotoAndStop(str);
sp._x = _root._xmouse;
sp._y = _root._ymouse;
sp.startDrag();
if ((_global.jiaoxue == false) && (_root.ys_mc._currentframe == 4)) {
_root.jt_mc._x = 152;
_root.jt_mc._y = 224;
}
}
};
mc1.onRelease = (mc1.onReleaseOutside = function () {
var _local4 = false;
var _local3 = 1;
while (_local3 <= 3) {
if ((_root["daizi" + _local3].dd._visible == false) && (cheng_mc.zl != "")) {
_local4 = true;
hitObj = _root["daizi" + _local3];
hitObj.gotoAndStop(str);
break;
}
_local3++;
}
if (_local4 && (sp.hitTest(cheng_mc))) {
if ((_global.jiaoxue == false) && (_root.ys_mc._currentframe == 4)) {
_root.ys_mc.gotoAndStop(5);
_root.jt_mc._x = 253;
_root.jt_mc._y = 229;
}
hitObj.zl = cheng_mc.zl;
hitObj.daizi = str;
hitObj.kg = cheng_mc.tt.text;
delete hitObj.dd.onEnterFrame;
hitObj.dd.onEnterFrame = function () {
hitObj.dd.showZL(hitObj.zl, hitObj.daizi, hitObj.kg);
delete hitObj.dd.onEnterFrame;
};
cheng_mc.visAll();
var _local5 = new Sound();
_local5.attachSound("\u7528\u624B\u63D0\u888B\u6253\u5305\u97F3\u6548.mp3");
_local5.start();
} else if (sp.hitTest(lajitong_mc)) {
n = 1;
lajipai_mc._visible = true;
lajipai_mc.tt.tt.text = "-" + n;
lajipai_mc.gotoAndPlay(2);
_root.top.reduceMM(n);
var _local5 = new Sound();
_local5.attachSound("\u5783\u573E\u6876\u97F3\u6548.mp3");
_local5.start();
}
sp.stopDrag();
sp._y = 1000;
});
}
function addRP3(mc1) {
mc1.onPress = function () {
if (!_global.pauseBool) {
mc1._visible = false;
sp.gotoAndStop(mc1.zl);
sp._x = _root._xmouse;
sp._y = _root._ymouse;
sp.startDrag();
}
};
mc1.onRelease = (mc1.onReleaseOutside = function () {
if (sp.hitTest(lajitong_mc)) {
var _local3 = jiagebiao();
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2][0] == mc1.zl) {
n = Math.ceil(_local3[_local2][1] * 0.2);
}
_local2++;
}
cheng_mc.countKG();
lajipai_mc._visible = true;
lajipai_mc.tt.tt.text = "-" + n;
lajipai_mc.gotoAndPlay(2);
_root.top.reduceMM(n);
var _local4 = new Sound();
_local4.attachSound("\u5783\u573E\u6876\u97F3\u6548.mp3");
_local4.start();
} else if (sp.hitTest(_root[mc1.zl + "_btn"])) {
cheng_mc.countKG();
} else {
mc1._visible = true;
}
sp.stopDrag();
sp._y = 1000;
});
}
function addRP4(mc1, str) {
mc1.onRollOver = function () {
if (!_global.pauseBool) {
mc1.dd.showMB();
}
};
mc1.onRollOut = function () {
if (!_global.pauseBool) {
mc1.dd.visMB();
}
};
mc1.onPress = function () {
if (!_global.pauseBool) {
mc1.dd.visMB();
mc1._x = _root._xmouse;
mc1._y = _root._ymouse;
mc1.startDrag();
if ((_global.jiaoxue == false) && (_root.ys_mc._currentframe == 5)) {
_root.jt_mc._x = 323;
_root.jt_mc._y = 178;
}
}
};
mc1.onRelease = (mc1.onReleaseOutside = function () {
var _local4 = false;
var _local3 = 1;
while (_local3 <= 5) {
if (mc1.dd.aa.hitTest(_root.bg["cm" + _local3].aa.dd) && (_root.bg["cm" + _local3]._currentframe == 30)) {
_local4 = true;
hitObj = _root.bg["cm" + _local3];
break;
}
_local3++;
}
if (_local4) {
var _local7 = hitObj.yanhuo(mc1.dd.zl, mc1.dd.kg, mc1.dd.daizi, mc1.dd.jg);
if (_local7) {
mc1.dd.visAll();
if ((_global.jiaoxue == false) && (_root.ys_mc._currentframe == 5)) {
_root.ys_mc.gotoAndStop(7);
_root.jt_mc._visible = false;
}
}
} else if (mc1.hitTest(_root.lajitong_mc)) {
var _local5 = Math.ceil(mc1.dd.jg * 0.2);
lajipai_mc._visible = true;
lajipai_mc.tt.tt.text = "-" + _local5;
lajipai_mc.gotoAndPlay(2);
_root.top.reduceMM(_local5);
mc1.dd.visAll();
var _local6 = new Sound();
_local6.attachSound("\u5783\u573E\u6876\u97F3\u6548.mp3");
_local6.start();
}
mc1.stopDrag();
mc1._x = mc1.xt;
mc1._y = mc1.yt;
});
}
function addLJT() {
lajitong_mc.onEnterFrame = function () {
if (((this.hitTest(sp) || (this.hitTest(_root.landai_mc))) || (this.hitTest(_root.zongdai_mc))) || (this.hitTest(_root.baidai_mc))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
}
function getSG() {
shuiguoArr = ["juzi", "xiangjiao", "li", "putao", "tudou", "yangcong", "ziganlan", "qingcai", "pingguo"];
shuiguoN = _global.levelN;
if (_global.levelN >= 9) {
shuiguoN = 9;
}
shuiguoArr = shuiguoArr.splice(0, shuiguoN);
return(shuiguoArr);
}
function getDZ() {
daiziArr = ["zongdai", "baidai", "landai"];
daiziN = 1;
if (_global.levelN == 4) {
daiziN = 2;
}
if (_global.levelN >= 5) {
daiziN = 3;
}
daiziArr = daiziArr.splice(0, daiziN);
return(daiziArr);
}
function trophy() {
_root.mb_mc.gotoAndStop(1);
if ((_global.rowArr.length == 5) && (_global.trophyArr[2] == false)) {
pauseFun();
_global.trophyArr[2] = true;
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("trophy");
_root.mb_mc.aa.aa.gotoAndStop(2);
}
if ((_global.rowArr.length == 10) && (_global.trophyArr[3] == false)) {
pauseFun();
_global.trophyArr[3] = true;
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("trophy");
_root.mb_mc.aa.aa.gotoAndStop(3);
}
if ((_global.rowArr.length == 15) && (_global.trophyArr[5] == false)) {
pauseFun();
_global.trophyArr[5] = true;
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("trophy");
_root.mb_mc.aa.aa.gotoAndStop(5);
}
if ((_global.fullArr.length == 1) && (_global.trophyArr[6] == false)) {
pauseFun();
_global.trophyArr[6] = true;
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("trophy");
_root.mb_mc.aa.aa.gotoAndStop(6);
}
if ((_global.fullArr.length == 5) && (_global.trophyArr[7] == false)) {
pauseFun();
_global.trophyArr[7] = true;
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("trophy");
_root.mb_mc.aa.aa.gotoAndStop(7);
}
if ((_global.fullArr.length == 10) && (_global.trophyArr[8] == false)) {
pauseFun();
_global.trophyArr[8] = true;
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("trophy");
_root.mb_mc.aa.aa.gotoAndStop(8);
}
if ((_global.onlyArr.length == 1) && (_global.trophyArr[10] == false)) {
pauseFun();
_global.trophyArr[10] = true;
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("trophy");
_root.mb_mc.aa.aa.gotoAndStop(10);
}
if ((_global.onlyArr.length == 3) && (_global.trophyArr[11] == false)) {
pauseFun();
_global.trophyArr[11] = true;
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("trophy");
_root.mb_mc.aa.aa.gotoAndStop(11);
}
if ((_global.onlyArr.length == 6) && (_global.trophyArr[12] == false)) {
pauseFun();
_global.trophyArr[12] = true;
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("trophy");
_root.mb_mc.aa.aa.gotoAndStop(12);
}
var _local3 = SharedObject.getLocal();
_local3.data.trophyArr = _global.trophyArr;
}
function jiagebiao() {
var _local1 = new Array();
_local1.push(["juzi", 15]);
_local1.push(["xiangjiao", 20]);
_local1.push(["li", 25]);
_local1.push(["putao", 30]);
_local1.push(["tudou", 35]);
_local1.push(["yangcong", 40]);
_local1.push(["ziganlan", 45]);
_local1.push(["qingcai", 50]);
_local1.push(["pingguo", 55]);
return(_local1);
}
function addWP() {
var ddArr = getDDArr();
var n = 1;
var cn = 1;
_root.onEnterFrame = function () {
n++;
if (n >= 12) {
n = 1;
var _local3 = 0;
while (_local3 < ddArr[_global.levelN - 1].length) {
if (ddArr[_global.levelN - 1][_local3]._visible) {
ddArr[_global.levelN - 1][_local3]._visible = false;
} else {
ddArr[_global.levelN - 1][_local3]._visible = true;
}
_local3++;
}
cn++;
if (cn > 6) {
delete _root.onEnterFrame;
startGame();
}
}
};
}
function visDD() {
var _local3 = getDDArr();
var _local5 = 0;
while (_local5 < _local3.length) {
if (_local3[_local5] != null) {
var _local4 = 0;
while (_local4 < _local3[_local5].length) {
_local3[_local5][_local4]._visible = false;
_local4++;
}
} else {
_local3[_local5]._visible = false;
}
_local5++;
}
_local5 = 0;
while (_local5 < _global.levelN) {
if (_local3[_local5] != null) {
var _local4 = 0;
while (_local4 < _local3[_local5].length) {
_local3[_local5][_local4]._visible = true;
_local4++;
}
} else {
_local3[_local5]._visible = true;
}
_local5++;
}
if ((_global.levelN >= 1) && (_global.levelN < 3)) {
_root.bg.gotoAndStop(1);
}
if ((_global.levelN >= 3) && (_global.levelN < 5)) {
_root.bg.gotoAndStop(2);
}
if ((_global.levelN >= 5) && (_global.levelN < 7)) {
_root.bg.gotoAndStop(3);
}
if (_global.levelN >= 7) {
_root.bg.gotoAndStop(4);
}
}
function getDDArr() {
var _local1 = new Array();
_local1.push([zongdai_btn, juzi_btn]);
_local1.push([xiangjiao_btn]);
_local1.push([li_btn]);
_local1.push([putao_btn, baidai_btn]);
_local1.push([tudou_btn, landai_btn]);
_local1.push([yangcong_btn]);
_local1.push([ziganlan_btn]);
_local1.push([qingcai_btn]);
_local1.push([pingguo_btn]);
return(_local1);
}
stop();
var ss = new Sound();
ss.setVolume(100);
_root.mb_mc._visible = false;
_root.lajipai_mc._visible = false;
_global.pauseBool = true;
_global.sjd = false;
this.q1._visible = false;
this.q2._visible = false;
this.q3._visible = false;
this.q4._visible = false;
this.q5._visible = false;
ys_mc._visible = false;
jt_mc._visible = false;
var duilieN = 0;
var cmN = Math.ceil(Math.random() * 5);
_root.cmTT.stop();
visDD();
Symbol 12 MovieClip Frame 1
_root.stop();
Symbol 12 MovieClip Frame 2
fLoaded = Math.round(_root.getBytesLoaded());
fTotal = Math.round(_root.getBytesTotal());
fPercent = fLoaded / fTotal;
loaderTxt.text = ("Loading... " + Math.round(fPercent * 100)) + "%";
logoMask._y = 60 - (fPercent * 70);
if (fLoaded >= fTotal) {
loaderTxt._y = -3000;
loaderTxt._x = -3000;
_parent.play();
} else {
gotoAndPlay (1);
}
Symbol 28 MovieClip Frame 1
stop();
fSitebutton.onRelease = function () {
getURL ("http://www.games2girls.com/", "_blank");
};
Symbol 28 MovieClip Frame 123
stop();
_root.play();
Symbol 62 MovieClip Frame 1
games2girls_button.onRelease = function () {
getURL ("http://www.games2girls.com/", "_blank");
};
Symbol 76 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 32
_root.gotoAndStop("\u6E38\u620F\u754C\u9762");
Symbol 307 MovieClip Frame 72
stop();
_root.showTarget();
Symbol 343 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 1
stop();
this.xx._visible = false;
this.mb_mc._visible = false;
Symbol 474 MovieClip Frame 1
stop();
Symbol 479 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 14
stop();
if (this._name == "x5") {
this._parent._parent.shengqilikai();
}
Symbol 493 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 7
this.aa.aa.gotoAndStop("jin");
Symbol 493 MovieClip Frame 30
function diancai() {
var _local4 = 1;
if ((_global.levelN >= 3) && (_global.levelN <= 8)) {
_local4 = 2;
var _local3 = Math.ceil(Math.random() * (_global.levelN + 8));
if (_local3 > _global.levelN) {
_local4 = 1;
}
}
if (_global.levelN >= 9) {
_local4 = 3;
var _local3 = Math.ceil(Math.random() * 10);
if (_local3 <= 3) {
_local4 = 1;
}
if ((_local3 >= 4) && (_local3 <= 9)) {
_local4 = 2;
}
}
shuiguoArr = _root.getSG();
daiziArr = _root.getDZ();
arr1 = new Array();
arr2 = new Array();
arr3 = new Array();
var _local6 = Math.floor(Math.random() * shuiguoArr.length);
arr1.push(shuiguoArr[_local6]);
str = Math.ceil(Math.random() * 3) + "KG";
arr1.push(str);
var _local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr1.push(str);
shuiguoArr.splice(_local6, 1);
var _local5 = Math.floor(Math.random() * shuiguoArr.length);
arr2.push(shuiguoArr[_local5]);
str = Math.ceil(Math.random() * 3) + "KG";
arr2.push(str);
_local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr2.push(str);
shuiguoArr.splice(_local5, 1);
var _local7 = Math.floor(Math.random() * shuiguoArr.length);
arr3.push(shuiguoArr[_local7]);
str = Math.ceil(Math.random() * 3) + "KG";
arr3.push(str);
_local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr3.push(str);
showMB(_local4, arr1, arr2, arr3);
}
function showMB(n, arr1, arr2, arr3) {
xx._visible = true;
mb_mc._visible = true;
mb_mc.gotoAndStop(n);
mb_mc.m1.aa.gotoAndStop(arr1[0]);
mb_mc.m1.tt.text = arr1[1];
mb_mc.m1.bb.gotoAndStop(arr1[2]);
mb_mc.m2.aa.gotoAndStop(arr2[0]);
mb_mc.m2.tt.text = arr2[1];
mb_mc.m2.bb.gotoAndStop(arr2[2]);
mb_mc.m3.aa.gotoAndStop(arr3[0]);
mb_mc.m3.tt.text = arr3[1];
mb_mc.m3.bb.gotoAndStop(arr3[2]);
mb_mc.m1.zl = arr1[0];
mb_mc.m1.kg = arr1[1];
mb_mc.m1.dz = arr1[2];
mb_mc.m2.zl = arr2[0];
mb_mc.m2.kg = arr2[1];
mb_mc.m2.dz = arr2[2];
mb_mc.m3.zl = arr3[0];
mb_mc.m3.kg = arr3[1];
mb_mc.m3.dz = arr3[2];
}
function xxGo(obj) {
if (this.xx.x1._currentframe == 1) {
this.xx.x1.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x2._currentframe == 1) {
this.xx.x2.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x3._currentframe == 1) {
this.aa.aa.gotoAndStop("shengqi");
this.xx.x3.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x4._currentframe == 1) {
this.aa.aa.gotoAndStop("fennu");
this.xx.x4.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x5._currentframe == 1) {
delete this.xx.onEnterFrame;
this.aa.aa.gotoAndStop("fennu");
this.xx.x5.gotoAndPlay(2);
this.mb_mc._visible = false;
return(undefined);
}
}
function shengqilikai() {
visAll();
_root.top.xxGo();
this.play();
_global.rowArr = new Array();
_global.fullArr = new Array();
_global.onlyArr = new Array();
var _local4 = SharedObject.getLocal();
_local4.data.rowArr = _global.rowArr;
_local4.data.fullArr = _global.fullArr;
_local4.data.onlyArr = _global.onlyArr;
}
function gaoxinglikai() {
visAll();
this.aa.aa.gotoAndStop("gaoxing");
this.play();
_global.rowArr.push(true);
if (this.xx.x1._currentframe == 1) {
_global.fullArr.push(true);
}
if (((((this.xx.x1._currentframe != 1) && (this.xx.x2._currentframe != 1)) && (this.xx.x3._currentframe != 1)) && (this.xx.x4._currentframe != 1)) && (this.xx.x5._currentframe == 1)) {
_global.onlyArr.push(true);
}
var _local4 = SharedObject.getLocal();
_local4.data.rowArr = _global.rowArr;
_local4.data.fullArr = _global.fullArr;
_local4.data.onlyArr = _global.onlyArr;
_root.trophy();
}
function geiqian() {
var _local3 = this._name;
_local3 = _local3.substr(2, 3);
_root["q" + _local3]._visible = true;
_root["q" + _local3].n = money;
_root["q" + _local3].gotoAndPlay(2);
}
function yanhuo(zl, kg, dz, jg) {
var _local2 = false;
var _local1 = 1;
while (_local1 <= 3) {
if ((((mb_mc["m" + _local1].zl == zl) && (mb_mc["m" + _local1].kg == kg)) && (mb_mc["m" + _local1].dz == dz)) && (mb_mc["m" + _local1]._visible)) {
mb_mc["m" + _local1]._visible = false;
money = money + jg;
_local2 = true;
}
_local1++;
}
if (((!mb_mc.m1._visible) && (!mb_mc.m2._visible)) && (!mb_mc.m3._visible)) {
xx._visible = false;
mb_mc._visible = false;
geiqian();
gaoxinglikai();
}
return(_local2);
}
function visAll() {
delete this.xx.onEnterFrame;
mb_mc.m1.zl = "";
mb_mc.m1.kg = "";
mb_mc.m1.dz = "";
mb_mc.m2.zl = "";
mb_mc.m2.kg = "";
mb_mc.m2.dz = "";
mb_mc.m3.zl = "";
mb_mc.m3.kg = "";
mb_mc.m3.dz = "";
}
stop();
this.aa.aa.gotoAndStop("weixiao");
var money = 0;
var cn = 1;
this.xx.onEnterFrame = function () {
if (!_global.pauseBool) {
cn++;
if (cn >= (200 - (_global.levelN * 10))) {
cn = 1;
xxGo(obj);
}
}
};
diancai();
Symbol 493 MovieClip Frame 52
this.aa.aa.gotoAndStop("chu");
Symbol 493 MovieClip Frame 81
stop();
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 7
this.aa.aa.gotoAndStop("jin");
Symbol 494 MovieClip Frame 30
function diancai() {
var _local4 = 1;
if ((_global.levelN >= 3) && (_global.levelN <= 8)) {
_local4 = 2;
var _local3 = Math.ceil(Math.random() * (_global.levelN + 8));
if (_local3 > _global.levelN) {
_local4 = 1;
}
}
if (_global.levelN >= 9) {
_local4 = 3;
var _local3 = Math.ceil(Math.random() * 10);
if (_local3 <= 3) {
_local4 = 1;
}
if ((_local3 >= 4) && (_local3 <= 9)) {
_local4 = 2;
}
}
shuiguoArr = _root.getSG();
daiziArr = _root.getDZ();
arr1 = new Array();
arr2 = new Array();
arr3 = new Array();
var _local6 = Math.floor(Math.random() * shuiguoArr.length);
arr1.push(shuiguoArr[_local6]);
str = Math.ceil(Math.random() * 3) + "KG";
arr1.push(str);
var _local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr1.push(str);
shuiguoArr.splice(_local6, 1);
var _local5 = Math.floor(Math.random() * shuiguoArr.length);
arr2.push(shuiguoArr[_local5]);
str = Math.ceil(Math.random() * 3) + "KG";
arr2.push(str);
_local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr2.push(str);
shuiguoArr.splice(_local5, 1);
var _local7 = Math.floor(Math.random() * shuiguoArr.length);
arr3.push(shuiguoArr[_local7]);
str = Math.ceil(Math.random() * 3) + "KG";
arr3.push(str);
_local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr3.push(str);
showMB(_local4, arr1, arr2, arr3);
}
function showMB(n, arr1, arr2, arr3) {
xx._visible = true;
mb_mc._visible = true;
mb_mc.gotoAndStop(n);
mb_mc.m1.aa.gotoAndStop(arr1[0]);
mb_mc.m1.tt.text = arr1[1];
mb_mc.m1.bb.gotoAndStop(arr1[2]);
mb_mc.m2.aa.gotoAndStop(arr2[0]);
mb_mc.m2.tt.text = arr2[1];
mb_mc.m2.bb.gotoAndStop(arr2[2]);
mb_mc.m3.aa.gotoAndStop(arr3[0]);
mb_mc.m3.tt.text = arr3[1];
mb_mc.m3.bb.gotoAndStop(arr3[2]);
mb_mc.m1.zl = arr1[0];
mb_mc.m1.kg = arr1[1];
mb_mc.m1.dz = arr1[2];
mb_mc.m2.zl = arr2[0];
mb_mc.m2.kg = arr2[1];
mb_mc.m2.dz = arr2[2];
mb_mc.m3.zl = arr3[0];
mb_mc.m3.kg = arr3[1];
mb_mc.m3.dz = arr3[2];
}
function xxGo(obj) {
if (this.xx.x1._currentframe == 1) {
this.xx.x1.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x2._currentframe == 1) {
this.xx.x2.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x3._currentframe == 1) {
this.aa.aa.gotoAndStop("shengqi");
this.xx.x3.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x4._currentframe == 1) {
this.aa.aa.gotoAndStop("fennu");
this.xx.x4.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x5._currentframe == 1) {
delete this.xx.onEnterFrame;
this.aa.aa.gotoAndStop("fennu");
this.xx.x5.gotoAndPlay(2);
this.mb_mc._visible = false;
return(undefined);
}
}
function shengqilikai() {
visAll();
_root.top.xxGo();
this.play();
_global.rowArr = new Array();
_global.fullArr = new Array();
_global.onlyArr = new Array();
var _local4 = SharedObject.getLocal();
_local4.data.rowArr = _global.rowArr;
_local4.data.fullArr = _global.fullArr;
_local4.data.onlyArr = _global.onlyArr;
}
function gaoxinglikai() {
visAll();
this.aa.aa.gotoAndStop("gaoxing");
this.play();
_global.rowArr.push(true);
if (this.xx.x1._currentframe == 1) {
_global.fullArr.push(true);
}
if (((((this.xx.x1._currentframe != 1) && (this.xx.x2._currentframe != 1)) && (this.xx.x3._currentframe != 1)) && (this.xx.x4._currentframe != 1)) && (this.xx.x5._currentframe == 1)) {
_global.onlyArr.push(true);
}
var _local4 = SharedObject.getLocal();
_local4.data.rowArr = _global.rowArr;
_local4.data.fullArr = _global.fullArr;
_local4.data.onlyArr = _global.onlyArr;
_root.trophy();
}
function geiqian() {
var _local3 = this._name;
_local3 = _local3.substr(2, 3);
_root["q" + _local3]._visible = true;
_root["q" + _local3].n = money;
_root["q" + _local3].gotoAndPlay(2);
}
function yanhuo(zl, kg, dz, jg) {
var _local2 = false;
var _local1 = 1;
while (_local1 <= 3) {
if ((((mb_mc["m" + _local1].zl == zl) && (mb_mc["m" + _local1].kg == kg)) && (mb_mc["m" + _local1].dz == dz)) && (mb_mc["m" + _local1]._visible)) {
mb_mc["m" + _local1]._visible = false;
money = money + jg;
_local2 = true;
}
_local1++;
}
if (((!mb_mc.m1._visible) && (!mb_mc.m2._visible)) && (!mb_mc.m3._visible)) {
xx._visible = false;
mb_mc._visible = false;
geiqian();
gaoxinglikai();
}
return(_local2);
}
function visAll() {
delete this.xx.onEnterFrame;
mb_mc.m1.zl = "";
mb_mc.m1.kg = "";
mb_mc.m1.dz = "";
mb_mc.m2.zl = "";
mb_mc.m2.kg = "";
mb_mc.m2.dz = "";
mb_mc.m3.zl = "";
mb_mc.m3.kg = "";
mb_mc.m3.dz = "";
}
stop();
this.aa.aa.gotoAndStop("weixiao");
var money = 0;
var cn = 1;
this.xx.onEnterFrame = function () {
if (!_global.pauseBool) {
cn++;
if (cn >= (200 - (_global.levelN * 10))) {
cn = 1;
xxGo(obj);
}
}
};
diancai();
Symbol 494 MovieClip Frame 52
this.aa.aa.gotoAndStop("chu");
Symbol 494 MovieClip Frame 81
stop();
Symbol 495 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 7
this.aa.aa.gotoAndStop("jin");
Symbol 495 MovieClip Frame 30
function diancai() {
var _local4 = 1;
if ((_global.levelN >= 3) && (_global.levelN <= 8)) {
_local4 = 2;
var _local3 = Math.ceil(Math.random() * (_global.levelN + 8));
if (_local3 > _global.levelN) {
_local4 = 1;
}
}
if (_global.levelN >= 9) {
_local4 = 3;
var _local3 = Math.ceil(Math.random() * 10);
if (_local3 <= 3) {
_local4 = 1;
}
if ((_local3 >= 4) && (_local3 <= 9)) {
_local4 = 2;
}
}
shuiguoArr = _root.getSG();
daiziArr = _root.getDZ();
arr1 = new Array();
arr2 = new Array();
arr3 = new Array();
var _local6 = Math.floor(Math.random() * shuiguoArr.length);
arr1.push(shuiguoArr[_local6]);
str = Math.ceil(Math.random() * 3) + "KG";
arr1.push(str);
var _local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr1.push(str);
shuiguoArr.splice(_local6, 1);
var _local5 = Math.floor(Math.random() * shuiguoArr.length);
arr2.push(shuiguoArr[_local5]);
str = Math.ceil(Math.random() * 3) + "KG";
arr2.push(str);
_local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr2.push(str);
shuiguoArr.splice(_local5, 1);
var _local7 = Math.floor(Math.random() * shuiguoArr.length);
arr3.push(shuiguoArr[_local7]);
str = Math.ceil(Math.random() * 3) + "KG";
arr3.push(str);
_local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr3.push(str);
showMB(_local4, arr1, arr2, arr3);
}
function showMB(n, arr1, arr2, arr3) {
xx._visible = true;
mb_mc._visible = true;
mb_mc.gotoAndStop(n);
mb_mc.m1.aa.gotoAndStop(arr1[0]);
mb_mc.m1.tt.text = arr1[1];
mb_mc.m1.bb.gotoAndStop(arr1[2]);
mb_mc.m2.aa.gotoAndStop(arr2[0]);
mb_mc.m2.tt.text = arr2[1];
mb_mc.m2.bb.gotoAndStop(arr2[2]);
mb_mc.m3.aa.gotoAndStop(arr3[0]);
mb_mc.m3.tt.text = arr3[1];
mb_mc.m3.bb.gotoAndStop(arr3[2]);
mb_mc.m1.zl = arr1[0];
mb_mc.m1.kg = arr1[1];
mb_mc.m1.dz = arr1[2];
mb_mc.m2.zl = arr2[0];
mb_mc.m2.kg = arr2[1];
mb_mc.m2.dz = arr2[2];
mb_mc.m3.zl = arr3[0];
mb_mc.m3.kg = arr3[1];
mb_mc.m3.dz = arr3[2];
}
function xxGo(obj) {
if (this.xx.x1._currentframe == 1) {
this.xx.x1.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x2._currentframe == 1) {
this.xx.x2.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x3._currentframe == 1) {
this.aa.aa.gotoAndStop("shengqi");
this.xx.x3.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x4._currentframe == 1) {
this.aa.aa.gotoAndStop("fennu");
this.xx.x4.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x5._currentframe == 1) {
delete this.xx.onEnterFrame;
this.aa.aa.gotoAndStop("fennu");
this.xx.x5.gotoAndPlay(2);
this.mb_mc._visible = false;
return(undefined);
}
}
function shengqilikai() {
visAll();
_root.top.xxGo();
this.play();
_global.rowArr = new Array();
_global.fullArr = new Array();
_global.onlyArr = new Array();
var _local4 = SharedObject.getLocal();
_local4.data.rowArr = _global.rowArr;
_local4.data.fullArr = _global.fullArr;
_local4.data.onlyArr = _global.onlyArr;
}
function gaoxinglikai() {
visAll();
this.aa.aa.gotoAndStop("gaoxing");
this.play();
_global.rowArr.push(true);
if (this.xx.x1._currentframe == 1) {
_global.fullArr.push(true);
}
if (((((this.xx.x1._currentframe != 1) && (this.xx.x2._currentframe != 1)) && (this.xx.x3._currentframe != 1)) && (this.xx.x4._currentframe != 1)) && (this.xx.x5._currentframe == 1)) {
_global.onlyArr.push(true);
}
var _local4 = SharedObject.getLocal();
_local4.data.rowArr = _global.rowArr;
_local4.data.fullArr = _global.fullArr;
_local4.data.onlyArr = _global.onlyArr;
_root.trophy();
}
function geiqian() {
var _local3 = this._name;
_local3 = _local3.substr(2, 3);
_root["q" + _local3]._visible = true;
_root["q" + _local3].n = money;
_root["q" + _local3].gotoAndPlay(2);
}
function yanhuo(zl, kg, dz, jg) {
var _local2 = false;
var _local1 = 1;
while (_local1 <= 3) {
if ((((mb_mc["m" + _local1].zl == zl) && (mb_mc["m" + _local1].kg == kg)) && (mb_mc["m" + _local1].dz == dz)) && (mb_mc["m" + _local1]._visible)) {
mb_mc["m" + _local1]._visible = false;
money = money + jg;
_local2 = true;
}
_local1++;
}
if (((!mb_mc.m1._visible) && (!mb_mc.m2._visible)) && (!mb_mc.m3._visible)) {
xx._visible = false;
mb_mc._visible = false;
geiqian();
gaoxinglikai();
}
return(_local2);
}
function visAll() {
delete this.xx.onEnterFrame;
mb_mc.m1.zl = "";
mb_mc.m1.kg = "";
mb_mc.m1.dz = "";
mb_mc.m2.zl = "";
mb_mc.m2.kg = "";
mb_mc.m2.dz = "";
mb_mc.m3.zl = "";
mb_mc.m3.kg = "";
mb_mc.m3.dz = "";
}
stop();
this.aa.aa.gotoAndStop("weixiao");
var money = 0;
var cn = 1;
this.xx.onEnterFrame = function () {
if (!_global.pauseBool) {
cn++;
if (cn >= (200 - (_global.levelN * 10))) {
cn = 1;
xxGo(obj);
}
}
};
diancai();
Symbol 495 MovieClip Frame 52
this.aa.aa.gotoAndStop("chu");
Symbol 495 MovieClip Frame 81
stop();
Symbol 496 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 7
this.aa.aa.gotoAndStop("jin");
Symbol 496 MovieClip Frame 30
function diancai() {
var _local4 = 1;
if ((_global.levelN >= 3) && (_global.levelN <= 8)) {
_local4 = 2;
var _local3 = Math.ceil(Math.random() * (_global.levelN + 8));
if (_local3 > _global.levelN) {
_local4 = 1;
}
}
if (_global.levelN >= 9) {
_local4 = 3;
var _local3 = Math.ceil(Math.random() * 10);
if (_local3 <= 3) {
_local4 = 1;
}
if ((_local3 >= 4) && (_local3 <= 9)) {
_local4 = 2;
}
}
shuiguoArr = _root.getSG();
daiziArr = _root.getDZ();
arr1 = new Array();
arr2 = new Array();
arr3 = new Array();
var _local6 = Math.floor(Math.random() * shuiguoArr.length);
arr1.push(shuiguoArr[_local6]);
str = Math.ceil(Math.random() * 3) + "KG";
arr1.push(str);
var _local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr1.push(str);
shuiguoArr.splice(_local6, 1);
var _local5 = Math.floor(Math.random() * shuiguoArr.length);
arr2.push(shuiguoArr[_local5]);
str = Math.ceil(Math.random() * 3) + "KG";
arr2.push(str);
_local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr2.push(str);
shuiguoArr.splice(_local5, 1);
var _local7 = Math.floor(Math.random() * shuiguoArr.length);
arr3.push(shuiguoArr[_local7]);
str = Math.ceil(Math.random() * 3) + "KG";
arr3.push(str);
_local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr3.push(str);
showMB(_local4, arr1, arr2, arr3);
}
function showMB(n, arr1, arr2, arr3) {
xx._visible = true;
mb_mc._visible = true;
mb_mc.gotoAndStop(n);
mb_mc.m1.aa.gotoAndStop(arr1[0]);
mb_mc.m1.tt.text = arr1[1];
mb_mc.m1.bb.gotoAndStop(arr1[2]);
mb_mc.m2.aa.gotoAndStop(arr2[0]);
mb_mc.m2.tt.text = arr2[1];
mb_mc.m2.bb.gotoAndStop(arr2[2]);
mb_mc.m3.aa.gotoAndStop(arr3[0]);
mb_mc.m3.tt.text = arr3[1];
mb_mc.m3.bb.gotoAndStop(arr3[2]);
mb_mc.m1.zl = arr1[0];
mb_mc.m1.kg = arr1[1];
mb_mc.m1.dz = arr1[2];
mb_mc.m2.zl = arr2[0];
mb_mc.m2.kg = arr2[1];
mb_mc.m2.dz = arr2[2];
mb_mc.m3.zl = arr3[0];
mb_mc.m3.kg = arr3[1];
mb_mc.m3.dz = arr3[2];
}
function xxGo(obj) {
if (this.xx.x1._currentframe == 1) {
this.xx.x1.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x2._currentframe == 1) {
this.xx.x2.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x3._currentframe == 1) {
this.aa.aa.gotoAndStop("shengqi");
this.xx.x3.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x4._currentframe == 1) {
this.aa.aa.gotoAndStop("fennu");
this.xx.x4.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x5._currentframe == 1) {
delete this.xx.onEnterFrame;
this.aa.aa.gotoAndStop("fennu");
this.xx.x5.gotoAndPlay(2);
this.mb_mc._visible = false;
return(undefined);
}
}
function shengqilikai() {
visAll();
_root.top.xxGo();
this.play();
_global.rowArr = new Array();
_global.fullArr = new Array();
_global.onlyArr = new Array();
var _local4 = SharedObject.getLocal();
_local4.data.rowArr = _global.rowArr;
_local4.data.fullArr = _global.fullArr;
_local4.data.onlyArr = _global.onlyArr;
}
function gaoxinglikai() {
visAll();
this.aa.aa.gotoAndStop("gaoxing");
this.play();
_global.rowArr.push(true);
if (this.xx.x1._currentframe == 1) {
_global.fullArr.push(true);
}
if (((((this.xx.x1._currentframe != 1) && (this.xx.x2._currentframe != 1)) && (this.xx.x3._currentframe != 1)) && (this.xx.x4._currentframe != 1)) && (this.xx.x5._currentframe == 1)) {
_global.onlyArr.push(true);
}
var _local4 = SharedObject.getLocal();
_local4.data.rowArr = _global.rowArr;
_local4.data.fullArr = _global.fullArr;
_local4.data.onlyArr = _global.onlyArr;
_root.trophy();
}
function geiqian() {
var _local3 = this._name;
_local3 = _local3.substr(2, 3);
_root["q" + _local3]._visible = true;
_root["q" + _local3].n = money;
_root["q" + _local3].gotoAndPlay(2);
}
function yanhuo(zl, kg, dz, jg) {
var _local2 = false;
var _local1 = 1;
while (_local1 <= 3) {
if ((((mb_mc["m" + _local1].zl == zl) && (mb_mc["m" + _local1].kg == kg)) && (mb_mc["m" + _local1].dz == dz)) && (mb_mc["m" + _local1]._visible)) {
mb_mc["m" + _local1]._visible = false;
money = money + jg;
_local2 = true;
}
_local1++;
}
if (((!mb_mc.m1._visible) && (!mb_mc.m2._visible)) && (!mb_mc.m3._visible)) {
xx._visible = false;
mb_mc._visible = false;
geiqian();
gaoxinglikai();
}
return(_local2);
}
function visAll() {
delete this.xx.onEnterFrame;
mb_mc.m1.zl = "";
mb_mc.m1.kg = "";
mb_mc.m1.dz = "";
mb_mc.m2.zl = "";
mb_mc.m2.kg = "";
mb_mc.m2.dz = "";
mb_mc.m3.zl = "";
mb_mc.m3.kg = "";
mb_mc.m3.dz = "";
}
stop();
this.aa.aa.gotoAndStop("weixiao");
var money = 0;
var cn = 1;
this.xx.onEnterFrame = function () {
if (!_global.pauseBool) {
cn++;
if (cn >= (200 - (_global.levelN * 10))) {
cn = 1;
xxGo(obj);
}
}
};
diancai();
Symbol 496 MovieClip Frame 52
this.aa.aa.gotoAndStop("chu");
Symbol 496 MovieClip Frame 81
stop();
Symbol 497 MovieClip Frame 1
stop();
Symbol 497 MovieClip Frame 7
this.aa.aa.gotoAndStop("jin");
Symbol 497 MovieClip Frame 30
function diancai() {
var _local4 = 1;
if ((_global.levelN >= 3) && (_global.levelN <= 8)) {
_local4 = 2;
var _local3 = Math.ceil(Math.random() * (_global.levelN + 8));
if (_local3 > _global.levelN) {
_local4 = 1;
}
}
if (_global.levelN >= 9) {
_local4 = 3;
var _local3 = Math.ceil(Math.random() * 10);
if (_local3 <= 3) {
_local4 = 1;
}
if ((_local3 >= 4) && (_local3 <= 9)) {
_local4 = 2;
}
}
shuiguoArr = _root.getSG();
daiziArr = _root.getDZ();
arr1 = new Array();
arr2 = new Array();
arr3 = new Array();
var _local6 = Math.floor(Math.random() * shuiguoArr.length);
arr1.push(shuiguoArr[_local6]);
str = Math.ceil(Math.random() * 3) + "KG";
arr1.push(str);
var _local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr1.push(str);
shuiguoArr.splice(_local6, 1);
var _local5 = Math.floor(Math.random() * shuiguoArr.length);
arr2.push(shuiguoArr[_local5]);
str = Math.ceil(Math.random() * 3) + "KG";
arr2.push(str);
_local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr2.push(str);
shuiguoArr.splice(_local5, 1);
var _local7 = Math.floor(Math.random() * shuiguoArr.length);
arr3.push(shuiguoArr[_local7]);
str = Math.ceil(Math.random() * 3) + "KG";
arr3.push(str);
_local3 = Math.ceil(Math.random() * daiziArr.length);
if (_local3 == 1) {
str = "zongdai";
}
if (_local3 == 2) {
str = "baidai";
}
if (_local3 == 3) {
str = "landai";
}
arr3.push(str);
showMB(_local4, arr1, arr2, arr3);
}
function showMB(n, arr1, arr2, arr3) {
if (_global.jiaoxue == false) {
delete this.xx.onEnterFrame;
_root.ys_mc.gotoAndStop(2);
_root.jt_mc._visible = true;
arr1[1] = "2KG";
}
xx._visible = true;
mb_mc._visible = true;
mb_mc.gotoAndStop(n);
mb_mc.m1.aa.gotoAndStop(arr1[0]);
mb_mc.m1.tt.text = arr1[1];
mb_mc.m1.bb.gotoAndStop(arr1[2]);
mb_mc.m2.aa.gotoAndStop(arr2[0]);
mb_mc.m2.tt.text = arr2[1];
mb_mc.m2.bb.gotoAndStop(arr2[2]);
mb_mc.m3.aa.gotoAndStop(arr3[0]);
mb_mc.m3.tt.text = arr3[1];
mb_mc.m3.bb.gotoAndStop(arr3[2]);
mb_mc.m1.zl = arr1[0];
mb_mc.m1.kg = arr1[1];
mb_mc.m1.dz = arr1[2];
mb_mc.m2.zl = arr2[0];
mb_mc.m2.kg = arr2[1];
mb_mc.m2.dz = arr2[2];
mb_mc.m3.zl = arr3[0];
mb_mc.m3.kg = arr3[1];
mb_mc.m3.dz = arr3[2];
}
function xxGo(obj) {
if (this.xx.x1._currentframe == 1) {
this.xx.x1.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x2._currentframe == 1) {
this.xx.x2.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x3._currentframe == 1) {
this.aa.aa.gotoAndStop("shengqi");
this.xx.x3.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x4._currentframe == 1) {
this.aa.aa.gotoAndStop("fennu");
this.xx.x4.gotoAndPlay(2);
return(undefined);
}
if (this.xx.x5._currentframe == 1) {
delete this.xx.onEnterFrame;
this.aa.aa.gotoAndStop("fennu");
this.xx.x5.gotoAndPlay(2);
this.mb_mc._visible = false;
return(undefined);
}
}
function shengqilikai() {
visAll();
_root.top.xxGo();
this.play();
_global.rowArr = new Array();
_global.fullArr = new Array();
_global.onlyArr = new Array();
var _local4 = SharedObject.getLocal();
_local4.data.rowArr = _global.rowArr;
_local4.data.fullArr = _global.fullArr;
_local4.data.onlyArr = _global.onlyArr;
}
function gaoxinglikai() {
visAll();
this.aa.aa.gotoAndStop("gaoxing");
this.play();
if (_global.jiaoxue) {
_global.rowArr.push(true);
if (this.xx.x1._currentframe == 1) {
_global.fullArr.push(true);
}
if (((((this.xx.x1._currentframe != 1) && (this.xx.x2._currentframe != 1)) && (this.xx.x3._currentframe != 1)) && (this.xx.x4._currentframe != 1)) && (this.xx.x5._currentframe == 1)) {
_global.onlyArr.push(true);
}
var _local4 = SharedObject.getLocal();
_local4.data.rowArr = _global.rowArr;
_local4.data.fullArr = _global.fullArr;
_local4.data.onlyArr = _global.onlyArr;
_root.trophy();
}
}
function geiqian() {
var _local3 = this._name;
_local3 = _local3.substr(2, 3);
_root["q" + _local3]._visible = true;
_root["q" + _local3].n = money;
_root["q" + _local3].gotoAndPlay(2);
}
function yanhuo(zl, kg, dz, jg) {
var _local2 = false;
var _local1 = 1;
while (_local1 <= 3) {
if ((((mb_mc["m" + _local1].zl == zl) && (mb_mc["m" + _local1].kg == kg)) && (mb_mc["m" + _local1].dz == dz)) && (mb_mc["m" + _local1]._visible)) {
mb_mc["m" + _local1]._visible = false;
money = money + jg;
_local2 = true;
}
_local1++;
}
if (((!mb_mc.m1._visible) && (!mb_mc.m2._visible)) && (!mb_mc.m3._visible)) {
xx._visible = false;
mb_mc._visible = false;
geiqian();
gaoxinglikai();
}
return(_local2);
}
function visAll() {
delete this.xx.onEnterFrame;
mb_mc.m1.zl = "";
mb_mc.m1.kg = "";
mb_mc.m1.dz = "";
mb_mc.m2.zl = "";
mb_mc.m2.kg = "";
mb_mc.m2.dz = "";
mb_mc.m3.zl = "";
mb_mc.m3.kg = "";
mb_mc.m3.dz = "";
}
stop();
this.aa.aa.gotoAndStop("weixiao");
var money = 0;
var cn = 1;
this.xx.onEnterFrame = function () {
if (!_global.pauseBool) {
cn++;
if (cn >= (200 - (_global.levelN * 10))) {
cn = 1;
xxGo(obj);
}
}
};
diancai();
Symbol 497 MovieClip Frame 52
this.aa.aa.gotoAndStop("chu");
Symbol 497 MovieClip Frame 81
stop();
Symbol 572 MovieClip Frame 1
stop();
Symbol 577 MovieClip Frame 25
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 1
function visAA(str) {
var _local2 = 1;
while (_local2 <= 3) {
if (this["a" + _local2]._visible == false) {
this["a" + _local2]._visible = true;
this["a" + _local2].gotoAndStop(str);
this["a" + _local2].zl = str;
countKG();
return(undefined);
}
_local2++;
}
}
function countKG() {
var _local3 = 0;
var _local2 = 1;
while (_local2 <= 3) {
if (this["a" + _local2]._visible == true) {
_local3++;
}
_local2++;
}
this.tt.text = _local3 + "KG";
if (_local3 == 0) {
this.tt.text = "";
visAll();
}
return(_local3);
}
function visAll() {
this.tt.text = "";
this.zl = "";
this.a1.zl = "";
this.a2.zl = "";
this.a3.zl = "";
this.a1._visible = false;
this.a2._visible = false;
this.a3._visible = false;
}
stop();
this.zl = "";
visAll();
Symbol 633 MovieClip Frame 1
stop();
Symbol 655 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 25
stop();
this._visible = false;
this.tt.tt.text = "";
Symbol 661 MovieClip Frame 2
var n = Math.ceil(Math.random() * (_global.levelN * 11));
this.gotoAndPlay(n);
Symbol 661 MovieClip Frame 152
_root.yunxingduilie();
Symbol 669 MovieClip Frame 1
function showZL(str, daizi, kg) {
this.zl = str;
this.kg = kg;
this.daizi = daizi;
this._visible = true;
this.mb_mc.aa.gotoAndStop(str);
this.aa.bb.gotoAndStop(str);
this.mb_mc.tt.text = kg;
var _local5 = _root.jiagebiao();
var _local3 = 0;
while (_local3 < _local5.length) {
if (_local5[_local3][0] == str) {
var _local4 = int(kg.substr(0, 1));
_local4 = (_local5[_local3][1] * _local4) + 2;
this.jg = _local4;
}
_local3++;
}
}
function showMB() {
this.mb_mc._visible = true;
}
function visMB() {
this.mb_mc._visible = false;
}
function visAll() {
this.jg = 0;
this.zl = "";
this.kg = "";
this.mb_mc._visible = false;
this._visible = false;
}
this._visible = false;
this.mb_mc._visible = false;
this.jg = 0;
Symbol 680 MovieClip Frame 1
function showZL(str, daizi, kg) {
this.zl = str;
this.kg = kg;
this.daizi = daizi;
this._visible = true;
this.mb_mc.aa.gotoAndStop(str);
this.aa.bb.gotoAndStop(str);
this.mb_mc.tt.text = kg;
var _local5 = _root.jiagebiao();
var _local3 = 0;
while (_local3 < _local5.length) {
if (_local5[_local3][0] == str) {
var _local4 = int(kg.substr(0, 1));
_local4 = (_local5[_local3][1] * _local4) + 2;
this.jg = _local4;
}
_local3++;
}
}
function showMB() {
this.mb_mc._visible = true;
}
function visMB() {
this.mb_mc._visible = false;
}
function visAll() {
this.jg = 0;
this.zl = "";
this.kg = "";
this.mb_mc._visible = false;
this._visible = false;
}
this._visible = false;
this.mb_mc._visible = false;
this.jg = 0;
Symbol 687 MovieClip Frame 1
this.mb._visible = false;
Symbol 691 MovieClip Frame 1
function showZL(str, daizi, kg) {
this.zl = str;
this.kg = kg;
this.daizi = daizi;
this._visible = true;
this.mb_mc.aa.gotoAndStop(str);
this.aa.bb.gotoAndStop(str);
this.mb_mc.tt.text = kg;
var _local5 = _root.jiagebiao();
var _local3 = 0;
while (_local3 < _local5.length) {
if (_local5[_local3][0] == str) {
var _local4 = int(kg.substr(0, 1));
_local4 = (_local5[_local3][1] * _local4) + 2;
this.jg = _local4;
}
_local3++;
}
}
function showMB() {
this.mb_mc._visible = true;
}
function visMB() {
this.mb_mc._visible = false;
}
function visAll() {
this.jg = 0;
this.zl = "";
this.kg = "";
this.mb_mc._visible = false;
this._visible = false;
}
this._visible = false;
this.mb_mc._visible = false;
this.xt = this._x;
this.yt = this._y;
this.jg = 0;
Symbol 692 MovieClip Frame 1
stop();
this.xt = this._x;
this.yt = this._y;
Symbol 692 MovieClip Frame 2
function showZL(str, daizi, kg) {
this.dd.zl = str;
this.dd.kg = kg;
this.dd.daizi = daizi;
this.dd._visible = true;
this.dd.mb_mc.aa.gotoAndStop(str);
this.dd.aa.bb.gotoAndStop(str);
this.dd.mb_mc.tt.text = kg;
var _local5 = _root.jiagebiao();
var _local3 = 0;
while (_local3 < _local5.length) {
if (_local5[_local3][0] == str) {
var _local4 = int(kg.substr(0, 1));
_local4 = (_local5[_local3][1] * _local4) + 2;
this.dd.jg = _local4;
}
_local3++;
}
}
Symbol 692 MovieClip Frame 3
function showZL(str, daizi, kg) {
this.dd.zl = str;
this.dd.kg = kg;
this.dd.daizi = daizi;
this.dd._visible = true;
this.dd.mb_mc.aa.gotoAndStop(str);
this.dd.aa.bb.gotoAndStop(str);
this.dd.mb_mc.tt.text = kg;
var _local5 = _root.jiagebiao();
var _local3 = 0;
while (_local3 < _local5.length) {
if (_local5[_local3][0] == str) {
var _local4 = int(kg.substr(0, 1));
_local4 = (_local5[_local3][1] * _local4) + 2;
this.dd.jg = _local4;
}
_local3++;
}
}
stop();
Symbol 696 MovieClip Frame 1
stop();
Symbol 705 MovieClip Frame 44
stop();
Symbol 706 MovieClip Frame 1
stop();
Symbol 716 MovieClip Frame 1
stop();
Symbol 721 MovieClip Frame 1
stop();
Symbol 726 MovieClip Frame 1
stop();
Symbol 728 MovieClip Frame 1
function addMM(n) {
_global.money = _global.money + n;
tt.text = _global.money;
jindu_mc._x = chushiX + ((_global.money / _global.jp) * aa._width);
if (jindu_mc._x >= (aa._x + aa._width)) {
jindu_mc._x = aa._x + aa._width;
}
if (_global.money >= _global.tp) {
t1.aa.gotoAndStop(2);
}
if (_global.money >= _global.yp) {
t2.aa.gotoAndStop(2);
}
if (_global.money >= _global.jp) {
t3.aa.gotoAndStop(2);
_root.top.sjd();
}
return(undefined);
}
function reduceMM(n) {
_global.money = _global.money - n;
tt.text = _global.money;
jindu_mc._x = chushiX + ((_global.money / _global.jp) * aa._width);
if (jindu_mc._x >= (aa._x + aa._width)) {
jindu_mc._x = aa._x + aa._width;
}
if (_global.money < _global.tp) {
t1.aa.gotoAndStop(1);
}
if (_global.money < _global.yp) {
t2.aa.gotoAndStop(1);
}
if (_global.money < _global.jp) {
t3.aa.gotoAndStop(1);
}
return(undefined);
}
stop();
var chushiX = aa._x;
t1.tt.text = _global.tp;
t2.tt.text = _global.yp;
t3.tt.text = _global.jp;
t1._x = chushiX + ((_global.tp / _global.jp) * aa._width);
t2._x = chushiX + ((_global.yp / _global.jp) * aa._width);
Symbol 739 MovieClip Frame 4320
stop();
Symbol 740 MovieClip Frame 4320
stop();
Symbol 746 MovieClip Frame 1
stop();
Symbol 746 MovieClip Frame 4320
stop();
_root.top.sjd();
Symbol 747 MovieClip Frame 1
function addMM(n) {
if (!_global.sjd) {
mm_mc.addMM(n);
}
}
function reduceMM(n) {
if (!_global.sjd) {
mm_mc.reduceMM(n);
}
}
function xxGo() {
_global.life--;
var _local6 = SharedObject.getLocal();
_local6.data.life = _global.life;
if (_global.life <= 0) {
stopAllSounds();
var _local5 = new Sound();
_local5.attachSound("\u6E38\u620F\u5931\u8D25\u97F3\u6548.mp3");
_local5.start();
_local6 = SharedObject.getLocal();
_local6.clear();
soObj();
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("failed");
}
var _local4 = 1;
while (_local4 <= 5) {
if (this["xx" + _local4]._currentframe == 1) {
this["xx" + _local4].gotoAndStop(2);
return(undefined);
}
if (this["xx" + _local4]._currentframe == 2) {
this["xx" + _local4].gotoAndStop(3);
return(undefined);
}
_local4++;
}
}
function xxGoD() {
var _local2 = 1;
while (_local2 <= 5) {
if (this["xx" + _local2]._currentframe == 1) {
this["xx" + _local2].gotoAndStop(2);
return(undefined);
}
if (this["xx" + _local2]._currentframe == 2) {
this["xx" + _local2].gotoAndStop(3);
return(undefined);
}
_local2++;
}
}
function sjd() {
_global.sjd = true;
_root.pauseFun();
_root.deleteEnter();
stopAllSounds();
var _local4 = new Sound();
if (_global.money < _global.tp) {
_local4.attachSound("\u6E38\u620F\u5931\u8D25\u97F3\u6548.mp3");
_local4.start();
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("failed");
return(undefined);
}
var _local3 = SharedObject.getLocal();
n = _local3.data.levelN;
if (n >= 9) {
n = 9;
}
if (n == _global.levelN) {
if (_global.money >= _global.tp) {
_global.pp = "tp";
}
if (_global.money >= _global.yp) {
_global.pp = "yp";
}
if (_global.money >= _global.jp) {
_global.pp = "jp";
}
_local3.data.ppArr[_global.levelN] = _global.pp;
_global.levelN++;
_local3.data.levelN = _global.levelN;
} else {
if (_global.levelN >= 9) {
_global.levelN = 9;
}
str = _local3.data.ppArr[_global.levelN];
if (str == "tp") {
str = _global.pp;
}
if ((str == "yp") && (_global.money >= _global.jp)) {
str = "jp";
}
if (str == "jp") {
str = "jp";
}
_global.pp = str;
_local3.data.ppArr[_global.levelN] = _global.pp;
}
_local4.attachSound("\u6BCF\u5173\u8FC7\u5173\u754C\u9762\u97F3\u6548.mp3");
_local4.start();
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("levelClear");
return(undefined);
}
function soObj() {
var _local2 = SharedObject.getLocal();
if (_local2.data.levelN == undefined) {
_local2.data.levelN = 1;
}
if (_local2.data.ppArr == undefined) {
_local2.data.ppArr = new Array();
}
if (_local2.data.life == undefined) {
_local2.data.life = 10;
}
if (_local2.data.trophyArr == undefined) {
_local2.data.trophyArr = new Array();
var _local3 = 0;
while (_local3 <= 12) {
_local2.data.trophyArr.push(false);
_local3++;
}
}
if (_local2.data.rowArr == undefined) {
_local2.data.rowArr = new Array();
}
if (_local2.data.fullArr == undefined) {
_local2.data.fullArr = new Array();
}
if (_local2.data.onlyArr == undefined) {
_local2.data.onlyArr = new Array();
}
if (_local2.data.jiaoxue == undefined) {
_local2.data.jiaoxue = false;
}
_global.levelN = _local2.data.levelN;
_global.ppArr = _local2.data.ppArr;
_global.life = _local2.data.life;
_global.trophyArr = _local2.data.trophyArr;
_global.rowArr = _local2.data.rowArr;
_global.fullArr = _local2.data.fullArr;
_global.onlyArr = _local2.data.onlyArr;
_global.jiaoxue = _local2.data.jiaoxue;
}
stop();
sound_mc.onRelease = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
var _local2 = new Sound();
_local2.setVolume(0);
} else {
this.gotoAndStop(1);
var _local2 = new Sound();
_local2.setVolume(100);
}
};
pause_btn.onRelease = function () {
if (!_global.pauseBool) {
var _local3 = new Sound();
_local3.setVolume(0);
_root.pauseFun();
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("pause");
}
};
var i = _global.life;
while (i < 10) {
xxGoD();
i++;
}
Symbol 762 MovieClip Frame 1
stop();
Symbol 773 MovieClip Frame 1
stop();
this.n = 0;
Symbol 773 MovieClip Frame 23
var obj = this;
this.qq.onRelease = function () {
obj.gotoAndPlay("piao");
};
Symbol 773 MovieClip Frame 33
_root.top.addMM(this.n);
this.n = 0;
Symbol 773 MovieClip Frame 63
stop();
Symbol 777 MovieClip Frame 1
stop();
this.n = 0;
Symbol 777 MovieClip Frame 23
var obj = this;
Symbol 777 MovieClip Frame 33
_root.top.addMM(this.n);
this.n = 0;
Symbol 777 MovieClip Frame 63
stop();
Symbol 780 MovieClip Frame 1
stop();
this.n = 0;
Symbol 780 MovieClip Frame 23
var obj = this;
Symbol 780 MovieClip Frame 33
_root.top.addMM(this.n);
this.n = 0;
Symbol 780 MovieClip Frame 63
stop();
Symbol 785 MovieClip Frame 1
stop();
this.n = 0;
Symbol 785 MovieClip Frame 23
var obj = this;
if ((_global.jiaoxue == false) && (_root.ys_mc._currentframe == 7)) {
_global.pauseBool = false;
var so = SharedObject.getLocal();
so.data.jiaoxue = true;
_global.jiaoxue = true;
}
Symbol 785 MovieClip Frame 34
_root.top.addMM(this.n);
this.n = 0;
Symbol 785 MovieClip Frame 64
stop();
_root.ys_mc._visible = false;
Symbol 788 MovieClip Frame 1
stop();
this.n = 0;
Symbol 788 MovieClip Frame 23
var obj = this;
this.qq.onRelease = function () {
obj.gotoAndPlay("piao");
};
Symbol 788 MovieClip Frame 33
_root.top.addMM(this.n);
this.n = 0;
Symbol 788 MovieClip Frame 63
stop();
Symbol 818 MovieClip Frame 1
t1.text = _global.tp;
t2.text = _global.yp;
t3.text = _global.jp;
ok_btn.onRelease = function () {
_root.mb_mc._visible = false;
_root.go();
};
Symbol 824 MovieClip Frame 1
t1.text = _global.tp;
t2.text = _global.yp;
t3.text = _global.jp;
ok_btn.onRelease = function () {
_root.mb_mc._visible = false;
_root.go();
};
Symbol 825 MovieClip Frame 16
stop();
Symbol 833 MovieClip Frame 1
stop();
Symbol 842 MovieClip Frame 1
stop();
ok_btn.onRelease = function () {
_root.mb_mc._visible = false;
_root.addWP();
};
Symbol 842 MovieClip Frame 2
stop();
ok_btn.onRelease = function () {
_root.mb_mc._visible = false;
_root.addWP();
};
Symbol 842 MovieClip Frame 3
stop();
ok_btn.onRelease = function () {
_root.mb_mc._visible = false;
_root.addWP();
};
Symbol 842 MovieClip Frame 4
stop();
ok_btn.onRelease = function () {
_root.mb_mc._visible = false;
_root.addWP();
};
Symbol 842 MovieClip Frame 5
stop();
ok_btn.onRelease = function () {
_root.mb_mc._visible = false;
_root.addWP();
};
Symbol 842 MovieClip Frame 6
stop();
ok_btn.onRelease = function () {
_root.mb_mc._visible = false;
_root.addWP();
};
Symbol 842 MovieClip Frame 7
stop();
ok_btn.onRelease = function () {
_root.mb_mc._visible = false;
_root.addWP();
};
Symbol 842 MovieClip Frame 8
stop();
ok_btn.onRelease = function () {
_root.mb_mc._visible = false;
_root.addWP();
};
Symbol 842 MovieClip Frame 9
stop();
ok_btn.onRelease = function () {
_root.mb_mc._visible = false;
_root.addWP();
};
Symbol 862 MovieClip Frame 1
stop();
Symbol 863 MovieClip Frame 78
stop();
if (((this.aa._currentframe == 1) || (this.aa._currentframe == 4)) || (this.aa._currentframe == 9)) {
if (this.aa._currentframe == 9) {
if (_global.levelN > 9) {
var ss = new Sound();
ss.attachSound("\u6E38\u620F\u80DC\u5229\u97F3\u6548.mp3");
ss.start();
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("success");
return(undefined);
}
}
_root.gotoAndStop("\u5730\u56FE");
} else {
_root.continueFun();
}
Symbol 864 MovieClip Frame 1
resume_btn.onRelease = function () {
var _local3 = new Sound();
_local3.setVolume(100);
this._parent._visible = false;
_root.continueFun();
};
levelMap_btn.onRelease = function () {
stopAllSounds();
_root.gotoAndStop("\u5730\u56FE");
};
Symbol 864 MovieClip Frame 2
stop();
tryAgain_btn.onRelease = function () {
_root.gotoAndStop("\u5730\u56FE");
};
Symbol 864 MovieClip Frame 3
stop();
levelMap_btn.onRelease = function () {
_root.gotoAndStop("\u5730\u56FE");
};
Symbol 864 MovieClip Frame 4
stop();
Symbol 864 MovieClip Frame 5
stop();
pp_mc.gotoAndStop(_global.pp);
ok_btn.onRelease = function () {
if ((_global.pp == "yp") && (_global.trophyArr[1] == false)) {
_global.trophyArr[1] = true;
var _local7 = SharedObject.getLocal();
_local7.data.trophyArr = _global.trophyArr;
_root.mb_mc.gotoAndStop("trophy");
_root.mb_mc.aa.aa.gotoAndStop(1);
return(undefined);
}
if ((_global.pp == "jp") && (_global.trophyArr[4] == false)) {
_global.trophyArr[4] = true;
var _local7 = SharedObject.getLocal();
_local7.data.trophyArr = _global.trophyArr;
_root.mb_mc.gotoAndStop("trophy");
_root.mb_mc.aa.aa.gotoAndStop(4);
return(undefined);
}
var _local7 = SharedObject.getLocal();
var _local4 = _local7.data.ppArr;
var _local5 = 0;
var _local3 = 1;
while (_local3 < _local4.length) {
if (_local4[_local3] == "jp") {
_local5++;
}
_local3++;
}
if ((_local5 >= 9) && (_global.trophyArr[9] == false)) {
_global.trophyArr[9] = true;
_local7 = SharedObject.getLocal();
_local7.data.trophyArr = _global.trophyArr;
_root.mb_mc.gotoAndStop("trophy");
_root.mb_mc.aa.aa.gotoAndStop(9);
return(undefined);
}
if (_global.levelN > 9) {
var _local6 = new Sound();
_local6.attachSound("\u6E38\u620F\u80DC\u5229\u97F3\u6548.mp3");
_local6.start();
_root.mb_mc._visible = true;
_root.mb_mc.gotoAndStop("success");
return(undefined);
}
_root.gotoAndStop("\u5730\u56FE");
};
Symbol 864 MovieClip Frame 6
stop();
aa.gotoAndStop(_global.levelN);
Symbol 864 MovieClip Frame 7
stop();