// [Action in Frame 2] function Drgpress() { var _loc2 = new Array(); _loc2[0] = this._x; _loc2[1] = this._y; if (this._x > x5) { pressArr[numArr++] = _loc2; } // end if startDrag (this, false, x0, y0, x1, y3); delete this.onRollOut; delete this.onRollOver; this._xscale = 100; this._yscale = 100; this._alpha = 50; this.swapDepths(9999); this.onPress = function () { stopDrag (); this._alpha = 100; this.onPress = Drgpress; this.swapDepths(0); if (this._x > x4) { --numArr; this._x = pressArr[numArr][0]; this._y = pressArr[numArr][1]; this._xscale = 50; this._yscale = 50; this._alpha = 80; } else { if (Math.abs(x0 - this._x % 110) <= 55) { this._x = 110 * Math.floor(this._x / 110) + x0; if (this._x > x3) { this._x = x3; } // end if } // end if if (Math.abs(y0 - this._y % 100) <= 50) { this._y = 100 * Math.floor(this._y / 100) + y0; } // end if succ(); } // end else if }; } // End of the function function succ() { var sucnum = 0; for (i = 0; i < 5; i++) { for (j = 0; j < 6; j++) { if (eval(mainArr[i][j])._x != x0 + 110 * j) { sucnum = 1; } // end if if (eval(mainArr[i][j])._y != y0 + 100 * i) { sucnum = 1; } // end if } // end of for } // end of for if (sucnum == 0) { _root.gotoAndStop("two"); } // end if } // End of the function stop (); var mainArr = new Array(5); var copyArr = new Array(); var i; var j; var k = 0; var x0 = 46; var y0 = 82; var x1 = 737; var x2 = x1 + 55; var x3 = x0 + 550; var x4 = x3 + 55; var x5 = x0 + 660; var y3 = y0 + 400; for (i = 0; i < 5; i++) { mainArr[i] = new Array(6); for (j = 0; j < 6; j++) { mainArr[i][j] = "a" + (i + 1) + (j + 1); copyArr[k++] = "a" + (i + 1) + (j + 1); eval(mainArr[i][j])._xscale = 50; eval(mainArr[i][j])._yscale = 50; eval(mainArr[i][j])._alpha = 80; eval(mainArr[i][j])._visible = false; } // end of for } // end of for copyArr.sort(function () { return (Math.round(Math.random()) ? (1) : (-1)); }); var smallY = y0; for (i = 0; i < 20; i++) { eval(copyArr[i])._visible = true; eval(copyArr[i])._x = i % 2 == 1 ? (x1) : (x2); eval(copyArr[i + 20])._x = i % 2 == 1 ? (x1) : (x2); smallY = i % 2 == 1 ? (smallY) : (smallY + 50); if (i == 0) { smallY = smallY - 50; } // end if eval(copyArr[i])._y = smallY; eval(copyArr[i + 20])._y = smallY; } // end of for down.onPress = function () { for (i = 0; i < 20; i++) { if (eval(copyArr[i])._x > x3) { eval(copyArr[i])._visible = false; } // end if } // end of for for (i = 0; i < 10; i++) { eval(copyArr[i + 20])._visible = true; } // end of for }; up.onPress = function () { for (i = 0; i < 20; i++) { eval(copyArr[i])._visible = true; } // end of for for (i = 0; i < 10; i++) { if (eval(copyArr[i + 20])._x > x3) { eval(copyArr[i + 20])._visible = false; } // end if } // end of for }; var xPanduan = 0; for (i = 0; i < 30; i++) { eval(copyArr[i]).onRollOver = function () { this._alpha = 100; }; eval(copyArr[i]).onRollOut = function () { this._alpha = 80; }; eval(copyArr[i]).onPress = Drgpress; } // end of for var pressArr = new Array(); var numArr = 0; playagain.onPress = function () { _root.gotoAndPlay("three"); }; geturl.onPress = function () { getURL("http://xunxian.qq.com/act/a20080110signup/", "_blank"); }; restart.onPress = function () { _root.gotoAndPlay("three"); }; var time_iii = 0; var time_sy = 100; djs.text = time_sy; this.onEnterFrame = function () { ++time_iii; if (time_iii % 12 == 0) { --time_sy; djs.text = time_sy; } // end if if (time_iii > 1200) { delete this.onEnterFrame; _root.gotoAndStop("four"); } // end if };
// [Action in Frame 3] stop (); for (i = 0; i < 5; i++) { for (j = 0; j < 6; j++) { eval(mainArr[i][j]).removeMovieClip(); } // end of for } // end of for
// [Action in Frame 4] for (i = 0; i < 5; i++) { for (j = 0; j < 6; j++) { eval(mainArr[i][j]).removeMovieClip(); } // end of for } // end of for