Frame 1
stop();
Frame 3
function ChangeWebData(i_aArray) {
var _local3 = 0;
var _local2 = 0;
var _local1 = 0;
var _local4 = false;
_local3 = 0;
while (_local3 < 5) {
_local2 = 0;
while (_local2 < 3) {
i_aArray[_local3][_local2] = "";
while (rank_txt.substr(_local1, 1) != " ") {
if (rank_txt.substr(_local1, 1) == "<") {
_local1 = _local1 + 4;
_local4 = true;
break;
}
i_aArray[_local3][_local2] = i_aArray[_local3][_local2] + rank_txt.substr(_local1, 1);
_local1++;
}
if (_local4 == false) {
_local1 = _local1 + 3;
} else {
_local4 = false;
}
_local2++;
}
_local3++;
}
}
function GetRanking() {
if (DEBUG_WEB) {
rank_txt = "20080607 : hiGasHi : 10000<br>20080608 : kIseN : 5000<br>20080609 : WataNAbe : 3000<br>20080610 : nakamura : 1000<br>20080611 : aoki : 500<br>";
} else {
point.getRank(developercode, developerkey, gamecode);
}
}
function GetMyRanking() {
if (DEBUG_WEB) {
rank_txt = "20080607 : hiGasHi : 10000<br>20080608 : kIseN : 5000<br>20080609 : WataNAbe : 3000<br>20080610 : nakamura : 1000<br>20080611 : aoki : 500<br>";
} else {
point.getMyRank(developercode, developerkey, gamecode);
}
}
function CheckLogin() {
position = [];
position_all = "";
rank_txt = "";
pre_txt = "";
ch_txt = "";
l_aWebData = [["", "", ""], ["", "", ""], ["", "", ""], ["", "", ""], ["", "", ""]];
l_fLoginFlag = false;
if (DEBUG_WEB) {
ch_txt = "Authed";
} else {
point.checkAuth(developercode, developerkey);
}
}
function SendScore() {
if (DEBUG_WEB) {
position[0] = 100;
} else {
point.insertScore(developercode, developerkey, gamecode, l_nScore, "\u3042\u3044\u3046\u3048\u304A");
}
}
function ChangeNumberToArray(i_nScore, i_aArray) {
var _local2 = 0;
var _local1 = i_nScore;
var _local4 = 0;
var _local3 = 0;
while (true) {
_local3++;
if (_local1 != 0) {
_local1 = Math.floor(_local1 / 10);
if (_local1 == 0) {
break;
}
} else {
break;
}
}
_local1 = i_nScore;
_local2 = _local3 - 1;
while (_local2 >= 0) {
if (_local1 != 0) {
_local4 = Math.floor(_local1 % 10);
_local1 = Math.floor(_local1 / 10);
i_aArray[_local2] = _local4;
if (_local1 == 0) {
break;
}
} else {
break;
}
_local2--;
}
i_aArray = aArray;
return(_local3);
}
RENZOK = 5;
soundMode = 0;
var sobj01 = new Sound(sound1);
sobj01.attachSound("bgm1");
sobj01.stop();
var sobj02 = new Sound(sound2);
sobj02.attachSound("bgm2");
sobj02.stop();
var sose1 = new Sound(se1);
sose1.attachSound("SEff1");
sose1.stop();
var sose2 = new Sound(se2);
sose2.attachSound("SEff2");
sose2.stop();
var sose3 = new Sound(se3);
sose3.attachSound("SEff3");
sose3.stop();
var sose4 = new Sound(se4);
sose4.attachSound("SEff4");
sose4.stop();
var sose5 = new Sound(se5);
sose5.attachSound("SEff5");
sose5.stop();
var sose6 = new Sound(se6);
sose6.attachSound("SEff6");
sose6.stop();
var sose7 = new Sound(se7);
sose7.attachSound("SEff7");
sose7.stop();
var sose8 = new Sound(se8);
sose8.attachSound("SEff8");
sose8.stop();
var gamecode = "eqpJ44VagBn3k";
var developercode = "digitalapi01";
var developerkey = "ro20mawt05tven";
var position = [];
var position_all = "";
var rank_txt = "";
var pre_txt = "";
var ch_txt = "";
var point = new Point();
var l_aWebData = [["", "", ""], ["", "", ""], ["", "", ""], ["", "", ""], ["", "", ""]];
var l_fLoginFlag = false;
Instance of Symbol 58 MovieClip "Sonoff" in Frame 3
on (release) {
if (_parent.soundMode == 0) {
this.gotoAndStop(2);
_parent.soundMode = 1;
_parent.sobj01.setVolume(0);
_parent.sobj02.setVolume(0);
_parent.sose1.setVolume(0);
_parent.sose2.setVolume(0);
_parent.sose3.setVolume(0);
_parent.sose4.setVolume(0);
_parent.sose5.setVolume(0);
_parent.sose6.setVolume(0);
_parent.sose7.setVolume(0);
_parent.sose8.setVolume(0);
} else {
this.gotoAndStop(1);
_parent.soundMode = 0;
_parent.sobj01.setVolume(100);
_parent.sobj02.setVolume(100);
_parent.sose1.setVolume(100);
_parent.sose2.setVolume(100);
_parent.sose3.setVolume(100);
_parent.sose4.setVolume(100);
_parent.sose5.setVolume(100);
_parent.sose6.setVolume(100);
_parent.sose7.setVolume(100);
_parent.sose8.setVolume(100);
}
}
Frame 4
function KScon() {
gameMode = 2;
switch (sisoku) {
case 1 :
o_Num3 = o_Num1 + o_Num2;
break;
case 2 :
o_Num3 = o_Num1 - o_Num2;
break;
case 3 :
o_Num3 = o_Num1 * o_Num2;
break;
case 4 :
if ((o_Num1 % o_Num2) != 0) {
o_Num3 = 100;
} else {
o_Num3 = int(o_Num1 / o_Num2);
}
}
(i = 0);
(k = 0);
while (i < 4) {
if (this["a_Num" + i] == "") {
k++;
}
i++;
}
sisoku = 0;
i = 1;
while (i <= 4) {
this["si" + i]._x = 142 + ((i - 1) * 60);
this["si" + i]._y = 255;
i++;
}
this["w_Num" + b_Num1]._visible = false;
this["w_Num" + b_Num2]._visible = false;
if ((k == 2) and (o_Num3 == 10)) {
correct++;
if (correct == 1) {
score = 0;
}
if (c_combo != 0) {
bounus = 10;
i = 1;
while ((i < (c_combo + 1)) and (bounus < 5000)) {
bounus = bounus + bounus;
i++;
}
} else {
bounus = 10;
}
score = score + bounus;
trace("score = " + score);
if (score >= 999999) {
score = 999999 /* 0x0F423F */;
}
ridya.gotoAndPlay("great");
pochika.gotoAndPlay("great");
ridya.qChk = 1;
pochika.qChk = 1;
sose4.start(0, 1);
sose5.start(0, 1);
g300.play();
scoin(score);
c_combo++;
if (((c_combo % RENZOK) == 0) and (c_combo != 0)) {
com_ck = 1;
if (timer.n10._currentframe == 210) {
timer.n10.gotoAndPlay(timer.n10._currentframe - 40);
timer._x = timer._x + 9;
} else if (timer.n10._currentframe <= 51) {
timer.n100.gotoAndStop(1);
timer.n10.gotoAndPlay(1);
timer.n1.gotoAndPlay(1);
timer._x = timer._x + 9;
} else if (timer.n10._currentframe <= 209) {
timer.n10.gotoAndPlay(timer.n10._currentframe - 40);
}
}
b_Num1 = (o_Num1 = "");
b_Num2 = (o_Num2 = "");
b_Num3.m = o_Num3;
b_Num3.gotoAndPlay(3);
Mode = 10;
} else if ((k == 2) and (o_Num3 != 10)) {
this["w_Num" + b_Num1]._visible = true;
this["w_Num" + b_Num2]._visible = true;
b_Num1 = (o_Num1 = "");
b_Num2 = (o_Num2 = "");
b_Num3.m = (o_Num3 = "");
b_Num3.gotoAndPlay(3);
i = 0;
while (i <= 3) {
this["w_Num" + i].m = (this["a_Num" + i] = eval ("s1_Num" + i));
this["w_Num" + i]._x = 120 + (i * 60);
this["w_Num" + i]._y = 110;
this["w_Num" + i].gotoAndPlay(3);
i++;
}
take = 1;
Mode = 1;
ridya.gotoAndPlay("nogood");
ridya.qChk = 2;
miss++;
} else {
if ((o_Num3 > 99) or (o_Num3 < -99)) {
this["w_Num" + b_Num1]._visible = true;
this["w_Num" + b_Num2]._visible = true;
b_Num1 = (o_Num1 = "");
b_Num2 = (o_Num2 = "");
b_Num3.m = (o_Num3 = "");
b_Num3.gotoAndPlay(3);
i = 0;
while (i < 4) {
this["w_Num" + i]._x = 120 + (i * 60);
this["w_Num" + i]._y = 110;
i++;
}
Mode = 1;
} else {
b_Num3.m = o_Num3;
b_Num3.gotoAndPlay(3);
Mode = 5;
}
o_Num1 = "";
o_Num2 = "";
}
}
function KSon2() {
this["w_Num" + b_Num1]._visible = true;
this["w_Num" + b_Num2]._visible = true;
if (Mode == 5) {
this["a_Num" + b_Num1] = "";
this["a_Num" + b_Num2] = "";
i = 0;
while (i < 3) {
if (this["a_Num" + i] == "") {
j = i + 1;
while (j < 4) {
if (this["a_Num" + j] != "") {
this["a_Num" + i] = this["a_Num" + j];
this["a_Num" + j] = "";
break;
}
j++;
}
}
i++;
}
i = 0;
while ((i < 4) and (o_Num3 != "")) {
if (this["a_Num" + i] == "") {
this["a_Num" + i] = o_Num3;
b_Num3.m = (o_Num3 = "");
b_Num3.gotoAndPlay(3);
}
i++;
}
i = 0;
while (i < 4) {
this["w_Num" + i].m = this["a_Num" + i];
this["w_Num" + i]._x = 120 + (i * 60);
this["w_Num" + i]._y = 110;
this["w_Num" + i].gotoAndPlay(3);
i++;
}
take++;
i = 0;
while (i < 4) {
this[(("s" + take) + "_Num") + i] = this["a_Num" + i];
i++;
}
b_Num1 = "";
b_Num2 = "";
} else if (Mode == 10) {
i = 0;
while (i < 4) {
this["w_Num" + i].m = "";
this["w_Num" + i]._x = 120 + (i * 60);
this["w_Num" + i]._y = 110;
this["w_Num" + i].gotoAndPlay(3);
i++;
}
b_Num1 = "";
b_Num2 = "";
b_Num3.m = (o_Num3 = "");
b_Num3.gotoAndPlay(3);
nextFrame();
}
}
function KKka1() {
a = Number(length(score));
copy = score;
i = 0;
while (i < a) {
ans = copy % 10;
copy = int(copy / 10);
newname = "num_" + i;
oldname = "num" + ans;
duplicateMovieClip (oldname, newname, 20 + i);
eval (newname)._x = 370 - (i * 23);
eval (newname)._y = 150;
i++;
}
}
function KKka2() {
copy = minus;
a = Number(length(copy));
i = 0;
while ((i < 6) and (a > i)) {
ans = copy % 10;
copy = int(copy / 10);
newname = "min_" + i;
oldname = "num" + ans;
removeMovieClip(newname);
duplicateMovieClip (oldname, newname, 31 + i);
setProperty(newname, _x , 370 - (23 * i));
setProperty(newname, _y , 190);
i++;
}
minnn._x = 209;
minnn._y = 190;
}
function KKka3() {
score = score - minus;
if (score < 0) {
score = 0;
}
copy = score;
a = Number(length(copy));
if (score > 0) {
ridya2.gotoAndPlay("great");
pochika2.play();
sobj02.stop();
sose7.start(0, 1);
} else {
ridya2.gotoAndPlay(2);
sobj02.stop();
sose8.start(1, 1);
}
i = 0;
while ((i < 8) and (a > i)) {
ans = copy % 10;
copy = int(copy / 10);
newname = "fin_" + i;
oldname = "nub" + ans;
removeMovieClip(newname);
duplicateMovieClip (oldname, newname, 41 + i);
setProperty(newname, _x , 388 - (35 * i));
setProperty(newname, _y , 270);
i++;
}
}
function scoin(score) {
copy = score;
a = Number(length(copy));
i = 0;
while (i < a) {
ans = copy % 10;
copy = int(copy / 10);
newname = "num_" + i;
oldname = "num" + ans;
removeMovieClip(newname);
duplicateMovieClip (oldname, newname, 19 + i);
setProperty(newname, _x , (356 - (18 * i)) - ((6 - a) * 9));
setProperty(newname, _y , 40);
i++;
}
}
function PPmn1() {
if (score == 10) {
copy = score;
} else {
if (c_combo != 0) {
bounus = 10;
i = 1;
while ((i < c_combo) and (bounus < 5000)) {
bounus = bounus + bounus;
i++;
}
} else {
bounus = 10;
}
copy = bounus;
}
pls_mc._alpha = 100;
pls_mc._x = pls_scr._x;
pls_mc._y = pls_scr._y + 1;
k = Number(length(copy));
i = 0;
while (i < k) {
ans = copy % 10;
copy = int(copy / 10);
newname = "pls_" + i;
oldname = "num" + ans;
duplicateMovieClip (oldname, newname, 25 + i);
setProperty(newname, _x , ((pls_scr._x + 115) - (18 * (6 - k))) - (18 * i));
setProperty(newname, _y , pls_scr._y);
i++;
}
if (com_ck == 1) {
plsss._x = pls_scr._x + 80;
plsss._y = pls_scr._y + 30;
plsss._alpha = 100;
sec._x = plsss._x + 60;
sec._y = plsss._y;
sec._alpha = 100;
i = 0;
while (i < 2) {
newname = "tim_" + i;
oldname = "num" + (i + i);
duplicateMovieClip (oldname, newname, 35 + i);
setProperty(newname, _x , (plsss._x + 40) - (16 * i));
setProperty(newname, _y , plsss._y - 1);
i++;
}
}
}
function PPmn2() {
pls_mc._alpha = pls_mc._alpha - 5;
pls_mc._y = pls_mc._y - ((20 - pls_scr.l) / 4);
i = 0;
while (i < k) {
newname = "pls_" + i;
this[newname]._y = this[newname]._y - ((20 - pls_scr.l) / 4);
this[newname]._alpha = this[newname]._alpha - 5;
i++;
}
if (com_ck == 1) {
plsss._y = plsss._y - ((20 - pls_scr.l) / 4);
plsss._alpha = plsss._alpha - 5;
sec._y = sec._y - ((20 - pls_scr.l) / 4);
sec._alpha = sec._alpha - 5;
i = 0;
while (i < 2) {
newname = "tim_" + i;
this[newname]._y = this[newname]._y - ((20 - pls_scr.l) / 4);
this[newname]._alpha = this[newname]._alpha - 5;
i++;
}
}
}
function LCck() {
if (logincheckflg == 0) {
logincheckflg = 1;
CheckLogin();
sose1.start(0, 1);
backTitle._visible = false;
retryA._visible = false;
rankA._visible = false;
mcSendRankError._x = 700;
mcSendRankError._y = -225;
duplicateMovieClip ("mcSendRankConnect", "mSRC", 150);
mSRC._x = 159;
mSRC._y = 200;
play();
}
}
stop();
sobj01.start(0, 999);
if (soundMode == 0) {
Sonoff.gotoAndStop(1);
} else {
Sonoff.gotoAndStop(2);
}
Frame 5
GetRanking();
rank_mc.onEnterFrame = function () {
if (rank_txt.length != 0) {
gotoAndStop(_currentframe + 1);
delete rank_mc.onEnterFrame;
}
};
stop();
Frame 6
ChangeWebData(l_aWebData);
i = 0;
while (i < 5) {
var j = 0;
var nTemp = 0;
var nStrType = 0;
var sStrTemp = "";
this[("Lank" + (i + 1)) + "_name1"] = l_aWebData[i][1];
this[("Lank" + (i + 1)) + "_name2"] = l_aWebData[i][1];
j = 0;
while (j < (6 - l_aWebData[i][2].length)) {
sStrTemp = sStrTemp + " ";
j++;
}
j = 0;
while (j < l_aWebData[i][2].length) {
sStrTemp = sStrTemp + l_aWebData[i][2].substr(j, 1);
j++;
}
this[("Lank" + (i + 1)) + "_score1"] = sStrTemp;
this[("Lank" + (i + 1)) + "_score2"] = sStrTemp;
i++;
}
stop();
Frame 7
GetMyRanking();
rank_mc.onEnterFrame = function () {
if (rank_txt.length != 0) {
gotoAndStop(_currentframe + 1);
}
};
stop();
Frame 8
var logenpty = 0;
ChangeWebData(l_aWebData);
UserName = l_aWebData[0][1];
UserName2 = l_aWebData[0][1];
i = 0;
while (i < 5) {
var j = 0;
var nTemp = 0;
var nStrType = 0;
var sStrTemp = "";
j = 0;
while (j < (6 - l_aWebData[i][2].length)) {
sStrTemp = sStrTemp + " ";
j++;
}
j = 0;
while (j < l_aWebData[i][2].length) {
sStrTemp = sStrTemp + l_aWebData[i][2].substr(j, 1);
j++;
}
this["myLank" + (i + 1)] = sStrTemp;
this[("myLank" + (i + 1)) + "2"] = sStrTemp;
i++;
}
stop();
Frame 9
stop();
Frame 10
sobj02.start(0, 999);
curMode = 1;
gameMode = 0;
correct = 0;
c_combo = 0;
pass = 0;
yari = 0;
miss = 0;
com_ck = 0;
Depth = 100;
boxsum = 0;
sisoku = 0;
stop();
Frame 11
stop();
if (gameMode == 0) {
gameMode = 1;
timer.n100.gotoAndStop(1);
timer.n1.play();
timer.n10.play();
bTime = 0;
b_Num3.m = (o_Num1 = (o_Num2 = (o_Num3 = "")));
b_Num1 = (b_Num2 = "");
score = 0;
i = 0;
while (i < 10) {
eval ("num" + i)._visible = false;
i++;
}
scoin(score);
question = 0;
}
question++;
ridya.qChk = 0;
pochika.qChk = 0;
gActiv1._visible = false;
gActiv2._visible = false;
gActiv3._visible = false;
i = 0;
while (i <= 3) {
this["t_Num" + i] = 0;
eval ("w_Num" + i).m = "";
this["a_Num" + i] = "";
i++;
}
i = 1;
while (i < 4) {
j = 0;
while (j <= 3) {
this[(("s" + (i + 1)) + "_Num") + j] = "";
j++;
}
i++;
}
i = 0;
while (i < 3) {
this["o_code" + i] = 0;
i++;
}
ans = 0;
take = 1;
i = 0;
while (i < 3) {
switch (i) {
case 0 :
t_Num0 = random(9) + 1;
t_Num1 = random(9) + 1;
o_code0 = random(4);
break;
case 1 :
switch (o_code0) {
case 0 :
ans = t_Num0 + t_Num1;
break;
case 1 :
ans = t_Num0 - t_Num1;
break;
case 2 :
ans = t_Num0 * t_Num1;
break;
case 3 :
if ((t_Num0 % t_Num1) != 0) {
ans == 100;
} else {
ans = t_Num0 / t_Num1;
}
}
if ((ans == 0) or (ans == 100)) {
i = -1;
} else {
t_Num2 = random(9) + 1;
o_code1 = random(4);
}
break;
case 2 :
switch (o_code1) {
case 0 :
ans = ans + t_Num2;
break;
case 1 :
ans = ans - t_Num2;
break;
case 2 :
ans = ans * t_Num2;
break;
case 3 :
if ((ans % t_Num2) != 0) {
ans = 100;
} else {
ans = ans / t_Num2;
}
}
if ((ans < 1) or (ans > 99)) {
i = 0;
} else {
w = 0;
while (w < 10) {
tes = ans;
code = 0;
while (code < 4) {
yan = 0;
switch (code) {
case 0 :
yan = tes + w;
break;
case 1 :
yan = tes - w;
break;
case 2 :
yan = tes * w;
break;
case 3 :
if (!((w != 0) and ((tes % w) == 0))) {
break;
}
yan = tes / w;
}
if (yan == 10) {
t_Num3 = w;
break;
}
code++;
}
if (code < 4) {
o_code2 = code;
break;
}
w++;
}
if (!((w >= 10) and (code >= 4))) {
break;
}
cnt++;
if (cnt > 6) {
i = -1;
} else {
i = 0;
}
break;
}
}
i++;
}
tak = 4;
j = 0;
while (j < tak) {
setFlag = false;
while (setFlag == false) {
rnd = random(tak);
if (eval ("w_Num" + rnd).m == "") {
this["s1_Num" + rnd] = (eval ("w_Num" + rnd).m = (this["a_Num" + rnd] = this["t_Num" + j]));
setFlag = true;
}
}
j++;
}
i = 0;
while (i < 4) {
this["w_Num" + i]._x = 120 + (i * 60);
this["w_Num" + i]._y = 110;
this["w_Num" + i].gotoAndPlay(3);
i++;
}
i = 1;
while (i <= 4) {
this["si" + i]._x = 142 + ((i - 1) * 60);
this["si" + i]._y = 255;
i++;
}
Instance of Symbol 634 MovieClip in Frame 11
on (press) {
if (_parent.gameMode == 1) {
_parent.sose2.start(0, 1);
_parent.Depth++;
this.swapDepths(_parent.Depth);
this.startDrag(false, 120, 170, 440, 300);
panelmove = 1;
if (_parent.sisoku == 0) {
_parent.gActiv1._visible = true;
}
}
}
on (release) {
if (panelmove == 1) {
panelmove = 0;
this.stopDrag();
_parent.gActiv1._visible = false;
mcNum = Number(this._name.substr(2));
if (_parent.sisoku_mc.hitTest(this._x + 18, this._y + 18, true) == true) {
if ((_parent.sisoku == 0) or (_parent.sisoku == mcNum)) {
_parent.sisoku = mcNum;
this._x = _parent.sisoku_mc._x + 13;
this._y = _parent.sisoku_mc._y + 13;
_parent.sose3.start(0, 1);
} else if ((_parent.sisoku != 0) or (_parent.sisoku != mcNum)) {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
} else if (_parent.sisoku == mcNum) {
_parent.sisoku = 0;
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
} else {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
_parent.boxsum = 0;
v = 1;
while (v <= 2) {
if (_parent["o_Num" + v] != "") {
_parent.boxsum++;
}
v++;
}
if (_parent.sisoku != 0) {
_parent.boxsum++;
}
if (_parent.boxsum == 3) {
_parent.keisan_mc.play();
}
}
}
Instance of Symbol 636 MovieClip in Frame 11
on (press) {
if (_parent.gameMode == 1) {
_parent.sose2.start(0, 1);
_parent.Depth++;
this.swapDepths(_parent.Depth);
this.startDrag(false, 120, 170, 440, 300);
panelmove = 1;
if (_parent.sisoku == 0) {
_parent.gActiv1._visible = true;
}
}
}
on (release) {
if (panelmove == 1) {
panelmove = 0;
this.stopDrag();
_parent.gActiv1._visible = false;
mcNum = Number(this._name.substr(2));
if (_parent.sisoku_mc.hitTest(this._x + 18, this._y + 18, true) == true) {
if ((_parent.sisoku == 0) or (_parent.sisoku == mcNum)) {
_parent.sisoku = mcNum;
this._x = _parent.sisoku_mc._x + 13;
this._y = _parent.sisoku_mc._y + 13;
_parent.sose3.start(0, 1);
} else if ((_parent.sisoku != 0) or (_parent.sisoku != mcNum)) {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
} else if (_parent.sisoku == mcNum) {
_parent.sisoku = 0;
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
} else {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
_parent.boxsum = 0;
v = 1;
while (v <= 2) {
if (_parent["o_Num" + v] != "") {
_parent.boxsum++;
}
v++;
}
if (_parent.sisoku != 0) {
_parent.boxsum++;
}
if (_parent.boxsum == 3) {
_parent.keisan_mc.play();
}
}
}
Instance of Symbol 638 MovieClip in Frame 11
on (press) {
if (_parent.gameMode == 1) {
_parent.sose2.start(0, 1);
_parent.Depth++;
this.swapDepths(_parent.Depth);
this.startDrag(false, 120, 170, 440, 300);
panelmove = 1;
if (_parent.sisoku == 0) {
_parent.gActiv1._visible = true;
}
}
}
on (release) {
if (panelmove == 1) {
panelmove = 0;
this.stopDrag();
_parent.gActiv1._visible = false;
mcNum = Number(this._name.substr(2));
if (_parent.sisoku_mc.hitTest(this._x + 18, this._y + 18, true) == true) {
if ((_parent.sisoku == 0) or (_parent.sisoku == mcNum)) {
_parent.sisoku = mcNum;
this._x = _parent.sisoku_mc._x + 13;
this._y = _parent.sisoku_mc._y + 13;
_parent.sose3.start(0, 1);
} else if ((_parent.sisoku != 0) or (_parent.sisoku != mcNum)) {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
} else if (_parent.sisoku == mcNum) {
_parent.sisoku = 0;
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
} else {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
_parent.boxsum = 0;
v = 1;
while (v <= 2) {
if (_parent["o_Num" + v] != "") {
_parent.boxsum++;
}
v++;
}
if (_parent.sisoku != 0) {
_parent.boxsum++;
}
if (_parent.boxsum == 3) {
_parent.keisan_mc.play();
}
}
}
Instance of Symbol 640 MovieClip in Frame 11
on (press) {
if (_parent.gameMode == 1) {
_parent.sose2.start(0, 1);
_parent.Depth++;
this.swapDepths(_parent.Depth);
this.startDrag(false, 120, 170, 440, 300);
panelmove = 1;
if (_parent.sisoku == 0) {
_parent.gActiv1._visible = true;
}
}
}
on (release) {
if (panelmove == 1) {
panelmove = 0;
this.stopDrag();
_parent.gActiv1._visible = false;
mcNum = Number(this._name.substr(2));
if (_parent.sisoku_mc.hitTest(this._x + 18, this._y + 18, true) == true) {
if ((_parent.sisoku == 0) or (_parent.sisoku == mcNum)) {
_parent.sisoku = mcNum;
this._x = _parent.sisoku_mc._x + 13;
this._y = _parent.sisoku_mc._y + 13;
_parent.sose3.start(0, 1);
} else if ((_parent.sisoku != 0) or (_parent.sisoku != mcNum)) {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
} else if (_parent.sisoku == mcNum) {
_parent.sisoku = 0;
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
} else {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
_parent.boxsum = 0;
v = 1;
while (v <= 2) {
if (_parent["o_Num" + v] != "") {
_parent.boxsum++;
}
v++;
}
if (_parent.sisoku != 0) {
_parent.boxsum++;
}
if (_parent.boxsum == 3) {
_parent.keisan_mc.play();
}
}
}
Instance of Symbol 689 MovieClip "w_Num0" in Frame 11
on (press) {
if ((_parent.gameMode == 1) and (this.m != "")) {
_parent.sose2.start(0, 1);
_parent.Depth++;
this.swapDepths(_parent.Depth);
this.startDrag(false, 0, 0, 590, 430);
panelmove = 1;
if (_parent.b_Num1 == "") {
_parent.gActiv3._visible = true;
}
if (_parent.b_Num2 == "") {
_parent.gActiv2._visible = true;
}
}
}
on (release) {
if (panelmove == 1) {
panelmove = 0;
this.stopDrag();
mcNum = Number(this._name.substr(5));
_parent.gActiv2._visible = false;
_parent.gActiv3._visible = false;
if (_parent.drug1.hitTest(this._x + 25, this._y + 25, true) == true) {
if (_parent.o_Num1 == "") {
_parent.o_Num1 = m;
_parent.b_Num1 = mcNum;
this._x = _parent.drug1._x + 15;
this._y = _parent.drug1._y + 18;
_parent.sose3.start(0, 1);
if (_parent.b_Num2 == mcNum) {
_parent.b_Num2 = "";
_parent.b_Num1 = mcNum;
_parent.o_Num2 = "";
_parent.o_Num1 = m;
}
} else if ((_parent.o_Num1 != "") and (_parent.b_Num1 != mcNum)) {
if (_parent.b_Num2 == mcNum) {
this._x = _parent.drug2._x + 15;
this._y = _parent.drug2._y + 18;
} else {
this._x = 120 + (mcNum * 60);
this._y = 110;
}
} else {
this._x = _parent.drug1._x + 15;
this._y = _parent.drug1._y + 18;
}
} else if (_parent.drug2.hitTest(this._x + 25, this._y + 25, true) == true) {
if (_parent.o_Num2 == "") {
_parent.o_Num2 = m;
_parent.b_Num2 = mcNum;
this._x = _parent.drug2._x + 15;
this._y = _parent.drug2._y + 18;
_parent.sose3.start(0, 1);
if (_parent.b_Num1 == mcNum) {
_parent.b_Num1 = "";
_parent.b_Num2 = mcNum;
_parent.o_Num1 = "";
_parent.o_Num2 = m;
}
} else if ((_parent.o_Num2 != "") and (_parent.b_Num2 != mcNum)) {
if (_parent.b_Num1 == mcNum) {
this._x = _parent.drug1._x + 15;
this._y = _parent.drug1._y + 18;
} else {
this._x = 120 + (mcNum * 60);
this._y = 110;
}
} else {
this._x = _parent.drug2._x + 15;
this._y = _parent.drug2._y + 18;
}
} else if (_parent.b_Num1 == mcNum) {
_parent.o_Num1 = "";
_parent.b_Num1 = "";
this._x = 120 + (mcNum * 60);
this._y = 110;
} else if (_parent.b_Num2 == mcNum) {
_parent.o_Num2 = "";
_parent.b_Num2 = "";
this._x = 120 + (mcNum * 60);
this._y = 110;
} else {
this._x = 120 + (mcNum * 60);
this._y = 110;
}
_parent.boxsum = 0;
v = 1;
while (v <= 2) {
if (_parent["o_Num" + v] != "") {
_parent.boxsum++;
}
v++;
}
if (_parent.sisoku != 0) {
_parent.boxsum++;
}
if (_parent.boxsum == 3) {
_parent.keisan_mc.play();
}
}
}
Instance of Symbol 689 MovieClip "w_Num1" in Frame 11
on (press) {
if ((_parent.gameMode == 1) and (this.m != "")) {
_parent.sose2.start(0, 1);
_parent.Depth++;
this.swapDepths(_parent.Depth);
this.startDrag(false, 0, 0, 590, 430);
panelmove = 1;
if (_parent.b_Num1 == "") {
_parent.gActiv3._visible = true;
}
if (_parent.b_Num2 == "") {
_parent.gActiv2._visible = true;
}
}
}
on (release) {
if (panelmove == 1) {
panelmove = 0;
this.stopDrag();
mcNum = Number(this._name.substr(5));
_parent.gActiv2._visible = false;
_parent.gActiv3._visible = false;
if (_parent.drug1.hitTest(this._x + 25, this._y + 25, true) == true) {
if (_parent.o_Num1 == "") {
_parent.o_Num1 = m;
_parent.b_Num1 = mcNum;
this._x = _parent.drug1._x + 15;
this._y = _parent.drug1._y + 18;
_parent.sose3.start(0, 1);
if (_parent.b_Num2 == mcNum) {
_parent.b_Num2 = "";
_parent.b_Num1 = mcNum;
_parent.o_Num2 = "";
_parent.o_Num1 = m;
}
} else if ((_parent.o_Num1 != "") and (_parent.b_Num1 != mcNum)) {
if (_parent.b_Num2 == mcNum) {
this._x = _parent.drug2._x + 15;
this._y = _parent.drug2._y + 18;
} else {
this._x = 120 + (mcNum * 60);
this._y = 110;
}
} else {
this._x = _parent.drug1._x + 15;
this._y = _parent.drug1._y + 18;
}
} else if (_parent.drug2.hitTest(this._x + 25, this._y + 25, true) == true) {
if (_parent.o_Num2 == "") {
_parent.o_Num2 = m;
_parent.b_Num2 = mcNum;
this._x = _parent.drug2._x + 15;
this._y = _parent.drug2._y + 18;
_parent.sose3.start(0, 1);
if (_parent.b_Num1 == mcNum) {
_parent.b_Num1 = "";
_parent.b_Num2 = mcNum;
_parent.o_Num1 = "";
_parent.o_Num2 = m;
}
} else if ((_parent.o_Num2 != "") and (_parent.b_Num2 != mcNum)) {
if (_parent.b_Num1 == mcNum) {
this._x = _parent.drug1._x + 15;
this._y = _parent.drug1._y + 18;
} else {
this._x = 120 + (mcNum * 60);
this._y = 110;
}
} else {
this._x = _parent.drug2._x + 15;
this._y = _parent.drug2._y + 18;
}
} else if (_parent.b_Num1 == mcNum) {
_parent.o_Num1 = "";
_parent.b_Num1 = "";
this._x = 120 + (mcNum * 60);
this._y = 110;
} else if (_parent.b_Num2 == mcNum) {
_parent.o_Num2 = "";
_parent.b_Num2 = "";
this._x = 120 + (mcNum * 60);
this._y = 110;
} else {
this._x = 120 + (mcNum * 60);
this._y = 110;
}
_parent.boxsum = 0;
v = 1;
while (v <= 2) {
if (_parent["o_Num" + v] != "") {
_parent.boxsum++;
}
v++;
}
if (_parent.sisoku != 0) {
_parent.boxsum++;
}
if (_parent.boxsum == 3) {
_parent.keisan_mc.play();
}
}
}
Instance of Symbol 689 MovieClip "w_Num2" in Frame 11
on (press) {
if ((_parent.gameMode == 1) and (this.m != "")) {
_parent.sose2.start(0, 1);
_parent.Depth++;
this.swapDepths(_parent.Depth);
this.startDrag(false, 0, 0, 590, 430);
panelmove = 1;
if (_parent.b_Num1 == "") {
_parent.gActiv3._visible = true;
}
if (_parent.b_Num2 == "") {
_parent.gActiv2._visible = true;
}
}
}
on (release) {
if (panelmove == 1) {
panelmove = 0;
this.stopDrag();
mcNum = Number(this._name.substr(5));
_parent.gActiv2._visible = false;
_parent.gActiv3._visible = false;
if (_parent.drug1.hitTest(this._x + 25, this._y + 25, true) == true) {
if (_parent.o_Num1 == "") {
_parent.o_Num1 = m;
_parent.b_Num1 = mcNum;
this._x = _parent.drug1._x + 15;
this._y = _parent.drug1._y + 18;
_parent.sose3.start(0, 1);
if (_parent.b_Num2 == mcNum) {
_parent.b_Num2 = "";
_parent.b_Num1 = mcNum;
_parent.o_Num2 = "";
_parent.o_Num1 = m;
}
} else if ((_parent.o_Num1 != "") and (_parent.b_Num1 != mcNum)) {
if (_parent.b_Num2 == mcNum) {
this._x = _parent.drug2._x + 15;
this._y = _parent.drug2._y + 18;
} else {
this._x = 120 + (mcNum * 60);
this._y = 110;
}
} else {
this._x = _parent.drug1._x + 15;
this._y = _parent.drug1._y + 18;
}
} else if (_parent.drug2.hitTest(this._x + 25, this._y + 25, true) == true) {
if (_parent.o_Num2 == "") {
_parent.o_Num2 = m;
_parent.b_Num2 = mcNum;
this._x = _parent.drug2._x + 15;
this._y = _parent.drug2._y + 18;
_parent.sose3.start(0, 1);
if (_parent.b_Num1 == mcNum) {
_parent.b_Num1 = "";
_parent.b_Num2 = mcNum;
_parent.o_Num1 = "";
_parent.o_Num2 = m;
}
} else if ((_parent.o_Num2 != "") and (_parent.b_Num2 != mcNum)) {
if (_parent.b_Num1 == mcNum) {
this._x = _parent.drug1._x + 15;
this._y = _parent.drug1._y + 18;
} else {
this._x = 120 + (mcNum * 60);
this._y = 110;
}
} else {
this._x = _parent.drug2._x + 15;
this._y = _parent.drug2._y + 18;
}
} else if (_parent.b_Num1 == mcNum) {
_parent.o_Num1 = "";
_parent.b_Num1 = "";
this._x = 120 + (mcNum * 60);
this._y = 110;
} else if (_parent.b_Num2 == mcNum) {
_parent.o_Num2 = "";
_parent.b_Num2 = "";
this._x = 120 + (mcNum * 60);
this._y = 110;
} else {
this._x = 120 + (mcNum * 60);
this._y = 110;
}
_parent.boxsum = 0;
v = 1;
while (v <= 2) {
if (_parent["o_Num" + v] != "") {
_parent.boxsum++;
}
v++;
}
if (_parent.sisoku != 0) {
_parent.boxsum++;
}
if (_parent.boxsum == 3) {
_parent.keisan_mc.play();
}
}
}
Instance of Symbol 689 MovieClip "w_Num3" in Frame 11
on (press) {
if ((_parent.gameMode == 1) and (this.m != "")) {
_parent.sose2.start(0, 1);
_parent.Depth++;
this.swapDepths(_parent.Depth);
this.startDrag(false, 0, 0, 590, 430);
panelmove = 1;
if (_parent.b_Num1 == "") {
_parent.gActiv3._visible = true;
}
if (_parent.b_Num2 == "") {
_parent.gActiv2._visible = true;
}
}
}
on (release) {
if (panelmove == 1) {
panelmove = 0;
this.stopDrag();
mcNum = Number(this._name.substr(5));
_parent.gActiv2._visible = false;
_parent.gActiv3._visible = false;
if (_parent.drug1.hitTest(this._x + 25, this._y + 25, true) == true) {
if (_parent.o_Num1 == "") {
_parent.o_Num1 = m;
_parent.b_Num1 = mcNum;
this._x = _parent.drug1._x + 15;
this._y = _parent.drug1._y + 18;
_parent.sose3.start(0, 1);
if (_parent.b_Num2 == mcNum) {
_parent.b_Num2 = "";
_parent.b_Num1 = mcNum;
_parent.o_Num2 = "";
_parent.o_Num1 = m;
}
} else if ((_parent.o_Num1 != "") and (_parent.b_Num1 != mcNum)) {
if (_parent.b_Num2 == mcNum) {
this._x = _parent.drug2._x + 15;
this._y = _parent.drug2._y + 18;
} else {
this._x = 120 + (mcNum * 60);
this._y = 110;
}
} else {
this._x = _parent.drug1._x + 15;
this._y = _parent.drug1._y + 18;
}
} else if (_parent.drug2.hitTest(this._x + 25, this._y + 25, true) == true) {
if (_parent.o_Num2 == "") {
_parent.o_Num2 = m;
_parent.b_Num2 = mcNum;
this._x = _parent.drug2._x + 15;
this._y = _parent.drug2._y + 18;
_parent.sose3.start(0, 1);
if (_parent.b_Num1 == mcNum) {
_parent.b_Num1 = "";
_parent.b_Num2 = mcNum;
_parent.o_Num1 = "";
_parent.o_Num2 = m;
}
} else if ((_parent.o_Num2 != "") and (_parent.b_Num2 != mcNum)) {
if (_parent.b_Num1 == mcNum) {
this._x = _parent.drug1._x + 15;
this._y = _parent.drug1._y + 18;
} else {
this._x = 120 + (mcNum * 60);
this._y = 110;
}
} else {
this._x = _parent.drug2._x + 15;
this._y = _parent.drug2._y + 18;
}
} else if (_parent.b_Num1 == mcNum) {
_parent.o_Num1 = "";
_parent.b_Num1 = "";
this._x = 120 + (mcNum * 60);
this._y = 110;
} else if (_parent.b_Num2 == mcNum) {
_parent.o_Num2 = "";
_parent.b_Num2 = "";
this._x = 120 + (mcNum * 60);
this._y = 110;
} else {
this._x = 120 + (mcNum * 60);
this._y = 110;
}
_parent.boxsum = 0;
v = 1;
while (v <= 2) {
if (_parent["o_Num" + v] != "") {
_parent.boxsum++;
}
v++;
}
if (_parent.sisoku != 0) {
_parent.boxsum++;
}
if (_parent.boxsum == 3) {
_parent.keisan_mc.play();
}
}
}
Frame 12
i = 0;
while (i < 4) {
this["w_Num" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= 4) {
this["si" + i].removeMovieClip();
i++;
}
gotoAndPlay ("game");
Frame 13
sose6.start(0, 1);
i = 0;
while (i < 4) {
this["w_Num" + i].removeMovieClip();
this["si" + (i + 1)].removeMovieClip();
this["si" + (i + 1)]._visible = false;
i++;
}
score_mc.play();
i = 0;
while (i < 6) {
newname2 = "pls_" + i;
removeMovieClip(newname2);
i++;
}
i = 0;
while (i < 2) {
newname3 = "tim_" + i;
removeMovieClip(newname3);
i++;
}
b = (yari + miss) + pass;
minus = 0;
if (b >= 1) {
minus = 10;
i = 2;
while (i <= b) {
minus = minus * 2;
if (minus >= 999999) {
minus = 999999 /* 0x0F423F */;
break;
}
i++;
}
}
stop();
Frame 14
l_nScore = score;
if ((score - minus) <= 0) {
pochika2._visible = false;
}
i = 0;
while (i < 6) {
newname1 = "num_" + i;
removeMovieClip(newname1);
i++;
}
Frame 15
function REdel() {
i = 0;
while (i < 8) {
newname = "num_" + i;
newname1 = "min_" + i;
newname2 = "fin_" + i;
removeMovieClip(newname);
removeMovieClip(newname1);
removeMovieClip(newname2);
i++;
}
}
logincheckflg = 0;
retryA._visible = false;
rankA._visible = false;
rankB._visible = false;
backTitle._visible = false;
sc_silver._visible = false;
sc_gold._visible = false;
retryA._visible = true;
rankA._visible = true;
backTitle._visible = true;
stop();
Frame 16
if (ch_txt.length != 0) {
if (ch_txt.indexOf("Not") == -1) {
l_fLoginFlag = true;
SendScore();
gotoAndPlay(_currentframe + 2);
} else {
l_fLoginFlag = false;
position = "0";
gotoAndPlay(_currentframe + 4);
}
}
Frame 17
gotoAndPlay(_currentframe - 1);
Frame 18
if (position.length != 0) {
l_nFigure = ChangeNumberToArray(position, l_aRankingArray);
gotoAndPlay(_currentframe + 2);
}
Frame 19
gotoAndPlay(_currentframe - 1);
Frame 20
if (l_fLoginFlag == false) {
mSRC.removeMovieClip();
mcSendRankError._x = 309;
mcSendRankError._y = 377;
logincheckflg = 0;
backTitle._visible = true;
retryA._visible = true;
rankA._vislble = true;
gotoAndStop ("result1");
} else {
mSRC.removeMovieClip();
logincheckflg = 0;
REdel();
sose7.stop();
sose8.stop();
rank_txt = "";
gotoAndPlay ("myrank");
}
Frame 21
gotoAndPlay(_currentframe - 1);
Frame 22
backTitle._visible = false;
in_gold._visible = false;
in_silver._visible = false;
removeMovieClip("sc_silver");
removeMovieClip("sc_gold");
minnn._visible = false;
line_mc._visible = false;
i = 0;
while (i < 6) {
newname = "num_" + i;
removeMovieClip(newname);
i++;
}
i = 0;
while (i < 8) {
newname1 = "min_" + i;
removeMovieClip(newname1);
i++;
}
bScore._x = 100;
bScore._y = 240;
a = Number(length(score));
i = 0;
while ((i < 8) and (a > i)) {
newname2 = "fin_" + i;
eval (newname2)._xscale = 120;
eval (newname2)._yscale = 120;
eval (newname2)._x = 490 - (42 * i);
eval (newname2)._y = 225;
i++;
}
if (GoldFlg == 1) {
in_gold._visible = true;
} else {
in_silver._visible = true;
}
stop();
Symbol 3 MovieClip [mcSendRankConnect] Frame 1
#initclip 27
Object.registerClass("mcSendRankConnect", CObject);
#endinitclip
Symbol 6 MovieClip [mcSendRankError] Frame 1
#initclip 26
Object.registerClass("mcSendRankError", CObject);
#endinitclip
Symbol 11 MovieClip Frame 1
this.onEnterFrame = function () {
nParcent = (_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100;
if (nParcent == 100) {
_parent.gotoAndPlay("loadend");
}
};
Symbol 1049 MovieClip [__Packages.CObject] Frame 0
class CObject extends MovieClip
{
var m_nDepth, getDepth, _x, _y, _width, _height;
function CObject () {
super();
Init();
}
function Init() {
m_nDepth = getDepth();
}
function SetPosition(i_nPosX, i_nPosY) {
PosX = (i_nPosX);
PosY = (i_nPosY);
}
function get Depth() {
return(m_nDepth);
}
function get PosX() {
return(_x);
}
function get PosY() {
return(_y);
}
function get Width() {
return(_width);
}
function get Height() {
return(_height);
}
function set Depth(i_nValue) {
_x = i_nValue;
//return(Depth);
}
function set PosX(i_nValue) {
_x = i_nValue;
//return(PosX);
}
function set PosY(i_nValue) {
_y = i_nValue;
//return(PosY);
}
function set Width(i_nValue) {
_width = i_nValue;
//return(Width);
}
function set Height(i_nValue) {
_height = i_nValue;
//return(Height);
}
}
Symbol 1050 MovieClip [__Packages.Point] Frame 0
class Point
{
var service;
function Point () {
System.security.loadPolicyFile("http://member.square-enix.com/na/gametown/api/amfphp/crossdomain.xml");
mx.remoting.debug.NetDebug.initialize();
service = new mx.remoting.Service(gatewayUrl, null, "PointDebug");
}
function insertScore(developercode, developerkey, gamecode, score, introduction) {
var _local2 = service.insertScore(developercode, developerkey, gamecode, score, introduction);
_local2.__set__responder(new mx.rpc.RelayResponder(this, "handleInsertScore", "handleRemotingError"));
}
function getRank(developercode, developerkey, gamecode) {
var _local2 = service.getRank(developercode, developerkey, gamecode);
_local2.__set__responder(new mx.rpc.RelayResponder(this, "handleGetRank", "handleRemotingError"));
}
function getMyRank(developercode, developerkey, gamecode) {
var _local2 = service.getMyRank(developercode, developerkey, gamecode);
_local2.__set__responder(new mx.rpc.RelayResponder(this, "handleGetMyRank", "handleRemotingError"));
}
function checkAuth(developercode, developerkey) {
var _local2 = service.checkAuth(developercode, developerkey);
_local2.__set__responder(new mx.rpc.RelayResponder(this, "handleCheckAuth", "handleRemotingError"));
}
function preAuth(developercode, developerkey, gamecode, introduction, target) {
var _local2 = service.preAuth(developercode, developerkey, gamecode, introduction, target);
_local2.__set__responder(new mx.rpc.RelayResponder(this, "handlePreAuth", "handleRemotingError"));
}
function getPoint(developercode, developerkey, gamecode) {
_root.wing_txt = "get";
var _local3 = service.getPoint(developercode, developerkey, gamecode);
_local3.__set__responder(new mx.rpc.RelayResponder(this, "handleGetPoint", "handleRemotingError"));
}
function addPoint(developercode, developerkey, gamecode, point) {
_root.wing_txt = "add";
var _local3 = service.addPoint(developercode, developerkey, gamecode, point);
_local3.__set__responder(new mx.rpc.RelayResponder(this, "handleAddPoint", "handleRemotingError"));
}
function minusPoint(developercode, developerkey, gamecode, point) {
_root.wing_txt = "minus";
var _local3 = service.minusPoint(developercode, developerkey, gamecode, point);
_local3.__set__responder(new mx.rpc.RelayResponder(this, "handleMinusPoint", "handleRemotingError"));
}
function getRankPoint(developercode, developerkey, gamecode) {
_root.wing_txt = "rank";
var _local3 = service.getRankPoint(developercode, developerkey, gamecode);
_local3.__set__responder(new mx.rpc.RelayResponder(this, "handleGetRankPoint", "handleRemotingError"));
}
function handleInsertScore(re) {
if (re.__get__result().my_rank) {
_root.position = re.__get__result().my_rank;
_root.position_all = re.__get__result().total_user;
} else {
_root.position = "error";
}
}
function handleGetRank(re) {
var _local2;
var _local4 = "";
_local2 = 0;
while (_local2 < 5) {
_local4 = _local4 + (((((re.__get__result()[_local2].date + " : ") + re.__get__result()[_local2].nick_name) + " : ") + re.__get__result()[_local2].score) + "<br>");
_local2++;
}
if (_local4) {
_root.rank_txt = _local4;
}
}
function handleCheckAuth(re) {
trace("CA");
if (re.__get__result()) {
_root.ch_txt = "Authed";
} else {
_root.ch_txt = "Not Login";
}
}
function handleGetMyRank(re) {
var _local2;
var _local4 = "";
_local2 = 0;
while (_local2 < 5) {
_local4 = _local4 + (((((re.__get__result()[_local2].date + " : ") + re.__get__result()[_local2].nick_name) + " : ") + re.__get__result()[_local2].score) + "<br>");
_local2++;
}
if (_local4) {
_root.rank_txt = _local4;
}
}
function handlePreAuth(re) {
trace("PreA");
if (re.__get__result()) {
_root.pre_txt = "Send";
} else {
_root.pre_txt = "Error";
}
}
function handleGetPoint(re) {
_root.wing_txt = "res get";
_root.wing_txt = re.__get__result().ng;
if (re.__get__result().ng == "0") {
_root.wing_txt = re.__get__result().total_point;
} else {
_root.wing_txt = "error";
}
}
function handleAddPoint(re) {
_root.wing_txt = "res add";
if (re.__get__result().ng == "0") {
_root.wing_txt = re.__get__result().total_point;
} else {
_root.wing_txt = "error";
}
}
function handleMinusPoint(re) {
_root.wing_txt = "res minus";
if (re.__get__result().ng == "0") {
_root.wing_txt = re.__get__result().total_point;
} else {
_root.wing_txt = "error";
}
}
function handleGetRankPoint(re) {
_root.wing_txt = "res rank";
var _local2;
var _local4 = "";
_local2 = 0;
while (_local2 < 5) {
_local4 = _local4 + (((((re.__get__result()[_local2].date + " : ") + re.__get__result()[_local2].nick_name) + " : ") + re.__get__result()[_local2].score) + "<br>");
_local2++;
}
if (_local4) {
_root.wing_txt = _local4;
}
}
function handleRemotingError(fault) {
mx.remoting.debug.NetDebug.trace({level:"None", message:"Error: " + fault.__get__fault().__get__faultstring()});
}
var gatewayUrl = "http://member.square-enix.com/na/gametown/api/amfphp/gateway.php";
}
Symbol 1051 MovieClip [__Packages.mx.remoting.Service] Frame 0
class mx.remoting.Service extends Object
{
var log, __conn, __serviceName, __responder;
function Service (gatewayURI, logger, serviceName, conn, resp) {
super();
log = logger;
log.logInfo("Creating Service for " + serviceName, mx.services.Log.VERBOSE);
if ((gatewayURI == "") && (conn == null)) {
gatewayURI = mx.remoting.NetServices.gatewayUrl;
}
gatewayURI = mx.remoting.NetServices.getHttpUrl(gatewayURI);
if (conn == null) {
conn = mx.remoting.NetServices.getConnection(gatewayURI);
if (conn == null) {
log.logInfo("Creating gateway connection for " + gatewayURI, mx.services.Log.VERBOSE);
conn = mx.remoting.NetServices.createGatewayConnection(gatewayURI, logger);
}
}
__conn = conn;
conn.updateConfig();
_allowRes = true;
__serviceName = serviceName;
__responder = resp;
log.logInfo("Successfully created Service", mx.services.Log.VERBOSE);
}
function get connection() {
return(__conn);
}
function __resolve(methodName) {
if (_allowRes) {
var _local2 = __makeOpFunc(methodName);
this[methodName] = _local2;
return(_local2);
}
return(null);
}
function __makeOpFunc(name) {
var op = (new mx.remoting.Operation(name, this));
var _local3 = function () {
op.invoke(arguments);
return(op.send());
};
_local3.send = function () {
return(op.createThenSend());
};
_local3.setResponder = function (resp) {
op.responder = resp;
};
_local3.getRequest = function () {
return(op.request);
};
_local3.setRequest = function (val) {
op.request = val;
};
_local3.addProperty("request", _local3.getRequest, _local3.setRequest);
_local3.operation = op;
return(_local3);
}
function get name() {
return(__serviceName);
}
function get responder() {
return(__responder);
}
static var version = "1.2.0.124";
var _allowRes = false;
}
Symbol 1052 MovieClip [__Packages.mx.services.Log] Frame 0
class mx.services.Log
{
var level, name;
function Log (logLevel, name) {
level = ((logLevel == undefined) ? (BRIEF) : (logLevel));
this.name = ((name == undefined) ? "" : (name));
}
function logInfo(msg, level) {
if (level == undefined) {
level = BRIEF;
}
if (level <= this.level) {
if (level == DEBUG) {
onLog((((getDateString() + " [DEBUG] ") + name) + ": ") + msg);
} else {
onLog((((getDateString() + " [INFO] ") + name) + ": ") + msg);
}
}
}
function logDebug(msg) {
logInfo(msg, DEBUG);
}
function getDateString() {
var _local1 = new Date();
return(((((((((_local1.getMonth() + 1) + "/") + _local1.getDate()) + " ") + _local1.getHours()) + ":") + _local1.getMinutes()) + ":") + _local1.getSeconds());
}
function onLog(message) {
trace(message);
}
static var NONE = -1;
static var BRIEF = 0;
static var VERBOSE = 1;
static var DEBUG = 2;
}
Symbol 1053 MovieClip [__Packages.mx.remoting.Connection] Frame 0
class mx.remoting.Connection extends NetConnection
{
var uri, __urlSuffix, __originalUrl;
function Connection () {
super();
}
function getService(serviceName, client) {
var _local2 = new mx.remoting.NetServiceProxy(this, serviceName, client);
return(_local2);
}
function setCredentials(userId, password) {
addHeader("Credentials", false, {userid:userId, password:password});
}
function clone() {
var _local2 = new mx.remoting.Connection();
_local2.connect(uri);
return(_local2);
}
function getDebugId() {
return(null);
}
function getDebugConfig() {
return(null);
}
function setDebugId(id) {
}
function updateConfig() {
}
function call() {
super.call.apply(super, arguments);
}
function close() {
super.close();
}
function connect(url) {
return(super.connect(url));
}
function addHeader(name, mustUnderstand, obj) {
super.addHeader(name, mustUnderstand, obj);
}
function trace(traceObj) {
}
function AppendToGatewayUrl(urlSuffix) {
__urlSuffix = urlSuffix;
if (__originalUrl == null) {
__originalUrl = uri;
}
var _local2 = __originalUrl + urlSuffix;
connect(_local2);
}
function ReplaceGatewayUrl(newUrl) {
connect(newUrl);
}
function RequestPersistentHeader(info) {
addHeader(info.name, info.mustUnderstand, info.data);
}
static var version = "1.2.0.124";
}
Symbol 1054 MovieClip [__Packages.mx.remoting.NetServiceProxy] Frame 0
class mx.remoting.NetServiceProxy extends Object
{
var nc, serviceName, client;
function NetServiceProxy (netC, servName, cli) {
super();
if (netC != null) {
nc = netC;
serviceName = servName;
client = cli;
}
_allowRes = true;
}
function _setParentService(service) {
nc = service.nc;
client = service.client;
}
function __resolve(methodName) {
if (_allowRes) {
var _local3 = function () {
if (this.client != null) {
arguments.unshift(new mx.remoting.NetServiceProxyResponder(this, methodName));
} else if (typeof(arguments[0].onResult) != "function") {
mx.remoting.NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, and no responder was given in call to " + methodName);
arguments.unshift(new mx.remoting.NetServiceProxyResponder(this, methodName));
}
if (typeof(this.serviceName) == "function") {
this.serviceName = this.servicename;
}
arguments.unshift((this.serviceName + ".") + methodName);
return(this.nc.call.apply(this.nc, arguments));
};
return(_local3);
}
return(null);
}
static function registerNetServiceProxy() {
Object.registerClass("NetServiceProxy", mx.remoting.NetServiceProxy);
return(true);
}
static var init = registerNetServiceProxy();
var _allowRes = false;
}
Symbol 1055 MovieClip [__Packages.mx.remoting.NetServiceProxyResponder] Frame 0
class mx.remoting.NetServiceProxyResponder extends Object
{
var service, methodName;
function NetServiceProxyResponder (serv, method) {
super();
service = serv;
methodName = method;
}
function onResult(result) {
var _local2 = service.client;
if ((result instanceof mx.remoting.NetServiceProxy) || (result instanceof mx.remoting.RecordSet)) {
result._setParentService(service);
}
var _local4 = methodName + "_Result";
if (typeof(_local2[_local4]) == "function") {
_local2[_local4].apply(_local2, [result]);
} else if (typeof(_local2.onResult) == "function") {
_local2.onResult(result);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 1, (_local4 + " was received from server: ") + result);
}
}
function onStatus(result) {
var _local4 = service.client;
var _local6 = methodName + "_Status";
if (typeof(_local4[_local6]) == "function") {
_local4[_local6].apply(_local4, [result]);
} else if (typeof(_local4.onStatus) == "function") {
_local4.onStatus(result);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(result);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(result);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 2, (((_local6 + " was received from server: <") + result.level) + "> ") + result.description);
}
}
}
Symbol 1056 MovieClip [__Packages.mx.data.PageableData] Frame 0
interface mx.data.PageableData
{
}
Symbol 1057 MovieClip [__Packages.mx.data.DataRange] Frame 0
interface mx.data.DataRange
{
}
Symbol 1058 MovieClip [__Packages.mx.data.PageableList] Frame 0
interface mx.data.PageableList extends mx.data.PageableData
{
}
Symbol 1059 MovieClip [__Packages.mx.remoting.RecordSet] Frame 0
class mx.remoting.RecordSet extends Object implements mx.data.PageableList
{
var _items, uniqueID, mTitles, serverInfo, serverinfo, mRecordsAvailable, mRecordSetID, serviceName, mTotalCount, mDeliveryMode, mAllNotified, mOutstandingRecordCount, dispatchEvent, mPageSize, mNumPrefetchPages, mRecordSetService, gateway_conn, logger, mDataFetcher;
function RecordSet (columnNames) {
super();
mx.events.EventDispatcher.initialize(this);
_items = new Array();
uniqueID = 0;
if (mTitles != null) {
return;
}
if (serverInfo == null) {
if (serverinfo != null) {
serverInfo = serverinfo;
}
}
if (serverInfo == null) {
mTitles = columnNames;
return;
}
if (serverInfo.version != 1) {
mx.remoting.NetServices.trace("RecordSet", "warning", 100, "Received incompatible RecordSet version from server");
return;
}
mTitles = serverInfo.columnNames;
mRecordsAvailable = 0;
setData(((serverInfo.cursor == null) ? 0 : (serverInfo.cursor - 1)), serverInfo.initialData);
if (serverInfo.initialData.length != serverInfo.totalCount) {
mRecordSetID = serverInfo.id;
if (mRecordSetID != null) {
serviceName = ((serverInfo.serviceName == null) ? "RecordSet" : (serverInfo.serviceName));
mTotalCount = serverInfo.totalCount;
mDeliveryMode = "ondemand";
mAllNotified = false;
mOutstandingRecordCount = 0;
} else {
mx.remoting.NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no RecordSet id");
}
}
serverInfo = null;
}
function addItem(item) {
addItemAt(length, item);
}
function addItemAt(index, item) {
var _local3 = true;
if ((index < length) && (index >= 0)) {
items.splice(index, 0, item);
} else if (index == length) {
items[index] = item;
} else {
_local3 = false;
mx.remoting.NetServices.trace("Cannot add an item outside the bounds of the RecordSet");
return(undefined);
}
if (_local3) {
item.__ID__ = uniqueID++;
}
updateViews("addItems", index, index);
}
function addEventListener(event, listener) {
}
function clear() {
if (checkLocal()) {
return(undefined);
}
var _local2 = items.length;
items.splice(0);
uniqueID = 0;
updateViews("removeItems", 0, _local2);
}
function contains(itmToCheck) {
if (isObjectEmpty(itmToCheck)) {
return(false);
}
var _local5;
var _local4;
var _local2 = 0;
while (_local2 < items.length) {
_local5 = items[_local2];
_local4 = true;
for (var _local6 in itmToCheck) {
if (itmToCheck[_local6] != _local5[_local6]) {
_local4 = false;
break;
}
}
if (_local4) {
return(true);
}
_local2++;
}
return(false);
}
function getColumnNames() {
return(mTitles);
}
function get columnNames() {
return(getColumnNames());
}
function getLocalLength() {
return(items.length);
}
function getLength() {
if (mRecordSetID != null) {
return(mTotalCount);
}
return(items.length);
}
function getIterator() {
var _local2 = new mx.remoting.RecordSetIterator(this);
return(_local2);
}
function get length() {
return(getLength());
}
function getItemAt(index) {
if ((index < 0) || (index >= length)) {
return(null);
}
if (mRecordSetID == null) {
return(items[index]);
}
requestRecord(index);
var _local3 = items[index];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
}
function getItemID(index) {
return(items[index].__ID__);
}
function get items() {
return(_items);
}
function initialize(info) {
}
function filter(filterFunction, context) {
if (checkLocal()) {
return(undefined);
}
var _local4 = new mx.remoting.RecordSet(mTitles);
var _local5 = length;
var _local3 = 0;
while (_local3 < _local5) {
var _local2 = getItemAt(_local3);
if (((_local2 != null) && (_local2 != 1)) && (filterFunction(_local2, context))) {
_local4.addItem(_local2);
}
_local3++;
}
return(_local4);
}
function sortItems(compareFunc, optionFlags) {
if (checkLocal()) {
return(undefined);
}
items.sort(compareFunc, optionFlags);
updateViews("sort");
}
function sortItemsBy(fieldNames, order, optionFlags) {
if (checkLocal()) {
return(undefined);
}
if (typeof(order) == "string") {
items.sortOn(fieldNames);
if (order.toUpperCase() == "DESC") {
items.reverse();
}
} else {
items.sortOn(fieldNames, optionFlags);
}
updateViews("sort");
}
function sort(compareFunc) {
if (checkLocal()) {
return(undefined);
}
items.sort(compareFunc);
updateViews("sort");
}
function isEmpty() {
return(items.length == 0);
}
function isLocal() {
return(mRecordSetID == null);
}
function isFullyPopulated() {
return(isLocal());
}
function getRemoteLength() {
if (isLocal()) {
return(mRecordsAvailable);
}
return(mTotalCount);
}
function getNumberAvailable() {
if (isLocal()) {
return(getLength());
}
return(mRecordsAvailable);
}
function replaceItemAt(index, item) {
if ((index >= 0) && (index <= length)) {
var _local3 = getItemID(index);
items[index] = item;
items[index].__ID__ = _local3;
updateViews("updateItems", index, index);
}
}
function removeAll() {
clear();
}
function removeItemAt(index) {
var _local3 = _items[index];
_items.splice(index, 1);
var _local5 = [_items[index]];
var _local4 = [getItemID(index)];
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:index, lastItem:index, removedItems:_local5, removedIDs:_local4});
return(_local3);
}
function removeEventListener(event, listener) {
}
function requestRange(range) {
var _local2 = range.getStart();
var _local3 = range.getEnd();
return(internalRequestRange(_local2, _local3));
}
function setDeliveryMode(mode, pagesize, numPrefetchPages) {
mDeliveryMode = mode.toLowerCase();
stopFetchAll();
if ((pagesize == null) || (pagesize <= 0)) {
pagesize = 25;
}
switch (mDeliveryMode) {
case "ondemand" :
break;
case "page" :
if (numPrefetchPages == null) {
numPrefetchPages = 0;
}
mPageSize = pagesize;
mNumPrefetchPages = numPrefetchPages;
break;
case "fetchall" :
stopFetchAll();
startFetchAll(pagesize);
break;
default :
mx.remoting.NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
}
function editField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function getEditingData(index, fieldName) {
return(items[index][fieldName]);
}
function setField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function changeFieldValue(index, fieldName, value) {
if (checkLocal()) {
return(undefined);
}
if ((index < 0) || (index >= getLength())) {
return(undefined);
}
items[index][fieldName] = value;
updateViews("updateItems", index, index);
}
function isObjectEmpty(objToCheck) {
var _local1 = true;
for (var _local3 in objToCheck) {
_local1 = false;
return(_local1);
}
return(_local1);
}
function arrayToObject(anArray) {
if (mTitles == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 105, "getItem: titles are not available");
return(null);
}
var _local4 = new Object();
var _local5 = anArray.length;
var _local3;
var _local2 = 0;
while (_local2 < _local5) {
_local3 = mTitles[_local2];
if (_local3 == null) {
_local3 = ("column" + _local2) + 1;
}
_local4[_local3] = anArray[_local2];
_local2++;
}
return(_local4);
}
function checkLocal() {
if (isLocal()) {
return(false);
}
mx.remoting.NetServices.trace("RecordSet", "warning", 108, "Operation not allowed on partial recordset");
return(true);
}
function getRecordSetService() {
if (mRecordSetService == null) {
if (gateway_conn == null) {
gateway_conn = mx.remoting.NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
gateway_conn = gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
gateway_conn.setupRecordSet();
gateway_conn.setDebugId("RecordSet " + mRecordSetID);
}
mRecordSetService = gateway_conn.getService(serviceName, this);
if (mRecordSetService == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 101, "Failed to create RecordSet service");
mRecordSetService = null;
}
}
return(mRecordSetService);
}
function internalRequestRange(index, lastIndex) {
var _local6 = -1;
if (index < 0) {
index = 0;
}
if (lastIndex >= getRemoteLength()) {
lastIndex = getRemoteLength() - 1;
}
var _local3;
var _local4;
while (index <= lastIndex) {
while ((index <= lastIndex) && (items[index] != null)) {
index++;
}
_local3 = index;
while ((index <= lastIndex) && (items[index] == null)) {
mOutstandingRecordCount++;
items[index] = 1;
index++;
}
_local4 = index - 1;
if (_local3 <= _local4) {
logger.logInfo((((" Fetching records from index [" + _local3) + "] to index [") + _local4) + "]");
getRecordSetService().getRecords(mRecordSetID, _local3 + 1, (_local4 - _local3) + 1);
_local6 = _local4;
updateViews("fetchRows", _local3, _local4);
}
}
return(_local6);
}
function removeItems(index, len) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < len) {
_local3.push(getItemID(index + _local2));
_local2++;
}
var _local6 = items.splice(index, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:index, lastItem:(index + len) - 1, removedItems:_local6, removedIDs:_local3});
}
function getRecords_Result(info) {
setData(info.Cursor - 1, info.Page);
mOutstandingRecordCount = mOutstandingRecordCount - info.Page.length;
updateViews("updateItems", info.Cursor - 1, ((info.Cursor - 1) + info.Page.length) - 1);
if ((mRecordsAvailable == mTotalCount) && (!mAllNotified)) {
updateViews("allRows");
mRecordSetService.release();
mAllNotified = true;
mRecordSetID = null;
mRecordSetService = null;
}
}
function release_Result() {
}
function requestOneRecord(index) {
if (items[index] == null) {
if (mDeliveryMode == "ondemand") {
logger.logInfo((" INFO: Fetching Record [" + index) + "]");
}
getRecordSetService().getRecords(mRecordSetID, index + 1, 1);
mOutstandingRecordCount++;
items[index] = 1;
updateViews("fetchRows", index, index);
}
}
function requestRecord(index) {
if (mDeliveryMode != "page") {
requestOneRecord(index);
} else {
var _local2 = int(index / mPageSize) * mPageSize;
var _local3 = (_local2 + (mPageSize * (mNumPrefetchPages + 1))) - 1;
internalRequestRange(_local2, _local3);
}
}
function _setParentService(service) {
gateway_conn = service.nc;
}
function setData(start, dataArray) {
var _local5 = dataArray.length;
var _local3;
var _local4;
var _local2 = 0;
while (_local2 < _local5) {
_local3 = _local2 + start;
_local4 = items[_local3];
if ((_local4 != null) && (_local4 != 1)) {
mx.remoting.NetServices.trace("RecordSet", "warning", 106, "Already got record # " + _local3);
} else {
mRecordsAvailable = mRecordsAvailable + 1;
}
items[_local3] = arrayToObject(dataArray[_local2]);
items[_local3].__ID__ = uniqueID++;
_local2++;
}
}
function startFetchAll(pagesize) {
if (mDataFetcher != null) {
mDataFetcher.disable();
}
mDataFetcher = new mx.remoting.RsDataFetcher(this, pagesize);
}
function stopFetchAll() {
mDataFetcher.disable();
mDataFetcher = null;
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static function registerRecordSet() {
Object.registerClass("RecordSet", mx.remoting.RecordSet);
return(true);
}
static var version = "1.2.0.124";
static var init = registerRecordSet();
}
Symbol 1060 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 1061 MovieClip [__Packages.mx.remoting.NetServices] Frame 0
class mx.remoting.NetServices extends Object
{
static var defaultGatewayUrl, logger, traceNetServices;
function NetServices () {
super();
}
static function setDefaultGatewayUrl(url) {
defaultGatewayUrl = url;
}
static function setGatewayUrl(url) {
gatewayUrl = url;
}
static function createGatewayConnection(url, infoLogger) {
logger = infoLogger;
if (url == undefined) {
url = gatewayUrl;
if (url == undefined) {
url = defaultGatewayUrl;
}
}
if (url == undefined) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is undefined");
logger.logInfo(("NetServices: createGatewayConnection - gateway url <" + url) + "> is undefined", mx.services.Log.DEBUG);
return(null);
}
var _local2 = new mx.remoting.Connection();
_local2.connect(url);
__sharedConnections[url] = _local2;
return(_local2);
}
static function getConnection(uri) {
return(__sharedConnections[uri]);
}
static function getHostUrl() {
if (!isHttpUrl(_root._url)) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
var _local2 = _root._url.indexOf("/", 8);
if (_local2 < 0) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
return(_root._url.substring(0, _local2));
}
static function isHttpUrl(url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
}
static function getHttpUrl(url) {
if (!isHttpUrl(url)) {
url = getHostUrl() + url;
}
return(url);
}
static function trace(who, severity, number, message) {
traceNetServices(who, severity, number, message);
}
static var version = "1.2.0.124";
static var gatewayUrl = _root.gatewayUrl;
static var __sharedConnections = new Array();
}
Symbol 1062 MovieClip [__Packages.mx.utils.Iterator] Frame 0
interface mx.utils.Iterator
{
}
Symbol 1063 MovieClip [__Packages.mx.remoting.RecordSetIterator] Frame 0
class mx.remoting.RecordSetIterator implements mx.utils.Iterator
{
var _recordSet, _cursor;
function RecordSetIterator (rec) {
_recordSet = rec;
_cursor = 0;
}
function hasNext() {
return(_cursor < _recordSet.getLength());
}
function next() {
return(_recordSet.getItemAt(_cursor++));
}
static var version = "1.2.0.124";
}
Symbol 1064 MovieClip [__Packages.mx.remoting.RsDataFetcher] Frame 0
class mx.remoting.RsDataFetcher extends Object
{
var mRecordSet, mIncrement, mNextRecord, mEnabled, mHighestRequested;
function RsDataFetcher (pgRS, increment) {
super();
mRecordSet = pgRS;
mRecordSet.addEventListener("modelChanged", this);
mIncrement = increment;
mNextRecord = 0;
mEnabled = true;
doNext();
}
function disable() {
mEnabled = false;
}
function doNext() {
if (mEnabled) {
while (true) {
if (mNextRecord >= mRecordSet.getRemoteLength()) {
return(undefined);
}
var _local2 = new mx.remoting.RsDataRange(mNextRecord, (mNextRecord + mIncrement) - 1);
mHighestRequested = mRecordSet.requestRange(_local2);
mNextRecord = mNextRecord + mIncrement;
if (mHighestRequested > 0) {
return(undefined);
}
}
}
}
function modelChanged(eventObj) {
if (((eventObj.eventName == "updateItems") && (eventObj.firstItem <= mHighestRequested)) && (eventObj.lastItem >= mHighestRequested)) {
doNext();
}
if (eventObj.eventName == "allRows") {
disable();
}
}
}
Symbol 1065 MovieClip [__Packages.mx.remoting.RsDataRange] Frame 0
class mx.remoting.RsDataRange extends Object implements mx.data.DataRange
{
var _start, _end;
function RsDataRange (s, e) {
super();
_start = s;
_end = e;
}
function getStart() {
return(_start);
}
function getEnd() {
return(_end);
}
function setEnd(e) {
_end = e;
}
function setStart(s) {
_start = s;
}
}
Symbol 1066 MovieClip [__Packages.mx.rpc.Responder] Frame 0
interface mx.rpc.Responder
{
}
Symbol 1067 MovieClip [__Packages.mx.rpc.ResultEvent] Frame 0
class mx.rpc.ResultEvent extends Object
{
var __result;
function ResultEvent (res) {
super();
__result = res;
}
function get result() {
return(__result);
}
}
Symbol 1068 MovieClip [__Packages.mx.rpc.FaultEvent] Frame 0
class mx.rpc.FaultEvent extends Object
{
var __fault;
function FaultEvent (f) {
super();
__fault = f;
}
function get fault() {
return(__fault);
}
}
Symbol 1069 MovieClip [__Packages.mx.rpc.Fault] Frame 0
class mx.rpc.Fault extends Object
{
var __faultcode, __faultstring, __detail, __type, __description;
function Fault (code, msg, detail, type) {
super();
__faultcode = code;
__faultstring = msg;
__detail = detail;
__type = type;
}
function get faultcode() {
return(__faultcode);
}
function get faultstring() {
return(__faultstring);
}
function get detail() {
return(__detail);
}
function get description() {
if (__description == null) {
if (__faultstring.indexOf(":") > -1) {
__description = __faultstring.substring(__faultstring.indexOf(":") + 1);
var _local2 = 0;
while (__description.indexOf(" ", _local2) == _local2) {
_local2++;
}
if (_local2 > 0) {
__description = __description.substring(_local2);
}
} else {
__description = __faultstring;
}
}
return(__description);
}
function get type() {
return(__type);
}
}
Symbol 1070 MovieClip [__Packages.mx.remoting.Operation] Frame 0
class mx.remoting.Operation
{
var __service, __responder, __methodName, __invokationName, __request, __arguments;
function Operation (methodName, parent) {
__service = parent;
__responder = parent.responder;
__methodName = methodName;
__invokationName = (__service.__get__name() + ".") + methodName;
__request = new Object();
__arguments = new Array();
}
function createThenSend(Void) {
createArguments();
return(send());
}
function send(Void) {
__service.log.logInfo((("Invoking " + __methodName) + " on ") + __service.__get__name());
var _local3 = new mx.remoting.PendingCall(__service, __methodName);
_local3.__set__responder(__responder);
var _local2 = null;
if (__arguments == null) {
_local2 = new Array();
} else {
_local2 = __arguments.concat();
}
__invokationName = (__service.__get__name() + ".") + __methodName;
_local2.unshift(__invokationName, _local3);
__service.__get__connection().call.apply(__service.__get__connection(), _local2);
return(_local3);
}
function invoke(a) {
__arguments = a;
}
function get responder() {
return(__responder);
}
function set responder(r) {
__responder = r;
//return(responder);
}
function get request() {
return(__request);
}
function set request(r) {
__request = r;
//return(request);
}
function get name() {
return(__methodName);
}
function createArguments() {
if (__request != null) {
__arguments = new Array();
for (var _local2 in __request) {
if (_local2 != "arguments") {
__arguments.unshift(__request[_local2]);
}
}
}
}
}
Symbol 1071 MovieClip [__Packages.mx.remoting.PendingCall] Frame 0
class mx.remoting.PendingCall extends Object
{
var __service, __methodName, __responder;
function PendingCall (srv, methodName) {
super();
__service = srv;
__methodName = methodName;
}
function get responder() {
return(__responder);
}
function set responder(res) {
__responder = res;
//return(responder);
}
function onResult(result) {
result.serviceName = result.serviceName;
if (result != null) {
if (result instanceof mx.remoting.NetServiceProxy) {
var _local4 = new mx.remoting.Service(null, null, result.serviceName, __service.__get__connection(), __service.__get__responder());
result = _local4;
} else if (result instanceof mx.remoting.RecordSet) {
var _local3 = new mx.remoting.NetServiceProxy(__service.__get__connection());
result._setParentService(_local3);
result.logger = __service.log;
}
}
if (__responder != null) {
__responder.onResult(new mx.rpc.ResultEvent(result));
}
if (__service.log != null) {
__service.log.logInfo((((__service.__get__name() + ".") + __methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(result));
}
}
function onStatus(status) {
if (__responder != null) {
__responder.onFault(new mx.rpc.FaultEvent(new mx.rpc.Fault(status.code, status.description, status.details, status.type)));
}
if (__service.log != null) {
__service.log.logDebug("Service invocation failed.");
__service.log.logDebug((((__service.__get__name() + ".") + __methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(status));
}
}
function get methodName() {
return(__methodName);
}
static var inited = mx.remoting.NetServiceProxy.registerNetServiceProxy();
}
Symbol 1072 MovieClip [__Packages.mx.data.binding.ObjectDumper] Frame 0
class mx.data.binding.ObjectDumper
{
var inProgress;
function ObjectDumper () {
inProgress = new Array();
}
static function toString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local3 = new mx.data.binding.ObjectDumper();
if (maxLineLength == undefined) {
maxLineLength = 100;
}
if (indent == undefined) {
indent = 0;
}
return(_local3.realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent));
}
function realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local8 = 0;
while (_local8 < inProgress.length) {
if (inProgress[_local8] == obj) {
return("***");
}
_local8++;
}
inProgress.push(obj);
indent++;
var _local16 = typeof(obj);
var _local5;
if ((obj instanceof XMLNode) && (showXMLstructures != true)) {
_local5 = obj.toString();
} else if (obj instanceof Date) {
_local5 = obj.toString();
} else if (_local16 == "object") {
var _local4 = new Array();
if (obj instanceof Array) {
_local5 = "[";
var _local15 = 0;
while (_local15 < obj.length) {
_local4.push(_local15);
_local15++;
}
} else {
_local5 = "{";
for (var _local15 in obj) {
_local4.push(_local15);
}
_local4.sort();
}
var _local9 = "";
var _local3 = 0;
while (_local3 < _local4.length) {
var _local6 = obj[_local4[_local3]];
var _local7 = true;
if (typeof(_local6) == "function") {
_local7 = showFunctions == true;
}
if (typeof(_local6) == "undefined") {
_local7 = showUndefined == true;
}
if (_local7) {
_local5 = _local5 + _local9;
if (!(obj instanceof Array)) {
_local5 = _local5 + (_local4[_local3] + ": ");
}
_local5 = _local5 + realToString(_local6, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent);
_local9 = ", `";
}
_local3++;
}
if (obj instanceof Array) {
_local5 = _local5 + "]";
} else {
_local5 = _local5 + "}";
}
} else if (_local16 == "function") {
_local5 = "function";
} else if (_local16 == "string") {
_local5 = ("\"" + obj) + "\"";
} else {
_local5 = String(obj);
}
if (_local5 == "undefined") {
_local5 = "-";
}
inProgress.pop();
return(replaceAll(_local5, "`", ((_local5.length < maxLineLength) ? "" : (newline + doIndent(indent)))));
}
static function replaceAll(str, from, to) {
var _local3 = str.split(from);
var _local4 = "";
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3.length) {
_local4 = _local4 + (_local2 + _local3[_local1]);
_local2 = to;
_local1++;
}
return(_local4);
}
function doIndent(indent) {
var _local2 = "";
var _local1 = 0;
while (_local1 < indent) {
_local2 = _local2 + " ";
_local1++;
}
return(_local2);
}
}
Symbol 1073 MovieClip [__Packages.mx.rpc.RelayResponder] Frame 0
class mx.rpc.RelayResponder extends Object implements mx.rpc.Responder
{
var __obj, __onFault, __onResult;
function RelayResponder (resp, resultFunc, faultFunc) {
super();
__obj = resp;
__onFault = faultFunc;
__onResult = resultFunc;
}
function onFault(fault) {
__obj[__onFault](fault);
}
function onResult(result) {
__obj[__onResult](result);
}
}
Symbol 32 Button
on (rollOver) {
sose2.start(0, 1);
}
on (release) {
sobj01.stop();
sose1.start(0, 1);
gotoAndStop ("ready");
}
Symbol 38 Button
on (rollOver) {
sose2.start(0, 1);
}
on (release) {
sobj01.stop();
sose1.start(0, 1);
gotoAndStop ("set");
}
Symbol 44 Button
on (rollOver) {
sose2.start(0, 1);
}
on (release) {
sobj01.stop();
sose1.start(0, 1);
rank_txt = "";
gotoAndPlay ("sougou");
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 68 Button
on (release) {
sose1.start(0, 1);
gotoAndStop ("title");
}
Symbol 91 Button
on (release) {
sose1.start(0, 1);
rank_txt = "";
gotoAndPlay ("myrank");
}
Symbol 109 Button
on (release) {
sose1.start(0, 1);
rank_txt = "";
gotoAndPlay ("sougou");
}
Symbol 128 Button
on (release) {
sose1.start(0, 1);
gotoAndStop ("ready");
}
Symbol 133 MovieClip Frame 35
tellTarget ("/") {
gotoAndPlay ("game");
};
Symbol 331 MovieClip Frame 1
if (qChk == 1) {
trace("qChk(3) = " + qChk);
gotoAndPlay ("great");
}
Symbol 331 MovieClip Frame 28
qChk = 0;
gotoAndPlay (1);
Symbol 331 MovieClip Frame 71
qChk = 0;
gotoAndPlay (1);
Symbol 586 MovieClip Frame 1
if (qChk == 1) {
trace("qChk(1) = " + qChk);
gotoAndPlay ("great");
} else if (qChk == 2) {
trace("qChk(2) = " + qChk);
gotoAndPlay ("nogood");
}
Symbol 586 MovieClip Frame 60
qChk = 0;
gotoAndPlay (1);
Symbol 586 MovieClip Frame 97
qChk = 0;
gotoAndPlay (1);
Symbol 586 MovieClip Frame 134
qChk = 0;
gotoAndPlay (1);
Symbol 610 MovieClip Frame 10
s = Number(_parent.n10._currentframe);
if (s < 199) {
_parent.n10.play();
}
Symbol 610 MovieClip Frame 201
s = Number(_parent.n10._currentframe);
if (s >= 210) {
stop();
_parent._parent.gameMode = 3;
_parent._parent.gotoAndPlay("finish");
} else {
this.gotoAndPlay(1);
}
Symbol 611 MovieClip Frame 10
stop();
Symbol 611 MovieClip Frame 11
s = Number(_parent.n100._currentframe);
if (s == 1) {
_parent.n100.play();
}
Symbol 611 MovieClip Frame 30
stop();
Symbol 611 MovieClip Frame 50
stop();
Symbol 611 MovieClip Frame 70
stop();
Symbol 611 MovieClip Frame 90
stop();
Symbol 611 MovieClip Frame 110
stop();
Symbol 611 MovieClip Frame 130
stop();
Symbol 611 MovieClip Frame 150
stop();
Symbol 611 MovieClip Frame 170
stop();
Symbol 611 MovieClip Frame 190
stop();
Symbol 611 MovieClip Frame 210
_parent._parent.timer._x = _parent._parent.timer._x - 9;
stop();
Symbol 612 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 12
_parent._parent.timer._x = _parent._parent.timer._x - 9;
Symbol 612 MovieClip Frame 21
stop();
Symbol 613 MovieClip Frame 1
Symbol 620 Button
on (release) {
if (gameMode == 1) {
sose1.start(0, 1);
pass++;
c_combo = 0;
b_Num1 = (o_Num1 = "");
b_Num2 = (o_Num2 = "");
b_Num3.m = (o_Num3 = "");
if (ridya._currentframe <= 59) {
ridya.gotoAndPlay("nogood");
ridya.qChk = 2;
}
play();
}
}
Symbol 625 Button
on (release) {
if (gameMode == 1) {
if (take >= 2) {
sose1.start(0, 1);
if (ridya._currentframe <= 59) {
ridya.gotoAndPlay("nogood");
ridya.qChk = 2;
}
take--;
yari++;
b_Num1 = (b_Num2 = (b_Num3.m = (o_Num1 = (o_Num2 = (o_Num3 = "")))));
i = 0;
while (i <= 3) {
eval ("w_Num" + i).m = (this["a_Num" + i] = eval ((("s" + take) + "_Num") + i));
eval ("w_Num" + i)._x = 120 + (i * 60);
eval ("w_Num" + i)._y = 110;
eval ("w_Num" + i).gotoAndPlay(3);
i++;
}
}
}
}
Symbol 649 Button
on (press) {
if (_parent.gameMode == 1) {
_parent.sose2.start(0, 1);
_parent.Depth++;
this.swapDepths(_parent.Depth);
this.startDrag(false, 0, 0, 590, 430);
panelmove = 1;
if (_parent.sisoku == 0) {
_parent.gActiv1._visible = true;
}
}
}
on (release) {
if (panelmove == 1) {
panelmove = 0;
this.stopDrag();
_parent.gActiv1._visible = false;
mcNum = Number(this._name.substr(2));
if (_parent.sisoku_mc.hitTest(this._x + 18, this._y + 18, true) == true) {
if ((_parent.sisoku == 0) or (_parent.sisoku == mcNum)) {
_parent.sisoku = mcNum;
this._x = _parent.sisoku_mc._x + 13;
this._y = _parent.sisoku_mc._y + 13;
_parent.sose3.start(0, 1);
} else if ((_parent.sisoku != 0) or (_parent.sisoku != mcNum)) {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
} else if (_parent.sisoku == mcNum) {
_parent.sisoku = 0;
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
} else {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
_parent.boxsum = 0;
v = 1;
while (v <= 2) {
if (_parent["o_Num" + v] != "") {
_parent.boxsum++;
}
v++;
}
if (_parent.sisoku != 0) {
_parent.boxsum++;
}
if (_parent.boxsum == 3) {
_parent.keisan_mc.play();
}
}
}
Symbol 653 Button
on (press) {
if (_parent.gameMode == 1) {
_parent.sose2.start(0, 1);
_parent.Depth++;
this.swapDepths(_parent.Depth);
this.startDrag(false, 0, 0, 590, 430);
panelmove = 1;
if (_parent.sisoku == 0) {
_parent.gActiv1._visible = true;
}
}
}
on (release) {
if (panelmove == 1) {
panelmove = 0;
this.stopDrag();
_parent.gActiv1._visible = false;
mcNum = Number(this._name.substr(2));
if (_parent.sisoku_mc.hitTest(this._x + 18, this._y + 18, true) == true) {
if ((_parent.sisoku == 0) or (_parent.sisoku == mcNum)) {
_parent.sisoku = mcNum;
this._x = _parent.sisoku_mc._x + 13;
this._y = _parent.sisoku_mc._y + 13;
_parent.sose3.start(0, 1);
} else if ((_parent.sisoku != 0) or (_parent.sisoku != mcNum)) {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
} else if (_parent.sisoku == mcNum) {
_parent.sisoku = 0;
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
} else {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
_parent.boxsum = 0;
v = 1;
while (v <= 2) {
if (_parent["o_Num" + v] != "") {
_parent.boxsum++;
}
v++;
}
if (_parent.sisoku != 0) {
_parent.boxsum++;
}
if (_parent.boxsum == 3) {
_parent.keisan_mc.play();
}
}
}
Symbol 657 Button
on (press) {
if (_parent.gameMode == 1) {
_parent.sose2.start(0, 1);
_parent.Depth++;
this.swapDepths(_parent.Depth);
this.startDrag(false, 0, 0, 590, 430);
panelmove = 1;
if (_parent.sisoku == 0) {
_parent.gActiv1._visible = true;
}
}
}
on (release) {
if (panelmove == 1) {
panelmove = 0;
this.stopDrag();
_parent.gActiv1._visible = false;
mcNum = Number(this._name.substr(2));
if (_parent.sisoku_mc.hitTest(this._x + 18, this._y + 18, true) == true) {
if ((_parent.sisoku == 0) or (_parent.sisoku == mcNum)) {
_parent.sisoku = mcNum;
this._x = _parent.sisoku_mc._x + 13;
this._y = _parent.sisoku_mc._y + 13;
_parent.sose3.start(0, 1);
} else if ((_parent.sisoku != 0) or (_parent.sisoku != mcNum)) {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
} else if (_parent.sisoku == mcNum) {
_parent.sisoku = 0;
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
} else {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
_parent.boxsum = 0;
v = 1;
while (v <= 2) {
if (_parent["o_Num" + v] != "") {
_parent.boxsum++;
}
v++;
}
if (_parent.sisoku != 0) {
_parent.boxsum++;
}
if (_parent.boxsum == 3) {
_parent.keisan_mc.play();
}
}
}
Symbol 661 Button
on (press) {
if (_parent.gameMode == 1) {
_parent.sose2.start(0, 1);
_parent.Depth++;
this.swapDepths(_parent.Depth);
this.startDrag(false, 0, 0, 590, 430);
panelmove = 1;
if (_parent.sisoku == 0) {
_parent.gActiv1._visible = true;
}
}
}
on (release) {
if (panelmove == 1) {
panelmove = 0;
this.stopDrag();
_parent.gActiv1._visible = false;
mcNum = Number(this._name.substr(2));
if (_parent.sisoku_mc.hitTest(this._x + 18, this._y + 18, true) == true) {
if ((_parent.sisoku == 0) or (_parent.sisoku == mcNum)) {
_parent.sisoku = mcNum;
this._x = _parent.sisoku_mc._x + 13;
this._y = _parent.sisoku_mc._y + 13;
_parent.sose3.start(0, 1);
} else if ((_parent.sisoku != 0) or (_parent.sisoku != mcNum)) {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
} else if (_parent.sisoku == mcNum) {
_parent.sisoku = 0;
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
} else {
this._x = 142 + ((mcNum - 1) * 60);
this._y = 255;
}
_parent.boxsum = 0;
v = 1;
while (v <= 2) {
if (_parent["o_Num" + v] != "") {
_parent.boxsum++;
}
v++;
}
if (_parent.sisoku != 0) {
_parent.boxsum++;
}
if (_parent.boxsum == 3) {
_parent.keisan_mc.play();
}
}
}
Symbol 683 MovieClip Frame 1
k = 0;
while (k < 2) {
i = Number(_name.charAt(5));
newName = "su" + (i + k);
this[newName].removeMovieClip();
k++;
}
a = Number(length(m));
if (m < 0) {
a = a - 1;
}
if (m == "") {
nextFrame();
} else if (a == 1) {
if (m >= 0) {
oldName = "p" + m;
} else {
oldName = "m" + (m * -1);
}
i = _name.charAt(5);
newName = "su" + i;
duplicateMovieClip (oldName, newName, Number(i));
eval (newName)._x = 1;
eval (newName)._y = 0;
} else if (a == 2) {
i = 0;
while (i < 2) {
if ((i == 0) and (m >= 0)) {
h = int(m / 10);
} else if (m >= 0) {
h = int(m % 10);
} else if ((i == 0) and (m < 0)) {
h = int(m / 10) * -1;
} else if (m < 0) {
h = int(m % 10) * -1;
}
if (m >= 0) {
oldName = "p" + h;
} else {
oldName = "m" + h;
}
k = _name.charAt(5);
newName = "su" + (Number(k) + i);
duplicateMovieClip (oldName, newName, i);
if (m < 19) {
eval (newName)._x = -16 + (i * 28);
eval (newName)._y = 0;
} else {
eval (newName)._x = -12 + (i * 28);
eval (newName)._y = 0;
}
i++;
}
}
i = 0;
while (i < 10) {
eval ("p" + i)._visible = false;
eval ("m" + i)._visible = false;
i++;
}
stop();
Symbol 683 MovieClip Frame 2
stop();
Symbol 683 MovieClip Frame 3
gotoAndPlay (1);
Symbol 684 MovieClip Frame 1
stop();
Symbol 684 MovieClip Frame 2
_parent.PPmn1();
l = 1;
Symbol 684 MovieClip Frame 31
_parent.PPmn2();
Symbol 684 MovieClip Frame 32
l++;
if (l <= 20) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 684 MovieClip Frame 33
_parent.com_ck = 0;
gotoAndStop (1);
Symbol 689 MovieClip Frame 1
k = 0;
while (k < 2) {
i = Number(_name.charAt(5));
newName = "su" + (i + k);
this[newName].removeMovieClip();
k++;
}
a = Number(length(m));
if (m < 0) {
a = a - 1;
}
if (m == "") {
nextFrame();
} else if (a == 1) {
if (m >= 0) {
oldName = "p" + m;
} else {
oldName = "m" + (m * -1);
}
i = _name.charAt(5);
newName = "su" + i;
duplicateMovieClip (oldName, newName, Number(i));
eval (newName)._x = 1;
eval (newName)._y = 0;
} else if (a == 2) {
i = 0;
while (i < 2) {
if ((i == 0) and (m >= 0)) {
h = int(m / 10);
} else if (m >= 0) {
h = int(m % 10);
} else if ((i == 0) and (m < 0)) {
h = int(m / 10) * -1;
} else if (m < 0) {
h = int(m % 10) * -1;
}
if (m >= 0) {
oldName = "p" + h;
} else {
oldName = "m" + h;
}
k = _name.charAt(5);
newName = "su" + (Number(k) + i);
duplicateMovieClip (oldName, newName, i);
if (m < 19) {
eval (newName)._x = -16 + (i * 28);
eval (newName)._y = 0;
} else {
eval (newName)._x = -12 + (i * 28);
eval (newName)._y = 0;
}
i++;
}
}
i = 0;
while (i < 10) {
eval ("p" + i)._visible = false;
eval ("m" + i)._visible = false;
i++;
}
stop();
Symbol 689 MovieClip Frame 2
stop();
Symbol 689 MovieClip Frame 3
gotoAndPlay (1);
Symbol 691 MovieClip Frame 1
if (_parent.gameMode == 2) {
_parent.gameMode = 1;
}
stop();
Symbol 691 MovieClip Frame 2
_parent.KScon();
if (_parent.Mode == 1) {
this.gotoAndStop(1);
} else if (_parent.Mode == 10) {
_parent.pls_scr.play();
}
Symbol 691 MovieClip Frame 14
_parent.KSon2();
Symbol 696 MovieClip Frame 1
Symbol 696 MovieClip Frame 40
_parent.nextFrame();
Symbol 696 MovieClip Frame 41
_parent.bScore._x = 247;
_parent.bScore._y = 50;
Symbol 696 MovieClip Frame 51
_parent.KKka1();
Symbol 696 MovieClip Frame 61
_parent.KKka2();
Symbol 696 MovieClip Frame 71
_parent.line_mc._x = 170;
_parent.line_mc._y = 230;
Symbol 696 MovieClip Frame 102
_parent.KKka3();
Symbol 696 MovieClip Frame 106
_parent.nextFrame();
stop();
Symbol 698 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 70
stop();
Symbol 984 MovieClip Frame 1
stop();
Symbol 984 MovieClip Frame 72
stop();
Symbol 984 MovieClip Frame 144
stop();
Symbol 1013 Button
on (release) {
if (_parent.logincheckflg == 0) {
_parent.REdel();
_parent.sose1.start(0, 1);
_parent.sose7.stop();
_parent.sose8.stop();
_parent.gotoAndStop("title");
}
}
Symbol 1025 Button
on (release) {
_parent.gotoAndStop("result2");
}
Symbol 1031 Button
on (release) {
_parent.LCck();
}
Symbol 1037 Button
on (release) {
if (_parent.logincheckflg == 0) {
_parent.REdel();
_parent.sose1.start(0, 1);
_parent.sose7.stop();
_parent.sose8.stop();
_parent.gotoAndStop("ready");
}
}
Symbol 1047 Button
on (release) {
_parent.backTitle._visible = true;
getURL ("http://\u3066\u3059\u3068\u3066\u3059\u3068\u3066\u3059\uFF54/", "_blank", "POST");
}