Frame 1
_parent._visible = false;
Frame 2
_quality = "MEDIUM";
this.stop();
Frame 10
_root.bgmBox.bgmStop();
bgm = new Sound(this);
bgm.stop();
delete bgm;
this.play();
Frame 11
_quality = "HIGH";
this.stop();
Frame 20
_parent._visible = false;
_quality = "HIGH";
bgm = new Sound(this);
bgm.stop();
delete bgm;
Frame 21
this.stop();
this.onEnterFrame = function () {
down = _root.game.box.downNormal;
};
Frame 50
bgm = new Sound();
bgm.stop();
delete bgm;
Frame 60
_root.gotoAndStop("addressError");
Symbol 23 MovieClip [downIcon2] Frame 1
function checkUnder() {
i = py;
while (i > -1) {
if (_root.game.checkNode(px, i) != 0) {
i = i + 1;
downY = (py - i) * 20;
return(undefined);
}
i--;
}
i = 0;
downY = py * 20;
}
downSpeed = 10;
this.checkUnder();
this.onEnterFrame = function () {
_y = (_y + downSpeed);
downY = downY - downSpeed;
if (downY == 0) {
_root.game.setBoxData(px, i, id);
_root.game.userActionEnd();
var _local3 = new Sound();
_local3.attachSound("\uFF71\uFF72\uFF83\uFF91\u63A5\u5730.wav");
_local3.start(0, 1);
this.removeMovieClip();
}
};
this.stop();
Symbol 23 MovieClip [downIcon2] Frame 12
this.stop();
Symbol 29 MovieClip Frame 1
gotoAndStop(_parent._parent._currentFrame);
Symbol 30 MovieClip Frame 1
gotoAndPlay(Math.round(Math.random() * 340) + 1);
Symbol 32 MovieClip [downIcon] Frame 1
function checkUnder() {
i = py;
while (i > -1) {
if (_root.game.checkNode(px, i) != 0) {
i = i + 1;
downY = (py - i) * 20;
return(undefined);
}
i--;
}
i = 0;
downY = py * 20;
}
downSpeed = 10;
this.checkUnder();
this.onEnterFrame = function () {
_y = (_y + downSpeed);
downY = downY - downSpeed;
if (downY == 0) {
_root.game.setBoxData(px, i, id);
_root.game.userActionEnd();
var _local3 = new Sound();
_local3.attachSound("\uFF71\uFF72\uFF83\uFF91\u63A5\u5730.wav");
_local3.start(0, 1);
this.removeMovieClip();
}
};
this.stop();
Symbol 32 MovieClip [downIcon] Frame 16
this.stop();
Symbol 41 MovieClip [icon2] Frame 11
this.stop();
Symbol 41 MovieClip [icon2] Frame 35
this.removeMovieClip();
Symbol 42 MovieClip [icon] Frame 12
this.stop();
Symbol 42 MovieClip [icon] Frame 37
this.removeMovieClip();
Symbol 43 MovieClip [box] Frame 1
function downExe() {
if (this.setCheck()) {
py0--;
_y = (_y + down);
}
}
function movement(target) {
if (fastDownFlag == false) {
target.downExe();
}
}
function changePotion(rr) {
var _local1 = potion + rr;
if (_local1 > 3) {
_local1 = _local1 - 4;
} else if (_local1 < 0) {
_local1 = _local1 + 4;
}
return(_local1);
}
function getXYnode2(po) {
node2 = new Object();
node2.x = px0;
node2.y = py0;
switch (po) {
case 0 :
node2.y++;
break;
case 1 :
node2.x++;
break;
case 2 :
node2.y--;
break;
case 3 :
node2.x--;
}
return(node2);
}
function rotationCheck(nt) {
var _local3 = new Object();
var _local4 = this.changePotion(nt);
_local3 = this.getXYnode2(_local4);
return(_parent.checkNode(_local3.x, _local3.y));
}
function rotation(rr) {
if (rr == "r") {
if (this.rotationCheck(1) == 0) {
_rotation = (_rotation + 90);
this.icon0._rotation = this.icon0._rotation - 90;
this.icon1._rotation = this.icon1._rotation - 90;
ser.start(0, 1);
potion = this.changePotion(1);
}
} else if (this.rotationCheck(-1) == 0) {
_rotation = (_rotation - 90);
this.icon0._rotation = this.icon0._rotation + 90;
this.icon1._rotation = this.icon1._rotation + 90;
ser.start(0, 1);
potion = this.changePotion(-1);
}
}
function setCheck() {
var _local3;
var _local4;
switch (potion) {
case 0 :
_local3 = 0;
_local4 = 1;
break;
case 1 :
_local3 = 1;
_local4 = 0;
break;
case 2 :
_local3 = 0;
_local4 = -1;
break;
case 3 :
_local3 = -1;
_local4 = 0;
}
var _local6 = _parent.checkEnd(px0, py0);
var _local5 = _parent.checkEnd(px0 + _local3, py0 + _local4);
if ((_local6 == false) && (_local5 == false)) {
_parent.setBoxData(px0, py0, pc0);
_parent.setBoxData(px0 + _local3, py0 + _local4, pc1);
_parent.userActionEnd();
this.setCheckSub();
} else if (_local6 == false) {
_parent.setBoxData(px0, py0, pc0);
if (potion == 0) {
_parent.setBoxData(px0 + _local3, py0 + _local4, pc1);
_parent.userActionEnd();
} else {
_parent.setDownBox(px0 + _local3, py0 + _local4, pc1);
}
this.setCheckSub();
} else if (_local5 == false) {
_parent.setBoxData(px0 + _local3, py0 + _local4, pc1);
if (potion == 2) {
_parent.setBoxData(px0, py0, pc0);
_parent.userActionEnd();
} else {
_parent.setDownBox(px0, py0, pc0);
}
this.setCheckSub();
} else {
return(true);
}
}
function setCheckSub() {
var _local2 = new Sound();
_local2.attachSound("\uFF71\uFF72\uFF83\uFF91\u63A5\u5730.wav");
_local2.start(0, 1);
clearInterval(movement_interID);
this.removeMovieClip();
}
function interfaceGetKey() {
if (Key.isDown(keyConf.right)) {
if ((rightTriga == 3) || (rightTriga < 0)) {
if (potion == 0) {
if ((_parent.checkNode(px0 + 1, py0) == 0) && (_parent.checkNode(px0 + 1, py0 + 1) == 0)) {
px0++;
_x = (_x + xmovement);
}
} else if (potion == 1) {
if (_parent.checkNode(px0 + 2, py0) == 0) {
px0++;
_x = (_x + xmovement);
}
} else if (potion == 2) {
if ((_parent.checkNode(px0 + 1, py0) == 0) && (_parent.checkNode(px0 + 1, py0 - 1) == 0)) {
px0++;
_x = (_x + xmovement);
}
} else if (_parent.checkNode(px0 + 1, py0) == 0) {
px0++;
_x = (_x + xmovement);
}
move_se.start(0, 1);
rightTriga--;
} else {
rightTriga--;
}
} else {
rightTriga = 3;
}
if (Key.isDown(keyConf.left)) {
if ((leftTriga == 3) || (leftTriga < 0)) {
if (potion == 0) {
if ((_parent.checkNode(px0 - 1, py0) == 0) && (_parent.checkNode(px0 - 1, py0 + 1) == 0)) {
px0--;
_x = (_x - xmovement);
}
} else if (potion == 1) {
if (_parent.checkNode(px0 - 1, py0) == 0) {
px0--;
_x = (_x - xmovement);
}
} else if (potion == 2) {
if ((_parent.checkNode(px0 - 1, py0) == 0) && (_parent.checkNode(px0 - 1, py0 - 1) == 0)) {
px0--;
_x = (_x - xmovement);
}
} else if (_parent.checkNode(px0 - 2, py0) == 0) {
px0--;
_x = (_x - xmovement);
}
leftTriga--;
move_se.start(0, 1);
} else {
leftTriga--;
}
} else {
leftTriga = 3;
}
if (Key.isDown(keyConf.turnRight)) {
if (trTriga) {
this.rotation("r");
trTriga = false;
}
} else {
trTriga = true;
}
if (Key.isDown(keyConf.turnLeft)) {
if (tlTriga) {
this.rotation("l");
tlTriga = false;
}
} else {
tlTriga = true;
}
if ((fastDownFlag = Key.isDown(keyConf.down) && (downKeyFlag))) {
_root.game.addScore(gameLv);
this.downExe();
}
}
function clearInter() {
clearInterval(movement_interID);
}
downNormal = (1500 - (gameLv * 30)) + 30;
if (downNormal > 50) {
downFast = 50;
downKeyFlag = true;
} else {
downKeyFlag = false;
}
wait = downNormal;
keyConf = new Object();
keyConf.turnRight = 90;
keyConf.turnLeft = 88;
keyConf.down = 40;
keyConf.right = 39;
keyConf.left = 37;
activeFlag = true;
fastDownFlag = false;
down = 20;
xmovement = 20;
potion = 0;
yMin = -10;
this.gotoAndStop("s" + iconType);
this.icon0.gotoAndStop(pc0);
this.icon1.gotoAndStop(pc1);
py0 = 14;
px0 = 4;
py1 = 15;
px1 = 4;
rightTriga = 3;
leftTriga = 3;
trTriga = true;
tlTriga = true;
rigthWait = 0;
leftWait = 0;
ser = new Sound();
ser.attachSound("chari13_a");
move_se = new Sound();
move_se.attachSound("\u79FB\u52D5.wav");
this.onEnterFrame = function () {
if (activeFlag) {
this.interfaceGetKey();
}
};
clearInterval(movement_interID);
_global.movement_interID = setInterval(movement, wait, this);
this.onUnload = function () {
clearInterval(movement_interID);
};
Symbol 51 Button
on (release) {
_root.gotoAndPlay("game");
}
Symbol 56 Button
on (release) {
_root.game.toTitle();
}
Symbol 75 MovieClip [boxWait] Frame 20
this.removeMovieClip();
Symbol 83 MovieClip [dis_レディ] Frame 89
_root.game.gameStart();
this.removeMovieClip();
Symbol 90 MovieClip Frame 1
chain = _parent.chain;
Symbol 92 MovieClip Frame 1
s = "+" + _parent.gScore;
Symbol 93 MovieClip [dis_chain] Frame 22
this.removeMovieClip();
Symbol 128 Button
on (release) {
_root.gotoAndPlay("title");
}
Instance of Symbol 99 MovieClip in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
totalBytes = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loadedBytes = _root.getBytesLoaded();
this._xscale = (loadedBytes / totalBytes) * 100;
if (loadedBytes == totalBytes) {
_parent.gotoAndStop("downLoadEnd");
}
}
Symbol 129 MovieClip Frame 10
this.stop();
Symbol 129 MovieClip Frame 20
this.stop();
Symbol 131 MovieClip Frame 2
url = _url;
ans = url.indexOf("http");
trueUrl = "http://nextframe.jp/flash/misuti_pazuru/misuOti.swf";
trueUrl2 = "http://www.nextframe.jp/flash/misuti_pazuru/misuOti.swf";
if (ans != -1) {
if ((_url == trueUrl) || (_url == trueUrl2)) {
} else {
_root.onEnterFrame = function () {
_root.gotoAndStop("addressError");
};
_root.gotoAndStop("addressError");
}
}
this.stop();
Symbol 137 MovieClip Frame 1
if (a == undefined) {
a = 1;
gotoAndPlay(Math.round(Math.random() * 28) + 1);
}
Symbol 147 Button
on (release) {
getURL ("http://nextframe.jp", _blank);
}
Symbol 150 Button
on (release) {
this.gotoAndPlay("credit");
}
Symbol 153 Button
on (release) {
this.gotoAndPlay("howto");
}
Symbol 156 Button
on (release) {
this.gotoAndPlay("game");
}
Symbol 163 Button
on (press) {
getURL ("http://mitsumotocs.com", _blank);
}
Symbol 165 MovieClip Frame 1
if (a == undefined) {
a = 1;
gotoAndPlay(Math.round(Math.random() * 57) + 1);
}
Symbol 167 MovieClip Frame 1
if (a == undefined) {
a = 1;
gotoAndPlay(Math.round(Math.random() * 57) + 1);
}
Symbol 178 Button
on (release) {
getURL ("http://www12.plala.or.jp/nextframe/", _blank);
}
Symbol 183 Button
on (release) {
_parent.gotoAndPlay("edit");
}
Symbol 186 Button
on (release) {
_global.custumMode = false;
_root.gotoAndPlay("game");
}
Symbol 189 Button
on (release) {
_global.custumMode = true;
_root.gotoAndPlay("game");
}
Symbol 192 Button
on (release) {
_parent.gotoAndPlay("gameEnd");
}
Symbol 194 Button
on (release) {
_root.gotoAndPlay("game");
}
Symbol 195 Button
on (release) {
_parent.gotoAndPlay("editEnd");
}
Symbol 204 Button
on (release) {
_global.custumMode = true;
_root.gotoAndPlay("game");
}
Symbol 213 Button
on (release) {
this.changeData("cusDeleteNo", 99, 2, 1);
}
Symbol 214 Button
on (release) {
this.changeData("cusColorNo", 7, 2, 1);
}
Symbol 215 Button
on (release) {
this.changeData("cusIconType", 1, 0, 1);
}
Symbol 216 Button
on (release) {
this.changeData("cusLv", 50, 1, 1);
}
Symbol 217 Button
on (release) {
this.changeData("cusDeleteNo", 99, 2, -1);
}
Symbol 218 Button
on (release) {
this.changeData("cusColorNo", 7, 2, -1);
}
Symbol 219 Button
on (release) {
this.changeData("cusIconType", 1, 0, -1);
}
Symbol 220 Button
on (release) {
this.changeData("cusLv", 50, 1, -1);
}
Symbol 223 Button
on (release) {
this.changeData("cusQuality", 2, 0, 1);
}
Symbol 224 Button
on (release) {
this.changeData("cusQuality", 2, 0, -1);
}
Symbol 225 MovieClip Frame 1
function reset() {
cusDeleteNo = so.data.cusDeleteNo;
cusColorNo = so.data.cusColorNo;
if (so.data.cusIconType == 0) {
cusIconType = "\u3044\u3044\u3048";
} else {
cusIconType = "\u306F\u3044";
}
cusLv = so.data.cusLv;
if (so.data.cusQuality == 0) {
cusQuality = "\u4F4E\u3044\u3002\u8EFD\u3044\u305E";
} else if (so.data.cusQuality == 1) {
cusQuality = "\u666E\u901A\u3002";
} else {
cusQuality = "\u6700\u9AD8\u3002\u91CD\u3044\u304B\u3082";
}
}
function changeData(cName, cMax, cMin, c) {
if ((so.data[cName] != cMax) && (c > 0)) {
so.data[cName]++;
}
if ((so.data[cName] > cMin) && (c < 0)) {
so.data[cName]--;
}
this.reset();
}
so = SharedObject.getLocal("puzzleTest");
if (so.data.cusLv == undefined) {
cusDeleteNo = (so.data.cusDeleteNo = 4);
cusColorNo = (so.data.cusColorNo = 4);
cusIconType = (so.data.cusIconType = 0);
cusLv = (so.data.cusLv = 1);
cusQuality = (so.data.cusQuality = 1);
} else {
cusDeleteNo = so.data.cusDeleteNo;
cusColorNo = so.data.cusColorNo;
cusIconType = so.data.cusIconType;
cusLv = so.data.cusLv;
cusQuality = so.data.cusQuality;
}
this.reset();
Symbol 234 Button
on (release) {
_parent.gotoAndPlay("creditEnd");
}
Symbol 248 Button
on (release) {
_parent.gotoAndPlay("howto2");
}
Symbol 255 Button
on (release) {
_parent.gotoAndPlay("howtoEnd");
}
Symbol 257 MovieClip Frame 2
this.stop();
Symbol 257 MovieClip Frame 25
this.stop();
Symbol 257 MovieClip Frame 35
this.gotoAndPlay("first");
Symbol 257 MovieClip Frame 55
this.stop();
Symbol 257 MovieClip Frame 65
this.gotoAndStop("gameEnd");
Symbol 257 MovieClip Frame 85
this.stop();
Symbol 257 MovieClip Frame 95
this.gotoAndPlay("first");
Symbol 257 MovieClip Frame 115
this.stop();
Symbol 257 MovieClip Frame 129
this.stop();
Symbol 257 MovieClip Frame 140
this.gotoAndPlay("first");
Symbol 259 MovieClip Frame 17
this.stop();
Symbol 281 MovieClip Frame 2
function getFps() {
time_count = time_count + 1;
if ((getTimer() - old_timer) >= time) {
tFps = Math.floor((time_count * 1000) / (getTimer() - old_timer));
fps = (tFps + "/") + fr;
old_timer = getTimer();
time_count = 0;
avFps = Math.floor(((avFps + tFps) / 2) * 10) / 10;
}
}
fr = 30;
time = 1000;
time_count = 0;
avFps = fr;
old_timer = getTimer();
this.onEnterFrame = function () {
this.getFps();
};
this.stop();
Symbol 285 Button
on (release) {
this.game.toTitle();
}
Symbol 308 MovieClip Frame 1
function gameStart() {
this.attachBox();
this.changePhase("user");
}
function gameLvUp() {
if (_global.gameLv >= 50) {
_root.game.addScore(1000000);
_root.nextDis.lvDis.gotoAndPlay("lvMax");
} else {
_global.gameLv++;
_root.nextDis.lvDis.lv = gameLv;
_root.nextDis.lvDis.play();
}
}
function mainThread() {
if (wait == 0) {
switch (gamePhase) {
case "wait" :
break;
case "user" :
break;
case "allCheck" :
this.deleteCheck();
break;
case "checkFloat" :
this.checkFloat();
break;
case "allDown" :
this.allDown();
break;
case "newItem" :
this.attachBox();
this.changePhase("user");
}
} else {
wait--;
}
}
function changePhase(np) {
gamePhase = np;
}
function addScore(s) {
score = score + Math.round(s);
var _local3 = String(score);
var _local2 = "";
i = scoreMaxNumber - _local3.length;
while (i > 0) {
_local2 = _local2 + "0";
i--;
}
_local2 = _local2 + _local3;
_root.charDis1.score = _local2;
}
function nextBox(nd) {
if (nd == 1) {
this.changePhase("allCheck");
}
}
function userActionEnd() {
this.changePhase("allCheck");
}
function attachBox() {
chain = 0;
var _local2 = "box";
this.attachMovie("box", _local2, 50);
this[_local2]._x = 90;
this[_local2]._y = -290;
this[_local2].iconType = iconType;
var _local4 = nextPopAry.shift();
var _local3 = nextPopAry.shift();
this[_local2].pc0 = _local4;
this[_local2].pc1 = _local3;
this.nextPop();
}
function attachBoxWait(chain) {
_root.attachMovie("boxWait", "boxWait", 99);
_root.boxWait._x = 1000;
}
function nextPop() {
nextPopAry.push(Math.floor(Math.random() * colorNo) + 1);
nextPopAry.push(Math.floor(Math.random() * colorNo) + 1);
_root.next0[0].gotoAndStop(nextPopAry[0]);
_root.next0[1].gotoAndStop(nextPopAry[1]);
_root.next1[0].gotoAndStop(nextPopAry[2]);
_root.next1[1].gotoAndStop(nextPopAry[3]);
}
function newArray(n, tx, ty) {
this[n] = new Array();
x = 0;
while (x < tx) {
this[n][x] = new Array();
y = 0;
while (y < ty) {
this[n][x][y] = 0;
y++;
}
x++;
}
}
function copyArray(ary1, ary2) {
var _local6 = this[ary1][0].length;
var _local3 = 0;
while (_local3 < this[ary1].length) {
var _local2 = 0;
while (_local2 < this[ary1][_local3].length) {
this[ary2][_local3][_local2] = this[ary1][_local3][_local2];
_local2++;
}
_local3++;
}
}
function traceAry(n) {
var _local2 = 0;
while (_local2 < this[n].length) {
_local2++;
}
}
function deleteCheck() {
var _local7;
var _local6;
var _local4;
var _local8 = false;
var _local10 = new Array();
var _local9 = 0;
this.copyArray("boxData", "boxDataChecked");
_local6 = 0;
while (_local6 < maxX) {
_local4 = 0;
while (_local4 < maxY) {
_local7 = boxDataChecked[_local6][_local4];
if (_local7 > 0) {
nowC = 0;
deleteAry = new Array();
this.scaning(_local6, _local4, _local7);
if (nowC >= deleteNo) {
_local8 = true;
var _local3 = Math.round(((50 * (nowC * 1.5)) * (gameLv / 5)) * Math.pow(chain + 2, 3));
this.addScore(_local3);
oneAddScore = oneAddScore + _local3;
this.deleteItem();
if (chain > 0) {
this.showChain(chain + 1, _local3);
}
wait = 25;
}
}
_local4++;
}
_local6++;
}
var _local5 = 0;
while (_local5 < maxX) {
var _local2 = 0;
while (_local2 < maxY) {
if (boxDataChecked[_local5][_local2] > -1) {
boxData[_local5][_local2] = 0;
}
_local2++;
}
_local5++;
}
if (_local8 == false) {
wait = 5;
if (oneAddScore > maxOneAddScore) {
maxOneAddScore = oneAddScore;
}
oneAddScore = 0;
this.changePhase("newItem");
} else {
chain++;
if (chain > maxChain) {
maxChain = chain;
}
this.attachBoxWait(chain);
this.changePhase("checkFloat");
}
}
function showChain(c, s) {
_root.attachMovie("dis_chain", "chain", 20001);
_root.chain._x = 275;
_root.chain._y = 225;
_root.chain.chain = chain;
_root.chain.gScore = s;
}
function scaning(x, y, c) {
boxDataChecked[x][y] = -1;
nowC++;
deleteAry.push(x);
deleteAry.push(y);
if (((x + 1) < maxX) && (boxDataChecked[x + 1][y] == c)) {
scaning(x + 1, y, c);
}
if (((y + 1) < maxY) && (boxDataChecked[x][y + 1] == c)) {
scaning(x, y + 1, c);
}
if (((x - 1) > -1) && (boxDataChecked[x - 1][y] == c)) {
scaning(x - 1, y, c);
}
if (((y - 1) > -1) && (boxDataChecked[x][y - 1] == c)) {
scaning(x, y - 1, c);
}
}
function deleteItem() {
i = 0;
while (i < deleteAry.length) {
boxDataChecked[deleteAry[i]][deleteAry[i + 1]] = 0;
var _local2 = (deleteAry[i] + "_") + deleteAry[i + 1];
this[_local2].gotoAndPlay("remove");
i = i + 2;
}
}
function checkFloat() {
downList = new Array();
x = 0;
while (x < maxX) {
floating = false;
floatLength = 0;
y = 0;
while (y < maxY) {
c = boxData[x][y];
if (c != 0) {
if (floating == true) {
downList.push(x);
downList.push(y);
downList.push(floatLength * 20);
downList.push(floatLength);
break;
}
} else {
floatLength++;
floating = true;
}
y++;
}
x++;
}
if (downList[0] == undefined) {
this.changePhase("allCheck");
} else {
this.changePhase("allDown");
}
}
function allDown() {
i = 0;
while (i < downList.length) {
var _local2 = downList[i];
var _local4 = downList[i + 1];
i2 = _local4;
while (i2 < maxY) {
this[(_local2 + "_") + i2]._y = this[(_local2 + "_") + i2]._y + 10;
i2++;
}
downList[i + 2] = downList[i + 2] - 10;
if (downList[i + 2] == 0) {
var _local3 = downList[i + 3];
i2 = _local4;
while (i2 < maxY) {
var _local5 = boxData[_local2][i2];
boxData[_local2][i2] = 0;
boxData[_local2][i2 - _local3] = _local5;
this[(_local2 + "_") + i2]._name = [(_local2 + "_") + (i2 - _local3)];
this[(_local2 + "_") + (i2 - _local3)].gotoAndPlay(1);
i2++;
}
downList.splice(i, 4);
}
i = i + 4;
}
if (downList[0] == undefined) {
var _local6 = new Sound();
_local6.attachSound("\uFF71\uFF72\uFF83\uFF91\u63A5\u5730.wav");
_local6.start(0, 1);
this.changePhase("checkFloat");
}
}
function checkEnd(px, py) {
if (boxData[4][14] != 0) {
this.gameover();
} else {
if ((boxData[px][py - 1] != 0) || (py == 0)) {
return(false);
}
return(true);
}
}
function checkNode(px, py) {
return(boxData[px][py]);
}
function gameover() {
if (gameFlag != 0) {
gameFlag = 0;
this.box.clearInter;
this.box.removeMovieClip();
clearInterval(gameLvUp_interID);
_root.attachMovie("dis_\u30B2\u30FC\u30E0\u30AA\u30FC\u30D0\u30FC", "gameover", 20000);
_root.gameover._x = 275;
_root.gameover._y = 200;
_root.gameover.lv = gameLv;
_root.gameover.maxChain = maxChain;
_root.gameover.maxOneAddScore = maxOneAddScore;
_root.gameover.s = score;
}
}
function gameReady() {
_root.attachMovie("dis_\u30EC\u30C7\u30A3", "gamestart", 20000);
_root.gamestart._x = 275;
_root.gamestart._y = 200;
}
function toTitle() {
clearInterval(gameLvUp_interID);
_root.gameover.removeMovieClip();
_root.gamestart.removeMovieClip();
_root.gotoAndPlay("title");
}
function setBoxData(px, py, id) {
boxData[px][py] = id;
var _local2 = ([px] + "_") + [py];
this.attachMovie(iconName, _local2, deepIcon);
this[_local2]._x = (px * 20) + 10;
this[_local2]._y = ((-py) * 20) - 10;
this[_local2].icon.gotoAndStop(id);
deepIcon++;
}
function setDownBox(px, py, id) {
this.attachMovie(downIconName, deepIcon, deepIcon);
this[deepIcon]._x = (px * 20) + 10;
this[deepIcon]._y = ((-py) * 20) - 10;
this[deepIcon].px = px;
this[deepIcon].py = py;
this[deepIcon].id = id;
this[deepIcon].icon.gotoAndStop(id);
deepIcon++;
}
function traceBoxDataGraph() {
i = 0;
while (i < 10) {
i2 = 0;
while (i2 < 17) {
if (boxData[i][i2] != 0) {
var _local4;
var _local3;
var _local2 = "g" + deep2;
_root.boxMap.attachMovie("\u78BA\u8A8D\u7528\u30DC\u30C3\u30AF\u30B9", _local2, deep2);
_root.boxMap[_local2]._x = (i * 20) + 10;
_root.boxMap[_local2]._y = ((-i2) * 20) - 10;
deep2++;
}
i2++;
}
i++;
}
}
function traceBoxData() {
i = 0;
while (i < 10) {
var _local1 = boxData[i];
i++;
}
}
nowPx = 4;
nowPy = 14;
maxX = 10;
maxY = 16;
so = SharedObject.getLocal("puzzleTest");
if (custumMode == true) {
if (so.data.cusLv == undefined) {
deleteNo = (so.data.cusDeleteNo = 4);
colorNo = (so.data.cusColorNo = 4);
iconType = (so.data.cusIconType = 0);
cusLv = (so.data.cusLv = 1);
so.data.cusQuality = 1;
} else {
deleteNo = so.data.cusDeleteNo;
colorNo = so.data.cusColorNo;
_global.gameLv = so.data.cusLv;
}
_root.bgmBox.bgmChange("bgm2");
} else {
deleteNo = 4;
colorNo = 4;
_global.gameLv = 1;
_root.bgmBox.bgmChange("bgm1");
}
if (so.data.cusIconType == undefined) {
iconType = 0;
} else {
iconType = so.data.cusIconType;
}
if (iconType == 0) {
iconName = "icon";
downIconName = "downIcon";
} else {
iconName = "icon2";
downIconName = "downIcon2";
}
if (so.data.cusQuality == 2) {
_quality = "HIGH";
} else if (so.data.cusQuality == 1) {
_quality = "MEDIUM";
} else {
_quality = "LOW";
}
nd0 = false;
nd1 = false;
scoreMaxNumber = 15;
score = 0;
maxChain = 0;
maxOneAddScore = 0;
this.addScore(0);
_root.nextDis.lvDis.lv = gameLv;
this.gameReady();
gamePhase = "wait";
wait = 0;
gameLvUp_interID = setInterval(gameLvUp, 30000);
this.onEnterFrame = function () {
this.mainThread();
};
deep = 100;
nextPopAry = new Array();
n = "s" + _root.game.iconType;
_root.next0.gotoAndStop(n);
_root.next1.gotoAndStop(n);
delete n;
this.nextPop();
this.nextPop();
this.newArray("boxData", 10, 17);
this.newArray("boxDataTemp", 10, 17);
this.newArray("boxDataRanking", 10, 17);
this.newArray("boxDataChecked", 10, 17);
oneAddScore = 0;
nowC = 0;
deleteAry = new Array();
checkedAry = new Array();
downList = new Array();
deepIcon = 200;
deep2 = 100;
Symbol 335 MovieClip Frame 1
this.stop();
Symbol 335 MovieClip Frame 33
this.gotoAndStop(1);