Frame 2
if (getBytesLoaded() == getBytesTotal()) {
lso_so = SharedObject.getLocal("overfif");
if (lso_so.data.score == undefined) {
lso_so.data.score = 0;
}
gotoAndStop ("skt");
} else {
gotoAndPlay (1);
}
Frame 10
function traceSys(code) {
trace(code);
}
Frame 20
gameLevel = 0;
gameScore = 0;
Symbol 45 MovieClip [reco_alpMc] Frame 1
function scrollMc(num) {
var _local1 = wordNum[myCode];
_local1 = _local1 + num;
if (_local1 == 0) {
_local1 = 26;
} else if (_local1 == 27) {
_local1 = 1;
}
var _local2 = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
myCode = _local2[_local1 - 1];
mc.gotoAndStop(wordNum[myCode]);
gotoAndPlay (2);
}
var wordNum = {A:1, B:2, C:3, D:4, E:5, F:6, G:7, H:8, I:9, J:10, K:11, L:12, M:13, N:14, O:15, P:16, Q:17, R:18, S:19, T:20, U:21, V:22, W:23, X:24, Y:25, Z:26};
if (myCode == undefined) {
mc.gotoAndStop(27);
gotoAndPlay ("no");
} else {
mc.gotoAndStop(wordNum[myCode]);
gotoAndPlay (2);
}
Symbol 45 MovieClip [reco_alpMc] Frame 5
stop();
Symbol 45 MovieClip [reco_alpMc] Frame 18
this.removeMovieClip();
Symbol 50 MovieClip Frame 6
stop();
Symbol 54 MovieClip Frame 6
stop();
Symbol 58 MovieClip Frame 6
stop();
Symbol 62 MovieClip Frame 6
stop();
Symbol 66 MovieClip Frame 6
stop();
Symbol 70 MovieClip Frame 6
stop();
Symbol 74 MovieClip Frame 6
stop();
Symbol 78 MovieClip Frame 6
stop();
Symbol 82 MovieClip Frame 6
stop();
Symbol 86 MovieClip Frame 6
stop();
Symbol 89 MovieClip Frame 6
stop();
Symbol 92 MovieClip Frame 6
stop();
Symbol 95 MovieClip Frame 6
stop();
Symbol 98 MovieClip Frame 6
stop();
Symbol 101 MovieClip Frame 6
stop();
Symbol 104 MovieClip Frame 6
stop();
Symbol 107 MovieClip Frame 6
stop();
Symbol 110 MovieClip Frame 6
stop();
Symbol 113 MovieClip Frame 6
stop();
Symbol 116 MovieClip Frame 6
stop();
Symbol 123 MovieClip [numTestMc] Frame 1
function setListNum(num) {
listNum = num;
listNumDisp.gotoAndStop(listNum + 1);
}
Symbol 123 MovieClip [numTestMc] Frame 3
if (myCount == -1) {
gotoAndPlay ("canNot");
return(undefined);
}
if (_parent.pausing == true) {
gotoAndPlay ("fullBreak");
return(undefined);
}
_parent.numMcList.push(this);
if (_parent.numMcList.length > 8) {
_parent.numMcList[0].gotoAndPlay("fullBreak");
_parent.numMcList.shift();
_parent.resetListNum();
}
gotoAndStop ("wait");
Symbol 123 MovieClip [numTestMc] Frame 10
countDisp.gotoAndStop(myCount + 1);
stop();
Symbol 123 MovieClip [numTestMc] Frame 30
this.removeMovieClip();
Symbol 123 MovieClip [numTestMc] Frame 34
this.removeMovieClip();
Symbol 138 MovieClip Frame 10
_parent.countDisp._visible = false;
Symbol 138 MovieClip Frame 14
_parent._parent.attachMovie("gameoverMc", "gameoverMc", 200000);
stop();
Symbol 140 MovieClip Frame 15
stop();
Symbol 141 MovieClip [numMc] Frame 1
function setListNum(num) {
listNum = num;
listNumDisp.gotoAndStop(listNum + 1);
}
function getTama() {
if (_currentframe < 10) {
return(undefined);
}
myCount++;
if (_currentframe > 15) {
return(undefined);
}
gotoAndPlay ("getTama");
countDisp.gotoAndStop(myCount + 1);
}
function sameCheck() {
if (myCount > 50) {
_parent.gameOverSys();
this.gotoAndStop("gameover");
return(undefined);
}
var _local3 = 0;
var _local4 = 0;
if (((myCount % 10) == 0) && (myCount > 0)) {
_local3 = 0;
while (_local3 < _parent.numMcList.length) {
if (_parent.numMcList[_local3] == this) {
_parent.numMcList.splice(_local3, 1);
_local3 = _parent.numMcList.length;
}
_local3++;
}
_local4 = 0;
while (_local4 < _parent.tamaMcList.length) {
_parent.tamaMcList[_local4].mcDelCheck(this);
_local4++;
}
gotoAndPlay ("break");
_parent.resetListNum();
if (myCount == 10) {
_parent.addScore(100, 1, [_x, _y]);
} else {
_parent.addScore(myCount * 100, 1, [_x, _y]);
}
return(undefined);
}
var _local5 = [this];
_local3 = _parent.numMcList.length - 1;
while (_local3 >= 0) {
if (_parent.numMcList[_local3] == this) {
} else if (_parent.numMcList[_local3]._currentframe < 15) {
} else if (_parent.numMcList[_local3].myCount == myCount) {
_local5.push(_parent.numMcList[_local3]);
_parent.numMcList.splice(_local3, 1);
}
_local3--;
}
if (_local5.length == 1) {
return(undefined);
}
_local3 = 0;
while (_local3 < _parent.numMcList.length) {
if (_parent.numMcList[_local3] == this) {
_parent.numMcList.splice(_local3, 1);
_local3 = _parent.numMcList.length;
}
_local3++;
}
_local3 = _local5.length - 1;
while (_local3 >= 0) {
_local4 = 0;
while (_local4 < _parent.tamaMcList.length) {
_parent.tamaMcList[_local4].mcDelCheck(_local5[_local3]);
_local4++;
}
_local5[_local3].gotoAndPlay("break");
_local3--;
}
_parent.resetListNum();
if (myCount < 10) {
_parent.addScore((10 + myCount) * 10, _local5.length, [_x, _y]);
} else if (myCount > 20) {
_parent.addScore(myCount * 100, _local5.length, [_x, _y]);
} else {
_parent.addScore(300 + (myCount * 10), _local5.length, [_x, _y]);
}
}
Symbol 141 MovieClip [numMc] Frame 3
if (myCount == -1) {
gotoAndPlay ("canNot");
return(undefined);
}
if (_parent.pausing == true) {
gotoAndPlay ("fullBreak");
return(undefined);
}
i = 0;
while (i < _parent.numMcList.length) {
if (Math.sqrt(Math.pow(_y - _parent.numMcList[i]._y, 2) + Math.pow(_x - _parent.numMcList[i]._x, 2)) < _width) {
gotoAndPlay ("fullBreak");
return(undefined);
}
i++;
}
_parent.numMcList.push(this);
i = 0;
while (i < _parent.tamaMcList.length) {
_parent.tamaMcList[i].mcAppendCheck(this);
i++;
}
if (_parent.numMcList.length > 8) {
_parent.numMcList[1].myCount = _parent.numMcList[1].myCount + _parent.numMcList[0].myCount;
_parent.numMcList[1]._rotation = (Math.atan2(_parent.numMcList[0]._y - _parent.numMcList[1]._y, _parent.numMcList[0]._x - _parent.numMcList[1]._x) * 180) / Math.PI;
var dist = Math.floor(Math.sqrt(Math.pow(_parent.numMcList[1]._y - _parent.numMcList[0]._y, 2) + Math.pow(_parent.numMcList[1]._x - _parent.numMcList[0]._x, 2)) / 140);
_parent.numMcList[1].gotoAndPlay(Math.max(47, 50 - dist));
i = 0;
while (i < _parent.tamaMcList.length) {
_parent.tamaMcList[i].mcDelCheck(_parent.numMcList[0]);
i++;
}
_parent.numMcList[0].removeMovieClip();
_parent.numMcList.shift();
_parent.resetListNum();
}
_parent.resetListNum();
gotoAndStop ("wait");
Symbol 141 MovieClip [numMc] Frame 10
countDisp.gotoAndStop(myCount + 1);
Symbol 141 MovieClip [numMc] Frame 14
sameCheck();
Symbol 141 MovieClip [numMc] Frame 15
setListNum(listNum);
countDisp.gotoAndStop(myCount + 1);
stop();
if (waitSameCheck == true) {
delete waitSameCheck;
sameCheck();
}
Symbol 141 MovieClip [numMc] Frame 35
this.removeMovieClip();
Symbol 141 MovieClip [numMc] Frame 36
countDisp.gotoAndStop(myCount + 1);
Symbol 141 MovieClip [numMc] Frame 46
this.removeMovieClip();
Symbol 141 MovieClip [numMc] Frame 53
_rotation = 0;
gotoAndStop ("wait");
waitSameCheck = true;
Symbol 141 MovieClip [numMc] Frame 55
countDisp.gotoAndStop(myCount + 1);
play();
Symbol 141 MovieClip [numMc] Frame 63
this.removeMovieClip();
Symbol 141 MovieClip [numMc] Frame 65
countDisp.gotoAndStop(myCount + 1);
Symbol 146 MovieClip [tamaSignMc] Frame 1
function tamaSet() {
if (_parent.pausing == true) {
stop();
_visible = false;
return(undefined);
}
var _local3 = 10;
_parent.attachMovie("tama_speed" + _local3, "tama" + _parent.tamaDepth, _parent.tamaDepth);
_parent["tama" + _parent.tamaDepth].startPos = startPos;
_parent["tama" + _parent.tamaDepth].goalPos = goalPos;
_parent["tama" + _parent.tamaDepth]._rotation = _rotation;
if (checkColor == true) {
_parent["tama" + _parent.tamaDepth].colors = 5;
}
_parent.tamaMcList.push(_parent["tama" + _parent.tamaDepth]);
_parent.tamaDepth++;
tamaCount--;
se = new Sound(this);
se.attachSound("tamahassei_se");
se.start();
if (tamaCount == 0) {
this.removeMovieClip();
}
}
var checkColor = false;
_x = startPos[0];
_y = startPos[1];
_rotation = ((Math.atan2(goalPos[1] - startPos[1], goalPos[0] - startPos[0]) * 180) / Math.PI);
var tamaCount = (Math.floor(Math.random() * 8) + 1);
countDisp.gotoAndStop(tamaCount + 1);
countDisp._rotation = -_rotation;
if (tamaCount == 1) {
countDisp._visible = false;
}
Symbol 146 MovieClip [tamaSignMc] Frame 13
tamaSet();
Symbol 146 MovieClip [tamaSignMc] Frame 15
tamaSet();
Symbol 146 MovieClip [tamaSignMc] Frame 17
tamaSet();
Symbol 146 MovieClip [tamaSignMc] Frame 19
tamaSet();
Symbol 146 MovieClip [tamaSignMc] Frame 21
checkColor = true;
tamaSet();
Symbol 146 MovieClip [tamaSignMc] Frame 23
tamaSet();
Symbol 146 MovieClip [tamaSignMc] Frame 25
tamaSet();
Symbol 146 MovieClip [tamaSignMc] Frame 27
tamaSet();
Symbol 147 MovieClip [addScoreDisp] Frame 1
se = new Sound(this);
if ((num * cou) >= 2000) {
se.attachSound("addScore2_se");
} else {
se.attachSound("addScore1_se");
}
se.start();
var strNum = String(num);
var scList = [];
var i = 0;
var k = 0;
if (cou == 1) {
i = 0;
while (i < strNum.length) {
scList.push(Number(strNum.substr(i, 1)) + 1);
i++;
}
scList.push(12);
i++;
k = i;
while (k < 7) {
scList.push(0);
k++;
}
_x = (_x - (scList.length * 6));
return(undefined);
}
i = 0;
while (i < strNum.length) {
scList.push(Number(strNum.substr(i, 1)) + 1);
i++;
}
scList.push(11);
i++;
scList.push(cou + 1);
i++;
scList.push(12);
i++;
k = i;
while (k < 7) {
scList.push(0);
k++;
}
_x = (_x - (scList.length * 6));
Symbol 147 MovieClip [addScoreDisp] Frame 2
if (scList[0] == 0) {
sc0.stop();
sc0._visible = false;
} else {
sc0.gotoAndStop(scList[0]);
}
Symbol 147 MovieClip [addScoreDisp] Frame 3
if (scList[1] == 0) {
sc1.stop();
sc1._visible = false;
} else {
sc1.gotoAndStop(scList[1]);
}
Symbol 147 MovieClip [addScoreDisp] Frame 4
if (scList[2] == 0) {
sc2.stop();
sc2._visible = false;
} else {
sc2.gotoAndStop(scList[2]);
}
Symbol 147 MovieClip [addScoreDisp] Frame 5
if (scList[3] == 0) {
sc3.stop();
sc3._visible = false;
} else {
sc3.gotoAndStop(scList[3]);
}
Symbol 147 MovieClip [addScoreDisp] Frame 6
if (scList[4] == 0) {
sc4.stop();
sc4._visible = false;
} else {
sc4.gotoAndStop(scList[4]);
}
Symbol 147 MovieClip [addScoreDisp] Frame 7
if (scList[5] == 0) {
sc5.stop();
sc5._visible = false;
} else {
sc5.gotoAndStop(scList[5]);
}
Symbol 147 MovieClip [addScoreDisp] Frame 8
if (scList[6] == 0) {
sc6.stop();
sc6._visible = false;
} else {
sc6.gotoAndStop(scList[6]);
}
Symbol 147 MovieClip [addScoreDisp] Frame 14
this.removeMovieClip();
Symbol 177 MovieClip [timeUpMc] Frame 1
_parent.bgmMc.bgm.stop();
_parent["boardMc" + (_parent.boardList.length - 1)].se.stop();
Symbol 177 MovieClip [timeUpMc] Frame 40
_parent._parent.gotoAndStop("stats");
Symbol 191 MovieClip [getReadyMc] Frame 34
this.removeMovieClip();
Symbol 202 MovieClip [gameoverMc] Frame 1
_parent.bgmMc.bgm.stop();
_parent["boardMc" + (_parent.boardList.length - 1)].se.stop();
Symbol 202 MovieClip [gameoverMc] Frame 41
_parent._parent.gotoAndStop("stats");
Symbol 206 MovieClip [penaltyMc] Frame 11
this.removeMovieClip();
Symbol 209 MovieClip Frame 2
stop();
Symbol 219 MovieClip Frame 7
_parent._parent.removeMovieClip();
Symbol 220 MovieClip Frame 1
if (_parent.colors == 5) {
gotoAndStop (5);
} else {
stop();
}
Symbol 221 MovieClip [tama_speed10] Frame 1
function setFrame(mc, dist) {
if (mc == this) {
targetNumMc = undefined;
_x = goalPos[0];
_y = goalPos[1];
} else {
targetNumMc = mc;
if (Math.abs(goalPos[0] - startPos[0]) > Math.abs(goalPos[1] - startPos[1])) {
_x = mc._x;
_y = (Math.floor(((goalPos[1] - startPos[1]) * (mc._x - startPos[0])) / (goalPos[0] - startPos[0])) + startPos[1]);
} else {
_y = mc._y;
_x = (Math.floor(((mc._y - startPos[1]) * (goalPos[0] - startPos[0])) / (goalPos[1] - startPos[1])) + startPos[0]);
}
}
var _local3 = _totalframes - Math.floor(((_totalframes - unFrames) * dist) / 800);
gotoAndPlay(_local3);
}
function mcAppendCheck(mc) {
hitZone.gotoAndPlay(1);
if (hitZone.hitTest(mc._x, mc._y, true) == false) {
return(undefined);
}
var _local3 = Math.floor(Math.sqrt(Math.pow(mc._y - startPos[1], 2) + Math.pow(mc._x - startPos[0], 2)));
var _local2 = hitMcList.length;
var _local1 = 0;
_local1 = 0;
while (_local1 < hitMcList.length) {
if (_local3 < hitMcList[_local1][1]) {
_local2 = _local1;
_local1 = hitMcList.length;
}
_local1++;
}
var _local4 = (_currentframe - unFrames) * (800 / (_totalframes - unFrames));
_local4 = _local4 - (800 - hitMcList[0][1]);
hitMcList.splice(_local2, 0, [mc, _local3]);
if (_local4 > _local3) {
trace("\u3059\u3067\u306B\u901A\u308A\u8D8A\u3057\u3066\u308B\u306E\u3067\u7121\u8996");
return(undefined);
}
if ((_local2 > 0) && (hitMcList[_local2 - 1][1] > _local4)) {
trace("\u3082\u3063\u3068\u5F3E\u306E\u8FD1\u304F\u306B\u76EE\u6A19\u3042\u308B\u304B\u3089\u7121\u8996");
return(undefined);
}
trace("tamaRest: " + _local4);
trace((("\u4FEE\u6B63: " + hitMcList[_local2][0]) + "/") + (hitMcList[_local2][1] - _local4));
setFrame(hitMcList[_local2][0], Math.floor(hitMcList[_local2][1] - _local4));
}
function mcDelCheck(mc) {
hitZone.gotoAndPlay(1);
if (hitZone.hitTest(mc._x, mc._y, true) == false) {
return(undefined);
}
var _local2 = -1;
var _local1 = 0;
_local1 = 0;
while (_local1 < hitMcList.length) {
if (hitMcList[_local1][0] == mc) {
_local2 = _local1;
_local1 = hitMcList.length;
}
_local1++;
}
var _local4 = (_currentframe - unFrames) * (800 / (_totalframes - unFrames));
_local4 = _local4 - (800 - hitMcList[0][1]);
if (hitMcList[_local2][1] < _local4) {
hitMcList.splice(_local2, 1);
return(undefined);
}
if ((_local2 > 0) && (hitMcList[_local2 - 1][1] > _local4)) {
hitMcList.splice(_local2, 1);
return(undefined);
}
hitMcList.splice(_local2, 1);
setFrame(hitMcList[_local2][0], Math.floor(hitMcList[_local2][1] - _local4));
}
function goalSys() {
if (pausing == false) {
if (targetNumMc != undefined) {
targetNumMc.getTama();
} else {
se = new Sound(this);
se.attachSound("lostball_se");
se.start();
_parent.getLostBall();
}
}
var _local3 = 0;
_local3 = 0;
while (_local3 < _parent.tamaMcList.length) {
if (tamaMcList[_local3] == this) {
tamaMcList.splice(_local3, 1);
_local3 = _parent.tamaMcList.length;
}
_local3++;
}
this.removeMovieClip();
}
function shoumetu() {
pausing = true;
mine.gotoAndStop("kie");
}
_x = startPos[0];
_y = startPos[1];
var hitMcList = [];
var i = 0;
var k = 0;
var distance = 0;
var insertNum = 0;
var targetNumMc;
var roadDistance = 0;
var unFrames = 4;
var pausing = false;
distance = Math.floor(Math.sqrt(Math.pow(goalPos[1] - startPos[1], 2) + Math.pow(goalPos[0] - startPos[0], 2)));
roadDistance = distance;
hitMcList = [[this, distance]];
hitZone.gotoAndPlay(1);
i = 0;
while (i < _parent.numMcList.length) {
if (hitZone.hitTest(_parent.numMcList[i]._x, _parent.numMcList[i]._y, true) == true) {
distance = Math.floor(Math.sqrt(Math.pow(_parent.numMcList[i]._y - startPos[1], 2) + Math.pow(_parent.numMcList[i]._x - startPos[0], 2)));
insertNum = hitMcList.length;
k = 0;
while (k < hitMcList.length) {
if (distance < hitMcList[k][1]) {
insertNum = k;
k = hitMcList.length;
}
k++;
}
hitMcList.splice(insertNum, 0, [_parent.numMcList[i], distance]);
}
i++;
}
if (_parent.pausing == true) {
this.shoumetu();
}
setFrame(hitMcList[0][0], hitMcList[0][1]);
Symbol 221 MovieClip [tama_speed10] Frame 84
goalSys();
Symbol 643 MovieClip [__Packages.recognitionB] Frame 0
class recognitionB
{
function recognitionB () {
return;
}
function getDistance(x1, y1, x2, y2) {
return(Math.sqrt(Math.pow(y2 - y1, 2) + Math.pow(x2 - x1, 2)));
}
function getRotation(x1, y1, x2, y2) {
return((Math.atan2(y2 - y1, x2 - x1) * 180) / Math.PI);
}
function getRadCode(num) {
num = num + 202.5;
var _local1 = ["L", "LU", "U", "RU", "R", "RD", "D", "LD", "L"];
return(_local1[Math.floor(num / 45)]);
}
function ninsiki(posList, firstYusen) {
var _local4 = 0;
var _local3 = 0;
var _local10 = [];
var _local8 = 0;
var _local7 = "";
var _local6 = [];
var _local9 = [];
_local4 = posList.length - 1;
_local3 = posList[_local4].length - 2;
while (_local3 >= 0) {
if (getDistance(posList[_local4][_local3][0], posList[_local4][_local3][1], posList[_local4][_local3 + 1][0], posList[_local4][_local3 + 1][1]) < 2) {
posList[_local4].splice(_local3, 1);
}
_local3--;
}
_local10[_local4] = [];
_local3 = 0;
while (_local3 < (posList[_local4].length - 1)) {
_local8 = Math.floor(getRotation(posList[_local4][_local3][0], posList[_local4][_local3][1], posList[_local4][_local3 + 1][0], posList[_local4][_local3 + 1][1]));
_local7 = getRadCode(_local8);
if (_local6.length == 0) {
_local6.push(_local7);
} else if (_local6[_local6.length - 1] != _local7) {
_local6.push(_local7);
}
_local9.push(_local7);
_local3++;
}
if ((posList[_local4].length > 1) && (getDistance(posList[_local4][0][0], posList[_local4][0][1], posList[_local4][1][0], posList[_local4][1][1]) < 10)) {
posList[_local4].shift();
}
_root.traceSys(_local6);
return(numNinshiki(_local6, _local4, posList, firstYusen));
}
function numNinshiki(list, num, posList, firstYusen) {
_root.traceSys(num + "\u753B\u76EE");
var _local8 = [];
_local8[0] = [["L", "LD", "D", "RD", "R", "RU", "U", "LU", "L"]];
_local8[1] = [["D"]];
_local8[2] = [["RU", "R", "RD", "D", "LD", "R"]];
_local8[3] = [["R", "RD", "D", "LD", "RD", "D", "LD", "L"]];
_local8[4] = [["LD", "R"], ["D"]];
_local8[5] = [["D", "R", "RD", "D", "LD", "L"], ["R"]];
_local8[6] = [["LD", "D", "RD", "R", "RU", "U", "LU", "L"]];
_local8[7] = [["R", "LD", "D"]];
_local8[8] = [["L", "LD", "D", "RD", "D", "LD", "L", "LU", "U", "RU", "U", "LU"]];
_local8[9] = [["LU", "L", "LD", "D", "RD", "R", "RU", "U", "D"]];
_local8[10] = [["P"]];
_local8[11] = [["LD", "RD", "LD", "LU", "RU"]];
_local8[12] = [["L", "LD", "RD", "R", "RU", "D"]];
_local8[13] = [["D"], ["R", "D"]];
_local8[14] = [["D", "R"], ["D"]];
_local8[15] = [["R", "D"]];
_local8[16] = [["D", "RD", "D", "LD", "L"], ["R"]];
var _local13 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1, 8, 9, 7, 4, 7, 5];
var _local2 = 0;
var _local3 = 0;
var _local16 = 0;
var _local17 = 0;
var _local20 = 0;
var _local14 = 0;
var _local9 = 0;
var _local15 = [];
var _local23 = -1;
var _local11 = [posList[0][0][0], posList[0][0][0], posList[0][0][1], posList[0][0][1]];
_local2 = 0;
while (_local2 < posList[0].length) {
_local11[0] = Math.max(posList[0][_local2][0], _local11[0]);
_local11[1] = Math.min(posList[0][_local2][0], _local11[1]);
_local11[2] = Math.max(posList[0][_local2][1], _local11[2]);
_local11[3] = Math.min(posList[0][_local2][1], _local11[3]);
_local2++;
}
_local2 = 0;
while (_local2 < _local8.length) {
if (_local8[_local2][num] == undefined) {
} else {
_local9 = 0;
_local16 = 0;
_local17 = 0;
_local20 = 0;
_local14 = 0;
_local3 = 0;
while (_local3 < _local8[_local2][num].length) {
if (_local8[_local2][num][_local3] == list[_local9]) {
_local9++;
_local14++;
} else if (_local8[_local2][num][_local3] == list[_local9 + 1]) {
_local9 = _local9 + 2;
_local14++;
_local16++;
} else if (_local8[_local2][num][_local3] == list[_local9 + 2]) {
_local9 = _local9 + 3;
_local14++;
_local16 = _local16 + 2;
} else {
_local20++;
}
if (_local9 >= list.length) {
_local17 = (_local8[_local2][num].length - 1) - _local3;
_local3 = _local8[_local2][num].length;
}
_local3++;
}
_local17 = _local17 + (list.length - _local9);
_local15.push([_local2, _local16, _local17, _local20, _local14]);
}
_local2++;
}
_root.traceSys(_local15);
var _local4 = [];
var _local7 = 0;
var _local19 = 0;
_local2 = 0;
while (_local2 < _local15.length) {
if (_local15[_local2][4] > 0) {
_local7 = 100;
} else {
_local7 = 0;
}
_local7 = _local7 - _local15[_local2][3];
_local7 = _local7 - (_local15[_local2][1] * 3);
_local7 = _local7 - (_local15[_local2][2] * 10);
_local19 = _local4.length;
_local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3][1] < _local7) {
_local19 = _local3;
_local3 = _local4.length;
}
_local3++;
}
_local4.splice(_local19, 0, [_local15[_local2][0], _local7]);
_local2++;
}
_root.traceSys("\u7B2C\u4E00\u63A1\u70B9" + _local4);
if (num > 0) {
if (firstYusen == -1) {
_root.traceSys("\u30D0\u30B0\uFF1A\uFF12\u753B\u76EE\u3084\u306E\u306BfirstYusen\u304C-1\u306B\u306A\u3063\u3066\u308B");
}
_local23 = _local13[firstYusen];
_local2 = 0;
while (_local2 < _local4.length) {
if (_local4[_local2][0] == firstYusen) {
if (_local4[0][1] >= 90) {
} else {
_local23 = -1;
}
}
_local2++;
}
if (_local23 == 4) {
var _local18 = [(posList[1][0][0] + posList[1][posList[1].length - 1][0]) / 2, posList[1][0][1], posList[1][0][1]];
_local2 = 0;
while (_local2 < posList[1].length) {
_local18[1] = Math.max(posList[1][_local2][1], _local18[1]);
_local18[2] = Math.min(posList[1][_local2][1], _local18[2]);
_local2++;
}
if ((((_local18[0] > _local11[1]) && (_local18[0] < _local11[0])) && (_local18[2] < _local11[2])) && (_local18[1] > _local11[2])) {
} else {
_local23 = -1;
}
} else if (_local23 == 5) {
if ((Math.abs(posList[0][0][0] - posList[1][0][0]) > 20) || (Math.abs(posList[0][0][1] - posList[1][0][1]) > 30)) {
_local23 = -1;
}
} else if ((_local23 == 7) && (_local4[0][0] == 13)) {
if ((Math.abs(posList[0][0][0] - posList[1][0][0]) > 15) || (Math.abs(posList[0][0][1] - posList[1][0][1]) > 15)) {
_local23 = -1;
}
}
var _local24 = true;
return([_local23, _local24, firstYusen]);
}
_local7 = 0;
if (num == 0) {
_local2 = 0;
while (_local2 < _local4.length) {
if (_local13[_local4[_local2][0]] == 1) {
if ((posList[0][posList[0].length - 1][1] - posList[0][0][1]) < 30) {
_local7 = _local2 + 1;
} else {
_local2 = _local4.length;
}
} else if (_local13[_local4[_local2][0]] == 2) {
if ((list[list.length - 1] != "R") && (list[list.length - 2] != "R")) {
_local7 = _local2 + 1;
} else {
_local2 = _local4.length;
}
} else if (_local13[_local4[_local2][0]] == 4) {
if ((((list[0] != "D") && (list[0] != "LD")) && (list[1] != "D")) && (list[1] != "LD")) {
_local7 = _local2 + 1;
} else {
_local2 = _local4.length;
}
} else if (_local13[_local4[_local2][0]] == 5) {
if ((list[0] != "D") && (list[0] != "LD")) {
_local7 = _local2 + 1;
} else if (list[list.length - 1] == "RU") {
_local7 = _local2 + 1;
} else {
_local2 = _local4.length;
}
} else if ((_local13[_local4[_local2][0]] == 7) && ((_local4[_local2][0] == 7) || (num == 1))) {
if ((list[0] != "R") && (list[1] != "R")) {
_local7 = _local2 + 1;
} else if (list[list.length - 1] == "R") {
_local7 = _local2 + 1;
} else {
_local2 = _local4.length;
}
} else if (_local13[_local4[_local2][0]] == 8) {
var _local12 = 0;
_local3 = 0;
while (_local3 < (posList[0].length - 1)) {
if (((_local12 % 2) == 0) && (posList[0][_local3][0] < posList[0][_local3 + 1][0])) {
_local12++;
} else if (((_local12 % 2) == 1) && (posList[0][_local3][0] > posList[0][_local3 + 1][0])) {
_local12++;
}
_local3++;
}
if (_local12 >= 3) {
_local2 = _local4.length;
} else {
_local7 = _local2 + 1;
}
} else if (_local13[_local4[_local2][0]] == 9) {
if (posList[0][posList[0].length - 1][1] < (_local11[3] + ((_local11[2] - _local11[3]) * 0.75))) {
_root.traceSys("ok");
_local7 = _local2 + 1;
} else {
_local2 = _local4.length;
}
} else {
_local2 = _local4.length;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local7) {
_local4.shift();
_local2++;
}
}
var _local22 = [4, 1, 3, 4, 2, 3, 3, 1, 4, 4];
_local7 = 0;
_local2 = 0;
while (_local2 < _local4.length) {
if (_local22[_local13[_local4[_local2][0]]] <= list.length) {
_local2 = _local4.length;
} else {
_local7 = _local2 + 1;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local7) {
_local4.shift();
_local2++;
}
_local2 = _local4.length - 1;
while (_local2 >= 0) {
if (_local4[_local2][1] < 80) {
_local4.pop();
}
_local2--;
}
_local4.push([10, 0]);
_root.traceSys(_local4);
if ((_local8[_local4[0][0]].length - 1) != num) {
if (((_local13[_local4[0][0]] == 5) && (_local13[_local4[1][0]] == 3)) && ((list[0] == "R") || (list[0] == "RD"))) {
_local4.shift();
} else {
firstYusen = _local4[0][0];
var _local24 = false;
return([_local23, _local24, firstYusen]);
}
}
_local23 = _local13[_local4[0][0]];
if ((_local23 == 0) || (_local23 == 6)) {
if (posList[0][posList[0].length - 1][1] > (_local11[3] + ((_local11[2] - _local11[3]) / 3))) {
_local23 = 6;
} else {
_local23 = 0;
}
}
var _local24 = true;
return([_local23, _local24, firstYusen]);
}
}
Symbol 644 MovieClip [__Packages.alphabetRecognition] Frame 0
class alphabetRecognition
{
function alphabetRecognition () {
}
function getRad(x1, y1, x2, y2) {
return(Math.floor((Math.atan2(y2 - y1, x2 - x1) * 180) / Math.PI));
}
function getDistance(x1, y1, x2, y2) {
return(Math.sqrt(Math.pow(y2 - y1, 2) + Math.pow(x2 - x1, 2)));
}
function setPartsA(posList, mine, guideMc) {
var _local5 = setPartsH(posList);
var _local2 = 0;
_local2 = 0;
while (_local2 < posList.length) {
setPartsB(posList[_local2]);
_local2++;
}
trace("PARTS: " + partsList);
if (guideMc == true) {
mine.guideMcSet(partsList);
}
var _local4 = ninshiki(partsList, _local5);
trace("\u7D50\u679C\uFF1A " + _local4);
partsList = [];
return(_local4);
}
function setPartsB(posList) {
posList = setPartsE(posList);
var _local2 = setPartsC(posList);
var _local5 = setPartsD(_local2);
var _local4 = setPartsF(posList, _local2, _local5);
posList = _local4[0];
_local2 = _local4[1];
_local5 = _local4[2];
setPartsG(posList, _local2, _local5);
return([]);
}
function setPartsC(posList) {
var _local4 = [];
var _local2 = 0;
_local2 = 0;
while (_local2 < (posList.length - 1)) {
_local4.push(getRad(posList[_local2][0], posList[_local2][1], posList[_local2 + 1][0], posList[_local2 + 1][1]));
_local2++;
}
return(_local4);
}
function setPartsD(radList) {
var _local4 = [];
var _local2 = 0;
var _local1 = 0;
_local2 = 0;
while (_local2 < (radList.length - 1)) {
_local1 = radList[_local2 + 1] - radList[_local2];
if (_local1 < -180) {
_local1 = _local1 + 360;
} else if (_local1 > 180) {
_local1 = _local1 - 360;
}
_local4.push(_local1);
_local2++;
}
return(_local4);
}
function setPartsE(list) {
var _local2 = 0;
_local2 = list.length - 2;
while (_local2 >= 0) {
if (getDistance(list[_local2][0], list[_local2][1], list[_local2 + 1][0], list[_local2 + 1][1]) < 10) {
list.splice(_local2, 1);
}
_local2--;
}
return(list);
}
function setPartsF(pos, rad, sa) {
var _local14 = 140;
var _local2 = 0;
var _local5 = 0;
var _local8 = 0;
var _local11 = 0;
var _local15 = 0;
var _local7 = [];
_local2 = 0;
while (_local2 < rad.length) {
if (_local5 == _local2) {
if (getDistance(pos[_local2][0], pos[_local2][1], pos[_local2 + 1][0], pos[_local2 + 1][1]) > 100) {
_local5 = _local2 + 1;
}
_local15 = rad[_local2];
_local8 = 0;
_local11 = 0;
} else if (getDistance(pos[_local2][0], pos[_local2][1], pos[_local2 + 1][0], pos[_local2 + 1][1]) > 40) {
trace("\u30AB\u30FC\u30D6\u76F4\u7DDA\u9577\u3059\u304E");
_local5 = _local2 + 1;
} else if ((_local8 != 0) && ((sa[_local2 - 1] / Math.abs(sa[_local2 - 1])) != _local8)) {
_local5 = _local2 + 1;
} else if (Math.abs(sa[_local2 - 1]) > 80) {
trace("\u6025\u30AB\u30FC\u30D6");
_local5 = _local2 + 1;
} else {
if (_local8 == 0) {
_local8 = sa[_local2 - 1] / Math.abs(sa[_local2 - 1]);
}
_local11 = _local11 + sa[_local2 - 1];
if (Math.abs(_local11) >= _local14) {
circleSet([pos[_local5][0], pos[_local5][1], pos[_local2 + 1][0], pos[_local2 + 1][1]], _local8);
_local7.push([_local5, _local2]);
_local11 = 0;
_local5 = _local2 + 1;
}
}
_local2++;
}
if (Math.abs(_local11) >= _local14) {
circleSet([pos[_local5][0], pos[_local5][1], pos[_local2][0], pos[_local2][1]], _local8);
_local7.push([_local5, rad.length - 1]);
}
if (_local7.length > 0) {
_local7.splice(0, 0, [-1, -1]);
_local7.push([rad.length, rad.length]);
var _local10 = [];
var _local12 = [];
var _local13 = [];
var _local16 = 0;
var _local17 = rad.length;
var _local4 = 0;
_local2 = 0;
while (_local2 < (_local7.length - 1)) {
_local10[_local2] = [];
_local12[_local2] = [];
_local13[_local2] = [];
_local4 = _local7[_local2][1] + 1;
while (_local4 < _local7[_local2 + 1][0]) {
_local10[_local2].push(pos[_local4]);
_local12[_local2].push(rad[_local4]);
_local13[_local2].push(sa[_local4]);
_local4++;
}
_local10[_local2].push(pos[_local4]);
_local2++;
}
return([_local10, _local12, _local13]);
}
return([[pos], [rad], [sa]]);
}
function setPartsG(pos, rad, sa) {
var _local2 = 0;
var _local4 = 0;
var _local5 = 0;
var _local8 = 0;
var _local6 = 0;
_local2 = 0;
while (_local2 < rad.length) {
_local5 = 0;
_local4 = 0;
while (_local4 < rad[_local2].length) {
if (_local5 == _local4) {
_local8 = rad[_local2][_local4];
} else if (Math.abs(sa[_local2][_local4]) > 20) {
_local6 = getDistance(pos[_local2][_local5][0], pos[_local2][_local5][1], pos[_local2][_local4 + 1][0], pos[_local2][_local4 + 1][1]);
if (_local6 > 80) {
lineSet([pos[_local2][_local5][0], pos[_local2][_local5][1], pos[_local2][_local4 + 1][0], pos[_local2][_local4 + 1][1]], "L");
} else if (_local6 > 40) {
lineSet([pos[_local2][_local5][0], pos[_local2][_local5][1], pos[_local2][_local4 + 1][0], pos[_local2][_local4 + 1][1]], "S");
}
_local5 = _local4 + 1;
}
_local4++;
}
_local6 = getDistance(pos[_local2][_local5][0], pos[_local2][_local5][1], pos[_local2][_local4][0], pos[_local2][_local4][1]);
if (_local6 > 80) {
lineSet([pos[_local2][_local5][0], pos[_local2][_local5][1], pos[_local2][_local4][0], pos[_local2][_local4][1]], "L");
} else if (_local6 > 40) {
lineSet([pos[_local2][_local5][0], pos[_local2][_local5][1], pos[_local2][_local4][0], pos[_local2][_local4][1]], "S");
}
_local2++;
}
return([]);
}
function lineSet(pos, code) {
var _local4 = [Math.floor((pos[0] + pos[2]) / 2), Math.floor((pos[1] + pos[3]) / 2)];
var _local3 = getRad(pos[0], pos[1], pos[2], pos[3]);
if (_local3 < 0) {
_local3 = _local3 + 180;
}
partsList.push(["line" + code, _local4, _local3]);
}
function circleSet(pos, muki) {
var _local5 = [Math.floor((pos[0] + pos[2]) / 2), Math.floor((pos[1] + pos[3]) / 2)];
var _local6 = getDistance(pos[0], pos[1], pos[2], pos[3]);
var _local3 = getRad(pos[0], pos[1], pos[2], pos[3]);
if (muki == -1) {
_local3 = _local3 + 180;
}
var _local4 = "";
if (_local6 > 70) {
_local4 = "L";
} else {
_local4 = "S";
}
if (_local3 < 0) {
_local3 = _local3 + 360;
}
_local3 = Math.floor((_local3 + 45) / 90) * 90;
partsList.push(["circle" + _local4, _local5, _local3]);
}
function ninshiki(list, posLineRecog) {
var _local5 = 0;
var _local2 = 0;
var _local3 = 0;
var _local11 = 0;
var _local7 = 0;
var _local8 = [];
var _local10 = false;
var _local4 = [];
var _local16 = false;
var _local12 = false;
var _local6 = [];
var _local14 = 20;
_local2 = 0;
while (_local2 < list.length) {
if (list[_local2][0].substr(0, 6) == "circle") {
_local16 = true;
_local2 = list.length;
}
_local2++;
}
if (_local16 == true) {
_local4[0] = [["lineL", [-25, 0], 90], ["circleS", [-10, -40], 90], ["circleS", [-10, 30], 90], "B"];
_local4[1] = [["circleS", [0, 0], 270], "C"];
_local4[2] = [["lineL", [-30, 0], 90], ["cirlceL", [-25, 0], 90], "D"];
_local4[3] = [["circleS", [0, 0], 270], ["lineS", [5, 0], 0], "G"];
_local4[4] = [["circleS", [0, 20], 180], ["lineS", [22, -19], 90], "J"];
_local4[5] = [["circleL", [0, 0], 270], ["circleL", [0, 0], 90], "O"];
_local4[6] = [["lineL", [-20, 0], 90], ["circleS", [-13, -35], 90], "P"];
_local4[7] = [["circleL", [0, 0], 270], ["circleL", [0, 0], 90], ["lineS", [15, 25], 40], "Q"];
_local4[8] = [["lineL", [-20, 0], 90], ["circleS", [-13, -35], 90], ["lineL", [15, 30], 55], "R"];
_local4[9] = [["circleS", [0, -30], 270], ["circleS", [0, 30], 90], "S"];
_local4[10] = [["circleS", [0, 30], 180], ["lineS", [-30, -20], 90], ["lineS", [30, -20], 90], "U"];
_local4[11] = [["circleL", [0, 0], 360], ["circleL", [0, 0], 180], "O"];
_local4[12] = [["circleL", [0, 0], 360], ["circleL", [0, 0], 180], ["lineS", [15, 25], 40], "Q"];
} else {
_local4[0] = [["lineL", [-20, 0], 106], ["lineL", [20, 0], 74], ["lineS", [0, 13], 0], "A"];
_local4[1] = [["lineL", [-25, 0], 90], ["lineS", [-5, -55], 30], ["lineS", [-5, -20], 150], ["lineS", [-5, 10], 30], ["lineS", [-5, 45], 150], "B"];
_local4[2] = [["lineL", [0, -30], 140], ["lineL", [0, 30], 40], "C"];
_local4[3] = [["lineL", [-25, 0], 90], ["lineS", [0, -35], 45], ["lineS", [20, 10], 90], ["lineS", [0, 50], 135], "D"];
_local4[4] = [["lineL", [-30, 0], 90], ["lineS", [5, 50], 0], ["lineS", [5, -50], 0], ["lineS", [0, 0], 0], "E"];
_local4[5] = [["lineL", [-30, 0], 90], ["lineS", [5, -50], 0], ["lineS", [0, 0], 0], "F"];
_local4[6] = [["lineL", [0, -30], 140], ["lineL", [0, 30], 40], ["lineS", [5, 0], 0], "G"];
_local4[7] = [["lineL", [-30, 0], 90], ["lineL", [30, 0], 90], ["lineS", [0, 0], 0], "H"];
_local4[8] = [["lineL", [0, 0], 90], "I"];
_local4[9] = [["lineL", [10, 0], 90], ["lineS", [-20, 50], 30], "J"];
_local4[10] = [["lineL", [-30, 0], 90], ["lineS", [0, -25], 130], ["lineS", [0, 25], 40], "K"];
_local4[11] = [["lineL", [-35, 0], 90], ["lineS", [0, 60], 0], "L"];
_local4[12] = [["lineL", [-30, 0], 90], ["lineS", [-20, -30], 60], ["lineS", [20, -30], 120], ["lineL", [30, 0], 90], "M"];
_local4[13] = [["lineL", [-30, 0], 90], ["lineL", [0, 0], 60], ["lineL", [30, 0], 90], "N"];
_local4[14] = [["lineL", [-20, -30], 120], ["lineL", [-20, 40], 60], ["lineS", [20, 40], 120], ["lineL", [20, -30], 60], "O"];
_local4[15] = [["lineL", [-20, 0], 90], ["lineS", [0, -50], 30], ["lineS", [0, -10], 150], "P"];
_local4[16] = [["lineL", [-20, -30], 120], ["lineL", [-20, 40], 60], ["lineS", [20, 40], 120], ["lineL", [20, -30], 60], ["lineS", [15, 25], 40], "Q"];
_local4[17] = [["lineL", [-20, 0], 90], ["lineS", [0, -50], 30], ["lineS", [0, -10], 150], ["lineL", [15, 30], 55], "R"];
_local4[18] = [["lineS", [0, -40], 160], ["lineL", [0, 0], 45], ["lineS", [0.5], 160], "S"];
_local4[19] = [["lineS", [0, -55], 0], ["lineL", [0, 0], 90], "T"];
_local4[20] = [["lineS", [-35, -25], 90], ["lineS", [35, -25], 90], ["lineS", [15, 25], 120], ["lineS", [-15, 25], 60], "U"];
_local4[21] = [["lineL", [-20, 0], 70], ["lineL", [20, 0], 110], "V"];
_local4[22] = [["lineL", [-35, 0], 80], ["lineL", [-10, 0], 110], ["lineL", [10, 0], 70], ["lineL", [35, 0], 100], "W"];
_local4[23] = [["lineL", [-2, 0], 60], ["lineL", [2, 0], 120], "X"];
_local4[24] = [["lineS", [-20, -35], 50], ["lineS", [20, -35], 130], ["lineS", [0, 30], 90], "Y"];
_local4[25] = [["lineS", [0, -50], 0], ["lineL", [0, 0], 120], ["lineS", [0, 50], 0], "Z"];
}
var _local17 = {A:80, B:70, C:70, D:80, E:80, F:90, G:70, H:80, I:90, J:75, K:75, L:90, M:90, N:90, O:70, P:80, Q:70, R:80, S:80, T:90, U:70, V:90, W:90, X:90, Y:80, Z:85};
_local2 = 0;
while (_local2 < _local4.length) {
_local7 = 100;
_local12 = false;
_local6 = partsList.slice();
_local5 = 0;
while (_local5 < (_local4[_local2].length - 1)) {
_local10 = false;
_local3 = 0;
while (_local3 < _local6.length) {
if (_local4[_local2][_local5][0].substr(0, 4) == _local6[_local3][0].substr(0, 4)) {
if (((_local4[_local2][_local5][0].substr(0, 4) == "line") && (Math.abs(_local4[_local2][_local5][2] - _local6[_local3][2]) >= 15)) && (Math.abs(_local4[_local2][_local5][2] - _local6[_local3][2]) <= 165)) {
} else if ((_local4[_local2][_local5][0].substr(0, 6) == "circle") && (_local4[_local2][_local5][2] != _local6[_local3][2])) {
} else {
_local11 = getDistance(_local4[_local2][_local5][1][0], _local4[_local2][_local5][1][1], _local6[_local3][1][0], _local6[_local3][1][1]);
if (Math.abs(_local11) < _local14) {
_local10 = true;
_local12 = true;
if (_local4[_local2][_local5][0] == _local6[_local3][0]) {
} else {
_local7 = _local7 - 5;
}
_local6.splice(_local3, 1);
_local3 = partsList.length;
}
}
}
_local3++;
}
if (_local10 == false) {
_local7 = _local7 - 20;
}
_local5++;
}
if (_local12 == false) {
_local7 = 0;
}
_local7 = _local7 - (Math.max(partsList.length - (_local4[_local2].length - 1), 0) * 10);
if (_local4[_local2][_local4[_local2].length - 1] == posLineRecog) {
_local7 = _local7 + 50;
}
_local8.push([_local7, _local4[_local2][_local4[_local2].length - 1]]);
_local2++;
}
_local2 = _local8.length - 1;
while (_local2 >= 0) {
if (_local8[_local2][0] < _local17[_local8[_local2][1]]) {
_local8.splice(_local2, 1);
}
_local2--;
}
var _local9 = [];
var _local13 = 0;
_local2 = 0;
while (_local2 < _local8.length) {
_local13 = 0;
_local3 = 0;
while (_local3 < _local9.length) {
if (_local9[_local3][0] < _local8[_local2][0]) {
_local3 = _local9.length;
} else {
_local13++;
}
_local3++;
}
_local9.splice(_local13, 0, _local8[_local2]);
_local2++;
}
trace(_local9);
return(_local9[0][1]);
}
function setPartsH(pos) {
var _local2 = 0;
if ((pos.length == 1) && (pos[0][0][0] > 20)) {
var _local4 = 0;
_local2 = 1;
while (_local2 < pos[0].length) {
if (((_local4 % 2) == 0) && (pos[0][_local2][0] < -20)) {
_local4++;
} else if (((_local4 % 2) == 1) && (pos[0][_local2][0] > 20)) {
_local4++;
}
_local2++;
}
if (_local4 == 3) {
trace("pos\u8A8D\u8B58\u3000\uFF1A\u3000S");
return("S");
}
}
if (getDistance(pos[0][0][0], pos[0][0][1], pos[0][pos[0].length - 1][0], pos[0][pos[0].length - 1][1]) < 10) {
if (pos.length == 1) {
trace("pos\u8A8D\u8B58\u3000\uFF1A\u3000O");
return("O");
}
if (pos.length == 2) {
trace("pos\u8A8D\u8B58\u3000\uFF1A\u3000Q");
return("Q");
}
return("none");
}
return("none");
}
static var partsList = [];
}
Symbol 246 Button
on (release) {
nextLabel = "difficulty";
gotoAndPlay ("nextA");
}
Symbol 248 Button
on (release) {
nextLabel = "goHowToPlay";
gotoAndPlay ("nextA");
}
Symbol 250 Button
on (release) {
gotoAndPlay ("goTest");
}
Symbol 252 Button
on (release) {
gotoAndPlay ("credit");
}
Symbol 259 Button
on (release) {
_parent.baseLevel = 1;
nextLabel = "goGame";
gotoAndPlay ("nextB");
}
Symbol 261 Button
on (release) {
_parent.baseLevel = 10;
nextLabel = "goGame";
gotoAndPlay ("nextB");
}
Symbol 263 Button
on (release) {
_parent.baseLevel = 20;
nextLabel = "goGame";
gotoAndPlay ("nextB");
}
Symbol 265 Button
on (release) {
_parent.baseLevel = 30;
nextLabel = "goGame";
gotoAndPlay ("nextB");
}
Symbol 267 Button
on (release) {
nextLabel = "top";
gotoAndPlay ("nextB");
}
Symbol 297 Button
on (release) {
play();
}
Symbol 299 MovieClip Frame 23
stop();
Symbol 299 MovieClip Frame 37
gotoAndPlay(nextLabel);
Symbol 299 MovieClip Frame 46
stop();
Symbol 299 MovieClip Frame 60
gotoAndPlay(nextLabel);
Symbol 299 MovieClip Frame 68
_parent.gotoAndStop("game");
Symbol 299 MovieClip Frame 75
_parent.gotoAndStop("test");
Symbol 299 MovieClip Frame 81
_parent.gotoAndStop("howToPlay");
Symbol 299 MovieClip Frame 89
stop();
Symbol 299 MovieClip Frame 95
gotoAndPlay ("top");
Symbol 301 MovieClip Frame 48
_parent.tamaBirth();
gotoAndPlay(Math.min(_parent._parent.gameLevel + _parent._parent.baseLevel, 40));
Symbol 303 MovieClip Frame 1
function disp(code, num, keta) {
var _local4 = String(num);
var _local2 = 0;
_local2 = 0;
while (_local2 < _local4.length) {
this[code + String(_local2)].gotoAndStop(Number(_local4.substr(_local2, 1)) + 1);
this[code + String(_local2)]._visible = true;
_local2++;
}
_local2 = _local4.length;
while (_local2 < keta) {
this[code + String(_local2)].stop();
this[code + String(_local2)]._visible = false;
_local2++;
}
}
disp("lv", _parent._parent.gameLevel + _parent._parent.baseLevel, 2);
disp("sc", _parent._parent.gameScore, 6);
disp("lb", _parent.lostBall, 1);
stop();
Symbol 305 MovieClip Frame 1
if (firstMilliSec == undefined) {
firstMilliSec = getTimer();
endMilliSec = 300000 /* 0x0493E0 */;
}
nowMilliSec = getTimer();
time = Math.max(Math.floor((endMilliSec - (nowMilliSec - firstMilliSec)) / 1000), 0);
minit = String(Math.floor(time / 60));
sec = String(time % 60);
if (minit.length == 1) {
minit = "0" + minit;
}
if (sec.length == 1) {
sec = "0" + sec;
}
i = 0;
while (i < 2) {
this["m" + i].gotoAndStop(Number(minit.substr(i, 1)) + 1);
this["s" + i].gotoAndStop(Number(sec.substr(i, 1)) + 1);
i++;
}
if (time < 20) {
if ((_parent.timeLimitMc == undefined) && (_parent.penaltyMc == undefined)) {
_parent.attachMovie("timeLimitMc", "timeLimitMc", 5);
_parent.timeLimitMc.gotoAndPlay(Math.floor(((time % 1000) / 1000) * 12) + 1);
}
_parent.timeLimitMc.sec0.gotoAndStop(this.s0._currentframe);
_parent.timeLimitMc.sec1.gotoAndStop(this.s1._currentframe);
}
if (time == 0) {
stop();
_parent.gameOverSys();
_parent.attachMovie("timeUpMc", "timeUpMc", 20000);
_parent.timeLimitMc.removeMovieClip();
}
Symbol 307 MovieClip Frame 1
bgm = new Sound(this);
bgm.attachSound("bgm_se");
bgm.setVolume(50);
bgm.onSoundComplete = function () {
this.start();
};
bgm.start();
Symbol 308 MovieClip Frame 1
function endSearchInit() {
posList = [];
boardList = [];
firstYusen = -1;
}
function numMcSet(num) {
var _local3 = [posList[0][0][0], posList[0][0][0], posList[0][0][1], posList[0][0][1]];
var _local5 = [];
var _local2 = 0;
var _local4 = 0;
_local2 = 0;
while (_local2 < posList.length) {
_local4 = 0;
while (_local4 < posList[_local2].length) {
_local3[0] = Math.min(posList[_local2][_local4][0], _local3[0]);
_local3[1] = Math.max(posList[_local2][_local4][0], _local3[1]);
_local3[2] = Math.min(posList[_local2][_local4][1], _local3[2]);
_local3[3] = Math.max(posList[_local2][_local4][1], _local3[3]);
_local4++;
}
_local2++;
}
_local5 = [Math.floor((_local3[0] + _local3[1]) / 2), Math.floor((_local3[2] + _local3[3]) / 2)];
this.attachMovie("numMc", "numMc" + mcDepth, mcDepth);
this["numMc" + mcDepth]._x = _local5[0];
this["numMc" + mcDepth]._y = _local5[1];
this["numMc" + mcDepth].myCount = num;
this["numMc" + mcDepth].listNum = numMcList.length + 1;
_local2 = 0;
while (_local2 < boardList.length) {
boardList[_local2].removeMovieClip();
_local2++;
}
mcDepth++;
}
function setPenalty() {
var _local2 = 0;
var _local3 = [];
var _local4 = true;
while (_local4) {
_local4 = false;
_local3 = [Math.floor(Math.random() * 540) + 50, Math.floor(Math.random() * 380) + 50];
_local2 = 0;
while (_local2 < numMcList.length) {
if (Math.sqrt(Math.pow(_local3[1] - numMcList[_local2]._y, 2) + Math.pow(_local3[0] - numMcList[_local2]._x, 2)) < 55) {
_local4 = true;
_local2 = numMcList.length;
}
_local2++;
}
}
this.attachMovie("numMc", "numMc" + mcDepth, mcDepth);
this["numMc" + mcDepth]._x = _local3[0];
this["numMc" + mcDepth]._y = _local3[1];
this["numMc" + mcDepth].myCount = 24;
this["numMc" + mcDepth].listNum = numMcList.length + 1;
mcDepth++;
this.attachMovie("penaltyMc", "penaltyMc", 5);
}
function resetListNum() {
i = 0;
while (i < numMcList.length) {
numMcList[i].listNum = i + 1;
numMcList[i].setListNum(i + 1);
i++;
}
}
function traceSys(code) {
trace(code);
}
function addScore(num, cou, pos) {
_parent.gameScore = _parent.gameScore + (num * cou);
scoreDisp.disp("sc", _parent.gameScore, 6);
_parent.gameLevel = Math.floor(_parent.gameScore / 2000);
scoreDisp.disp("lv", _parent.gameLevel + _parent.baseLevel, 2);
var _local3 = addScMcDepth + 10;
this.attachMovie("addScoreDisp", "addScoreDisp" + _local3, _local3);
this["addScoreDisp" + _local3].num = num;
this["addScoreDisp" + _local3].cou = cou;
this["addScoreDisp" + _local3]._x = pos[0];
this["addScoreDisp" + _local3]._y = pos[1] - 50;
addScMcDepth = (addScMcDepth + 1) % 10;
}
function gameOverSys() {
delete this.onMouseUp;
delete this.onMouseDown;
delete this.onEnterFrame;
this.tamaTimerMc.stop();
this.limitDispMc.stop();
if (this.secondWriteMc != undefined) {
this.secondWriteMc.removeMovieClip();
}
var _local2 = 0;
_local2 = 0;
while (_local2 < tamaMcList.length) {
tamaMcList[_local2].shoumetu();
_local2++;
}
pausing = true;
}
numMcList = [];
tamaMcList = [];
lostBall = 0;
mcDepth = 100;
addScMcDepth = 0;
pausing = false;
this.attachMovie("getReadyMc", "getReadyMc", 20000);
function setDraw() {
if (this.secondWriteMc != undefined) {
this.secondWriteMc.removeMovieClip();
}
var _local2 = boardList.length;
this.createEmptyMovieClip("boardMc" + _local2, _local2);
this["boardMc" + _local2].lineStyle(1, 0, 100);
this["boardMc" + _local2].moveTo(_xmouse, _ymouse);
boardList.push(this["boardMc" + _local2]);
posList.push([[_xmouse, _ymouse]]);
this["boardMc" + _local2].se = new Sound(this["boardMc" + _local2]);
this["boardMc" + _local2].se.attachSound("write_se");
this["boardMc" + _local2].se.onSoundComplete = function () {
this.start();
};
this["boardMc" + _local2].se.start();
}
function drawing() {
var _local1 = 30;
boardList[boardList.length - 1].lineTo(_xmouse, _ymouse);
posList[posList.length - 1].push([_xmouse, _ymouse]);
if (posList[posList.length - 1].length > _local1) {
posList[posList.length - 1].shift();
}
}
function drawEnd() {
this["boardMc" + (boardList.length - 1)].se.stop();
delete this.onEnterFrame;
if (posList.length == 0) {
return(undefined);
}
var _local2 = recog.ninsiki(posList, firstYusen);
if (_local2[1] == true) {
trace("\u8A8D\u8B58\u7D50\u679C\uFF1A\u3000" + _local2[0]);
this.numMcSet(_local2[0]);
this.endSearchInit();
} else {
firstYusen = _local2[2];
this.waitSecondWrite();
}
}
function getDistance(x1, y1, x2, y2) {
return(Math.sqrt(Math.pow(y2 - y1, 2) + Math.pow(x2 - x1, 2)));
}
function getRotation(x1, y1, x2, y2) {
return((Math.atan2(y2 - y1, x2 - x1) * 180) / Math.PI);
}
function waitSecondWrite() {
var rectTarget = boardMc0;
this.createEmptyMovieClip("secondWriteMc", 10000);
this.secondWriteMc.waitTimer = 0;
this.secondWriteMc.pos = [posList[0][0][0], posList[0][0][1]];
this.secondWriteMc.onEnterFrame = function () {
if ((Math.abs(_xmouse - this.pos[0]) > (30 + rectTarget._width)) || (Math.abs(_ymouse - this.pos[1]) > (30 + rectTarget._height))) {
deleteFirstWrite();
return(undefined);
}
this.waitTimer++;
if (this.waitTimer < 24) {
return(undefined);
}
deleteFirstWrite();
};
}
function deleteFirstWrite() {
if (firstYusen == 13) {
this.numMcSet(1);
this.endSearchInit();
} else {
this.numMcSet(-1);
posList = [];
boardList = [];
firstYusen = -1;
}
this.secondWriteMc.removeMovieClip();
}
var posList = [];
var boardList = [];
firstYusen = -1;
this.onMouseDown = function () {
setDraw();
this.onEnterFrame = function () {
drawing();
};
};
this.onMouseUp = function () {
drawEnd();
};
this.onDragOut = function () {
drawEnd();
};
this.useHandCursor = false;
var recog = new recognitionB();
function tamaBirth() {
var _local2 = [0, 0, 0, 0];
var _local4 = [Math.floor(Math.random() * 4), Math.floor(Math.random() * 4)];
var _local3 = 0;
while (_local4[0] == _local4[1]) {
_local4 = [Math.floor(Math.random() * 4), Math.floor(Math.random() * 4)];
}
var _local5 = true;
while (_local5) {
_local5 = false;
_local3 = 0;
while (_local3 < 2) {
if (_local4[_local3] == 0) {
_local2[_local3 * 2] = 0;
_local2[(_local3 * 2) + 1] = Math.floor(Math.random() * 480);
} else if (_local4[_local3] == 1) {
_local2[_local3 * 2] = 640;
_local2[(_local3 * 2) + 1] = Math.floor(Math.random() * 480);
} else if (_local4[_local3] == 2) {
_local2[_local3 * 2] = Math.floor(Math.random() * 640);
_local2[(_local3 * 2) + 1] = 0;
} else if (_local4[_local3] == 3) {
_local2[_local3 * 2] = Math.floor(Math.random() * 640);
_local2[(_local3 * 2) + 1] = 480;
}
_local3++;
}
if (Math.sqrt(Math.pow(_local2[3] - _local2[1], 2) + Math.pow(_local2[2] - _local2[0], 2)) < 400) {
_local5 = true;
}
var _local6 = (Math.atan2(_local2[3] - _local2[1], _local2[2] - _local2[0]) * 180) / Math.PI;
if ((_local2[0] < 160) && (_local2[2] < 160)) {
_local5 = true;
} else if ((_local2[0] > 480) && (_local2[2] > 480)) {
_local5 = true;
}
if ((_local2[1] < 120) && (_local2[3] < 120)) {
_local5 = true;
} else if ((_local2[1] > 360) && (_local2[3] > 360)) {
_local5 = true;
}
}
this.attachMovie("tamaSignMc", "tamaSignMc" + tamaDepth, tamaDepth);
this["tamaSignMc" + tamaDepth].startPos = [_local2[0], _local2[1]];
this["tamaSignMc" + tamaDepth].goalPos = [_local2[2], _local2[3]];
tamaDepth++;
}
function getLostBall() {
lostBall++;
if (lostBall < 10) {
scoreDisp.disp("lb", lostBall, 1);
return(undefined);
}
lostBall = lostBall - 10;
scoreDisp.disp("lb", lostBall, 1);
setPenalty();
}
tamaDepth = 100000 /* 0x0186A0 */;
stop();
Symbol 318 Button
on (release) {
gotoAndPlay ("goTitle");
}
Symbol 322 Button
on (release) {
gotoAndPlay ("goEntry");
}
Symbol 332 Button
on (release) {
boardMc.resetMc();
boardMc.drawReset();
}
Symbol 339 Button
on (release) {
boardMc.recogSys();
boardMc.drawReset();
}
Symbol 346 Button
on (release) {
boardMc.alpMc.scrollMc(-1);
}
Symbol 349 Button
on (release) {
boardMc.alpMc.scrollMc(1);
}
Symbol 351 MovieClip Frame 1
function guideMcSet(list) {
var _local2 = 0;
_local2 = 0;
while (_local2 < list.length) {
this.attachMovie(("reco_" + list[_local2][0]) + "Mc", "Mc" + mcDepth, mcDepth);
this["Mc" + mcDepth]._x = list[_local2][1][0];
this["Mc" + mcDepth]._y = list[_local2][1][1];
this["Mc" + mcDepth]._rotation = list[_local2][2];
mcDepth++;
_local2++;
}
}
function resetMc() {
if (this.alpMc != undefined) {
this.alpMc.removeMovieClip();
}
_parent.btnControl(_parent.okBtn, false);
_parent.btnControl(_parent.resetBtn, false);
_parent.btnControl(_parent.upBtn, false);
_parent.btnControl(_parent.downBtn, false);
var _local3 = 0;
_local3 = 0;
while (_local3 < mcDepth) {
this["Mc" + _local3].removeMovieClip();
_local3++;
}
mcDepth = 0;
}
var mcDepth = 0;
stop();
function getRad(x1, y1, x2, y2) {
return(Math.floor((Math.atan2(y2 - y1, x2 - x1) * 180) / Math.PI));
}
function getDistance(x1, y1, x2, y2) {
return(Math.sqrt(Math.pow(y2 - y1, 2) + Math.pow(x2 - x1, 2)));
}
function recogSys() {
_parent.btnControl(_parent.okBtn, false);
var _local3 = alpRecog.setPartsA(posList, this, recogBlock);
if (_local3 == undefined) {
this.resetMc();
} else {
_parent.btnControl(_parent.upBtn, true);
_parent.btnControl(_parent.downBtn, true);
}
this.attachMovie("reco_alpMc", "alpMc", 100);
this.alpMc.myCode = _local3;
}
var recogBlock = false;
var alpRecog = new alphabetRecognition();
function drawStart() {
if (this.alpMc != undefined) {
this.alpMc.removeMovieClip();
}
_parent.btnControl(_parent.okBtn, true);
_parent.btnControl(_parent.resetBtn, true);
if (posList.length > 0) {
if (getDistance(posList[posList.length - 1][posList[posList.length - 1].length - 1][0], posList[posList.length - 1][posList[posList.length - 1].length - 1][1], _xmouse, _ymouse) < 8) {
trace("posList\u5408\u6210");
posList[posList.length - 1].push([_xmouse, _ymouse]);
} else {
posList.push([[_xmouse, _ymouse]]);
}
} else {
posList.push([[_xmouse, _ymouse]]);
}
this.lineStyle(1, 0, 100);
this.moveTo(_xmouse, _ymouse);
this.onMouseMove = function () {
mouseCheck++;
if ((mouseCheck % 4) != 0) {
return(undefined);
}
posList[posList.length - 1].push([_xmouse, _ymouse]);
this.lineTo(_xmouse, _ymouse);
};
}
function drawEnd() {
delete this.onMouseMove;
}
function drawReset() {
this.clear();
posList = [];
}
var posList = [];
var mouseCheck = 2;
this.onPress = function () {
this.useHandCursor = false;
this.drawStart();
};
this.onRelease = function () {
this.useHandCursor = true;
this.drawEnd();
};
this.onDragOut = function () {
this.useHandCursor = true;
this.drawEnd();
};
Symbol 351 MovieClip Frame 2
function drawStart() {
if (this.alpMc != undefined) {
this.alpMc.removeMovieClip();
}
_parent.btnControl(_parent.okBtn, true);
_parent.btnControl(_parent.resetBtn, true);
posList.push([[_xmouse, _ymouse]]);
this.lineStyle(1, 0, 100);
this.moveTo(_xmouse, _ymouse);
this.onEnterFrame = function () {
posList[posList.length - 1].push([_xmouse, _ymouse]);
this.lineTo(_xmouse, _ymouse);
};
}
function drawEnd() {
delete this.onEnterFrame;
}
function drawReset() {
this.clear();
posList = [];
}
var posList = [];
this.onPress = function () {
this.useHandCursor = false;
this.drawStart();
};
this.onRelease = function () {
this.useHandCursor = true;
this.drawEnd();
};
this.onDragOut = function () {
this.useHandCursor = true;
this.drawEnd();
};
Symbol 352 MovieClip Frame 1
function btnControl(btn, code) {
btn.enabled = code;
if (code == true) {
btn._alpha = 100;
} else {
btn._alpha = 50;
}
}
stop();
this.btnControl(okBtn, false);
this.btnControl(resetBtn, false);
this.btnControl(upBtn, false);
this.btnControl(downBtn, false);
Symbol 358 Button
on (release) {
entryName = "";
if (entryMc0.boardMc.alpMc != undefined) {
entryName = entryName + entryMc0.boardMc.alpMc.myCode;
}
if (entryMc1.boardMc.alpMc != undefined) {
entryName = entryName + entryMc1.boardMc.alpMc.myCode;
}
if (entryMc2.boardMc.alpMc != undefined) {
entryName = entryName + entryMc2.boardMc.alpMc.myCode;
}
if (entryMc3.boardMc.alpMc != undefined) {
entryName = entryName + entryMc3.boardMc.alpMc.myCode;
}
if (entryName != "") {
play();
}
}
Symbol 362 Button
on (release) {
gotoAndPlay ("sendEnd");
}
Symbol 365 MovieClip Frame 1
function disp(code, num, keta) {
var _local4 = String(num);
var _local2 = 0;
_local2 = 0;
while (_local2 < _local4.length) {
this[code + String(_local2)].gotoAndStop(Number(_local4.substr(_local2, 1)) + 1);
this[code + String(_local2)]._visible = true;
_local2++;
}
_local2 = _local4.length;
while (_local2 < keta) {
this[code + String(_local2)].stop();
this[code + String(_local2)]._visible = false;
_local2++;
}
}
bgm = new Sound(this);
bgm.attachSound("bgmB_se");
bgm.onSoundComplete = function () {
this.start();
};
bgm.start();
Symbol 365 MovieClip Frame 20
disp("lv", _parent.gameLevel + _parent.baseLevel, 2);
disp("sc", _parent.gameScore, 6);
if ((_parent.lso_so.data.score < _parent.gameScore) && (_parent.baseLevel == 20)) {
_parent.lso_so.data.score = _parent.gameScore;
gotoAndStop ("rank");
} else {
stop();
}
Symbol 365 MovieClip Frame 31
bgm.stop();
_parent.gotoAndStop("title");
Symbol 365 MovieClip Frame 35
stop();
Symbol 365 MovieClip Frame 36
sender = new LoadVars();
sender.name = entryName;
sender.score = _parent.gameScore;
sender.dif = _parent.gameLevel + _parent.baseLevel;
sender.cginum = "overfif";
loader = new LoadVars();
loader.onLoad = function () {
};
sender.sendAndLoad("../cgi-bin/account.cgi", loader, "GET");
Symbol 365 MovieClip Frame 50
bgm.stop();
_parent.gotoAndStop("title");
Symbol 367 MovieClip Frame 1
function endTest() {
pausing = true;
i = 0;
while (i < numMcList.length) {
numMcList[i].gotoAndPlay("fullBreak");
i++;
}
numMcList = [];
play();
}
var pausing = false;
bgm = new Sound(this);
bgm.attachSound("bgmB_se");
bgm.onSoundComplete = function () {
this.start();
};
bgm.start();
function endSearchInit() {
posList = [];
boardList = [];
firstYusen = -1;
}
function numMcSet(num) {
var _local3 = [posList[0][0][0], posList[0][0][0], posList[0][0][1], posList[0][0][1]];
var _local5 = [];
var _local2 = 0;
var _local4 = 0;
_local2 = 0;
while (_local2 < posList.length) {
_local4 = 0;
while (_local4 < posList[_local2].length) {
_local3[0] = Math.min(posList[_local2][_local4][0], _local3[0]);
_local3[1] = Math.max(posList[_local2][_local4][0], _local3[1]);
_local3[2] = Math.min(posList[_local2][_local4][1], _local3[2]);
_local3[3] = Math.max(posList[_local2][_local4][1], _local3[3]);
_local4++;
}
_local2++;
}
_local5 = [Math.floor((_local3[0] + _local3[1]) / 2), Math.floor((_local3[2] + _local3[3]) / 2)];
this.attachMovie("numTestMc", "numMc" + mcDepth, mcDepth);
this["numMc" + mcDepth]._x = _local5[0];
this["numMc" + mcDepth]._y = _local5[1];
this["numMc" + mcDepth].myCount = num;
this["numMc" + mcDepth].listNum = numMcList.length + 1;
_local2 = 0;
while (_local2 < boardList.length) {
boardList[_local2].removeMovieClip();
_local2++;
}
mcDepth++;
}
function resetListNum() {
trace("numMcList : " + numMcList);
i = 0;
while (i < numMcList.length) {
numMcList[i].listNum = i + 1;
numMcList[i].setListNum(i + 1);
i++;
}
}
numMcList = [];
tamaMcList = [];
gameLevel = 0;
baseLevel = 1;
gameScore = 0;
lostBall = 0;
mcDepth = 100;
addScMcDepth = 0;
pausing = false;
function setDraw() {
if (this.secondWriteMc != undefined) {
this.secondWriteMc.removeMovieClip();
}
var _local2 = boardList.length;
this.createEmptyMovieClip("boardMc" + _local2, _local2);
this["boardMc" + _local2].lineStyle(1, 0, 100);
this["boardMc" + _local2].moveTo(_xmouse, _ymouse);
boardList.push(this["boardMc" + _local2]);
posList.push([[_xmouse, _ymouse]]);
}
function drawing() {
var _local1 = 30;
boardList[boardList.length - 1].lineTo(_xmouse, _ymouse);
posList[posList.length - 1].push([_xmouse, _ymouse]);
if (posList[posList.length - 1].length > _local1) {
posList[posList.length - 1].shift();
}
}
function drawEnd() {
delete this.onEnterFrame;
if (pausing == true) {
return(undefined);
}
if (posList.length == 0) {
return(undefined);
}
var _local2 = recog.ninsiki(posList, firstYusen);
if (_local2[1] == true) {
trace("\u8A8D\u8B58\u7D50\u679C\uFF1A\u3000" + _local2[0]);
this.numMcSet(_local2[0]);
this.endSearchInit();
} else {
firstYusen = _local2[2];
this.waitSecondWrite();
}
}
function getDistance(x1, y1, x2, y2) {
return(Math.sqrt(Math.pow(y2 - y1, 2) + Math.pow(x2 - x1, 2)));
}
function getRotation(x1, y1, x2, y2) {
return((Math.atan2(y2 - y1, x2 - x1) * 180) / Math.PI);
}
function waitSecondWrite() {
var rectTarget = boardMc0;
this.createEmptyMovieClip("secondWriteMc", 10000);
this.secondWriteMc.waitTimer = 0;
this.secondWriteMc.pos = [posList[0][0][0], posList[0][0][1]];
this.secondWriteMc.onEnterFrame = function () {
if ((Math.abs(_xmouse - this.pos[0]) > (30 + rectTarget._width)) || (Math.abs(_ymouse - this.pos[1]) > (30 + rectTarget._height))) {
deleteFirstWrite();
return(undefined);
}
this.waitTimer++;
if (this.waitTimer < 24) {
return(undefined);
}
deleteFirstWrite();
};
}
function deleteFirstWrite() {
if (firstYusen == 13) {
this.numMcSet(1);
this.endSearchInit();
} else {
this.numMcSet(-1);
posList = [];
boardList = [];
firstYusen = -1;
}
this.secondWriteMc.removeMovieClip();
}
var posList = [];
var boardList = [];
firstYusen = -1;
this.onMouseDown = function () {
if (pausing == true) {
return(undefined);
}
setDraw();
this.onEnterFrame = function () {
drawing();
};
};
this.onMouseUp = function () {
drawEnd();
};
this.onDragOut = function () {
drawEnd();
};
this.useHandCursor = false;
var recog = new recognitionB();
stop();
Symbol 367 MovieClip Frame 2
delete this.onRelease;
delete this.onPress;
delete this.onEnterFrame;
Symbol 367 MovieClip Frame 8
bgm.stop();
_parent.gotoAndStop("title");
Symbol 370 Button
on (press) {
testMc.endTest();
testEndBtn._visible = false;
mihonMc._visible = false;
}
Symbol 511 MovieClip Frame 1
this.onDragOver = function () {
};
this.useHandCursor = false;
Symbol 514 Button
on (release) {
gotoAndStop (2);
}
Symbol 517 Button
on (release) {
gotoAndStop (3);
}
Symbol 520 Button
on (release) {
gotoAndStop (4);
}
Symbol 523 Button
on (release) {
gotoAndStop (5);
}
Symbol 526 Button
on (release) {
gotoAndStop (6);
}
Symbol 529 Button
on (release) {
gotoAndStop (7);
}
Symbol 532 Button
on (release) {
gotoAndStop (8);
}
Symbol 533 Button
on (release) {
gotoAndPlay (9);
}
Symbol 637 MovieClip Frame 1
bgm = new Sound(this);
bgm.attachSound("bgmB_se");
bgm.onSoundComplete = function () {
this.start();
};
bgm.start();
stop();
Symbol 637 MovieClip Frame 14
bgm.stop();
_parent.gotoAndStop("title");
Symbol 642 MovieClip Frame 19
_parent.gotoAndStop("title");