Frame 1
ditu1 = "xxxooooooxxxxxxoxxxxoxxxxxxooooooxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
ditu2 = "xxxooooooxxxxxooxoxxooxxxxxooooooxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
ditu3 = "xxooooooooxxxxooxoxoooxxxxooooooooxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
ditu4 = "xxxoooooooxxxxxoxxoxxoxxxxxoooooooxxxxxoxxoxxoxxxxxoooooooxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
ditu5 = "xxxoooooooxxxxooxxoxxooxxxoooooooooxxxooxxoxxooxxxxoooooooxxxxxoxoxoxoxxxxxoxxxxxoxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
ditu6 = "xxooooooooxxxxoooxooxooxxxoooooooooxxxooxxoxxooxxxxoooooooxxooooxoxoxoooxxxoxxxxxoxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
ditu7 = "ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
Instance of Symbol 8 MovieClip "Code_mc" in Frame 1
onClipEvent (enterFrame) {
TotalKB = _root.getBytesTotal() / 1000;
LoadedKB = _root.getBytesLoaded() / 1000;
_root.Size_txt.text = ((int(LoadedKB) + "KB/") + int(TotalKB)) + "KB";
LoadedPercent = int((LoadedKB / TotalKB) * 100);
_root.Percent_txt.text = LoadedPercent + "%";
_root.Bar_mc._yscale = LoadedPercent;
DLRate = (_root.getBytesLoaded() / (getTimer() / 1000)) / 1000;
_root.Rate_txt.text = (int(DLRate * 100) / 100) + "KB/s";
SecondsLeft = (TotalKB - LoadedKB) / DLRate;
Minutes = Math.floor(SecondsLeft / 60);
if (Number(Minutes) < 10) {
Minutes = "0" + Minutes;
}
Seconds = int(SecondsLeft - (Minutes * 60));
if (Number(Seconds) < 10) {
Seconds = "0" + Seconds;
}
_root.TimeLeft_txt.text = (Minutes + " : ") + Seconds;
}
onClipEvent (load) {
_root.Percent_txt.text = "0%";
_root.Bar_mc._yscale = 0;
}
Frame 2
if (Number(Code_mc.LoadedPercent) == 100) {
_root.gotoAndStop(3);
} else {
_root.gotoAndPlay(1);
}
Frame 3
function zhuanMain() {
_root.gotoAndStop("main");
}
function shchGuan() {
var _local1 = _root;
if (_local1.guan == 1) {
} else if (_local1.guan == 2) {
} else if (_local1.guan == 3) {
} else if (_local1.guan == 4) {
} else if (_local1.guan == 5) {
} else if (_local1.guan == 6) {
} else if (_local1.guan == 7) {
}
}
function SHC_scence() {
var _local1 = _root;
trace("SHC_scence===================");
var _local3;
var _local2;
var temp;
_local1.x0 = (11 * _local1.sg_banjin) + _local1.qsd_x;
if (_roo.guan < 3) {
_local1.bb_shoot3._x = _local1.x0;
_local1.bb_shoot3_jiao1._x = _local1.x0;
}
_local3 = 1;
while (_local3 <= 11) {
_local2 = 1;
while (_local2 <= 12) {
if (_local3 == 1) {
temp = _local2;
} else {
temp = ((_local3 - 1) * 12) + _local2;
}
strtemp = _local1["ditu" + _local1.guan];
if (strtemp.charAt(temp - 1) eq "o") {
_local1.random_SHC_sg();
if ((_local3 == 1) and (_local2 == 1)) {
_local1[_local1.sg_BL_mz]._x = _local1.qsd_x + _local1.sg_banjin;
_local1[_local1.sg_BL_mz]._y = _local1.qsd_y + _local1.sg_banjin;
} else if ((_local2 == 1) and (_local3 > 1)) {
_local1[_local1.sg_BL_mz]._x = _local1.qsd_x + _local1.sg_banjin;
_local1[_local1.sg_BL_mz]._y = _local1.qsd_y + (_local1.sg_banjin * (1 + (2 * (_local3 - 1))));
} else if ((_local3 == 1) and (_local2 > 1)) {
_local1[_local1.sg_BL_mz]._x = _local1.qsd_x + (_local1.sg_banjin * (1 + (2 * (_local2 - 1))));
_local1[_local1.sg_BL_mz]._y = _local1.qsd_y + _local1.sg_banjin;
} else {
_local1[_local1.sg_BL_mz]._x = _local1.qsd_x + (_local1.sg_banjin * (1 + (2 * (_local2 - 1))));
_local1[_local1.sg_BL_mz]._y = _local1.qsd_y + (_local1.sg_banjin * (1 + (2 * (_local3 - 1))));
}
trace("y= " + _local1[_local1.sg_BL_mz]._y);
}
_local2++;
}
_local3++;
}
_local1.sg_zhuangtai = 0;
}
function random_SHC_sg() {
var _local1 = _root;
var _local2;
_local2 = Math.floor(Math.random() * (_local1.sg_lx - 1)) + 1;
_local1.sg_num = _local1.sg_num + 1;
duplicateMovieClip ("_root.shuiguo", "shuiguoFZ" + _local1.sg_num, _local1.ceng_QS + _local1.sg_num);
_local1.sg_BL_mz = "shuiguoFZ" + _local1.sg_num;
_local1["shuiguoFZ" + _local1.sg_num].yanshe = _local2;
_local1["shuiguoFZ" + _local1.sg_num].shiyong = 0;
_local1["shuiguoFZ" + _local1.sg_num].gotoAndStop("sg" + _local2);
_local1.sg_cur_num = _local1.sg_cur_num + 1;
_local1["sg_blname" + (_local1.sg_cur_num - 1)] = "shuiguoFZ" + _local1.sg_num;
trace("sgname= shuiguoFZ" + _local1.sg_num);
switch (_local2) {
case 1 :
default :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
}
}
function select_color() {
var _local3 = _root;
var _local2;
var color_num;
var _local1;
trace("select_color=========");
_local1 = Math.floor(Math.random() * (_local3.sg_cur_num - 1));
if (_local1 == 0) {
} else {
_local1 = _local1 + 1;
}
trace("no=" + _local1);
_local2 = _local3[_local3["sg_blname" + _local1]].yanshe;
trace("mycolor=" + _local2);
return(_local2);
}
function random_SHC1_sg(mycolor) {
var _local1 = _root;
var _local2 = mycolor;
trace("random_SHC1_sg========");
trace("mycolor=" + _local2);
_local1.sg_num = _local1.sg_num + 1;
duplicateMovieClip ("_root.shuiguo", "shuiguoFZ" + _local1.sg_num, _local1.ceng_QS + _local1.sg_num);
_local1.sg1_BL_mz = "shuiguoFZ" + _local1.sg_num;
_local1["shuiguoFZ" + _local1.sg_num].yanshe = _local2;
_local1["shuiguoFZ" + _local1.sg_num].shiyong = 0;
_local1["shuiguoFZ" + _local1.sg_num].gotoAndStop("sg" + _local2);
_local1.sg_cur_num = _local1.sg_cur_num + 1;
_local1["sg_blname" + (_local1.sg_cur_num - 1)] = "shuiguoFZ" + _local1.sg_num;
switch (_local2) {
case 1 :
default :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
}
}
function LtoG() {
var _local1 = _root;
var gl;
var hd;
var sp;
trace("LtoG=================");
aobj.x = _local1.bb_shoot3.sg._x;
aobj.y = _local1.bb_shoot3.sg._y;
trace("111x=" + aobj.x);
trace("111y=" + aobj.y);
_local1.bb_shoot3.localToGlobal(aobj);
_local1.xx = aobj.x;
_local1.yy = aobj.y;
trace("111_root.xx=" + _local1.xx);
trace("111_root.yy=" + _local1.yy);
}
function del_sg() {
var _local1 = _root;
var _local2;
var _local3;
trace("del_sg---------------");
_local1.tz_wz();
_local2 = 1;
while (_local2 <= _local1.sg_lx) {
trace("i=" + _local2);
trace(_local1["sg_delnum" + _local2]);
if (_local1["sg_delnum" + _local2] >= 3) {
_local1.midiplay(4);
_local3 = 1;
while (_local3 <= _local1["sg_delnum" + _local2]) {
trace("del_sg======================");
trace(_local1[(("sg_del" + _local2) + "YS") + _local3]);
_local1.sg_num = _local1.sg_num + 1;
duplicateMovieClip ("_root.sg_kuo_ding", "sg_kuo_dingFZ" + _local1.sg_num, _local1.ceng_QS + _local1.sg_num);
_local1["sg_kuo_dingFZ" + _local1.sg_num]._x = _local1[_local1[(("sg_del" + _local2) + "YS") + _local3]]._x;
_local1["sg_kuo_dingFZ" + _local1.sg_num]._y = _local1[_local1[(("sg_del" + _local2) + "YS") + _local3]]._y;
_local1["sg_kuo_dingFZ" + _local1.sg_num].sg.gotoAndStop("sg" + _local1[_local1[(("sg_del" + _local2) + "YS") + _local3]].yanshe);
_local1.sz_jian(_local1[(("sg_del" + _local2) + "YS") + _local3]);
removeMovieClip(_local1[_local1[(("sg_del" + _local2) + "YS") + _local3]]);
_local1.score = _local1.score + _local1.fen_duan;
_local3++;
}
}
_local2++;
}
_local2 = 1;
while (_local2 <= _local1.sg_lx) {
_local1["sg_delnum" + _local2] = 0;
_local2++;
}
}
function finish_pop() {
var _local1 = _root;
_local1.sg_mv_kaishi = 0;
_local1.sq_hitPD_bz = 0;
_local1.sg_zhuangtai = 0;
_local1.sg_fashesz_bz = 0;
_local1.sg1_BL_mz = "";
_local1.sg_mv_flg = 1;
_local1.key_flg = 1;
_local1.sg_mv_jishu = 0;
_local1.bz.gotoAndStop(1);
_local1.color_save = _local1.select_color();
_local1.bb_shoot3.sg._visible = 1;
_local1.bb_shoot3.sg.gotoAndStop("sg" + _local1.color_save);
}
function sz_add(zfc) {
var _local1 = _root;
}
function sz_jian(zfc) {
var _local1 = _root;
var _local3;
var _local2;
var flg;
trace("sz_jian=================");
trace("zfc=" + zfc);
if (_local1["sg_blname" + (_local1.sg_cur_num - 1)] eq zfc) {
_local1.sg_cur_num = _local1.sg_cur_num - 1;
} else {
flg = 0;
_local3 = 0;
while (_local3 <= (_local1.sg_cur_num - 1)) {
if (_local1["sg_blname" + _local3] eq zfc) {
flg = 1;
break;
}
_local3++;
}
if (flg == 1) {
_local2 = _local3;
while (_local2 <= (_local1.sg_cur_num - 2)) {
_local1["sg_blname" + _local2] = _local1["sg_blname" + (_local2 + 1)];
_local2++;
}
_local1.sg_cur_num = _local1.sg_cur_num - 1;
}
}
}
function tz_wz() {
var _local1 = _root;
trace("tz_wz===========================");
trace("_root.savemovex=" + _local1.savemovex);
trace("_root.savemovey=" + _local1.savemovey);
trace("_root.savex=" + _local1.savex);
trace("_root.savey=" + _local1.savey);
trace("_root.shang_bj=" + _local1.shang_bj);
trace("_root.zuo_bj=" + _local1.zuo_bj);
trace("_root.you_bj=" + _local1.you_bj);
if ((((((_local1.savemovex >= ((_local1.savex - (2 * _local1.sg_banjin)) - _local1.sg_banjin)) and (_local1.savemovex <= ((_local1.savex - (2 * _local1.sg_banjin)) + _local1.sg_banjin))) and (_local1.savemovey >= ((_local1.savey - (2 * _local1.sg_banjin)) - _local1.sg_banjin))) and (_local1.savemovey <= ((_local1.savey - (2 * _local1.sg_banjin)) + _local1.sg_banjin))) and (((_local1.savey - (2 * _local1.sg_banjin)) - _local1.sg_banjin) >= _local1.shang_bj)) and (((_local1.savex - (2 * _local1.sg_banjin)) - _local1.sg_banjin) >= _local1.zuo_bj)) {
trace("tz_wz===========================1");
_local1[_local1.save_name]._x = _local1.savex - (2 * _local1.sg_banjin);
_local1[_local1.save_name]._y = _local1.savey - (2 * _local1.sg_banjin);
} else if ((((((_local1.savemovex >= (_local1.savex - _local1.sg_banjin)) and (_local1.savemovex <= (_local1.savex + _local1.sg_banjin))) and (_local1.savemovey >= ((_local1.savey - (2 * _local1.sg_banjin)) - _local1.sg_banjin))) and (_local1.savemovey <= ((_local1.savey - (2 * _local1.sg_banjin)) + _local1.sg_banjin))) and (((_local1.savey - (2 * _local1.sg_banjin)) - _local1.sg_banjin) >= _local1.shang_bj)) and ((_local1.savex - _local1.sg_banjin) >= _local1.zuo_bj)) {
trace("tz_wz===========================2");
_local1[_local1.save_name]._x = _local1.savex;
_local1[_local1.save_name]._y = _local1.savey - (2 * _local1.sg_banjin);
} else if ((((((_local1.savemovex >= ((_local1.savex + (2 * _local1.sg_banjin)) - _local1.sg_banjin)) and (_local1.savemovex <= ((_local1.savex + (2 * _local1.sg_banjin)) + _local1.sg_banjin))) and (_local1.savemovey >= ((_local1.savey - (2 * _local1.sg_banjin)) - _local1.sg_banjin))) and (_local1.savemovey <= ((_local1.savey - (2 * _local1.sg_banjin)) + _local1.sg_banjin))) and (((_local1.savey - (2 * _local1.sg_banjin)) - _local1.sg_banjin) >= _local1.shang_bj)) and (((_local1.savex + (2 * _local1.sg_banjin)) + _local1.sg_banjin) <= _local1.you_bj)) {
trace("tz_wz===========================3");
_local1[_local1.save_name]._x = _local1.savex + (2 * _local1.sg_banjin);
_local1[_local1.save_name]._y = _local1.savey - (2 * _local1.sg_banjin);
} else if ((((((_local1.savemovex >= ((_local1.savex - (2 * _local1.sg_banjin)) - _local1.sg_banjin)) and (_local1.savemovex <= ((_local1.savex - (2 * _local1.sg_banjin)) + _local1.sg_banjin))) and (_local1.savemovey >= (_local1.savey - _local1.sg_banjin))) and (_local1.savemovey <= (_local1.savey + _local1.sg_banjin))) and ((_local1.savey - _local1.sg_banjin) >= _local1.shang_bj)) and (((_local1.savex - (2 * _local1.sg_banjin)) - _local1.sg_banjin) >= _local1.zuo_bj)) {
trace("tz_wz===========================4");
_local1[_local1.save_name]._x = _local1.savex - (2 * _local1.sg_banjin);
_local1[_local1.save_name]._y = _local1.savey;
} else if ((((((_local1.savemovex >= ((_local1.savex + (2 * _local1.sg_banjin)) - _local1.sg_banjin)) and (_local1.savemovex <= ((_local1.savex + (2 * _local1.sg_banjin)) + _local1.sg_banjin))) and (_local1.savemovey >= (_local1.savey - _local1.sg_banjin))) and (_local1.savemovey <= (_local1.savey + _local1.sg_banjin))) and ((_local1.savey - _local1.sg_banjin) >= _local1.shang_bj)) and (((_local1.savex + (2 * _local1.sg_banjin)) + _local1.sg_banjin) <= _local1.you_bj)) {
trace("tz_wz===========================5");
_local1[_local1.save_name]._x = _local1.savex + (2 * _local1.sg_banjin);
_local1[_local1.save_name]._y = _local1.savey;
} else if ((((((_local1.savemovex >= ((_local1.savex - (2 * _local1.sg_banjin)) - _local1.sg_banjin)) and (_local1.savemovex <= ((_local1.savex - (2 * _local1.sg_banjin)) + _local1.sg_banjin))) and (_local1.savemovey >= ((_local1.savey + (2 * _local1.sg_banjin)) - _local1.sg_banjin))) and (_local1.savemovey <= ((_local1.savey + (2 * _local1.sg_banjin)) + _local1.sg_banjin))) and (((_local1.savey + (2 * _local1.sg_banjin)) - _local1.sg_banjin) >= _local1.shang_bj)) and (((_local1.savex - (2 * _local1.sg_banjin)) - _local1.sg_banjin) >= _local1.zuo_bj)) {
trace("tz_wz===========================6");
_local1[_local1.save_name]._x = _local1.savex - (2 * _local1.sg_banjin);
_local1[_local1.save_name]._y = _local1.savey + (2 * _local1.sg_banjin);
} else if ((((((_local1.savemovex >= (_local1.savex - _local1.sg_banjin)) and (_local1.savemovex <= (_local1.savex + _local1.sg_banjin))) and (_local1.savemovey >= ((_local1.savey + (2 * _local1.sg_banjin)) - _local1.sg_banjin))) and (_local1.savemovey <= ((_local1.savey + (2 * _local1.sg_banjin)) + _local1.sg_banjin))) and (((_local1.savey + (2 * _local1.sg_banjin)) - _local1.sg_banjin) >= _local1.shang_bj)) and ((_local1.savex - _local1.sg_banjin) >= _local1.zuo_bj)) {
trace("tz_wz===========================7");
_local1[_local1.save_name]._x = _local1.savex;
_local1[_local1.save_name]._y = _local1.savey + (2 * _local1.sg_banjin);
} else if ((((((_local1.savemovex >= ((_local1.savex + (2 * _local1.sg_banjin)) - _local1.sg_banjin)) and (_local1.savemovex <= ((_local1.savex + (2 * _local1.sg_banjin)) + _local1.sg_banjin))) and (_local1.savemovey >= ((_local1.savey + (2 * _local1.sg_banjin)) - _local1.sg_banjin))) and (_local1.savemovey <= ((_local1.savey + (2 * _local1.sg_banjin)) + _local1.sg_banjin))) and (((_local1.savey + (2 * _local1.sg_banjin)) - _local1.sg_banjin) >= _local1.shang_bj)) and (((_local1.savex + (2 * _local1.sg_banjin)) + _local1.sg_banjin) <= _local1.you_bj)) {
trace("tz_wz===========================8");
_local1[_local1.save_name]._x = _local1.savex + (2 * _local1.sg_banjin);
_local1[_local1.save_name]._y = _local1.savey + (2 * _local1.sg_banjin);
} else {
trace("tz_wz===========================7");
_local1[_local1.save_name]._x = _local1.savex;
_local1[_local1.save_name]._y = _local1.savey + (2 * _local1.sg_banjin);
}
}
function pd1(tempname) {
var i;
trace("pd1----------------------------");
trace("tempname=" + tempname);
i = 0;
while (i <= (_root.sg_cur_num - 1)) {
mz = eval ("sg_blname" + i);
trace("i=" + i);
trace("mz= " + mz);
trace("mz_x=" + _root[mz]._x);
trace("mz_y=" + _root[mz]._y);
trace("tempname_x=" + _root[tempname]._x);
trace("tempname_y=" + _root[tempname]._y);
if ((((mz ne tempname) and _root[tempname].hitTest(_root[mz])) and (_root[mz].shiyong == 0)) and ((Math.floor(_root[mz]._x) == Math.floor(_root[tempname]._x)) or (Math.floor(_root[mz]._y) == Math.floor(_root[tempname]._y)))) {
trace("sg_zhuangtai == 2---------- hit");
trace("name= " + tempname);
trace("mz= " + mz);
trace("yanshe1=" + _root[mz].yanshe);
trace("yanshe2=" + _root[tempname].yanshe);
if (_root[mz].yanshe == _root.sg_hao_teshu) {
trace("teshu--------");
_root["sg_delnum" + _root[mz].yanshe] = _root["sg_delnum" + _root[mz].yanshe] + 1;
_root[(("sg_del" + _root[mz].yanshe) + "YS") + _root["sg_delnum" + _root[mz].yanshe]] = tempname;
_root[mz].shiyong = 1;
if (_root.sg_fashesz_bz == 1) {
_root.sg1_fashe_num = _root.sg1_fashe_num + 1;
_root["sg1_fashe" + _root.sg1_fashe_num] = tempname;
} else if (_root.sg_fashesz_bz == 2) {
_root.sg_fashe_num = _root.sg_fashe_num + 1;
_root["sg_fashe" + _root.sg_fashe_num] = tempname;
}
} else if (_root[tempname].yanshe == _root[mz].yanshe) {
trace("yb----------");
trace("_root.sg_fashesz_bz=" + _root.sg_fashesz_bz);
_root["sg_delnum" + _root[mz].yanshe] = _root["sg_delnum" + _root[mz].yanshe] + 1;
_root[(("sg_del" + _root[mz].yanshe) + "YS") + _root["sg_delnum" + _root[mz].yanshe]] = mz;
trace("sy= " + _root[mz].shiyong);
_root[mz].shiyong = 1;
if (_root.sg_fashesz_bz == 1) {
trace("_root.sg_fashesz_bz == 1====================");
_root.sg1_fashe_num = _root.sg1_fashe_num + 1;
_root["sg1_fashe" + _root.sg1_fashe_num] = mz;
trace("_root.sg1_fashe_num= " + _root.sg1_fashe_num);
trace("mz= " + mz);
} else if (_root.sg_fashesz_bz == 2) {
trace("_root.sg_fashesz_bz == 2====================");
_root.sg_fashe_num = _root.sg_fashe_num + 1;
_root["sg_fashe" + _root.sg_fashe_num] = mz;
trace("_root.sg_fashe_num= " + _root.sg_fashe_num);
trace("mz= " + mz);
}
}
}
i++;
}
}
function pd2() {
var i;
var mz;
var bbzz;
trace("pd2=====================");
trace("_root.sg_cur_num= " + _root.sg_cur_num);
trace("_root.sg_fashe_num= " + _root.sg_fashe_num);
i = 0;
while (i <= (_root.sg_cur_num - 1)) {
mz = eval ("sg_blname" + i);
trace("i=" + i);
trace("mz=" + mz);
if ((_root[mz]._y > 27.1) and (_root[mz]._y < 31.1)) {
_root.sg_fashe_num = _root.sg_fashe_num + 1;
_root["sg_fashe" + _root.sg_fashe_num] = mz;
trace("112mz= " + mz);
_root[mz].biaoji = 1;
} else {
_root[mz].biaoji = 0;
}
i++;
}
trace("_root.sg_fashe_num=" + _root.sg_fashe_num);
_root.sg_fashesz_bz = 1;
trace("_root.sg_fa_jishu1= " + _root.sg_fa_jishu1);
trace("_root.sg_fa_jishu2= " + _root.sg_fa_jishu2);
bbzz = 0;
while (bbzz == 0) {
if ((_root.sg_fashe_num == 0) and (_root.sg1_fashe_num == 0)) {
trace("gggggggggggggggggggggggggggggggg");
_root.del_kuai();
bbzz = 1;
} else {
while ((_root.sg_fashe_num != 0) or (_root.sg1_fashe_num != 0)) {
if (_root.sg_fashesz_bz == 1) {
if (_root.sg_fa_jishu1 < _root.sg_fashe_num) {
_root.sg_fa_jishu1 = _root.sg_fa_jishu1 + 1;
_root.sg_BL_mz = _root["sg_fashe" + _root.sg_fa_jishu1];
_root[_root.sg_BL_mz].biaoji = 1;
trace("1111_root.sg_BL_mz =" + _root.sg_BL_mz);
_root.pd3(_root.sg_BL_mz);
} else {
_root.sg_fashesz_bz = 2;
_root.sg_fashe_num = 0;
_root.sg_fa_jishu1 = 0;
}
} else if (_root.sg_fashesz_bz == 2) {
if (_root.sg_fa_jishu2 < _root.sg1_fashe_num) {
_root.sg_fa_jishu2 = _root.sg_fa_jishu2 + 1;
_root.sg_BL_mz = _root["sg1_fashe" + _root.sg_fa_jishu2];
_root[_root.sg_BL_mz].biaoji = 1;
_root.pd3(_root.sg_BL_mz);
} else {
_root.sg_fashesz_bz = 1;
_root.sg1_fashe_num = 0;
_root.sg_fa_jishu2 = 0;
}
}
}
}
}
}
function pd3(tempname) {
var i;
i = 0;
while (i <= (_root.sg_cur_num - 1)) {
mz = eval ("sg_blname" + i);
if (((mz ne tempname) and _root[tempname].hitTest(_root[mz])) and (_root[mz].biaoji == 0)) {
trace("pd3-------------");
_root[mz].biaoji = 1;
if (_root.sg_fashesz_bz == 1) {
_root.sg1_fashe_num = _root.sg1_fashe_num + 1;
_root["sg1_fashe" + _root.sg1_fashe_num] = mz;
} else if (_root.sg_fashesz_bz == 2) {
_root.sg_fashe_num = _root.sg_fashe_num + 1;
_root["sg_fashe" + _root.sg_fashe_num] = mz;
}
}
i++;
}
}
function del_kuai() {
var i;
var mz;
trace("del_kuai===========");
trace("_root.sg_cur_num= " + _root.sg_cur_num);
i = 0;
while (i <= (_root.sg_cur_num - 1)) {
mz = eval ("sg_blname" + i);
trace("mz=" + mz);
if (_root[mz].biaoji == 1) {
i = i + 1;
} else {
trace("iiiiiiiiiiiiiiii");
trace(_root[mz].biaoji);
_root.sg_num = _root.sg_num + 1;
duplicateMovieClip ("_root.xiao1", "xiao1FZ" + _root.sg_num, _root.ceng_QS + _root.sg_num);
_root["xiao1FZ" + _root.sg_num]._x = _root[mz]._x;
_root["xiao1FZ" + _root.sg_num]._y = _root[mz]._y;
_root["xiao1FZ" + _root.sg_num].sg.gotoAndStop("sg" + _root[mz].yanshe);
removeMovieClip(_root[mz]);
_root.sz_jian(mz);
_root.score = _root.score + _root.fen_duan;
}
}
}
function tz_wz2(mz) {
var _local1 = _root;
var _local3;
var _local2;
trace("tz_wz2=================");
_local1[mz]._y = 29.1;
_local3 = _local1[mz]._x - _local1.qsd_x;
trace("x=" + _local3);
if (_local3 < (2 * _local1.sg_banjin)) {
_local1[mz]._x = _local1.sg_banjin + _local1.qsd_x;
}
if (_local3 > ((11 * (2 * _local1.sg_banjin)) + _local1.sg_banjin)) {
_local1[mz]._x = ((11 * (2 * _local1.sg_banjin)) + _local1.sg_banjin) + _local1.qsd_x;
}
_local2 = 2;
while (_local2 <= 12) {
if ((_local3 >= ((_local2 - 1) * (2 * _local1.sg_banjin))) and (_local3 <= (_local2 * (2 * _local1.sg_banjin)))) {
_local1[mz]._x = (((_local2 - 1) * (2 * _local1.sg_banjin)) + _local1.sg_banjin) + _local1.qsd_x;
trace("i=" + _local2);
return;
}
_local2++;
}
}
function midiplay(bz) {
var _local1 = bz;
if (_local1 == 1) {
sound1.attachSound("bg");
sound1.start("", 999);
} else if (_local1 == 2) {
trace("midiplay=======");
sound2.attachSound("fashe");
sound2.start("", 1);
} else if (_local1 == 3) {
trace("midiplay=======");
sound3.attachSound("buzha");
sound3.start("", 1);
} else if (_local1 == 4) {
trace("midiplay=======");
sound4.attachSound("zha");
sound4.start("", 1);
} else if (_local1 == 5) {
trace("midiplay=======");
sound5.attachSound("over");
sound5.start("", 1);
}
}
function midistop(bz) {
var _local1 = bz;
if (_local1 == 1) {
trace("midistop=======");
sound1.stop();
} else if (_local1 == 2) {
sound2.stop();
} else if (_local1 == 3) {
sound3.stop();
} else if (_local1 == 4) {
sound4.stop();
}
}
stop();
game_so = SharedObject.getLocal("paopao");
_root.game_so.data.playerName = "";
_root.game_so.data.useremail = "";
String.prototype.addCommas = function () {
var _local3 = this.length;
var _local2 = "";
var _local1 = 0;
while (_local1 <= _local3) {
_local2 = this.charAt(_local3 - _local1) + _local2;
if ((((_local1 % 3) == 0) && (_local1 > 0)) && (_local1 < _local3)) {
_local2 = "," + _local2;
}
_local1++;
}
return(_local2);
};
_root.quedinW._visible = 0;
_root.quedinW.username.text = "";
_root.quedinW.useremail.text = "";
_root.score = 0;
fen_duan = 20;
sq_hitPD_bz = 0;
color_save = 0;
_root.sg_jishu_01 = 0;
_root.sg_fashesz_bz = 0;
_root.sg_fashe_num = 0;
_root.sg1_fashe_num = 0;
_root.sg_fa_jishu1 = 0;
_root.sg_fa_jishu2 = 0;
sg_delnum1 = 0;
sg_delnum2 = 0;
sg_delnum3 = 0;
sg_delnum4 = 0;
_root.sg_ding_num = 0;
_root.ceng_QS1 = 1000;
sg_hao_teshu = 5;
_root.sg_cur_num = 0;
_root.sg_gx_num = 0;
_root.sg_GX_shc = 0;
_root.sg_zhuangtai = 1;
_root.hit_wall = 0;
_root.sg_xyhuan_num = 20000;
_root.sg_time_jg = 2;
_root.sg_mv_bufa_x = 1;
_root.sg_mv_bufa_y = 1;
_root.sg_mv_kaishi = 0;
_root.sg_mv_flg = 1;
_root.sg_mv_QSWZ_x = 287;
_root.sg_mv_QSWZ_y = 366.5;
_root.sg_mv_jishu = 0;
sg_banjin = 15.1;
qsd_x = 102;
qsd_y = 14;
_root.zuo_bj = 100;
_root.you_bj = 465;
_root.shang_bj = 14;
sg_lx = 5;
sg_num = 0;
ceng_QS = 10;
_root.guan = 1;
strtemp = new String();
aobj = new Object();
sound1 = new Sound();
sound2 = new Sound();
sound3 = new Sound();
sound4 = new Sound();
sound5 = new Sound();
Frame 4
Text123._accProps = new Object();
Text123._accProps.silent = true;
Text123._accProps = new Object();
Text123._accProps.silent = true;
stop();
function SJtime() {
var _local1 = _root;
_local1.timenum = _local1.timenum - 1;
_local1.SJGstr();
if (_local1.timenum == 0) {
trace("_root.timenum == 0");
_local1.endgame();
}
}
function SJGstr() {
var _local1 = _root;
var temp1;
var temp2;
var i;
var _local3;
var _local2;
_local3 = Math.floor(_local1.timenum / 60);
_local2 = _local1.timenum - (_local3 * 60);
_local1.txt4 = String(_local3);
if (_local2 < 10) {
_local1.txt3 = "0" + _local2;
} else {
_local1.txt3 = _local2;
}
}
function endstage() {
var _local1 = _root;
trace("endstage===============");
trace("_root.guan<=7");
if (_local1.guan <= 7) {
_local1.midiplay(5);
_local1.guan = _local1.guan + 1;
_local1.ga = _local1.guan;
_local1.sg_num = 0;
_local1.sg_cur_num = 0;
_local1.SHC_scence();
color_save = _local1.select_color();
_local1.bb_shoot3.sg.gotoAndStop("sg" + _local1.color_save);
} else {
trace("_root.guan>7");
_local1.endgame();
}
}
function endgame() {
var i;
var mz;
_root.midistop(1);
clearInterval(time1);
i = 1;
while (i <= _root.sg_cur_num) {
mz = eval ("sg_blname" + i);
removeMovieClip(_root[mz]);
i++;
}
if (_root.guan > 7) {
_root.gotoAndStop(5);
} else {
_root.gotoAndStop(6);
}
}
stop();
_root.midiplay(1);
mv_step = 5;
endline_y = 347.5;
_root.timenum = 1800;
_root.txt4 = 0;
_root.txt3 = 0;
_root.wg._visible = 1;
_root.bb_shoot3._rotation = 0;
_root.key_flg = 1;
_root.bb_rotate = 2;
_root.SHC_scence();
color_save = _root.select_color();
_root.bb_shoot3.sg.gotoAndStop("sg" + _root.color_save);
_root.ga = _root.guan;
time1 = setInterval(_root.SJtime, 1000);
Instance of Symbol 91 MovieClip "bb_shoot3" in Frame 4
onClipEvent (enterFrame) {
if (_root.key_flg == 1) {
K_Code = Key.getCode();
if (Key.isDown(32)) {
trace("_root.bb_shoot3._rotation=" + _root.bb_shoot3._rotation);
if (_root.sg_mv_flg == 1) {
i = 0;
while (i <= (_root.sg_cur_num - 1)) {
_root[_root["sg_blname" + i]].shiyong = 0;
_root[_root["sg_blname" + i]].biaoji = 0;
i++;
}
sg_delnum1 = 0;
sg_delnum2 = 0;
sg_delnum3 = 0;
sg_delnum4 = 0;
trace("space==============");
_root.bz.gotoAndStop(2);
_root.hit_wall = 0;
_root.sg_mv_jishu = 0;
_root.sg_zhuangtai = 0;
_root.sg_mv_flg = 0;
_root.sg_mv_kaishi = 1;
_root.bb_shoot3.sg._visible = 0;
_root.random_SHC1_sg(_root.color_save);
_root[_root.sg1_BL_mz + "FS_bz"] = 1;
_root.sz_add(_root.sg1_BL_mz);
_root.midiplay(2);
}
} else if (Key.isDown(39) and Key.isDown(16)) {
if (_root.guan == 1) {
_root.mv_step = _root.sg_banjin * 2;
} else {
_root.mv_step = _root.sg_banjin / 8;
}
trace("1111_root.mv_step=" + _root.mv_step);
trace("1111_root.sg_banjin=" + _root.sg_banjin);
trace("_root.bb_shoot3._x" + _root.bb_shoot3._x);
trace("tj1= " + (_root.bb_shoot3_jiao1._x + _root.mv_step));
trace("tj2= " + ((23 * _root.sg_banjin) + _root.qsd_x));
if ((_root.bb_shoot3_jiao1._x + _root.mv_step) > ((23 * _root.sg_banjin) + _root.qsd_x)) {
_root.bb_shoot3_jiao1._x = (23 * _root.sg_banjin) + _root.qsd_x;
_root.bb_shoot3._x = (23 * _root.sg_banjin) + _root.qsd_x;
} else {
_root.bb_shoot3._x = _root.bb_shoot3._x + _root.mv_step;
_root.bb_shoot3_jiao1._x = _root.bb_shoot3_jiao1._x + _root.mv_step;
}
} else if (Key.isDown(37) and Key.isDown(16)) {
if (_root.guan == 1) {
_root.mv_step = _root.sg_banjin * 2;
} else {
_root.mv_step = _root.sg_banjin / 8;
}
trace("2222_root.mv_step=" + _root.mv_step);
trace("2222_root.sg_banjin=" + _root.sg_banjin);
if ((_root.bb_shoot3_jiao1._x - _root.mv_step) < (_root.sg_banjin + _root.qsd_x)) {
_root.bb_shoot3._x = _root.sg_banjin + _root.qsd_x;
_root.bb_shoot3_jiao1._x = _root.sg_banjin + _root.qsd_x;
} else {
_root.bb_shoot3._x = _root.bb_shoot3._x - _root.mv_step;
_root.bb_shoot3_jiao1._x = _root.bb_shoot3_jiao1._x - _root.mv_step;
}
} else if ((Key.isDown(37) && (_root.bb_shoot3._rotation <= 80)) && (_root.bb_shoot3._rotation >= -80)) {
if ((_root.bb_shoot3._rotation - _root.bb_rotate) <= -80) {
_root.bb_shoot3._rotation = _root.bb_shoot3._rotation - (80 + _root.bb_shoot3._rotation);
} else {
_root.bb_shoot3._rotation = _root.bb_shoot3._rotation - _root.bb_rotate;
}
trace("left===============");
trace("_root.bb_shoot3._rotation=" + _root.bb_shoot3._rotation);
} else if ((Key.isDown(39) && (_root.bb_shoot3._rotation >= -80)) && (_root.bb_shoot3._rotation <= 80)) {
if ((_root.bb_shoot3._rotation + _root.bb_rotate) >= 80) {
_root.bb_shoot3._rotation = _root.bb_shoot3._rotation + (80 - _root.bb_shoot3._rotation);
} else {
_root.bb_shoot3._rotation = _root.bb_shoot3._rotation + _root.bb_rotate;
}
trace("right===============");
trace("_root.bb_shoot3._rotation=" + _root.bb_shoot3._rotation);
}
}
}
Instance of Symbol 84 MovieClip "shuiguo" in Frame 4
onClipEvent (enterFrame) {
if (_name ne "shuiguo") {
if ((_root.sg_zhuangtai == 0) and (_name eq _root.sg1_BL_mz)) {
trace("222_root.sg_cur_num=" + _root.sg_cur_num);
ooo = 0;
first_flg = 0;
if (_root.sg_cur_num <= 1) {
} else {
kkk = _root.sg_cur_num - 2;
while (kkk >= 0) {
if ((_root[_name].tantou.hitTest(_root[_root["sg_blname" + kkk]]) and (first_flg == 0)) or ((_root[_name].hitTest(_root[_root["sg_blname" + kkk]]) and (first_flg == 1)) and (_name ne _root[_root["sg_blname" + kkk]]))) {
if (_root[_name]._y > _root.endline_y) {
_root.endgame();
} else {
trace(_root[_name]);
trace(_root[_root["sg_blname" + kkk]]);
if (first_flg == 1) {
trace("after first_flg==1=====================");
if (_root[_name].yanshe == _root[_root["sg_blname" + kkk]].yanshe) {
trace("hit=============");
if ((Math.floor(_root[_name]._x) == Math.floor(_root[_root["sg_blname" + kkk]]._x)) or (Math.floor(_root[_name]._y) == Math.floor(_root[_root["sg_blname" + kkk]]._y))) {
first_flg = 2;
_root.savex = _root[_root["sg_blname" + kkk]]._x;
_root.savey = _root[_root["sg_blname" + kkk]]._y;
_root.savemovex = _root[_name]._x;
_root.savemovey = _root[_name]._y;
_root.save_name = _name;
trace("yanshe1=" + _root[_name].yanshe);
trace("yanshe2=" + _root[_root["sg_blname" + kkk]].yanshe);
ooo = 1;
_root.tz_wz();
break;
}
}
} else {
_root.savex = _root[_root["sg_blname" + kkk]]._x;
_root.savey = _root[_root["sg_blname" + kkk]]._y;
kkk_save = kkk;
_root.savemovex = _root[_name]._x;
_root.savemovey = _root[_name]._y;
_root.save_name = _name;
trace("yanshe1=" + _root[_name].yanshe);
trace("yanshe2=" + _root[_root["sg_blname" + kkk]].yanshe);
ooo = 1;
first_flg = 1;
if (_root[_name].yanshe == _root[_root["sg_blname" + kkk]].yanshe) {
first_flg = 2;
_root.tz_wz();
break;
}
_root.tz_wz();
trace("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
kkk = _root.sg_cur_num - 2;
}
}
}
kkk--;
}
}
trace("first_flg=" + first_flg);
trace("ooo=" + ooo);
if ((ooo == 1) and (first_flg == 1)) {
kkk = kkk_save;
_root.tz_wz();
_root.finish_pop();
} else if ((ooo == 1) and (first_flg == 2)) {
trace("shoot--------------------hitest");
_root.sg_mv_kaishi = 0;
trace("111_root.sg_mv_kaishi set 0=================");
trace("kkk=" + kkk);
trace("_root.sg_cur_num=" + _root.sg_cur_num);
_root.sg_zhuangtai = 2;
_root.sg_fashesz_bz = 1;
_root.sg_mv_jishu = _root.sg_xyhuan_num + 1;
if (_root[_name].yanshe == _root.sg_hao_teshu) {
trace("shoot--------------------hitest---ts");
_root.sg_color_sv = _root.sg_hao_teshu;
_root.sg_fashe_num = _root.sg_fashe_num + 1;
_root["sg_fashe" + _root.sg_fashe_num] = _name;
shiyong = 1;
} else if (_root[_name].yanshe == _root[_root["sg_blname" + kkk]].yanshe) {
trace("shoot--------------------hitest---yb");
_root.sg_color_sv = _root[_name].yanshe;
_root.sg_fashe_num = _root.sg_fashe_num + 1;
_root["sg_fashe" + _root.sg_fashe_num] = _name;
_root["sg_delnum" + _root[_root["sg_blname" + kkk]].yanshe] = _root["sg_delnum" + yanshe] + 1;
_root[(("sg_del" + _root[_root["sg_blname" + kkk]].yanshe) + "YS") + _root["sg_delnum" + yanshe]] = _name;
shiyong = 1;
} else {
_root.tz_wz();
_root.finish_pop();
}
} else if (_root[_name].hitTest(_root.bj)) {
trace("shoot---hit---------bj");
_root.tz_wz2(_name);
ooo = 0;
first_flg = 0;
if (_root.sg_cur_num <= 1) {
} else {
kkk = _root.sg_cur_num - 2;
while (kkk >= 0) {
if ((_root[_name].hitTest(_root[_root["sg_blname" + kkk]]) and (first_flg == 0)) or ((_root[_name].hitTest(_root[_root["sg_blname" + kkk]]) and (first_flg == 1)) and (_name ne _root[_root["sg_blname" + kkk]]))) {
trace(_root[_name]);
trace(_root[_root["sg_blname" + kkk]]);
if (first_flg == 1) {
if (_root[_name].yanshe == _root[_root["sg_blname" + kkk]].yanshe) {
trace("hit=============");
if ((_root[_name]._x == _root[_root["sg_blname" + kkk]]._x) or (_root[_name]._y == _root[_root["sg_blname" + kkk]]._y)) {
first_flg = 2;
_root.savex = _root[_root["sg_blname" + kkk]]._x;
_root.savey = _root[_root["sg_blname" + kkk]]._y;
_root.savemovex = _root[_name]._x;
_root.savemovey = _root[_name]._y;
_root.save_name = _name;
trace("yanshe1=" + _root[_name].yanshe);
trace("yanshe2=" + _root[_root["sg_blname" + kkk]].yanshe);
ooo = 1;
break;
}
}
} else {
_root.savex = _root[_root["sg_blname" + kkk]]._x;
_root.savey = _root[_root["sg_blname" + kkk]]._y;
kkk_save = kkk;
_root.savemovex = _root[_name]._x;
_root.savemovey = _root[_name]._y;
_root.save_name = _name;
trace("yanshe1=" + _root[_name].yanshe);
trace("yanshe2=" + _root[_root["sg_blname" + kkk]].yanshe);
ooo = 1;
first_flg = 1;
if (_root[_name].yanshe == _root[_root["sg_blname" + kkk]].yanshe) {
first_flg = 2;
break;
}
trace("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
kkk = kkk - 1;
}
}
kkk--;
}
}
if ((ooo == 1) and (first_flg == 2)) {
_root.sg_mv_kaishi = 0;
trace("222_root.sg_mv_kaishi set 0=================");
_root.sg_zhuangtai = 2;
_root.sg_fashesz_bz = 1;
_root.sg_mv_jishu = _root.sg_xyhuan_num + 1;
if (_root[_name].yanshe == _root.sg_hao_teshu) {
trace("shoot--------------------hitest---ts");
_root.sg_color_sv = _root.sg_hao_teshu;
_root.sg_fashe_num = _root.sg_fashe_num + 1;
_root["sg_fashe" + _root.sg_fashe_num] = _name;
shiyong = 1;
} else if (_root[_name].yanshe == _root[_root["sg_blname" + kkk]].yanshe) {
trace("shoot--------------------hitest---yb");
_root.sg_color_sv = _root[_name].yanshe;
_root.sg_fashe_num = _root.sg_fashe_num + 1;
_root["sg_fashe" + _root.sg_fashe_num] = _name;
_root["sg_delnum" + _root[_root["sg_blname" + kkk]].yanshe] = _root["sg_delnum" + yanshe] + 1;
_root[(("sg_del" + _root[_root["sg_blname" + kkk]].yanshe) + "YS") + _root["sg_delnum" + yanshe]] = _name;
shiyong = 1;
} else {
_root.finish_pop();
}
} else {
_root.finish_pop();
}
}
if (_root.sg_mv_kaishi == 0) {
} else if (_root.sg_mv_kaishi == 1) {
if (_root[_name + "FS_bz"] == 1) {
if (_root.sg_mv_jishu == 0) {
trace("11111111111");
_root.LtoG();
_x = _root.xx;
_y = _root.yy;
_root.sg_mv_jishu = _root.sg_mv_jishu + 1;
} else if (_root.sg_mv_jishu <= _root.sg_xyhuan_num) {
_root.sg_mv_flg = 0;
_root.sd = 16;
if (_root.bb_shoot3._rotation == 0) {
_x = _x;
_y = (_y - _root.sd);
} else if (_root.bb_shoot3._rotation < 0) {
if (_root.hit_wall == 0) {
_x = (_x + (_root.sd * Math.sin(_root.bb_shoot3._rotation * (Math.PI/180))));
} else {
_x = (_x - (_root.sd * Math.sin(_root.bb_shoot3._rotation * (Math.PI/180))));
}
_y = (_y - (_root.sd * Math.cos(_root.bb_shoot3._rotation * (Math.PI/180))));
} else {
if (_root.hit_wall == 0) {
_x = (_x + (_root.sd * Math.sin(_root.bb_shoot3._rotation * (Math.PI/180))));
} else {
_x = (_x - (_root.sd * Math.sin(_root.bb_shoot3._rotation * (Math.PI/180))));
}
_y = (_y - (_root.sd * Math.cos(_root.bb_shoot3._rotation * (Math.PI/180))));
}
_root.wall_minx = 100;
_root.wall_maxx = 464;
_root.wall_upy = 14;
if (_x < _root.wall_minx) {
_root.hit_wall = 1;
_x = (_root.wall_minx + 4);
} else if (_x > _root.wall_maxx) {
_root.hit_wall = 1;
_x = (_root.wall_maxx - 4);
}
if (_y < _root.wall_upy) {
}
_root.sg_mv_jishu = _root.sg_mv_jishu + 1;
} else {
_root.sg_mv_flg = 1;
_root.sg_mv_kaishi = 0;
}
}
}
} else if (_root.sg_zhuangtai == 1) {
} else if ((_root.sg_zhuangtai == 2) and (_root.sq_hitPD_bz == 1)) {
} else if (_root.sg_zhuangtai == 3) {
} else if (_root.sg_zhuangtai == 4) {
}
}
}
Instance of Symbol 140 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.sg_zhuangtai == 2) {
trace("_root.sg_zhuangtai == 2==================");
trace("_root.sg_fashe_num= " + _root.sg_fashe_num);
trace("_root.sg1_fashe_num= " + _root.sg1_fashe_num);
if ((_root.sg_fashe_num == 0) and (_root.sg1_fashe_num == 0)) {
_root.del_sg();
_root.pd2();
sg_delnum1 = 0;
sg_delnum2 = 0;
sg_delnum3 = 0;
sg_delnum4 = 0;
_root.finish_pop();
if (_root.sg_cur_num == 0) {
_root.endstage();
}
} else {
while ((_root.sg_fashe_num != 0) or (_root.sg1_fashe_num != 0)) {
if (_root.sg_fashesz_bz == 1) {
if (_root.sg_fa_jishu1 < _root.sg_fashe_num) {
trace("sg_fashesz_bz ==1===========================");
_root.sg_fa_jishu1 = _root.sg_fa_jishu1 + 1;
_root.sg_BL_mz = _root["sg_fashe" + _root.sg_fa_jishu1];
_root.sq_hitPD_bz = 1;
_root[_root.sg_BL_mz].shiyong = 1;
trace("_root.sg_BL_mz =" + _root.sg_BL_mz);
_root.pd1(_root.sg_BL_mz);
} else {
trace("sg_fashesz_bz >>1===========================");
_root.sg_fashesz_bz = 2;
_root.sg_fashe_num = 0;
_root.sg_fa_jishu1 = 0;
trace("_root.sg1_fashe_num= " + _root.sg1_fashe_num);
}
} else if (_root.sg_fashesz_bz == 2) {
if (_root.sg_fa_jishu2 < _root.sg1_fashe_num) {
trace("sg_fashesz_bz ==2========================");
_root.sg_fa_jishu2 = _root.sg_fa_jishu2 + 1;
_root.sg_BL_mz = _root["sg1_fashe" + _root.sg_fa_jishu2];
_root.sq_hitPD_bz = 1;
trace("_root.sg_BL_mz =" + _root.sg_BL_mz);
_root[_root.sg_BL_mz].shiyong = 1;
_root.pd1(_root.sg_BL_mz);
} else {
trace("sg_fashesz_bz >>2===========================");
_root.sg_fashesz_bz = 1;
_root.sg1_fashe_num = 0;
_root.sg_fa_jishu2 = 0;
trace("_root.sg_fashe_num= " + _root.sg_fashe_num);
}
}
}
}
}
}
Instance of Symbol 151 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.guan > 7) {
_root.gotoAndStop(5);
}
}
Frame 5
_root.midistop(1);
Frame 6
_root.midistop(1);
Frame 7
stop();
score = _root.score;
trace("_root.score=" + _root.score);
showScores = function () {
var _local2 = 10;
while (_local2 > 0) {
var _local3 = scoreboard_lv["name" + (page + _local2)];
var s = scoreboard_lv["score" + (page + _local2)];
var _local1 = this[("line" + _local2) + "_mc"];
_local1.rank_txt.text = (page + _local2) + ".";
_local1.name_txt.text = (_local3.length ? (_local3.toUpperCase()) : "-");
_local1.score_txt.text = (s.length ? (s.addCommas()) : "-");
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = ((game_so.data.playerName.length && (_local3.toUpperCase() == game_so.data.playerName.toUpperCase())) ? 3407616 : 16777215)));
_local1._visible = true;
loading_mc._visible = false;
_local2--;
}
};
page = 0;
maxScore = 50;
scoreboard_lv = new LoadVars();
trace("ph===========================");
trace("score=" + score);
if ((score > 0) && (game_so.data.playerName.length > 0)) {
scoreboard_lv.score = score;
scoreboard_lv.name = _root.game_so.data.playerName.toLowerCase();
scoreboard_lv.useremail = _root.game_so.data.useremail.toLowerCase();
trace("scoreboard_lv.score=" + scoreboard_lv.score);
trace("scoreboard_lv.name=" + scoreboard_lv.name);
trace("scoreboard_lv.useremail=" + scoreboard_lv.useremail);
}
scoreboard_lv.game = "paopao";
scoreboard_lv.sendAndLoad("game_score.php", scoreboard_lv, "POST");
scoreboard_lv.onLoad = function (success) {
if (success) {
trace("success=" + success);
if (Boolean(scoreboard_lv.success)) {
trace("success===================");
trace("scoreboard_lv.maxScore.length=" + scoreboard_lv.maxScore.length);
if (scoreboard_lv.maxScore.length > 0) {
maxScore = Number(scoreboard_lv.maxScore);
}
trace("maxScore=" + maxScore);
showScores();
} else {
trace("not success===================");
loading_mc.errorMsg = scoreboard_lv.errorMsg.toUpperCase();
trace("loading_mc.errorMsg=" + loading_mc.errorMsg);
loading_mc.gotoAndStop(2);
}
} else {
loading_mc.errorMsg = "SCORES ONLY ON 17228.COM";
loading_mc.gotoAndStop(2);
}
};
score = 0;
last_btn._visible = false;
next_btn._visible = true;
last_btn.onPress = function () {
page = page - 10;
if (page < 0) {
page = 0;
}
if (page < 10) {
last_btn._visible = false;
}
next_btn._visible = true;
showScores();
};
top_btn.onPress = function () {
page = 1;
next_btn._visible = true;
showScores();
};
next_btn.onPress = function () {
page = page + 10;
if (page > maxScore) {
page = maxScore;
}
if (page > (maxScore - 20)) {
next_btn._visible = false;
}
last_btn._visible = true;
showScores();
};
newGame_btn.onRelease = function () {
gotoAndStop (2);
};
ufo_mc.dir = 1;
ufo_mc.onEnterFrame = function () {
var _local1 = this;
if (!_local1._visible) {
_local1.dir = (int(rnd() * 2) * 2) - 1;
_local1._x = 250 - (_local1.dir * 300);
_local1._visible = true;
}
_local1._x = _local1._x + (_local1.dir * 3);
if ((_local1._x > 550) || (_local1._x < -50)) {
_local1._visible = false;
}
};
Symbol 37 Button
on (release) {
getURL ("http://www.t45ol.com", "_blank");
}
Symbol 56 Button
on (release) {
getURL ("http://www.t45ol.com", "_blank");
}
Symbol 68 Button
on (press) {
_root.zhuanMain();
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 153
stop();
Symbol 110 MovieClip Frame 12
if (_name ne "sg_kuo_ding") {
removeMovieClip(_root[_name]);
}
Symbol 111 MovieClip Frame 20
if (_name ne "xiao1") {
removeMovieClip(_target);
}
Symbol 116 Button
on (release) {
getURL ("http://www.t45ol.com", "_blank");
}
Symbol 145 MovieClip Frame 1
stop();
Symbol 150 Button
on (release) {
getURL ("http://www.t45ol.com", "_blank");
}
Symbol 167 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 174 Button
on (release) {
trace("xxx");
if ((_root.quedinW.username.text.length != 0) and (_root.quedinW.useremail.text.length != 0)) {
_root.midistop(2);
_root.game_so.data.playerName = _root.quedinW.username.text;
_root.game_so.data.useremail = _root.quedinW.useremail.text;
_root.gotoAndStop("ph");
}
}
Symbol 200 Button
on (release) {
getURL ("http://www.t45ol.com/", "_blank");
}
Symbol 202 Button
on (release) {
getURL ("http://www.t45ol.com/play_flash.php?ID=1038", "_blank");
}
Symbol 206 Button
on (release) {
getURL ("http://www.frontnetwork.net", "_blank");
}
Symbol 208 MovieClip Frame 1
stop();
errorMsg = "";
i = 0;
alien_mc.onEnterFrame = function () {
i = i + 0.25;
i = i % 2;
this.gotoAndStop(i + 1);
};