Frame 1
stop();
Frame 5
function start_sound(sndfile) {
sounds[sndfile].start();
}
function loop_sound(sndfile) {
sounds[sndfile].start(0, 999);
}
function stop_sound(sndfile) {
sounds[sndfile].stop();
}
function stop_all_sound() {
soundObject.stop();
}
stop();
soundObject = new Sound();
var sounds = new Object();
var soundsFile = ["wav_move.wav", "wav_pisi.wav", "wav_put.wav", "wav_score.wav", ""];
var i = 0;
while (i < soundsFile.length) {
var sndClip = this.createEmptyMovieClip("sndClip" + i, 100 + i);
sounds[soundsFile[i].substring(0, soundsFile[i].length - 4)] = new Sound(sndClip);
sounds[soundsFile[i].substring(0, soundsFile[i].length - 4)].attachSound(soundsFile[i]);
i++;
}
Symbol 17 MovieClip [mcBiraOrg] Frame 1
stop();
mc.gotoAndPlay(1 + Math.floor(Math.random() * 8));
cnt = Math.floor(Math.random() * 100);
onEnterFrame = function () {
cnt++;
if (cnt >= 100) {
cnt = 0;
}
_x = (_x + (ax + (_parent.st[cnt] * ax)));
_y = (_y + ay);
if (_y > 510) {
_x = (Math.random() * 1000);
_y = -10;
}
};
Symbol 75 MovieClip [mcFudaOrg] Frame 1
function mekuri(p) {
this.cacheAsBitmap = false;
stat = 0;
wid = 125;
a = 50;
ox = _x;
oy = _y;
gotoAndStop (49);
onEnterFrame = function () {
switch (stat) {
case 0 :
wid = wid - a;
if (wid <= 0) {
wid = 0;
}
a = a - 8;
_xscale = wid;
_x = ((ox + 35) - ((35 * wid) / 125));
if (wid <= 0) {
gotoAndStop(1 + pat);
stat = 1;
}
break;
case 1 :
wid = wid + a;
a = a + 8;
_xscale = wid;
_x = ((ox + 35) - ((35 * wid) / 125));
if (wid < 125) {
break;
}
_xscale = 125;
_x = ox;
_y = oy;
delete onEnterFrame;
this.cacheAsBitmap = true;
_parent.done = 1;
}
};
}
function start_move(px, py) {
dx = px;
dy = py;
onEnterFrame = function () {
_x = (_x + ((dx - _x) / 2));
_y = (_y + ((dy - _y) / 2));
if ((Math.abs(dx - _x) < 1) && (Math.abs(dy - _y) < 1)) {
_x = dx;
_y = dy;
delete onEnterFrame;
_parent.done = 1;
}
};
}
function start_move2(px, py) {
ox = _x;
oy = _y;
dx = px;
dy = py;
cnt = 0;
cmax = 3;
onEnterFrame = function () {
_x = (ox + (((dx - ox) * cnt) / cmax));
_y = (oy + (((dy - oy) * cnt) / cmax));
cnt++;
if (cnt > cmax) {
delete onEnterFrame;
_parent.done = 1;
}
};
}
stop();
flg = false;
Symbol 87 MovieClip Frame 1
stop();
per = 0;
per_txt = "0%";
onEnterFrame = function () {
var _local2 = 100 * (_root.getBytesLoaded() / _root.getBytesTotal());
if (_local2 < per) {
return(undefined);
}
per++;
per_txt = per + "%";
if (per >= 100) {
delete onEnterFrame;
play();
}
};
Symbol 87 MovieClip Frame 2
stop();
_alpha = 100;
onEnterFrame = function () {
_alpha = (_alpha - 2);
if (_alpha <= 0) {
delete onEnterFrame;
play();
}
};
Symbol 87 MovieClip Frame 23
stop();
_parent.play();
Symbol 89 Button
on (release) {
gotoAndStop ("title");
}
Symbol 90 Button
on (release) {
gotoAndStop ("play");
}
Symbol 91 Button
on (release) {
gotoAndStop ("ending");
}
Symbol 92 Button
on (release) {
gotoAndStop ("history");
}
Symbol 99 MovieClip Frame 1
n = Number(this._name.slice(6));
mc.gotoAndStop(1 + _parent.pat[n]);
Symbol 100 MovieClip Frame 1
pat = [47, 43, 31, 11, 3];
Symbol 100 MovieClip Frame 19
stop();
Symbol 103 MovieClip Frame 20
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 7
stop();
Symbol 118 MovieClip Frame 42
stop();
mcUra._visible = false;
if (_parent.open_mode) {
mcUra._visible = true;
}
btn.onRelease = function () {
_parent.gotoAndStop("play");
};
btnLink.onRelease = function () {
getURL ("http://www.gamedesign.jp/");
};
Symbol 127 MovieClip Frame 1
stop();
fuda._xscale = (fuda._yscale = 125);
fuda.gotoAndStop(49);
Symbol 134 MovieClip Frame 1
play();
Symbol 134 MovieClip Frame 2
stop();
Symbol 134 MovieClip Frame 5
gotoAndStop (2);
Symbol 134 MovieClip Frame 13
gotoAndStop (2);
Symbol 134 MovieClip Frame 20
gotoAndStop (2);
Symbol 134 MovieClip Frame 24
gotoAndStop (2);
Symbol 136 MovieClip Frame 2
stop();
Symbol 138 MovieClip Frame 2
stop();
Symbol 141 MovieClip Frame 1
stop();
onPress = function () {
_parent.fuda_click(Number(this._name.slice(7)));
};
onRelease = function () {
_parent.fuda_release(Number(this._name.slice(7)));
};
onDragOut = function () {
_parent.fuda_out(Number(this._name.slice(7)));
};
Symbol 141 MovieClip Frame 2
stop();
onPress = function () {
};
onRelease = function () {
_parent.ba_click(Number(this._name.slice(7)));
};
onDragOut = function () {
};
Symbol 141 MovieClip Frame 3
stop();
onPress = function () {
};
onRelease = function () {
_parent.ba_click(Number(this._name.slice(7)));
};
onDragOut = function () {
};
Symbol 141 MovieClip Frame 4
stop();
onPress = function () {
};
onRelease = function () {
_parent.ba_click2(Number(this._name.slice(7)));
};
onDragOut = function () {
};
Symbol 170 MovieClip Frame 1
fuda = new Array();
fmax = 0;
i = 0;
while (i < 24) {
mcname = "mc" + i;
this.attachMovie("mcFudaOrg", mcname, i);
mc = eval (mcname);
mc._xscale = (mc._yscale = 125);
mc._visible = false;
i++;
}
yakulist = new Array();
i = 0;
while (i < 8) {
yakulist[i] = new Object();
yakulist[i].yaku = "";
yakulist[i].mon = 0;
i++;
}
yaku_max = 0;
Symbol 170 MovieClip Frame 2
stop();
Symbol 170 MovieClip Frame 4
play();
_parent._parent._parent.stop_all_sound();
Symbol 170 MovieClip Frame 5
_parent.mcBGM.gotoAndPlay(((_parent.winner == 0) ? "h0" : "h1"));
Symbol 170 MovieClip Frame 8
sa = 380 / (fmax - 1);
if (sa > 70) {
sa = 70;
}
i = 0;
while (i < fmax) {
mc = eval ("mc" + i);
mc._visible = true;
mc._x = 135 + (i * sa);
mc._y = 210;
mc.gotoAndStop(1 + fuda[i]);
i++;
}
Symbol 170 MovieClip Frame 10
stop();
btn.onRelease = function () {
play();
var i = 0;
while (i < fmax) {
var mc = eval ("mc" + i);
mc._visible = false;
i++;
}
};
Symbol 170 MovieClip Frame 18
stop();
_parent.start_yaku_disp();
Symbol 170 MovieClip Frame 20
play();
_parent._parent._parent.stop_all_sound();
Symbol 170 MovieClip Frame 24
i = 0;
while (i < 8) {
mc = eval ("yaku" + i);
if (i < yaku_max) {
mc._visible = true;
mc.tfYaku.text = yakulist[i].yaku;
mc.tfMon.text = yakulist[i].mon + " pts";
} else {
mc._visible = false;
}
i++;
}
tfSum.text = sum + " pts";
Symbol 170 MovieClip Frame 26
stop();
if (_parent.winner >= 0) {
_parent.mcBGM.gotoAndPlay(((_parent.winner == 0) ? "e0" : "e1"));
}
btn.onRelease = function () {
nextFrame();
_parent.start_add_mon();
};
Symbol 170 MovieClip Frame 27
stop();
Symbol 170 MovieClip Frame 28
stop();
btn.onRelease = function () {
play();
};
Symbol 170 MovieClip Frame 33
_parent.after_sum();
Symbol 170 MovieClip Frame 38
stop();
btn.onRelease = function () {
play();
};
Symbol 170 MovieClip Frame 39
stop();
_parent.after_play();
Symbol 170 MovieClip Frame 41
play();
Symbol 170 MovieClip Frame 45
stop();
koi = 0;
btnYes.onRelease = function () {
koi = 1;
play();
};
btnNo.onRelease = function () {
play();
};
Symbol 170 MovieClip Frame 51
stop();
if (koi) {
_parent.next_player();
} else {
_parent.sum_disp();
}
Symbol 170 MovieClip Frame 54
play();
Symbol 170 MovieClip Frame 59
stop();
btn.onRelease = function () {
play();
};
Symbol 170 MovieClip Frame 64
stop();
_parent.next_player();
Symbol 170 MovieClip Frame 67
play();
Symbol 170 MovieClip Frame 111
stop();
btn.onRelease = function () {
_parent._parent.gotoAndStop("history");
};
Symbol 170 MovieClip Frame 119
stop();
mcBase._alpha = 0;
onEnterFrame = function () {
mcBase._alpha = mcBase._alpha + 2;
if (mcBase._alpha >= 100) {
delete onEnterFrame;
play();
}
};
Symbol 170 MovieClip Frame 139
stop();
_parent._parent.gotoAndStop("ending");
Symbol 175 MovieClip Frame 1
stop();
_yscale = 125;
_xscale = 125;
_visible = false;
Symbol 175 MovieClip Frame 2
play();
_visible = true;
Symbol 176 MovieClip Frame 1
function get_yamafuda() {
ret = yama[yama_pos];
yama_pos++;
return(ret);
}
mon = 10;
oya = 0;
open_mode = _parent.open_mode;
tukifuda = 0;
ftype = [0, 0, 1, 3, 0, 0, 1, 2, 0, 0, 1, 3, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 2, 3, 0, 0, 1, 2, 0, 0, 1, 2, 0, 1, 2, 3, 0, 0, 0, 3];
fval = [3, 3, 6, 9, 2, 2, 6, 3, 3, 3, 6, 9, 1, 1, 2, 2, 1, 1, 2, 2, 2, 2, 6, 5, 2, 2, 3, 5, 2, 2, 3, 8, 2, 2, 6, 5, 2, 2, 6, 5, 1, 2, 2, 4, 2, 2, 2, 8];
awase_fn = new Array();
awase_pat = new Array();
awase_c = 0;
awase_list = new Array();
awase_max = 0;
dest_fn = new Array();
yama = new Array();
i = 0;
while (i < 48) {
yama[i] = i;
i++;
}
yama_pos = 0;
player = new Array();
i = 0;
while (i < 2) {
player[i] = new Object();
player[i].type_cnt = [0, 0, 0, 0];
player[i].type_pat = new Array();
j = 0;
while (j < 4) {
player[i].type_pat[j] = new Array();
k = 0;
while (k < 24) {
player[i].type_pat[j][k] = 0;
k++;
}
j++;
}
player[i].type_pos = [0, 0, 0, 0];
player[i].ino_c = 0;
player[i].aka_c = 0;
player[i].ao_c = 0;
player[i].kik_c = 0;
player[i].ame_c = 0;
player[i].getlist = new Array();
player[i].getlist_cnt = 0;
player[i].getflg = new Array();
player[i].new_yaku = new Array();
player[i].old_yaku = new Array();
i++;
}
YK_KASU = 0;
YK_TAN = 1;
YK_TANE = 2;
YK_INO = 3;
YK_AKA = 4;
YK_AO = 5;
YK_SAN = 6;
YK_AME = 7;
YK_YON = 8;
YK_GO = 9;
YK_TUKI = 10;
YK_OYA = 11;
YK_MAX = 12;
yaku_name = ["Kasu (Plains)", "Tanzaku (Ribbons)", "Tane (Animals)", "Ino-Shika-Cho (Boar-Deer-Butterfly)", "Akatan (Red Poetry Ribbons)", "Aotan (Blue Ribbons)", "Sanko (3Brights)", "Ame-Shiko (Rain man)", "Shiko (4Brights)", "Goko (5Brights)", "Tsuki-fuda (Monthly Cards)", "Oya-Ken (Dealer's Privilege)"];
tuki_name = ["\u677E", "\u6885", "\u685C", "\u85E4", "\u83D6\u84B2", "\u7261\u4E39", "\u732A", "\u574A\u4E3B", "\u83CA", "\u7D05\u8449", "\u96E8", "\u6850"];
btReset._visible = false;
Symbol 176 MovieClip Frame 2
fuda_w = 70;
fuda_h = 112.5;
FPOS_X = 4;
FPOS_Y0 = (500 - fuda_h) - 4;
FPOS_Y1 = 4;
FN_TE0 = 0;
FN_GET0 = 8;
FN_TE1 = 48;
FN_GET1 = 56;
FN_BA = 96;
FN_BA2 = 112;
FN_YAMA = 128;
fmax = 138;
bmax = 16;
gmax = 40;
fpos = new Array();
i = 0;
while (i < fmax) {
fpos[i] = new Object();
i++;
}
i = 0;
while (i < 8) {
n = FN_TE0 + i;
fpos[n].px = FPOS_X + (i * fuda_w);
fpos[n].py = FPOS_Y0;
i++;
}
i = 0;
while (i < 8) {
n = FN_TE1 + i;
fpos[n].px = FPOS_X + (i * fuda_w);
fpos[n].py = FPOS_Y1;
i++;
}
i = 0;
while (i < 40) {
n = FN_GET0 + i;
fpos[n].px = ((FPOS_X + (8 * fuda_w)) + 10) + (i * 4);
fpos[n].py = FPOS_Y0;
n = FN_GET1 + i;
fpos[n].px = ((FPOS_X + (8 * fuda_w)) + 10) + (i * 4);
fpos[n].py = FPOS_Y1;
i++;
}
i = 0;
while (i < 16) {
n = FN_BA + i;
fpos[n].px = 100 + (Math.floor(i / 2) * 78);
fpos[n].py = ((FPOS_Y1 + fuda_h) + 12) + (Math.floor(i % 2) * 124);
n = FN_BA2 + i;
fpos[n].px = (100 + (Math.floor(i / 2) * 78)) + 4;
fpos[n].py = (((FPOS_Y1 + fuda_h) + 12) + (Math.floor(i % 2) * 124)) + 10;
i++;
}
i = 0;
while (i < 10) {
n = FN_YAMA + i;
fpos[n].px = 10 - (i / 2);
fpos[n].py = 180 - i;
i++;
}
i = 0;
while (i < fmax) {
mcname = "mc" + i;
mcFudaLayer.attachMovie("mcFudaOrg", mcname, i);
mc = eval ("mcFudaLayer.mc" + i);
mc._x = fpos[i].px;
mc._y = fpos[i].py;
mc._xscale = (mc._yscale = 125);
mc.gotoAndStop(49);
mc._visible = false;
i++;
}
i = 0;
while (i < 4) {
mcname = "mc" + i;
mcMoveLayer.attachMovie("mcFudaOrg", mcname, i);
mc = eval ("mcMoveLayer.mc" + i);
mc._xscale = (mc._yscale = 125);
mc._visible = false;
i++;
}
i = 0;
while (i < 8) {
mc = eval ("mcClick" + i);
mc._xscale = (mc._yscale = 125);
mc._visible = false;
i++;
}
c = fmax;
i = 0;
while (i < 2) {
j = 0;
while (j < 4) {
mcname = (("count_" + i) + "_") + j;
mcFudaLayer.attachMovie("mcCountOrg", mcname, c);
mc = eval ((("mcFudaLayer.count_" + i) + "_") + j);
mc._visible = false;
c++;
j++;
}
i++;
}
Symbol 176 MovieClip Frame 6
function start_play() {
var i;
var j;
var k;
ko = ((oya == 0) ? 1 : 0);
winner = -1;
i = 0;
while (i < fmax) {
mcFudaLayer["mc" + i]._visible = false;
mcFudaLayer["mc" + i].cacheAsBitmap = true;
i++;
}
i = 0;
while (i < 4) {
mcMoveLayer["mc" + i]._visible = false;
mcFudaLayer["mc" + i].cacheAsBitmap = false;
i++;
}
i = 0;
while (i < 2) {
j = 0;
while (j < 4) {
var mc = eval ((("mcFudaLayer.count_" + i) + "_") + j);
mc._visible = false;
j++;
}
i++;
}
do {
i = 0;
while (i < 48) {
var r = Math.floor(Math.random() * 48);
var tmp = yama[i];
yama[i] = yama[r];
yama[r] = tmp;
i++;
}
var cnt = new Array();
i = 0;
while (i < 3) {
cnt[i] = new Array();
j = 0;
while (j < 12) {
cnt[i][j] = 0;
j++;
}
i++;
}
var c = 0;
var f = 0;
i = 0;
while (i < 6) {
var p = (i % 3);
j = 0;
while (j < 4) {
var s = Math.floor(yama[c] / 4);
cnt[p][s]++;
if (cnt[p][s] > 2) {
f = 1;
}
c++;
j++;
}
i++;
}
} while (f != 0);
yama_pos = 0;
i = 0;
while (i < 10) {
var n = (FN_YAMA + i);
mcFudaLayer["mc" + n]._visible = true;
i++;
}
i = 0;
while (i < 2) {
j = 0;
while (j < 4) {
player[i].type_cnt[j] = 0;
k = 0;
while (k < 24) {
player[i].type_pat[j][k] = 0;
k++;
}
j++;
}
player[i].tefuda_cnt = 8;
j = 0;
while (j < gmax) {
player[i].getlist[j] = 0;
j++;
}
player[i].getlist_cnt = 0;
j = 0;
while (j < 48) {
player[i].getflg[j] = 0;
j++;
}
player[i].ino_c = 0;
player[i].aka_c = 0;
player[i].ao_c = 0;
player[i].kik_c = 0;
player[i].ame_c = 0;
j = 0;
while (j < YK_MAX) {
player[i].new_yaku[j] = 0;
player[i].old_yaku[j] = 0;
j++;
}
i++;
}
mcTuki.fuda.pat = tukifuda * 4;
mcTuki.fuda.mekuri();
deal_cnt = 0;
stat = 0;
ban = oya;
ton = 0;
timer_func = deal;
}
function deal() {
var i;
var mc;
var mct;
var f;
switch (deal_cnt) {
case 0 :
ban = oya;
break;
case 1 :
ban = ko;
break;
case 2 :
ban = 2;
}
var fn = FN_TE0;
if (ban == 1) {
fn = FN_TE1;
}
if (ban == 2) {
fn = FN_BA;
}
fn = fn + (ton * 4);
switch (stat) {
case 0 :
i = 0;
while (i < 4) {
mc = eval ("mcMoveLayer.mc" + i);
mc._visible = true;
mc.gotoAndStop(49);
mc._x = mcFudaLayer["mc" + (FN_YAMA + 9)]._x;
mc._y = mcFudaLayer["mc" + (FN_YAMA + 9)]._y;
mc.start_move2(fpos[fn + i].px, fpos[fn + i].py);
i++;
}
_parent._parent.start_sound("wav_move");
stat++;
mcMoveLayer.done = 0;
return;
case 1 :
if (mcMoveLayer.done > 0) {
f = 0;
if ((ban == 1) && (open_mode == 0)) {
f = 1;
}
i = 0;
while (i < 4) {
mc = eval ("mcMoveLayer.mc" + i);
mc._visible = false;
mct = eval ("mcFudaLayer.mc" + (fn + i));
mct._visible = true;
mct.pat = get_yamafuda();
mct.gotoAndStop(mc._currentframe);
if (f == 0) {
mct.mekuri();
}
i++;
}
stat++;
mcFudaLayer.done = f;
}
return;
case 2 :
if (mcFudaLayer.done > 0) {
stat = 0;
deal_cnt++;
if (deal_cnt > 2) {
deal_cnt = 0;
ton++;
if (ton >= 2) {
timer_func = null;
ban = oya;
start_player();
}
}
}
return;
}
}
Symbol 176 MovieClip Frame 11
function start_player() {
mcFudaLayer["mc" + (FN_YAMA + 9)].pat = get_yamafuda();
if (open_mode && (ban == 0)) {
mcFudaLayer.done = 0;
mcFudaLayer["mc" + (FN_YAMA + 9)].mekuri();
} else {
mcFudaLayer.done = 1;
}
timer_func = start_wait;
}
function start_wait() {
if (mcFudaLayer.done == 0) {
return(undefined);
}
timer_func = null;
if (ban == 0) {
start_man();
} else {
start_com();
}
}
function start_man() {
var _local2;
_local2 = 0;
while (_local2 < 8) {
var _local3 = FN_TE0 + _local2;
this["mcClick" + _local2]._x = fpos[_local3].px;
this["mcClick" + _local2]._y = (mcFudaLayer["mc" + _local3]._y = fpos[_local3].py);
this["mcClick" + _local2]._visible = mcFudaLayer["mc" + _local3]._visible;
this["mcClick" + _local2].gotoAndStop(1);
_local2++;
}
btReset._visible = true;
}
function fuda_click(n) {
var _local1 = FN_TE0 + n;
mcFudaLayer["mc" + _local1]._y = fpos[_local1].py - 12;
}
function fuda_out(n) {
var _local1 = FN_TE0 + n;
mcFudaLayer["mc" + _local1]._y = fpos[_local1].py;
}
function fuda_release(n) {
var _local2 = 0;
while (_local2 < 8) {
this["mcClick" + (FN_TE0 + _local2)]._visible = false;
_local2++;
}
btReset._visible = false;
var _local3 = FN_TE0 + n;
var _local5 = get_awase(_local3);
var _local4 = 0;
if (awase_c >= 2) {
if (ftype[awase_pat[0]] != ftype[awase_pat[1]]) {
_local4 = 1;
}
}
if (_local4 == 0) {
start_sute(_local3, _local5);
} else {
the_fn = _local3;
awase_select();
}
}
function get_awase(fn1) {
var i;
var p1 = mcFudaLayer["mc" + fn1].pat;
var s1 = Math.floor(p1 / 4);
var t1 = ftype[p1];
awase_c = 0;
var vpos = -1;
var maxvalue = -1;
var fn2 = 0;
i = 0;
while (i < bmax) {
var n = (FN_BA + i);
var mc = eval ("mcFudaLayer.mc" + n);
if (mc._visible) {
var p2 = mc.pat;
if (Math.floor(p2 / 4) == s1) {
if (!mcFudaLayer["mc" + (FN_BA2 + i)]._visible) {
awase_fn[awase_c] = n;
awase_pat[awase_c] = p2;
awase_c++;
if (maxvalue < fval[p2]) {
maxvalue = fval[p2];
fn2 = n + bmax;
}
}
}
} else if (vpos < 0) {
vpos = n;
}
i++;
}
if (awase_c == 0) {
return(vpos);
}
return(fn2);
}
function awase_select() {
var _local2;
_local2 = 0;
while (_local2 < 2) {
var _local3 = awase_fn[_local2];
this["mcClick" + _local2].fn = _local3;
this["mcClick" + _local2]._x = fpos[_local3].px;
this["mcClick" + _local2]._y = fpos[_local3].py;
this["mcClick" + _local2]._visible = true;
this["mcClick" + _local2].gotoAndStop(2);
_local2++;
}
this.mcClick2.fn = the_fn;
this.mcClick2._x = fpos[the_fn].px;
this.mcClick2._y = mcFudaLayer["mc" + the_fn]._y;
this.mcClick2._visible = true;
this.mcClick2.gotoAndStop(3);
}
function ba_click(n) {
var _local2 = 0;
while (_local2 < 8) {
this["mcClick" + (FN_TE0 + _local2)]._visible = false;
_local2++;
}
if (n < 2) {
start_sute(the_fn, this["mcClick" + n].fn + bmax);
} else {
start_man();
}
}
function start_sute(fn, fn2) {
player[ban].tefuda_cnt--;
var mc = eval ("mcFudaLayer.mc" + fn);
mc._visible = false;
var mcm = mcMoveLayer.mc0;
mcm._visible = true;
mcm.pat = mc.pat;
mcm.fn2 = fn2;
mcm.gotoAndStop(1 + mc.pat);
mcm._x = mc._x;
mcm._y = mc._y;
mcm.start_move2(fpos[fn2].px, fpos[fn2].py);
_parent._parent.start_sound("wav_move");
mcMoveLayer.done = 0;
timer_func = sute_proc;
}
function sute_proc() {
if (mcMoveLayer.done) {
var mcm = mcMoveLayer.mc0;
mcm._visible = false;
var mc = eval ("mcFudaLayer.mc" + mcm.fn2);
mc._visible = true;
mc.pat = mcm.pat;
mc.gotoAndStop(1 + mcm.pat);
_parent._parent.start_sound("wav_pisi");
mcPesi._x = mc._x;
mcPesi._y = mc._y;
mcPesi.gotoAndPlay(2);
start_yama_mekuri();
}
}
function start_yama_mekuri() {
if (mcFudaLayer["mc" + (FN_YAMA + 9)]._currentframe == 49) {
mcFudaLayer["mc" + (FN_YAMA + 9)].mekuri();
mcFudaLayer.done = 0;
} else {
mcFudaLayer.done = 1;
}
ot = getTimer();
timer_func = yama_mekuri_proc;
}
function yama_mekuri_proc() {
if (mcFudaLayer.done == 0) {
return(undefined);
}
if (getTimer() < (ot + 330)) {
return(undefined);
}
var _local1 = FN_YAMA + 9;
var _local3 = get_awase(_local1);
var _local2 = 0;
if ((ban == 0) && (awase_c >= 2)) {
if (ftype[awase_pat[0]] != ftype[awase_pat[1]]) {
_local2 = 1;
}
}
if (_local2 == 0) {
start_yama_sute(_local1, _local3);
} else {
the_fn = _local1;
awase_select2();
}
}
function awase_select2() {
var _local2;
_local2 = 0;
while (_local2 < 2) {
var _local3 = awase_fn[_local2];
this["mcClick" + _local2].fn = _local3;
this["mcClick" + _local2]._x = fpos[_local3].px;
this["mcClick" + _local2]._y = fpos[_local3].py;
this["mcClick" + _local2]._visible = true;
this["mcClick" + _local2].gotoAndStop(4);
_local2++;
}
}
function ba_click2(n) {
var _local2 = 0;
while (_local2 < 8) {
this["mcClick" + (FN_TE0 + _local2)]._visible = false;
_local2++;
}
start_yama_sute(the_fn, this["mcClick" + n].fn + bmax);
}
function start_yama_sute(fn, fn2) {
var mc = eval ("mcFudaLayer.mc" + fn);
mc.gotoAndStop(49);
mcm = mcMoveLayer.mc0;
mcm._visible = true;
mcm.pat = mc.pat;
mcm.fn2 = fn2;
mcm.gotoAndStop(1 + mc.pat);
mcm._x = mc._x;
mcm._y = mc._y;
mcm.start_move2(fpos[fn2].px, fpos[fn2].py);
_parent._parent.start_sound("wav_move");
mcMoveLayer.done = 0;
timer_func = yama_sute_proc;
}
function yama_sute_proc() {
if (mcMoveLayer.done) {
var mcm = mcMoveLayer.mc0;
mcm._visible = false;
var mc = eval ("mcFudaLayer.mc" + mcm.fn2);
mc._visible = true;
mc.pat = mcm.pat;
mc.gotoAndStop(1 + mcm.pat);
_parent._parent.start_sound("wav_pisi");
mcPesi._x = mc._x;
mcPesi._y = mc._y;
mcPesi.gotoAndPlay(2);
ot = getTimer();
timer_func = awase_wait2;
}
}
function awase_wait2() {
if (getTimer() < (ot + 300)) {
return(undefined);
}
timer_func = null;
start_getting();
}
Symbol 176 MovieClip Frame 16
function start_getting() {
var i;
var ofn = ((ban == 0) ? (FN_TE0) : (FN_TE1));
i = 0;
while (i < 8) {
var n = (ofn + i);
mcFudaLayer["mc" + n]._y = fpos[n].py;
i++;
}
i = 1;
while (i < 8) {
var n1 = (ofn + i);
var n2 = (n1 - 1);
if (mcFudaLayer["mc" + n1]._visible) {
if (!mcFudaLayer["mc" + n2]._visible) {
mcFudaLayer["mc" + n1]._visible = false;
mcFudaLayer["mc" + n2]._visible = true;
var pat = mcFudaLayer["mc" + n1].pat;
mcFudaLayer["mc" + n2].pat = pat;
mcFudaLayer["mc" + n2].gotoAndStop(mcFudaLayer["mc" + n1]._currentframe);
}
}
i++;
}
var c = 0;
i = 0;
while (i < bmax) {
var fn = (FN_BA2 + i);
if (mcFudaLayer["mc" + fn]._visible) {
awase_list[c] = fn;
c++;
awase_list[c] = fn - bmax;
c++;
}
i++;
}
awase_max = c;
i = 0;
while (i < awase_max) {
var fn = awase_list[i];
var pat = mcFudaLayer["mc" + fn].pat;
var t = ftype[pat];
var a = player[ban].type_cnt[t];
player[ban].type_pat[t][a] = pat;
player[ban].type_cnt[t]++;
i++;
}
var n = player[ban].tefuda_cnt;
var x1 = (mcFudaLayer["mc" + n]._x + 20);
var x2 = 796;
var types = 0;
var cards = 0;
i = 0;
while (i < 4) {
if (player[ban].type_cnt[i] > 0) {
types++;
}
cards = cards + player[ban].type_cnt[i];
i++;
}
var aida = 5;
var sa = 20;
if (cards > types) {
sa = (((x2 - x1) - (types * fuda_w)) - ((types - 1) * aida)) / (cards - types);
}
if (sa > 28) {
sa = 28;
}
var px = (((x2 - (types * fuda_w)) - (aida * (types - 1))) - (sa * (cards - types)));
c = 0;
i = 0;
while (i < 4) {
player[ban].type_pos[i] = px;
j = 0;
while (j < player[ban].type_cnt[i]) {
var pat = player[ban].type_pat[i][j];
var fn = ((ban == 0) ? (FN_GET0) : (FN_GET1));
mcFudaLayer["mc" + (fn + c)]._visible = true;
mcFudaLayer["mc" + (fn + c)]._x = px;
mcFudaLayer["mc" + (fn + c)].pat = pat;
mcFudaLayer["mc" + (fn + c)].gotoAndStop(1 + pat);
dest_fn[pat] = fn + c;
px = px + sa;
c++;
j++;
}
if (player[ban].type_cnt[i] > 0) {
px = px - sa;
px = px + (fuda_w + aida);
}
i++;
}
i = 0;
while (i < awase_max) {
var fn = awase_list[i];
var pat = mcFudaLayer["mc" + fn].pat;
var fn2 = dest_fn[pat];
mcFudaLayer["mc" + dest_fn[pat]]._visible = false;
i++;
}
i = 0;
while (i < 4) {
var mc = eval ((("mcFudaLayer.count_" + ban) + "_") + i);
mc._visible = false;
i++;
}
if (awase_max == 0) {
get_count();
after_getting();
} else {
stat = 0;
get_cnt = 0;
timer_func = getting;
}
}
function getting() {
var i;
var fn;
var mc;
var mcm;
var fn2;
var mc2;
switch (stat) {
case 0 :
fn = awase_list[get_cnt];
mc = eval ("mcFudaLayer.mc" + fn);
mc._visible = false;
fn2 = dest_fn[mc.pat];
mc2 = eval ("mcFudaLayer.mc" + fn2);
mcm = mcMoveLayer.mc0;
mcm.pat = mc.pat;
mcm.gotoAndStop(mc._currentframe);
mcm._visible = true;
mcm._x = mc._x;
mcm._y = mc._y;
_parent._parent.start_sound("wav_move");
mcMoveLayer.done = 0;
mcm.start_move2(mc2._x, mc2._y);
stat++;
return;
case 1 :
if (mcMoveLayer.done > 0) {
mcm = mcMoveLayer.mc0;
mcm._visible = false;
fn2 = dest_fn[mcm.pat];
mc2 = eval ("mcFudaLayer.mc" + fn2);
mc2._visible = true;
get_cnt++;
if (get_cnt < awase_max) {
stat = 0;
} else {
get_count();
after_getting();
}
}
return;
}
}
function get_count() {
var i = 0;
while (i < 4) {
var mc = eval ((("mcFudaLayer.count_" + ban) + "_") + i);
if (player[ban].type_cnt[i] > 0) {
mc._visible = true;
mc._x = player[ban].type_pos[i];
mc._y = ((ban == 0) ? (fpos[FN_TE0].py - 5) : ((fpos[FN_TE1].py + fuda_h) + 5));
mc.tf.text = player[ban].type_cnt[i];
} else {
mc._visible = false;
}
i++;
}
}
Symbol 176 MovieClip Frame 20
function after_getting() {
var _local2;
timer_func = null;
player[ban].ino_c = 0;
player[ban].aka_c = 0;
player[ban].ao_c = 0;
player[ban].kik_c = 0;
player[ban].ame_c = 0;
suit_cnt = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var _local5 = 0;
_local2 = 0;
while (_local2 < gmax) {
var _local3 = ((ban == 0) ? (FN_GET0 + _local2) : (FN_GET1 + _local2));
if (mcFudaLayer["mc" + _local3]._visible) {
var _local1 = mcFudaLayer["mc" + _local3].pat;
player[ban].getlist[_local5] = _local1;
player[ban].getflg[_local1] = 1;
_local5++;
if (((_local1 == 23) || (_local1 == 27)) || (_local1 == 39)) {
player[ban].ino_c++;
}
if (((_local1 == 2) || (_local1 == 6)) || (_local1 == 10)) {
player[ban].aka_c++;
}
if (((_local1 == 22) || (_local1 == 34)) || (_local1 == 38)) {
player[ban].ao_c++;
}
if (_local1 == 35) {
player[ban].kik_c = 1;
}
if (_local1 == 43) {
player[ban].ame_c = 1;
}
var _local4 = Math.floor(_local1 / 4);
suit_cnt[_local4]++;
}
_local2++;
}
player[ban].getlist_cnt = _local5;
_local2 = 0;
while (_local2 < YK_MAX) {
player[ban].new_yaku[_local2] = 0;
_local2++;
}
if ((player[ban].type_cnt[0] + player[ban].kik_c) >= 10) {
player[ban].new_yaku[YK_KASU] = (player[ban].type_cnt[0] + player[ban].kik_c) - 9;
}
if (player[ban].type_cnt[1] >= 5) {
player[ban].new_yaku[YK_TAN] = player[ban].type_cnt[1] - 4;
}
if (player[ban].type_cnt[2] >= 5) {
player[ban].new_yaku[YK_TANE] = player[ban].type_cnt[2] - 4;
}
if (player[ban].ino_c == 3) {
player[ban].new_yaku[YK_INO] = 5;
}
if (player[ban].aka_c == 3) {
player[ban].new_yaku[YK_AKA] = 6;
}
if (player[ban].ao_c == 3) {
player[ban].new_yaku[YK_AO] = 6;
}
if ((player[ban].type_cnt[3] == 3) && (player[ban].ame_c == 0)) {
player[ban].new_yaku[YK_SAN] = 6;
}
if (player[ban].type_cnt[3] == 4) {
if (player[ban].ame_c) {
player[ban].new_yaku[YK_AME] = 8;
} else {
player[ban].new_yaku[YK_YON] = 10;
}
}
if (player[ban].type_cnt[3] == 5) {
player[ban].new_yaku[YK_GO] = 15;
}
if (suit_cnt[tukifuda] == 4) {
player[ban].new_yaku[YK_TUKI] = 4;
}
var _local6 = 0;
_local2 = 0;
while (_local2 < YK_MAX) {
if (player[ban].old_yaku[_local2] < player[ban].new_yaku[_local2]) {
_local6 = 1;
}
_local2++;
}
if (_local6 == 0) {
next_player();
return(undefined);
}
winner = ban;
ot = getTimer();
timer_func = yaku_wait;
}
function next_player() {
timer_func = null;
ban = ((ban == 0) ? 1 : 0);
if (player[ban].tefuda_cnt <= 0) {
ot = getTimer();
timer_func = last_wait;
} else {
start_player();
}
}
function last_wait() {
if (getTimer() < (ot + 1000)) {
return(undefined);
}
timer_func = null;
if (winner < 0) {
winner = oya;
player[oya].old_yaku[YK_OYA] = 6;
}
sum_disp();
}
function yaku_wait() {
if (getTimer() < (ot + 200)) {
return(undefined);
}
timer_func = null;
start_yaku_disp();
}
function start_yaku_disp() {
var _local1;
var _local3 = -1;
_local1 = 0;
while (_local1 < YK_MAX) {
if (player[ban].old_yaku[_local1] < player[ban].new_yaku[_local1]) {
player[ban].old_yaku[_local1] = player[ban].new_yaku[_local1];
_local3 = _local1;
break;
}
_local1++;
}
if (_local3 < 0) {
if (player[ban].tefuda_cnt == 0) {
sum_disp();
} else if (ban == 0) {
koi_man();
} else {
koi_com();
}
return(undefined);
}
var _local2 = 0;
switch (_local3) {
case YK_KASU :
_local1 = 0;
while (_local1 < player[ban].type_cnt[0]) {
mcMes.fuda[_local2] = player[ban].type_pat[0][_local1];
_local2++;
_local1++;
}
if (player[ban].kik_c) {
mcMes.fuda[_local2] = 35;
_local2++;
}
break;
case YK_TAN :
_local1 = 0;
while (_local1 < player[ban].type_cnt[1]) {
mcMes.fuda[_local2] = player[ban].type_pat[1][_local1];
_local2++;
_local1++;
}
break;
case YK_TANE :
_local1 = 0;
while (_local1 < player[ban].type_cnt[2]) {
mcMes.fuda[_local2] = player[ban].type_pat[2][_local1];
_local2++;
_local1++;
}
break;
case YK_INO :
mcMes.fuda[0] = 27;
mcMes.fuda[1] = 39;
mcMes.fuda[2] = 23;
_local2 = 3;
break;
case YK_AKA :
mcMes.fuda[0] = 2;
mcMes.fuda[1] = 6;
mcMes.fuda[2] = 10;
_local2 = 3;
break;
case YK_AO :
mcMes.fuda[0] = 22;
mcMes.fuda[1] = 34;
mcMes.fuda[2] = 38;
_local2 = 3;
break;
case YK_TUKI :
_local1 = 0;
while (_local1 < 4) {
mcMes.fuda[_local1] = (tukifuda * 4) + _local1;
_local1++;
}
_local2 = 4;
break;
default :
_local1 = 0;
for(;;){
if (_local1 >= player[ban].type_cnt[3]) {
break;
}
mcMes.fuda[_local2] = player[ban].type_pat[3][_local1];
_local2++;
_local1++;
};
}
mcMes.fmax = _local2;
mcMes.yakuname = yaku_name[_local3];
mcMes.mon = player[ban].new_yaku[_local3] + " pts";
mcMes.gotoAndPlay("yaku");
}
function koi_man() {
mcMes.gotoAndPlay("man");
}
function sum_disp() {
var _local2 = winner;
var _local1;
if (player[_local2].old_yaku[YK_GO]) {
player[_local2].old_yaku[YK_YON] = 0;
player[_local2].old_yaku[YK_AME] = 0;
player[_local2].old_yaku[YK_SAN] = 0;
}
if (player[_local2].old_yaku[YK_YON]) {
player[_local2].old_yaku[YK_SAN] = 0;
}
if (player[_local2].old_yaku[YK_AME]) {
player[_local2].old_yaku[YK_SAN] = 0;
}
var _local3 = 0;
sum = 0;
_local1 = 0;
while (_local1 < YK_MAX) {
if (player[_local2].old_yaku[_local1]) {
mcMes.yakulist[_local3].yaku = yaku_name[_local1];
mcMes.yakulist[_local3].mon = player[_local2].old_yaku[_local1];
sum = sum + player[_local2].old_yaku[_local1];
_local3++;
}
_local1++;
}
mcMes.yaku_max = _local3;
mcMes.sum = sum;
mcMes.gotoAndPlay("sum");
}
function start_add_mon() {
_parent._parent.loop_sound("wav_score");
cnt = 0;
timer_func = add_mon;
}
function add_mon() {
cnt++;
if (cnt < 3) {
return(undefined);
}
cnt = 0;
sum--;
var _local2 = ((winner == 0) ? 1 : -1);
mon = mon + _local2;
if ((mon <= 0) || (mon >= 50)) {
sum = 0;
}
mcTuki.tfMon.text = mon + " pts";
if (sum <= 0) {
_parent._parent.stop_sound("wav_score");
timer_func = null;
mcMes.nextFrame();
}
}
function after_sum() {
if ((open_mode == 0) && (player[1].tefuda_cnt > 0)) {
var _local1 = 0;
while (_local1 < player[1].tefuda_cnt) {
var _local2 = FN_TE1 + _local1;
mcFudaLayer["mc" + _local2].mekuri();
_local1++;
}
}
}
function after_play() {
_parent.add_his(mon);
tukifuda++;
if (tukifuda >= 12) {
tukifuda = 0;
}
if (mon <= 0) {
mcMes.gotoAndPlay("over");
return(undefined);
}
if (mon >= 50) {
mcMes.gotoAndPlay("ending");
return(undefined);
}
oya = winner;
start_play();
}
Symbol 176 MovieClip Frame 25
function start_com() {
want = 0;
com_fn1 = FN_TE1 + get_com_sute();
com_fn2 = get_awase(com_fn1);
wc = 0;
if (want < 14) {
wc = 100;
}
if (want < 10) {
wc = 200;
}
if (want < 5) {
wc = 400;
}
if (want == 0) {
wc = 400 + (Math.random() * 500);
}
if (player[1].tefuda_cnt == 1) {
wc = 100;
}
ot = getTimer();
timer_func = com_wait;
}
function com_wait() {
if (getTimer() > (ot + wc)) {
timer_func = null;
start_sute(com_fn1, com_fn2);
}
}
function get_com_sute() {
var i;
var j;
var suit_c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
i = FN_GET0;
while (i < FN_BA2) {
var mc = eval ("mcFudaLayer.mc" + i);
if (!mc._visible) {
} else {
var s = Math.floor(mc.pat / 4);
suit_c[s]++;
}
i++;
}
var kas_c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
i = FN_BA;
while (i < FN_BA2) {
var mc = eval ("mcFudaLayer.mc" + i);
if (!mc._visible) {
} else if (ftype[mc.pat] == 0) {
var s = Math.floor(mc.pat / 4);
kas_c[s]++;
}
i++;
}
var sute_val = [0, 0, 0, 0, 0, 0, 0, 0];
i = 0;
while (i < player[ban].tefuda_cnt) {
var fn = (FN_TE1 + i);
var mc = eval ("mcFudaLayer.mc" + fn);
if (!mc._visible) {
} else {
var s = Math.floor(mc.pat / 4);
var v1 = fval[mc.pat];
j = 0;
while (j < bmax) {
var fn2 = (FN_BA + j);
var mc2 = eval ("mcFudaLayer.mc" + fn2);
if (!mc2._visible) {
} else if (Math.floor(mc2.pat / 4) != s) {
} else {
var v = (v1 + (fval[mc2.pat] * 2));
if (s == tukifuda) {
v = v + 2;
}
if (suit_c[s] == 4) {
v = 1;
}
if (kas_c[s] >= 2) {
v = 2;
}
if (v > sute_val[i]) {
sute_val[i] = v;
}
}
j++;
}
}
i++;
}
var n = -1;
var vmax = 0;
i = 0;
while (i < player[ban].tefuda_cnt) {
if (sute_val[i] > vmax) {
vmax = sute_val[i];
n = i;
}
i++;
}
if (n >= 0) {
want = vmax;
return(n);
}
i = 0;
while (i < player[ban].tefuda_cnt) {
var fn = (FN_TE1 + i);
var mc = eval ("mcFudaLayer.mc" + fn);
if (!mc._visible) {
} else {
var s = Math.floor(mc.pat / 4);
if (suit_c[s] == 4) {
n = i;
}
}
i++;
}
if (n >= 0) {
want = 1;
return(n);
}
var min = 999;
i = 0;
while (i < player[ban].tefuda_cnt) {
var fn = (FN_TE1 + i);
var mc = eval ("mcFudaLayer.mc" + fn);
if (!mc._visible) {
} else {
var v = fval[mc.pat];
if (v < min) {
min = v;
n = i;
}
}
i++;
}
if (n >= 0) {
return(n);
}
return(0);
}
function koi_com() {
var _local3;
var _local5;
get_kasu = [0, 0];
get_tan = [0, 0];
get_tane = [0, 0];
get_goko = [0, 0];
get_aka = [0, 0];
get_ao = [0, 0];
get_ino = [0, 0];
_local3 = 0;
while (_local3 < fmax) {
var _local1 = -1;
if ((_local3 >= FN_GET0) && (_local3 < (FN_GET0 + gmax))) {
_local1 = 0;
}
if ((_local3 >= FN_GET1) && (_local3 < (FN_GET1 + gmax))) {
_local1 = 1;
}
if ((_local3 >= FN_TE1) && (_local3 < (FN_TE1 + 8))) {
_local1 = 1;
}
if (_local1 < 0) {
} else if (!mcFudaLayer["mc" + _local3]._visible) {
} else {
var _local2 = mcFudaLayer["mc" + _local3].pat;
switch (ftype[_local2]) {
case 0 :
get_kasu[_local1]++;
break;
case 1 :
get_tan[_local1]++;
break;
case 2 :
get_tane[_local1]++;
break;
case 3 :
get_goko[_local1]++;
break;
}
if (((_local2 == 23) || (_local2 == 27)) || (_local2 == 39)) {
get_ino[_local1]++;
}
if (((_local2 == 2) || (_local2 == 6)) || (_local2 == 10)) {
get_aka[_local1]++;
}
if (((_local2 == 22) || (_local2 == 34)) || (_local2 == 38)) {
get_ao[_local1]++;
}
if (_local2 == 35) {
get_kasu[_local1]++;
}
if (_local2 == 43) {
get_goko[_local1]--;
}
}
_local3++;
}
var _local4 = 0;
if (get_kasu[0] >= 8) {
_local4 = 1;
}
if (get_tan[0] >= 4) {
_local4 = 2;
}
if (get_tane[0] >= 4) {
_local4 = 3;
}
if (get_aka[0] == 2) {
if (get_aka[1] == 0) {
_local4 = 4;
}
}
if (get_ao[0] == 2) {
if (get_ao[1] == 0) {
_local4 = 5;
}
}
if (get_ino[0] == 2) {
if (get_ino[1] == 0) {
_local4 = 6;
}
}
if (get_goko[0] == 2) {
if (get_goko[1] <= 0) {
_local4 = 7;
}
}
if (_local4 > 0) {
sum_disp();
} else {
mcMes.gotoAndPlay("com");
}
}
Symbol 176 MovieClip Frame 31
stop();
timer_func = null;
onEnterFrame = function () {
if (timer_func != null) {
timer_func();
}
};
btReset.onRelease = function () {
_parent.gotoAndStop("title");
};
start_play();
Symbol 180 MovieClip Frame 1
function appear_bira(m) {
var i = 0;
while (i < m) {
var mcname = ("mc" + bn);
this.attachMovie("mcBiraOrg", mcname, bn);
var mc = eval ("mc" + bn);
mc._x = Math.random() * 1500;
mc._y = -10 - (Math.random() * 500);
s = 50 + (Math.random() * 80);
mc._xscale = (mc._yscale = s);
mc.ax = (-3 * s) / 100;
mc.ay = (6 * s) / 100;
bn++;
i++;
}
}
st = new Array();
i = 0;
while (i < 100) {
st[i] = Math.sin((Math.PI * i) / 50);
i++;
}
bn = 0;
Symbol 180 MovieClip Frame 2
stop();
Symbol 186 MovieClip Frame 1
Symbol 186 MovieClip Frame 34
mcBiraLayer.appear_bira(3);
Symbol 186 MovieClip Frame 57
mcBiraLayer.appear_bira(3);
Symbol 186 MovieClip Frame 77
mcBiraLayer.appear_bira(3);
Symbol 186 MovieClip Frame 144
mcBiraLayer.appear_bira(3);
Symbol 186 MovieClip Frame 266
mcBiraLayer.appear_bira(3);
Symbol 186 MovieClip Frame 297
stop();
btn.onRelease = function () {
_parent.gotoAndStop("history");
};
Symbol 194 MovieClip Frame 1
stop();
ot = getTimer();
onEnterFrame = function () {
if (getTimer() > (ot + 1000)) {
delete onEnterFrame;
play();
}
};
Symbol 194 MovieClip Frame 13
stop();
btn.onRelease = function () {
_parent.gotoAndStop("title");
};
i = 0;
while (i < 6) {
this["line" + i].num = i * 10;
i++;
}
if (_parent.his_c == 0) {
_parent.his_c = 10;
i = 0;
while (i < _parent.his_c) {
_parent.his[i] = Math.floor(Math.random() * 50);
i++;
}
}
ox = line0._x;
oy = line0._y;
w = 500;
sx = w / _parent.his_c;
sy = 5;
c = 0;
this.createEmptyMovieClip("mcLineLayer", 0);
mcLineLayer.lineStyle(1, 16750848, 100);
mcname = "mc" + c;
this.attachMovie("mcPointOrg", mcname, c + 1);
mc = eval (mcname);
mc._x = ox + (c * sx);
mc._y = oy - (10 * sy);
c++;
mcLineLayer.moveTo(mc._x, mc._y);
i = 0;
while (i < _parent.his_c) {
mcname = "mc" + c;
this.attachMovie("mcPointOrg", mcname, c + 1);
mc = eval (mcname);
mc._x = ox + (c * sx);
mc._y = oy - (_parent.his[i] * sy);
mcLineLayer.lineTo(mc._x, mc._y);
c++;
i++;
}
Symbol 195 MovieClip Frame 1
function add_his(mon) {
his[his_c] = mon;
his_c++;
}
stop();
open_mode = 0;
his = new Array();
his_c = 0;
gotoAndStop ("title");
Symbol 195 MovieClip Frame 7
stop();
_parent.stop_all_sound();
Symbol 195 MovieClip Frame 13
stop();
_parent.stop_all_sound();
his_c = 0;
Symbol 195 MovieClip Frame 23
stop();
_parent.stop_all_sound();
open_mode = ((open_mode == 0) ? 1 : 0);
Symbol 195 MovieClip Frame 31
stop();