Frame 1
Stage.showMenu = false;
strVersion = getVersion().split(" ")[1].split(",")[0];
isFlash6 = parseInt(strVersion) >= 6;
if (mode == "flash5") {
isFlash6 = false;
}
if (isFlash6) {
timeOffset = getTimer();
}
Frame 5
if ((_framesloaded < _totalframes) || ((getTimer() - timeOffset) < 2000)) {
gotoAndPlay (2);
} else {
gotoAndPlay (6);
}
Frame 6
function decodeB64(strArg, bESC) {
strBase64Table = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
strRaw = "";
iSrc = 0;
i = 0;
while (i < strArg.length) {
iData = strBase64Table.indexOf(strArg.charAt(i));
if ((iData != -1) && (iData < 64)) {
iStep = iSrc % 4;
if (iStep == 0) {
bStock = (iData & 63) << 2;
}
if (iStep == 1) {
iTemp = bStock | ((iData & 48) >> 4);
strRaw = strRaw + (((iTemp < 16) ? "%0" : "%") + iTemp.toString(16));
bStock = (iData & 15) << 4;
}
if (iStep == 2) {
iTemp = bStock | ((iData & 60) >> 2);
strRaw = strRaw + (((iTemp < 16) ? "%0" : "%") + iTemp.toString(16));
bStock = (iData & 3) << 6;
}
if (iStep == 3) {
iTemp = bStock | (iData & 63);
strRaw = strRaw + (((iTemp < 16) ? "%0" : "%") + iTemp.toString(16));
}
iSrc++;
}
i++;
}
return((bESC ? (unescape(strRaw)) : (strRaw)));
}
function encodeB64(strArg, bESC) {
strBase64Table = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
strB64 = "";
if (bESC) {
strArg = escape(strArg);
}
iSrc = 0;
while (strArg.length > 0) {
if (strArg.charAt(0) == "%") {
iData = parseInt("0x" + strArg.substr(1, 2));
strArg = strArg.substr(3);
} else {
iData = strArg.charCodeAt(0);
strArg = strArg.substr(1);
}
iStep = iSrc % 3;
if (iStep == 0) {
strB64 = strB64 + strBase64Table.charAt(iData >> 2);
iStock = (iData & 3) << 4;
}
if (iStep == 1) {
strB64 = strB64 + strBase64Table.charAt(iStock | (iData >> 4));
iStock = (iData & 15) << 2;
}
if (iStep == 2) {
strB64 = strB64 + strBase64Table.charAt(iStock | (iData >> 6));
strB64 = strB64 + strBase64Table.charAt(iData & 63);
iStock = 0;
}
iSrc++;
}
if ((iSrc % 3) != 0) {
strB64 = strB64 + strBase64Table.charAt(iStock);
strB64 = strB64 + (((iSrc % 3) == 2) ? "=" : "==");
}
return(strB64);
}
function createSeed(strWord) {
var iOrgData = getCodeArray(strWord);
var iLength = iOrgData.length;
var i;
iOrgData.push(128);
while (iOrgData.length < 56) {
iOrgData.push(0);
}
var dwData = new Array();
i = 0;
while (i < 14) {
var dwTemp = ((((iOrgData[(i * 4) + 3] << 24) | (iOrgData[(i * 4) + 2] << 16)) | (iOrgData[(i * 4) + 1] << 8)) | iOrgData[i * 4]);
dwData.push(dwTemp);
i++;
}
dwData.push(iLength << 3);
dwData.push(0);
return(dwData);
}
function getDigest(dwData) {
var i;
var j;
var iData = new Array(0, 0, 0, 0);
i = 0;
while (i < 4) {
iData[0] = ((iData[0] << 8) | ((3 - i) << 5)) | (7 - (2 * i));
iData[1] = ((iData[1] << 8) | ((7 - i) << 5)) | (15 - (2 * i));
iData[2] = ((iData[2] << 8) | ((9 + (2 * i)) << 4)) | (8 + (2 * i));
iData[3] = ((iData[3] << 8) | ((1 + (2 * i)) << 4)) | (0 + (2 * i));
i++;
}
var iDataResult = new Array(iData[0], iData[1], iData[2], iData[3]);
var stepS = new Array(2927, 3429, 3964, 3430);
var valueS = 0;
i = 0;
while (i < 4) {
var valueK = ((328 >> (i * 3)) & 7);
var stepK = ((3817 >> (i * 3)) & 7);
j = 0;
while (j < 16) {
valueS = (((j % 4) == 0) ? 0 : (valueS)) + ((stepS[i] >> ((j % 4) * 3)) & 7);
var dwData0 = iData[(16 - j) % 4];
var dwData1 = iData[(17 - j) % 4];
var dwData2 = iData[(18 - j) % 4];
var dwData3 = iData[(19 - j) % 4];
var dwSin = parseInt((Math.abs(Math.sin(((i * 16) + j) + 1)) * 65536) * 65536);
var dwTemp = ((dwData0 + dwData[valueK % 16]) + dwSin);
dwTemp = dwTemp + ((i & 2) ? (((i & 1) ? (dwData2 ^ (dwData1 | (~dwData3))) : ((dwData1 ^ dwData2) ^ dwData3))) : (((i & 1) ? ((dwData1 & dwData3) | (dwData2 & (~dwData3))) : ((dwData1 & dwData2) | ((~dwData1) & dwData3)))));
iData[(16 - j) % 4] = dwData1 + ((dwTemp << valueS) | (dwTemp >>> (32 - valueS)));
valueK = valueK + stepK;
j++;
}
i++;
}
iDataResult[0] = iDataResult[0] + iData[0];
iDataResult[1] = iDataResult[1] + iData[1];
iDataResult[2] = iDataResult[2] + iData[2];
iDataResult[3] = iDataResult[3] + iData[3];
return(hex128(iDataResult));
}
function getCodeArray(strWord) {
var arrayResult = new Array();
var strKey = escape(strWord);
while (strKey.length > 0) {
if (strKey.substr(0, 1) == "%") {
arrayResult.push(parseInt("0x0" + strKey.substr(1, 2)));
strKey = strKey.substr(3);
} else {
arrayResult.push(strKey.charCodeAt(0));
strKey = strKey.substr(1);
}
}
return(arrayResult);
}
function hex128(inArray) {
var outArray = new Array(4);
var i = 0;
while (i < 4) {
outArray[0] = (outArray[0] << 8) | ((inArray[0] >>> (i * 8)) & 255);
outArray[1] = (outArray[1] << 8) | ((inArray[1] >>> (i * 8)) & 255);
outArray[2] = (outArray[2] << 8) | ((inArray[2] >>> (i * 8)) & 255);
outArray[3] = (outArray[3] << 8) | ((inArray[3] >>> (i * 8)) & 255);
i++;
}
var strResult = hex32(outArray[0]);
strResult = strResult + hex32(outArray[1]);
strResult = strResult + hex32(outArray[2]);
strResult = strResult + hex32(outArray[3]);
return(strResult);
}
function hex32(inValue) {
var strResult = (65536 | (inValue >>> 16)).toString(16).substr(1);
return(strResult + (65536 | (inValue & 65535)).toString(16).substr(1));
}
function buildKeySequence(index) {
var itemData = tmGlobal.sequence_data[index].split(" ");
var strKeyData = itemData[0];
if (strKeyData == "-") {
return(undefined);
}
var strKey = getKey(strKeyData);
var valueData = itemData[1].split("/");
j = 0;
while (j < valueData.length) {
strValue = valueData[j];
_root.tmGlobal.key_sequence["CODE_" + strKey] = _root.tmGlobal.key_sequence["CODE_" + strKey] + ((((j == 0) ? "|" : "") + strValue) + "|");
_root.tmGlobal.key_setting["CODE_" + strKey] = (valueData.length << 8) + 0;
if (strKey == getKey("\u30F3")) {
_root.tmGlobal.key_sequence[("CODE_" + strKey) + getKey(".")] = _root.tmGlobal.key_sequence[("CODE_" + strKey) + getKey(".")] + ((((j == 0) ? "|" : "") + "NN") + "|");
}
if ("AIUEON-".indexOf(strValue.charAt(0)) == -1) {
_root.tmGlobal.key_sequence[("CODE_" + getKey("\u30C3")) + strKey] = _root.tmGlobal.key_sequence[("CODE_" + getKey("\u30C3")) + strKey] + (((((j == 0) ? "|" : "") + strValue.charAt(0)) + strValue) + "|");
}
if ("AIUEONY".indexOf(strValue.charAt(0)) != -1) {
_root.tmGlobal.key_sequence[("CODE_" + getKey("\u30F3")) + strKey] = _root.tmGlobal.key_sequence[("CODE_" + getKey("\u30F3")) + strKey] + ((((((((j == 0) ? "|" : "") + "NN") + strValue) + "|") + "NN") + strValue) + "|");
} else {
_root.tmGlobal.key_sequence[("CODE_" + getKey("\u30F3")) + strKey] = _root.tmGlobal.key_sequence[("CODE_" + getKey("\u30F3")) + strKey] + ((((((((j == 0) ? "|" : "") + "N") + strValue) + "|") + "NN") + strValue) + "|");
}
j++;
}
}
function getKey(strWord) {
var strResult = "";
var strKey = escape(strWord);
while (strKey.length > 0) {
if (strKey.charAt(0) == "%") {
strResult = strResult + strKey.substr(1, 2);
strKey = strKey.substr(3);
} else {
iCharCode = strKey.charCodeAt(0);
strResult = strResult + (256 + iCharCode).toString(16).substr(1);
strKey = strKey.substr(1);
}
}
return(strResult.toUpperCase());
}
function getInputSequence(strWord) {
var resultArray = new Array();
strWord = strWord + ".";
while (strWord.length > 0) {
var strCurrent = strWord.substr(0, 1);
var strNext = strWord.substr(1, 1);
strNext = ((strNext == ".") ? (((strCurrent == "\u30F3") ? (strNext) : "")) : (strNext));
if ((strCurrent == "\u30C3") || (strCurrent == "\u30F3")) {
strCurrent = strCurrent + strNext;
strNext = strWord.substr(2, 1);
}
if ("\u30A1\u30A3\u30A5\u30A7\u30A9\u30E3\u30E5\u30E7".indexOf(strNext) != -1) {
strCurrent = strCurrent + strNext;
}
var strKey = ("CODE_" + getKey(strCurrent));
if (strKey != ("CODE_" + getKey("."))) {
resultArray[resultArray.length] = strKey;
}
strWord = strWord.substr(strCurrent.length);
}
return(resultArray);
}
function getSequenceString(inArray) {
var i;
var infoResultString = new Array();
var strKeyHead1 = ("CODE_" + getKey("\u30C3"));
var strKeyHead2 = ("CODE_" + getKey("\u30F3"));
i = 0;
while (i < inArray.length) {
var strKey = inArray[i];
var strSequence = _root.tmGlobal.key_sequence[strKey];
var arrayPattern = strSequence.split("|");
if (strKey.indexOf(strKeyHead1) == 0) {
strKey = "CODE_" + strKey.substr(strKeyHead1.length);
}
if (strKey == strKeyHead2) {
infoResultString.push(arrayPattern[2]);
} else {
var iSetting = 0;
if (strKey.indexOf(strKeyHead2) == 0) {
strKey = "CODE_" + strKey.substr(strKeyHead2.length);
iSetting = ((_root.tmGlobal.key_setting[strKey] & 255) * 2) + (_root.tmGlobal.key_setting[strKeyHead2] & 255);
} else {
iSetting = _root.tmGlobal.key_setting[strKey] & 255;
}
infoResultString.push(arrayPattern[(((iSetting + 1) < arrayPattern.length) ? (iSetting + 1) : 1)]);
}
i++;
}
return(infoResultString);
}
tmGlobal = new Object();
tmGlobal.time_limit = 60;
tmGlobal.version = "3.32";
tmGlobal.max_name = 32;
tmGlobal.official = false;
tmGlobal.debug = false;
tmGlobal.base_url = decodeB64("aHR0cDovL3d3dy5kYXdnc2RrLm9yZy90eXBpbmdtb25hLw==", true);
tmGlobal.init_type = false;
tmGlobal.init_setting = false;
tmGlobal.time_out = 15;
tmGlobal.expire_setting = 1209600000 /* 0x48190800 */;
tmGlobal.key_sequence = new Object();
tmGlobal.key_setting = new Object();
bDebug = false;
strCGIBaseURL = "";
cgiPath = new Object();
cgiPath.ranking = strCGIBaseURL + "tm_ranking.cgi";
optSettings = new Object();
optSettings.cookie = false;
optSettings.name = "";
optSettings.key = new Object();
soundEffect = new Object();
soundEffect.right = new Sound();
soundEffect.right.attachSound("typeSE");
soundEffect.wrong = new Sound();
soundEffect.wrong.attachSound("missSE");
soundEffect.bgm = new Sound(_root);
strURL = _url;
if (strURL.indexOf("?", 0) != -1) {
strURL = strURL.split("?")[0];
}
_root.tmGlobal.official = strURL.indexOf(_root.tmGlobal.base_url) == 0;
tmGlobal.type_list = new Array(new Array("\u901D\u3063\u3066\u3088\u3057", "\u30A4\u30C3\u30C6\u30E8\u30B7", "AA_GIKO"), new Array("\u30AA\u30DE\u30A8\u30E2\u30CA\u30FC", "\u30AA\u30DE\u30A8\u30E2\u30CA\u30FC", "AA_MONA"), new Array("\u30B7\u30E9\u30CD\u30FC\u30E8", "\u30B7\u30E9\u30CD\u30FC\u30E8", "AA_NE-YO"), new Array("\u304A\u306B\u304E\u308A\u30EF\u30C3\u30B7\u30E7\u30A4", "\u30AA\u30CB\u30AE\u30EA\u30EF\u30C3\u30B7\u30E7\u30A4", "AA_ONIGIRI"), new Array("\u3053\u308D\u3053\u308D\u30FC", "\u30B3\u30ED\u30B3\u30ED\u30FC", "AA_ABNORMAL"), new Array("\u3044\u3044\u3093\u3058\u3083\u30CD\u30FC\u30CE", "\u30A4\u30A4\u30F3\u30B8\u30E3\u30CD\u30FC\u30CE", "AA_NE-NO"), new Array("\u30A2\u30D2\u30E3", "\u30A2\u30D2\u30E3", "AA_AHYA"), new Array("\u30B7\u30E7\u30DC\u30FC\u30F3", "\u30B7\u30E7\u30DC\u30FC\u30F3", "AA_SHOBON"), new Array("\u3082\u3046\u3053\u306D\u3048\u3088", "\u30E2\u30A6\u30B3\u30CD\u30A8\u30E8", "AA_UWAAN"), new Array("\u30B8\u30B5\u30AF\u30B8\u30A8\u30F3\u30C7\u30B7\u30BF", "\u30B8\u30B5\u30AF\u30B8\u30A8\u30F3\u30C7\u30B7\u30BF", "AA_JIEN"), new Array("\u306A\u3093\u3061\u3063\u3066", "\u30CA\u30F3\u30C1\u30C3\u30C6", "AA_CHIBIFUSA"), new Array("\u546A\u307E\u30FC\u3059", "\u30CE\u30ED\u30DE\u30FC\u30B9", "AA_SPH"), new Array("\u30C0\u30C3\u30B3", "\u30C0\u30C3\u30B3", "AA_C"), new Array("\u30DE\u30BF\u30FC\u30EA\u3057\u3088\u3046\u3088", "\u30DE\u30BF\u30FC\u30EA\u30B7\u30E8\u30A6\u30E8", "AA_MORARA"), new Array("\u30A6\u30C4\u30C0\u30B7\u30CE\u30A6", "\u30A6\u30C4\u30C0\u30B7\u30CE\u30A6", "AA_HIKKEY"), new Array("\u30BE\u30CC\u30FC\u30EA", "\u30BE\u30CC\u30FC\u30EA", "AA_ZONU"), new Array("\u30A6\u30DE\u30FC", "\u30A6\u30DE\u30FC", "AA_UMA-"));
tmGlobal.sequence_data = new Array("\u30A2 A", "\u30A4 I", "\u30A6 U", "\u30A8 E", "\u30AA O", "\u30AB KA", "\u30AD KI", "\u30AF KU", "\u30B1 KE", "\u30B3 KO", "\u30B5 SA", "\u30B7 SI/SHI", "\u30B9 SU", "\u30BB SE", "\u30BD SO", "\u30BF TA", "\u30C1 TI/CHI", "\u30C4 TU/TSU", "\u30C6 TE", "\u30C8 TO", "\u30CA NA", "\u30CB NI", "\u30CC NU", "\u30CD NE", "\u30CE NO", "\u30CF HA", "\u30D2 HI", "\u30D5 HU/FU", "\u30D8 HE", "\u30DB HO", "\u30DE MA", "\u30DF MI", "\u30E0 MU", "\u30E1 ME", "\u30E2 MO", "\u30E4 YA", "- -", "\u30E6 YU", "- -", "\u30E8 YO", "\u30E9 RA", "\u30EA RI", "\u30EB RU", "\u30EC RE", "\u30ED RO", "\u30EF WA", "- -", "\u30F2 WO", "- -", "\u30F3 N/NN", "\u30AC GA", "\u30AE GI", "\u30B0 GU", "\u30B2 GE", "\u30B4 GO", "\u30B6 ZA", "\u30B8 JI/ZI", "\u30BA ZU", "\u30BC ZE", "\u30BE ZO", "\u30C0 DA", "\u30C2 DI", "\u30C5 DU", "\u30C7 DE", "\u30C9 DO", "\u30D0 BA", "\u30D3 BI", "\u30D6 BU", "\u30D9 BE", "\u30DC BO", "\u30D1 PA", "\u30D4 PI", "\u30D7 PU", "\u30DA PE", "\u30DD PO", "\u30AD\u30E3 KYA", "- -", "\u30AD\u30E5 KYU", "- -", "\u30AD\u30E7 KYO", "\u30B7\u30E3 SYA/SHA", "- -", "\u30B7\u30E5 SYU/SHU", "- -", "\u30B7\u30E7 SYO/SHO", "\u30C1\u30E3 TYA/CHA", "- -", "\u30C1\u30E5 TYU/CHU", "- -", "\u30C1\u30E7 TYO/CHO", "\u30CB\u30E3 NYA", "- -", "\u30CB\u30E5 NYU", "- -", "\u30CB\u30E7 NYO", "\u30D2\u30E3 HYA", "- -", "\u30D2\u30E5 HYU", "- -", "\u30D2\u30E7 HYO", "\u30DF\u30E3 MYA", "- -", "\u30DF\u30E5 MYU", "- -", "\u30DF\u30E7 MYO", "\u30EA\u30E3 RYA", "- -", "\u30EA\u30E5 RYU", "- -", "\u30EA\u30E7 RYO", "\u30AE\u30E3 GYA", "- -", "\u30AE\u30E5 GYU", "- -", "\u30AE\u30E7 GYO", "\u30B8\u30E3 JA/ZYA/JYA", "- -", "\u30B8\u30E5 JU/ZYU/JYU", "- -", "\u30B8\u30E7 JO/ZYO/JYO", "\u30C2\u30E3 DYA", "- -", "\u30C2\u30E5 DYU", "- -", "\u30C2\u30E7 DYO", "\u30D3\u30E3 BYA", "- -", "\u30D3\u30E5 BYU", "- -", "\u30D3\u30E7 BYO", "\u30D4\u30E3 PYA", "- -", "\u30D4\u30E5 PYU", "- -", "\u30D4\u30E7 PYO", "\u30A1 LA/XA", "\u30A3 LI/XI", "\u30A5 LU/XU", "\u30A7 LE/XE", "\u30A9 LO/XO", "\u30E3 LYA/XYA", "- -", "\u30E5 LYU/XYU", "- -", "\u30E7 LYO/XYO", "\u30D5\u30A1 FA", "\u30D5\u30A3 FI", "- -", "\u30D5\u30A7 FE", "\u30D5\u30A9 FO", "\u30F4\u30A1 VA", "\u30F4\u30A3 VI", "\u30F4 VU", "\u30F4\u30A7 VE", "\u30F4\u30A9 VO", "\u30FC -");
_root.tmGlobal.key_setting = new Array();
_root.spellArray = new Array();
_root.strKeyArray = new Array();
Instance of Symbol 16 MovieClip "rankingAccess" in Frame 7
/* no clip actions */
Instance of Symbol 24 MovieClip "progressWindow" in Frame 10
onClipEvent (load) {
function procInitData() {
var bRet = false;
if (this.initProcDone >= this.initProcCount) {
return(true);
}
if (!_root.tmGlobal.init_type) {
_root.tmGlobal.init_type = procInitType();
} else {
if ((!_root.tmGlobal.init_setting) && (_root.settingAccess.bSettingLoadProc)) {
_root.settingAccess.applySettings();
_root.tmGlobal.init_setting = true;
}
bRet = procInitWord();
}
this.initProcDone = this.indexType + this.indexWord;
return(bRet);
}
function procInitType() {
if (this.indexType < _root.tmGlobal.sequence_data.length) {
_root.buildKeySequence(this.indexType++);
}
if (this.indexType < _root.tmGlobal.sequence_data.length) {
_root.buildKeySequence(this.indexType++);
}
return(this.indexType >= _root.tmGlobal.sequence_data.length);
}
function procInitWord() {
if (this.indexWord == 0) {
_root.tmGlobal.type_spell = new Array();
_root.tmGlobal.type_sequence = new Array();
}
_root.tmGlobal.type_sequence[this.indexWord] = _root.getInputSequence(_root.tmGlobal.type_list[this.indexWord][1]);
_root.tmGlobal.type_spell[this.indexWord] = _root.getSequenceString(_root.tmGlobal.type_sequence[this.indexWord]);
this.indexWord++;
return(this.indexWord >= _root.tmGlobal.type_list.length);
}
initProcCount = 0;
initProcCount = initProcCount + ((!_root.tmGlobal.init_type) ? (_root.tmGlobal.sequence_data.length) : 0);
initProcCount = initProcCount + _root.tmGlobal.type_list.length;
initProcDone = 0;
indexType = 0;
indexWord = 0;
}
onClipEvent (enterFrame) {
this.strProgress = Math.ceil((this.initProcDone * 100) / this.initProcCount) + "%";
if (procInitData()) {
_root.gotoAndPlay((_root.bBGM ? "TITLE" : "OPENING"));
}
}
Frame 13
stop();
Frame 14
prevFrame();
Instance of Symbol 63 MovieClip "setupWindow" in Frame 15
/* no clip actions */
Frame 17
stop();
Frame 18
prevFrame();
Frame 19
bBGM = true;
Frame 20
this.stop();
Instance of Symbol 90 MovieClip "titleWindow" in Frame 20
onClipEvent (load) {
this.strVersion = "ver " + _root.tmGlobal.version;
}
Frame 24
_root.soundEffect.bgm.stop();
this.stop();
Instance of Symbol 93 MovieClip "readyWindow" in Frame 24
/* no clip actions */
Frame 27
prevFrame();
Frame 28
tempTime = new Date();
_root.tmGlobal.time_start = tempTime.getTime();
stop();
Frame 32
stop();
Frame 33
prevFrame();
Frame 34
tempTime = new Date();
_root.tmGlobal.time_end = tempTime.getTime();
stop();
Frame 38
this.stop();
Instance of Symbol 262 MovieClip in Frame 38
onClipEvent (enterFrame) {
if (!bBGMFadeOut) {
return(undefined);
}
if (_root.soundEffect.bgm.getVolume() > 0) {
this.bgmVolume = this.bgmVolume - 0.5;
_root.soundEffect.bgm.setVolume(this.bgmVolume);
} else {
_root.soundEffect.bgm.stop();
bBGMFadeOut = false;
_root.soundEffect.bgm.setVolume(100);
}
}
onClipEvent (load) {
this.bgmVolume = 100;
}
Frame 41
gotoAndPlay (19);
Symbol 4 Button
on (release) {
_parent._parent.switchType(this._name);
}
Symbol 16 MovieClip Frame 1
function initRankingAccess() {
this.iStatusProc = 0;
this.bActive = false;
this.bStatusProc = false;
this.strPlayID = "";
this.strBaseID = "";
var strPlayIDVariable = _root.getDigest(_root.createSeed(((Math.random() * 65535) ^ getTimer()).toString()));
strPlayIDVariable = "";
}
function getRankingStatus() {
if (_root.tmGlobal.official) {
this.gotoAndPlay("RANKING_STATUS");
} else {
this.stop();
}
}
function getRankingStatusProc() {
if (!_root.tmGlobal.official) {
return(true);
}
if (this.iStatusProc < 4) {
this.iStatusProc = this.iStatusProc + 1;
return(false);
}
if (this.iStatusProc == 4) {
getURL ((("javascript:void((window.document.tmMovie) ? (window.document.tmMovie.SetVariable('_level0.rankingPlayID" + strPlayIDVariable) + "', playid))") + " : null);");
this.iStatusProc = this.iStatusProc + 1;
return(false);
}
if (this.iStatusProc < 8) {
this.iStatusProc = this.iStatusProc + 1;
return(false);
}
this.strBaseID = _root["rankingPlayID" + strPlayIDVariable];
this.bActive = this.strBaseID.length == 32;
this.bStatusProc = true;
return(true);
}
function setPlayID() {
if ((!_root.tmGlobal.official) || (!this.bActive)) {
return(false);
}
this.strPlayID = (this.strBaseID + "-") + _root.getDigest(_root.createSeed(((Math.random() * 65535) ^ getTimer()).toString())).substr(0, 4);
this.strPlayID = this.strPlayID + _root.getDigest(_root.createSeed(this.strPlayID)).substr(0, 4);
return(true);
}
function entryRanking(strEntryName) {
var strKey = this.strBaseID;
var rankingData = new Array(getDataExpression(Math.round(parseFloat(_root.tmGlobal.version) * 100), strKey, 0, 0), getDataExpression(_root.resultWindow.typeScore, strKey, 1, 0), getDataExpression(Math.round(_root.resultWindow.typeMiss * 100), strKey, 2, 0), getDataExpression(Math.round(_root.resultWindow.typeRate * 1000), strKey, 3, 0), getDataExpression(_root.tmGlobal.time_start, strKey, 4, 1), getDataExpression(_root.tmGlobal.time_end, strKey, 5, 1), getDataExpression(Math.round(parseFloat(_root.tmGlobal.version) * 100), strKey, 6, 0), getDataExpression(_root.resultWindow.typeScore, strKey, 7, 0), getDataExpression(Math.round(_root.resultWindow.typeMiss * 100), strKey, 8, 0), getDataExpression(Math.round(_root.resultWindow.typeRate * 1000), strKey, 9, 0), getDataExpression(_root.tmGlobal.time_start, strKey, 10, 1), getDataExpression(_root.tmGlobal.time_end, strKey, 11, 1));
strQuery = "?code=A51B2125";
strQuery = strQuery + ("&playid=" + this.strPlayID);
strQuery = strQuery + ("&data=" + rankingData.join("").toUpperCase());
strQuery = strQuery + ("&name=" + escape(strEntryName));
strTarget = (_root.tmGlobal.debug ? "tm_result.xml" : (_root.cgiPath.ranking + strQuery));
this.rankingObject = new Object();
this.bProcRanking = false;
rankingXML = new XML();
rankingXML.onLoad = parseResultXML;
this.rankingObject.busy = true;
this.rankingObject.accesstime = getTimer();
rankingXML.load(strTarget);
}
function getDataExpression(dwData, strKey, iIndex, iLength) {
var strSeed = ((strKey.substr(iIndex * 2, 2) + "ZcNXiPPb") + (iLength ^ iIndex).toString(16));
var tempData = _root.createSeed(strSeed);
var strDigest = _root.getDigest(tempData).substr(7, 8);
var dwTemp = parseInt("0x0" + strDigest);
return(((iLength == 0) ? (hex16(dwData ^ dwTemp)) : (_root.hex32(dwData ^ dwTemp))));
}
function hex16(dwData) {
return((65536 | (dwData & 65535)).toString(16).substr(1));
}
function parseResultXML() {
var xmlFolder = new XML();
var elementTag = new XML();
var contentList = new Array();
var elementList = new Array();
var result = new Object();
xmlFolder = this.firstChild.nextSibling;
if (xmlFolder.nodeName.toLowerCase() == "typingmona") {
contentList = xmlFolder.childNodes;
i = 0;
while (i <= contentList.length) {
var strMark = contentList[i].nodeName.toLowerCase();
if (strMark.length > 0) {
_root.rankingAccess.rankingObject[strMark] = contentList[i].firstChild.nodeValue;
}
i++;
}
}
if (this.loaded) {
_root.rankingAccess.rankingObject.busy = false;
_root.rankingAccess.bProcRanking = true;
}
}
function procRanking() {
if (this.rankingObject.busy) {
if ((getTimer() - this.rankingObject.accesstime) > (_root.tmGlobal.time_out * 1000)) {
delete this.rankingXML;
return("ERROR:210 SERVER BUSY");
}
return("");
}
if (!this.bProcRanking) {
return("");
}
return(this.rankingObject.status);
}
this.initRankingAccess();
this.getRankingStatus();
Symbol 16 MovieClip Frame 6
if (this.getRankingStatusProc()) {
this.stop();
}
Symbol 16 MovieClip Frame 11
this.gotoAndPlay("RANKING_STATUS");
Symbol 17 MovieClip Frame 1
function initSetting() {
settingLoadObject = new Object();
settingLoadObject.keysettings = new Object();
var bSettingLoadProc = false;
var bSettingSaveProc = false;
var bSettingClearProc = false;
var strSettingVariable = _root.getDigest(_root.createSeed(((Math.random() * 65535) ^ getTimer()).toString()));
}
function loadSetting() {
bSettingLoadProc = false;
iSettingLoadProc = (_root.tmGlobal.debug ? 1 : 0);
_root["settingCookie" + strSettingVariable] = (_root.tmGlobal.debug ? "status=OK; version=3.12; name=NANASISAN; key-8356=SHI; key-8360=CHI" : "");
if (_root.tmGlobal.official) {
this.gotoAndPlay("LOAD_SETTING");
} else {
this.stop();
}
}
function loadSettingProc() {
if (!_root.tmGlobal.official) {
return(true);
}
if (iSettingLoadProc == 0) {
getURL ((("javascript:void((window.document.tmMovie) ? (window.document.tmMovie.SetVariable('_level0.settingCookie" + strSettingVariable) + "', document.cookie))") + " : null);");
iSettingLoadProc = iSettingLoadProc + 1;
return(false);
}
if (iSettingLoadProc < 8) {
iSettingLoadProc = iSettingLoadProc + 1;
return(false);
}
var strSettingCookie = _root["settingCookie" + strSettingVariable];
parseSettingCookie(strSettingCookie);
bSettingLoadProc = true;
return(true);
}
function parseSettingCookie(strSettingCookie) {
var arrayCookie = strSettingCookie.split(";");
for (iCookie in arrayCookie) {
itemCookie = arrayCookie[iCookie].split(" ").join("").split("=");
strItemKey = itemCookie.shift();
strItemValue = unescape(itemCookie.join("="));
if (((strItemKey == "name") || (strItemKey == "version")) || (strItemKey == "status")) {
settingLoadObject[strItemKey] = strItemValue;
}
if (strItemKey.indexOf("key-") == 0) {
var strCode = strItemKey.split("-")[1];
this.settingLoadObject.keysettings["CODE_" + strCode] = strItemValue;
}
}
}
function applySettings() {
if ((!_root.tmGlobal.official) || (!this.bSettingLoadProc)) {
return(undefined);
}
_root.optSettings.cookie = this.settingLoadObject.version == _root.tmGlobal.version;
if (!_root.optSettings.cookie) {
return(undefined);
}
_root.optSettings.name = unescape(this.settingLoadObject.name);
var tempKeySetting = this.settingLoadObject.keysettings;
for (strCode in _root.tmGlobal.key_setting) {
if ((_root.tmGlobal.key_setting[strCode] >> 8) > 1) {
var strSequence = tempKeySetting[strCode];
if (typeof(strSequence) == "string") {
var tempList = _root.tmGlobal.key_sequence[strCode].split("|");
var i;
i = 0;
while (i < tempList.length) {
if (tempList[i + 1] == strSequence) {
_root.tmGlobal.key_setting[strCode] = (_root.tmGlobal.key_setting[strCode] & 65280) | i;
}
i++;
}
}
}
}
}
function saveSettings() {
if (_root.tmGlobal.official) {
iSettingSaveProc = 0;
bSettingSaveProc = false;
this.gotoAndPlay("SAVE_SETTING");
}
}
function saveSettingProc() {
if (!_root.tmGlobal.official) {
return(true);
}
var bSaveFlag = _root.optSettings.cookie;
var curDate = new Date();
var expDate = new Date((bSaveFlag ? (curDate.getTime() + _root.tmGlobal.expire_setting) : 0));
strExpireDate = getExpireDate(expDate);
if (bSaveFlag) {
getURL (((((((((("javascript:void((window.document.cookie='version=" + escape(_root.tmGlobal.version)) + "; expires=") + strExpireDate) + "')") + "+(window.document.cookie='name=") + escape(escape(_root.optSettings.name))) + "; expires=") + strExpireDate) + "')") + ")");
} else {
getURL (((((("javascript:void((window.document.cookie='version=; expires=" + strExpireDate) + "')") + "+(window.document.cookie='name=; expires=") + strExpireDate) + "')") + ")");
}
bSettingSaveProc = true;
return(true);
}
function getExpireDate(inDate) {
var strExpireDate = ((((((((((((("Sun Mon Tue Wed Thu Fri Sat".split(" ")[inDate.getUTCDay()] + ", ") + (inDate.getUTCDate() + 100).toString().substr(1)) + "-") + "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")[inDate.getUTCMonth()]) + "-") + inDate.getUTCFullYear()) + " ") + (inDate.getUTCHours() + 100).toString().substr(1)) + ":") + (inDate.getUTCMinutes() + 100).toString().substr(1)) + ":") + (inDate.getUTCSeconds() + 100).toString().substr(1)) + " GMT");
return(strExpireDate);
}
initSetting();
loadSetting();
Symbol 17 MovieClip Frame 6
if (loadSettingProc()) {
this.stop();
}
Symbol 17 MovieClip Frame 11
this.gotoAndPlay("LOAD_SETTING");
Symbol 17 MovieClip Frame 16
if (saveSettingProc()) {
stop();
}
Symbol 17 MovieClip Frame 21
this.gotoAndPlay("SAVE_SETTING");
Symbol 24 MovieClip Frame 1
this.stop();
Symbol 30 Button
on (press) {
_parent.pressLargeFlag = true;
}
on (release, releaseOutside) {
_parent.pressLargeFlag = false;
}
Symbol 32 Button
on (press) {
_parent._parent.handleFlag = true;
}
on (release, releaseOutside) {
_parent._parent.handleFlag = false;
}
Symbol 36 Button
on (press) {
this.pressUpFlag = true;
}
on (release, releaseOutside) {
this.pressUpFlag = false;
}
Symbol 38 Button
on (press) {
this.pressDownFlag = true;
}
on (release, releaseOutside) {
this.pressDownFlag = false;
}
Symbol 39 MovieClip Frame 1
function setPos(value) {
this.position = value;
this.position = ((this.position > 100) ? 100 : (this.position));
this.position = ((this.position < 0) ? 0 : (this.position));
pagescroll.handle._y = ((this.position - 50) / 100) * (pagescroll._height - pagescroll.handle._height);
}
pressUpFlag = false;
pressDownFlag = false;
pressLargeFlag = false;
handleFlag = false;
largeChange = 10;
smallChange = 2;
position = 0;
stop();
Instance of Symbol 34 MovieClip "pagescroll" in Symbol 39 MovieClip Frame 1
onClipEvent (load) {
_parent.setPos(0);
}
onClipEvent (enterFrame) {
if (_parent.pressUpFlag) {
_parent.setPos(_parent.position - _parent.smallChange);
}
if (_parent.pressDownFlag) {
_parent.setPos(_parent.position + _parent.smallChange);
}
if (_parent.handleFlag) {
var nextPos = (50 + ((100 * this._ymouse) / (this._height - handle._height)));
_parent.setPos(nextPos);
}
if (_parent.pressLargeFlag) {
var delta = (_parent.largeChange * ((this._ymouse > handle._y) ? 1 : -1));
var current = (50 + ((100 * this._ymouse) / (this._height - handle._height)));
if (Math.abs(this._ymouse - handle._y) < (_handle._height / 2)) {
_parent.pressLargeFlag = false;
return(undefined);
}
if (((_parent.position - current) * ((_parent.position + delta) - current)) <= 0) {
_parent.setPos(current);
_parent.pressLargeFlag = false;
return(undefined);
}
_parent.setPos(_parent.position + delta);
}
}
Symbol 46 MovieClip Frame 1
function checkName(strInput) {
this.gotoAndStop(((getByteLength(strInput) > _root.tmGlobal.max_name) ? "NAME_TOO_LONG" : "NAME_OK"));
}
function getByteLength(strInput) {
var strTemp = escape(strInput);
var iRet = 0;
while (strTemp.length > 0) {
strTemp = strTemp.substr(((strTemp.charAt(0) == "%") ? 3 : 1));
iRet++;
}
return(iRet);
}
this.gotoAndStop("NAME_OK");
Symbol 46 MovieClip Frame 2
this.stop();
Symbol 46 MovieClip Frame 5
this.stop();
Symbol 50 Button
on (release) {
this.gotoAndPlay((this.bCheck ? "UNCHECKED" : "CHECKED"));
}
Symbol 52 MovieClip Frame 1
this.gotoAndStop((this.bCheck ? "CHECKED" : "UNCHECKED"));
Symbol 52 MovieClip Frame 3
this.bCheck = true;
this.stop();
Symbol 52 MovieClip Frame 6
this.bCheck = false;
this.stop();
Symbol 57 MovieClip Frame 1
function updateOptions() {
if (!_root.tmGlobal.official) {
return(undefined);
}
_root.optSettings.name = this.defaultName;
_root.optSettings.cookie = this.checkCookie.bCheck;
}
if (!_root.tmGlobal.official) {
this._visible = false;
} else {
if (_root.rankingAccess.bActive) {
this.defaultName = _root.optSettings.name;
}
this.checkCookie.bCheck = _root.optSettings.cookie;
}
if (!_root.rankingAccess.bActive) {
nextFrame();
}
this.stop();
Instance of Symbol 46 MovieClip "nameCheck" in Symbol 57 MovieClip Frame 1
onClipEvent (enterFrame) {
this.checkName(_parent.defaultName);
}
Symbol 57 MovieClip Frame 2
this.stop();
Symbol 62 Button
on (release) {
if (this.optionWindow.nameCheck.getByteLength(optionWindow.defaultName) <= _root.tmGlobal.max_name) {
this.optionWindow.updateOptions();
_root.settingAccess.saveSettings();
_root.gotoAndPlay("INIT_PROC");
}
}
Symbol 63 MovieClip Frame 1
this.stop();
Instance of Symbol 26 MovieClip "romajiView" in Symbol 63 MovieClip Frame 1
onClipEvent (load) {
function loadLine(iY) {
var strLine = ("romajiLine" + iY);
this.attachMovie("romajiLine", strLine, iY);
this[strLine]._x = 0;
this[strLine]._y = ((this.defaultHeight / 8) * iY) + marginY;
iX = 0;
while (iX < 5) {
var index = ((iY * 5) + iX);
var strItems = _root.tmGlobal.sequence_data[index].split(" ");
var typeItems = strItems[1].split("/");
var strName = ("romajiOut_" + index);
var strTarget = ((typeItems.length > 1) ? "romajiSelect2" : "romajiSelect1");
this[strLine].attachMovie(strTarget, strName, iX);
var iDisp = 0;
if (typeItems.length > 1) {
iDisp = _root.tmGlobal.key_setting["CODE_" + _root.getKey(strItems[0])];
}
this[strLine][strName]._x = marginX + ((iX * (this._width - (marginX * 2))) / 5);
this[strLine][strName]._y = 0;
this[strLine][strName].strKana = strItems[0];
this[strLine][strName].strType = typeItems[iDisp & 255];
iX++;
}
}
function switchType(strID) {
var strLine = ("romajiLine" + Math.floor(parseInt(strID.split("_")[1]) / 5));
var strKana = this[strLine][strID].strKana;
var strKey = _root.getKey(strKana);
var strCode = ("CODE_" + strKey);
var curSetting = _root.tmGlobal.key_setting[strCode];
var newSetting = (((curSetting & 255) + 1) % (curSetting >> 8));
_root.tmGlobal.key_setting[strCode] = newSetting | (curSetting & 65280);
typeItems = _root.tmGlobal.key_sequence[strCode].split("|");
this[strLine][strID].strType = typeItems[newSetting + 1];
var curDate = new Date();
var expDate = new Date(curDate.getTime() + 31536000000);
strExpireDate = _root.settingAccess.getExpireDate(expDate);
getURL (((((("javascript:void(window.document.cookie='key-" + strKey) + "=") + typeItems[newSetting + 1]) + "; expires=") + strExpireDate) + "')");
}
defaultHeight = this._height;
defaultPosition = this._y;
marginX = 8;
marginY = 8;
iLoadedLines = 0;
iLineCount = 31;
}
onClipEvent (enterFrame) {
if (this.iLoadedLines < this.iLineCount) {
loadLine(this.iLoadedLines++);
}
var deltaY = ((((((this.defaultHeight / 8) * iLineCount) + (2 * this.marginY)) - defaultHeight) * _parent.vscroll.position) / 100);
this._y = defaultPosition - deltaY;
var i = 0;
while (i < this.iLineCount) {
strLine = "romajiLine" + i;
var bVisible = true;
bVisible = bVisible & ((this[strLine]._y - deltaY) < defaultHeight);
bVisible = bVisible & (((this[strLine]._y + this[strLine]._height) - deltaY) > 0);
this[strLine]._visible = bVisible;
i++;
}
}
Instance of Symbol 39 MovieClip "vscroll" in Symbol 63 MovieClip Frame 1
onClipEvent (load) {
this.setPos(0);
}
onClipEvent (enterFrame) {
}
Symbol 73 MovieClip Frame 1
this._alpha = 0;
Symbol 73 MovieClip Frame 6
this.stop();
Symbol 73 MovieClip Frame 7
this._alpha = 0;
Symbol 73 MovieClip Frame 12
this.stop();
Symbol 73 MovieClip Frame 13
this._alpha = 0;
Symbol 73 MovieClip Frame 18
this.stop();
Symbol 73 MovieClip Frame 19
this.stop();
Symbol 76 MovieClip Frame 1
this.stop();
Symbol 76 MovieClip Frame 7
this.stop();
Symbol 76 MovieClip Frame 13
this.stop();
Symbol 82 Button
on (release) {
_root.gotoAndPlay("START");
}
on (keyPress "<Space>") {
_root.gotoAndPlay("START");
}
on (rollOver, dragOver) {
this.msgTitle.gotoAndStop("MSG_START");
}
on (rollOut, dragOut) {
this.msgTitle.gotoAndStop("MSG_DEFAULT");
}
Symbol 84 Button
on (release) {
_root.gotoAndPlay("SETUP");
}
on (rollOver, dragOver) {
this.msgTitle.gotoAndStop("MSG_SETUP");
}
on (rollOut, dragOut) {
this.msgTitle.gotoAndStop("MSG_DEFAULT");
}
Symbol 87 Button
on (release) {
_root.gotoAndPlay("EXIT");
}
Symbol 89 MovieClip Frame 1
this._alpha = 100;
this.gotoAndPlay(2);
Symbol 89 MovieClip Frame 3
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
gotoAndPlay(_currentframe - 1);
} else {
this.stop();
}
Symbol 90 MovieClip Frame 1
this.dispStatus.gotoAndStop((_root.tmGlobal.official ? ((_root.rankingAccess.bActive ? "ACTIVE" : "INACTIVE")) : "UNOFFICIAL"));
this.stop();
Instance of Symbol 73 MovieClip "msgTitle" in Symbol 90 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
}
Symbol 93 MovieClip Frame 20
_root.rankingAccess.setPlayID();
_root.gotoAndPlay("MAIN_LOOP");
this.stop();
Symbol 105 MovieClip Frame 7
this.stop();
Symbol 108 MovieClip Frame 12
this.stop();
Symbol 139 MovieClip Frame 50
this.gotoAndPlay(1);
Symbol 143 MovieClip Frame 12
this.stop();
Symbol 150 MovieClip Frame 1
this.gotoAndPlay("AHYA_START");
Symbol 150 MovieClip Frame 73
this.gotoAndPlay(2);
Symbol 163 MovieClip Frame 1
this.gotoAndPlay(50);
Symbol 163 MovieClip Frame 181
this.gotoAndPlay(2);
Symbol 167 MovieClip Frame 24
stop();
Symbol 173 MovieClip Frame 13
this.stop();
Symbol 184 MovieClip Frame 12
this.stop();
Symbol 187 MovieClip Frame 12
this.stop();
Symbol 191 MovieClip Frame 24
stop();
Symbol 198 MovieClip Frame 1
this.stop();
Symbol 198 MovieClip Frame 7
this.stop();
Symbol 198 MovieClip Frame 13
this.stop();
Symbol 198 MovieClip Frame 19
this.stop();
Symbol 198 MovieClip Frame 25
this.stop();
Symbol 198 MovieClip Frame 31
this.stop();
Symbol 198 MovieClip Frame 37
this.stop();
Symbol 198 MovieClip Frame 43
this.stop();
Symbol 198 MovieClip Frame 49
this.stop();
Symbol 198 MovieClip Frame 55
this.stop();
Symbol 198 MovieClip Frame 61
this.stop();
Symbol 198 MovieClip Frame 67
this.stop();
Symbol 198 MovieClip Frame 73
stop();
Symbol 198 MovieClip Frame 79
this.stop();
Symbol 198 MovieClip Frame 85
this.stop();
Symbol 198 MovieClip Frame 91
this.stop();
Symbol 198 MovieClip Frame 97
this.stop();
Symbol 198 MovieClip Frame 103
this.stop();
Symbol 207 MovieClip Frame 1
this.stop();
Instance of Symbol 206 MovieClip "infoKeyProc" in Symbol 207 MovieClip Frame 1
onClipEvent (load) {
function procStart(iProcStep) {
switch (iProcStep) {
case 16 :
this.playtime = 0;
this.startTime = getTimer();
_parent.strTime = _root.tmGlobal.time_limit;
_root.tmGlobal.type_count = 0;
_root.tmGlobal.miss_count = 0;
case 32 :
var iWordIndex = (((_root.mode == "test") ? (iWordIndex + 1) : (Math.floor(Math.random() * 65535))) % _root.tmGlobal.type_list.length);
this.infoInputSeq = _root.tmGlobal.type_sequence[iWordIndex].slice(0);
this.infoTargetSeq = _root.tmGlobal.type_spell[iWordIndex].slice(0);
_parent.infoAA.gotoAndStop("AA_NONE");
this.strTypeImage = _root.tmGlobal.type_list[iWordIndex][2];
_parent.infoAA._visible = false;
_parent.infoTarget._visible = (_parent.infoSequence._visible = (_parent.infoInput._visible = false));
_parent.strTarget = _root.tmGlobal.type_list[iWordIndex][0];
_parent.strSequence = this.infoTargetSeq.join("");
_parent.strInput = "";
_parent.infoCursor._x = _parent.infoInput._x;
this.strTypeBuffer = "";
this.strTypeNext = "";
this.strTypeOK = "";
this.iCurrentType = -1;
this.iProc = 16;
return;
case 240 :
this.iProc = 240;
_root.gotoAndPlay("OVER");
return(undefined);
}
}
procStart(16);
}
onClipEvent (keyDown) {
if (this.iProc != 16) {
return(undefined);
}
var strKey = String.fromCharCode(Key.getAscii());
strKey = strKey.toUpperCase();
if (_root.mode == "test") {
_parent.gotoAndPlay("NEXT_WORD");
return(undefined);
}
if (this.strTypeNext.length == 0) {
this.strTypeNext = _root.tmGlobal.key_sequence[this.infoInputSeq.shift()];
this.iCurrentType++;
}
bRight = strKey.length > 0;
bRight = bRight & ("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-,. ".indexOf(strKey) != -1);
bRight = bRight & (this.strTypeNext.indexOf(("|" + this.strTypeBuffer) + strKey) != -1);
if (bRight) {
this.strTypeBuffer = this.strTypeBuffer + strKey;
_root.tmGlobal.type_count++;
_root.soundEffect.right.start();
if (infoTargetSeq[this.iCurrentType].indexOf(this.strTypeBuffer) != 0) {
infoTargetSeq[this.iCurrentType] = strTypeNext.substr(strTypeNext.indexOf("|" + this.strTypeBuffer)).split("|")[1];
_parent.strSequence = infoTargetSeq.join("");
}
if (this.strTypeNext.indexOf(("|" + this.strTypeBuffer) + "|") != -1) {
this.strTypeOK = this.strTypeOK + this.strTypeBuffer;
this.strTypeBuffer = "";
this.strTypeNext = "";
}
} else {
_root.tmGlobal.miss_count++;
_root.soundEffect.wrong.start();
}
_parent.strInput = this.strTypeOK + this.strTypeBuffer;
_parent.infoCursor._x = _parent.infoInput._x + _parent.infoInput.textWidth;
if ((this.strTypeNext.length == 0) && (this.infoInputSeq.length == 0)) {
procStart(32);
}
}
onClipEvent (enterFrame) {
if (!_parent.infoAA._visible) {
_parent.infoAA.gotoAndStop(this.strTypeImage);
_parent.infoAA._visible = true;
_parent.infoTarget._visible = (_parent.infoSequence._visible = (_parent.infoInput._visible = true));
}
this.playTime = getTimer() - this.startTime;
var restTime = Math.max(0, (_root.tmGlobal.time_limit * 1000) - this.playTime);
_parent.strTime = Math.ceil(restTime / 1000);
if (restTime <= 0) {
procStart(240);
}
_parent.timeBar._xscale = (100 * _parent.strTime) / _root.tmGlobal.time_limit;
}
Symbol 219 MovieClip Frame 1
this.stop();
Symbol 219 MovieClip Frame 7
this._alpha = 0;
this.stop();
Symbol 219 MovieClip Frame 13
this._alpha = 0;
this.stop();
Symbol 223 Button
on (release) {
_root.gotoAndPlay("TITLE");
}
on (rollOver, dragOver) {
this.msgResult.gotoAndStop("MSG_CLOSE");
}
on (rollOut, dragOut) {
this.msgResult.gotoAndStop("MSG_DEFAULT");
}
Symbol 225 Button
on (rollOver, dragOver) {
this.msgResult.gotoAndStop("MSG_RANKING");
}
on (rollOut, dragOut) {
this.msgResult.gotoAndStop("MSG_DEFAULT");
}
on (release) {
this.gotoAndStop("RANKING");
}
Symbol 234 MovieClip Frame 1
function msgSelect(strSelect) {
if (!checkName(_parent.strName)) {
this.gotoAndStop("MSG_" + strSelect);
}
}
function checkName(strInput) {
return(getByteLength(strInput) > _root.tmGlobal.max_name);
}
function getByteLength(strInput) {
var strTemp = escape(strInput);
var iRet = 0;
while (strTemp.length > 0) {
strTemp = strTemp.substr(((strTemp.charAt(0) == "%") ? 3 : 1));
iRet++;
}
return(iRet);
}
this.strMsgType = "";
this.gotoAndStop("MSG_DEFAULT");
Symbol 234 MovieClip Frame 2
this.strMsgType = "APPLY";
this._alpha = 0;
this.stop();
Symbol 234 MovieClip Frame 7
this.strMsgType = "CANCEL";
this._alpha = 0;
this.stop();
Symbol 234 MovieClip Frame 13
this._alpha = 0;
this.stop();
Symbol 234 MovieClip Frame 19
this.strMsgType = "DEFAULT";
this.stop();
Symbol 235 Button
on (rollOver, dragOver) {
this.msgName.msgSelect("APPLY");
}
on (rollOut, dragOut) {
this.msgName.msgSelect("DEFAULT");
}
on (release) {
if (this.msgName.getByteLength(strName) <= _root.tmGlobal.max_name) {
this.gotoAndPlay("APPLY_RESULT");
}
}
Symbol 237 Button
on (rollOver, dragOver) {
this.msgName.msgSelect("CANCEL");
}
on (rollOut, dragOut) {
this.msgName.msgSelect("DEFAULT");
}
on (release) {
_parent.gotoAndStop("RESULT");
}
Symbol 243 MovieClip Frame 1
bRetry = false;
this.stop();
Symbol 243 MovieClip Frame 3
bRetry = true;
this.stop();
Symbol 243 MovieClip Frame 5
bRetry = true;
this.stop();
Symbol 244 Button
on (release) {
if (errorMessage.bRetry) {
this.gotoAndPlay("INPUT_NAME");
} else {
_parent.gotoAndStop("EXIT");
}
}
Symbol 246 MovieClip Frame 1
this.strName = _root.optSettings.name;
Instance of Symbol 234 MovieClip "msgName" in Symbol 246 MovieClip Frame 1
onClipEvent (enterFrame) {
if (checkName(_parent.strName)) {
this.gotoAndStop("MSG_NAME");
} else {
this.gotoAndStop("MSG_" + this.strMsgType);
}
this._alpha = this._alpha + ((this._alpha < 100) ? 5 : 0);
}
Symbol 246 MovieClip Frame 2
this.stop();
Symbol 246 MovieClip Frame 5
_root.rankingAccess.entryRanking(this.strName);
dwAccessTime = getTimer();
Symbol 246 MovieClip Frame 11
strRetStatus = _root.rankingAccess.procRanking();
if (strRetStatus.length == 0) {
this.gotoAndPlay("LOOP_ENTRY");
} else if (strRetStatus == "OK") {
_root.resultWindow.addRanking(_root.rankingAccess.rankingObject.ranking);
}
Symbol 246 MovieClip Frame 12
var dwErrorCode = 0;
if (strRetStatus.indexOf("ERROR:") == 0) {
dwErrorCode = parseInt("0x0" + strRetStatus.split(" ")[0].split(":")[1]);
}
var dwErrorType = (dwErrorCode >> 8);
if (dwErrorType == 1) {
errorMessage.gotoAndStop("ERROR_INVALID");
} else if (dwErrorType == 2) {
var bReInput = (dwErrorCode == 512);
bReInput = bReInput | (dwErrorCode == 513);
errorMessage.gotoAndStop((bReInput ? "ERROR_NAME" : "ERROR_BUSY"));
}
this.stop();
Symbol 247 Button
on (release) {
_root.gotoAndPlay((_root.tmGlobal.official ? "TITLE" : "EXIT"));
}
Symbol 248 MovieClip Frame 1
function addRanking(strRanking) {
var dwRanking = strRanking.split("/");
arrayOutput = strOutput.split(newline);
strLastLine = arrayOutput.pop();
arrayOutput.push(((("\u30E9\u30F3\u30AD\u30F3\u30B0\uFF1A" + dwRanking[0]) + "\u4F4D/") + dwRanking[1]) + "\u4EBA\u4E2D", strLastLine);
strOutput = arrayOutput.join(newline);
this.gotoAndStop("EXIT");
}
var typeTotal = (_root.tmGlobal.type_count + _root.tmGlobal.miss_count);
var typeRate = (Math.floor((_root.tmGlobal.type_count / _root.tmGlobal.time_limit) * 1000) / 1000);
if (isNan(typeTotal)) {
_root.gotoAndPlay("EXIT");
}
var typeScore = ((typeTotal == 0) ? 0 : (Math.round(((typeRate * _root.tmGlobal.type_count) / typeTotal) * 400)));
var typeMiss = ((typeTotal == 0) ? 0 : (Math.floor((_root.tmGlobal.miss_count / typeTotal) * 1000) / 10));
strOutput = ("\u30BF\u30A4\u30D4\u30F3\u30B0\u30E2\u30CA\u30FC ver " + _root.tmGlobal.version) + newline;
strOutput = strOutput + "\u30BF\u30A4\u30D7\u6570\uFF1A";
strOutput = strOutput + (typeTotal + newline);
strOutput = strOutput + "\u30DF\u30B9\u30BF\u30A4\u30D7\uFF1A";
strOutput = strOutput + _root.tmGlobal.miss_count;
if (typeTotal > 0) {
strOutput = strOutput + (("(" + typeMiss) + "%)");
}
strOutput = strOutput + newline;
strOutput = strOutput + "\u5E73\u5747\u901F\u5EA6(keys/s)\uFF1A";
strOutput = strOutput + typeRate;
strOutput = strOutput + "\n\n\u30B9\u30B3\u30A2\uFF1A";
strOutput = strOutput + typeScore;
var levelArray = new Array("5.8:\u795E!!", "4.6:\uFF08\u30FB\u2200\u30FB\uFF09\uFF72\uFF72!!", "3.4:\u6A19\u6E96", "2.2:\uFF8F\uFF80\uFF70\uFF98", "1.0:\u901D\u3063\u3066\u3088\u3057", "0.0:\uFF08\u30FB\u2200\u30FB\uFF09\uFF76\uFF74\uFF9A!!");
var stdCorrect = 380;
i = 0;
while (i < levelArray.length) {
rankItems = levelArray[i].split(":");
rankScore = parseFloat(rankItems[0]) * stdCorrect;
if (typeScore >= rankScore) {
strRank = rankItems[1];
strRank = strRank + (((typeScore - rankScore) > (0.4 * stdCorrect)) ? "+" : "");
strRank = strRank + (((typeScore - rankScore) > (0.8 * stdCorrect)) ? "+" : "");
break;
}
i++;
}
strOutput = strOutput + (("\n\u3042\u306A\u305F\u306F\u300C" + strRank) + "\u300D\u30EC\u30D9\u30EB\u3067\u3059");
if (((!_root.tmGlobal.official) || (!_root.rankingAccess.bActive)) || (_root.rankingAccess.strPlayID.length != 41)) {
this.gotoAndStop("EXIT");
}
stop();
Instance of Symbol 219 MovieClip "msgResult" in Symbol 248 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = this._alpha + ((this._alpha < 100) ? 5 : 0);
}
Symbol 248 MovieClip Frame 4
this.stop();
Symbol 248 MovieClip Frame 7
this.stop();
Symbol 248 MovieClip Frame 10
this.stop();
Instance of Symbol 219 MovieClip "msgResult" in Symbol 248 MovieClip Frame 10
onClipEvent (enterFrame) {
this._alpha = this._alpha + ((this._alpha < 100) ? 5 : 0);
}
Symbol 257 MovieClip Frame 1
this._alpha = 0;
this.stop();
Symbol 257 MovieClip Frame 3
if (this._alpha < 100) {
this._alpha = this._alpha + 2;
gotoAndPlay(_currentframe - 1);
}
Symbol 257 MovieClip Frame 4
this.stop();
Symbol 257 MovieClip Frame 5
prevFrame();
Symbol 261 MovieClip Frame 1
this._alpha = 0;
this.stop();
Symbol 261 MovieClip Frame 3
if (this._alpha < 100) {
this._alpha = this._alpha + 2;
gotoAndPlay(_currentframe - 1);
}
Symbol 261 MovieClip Frame 4
this.stop();
Symbol 261 MovieClip Frame 5
prevFrame();
Symbol 262 MovieClip Frame 1
bBGMFadeOut = false;
effectCounter = 0;
Symbol 262 MovieClip Frame 3
if (effectCounter < 64) {
effectCounter++;
if (effectCounter == 24) {
this.guideMC.play();
}
if (effectCounter == 64) {
this.preferenceMC.play();
}
this.gotoAndPlay(this._currentFrame - 1);
}
Symbol 262 MovieClip Frame 4
this.bBGMFadeOut = true;
this.stop();
Symbol 262 MovieClip Frame 5
prevFrame();