Frame 5
this.gotoAndPlay(10);
Frame 9
stop();
Frame 11
function init() {
gotoAndStop ("stPoint");
yubiCount = 0;
me.init();
scoreBord.init();
}
function gameStart() {
this.bgmSys.bgmSound.start(0, 999);
this.bgmSys.bgmSound.setVolume(50);
gotoAndStop ("Main");
mainSys.gameStart();
}
function reStart() {
scoreBord.init();
this.bgmSys.bgmSound.start(0, 999);
this.bgmSys.bgmSound.setVolume(50);
gotoAndStop ("Main");
mainSys.gameStart();
}
function searchYubi() {
}
function ansCheck(sellectAns, selMode) {
if (selMode) {
i = 0;
while (i < 5) {
if (oderColor[i] != qColor[sellectAns[i]]) {
return(false);
}
i++;
}
return(true);
}
i = 0;
while (i < 5) {
if (oderGara[i] != qGara[sellectAns[i]]) {
return(false);
}
i++;
}
return(true);
}
function makeQues(quesLevel) {
qcList = new Array();
qgList = new Array();
oderColor = new Array();
oderGara = new Array();
qColor = new Array();
qGara = new Array();
if (quesLevel == 1) {
i = 0;
while (i < 50) {
qcList[i] = i + 2;
qgList[i] = i + 2;
i++;
}
i = 0;
while (i < 5) {
nowColor = Math.floor(Math.random() * 10) + ((4 - i) * 10);
nowGara = Math.floor(Math.random() * 10) + ((4 - i) * 10);
oderColor.splice(Math.floor(Math.random() * i), 0, nowColor + 2);
oderGara.splice(Math.floor(Math.random() * i), 0, nowGara + 2);
qcList.splice(nowColor, 1);
qgList.splice(nowGara, 1);
i++;
}
qColor = oderColor.concat();
qGara = oderGara.concat();
i = 0;
while (i < 5) {
nowColor = Math.floor(Math.random() * qcList.length);
nowGara = Math.floor(Math.random() * qgList.length);
qColor.splice(Math.floor(Math.random() * (5 + i)), 0, qcList[nowColor]);
qGara.splice(Math.floor(Math.random() * (5 + i)), 0, qgList[nowGara]);
qcList.splice(nowColor, 1);
qgList.splice(nowGara, 1);
i++;
}
} else if (quesLevel == 2) {
color1Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
gara1Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
color2Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
gara2Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
color3Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
gara3Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
color4Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
gara4Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
ques = new Array(0, 1, 2, 3, 4);
j = Math.floor(Math.random() * 5);
cate1 = ques[j];
ques.splice(j, 1);
k = Math.floor(Math.random() * 4);
cate2 = ques[k];
ques.splice(k, 1);
l = Math.floor(Math.random() * 3);
cate3 = ques[l];
ques.splice(l, 1);
m = Math.floor(Math.random() * 2);
cate4 = ques[m];
ques = new Array(0, 1, 2, 3, 4);
j = Math.floor(Math.random() * 5);
gCate1 = ques[j];
ques.splice(j, 1);
k = Math.floor(Math.random() * 4);
gCate2 = ques[k];
ques.splice(k, 1);
l = Math.floor(Math.random() * 3);
gCate3 = ques[l];
ques.splice(l, 1);
m = Math.floor(Math.random() * 2);
gCate4 = ques[m];
i = 0;
while (i < 2) {
nowColor = Math.floor(Math.random() * color1Check.length);
nowGara = Math.floor(Math.random() * gara1Check.length);
oderColor.splice(Math.floor(Math.random() * i), 0, color1Check[nowColor] + (cate1 * 10));
oderGara.splice(Math.floor(Math.random() * i), 0, gara1Check[nowGara] + (gCate1 * 10));
color1Check.splice(nowColor, 1);
gara1Check.splice(nowGara, 1);
i++;
}
nowColor = Math.floor(Math.random() * color2Check.length);
nowGara = Math.floor(Math.random() * gara2Check.length);
oderColor.splice(Math.floor(Math.random() * 2), 0, color2Check[nowColor] + (cate2 * 10));
oderGara.splice(Math.floor(Math.random() * 2), 0, gara2Check[nowGara] + (gCate2 * 10));
color2Check.splice(nowColor, 1);
gara2Check.splice(nowGara, 1);
nowColor = Math.floor(Math.random() * color3Check.length);
nowGara = Math.floor(Math.random() * gara3Check.length);
oderColor.splice(Math.floor(Math.random() * 3), 0, color3Check[nowColor] + (cate3 * 10));
oderGara.splice(Math.floor(Math.random() * 3), 0, gara3Check[nowGara] + (gCate3 * 10));
color3Check.splice(nowColor, 1);
gara3Check.splice(nowGara, 1);
nowColor = Math.floor(Math.random() * color4Check.length);
nowGara = Math.floor(Math.random() * gara4Check.length);
oderColor.splice(Math.floor(Math.random() * 4), 0, color4Check[nowColor] + (cate4 * 10));
oderGara.splice(Math.floor(Math.random() * 4), 0, gara4Check[nowGara] + (gCate4 * 10));
color4Check.splice(nowColor, 1);
gara4Check.splice(nowGara, 1);
qColor = oderColor.concat();
qGara = oderGara.concat();
nowColor = Math.floor(Math.random() * color1Check.length);
nowGara = Math.floor(Math.random() * gara1Check.length);
qColor.splice(Math.floor(Math.random() * 5), 0, color1Check[nowColor] + (cate1 * 10));
qGara.splice(Math.floor(Math.random() * 5), 0, gara1Check[nowGara] + (gCate1 * 10));
color1Check.splice(nowColor, 1);
gara1Check.splice(nowGara, 1);
nowColor = Math.floor(Math.random() * color2Check.length);
nowGara = Math.floor(Math.random() * gara2Check.length);
qColor.splice(Math.floor(Math.random() * 6), 0, color2Check[nowColor] + (cate2 * 10));
qGara.splice(Math.floor(Math.random() * 6), 0, gara2Check[nowGara] + (gCate2 * 10));
color2Check.splice(nowColor, 1);
gara2Check.splice(nowGara, 1);
nowColor = Math.floor(Math.random() * color3Check.length);
nowGara = Math.floor(Math.random() * gara3Check.length);
qColor.splice(Math.floor(Math.random() * 7), 0, color3Check[nowColor] + (cate3 * 10));
qGara.splice(Math.floor(Math.random() * 7), 0, gara3Check[nowGara] + (gCate3 * 10));
color3Check.splice(nowColor, 1);
gara3Check.splice(nowGara, 1);
i = 0;
while (i < 2) {
nowColor = Math.floor(Math.random() * color4Check.length);
nowGara = Math.floor(Math.random() * gara4Check.length);
qColor.splice(Math.floor(Math.random() * (8 + i)), 0, color4Check[nowColor] + (cate4 * 10));
qGara.splice(Math.floor(Math.random() * (8 + i)), 0, gara4Check[nowGara] + (gCate4 * 10));
color4Check.splice(nowColor, 1);
gara4Check.splice(nowGara, 1);
i++;
}
} else if (quesLevel == 3) {
color1Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
gara1Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
color2Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
gara2Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
color3Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
gara3Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
ques = new Array(0, 1, 2, 3, 4);
j = Math.floor(Math.random() * 5);
cate1 = ques[j];
ques.splice(j, 1);
k = Math.floor(Math.random() * 4);
cate2 = ques[k];
ques.splice(k, 1);
l = Math.floor(Math.random() * 3);
cate3 = ques[l];
ques = new Array(0, 1, 2, 3, 4);
j = Math.floor(Math.random() * 5);
gCate1 = ques[j];
ques.splice(j, 1);
k = Math.floor(Math.random() * 4);
gCate2 = ques[k];
ques.splice(k, 1);
l = Math.floor(Math.random() * 3);
gCate3 = ques[l];
i = 0;
while (i < 2) {
nowColor = Math.floor(Math.random() * color1Check.length);
nowGara = Math.floor(Math.random() * gara1Check.length);
oderColor.splice(Math.floor(Math.random() * i), 0, color1Check[nowColor] + (cate1 * 10));
oderGara.splice(Math.floor(Math.random() * i), 0, gara1Check[nowGara] + (gCate1 * 10));
color1Check.splice(nowColor, 1);
gara1Check.splice(nowGara, 1);
i++;
}
i = 0;
while (i < 2) {
nowColor = Math.floor(Math.random() * color2Check.length);
nowGara = Math.floor(Math.random() * gara2Check.length);
oderColor.splice(Math.floor(Math.random() * (2 + i)), 0, color2Check[nowColor] + (cate2 * 10));
oderGara.splice(Math.floor(Math.random() * (2 + i)), 0, gara2Check[nowGara] + (gCate2 * 10));
color2Check.splice(nowColor, 1);
gara2Check.splice(nowGara, 1);
i++;
}
nowColor = Math.floor(Math.random() * color3Check.length);
nowGara = Math.floor(Math.random() * gara3Check.length);
oderColor.splice(Math.floor(Math.random() * 4), 0, color3Check[nowColor] + (cate3 * 10));
oderGara.splice(Math.floor(Math.random() * 4), 0, gara3Check[nowGara] + (gCate3 * 10));
color3Check.splice(nowColor, 1);
gara3Check.splice(nowGara, 1);
qColor = oderColor.concat();
qGara = oderGara.concat();
nowColor = Math.floor(Math.random() * color1Check.length);
nowGara = Math.floor(Math.random() * gara1Check.length);
qColor.splice(Math.floor(Math.random() * 5), 0, color1Check[nowColor] + (cate1 * 10));
qGara.splice(Math.floor(Math.random() * 5), 0, gara1Check[nowGara] + (gCate1 * 10));
color1Check.splice(nowColor, 1);
gara1Check.splice(nowGara, 1);
nowColor = Math.floor(Math.random() * color2Check.length);
nowGara = Math.floor(Math.random() * gara2Check.length);
qColor.splice(Math.floor(Math.random() * 6), 0, color2Check[nowColor] + (cate2 * 10));
qGara.splice(Math.floor(Math.random() * 6), 0, gara2Check[nowGara] + (gCate2 * 10));
color2Check.splice(nowColor, 1);
gara2Check.splice(nowGara, 1);
i = 0;
while (i < 3) {
nowColor = Math.floor(Math.random() * color3Check.length);
nowGara = Math.floor(Math.random() * gara3Check.length);
qColor.splice(Math.floor(Math.random() * (7 + i)), 0, color3Check[nowColor] + (cate3 * 10));
qGara.splice(Math.floor(Math.random() * (7 + i)), 0, gara3Check[nowGara] + (gCate3 * 10));
color3Check.splice(nowColor, 1);
gara3Check.splice(nowGara, 1);
i++;
}
} else if (quesLevel == 4) {
ques = new Array(0, 1, 2, 3, 4);
color1Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
gara1Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
color2Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
gara2Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
j = Math.floor(Math.random() * 5);
cate1 = ques[j];
ques.splice(j, 1);
k = Math.floor(Math.random() * 4);
cate2 = ques[k];
ques = new Array(0, 1, 2, 3, 4);
l = Math.floor(Math.random() * 5);
gCate1 = ques[l];
ques.splice(l, 1);
m = Math.floor(Math.random() * 4);
gCate2 = ques[m];
i = 0;
while (i < 3) {
nowColor = Math.floor(Math.random() * color1Check.length);
nowGara = Math.floor(Math.random() * gara1Check.length);
oderColor.splice(Math.floor(Math.random() * i), 0, color1Check[nowColor] + (cate1 * 10));
oderGara.splice(Math.floor(Math.random() * i), 0, gara1Check[nowGara] + (gCate1 * 10));
color1Check.splice(nowColor, 1);
gara1Check.splice(nowGara, 1);
i++;
}
i = 0;
while (i < 2) {
nowColor = Math.floor(Math.random() * color2Check.length);
nowGara = Math.floor(Math.random() * gara2Check.length);
oderColor.splice(Math.floor(Math.random() * (3 + i)), 0, color2Check[nowColor] + (cate2 * 10));
oderGara.splice(Math.floor(Math.random() * (3 + i)), 0, gara2Check[nowGara] + (gCate2 * 10));
color2Check.splice(nowColor, 1);
gara2Check.splice(nowGara, 1);
i++;
}
qColor = oderColor.concat();
qGara = oderGara.concat();
i = 0;
while (i < 2) {
nowColor = Math.floor(Math.random() * color1Check.length);
nowGara = Math.floor(Math.random() * gara1Check.length);
qColor.splice(Math.floor(Math.random() * (5 + i)), 0, color1Check[nowColor] + (cate1 * 10));
qGara.splice(Math.floor(Math.random() * (5 + i)), 0, gara1Check[nowGara] + (gCate1 * 10));
color1Check.splice(nowColor, 1);
gara1Check.splice(nowGara, 1);
i++;
}
i = 0;
while (i < 3) {
nowColor = Math.floor(Math.random() * color2Check.length);
nowGara = Math.floor(Math.random() * gara2Check.length);
qColor.splice(Math.floor(Math.random() * (7 + i)), 0, color2Check[nowColor] + (cate2 * 10));
qGara.splice(Math.floor(Math.random() * (7 + i)), 0, gara2Check[nowGara] + (gCate2 * 10));
color2Check.splice(nowColor, 1);
gara2Check.splice(nowGara, 1);
i++;
}
} else if (quesLevel == 5) {
color1Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
gara1Check = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
cate1 = Math.floor(Math.random() * 5);
gCate1 = Math.floor(Math.random() * 5);
i = 0;
while (i < 5) {
nowColor = Math.floor(Math.random() * color1Check.length);
nowGara = Math.floor(Math.random() * gara1Check.length);
oderColor.splice(Math.floor(Math.random() * i), 0, color1Check[nowColor] + (cate1 * 10));
oderGara.splice(Math.floor(Math.random() * i), 0, gara1Check[nowGara] + (gCate1 * 10));
color1Check.splice(nowColor, 1);
gara1Check.splice(nowGara, 1);
i++;
}
i = 0;
while (i < 10) {
qColor[i] = (i + 2) + (cate1 * 10);
qGara[i] = (i + 2) + (gCate1 * 10);
i++;
}
}
i = 0;
while (i < 5) {
this["oder" + i].yubi.iro.gotoAndStop(oderColor[i]);
this["oder" + i].yubi.gara.gotoAndStop(oderGara[i]);
this["oder" + i].deban();
i++;
}
qColor.sort(xOrder);
qGara.sort(xOrder);
i = 0;
while (i < 10) {
this["b" + i].iro.gotoAndStop(qColor[i]);
this["b" + i].gara.gotoAndStop(qGara[i]);
this["b" + i].iro._visible = true;
this["b" + i].gara._visible = false;
i++;
}
}
function xOrder(a, b) {
return((b < a) - (a < b));
}
firstTime = true;
init();
Instance of Symbol 202 MovieClip "oder0" in Frame 11
onClipEvent (load) {
function init() {
idouSp = 30;
movSw = false;
this._x = 452.5;
this.yubi.iro.init();
this.yubi.gara.init();
}
function deban() {
movSw = true;
movPoint = defX;
}
function hake() {
idouSp = 30;
movSw = true;
movPoint = -40;
}
defX = this._x;
defY = this._y;
init();
}
onClipEvent (enterFrame) {
if (movSw) {
this._x = this._x - idouSp;
idouSp = idouSp * 0.92;
if (this._x < movPoint) {
movSw = false;
if (movPoint == defX) {
this._x = movPoint;
_parent.mainSys.yubiReady();
} else {
this.init();
}
}
}
}
Instance of Symbol 229 MovieClip "oder1" in Frame 11
onClipEvent (load) {
function init() {
idouSp = 30;
movSw = false;
this._x = 520;
this.yubi.iro.init();
this.yubi.gara.init();
}
function deban() {
movSw = true;
movPoint = defX;
}
function hake() {
idouSp = 30;
movSw = true;
movPoint = -40;
}
defX = this._x;
defY = this._y;
init();
}
onClipEvent (enterFrame) {
if (movSw) {
this._x = this._x - idouSp;
idouSp = idouSp * 0.925;
if (this._x < movPoint) {
movSw = false;
if (movPoint == defX) {
_parent.koukaSys.setSound.start();
_parent.koukaSys.setSound.setVolume(60);
this._x = movPoint;
_parent.mainSys.yubiReady();
} else {
this.init();
}
}
}
}
Instance of Symbol 243 MovieClip "oder2" in Frame 11
onClipEvent (load) {
function init() {
idouSp = 30;
movSw = false;
this._x = 587;
this.yubi.iro.init();
this.yubi.gara.init();
}
function deban() {
movSw = true;
movPoint = defX;
}
function hake() {
idouSp = 30;
movSw = true;
movPoint = -40;
}
defX = this._x;
defY = this._y;
init();
}
onClipEvent (enterFrame) {
if (movSw) {
this._x = this._x - idouSp;
idouSp = idouSp * 0.93;
if (this._x < movPoint) {
movSw = false;
if (movPoint == defX) {
this._x = movPoint;
_parent.mainSys.yubiReady();
} else {
_parent.koukaSys.setSound.start();
_parent.koukaSys.setSound.setVolume(60);
this.init();
}
}
}
}
Instance of Symbol 256 MovieClip "oder3" in Frame 11
onClipEvent (load) {
function init() {
idouSp = 30;
movSw = false;
this._x = 654.5;
this.yubi.iro.init();
this.yubi.gara.init();
}
function deban() {
movSw = true;
movPoint = defX;
}
function hake() {
idouSp = 30;
movSw = true;
movPoint = -40;
}
defX = this._x;
defY = this._y;
init();
}
onClipEvent (enterFrame) {
if (movSw) {
this._x = this._x - idouSp;
idouSp = idouSp * 0.935;
if (this._x < movPoint) {
movSw = false;
if (movPoint == defX) {
this._x = movPoint;
_parent.mainSys.yubiReady();
} else {
this.init();
}
}
}
}
Instance of Symbol 272 MovieClip "oder4" in Frame 11
onClipEvent (load) {
function init() {
idouSp = 30;
movSw = false;
this._x = 721.5;
this.yubi.iro.init();
this.yubi.gara.init();
}
function deban() {
movSw = true;
movPoint = defX;
}
function hake() {
idouSp = 30;
movSw = true;
movPoint = -40;
}
defX = this._x;
defY = this._y;
init();
}
onClipEvent (enterFrame) {
if (movSw) {
this._x = this._x - idouSp;
idouSp = idouSp * 0.94;
if (this._x < movPoint) {
movSw = false;
if (movPoint == defX) {
this._x = movPoint;
_parent.mainSys.yubiReady();
} else {
this.init();
}
}
}
}
Instance of Symbol 288 MovieClip "kyaku" in Frame 11
onClipEvent (load) {
function init() {
idouSp = 20;
movSw = false;
this._y = -20;
i = 0;
while (i < 5) {
this["kyaku" + i].yubi.iro.init();
this["kyaku" + i].yubi.gara.init();
i++;
}
}
function deban() {
movSw = true;
movPoint = defY;
}
function hake() {
idouSp = -20;
movSw = true;
movPoint = -20;
}
defX = this._x;
defY = this._y;
init();
}
onClipEvent (enterFrame) {
if (movSw) {
this._y = this._y + idouSp;
idouSp = idouSp * 0.85;
if (movPoint == defY) {
if (movPoint < this._y) {
movSw = false;
_parent.mainSys.kyakuReady();
}
} else if (this._y < movPoint) {
movSw = false;
this.init();
_parent.mainSys.kyakuEnd();
i = 0;
while (i < 5) {
_parent["oder" + i].hake();
i++;
}
}
}
}
Instance of Symbol 291 MovieClip "joukyou" in Frame 11
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 303 MovieClip "qInfo" in Frame 11
onClipEvent (load) {
function init() {
this._visible = false;
viewSw = false;
viewTime = 50;
}
function viewLogo(nextLv) {
_parent.koukaSys.kiraSound.start();
_parent.koukaSys.kiraSound.setVolume(60);
myLv = nextLv;
this._visible = true;
viewSw = true;
viewCount = 0;
this.logo.gotoAndStop(nextLv);
}
init();
}
onClipEvent (enterFrame) {
if (viewSw) {
viewCount = viewCount + 1;
if (viewCount == viewTime) {
if (myLv == 6) {
_parent.mainSys.gameOver();
this.logo.gotoAndStop(1);
viewSw = false;
this._visible = false;
} else {
_parent.mainSys.gameStart();
this.logo.gotoAndStop(1);
viewSw = false;
this._visible = false;
}
}
}
}
Instance of Symbol 362 MovieClip "b5" in Frame 11
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
this.btn.gotoAndStop(1);
}
function sellectMe() {
_parent.mainSys.hantei(myNum, this.iro._currentframe, this.gara._currentframe);
this.gotoAndStop(3);
}
myName = new String(this._name);
myNum = Number(myName.slice(1, 3));
init();
}
Instance of Symbol 362 MovieClip "b6" in Frame 11
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
this.btn.gotoAndStop(1);
}
function sellectMe() {
_parent.mainSys.hantei(myNum, this.iro._currentframe, this.gara._currentframe);
this.gotoAndStop(3);
}
myName = new String(this._name);
myNum = Number(myName.slice(1, 3));
init();
}
Instance of Symbol 362 MovieClip "b7" in Frame 11
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
this.btn.gotoAndStop(1);
}
function sellectMe() {
_parent.mainSys.hantei(myNum, this.iro._currentframe, this.gara._currentframe);
this.gotoAndStop(3);
}
myName = new String(this._name);
myNum = Number(myName.slice(1, 3));
init();
}
Instance of Symbol 362 MovieClip "b8" in Frame 11
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
this.btn.gotoAndStop(1);
}
function sellectMe() {
_parent.mainSys.hantei(myNum, this.iro._currentframe, this.gara._currentframe);
this.gotoAndStop(3);
}
myName = new String(this._name);
myNum = Number(myName.slice(1, 3));
init();
}
Instance of Symbol 362 MovieClip "b9" in Frame 11
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
this.btn.gotoAndStop(1);
}
function sellectMe() {
_parent.mainSys.hantei(myNum, this.iro._currentframe, this.gara._currentframe);
this.gotoAndStop(3);
}
myName = new String(this._name);
myNum = Number(myName.slice(1, 3));
init();
}
Instance of Symbol 362 MovieClip "b0" in Frame 11
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
this.btn.gotoAndStop(1);
}
function sellectMe() {
_parent.mainSys.hantei(myNum, this.iro._currentframe, this.gara._currentframe);
this.gotoAndStop(3);
}
myName = new String(this._name);
myNum = Number(myName.slice(1, 3));
init();
}
Instance of Symbol 362 MovieClip "b1" in Frame 11
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
this.btn.gotoAndStop(1);
}
function sellectMe() {
_parent.mainSys.hantei(myNum, this.iro._currentframe, this.gara._currentframe);
this.gotoAndStop(3);
}
myName = new String(this._name);
myNum = Number(myName.slice(1, 3));
init();
}
Instance of Symbol 362 MovieClip "b2" in Frame 11
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
this.btn.gotoAndStop(1);
}
function sellectMe() {
_parent.mainSys.hantei(myNum, this.iro._currentframe, this.gara._currentframe);
this.gotoAndStop(3);
}
myName = new String(this._name);
myNum = Number(myName.slice(1, 3));
init();
}
Instance of Symbol 362 MovieClip "b3" in Frame 11
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
this.btn.gotoAndStop(1);
}
function sellectMe() {
_parent.mainSys.hantei(myNum, this.iro._currentframe, this.gara._currentframe);
this.gotoAndStop(3);
}
myName = new String(this._name);
myNum = Number(myName.slice(1, 3));
init();
}
Instance of Symbol 362 MovieClip "b4" in Frame 11
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
this.btn.gotoAndStop(1);
}
function sellectMe() {
_parent.mainSys.hantei(myNum, this.iro._currentframe, this.gara._currentframe);
this.gotoAndStop(3);
}
myName = new String(this._name);
myNum = Number(myName.slice(1, 3));
init();
}
Instance of Symbol 368 MovieClip "marubatsu" in Frame 11
onClipEvent (load) {
function init() {
hitSw = false;
missSw = false;
this.gotoAndStop(1);
}
function hit() {
hitSw = true;
this.gotoAndStop(2);
startTime = getTimer();
}
function miss() {
missSw = true;
this.gotoAndStop(3);
startTime = getTimer();
}
init();
}
onClipEvent (enterFrame) {
if (hitSw) {
nowTime = Math.floor((getTimer() - startTime) / 1000);
if (nowTime == 2) {
_parent.mainSys.nextStage();
init();
}
} else if (missSw) {
nowTime = Math.floor((getTimer() - startTime) / 1000);
if (nowTime == 2) {
_parent.mainSys.reSellect();
init();
}
}
}
Instance of Symbol 371 MovieClip "monk" in Frame 11
onClipEvent (load) {
function init() {
timerSw = false;
this.gotoAndStop(1);
}
function booing() {
if (Math.floor(Math.random() * 2) == 1) {
this.gotoAndStop(2);
startTime = getTimer();
timerSw = true;
} else {
this.gotoAndStop(3);
startTime = getTimer();
timerSw = true;
}
}
init();
}
onClipEvent (enterFrame) {
if (timerSw) {
nowTime = Math.floor((getTimer() - startTime) / 100);
if (nowTime == 15) {
init();
}
}
}
Instance of Symbol 373 MovieClip "bgmSys" in Frame 11
onClipEvent (load) {
bgmSound = new Sound(this);
bgmSound.attachSound("bgm");
}
Instance of Symbol 373 MovieClip "koukaSys" in Frame 11
onClipEvent (load) {
kiraSound = new Sound(this);
kiraSound.attachSound("kira");
endSound = new Sound(this);
endSound.attachSound("end");
setSound = new Sound(this);
setSound.attachSound("set");
katiSound = new Sound(this);
katiSound.attachSound("kati");
booSound = new Sound(this);
booSound.attachSound("boo");
okeSound = new Sound(this);
okeSound.attachSound("oke");
clickSound = new Sound(this);
clickSound.attachSound("click");
clickSound.setVolume(20);
}
Instance of Symbol 373 MovieClip "mainSys" in Frame 11
onClipEvent (load) {
function init() {
yubiCount = 0;
odWait = 0;
nowLv = 1;
selMode = true;
timerSw = false;
ansArray = new Array();
stageSw = false;
}
function gameStart() {
_parent.kyaku.deban();
_parent.scoreBord.missPoint = nowLv;
}
function kyakuReady() {
_parent.makeQues(nowLv);
}
function kyakuEnd() {
_parent.qInfo.viewLogo(nowLv);
}
function gameOver() {
_parent.gotoAndStop("gameOver");
init();
}
function nextStage() {
ansArray = new Array();
if (selMode) {
i = 0;
while (i < 10) {
_parent["b" + i].iro._visible = false;
_parent["b" + i].gara._visible = true;
_parent["b" + i].gotoAndStop(2);
_parent["b" + i].btn.gotoAndStop(1);
_parent.kyaku.kyaku0.gotoAndStop(2);
i++;
}
_parent.joukyou.gotoAndStop(3);
_parent.scoreBord.gameStart();
timerOn();
} else {
_parent.kyaku.hake();
nowLv = nowLv + 1;
i = 0;
while (i < 10) {
_parent["b" + i].init();
i++;
}
_parent.kyaku.hake();
}
selMode = !selMode;
}
function reSellect() {
_parent.scoreBord.gameStart();
timerOn();
ansArray = new Array();
if (selMode) {
i = 0;
while (i < 10) {
_parent["b" + i].gotoAndStop(2);
_parent["b" + i].btn.gotoAndStop(1);
i++;
}
i = 0;
while (i < 5) {
_parent.kyaku["kyaku" + i].yubi.iro.init();
i++;
}
} else {
i = 0;
while (i < 10) {
_parent["b" + i].gotoAndStop(2);
_parent["b" + i].btn.gotoAndStop(1);
i++;
}
i = 0;
while (i < 5) {
_parent.kyaku["kyaku" + i].yubi.gara.init();
i++;
}
}
_parent.kyaku.kyaku0.gotoAndStop(2);
}
function hantei(sellectAns, iroNum, garaNum) {
ansArray[yubiCount] = sellectAns;
if (selMode) {
_parent.kyaku["kyaku" + yubiCount].gotoAndStop(1);
_parent.kyaku["kyaku" + yubiCount].yubi.iro.gotoAndStop(iroNum);
if (yubiCount != 4) {
_parent.kyaku["kyaku" + (yubiCount + 1)].gotoAndStop(2);
}
} else {
_parent.kyaku["kyaku" + yubiCount].gotoAndStop(1);
_parent.kyaku["kyaku" + yubiCount].yubi.gara.gotoAndStop(garaNum);
if (yubiCount != 4) {
_parent.kyaku["kyaku" + (yubiCount + 1)].gotoAndStop(2);
}
}
yubiCount = yubiCount + 1;
if (yubiCount == 5) {
_parent.joukyou.gotoAndStop(1);
_parent.scoreBord.gameStop();
stageSw = false;
_parent.monk.init();
yubiCount = 0;
if (_parent.ansCheck(ansArray, selMode)) {
_parent.marubatsu.hit();
_parent.koukaSys.okeSound.start();
_parent.koukaSys.okeSound.setVolume(60);
i = 0;
while (i < 10) {
_parent["b" + i].gotoAndStop(3);
i++;
}
} else {
_parent.marubatsu.miss();
_parent.koukaSys.booSound.start();
_parent.koukaSys.booSound.setVolume(60);
}
}
}
function yubiReady() {
odWait = odWait + 1;
if (odWait == 5) {
_parent.scoreBord.gameStart();
timerOn();
odWait = 0;
_parent.joukyou.gotoAndStop(2);
i = 0;
while (i < 10) {
_parent["b" + i].gotoAndStop(2);
i++;
}
_parent.kyaku.kyaku0.gotoAndStop(2);
}
}
function timerOn() {
stageSw = true;
startTime = getTimer();
}
init();
}
onClipEvent (enterFrame) {
if (stageSw) {
nowTime = Math.floor((getTimer() - startTime) / 1000);
if (nowTime == 15) {
_parent.monk.booing();
startTime = getTimer();
}
}
}
Instance of Symbol 375 MovieClip "sButton" in Frame 11
onClipEvent (mouseUp) {
_parent.koukaSys.clickSound.start();
_parent.koukaSys.clickSound.setVolume(60);
_parent.gameStart();
}
Instance of Symbol 382 MovieClip "scoreBord" in Frame 11
onClipEvent (load) {
function init() {
sw_raw = 0;
nowPoint = 0;
totalTime = 0;
missPoint = 1;
scFlg = false;
gentenSw = false;
gentenPoint = 0;
recodeTime = "00:00:00";
game = false;
}
function gameStart() {
startTime = getTimer() - (sw_raw * 1000);
game = true;
}
function gameStop() {
game = false;
}
init();
}
onClipEvent (enterFrame) {
if (game == true) {
sw_raw = Math.round(getTimer() - startTime) / 1000;
sec_ct = Math.floor(sw_raw);
msecs = Math.floor((sw_raw - Math.floor(sw_raw)) * 100);
mins = Math.floor(sec_ct / 60);
secs = Math.floor(sec_ct - (60 * mins));
if (msecs < 10) {
sw_ms = "0" + msecs;
} else {
sw_ms = msecs;
}
if (secs < 10) {
sw_s = "0" + secs;
} else {
sw_s = secs;
}
if (mins < 10) {
sw_m = "0" + mins;
} else {
sw_m = mins;
}
recodeTime = (((sw_m + ":") + sw_s) + ":") + sw_ms;
rimTime = ((mins * 10000) + (secs * 100)) + msecs;
mPt = 9 - mins;
sPt = 59 - secs;
msPt = 99 - msecs;
if (rimTime >= 100000) {
nowPoint = 0;
} else {
nowPoint = ((mPt * 10000) + (sPt * 100)) + msPt;
}
}
}
Frame 16
this.koukaSys.endSound.start();
this.koukaSys.endSound.setVolume(50);
Instance of Symbol 10 MovieClip "endSys" in Frame 16
onClipEvent (load) {
function touroku() {
loadVariables ("./EndGame.asp", this, "POST");
}
score = _parent.scoreBord.nowPoint;
gameid = "nailartv01";
}
Instance of Symbol 384 MovieClip "gameOver" in Frame 16
onClipEvent (load) {
_root.bgmSys.bgmSound.stop();
_root.timer.timerSound.stop();
}
Instance of Symbol 403 MovieClip "endSc" in Frame 16
/* no clip actions */
Symbol 18 Button
on (release) {
getURL ("http://www.macromedia.com/shockwave/download/download.cgi?Lang=Japanese&P5_Language=Japanese&?P1_Prod_Version=ShockwaveFlash", "_blank");
}
Symbol 21 MovieClip Frame 1
function setBar(gLoaded) {
_width = (oneStep * gLoaded);
}
oneStep = _width / 100;
Symbol 22 MovieClip Frame 1
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
if (loaded >= total) {
_root.play();
} else {
loadP = (loaded / total) * 100;
gLoaded = Math.round(loadP);
Bar.setbar(gLoaded);
_root.stop();
}
Instance of Symbol 21 MovieClip "Bar" in Symbol 22 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty("this", _xscale , gLoaded);
}
Symbol 22 MovieClip Frame 2
this.gotoAndPlay(1);
Instance of Symbol 79 MovieClip "iro" in Symbol 201 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 199 MovieClip "gara" in Symbol 201 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 226 MovieClip "iro" in Symbol 228 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 199 MovieClip "gara" in Symbol 228 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 241 MovieClip "iro" in Symbol 242 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 199 MovieClip "gara" in Symbol 242 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 254 MovieClip "iro" in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 199 MovieClip "gara" in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 269 MovieClip "iro" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 199 MovieClip "gara" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 279 MovieClip "kyaku0" in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 281 MovieClip "kyaku1" in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 283 MovieClip "kyaku2" in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 285 MovieClip "kyaku3" in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 287 MovieClip "kyaku4" in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 302 MovieClip "logo" in Symbol 303 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 361 Button
on (press) {
btn.gotoAndStop(2);
_parent.koukaSys.katiSound.start();
_parent.koukaSys.katiSound.setVolume(60);
}
on (release, releaseOutside) {
sellectMe();
}
on (releaseOutside) {
btn.gotoAndStop(1);
}
Instance of Symbol 307 MovieClip "btn" in Symbol 362 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 359 MovieClip "iro" in Symbol 362 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Instance of Symbol 199 MovieClip "gara" in Symbol 362 MovieClip Frame 1
onClipEvent (load) {
function init() {
this.gotoAndStop(1);
}
init();
}
Symbol 386 Button
on (release) {
koukaSys.clickSound.start();
koukaSys.clickSound.setVolume(60);
this.endSys.touroku();
this.nextFrame();
}
Symbol 388 Button
on (release) {
koukaSys.clickSound.start();
koukaSys.clickSound.setVolume(60);
this.reStart();
}
Instance of Symbol 402 MovieClip "sc" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
finScore = _parent._parent.scoreBord.nowPoint;
scoreNum10000 = Math.floor(finScore / 10000);
scoreNum1000 = Math.floor((finScore - (scoreNum10000 * 10000)) / 1000);
scoreNum100 = Math.floor((finScore - ((scoreNum10000 * 10000) + (scoreNum1000 * 1000))) / 100);
scoreNum10 = Math.floor((finScore - (((scoreNum10000 * 10000) + (scoreNum1000 * 1000)) + (scoreNum100 * 100))) / 10);
scoreNum1 = Math.floor(finScore - ((((scoreNum10000 * 10000) + (scoreNum1000 * 1000)) + (scoreNum100 * 100)) + (scoreNum10 * 10)));
if (scoreNum10000 == 0) {
this.kazu10000.gotoAndStop(11);
this._x = this._x - 40;
_parent._x = _parent._x + 20;
if (scoreNum1000 == 0) {
this.kazu1000.gotoAndStop(11);
this._x = this._x - 40;
_parent._x = _parent._x + 20;
if (scoreNum100 == 0) {
this.kazu100.gotoAndStop(11);
this._x = this._x - 40;
_parent._x = _parent._x + 20;
if (scoreNum10 == 0) {
this.kazu10.gotoAndStop(11);
this._x = this._x - 40;
_parent._x = _parent._x + 20;
} else {
this.kazu10.gotoAndStop(scoreNum10 + 1);
}
} else {
this.kazu100.gotoAndStop(scoreNum100 + 1);
this.kazu10.gotoAndStop(scoreNum10 + 1);
}
} else {
this.kazu1000.gotoAndStop(scoreNum1000 + 1);
this.kazu100.gotoAndStop(scoreNum100 + 1);
this.kazu10.gotoAndStop(scoreNum10 + 1);
}
} else {
this.kazu10000.gotoAndStop(scoreNum10000 + 1);
this.kazu1000.gotoAndStop(scoreNum1000 + 1);
this.kazu100.gotoAndStop(scoreNum100 + 1);
this.kazu10.gotoAndStop(scoreNum10 + 1);
}
this.kazu1.gotoAndStop(scoreNum1 + 1);
}