Frame 1
function shuffleArray(arr, cnt) {
var i;
var tmp1;
var tmp2;
var tmp3;
i = 0;
while (i < cnt) {
tmp1 = randInt(arr.length - 1);
tmp2 = randInt(arr.length - 1);
tmp3 = arr[tmp1];
arr[tmp1] = arr[tmp2];
arr[tmp2] = tmp3;
i++;
}
return(arr);
}
function randInt(num) {
var tmp = Math.round(Math.random() * num);
return(tmp);
}
function Hash() {
this.name = new Array();
this.value = new Array();
this.get = function (n) {
var i;
var flg;
i = 0;
while (i < this.name.length) {
if (this.name[i] == n) {
flg = true;
break;
}
i++;
}
if (flg) {
return(this.value[i]);
}
return(-99999);
};
this.set = function (n, v) {
var i;
var flg;
i = 0;
while (i < this.name.length) {
if (this.name[i] == n) {
flg = true;
break;
}
i++;
}
if (flg) {
this.value[i] = v;
}
};
this.define = function (n, v) {
this.name[this.name.length] = n;
this.value[this.value.length] = v;
};
this.print = function () {
var i;
i = 0;
while (i < this.name.length) {
i++;
}
};
}
function addZenSpaceB(str, len) {
var num = (len - str.length);
var i = 0;
while (i < num) {
str = str + "\u3000";
i++;
}
return(str);
}
function addHanSpaceF(str, len) {
var num = (len - str.length);
var i = 0;
while (i < num) {
str = " " + str;
i++;
}
return(str);
}
function addHanZeroF(str, len) {
var num = (len - str.length);
var i = 0;
while (i < num) {
str = "0" + str;
i++;
}
return(str);
}
function setBgm(name) {
if (snd != null) {
snd.stop();
}
snd = new Sound(this);
snd.attachSound(name + ".wav");
}
function bgmStart() {
snd.start(0, 99999);
}
function bgmStop() {
snd.stop();
}
function cngMode(name) {
_global.scene = name;
var tmp_name = ("mode_" + name);
this.attachMovie(tmp_name, tmp_name, 1);
this[tmp_name]._x = 0;
this[tmp_name]._y = 0;
}
function saveData() {
_global.uData.data.score = _global.hiscore;
_global.uData.data.playCnt = _global.playCnt;
}
function loadData() {
_global.uData = SharedObject.getLocal("uData");
if (_global.uData.data.score == undefined) {
_global.uData.data.score = 0;
_global.uData.data.playCnt = 0;
}
_global.hiscore = _global.uData.data.score;
_global.playCnt = _global.uData.data.playCnt;
}
this.stop();
Instance of Symbol 56 MovieClip in Frame 1
onClipEvent (load) {
new Color(bar).setRGB("0x006600");
new Color(str_loading).setRGB("0x006600");
new Color(char).setRGB("0x006600");
new Color(num).setRGB("0x006600");
var stPoint = {x:0, y:0};
var edPoint = {x:_root._width - 1, y:_root._height - 1};
globalToLocal(stPoint);
globalToLocal(edPoint);
this.beginFill("0xDCDBAB");
this.lineStyle();
this.moveTo(stPoint.x, stPoint.y);
this.lineTo(stPoint.x, edPoint.y);
this.lineTo(edPoint.x, edPoint.y);
this.lineTo(edPoint.x, stPoint.y);
this.lineTo(stPoint.x, stPoint.y);
this.endFill();
}
Frame 45
loadData();
if (_global.playCnt <= 0) {
_global.playCnt = 1;
_global.hiscore = 0;
saveData();
}
Frame 46
cngMode("title");
this.stop();
Symbol 14 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
_root.cngMode("entry");
}
Symbol 16 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_cancel");
snd.start(0, 1);
_root.cngMode("title");
}
Symbol 17 MovieClip [dialog] Frame 1
score = _global.score + "\u70B9";
if (_global.score > _global.hiscore) {
_global.hiscore = _global.score;
_root.saveData();
this.attachMovie("blink_hs", "blink_hs", 10000);
this.blink_hs._x = 42.8;
this.blink_hs._y = 20.9;
}
Symbol 17 MovieClip [dialog] Frame 2
Symbol 17 MovieClip [dialog] Frame 3
this.stop();
Symbol 19 MovieClip [nudle] Frame 1
this.onEnterFrame = function () {
if (this._x < -61) {
if ((_global.sts == _root.STS_NORMAL) && (!_global.bMiss)) {
_global.sts = _root.STS_OVERLOOK;
_parent.fail();
_parent.attachMovie("hyoka", "hyoka", 50);
_parent.hyoka._x = 190;
_parent.hyoka._y = 16;
_global.missCnt++;
_parent.batuLighting();
if (_global.missCnt >= 3) {
_parent.gameOver2();
} else {
_global.sts = _root.STS_NORMAL;
this.gotoAndPlay("wait");
_global.bMiss = true;
_parent.attachMovie("sippai", "sippai", 312);
_parent.sippai._x = 166.2;
_parent.sippai._y = 131.6;
}
}
_global.bExistNudle = false;
this.removeMovieClip();
}
this._x = this._x + this.vx;
this._y = this._y + this.vy;
};
Symbol 19 MovieClip [nudle] Frame 2
this.stop();
Symbol 23 MovieClip [sippai] Frame 42
if (_parent.nudle != null) {
this.gotoAndPlay(this._currentframe - 2);
} else {
_parent.restart();
this.removeMovieClip();
}
Symbol 26 MovieClip [shuryo] Frame 16
_parent.attachMovie("back_mask", "back_mask", 15000);
_parent.back_mask._alpha = 45;
_parent.attachMovie("dialog", "dialog", 15001);
_parent.dialog._x = 39.5;
_parent.dialog._y = 66.4;
this.stop();
Symbol 37 MovieClip Frame 2
this.stop();
Symbol 37 MovieClip Frame 4
this.stop();
Symbol 37 MovieClip Frame 6
this.stop();
Symbol 37 MovieClip Frame 8
this.stop();
Symbol 37 MovieClip Frame 10
this.stop();
Symbol 38 MovieClip [hyoka] Frame 1
if (_global.gPnt >= 7) {
tmp = new Sound(this);
tmp.attachSound("oh.wav");
tmp.start(0, 1);
re.gotoAndPlay("migoto");
} else if (_global.gPnt >= 5) {
re.gotoAndPlay("yu");
} else if (_global.gPnt >= 4) {
re.gotoAndPlay("ryo");
} else if (_global.gPnt >= 1) {
re.gotoAndPlay("ka");
} else {
re.gotoAndPlay("fuka");
}
Symbol 38 MovieClip [hyoka] Frame 22
this.removeMovieClip();
Symbol 41 MovieClip [ase] Frame 50
_parent.gameEnd();
this.removeMovieClip();
Symbol 55 MovieClip Frame 1
function setBar(parcent) {
_xscale = parcent;
}
Symbol 56 MovieClip Frame 1
loadedSize = _root.getBytesLoaded();
totalSize = _root.getBytesTotal();
if (loadedSize >= totalSize) {
parcent = 100;
gDownloaded = 100;
bar.setbar(gDownloaded);
_root.play();
} else {
parcent = (loadedSize / totalSize) * 100;
gDownloaded = Math.round(parcent);
bar.setbar(gDownloaded);
_root.stop();
}
var x1 = globalToLocal(0);
var x2 = globalToLocal(_root._width - 1);
var y1 = globalToLocal(0);
var y2 = globalToLocal(_root._height - 1);
this.beginFill(10066176);
this.lineStyle();
this.moveTo(x1, y1);
this.lineTo(x1, y2);
this.lineTo(x2, y2);
this.lineTo(x2, y1);
this.lineTo(x1, y1);
this.endFill();
Symbol 56 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 79 MovieClip Frame 25
gotoAndPlay (1);
Symbol 88 MovieClip Frame 25
gotoAndPlay (1);
Symbol 97 MovieClip Frame 25
gotoAndPlay (1);
Symbol 106 MovieClip Frame 25
gotoAndPlay (1);
Symbol 115 MovieClip Frame 25
gotoAndPlay (1);
Symbol 124 MovieClip Frame 25
gotoAndPlay (1);
Symbol 131 MovieClip Frame 1
function setRank(value) {
rank = value;
if (rank == -1) {
this.gotoAndPlay("rankout");
} else {
this.gotoAndPlay("rankin");
_visible = true;
}
}
function appear() {
_visible = true;
}
function disappear() {
_visible = false;
}
function clearText() {
this.gotoAndPlay("nothing");
}
this.stop();
Symbol 131 MovieClip Frame 2
this.stop();
Symbol 131 MovieClip Frame 3
this.stop();
Symbol 134 MovieClip Frame 1
function setRank(value) {
rank = value;
if (rank == -1) {
this.gotoAndPlay("rankout");
} else {
this.gotoAndPlay("rankin");
_visible = true;
}
}
function appear() {
_visible = true;
}
function disappear() {
_visible = false;
}
function clearText() {
this.gotoAndPlay("nothing");
}
this.stop();
Symbol 134 MovieClip Frame 2
this.stop();
Symbol 134 MovieClip Frame 3
this.stop();
Symbol 137 MovieClip Frame 1
function setRank(value) {
rank = value;
if (rank == -1) {
this.gotoAndPlay("rankout");
} else {
this.gotoAndPlay("rankin");
_visible = true;
}
}
function appear() {
_visible = true;
}
function disappear() {
_visible = false;
}
function clearText() {
this.gotoAndPlay("nothing");
}
this.stop();
Symbol 137 MovieClip Frame 2
this.stop();
Symbol 137 MovieClip Frame 3
this.stop();
Symbol 148 Button
on (release) {
old_frame = _currentframe - 1;
text_daily.disappear();
text_weekly.disappear();
text_monthly.disappear();
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
ranking.registRanking(yourName, _global.score, yourMes);
}
Symbol 153 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
_root.cngMode("rank");
}
Symbol 154 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_cancel");
snd.start(0, 1);
_root.cngMode("title");
}
Symbol 156 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
_root.cngMode("rank");
}
Symbol 160 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
this.gotoAndPlay(old_frame);
str_error = "";
}
Symbol 162 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
this.gotoAndPlay(old_frame);
str_alert = "";
}
Symbol 163 MovieClip [mode_entry] Frame 1
function getRec() {
return(_global.score);
}
function viewError(str) {
str_error = str;
this.gotoAndPlay("erView");
}
function setOldFrame() {
old_frame = _currentframe;
}
function moveForm(tdaily, tweekly, tmonthly) {
vtdaily = tdaily;
vtweekly = tweekly;
vtmonthly = tmonthly;
this.gotoAndPlay("form");
}
Instance of Symbol 139 MovieClip "ranking" in Symbol 163 MovieClip [mode_entry] Frame 1
onClipEvent (load) {
function checkRanking(yourRec) {
_parent.setOldFrame();
borin = yourRec;
mode = 5;
daily = -999;
this.loadVariables("http://www.funyamora.com/cgi-bin/fla/ryu/ent.cgi", "POST");
}
function registRanking(yourName, yourRec, message) {
_parent.setOldFrame();
_parent.gotoAndPlay("wait_regist");
name = yourName;
borin = yourRec;
mes = message;
mode = 1;
daily = -999;
this.loadVariables("http://www.funyamora.com/cgi-bin/fla/ryu/ent.cgi", "POST");
}
function getMonthlyRank() {
return(monthly);
}
function getWeeklyRank() {
return(weekly);
}
function getDailyRank() {
return(daily);
}
System.useCodepage = true;
error = "";
checkRanking(_parent.getRec());
}
onClipEvent (data) {
if (error != "") {
_parent.viewError(error);
return(undefined);
}
if (mode == 1) {
if (daily == -999) {
_parent.viewError("\u30E9\u30F3\u30AD\u30F3\u30B0\u306E\u767B\u9332\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002");
} else if (daily == -1) {
_parent.viewError("\u30E9\u30F3\u30AD\u30F3\u30B0\u306E\u767B\u9332\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002");
} else {
_parent.gotoAndPlay("end");
_parent.text_daily.clearText();
_parent.text_weekly.clearText();
_parent.text_monthly.clearText();
}
} else if (mode == 5) {
if (daily == -999) {
_parent.viewError("\u30E9\u30F3\u30AD\u30F3\u30B0\u306E\u767B\u9332\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002");
} else if (daily == -1) {
_parent.gotoAndPlay("result");
} else {
_parent.moveForm(daily, weekly, monthly);
}
}
}
Symbol 163 MovieClip [mode_entry] Frame 2
this.stop();
Symbol 163 MovieClip [mode_entry] Frame 3
text_daily.setRank(vtdaily);
text_weekly.setRank(vtweekly);
text_monthly.setRank(vtmonthly);
text_daily.appear();
text_weekly.appear();
text_monthly.appear();
Symbol 163 MovieClip [mode_entry] Frame 4
text_daily.appear();
text_weekly.appear();
text_monthly.appear();
this.stop();
Symbol 163 MovieClip [mode_entry] Frame 6
this.stop();
Symbol 163 MovieClip [mode_entry] Frame 8
this.stop();
Symbol 163 MovieClip [mode_entry] Frame 10
this.stop();
Symbol 163 MovieClip [mode_entry] Frame 11
ranking.error = "";
Symbol 163 MovieClip [mode_entry] Frame 12
this.stop();
Instance of Symbol 169 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.num = _root.addHanZeroF(_global.score + "", 6);
}
Symbol 192 MovieClip Frame 1
this.stop();
Symbol 192 MovieClip Frame 44
this.stop();
Symbol 192 MovieClip Frame 48
_parent.nudle.removeMovieClip();
Symbol 192 MovieClip Frame 52
this.gotoAndPlay("wait");
Symbol 211 MovieClip Frame 1
if (!_global.bStart) {
this.stop();
}
Symbol 214 MovieClip Frame 1
if (!_global.bStart) {
this.stop();
}
Symbol 243 MovieClip Frame 9
_parent.wait();
Symbol 271 MovieClip Frame 23
_parent._parent.gameOver();
this.stop();
Symbol 272 MovieClip Frame 1
function judge() {
if (_global.judge) {
_parent.nudle.removeMovieClip();
_global.sts = _root.STS_EAT;
this.gotoAndPlay("eat");
} else {
_global.missCnt++;
_parent.batuLighting();
if (_global.missCnt >= 3) {
_global.sts = _root.STS_MISS;
this.gotoAndPlay("miss");
} else {
_global.sts = _root.STS_NORMAL;
this.gotoAndPlay("wait");
_global.bMiss = true;
_parent.attachMovie("sippai", "sippai", 312);
_parent.sippai._x = 166.2;
_parent.sippai._y = 131.6;
}
}
}
function wait() {
_global.sts = _root.STS_NORMAL;
_global.bExistNudle = false;
this.gotoAndPlay("wait");
}
Symbol 272 MovieClip Frame 3
this.stop();
Symbol 272 MovieClip Frame 5
this.stop();
Symbol 272 MovieClip Frame 9
judge();
Symbol 272 MovieClip Frame 13
judge();
Symbol 272 MovieClip Frame 17
judge();
Symbol 272 MovieClip Frame 19
this.stop();
Symbol 272 MovieClip Frame 21
this.stop();
Symbol 275 MovieClip Frame 2
this.stop();
Symbol 275 MovieClip Frame 3
this._alpha = 100;
Symbol 275 MovieClip Frame 4
this.stop();
Symbol 276 MovieClip [mode_game] Frame 1
function calcScore(n) {
var r = 0;
if (n >= 278) {
r = 7;
} else if (n >= 260) {
r = 5;
} else if (n >= 250) {
r = 5;
} else if (n >= 230) {
r = 4;
} else if (n >= 210) {
r = 4;
} else if (n >= 196) {
r = 4;
} else if (n >= 178) {
r = 3;
} else if (n >= 166) {
r = 3;
} else if (n >= 156) {
r = 2;
}
return(r);
}
function sucess() {
_global.judge = true;
this.nudle.vx = 0;
this.nudle.vy = 0;
_global.cnt++;
_global.gPnt = calcScore(this.nudle._x);
tmp_snd = new Sound(this);
tmp_snd.attachSound("pi65.wav");
tmp_snd.start(0, 1);
rankUp();
}
function fail() {
_global.judge = false;
_global.gPnt = 0;
}
function geneNudle() {
this.attachMovie("nudle", "nudle", 10);
this.nudle._x = 510;
this.nudle._y = 82;
var ts = ((_global.speed - _root.randInt(_global.spMini)) + _root.randInt(_global.spMax));
this.nudle.vx = -571 / ts;
this.nudle.vy = 201 / ts;
nextTime = tmMini + _root.randInt(tmMax - tmMini);
if (_root.randInt(100) < _global.rateFaint) {
_global.bObkSwing = true;
} else {
_global.bObkSwing = false;
}
_global.bExistNudle = true;
}
function obakeJoin() {
obake.gotoAndPlay("join");
}
function obakeSwing() {
tsnd = new Sound(this);
tsnd.attachSound("pi61.wav");
tsnd.start(0, 1);
this.attachMovie("obake_hand", "obake_hand", 250);
this.obake_hand._x = 328.8;
this.obake_hand._y = 108.6;
obake.gotoAndPlay("swing");
_global.bExistNudle = false;
}
function rankUp() {
if (_global.cnt >= 26) {
if (_root.randInt(100) < 20) {
var ptn = _root.randInt(5);
if (ptn == 0) {
_global.speed = 30;
_global.tmMini = 50;
_global.tmMax = 130;
_global.spMini = 15;
_global.spMax = 20;
_global.rateFaint = 35;
} else if (ptn <= 3) {
_global.speed = 18;
_global.tmMini = 15;
_global.tmMax = 55;
_global.spMini = 0;
_global.spMax = 7;
_global.rateFaint = 45;
} else {
_global.speed = 24;
_global.tmMini = 50;
_global.tmMax = 150;
_global.spMini = 8;
_global.spMax = 8;
_global.rateFaint = 20;
}
}
} else if (_global.cnt == 25) {
_global.speed = 18;
_global.tmMini = 30;
_global.tmMax = 60;
_global.spMini = 0;
_global.spMax = 7;
_global.rateFaint = 70;
} else if (_global.cnt == 1) {
_global.speed = 50;
_global.tmMini = 50;
_global.tmMax = 70;
} else if (_global.cnt == 2) {
_global.speed = 40;
_global.tmMini = 40;
_global.tmMax = 60;
} else if (_global.cnt == 3) {
_global.speed = 35;
} else if (_global.cnt == 4) {
_global.speed = 30;
_global.tmMini = 50;
_global.tmMax = 100;
} else if (_global.cnt == 5) {
_global.spMax = 10;
} else if (_global.cnt == 6) {
_global.tmMini = 50;
_global.tmMax = 120;
} else if (_global.cnt == 8) {
_global.spMini = 4;
_global.spMax = 4;
_global.tmMini = 40;
_global.tmMax = 60;
} else if (_global.cnt == 9) {
_global.rateFaint = 40;
} else if (_global.cnt == 10) {
_global.speed = 28;
_global.tmMini = 40;
_global.tmMax = 105;
_global.rateFaint = 25;
} else if (_global.cnt == 12) {
_global.speed = 26;
_global.tmMini = 40;
_global.tmMax = 105;
} else if (_global.cnt == 15) {
_global.speed = 24;
_global.tmMini = 40;
_global.tmMax = 120;
_global.rateFaint = 20;
} else if (_global.cnt == 18) {
_global.speed = 22;
} else if (_global.cnt == 20) {
_global.speed = 20;
_global.rateFaint = 25;
} else if (_global.cnt == 22) {
_global.spMini = 2;
_global.spMax = 10;
_global.rateFaint = 35;
} else if (_global.cnt == 23) {
_global.spMax = 20;
_global.tmMini = 45;
_global.tmMax = 120;
}
if (_global.cnt == 8) {
obakeJoin();
_global.rateFaint = 45;
}
}
function gameStart() {
funya.gotoAndPlay("wait");
_root.bgmStart();
_global.bStart = true;
_global.bExistNudle = false;
}
function gameOver() {
_global.bGaming = false;
this.attachMovie("ase", "ase", 312);
this.ase._x = 286.9;
this.ase._y = 207.6;
}
function gameOver2() {
_global.bGaming = false;
this.attachMovie("ase", "ase", 312);
this.ase._x = 202;
this.ase._y = 104;
}
function restart() {
_global.bMiss = false;
}
function gameEnd() {
_root.bgmStop();
this.attachMovie("shuryo", "shuryo", 312);
this.shuryo._x = 122.2;
this.shuryo._y = 135.1;
}
function batuLighting() {
this["batu" + _global.missCnt].gotoAndPlay("light");
}
this.onMouseDown = function () {
if (_global.bGaming && (!_global.bMiss)) {
if (_global.sts == _root.STS_NORMAL) {
var tx = this.nudle._x;
if (this.nudle == null) {
tx = 400;
}
var max_x = 298;
if (tx >= max_x) {
_global.sts = _root.STS_SWING_RIGHT;
funya.gotoAndPlay("right");
fail();
tmp_snd = new Sound(this);
tmp_snd.attachSound("pi61.wav");
tmp_snd.start(0, 1);
} else if ((tx < max_x) && (tx >= 250)) {
sucess();
if (tx >= 278) {
this.nudle._x = 278;
this.nudle._y = 165;
}
if (tx < 263) {
this.nudle._x = 265;
this.nudle._y = 170;
}
_global.sts = _root.STS_SWING_RIGHT;
funya.gotoAndPlay("right");
} else if ((tx < 250) && (tx >= 196)) {
sucess();
if (tx >= 236) {
this.nudle._x = 236;
this.nudle._y = 180;
}
if (tx < 217) {
this.nudle._x = 217;
this.nudle._y = 187;
}
_global.sts = _root.STS_SWING_CENTER;
funya.gotoAndPlay("center");
} else if ((tx < 196) && (tx >= 156)) {
sucess();
if (tx >= 179) {
this.nudle._x = 179;
this.nudle._y = 199;
}
if (tx < 159) {
this.nudle._x = 159;
this.nudle._y = 206;
}
_global.sts = _root.STS_SWING_LEFT;
funya.gotoAndPlay("left");
} else {
_global.sts = _root.STS_SWING_LEFT;
funya.gotoAndPlay("left");
fail();
tmp_snd = new Sound(this);
tmp_snd.attachSound("pi61.wav");
tmp_snd.start(0, 1);
}
this.attachMovie("hyoka", "hyoka", 50);
this.hyoka._x = 190;
this.hyoka._y = 16;
_global.score = _global.score + _global.gPnt;
}
}
};
this.onEnterFrame = function () {
if ((_global.bGaming && (!_global.bExistNudle)) && (!_global.bMiss)) {
if ((nextTime--) <= 0) {
geneNudle();
}
}
if (_global.bObkSwing) {
var tx = this.nudle._x;
if (tx <= 380) {
obakeSwing();
_global.bObkSwing = false;
}
}
shoku = _global.cnt + "\u98DF";
};
_root.STS_NORMAL = 0;
_root.STS_SWING_LEFT = 1;
_root.STS_SWING_CENTER = 2;
_root.STS_SWING_RIGHT = 3;
_root.STS_EAT = 4;
_root.STS_MISS = 5;
_root.STS_OVERLOOK = 6;
_global.speed = 60;
_global.score = 0;
_global.nextTime = 10;
_global.cnt = 0;
_global.missCnt = 0;
_global.bMiss = false;
_global.spMini = 0;
_global.spMax = 0;
_global.tmMini = 80;
_global.tmMax = 80;
_global.rateFaint = 0;
_global.bObkSwing = false;
_global.judge = false;
_global.sts = _root.STS_NORMAL;
_global.bStart = false;
_global.bExistNudle = false;
_global.bGaming = false;
_root.setBgm("kawa");
this.attachMovie("yoidon", "yoidon", 1020);
this.yoidon._x = 64.8;
this.yoidon._y = 152.7;
Symbol 276 MovieClip [mode_game] Frame 2
this.stop();
Symbol 279 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_cancel");
snd.start(0, 1);
_root.cngMode("title");
}
Symbol 283 MovieClip [mode_howto] Frame 2
this.stop();
Symbol 290 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
_parent.goNextPage();
}
Symbol 291 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
_parent.goNextPage();
}
Symbol 293 MovieClip Frame 1
function checkStatus(page, num) {
if (num > ((page + 1) * 10)) {
this.gotoAndPlay("on");
} else {
this.gotoAndPlay("off");
}
}
function disable() {
this.gotoAndPlay("off");
}
this.stop();
Symbol 293 MovieClip Frame 3
this.stop();
Symbol 293 MovieClip Frame 4
this.stop();
Symbol 297 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
_parent.goPrevPage();
}
Symbol 299 MovieClip Frame 1
function checkStatus(page) {
if (page > 0) {
this.gotoAndPlay("on");
} else {
this.gotoAndPlay("off");
}
}
function disable() {
this.gotoAndPlay("off");
}
this.stop();
Symbol 299 MovieClip Frame 3
this.stop();
Symbol 299 MovieClip Frame 4
this.stop();
Symbol 339 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
this.gotoAndPlay("wait");
ranking.getRanking(2);
}
Symbol 340 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
this.gotoAndPlay("wait");
ranking.getRanking(3);
}
Symbol 341 Button
on (release) {
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
this.gotoAndPlay("wait");
ranking.getRanking(4);
}
Symbol 343 MovieClip [mode_rank] Frame 1
function viewError(str) {
str_error = str;
this.gotoAndPlay("erView");
}
function setOldFrame() {
old_frame = _currentframe;
}
function goNextPage() {
movePage(page + 1);
this.gotoAndPlay("view");
}
function goPrevPage() {
movePage(page - 1);
this.gotoAndPlay("view");
}
function movePage(n) {
page = n;
var st = (page * 10);
var kindName = ["\u4ECA\u65E5\u306E\u30E9\u30F3\u30AD\u30F3\u30B0", "\u4ECA\u9031\u306E\u30E9\u30F3\u30AD\u30F3\u30B0", "\u4ECA\u6708\u306E\u30E9\u30F3\u30AD\u30F3\u30B0"];
str_rankind = kindName[kind];
str_ranking = new Array();
str_msg = new Array();
i = 0;
while (i < 10) {
if (((st + i) + 1) > scores.length) {
return;
}
if (((st + i) + 1) >= 10) {
tmp_rank = ((st + i) + 1) + "\u4F4D ";
} else {
tmp_rank = (" " + ((st + i) + 1)) + "\u4F4D ";
}
if (scores[st + i] < 10) {
tmp_score = (" " + scores[st + i]) + "\u70B9 ";
} else {
tmp_score = scores[st + i] + "\u70B9 ";
}
str_ranking[i] = (tmp_rank + tmp_score) + names[st + i];
str_msg[i] = msges[st + i];
i++;
}
}
function setScore(k, load_scores, load_names, load_mes) {
old_kind = kind;
kind = k;
names = load_names.split(",");
scores = load_scores.split(",");
msges = load_mes.split(",");
movePage(0);
this.gotoAndPlay("view");
}
Instance of Symbol 316 MovieClip "ranking" in Symbol 343 MovieClip [mode_rank] Frame 1
onClipEvent (load) {
function getRanking(m) {
_parent.btnNext.disable();
_parent.btnPrev.disable();
mode = m;
load_scores = -999;
this.loadVariables("http://www.funyamora.com/cgi-bin/fla/ryu/ent.cgi", "POST");
}
System.useCodepage = true;
error = "";
getRanking(2);
}
onClipEvent (data) {
if (error != "") {
_parent.viewError(error);
return(undefined);
}
if (load_scores == -999) {
_parent.viewError("\u30E9\u30F3\u30AD\u30F3\u30B0\u30C7\u30FC\u30BF\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002");
} else if (load_scores == -1) {
_parent.viewError("\u30E9\u30F3\u30AD\u30F3\u30B0\u30C7\u30FC\u30BF\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002");
} else if (load_scores == "") {
_parent.viewError("\u307E\u3060\u30B9\u30B3\u30A2\u304C\u767B\u9332\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002");
} else {
_parent.setScore(mode - 2, load_scores, load_names, load_mes);
}
}
Symbol 343 MovieClip [mode_rank] Frame 2
this.stop();
Symbol 343 MovieClip [mode_rank] Frame 3
i = 0;
while (i < 10) {
this["mytext" + i].text = str_ranking[i];
this["mymsg" + i].text = str_msg[i];
i++;
}
btnNext.checkStatus(page, scores.length);
btnPrev.checkStatus(page);
Symbol 343 MovieClip [mode_rank] Frame 4
this.stop();
Symbol 343 MovieClip [mode_rank] Frame 5
ranking.error = "";
Symbol 343 MovieClip [mode_rank] Frame 6
this.stop();
Symbol 359 Button
on (release) {
_root.bgmStop();
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
_root.cngMode("game");
}
Symbol 363 Button
on (release) {
_root.bgmStop();
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
_root.cngMode("rank");
}
Symbol 367 Button
on (release) {
_root.bgmStop();
snd = new Sound(this);
snd.attachSound("push_ok");
snd.start(0, 1);
_root.cngMode("howto");
}
Symbol 368 MovieClip [mode_title] Frame 1
_global.bStart = true;
_root.setBgm("kawa");
_root.bgmStart();
hs = _global.hiscore;
Symbol 368 MovieClip [mode_title] Frame 2
this.stop();
Symbol 371 MovieClip [obake_hand] Frame 4
this.removeMovieClip();
Instance of Symbol 375 MovieClip in Symbol 376 MovieClip [yoidon] Frame 25
onClipEvent (load) {
cnt = 25;
}
onClipEvent (enterFrame) {
this._x = (205.4 + _root.randInt(cnt)) - _root.randInt(cnt);
this._y = (27.35 + _root.randInt(cnt)) - _root.randInt(cnt);
cnt--;
}
Symbol 376 MovieClip [yoidon] Frame 26
_parent.gameStart();
Symbol 376 MovieClip [yoidon] Frame 98
_global.bGaming = true;
this.removeMovieClip();