Combined Code
frame 1 {
_focusrect = false;
Stage.showMenu = false;
percent = 0;
_root.bar._xscale = percent;
}
movieClip 3 {
}
frame 3 {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
percent = Math.floor((loaded / total) * 100);
_root.bar._xscale = percent;
if (loaded == total) {
gotoAndPlay(_currentframe + 1);
} else {
gotoAndPlay(_currentframe - 1);
}
}
frame 4 {
_global.se01 = new Sound();
se01.attachSound('se01');
_global.v01 = new Sound();
v01.attachSound('v01');
_global.v02 = new Sound();
v02.attachSound('v02');
}
movieClip 10 {
frame 1 {
stop();
}
}
frame 5 {
stop();
btc = 0;
btn_st.onRelease = function () {
se01.start();
nextFrame();
};
}
movieClip 21 {
frame 1 {
stop();
}
}
movieClip 23 {
}
frame 6 {
stop();
if (btc < 999) {
++btc;
}
pgcp = 0;
ggcp = 0;
rjan = Math.random() * 100;
if (rjan < 33) {
ggcp = 1;
} else {
if (rjan < 66) {
ggcp = 2;
} else {
ggcp = 3;
}
}
btn_g.onRelease = function () {
pgcp = 1;
se01.start();
nextFrame();
};
btn_c.onRelease = function () {
pgcp = 2;
se01.start();
nextFrame();
};
btn_p.onRelease = function () {
pgcp = 3;
se01.start();
nextFrame();
};
}
frame 7 {
btk = 0;
bt_msg = '';
if (pgcp == 2) {
pt_mc.gotoAndStop(2);
} else {
if (pgcp == 3) {
pt_mc.gotoAndStop(3);
}
}
if (ggcp == 2) {
gt_mc.gotoAndStop(2);
} else {
if (ggcp == 3) {
gt_mc.gotoAndStop(3);
}
}
if (pgcp == ggcp) {
btk = 0;
bt_msg = 'çµæžœï¼šã‚ã„ã“ï¼';
} else {
if (pgcp == 1 && ggcp == 2 || pgcp == 2 && ggcp == 3 || pgcp == 3 && ggcp == 1) {
btk = 1;
bt_msg = 'çµæžœï¼šã‚ãªãŸã®å‹ã¡ï¼';
} else {
btk = 2;
bt_msg = 'ã‚ãªãŸã®è² ã‘・・・';
}
}
btn_nx.onRelease = function () {
if (btk == 0 || btk == 2 && _root.bg._currentframe == 1) {
se01.start();
gotoAndStop(_currentframe - 1);
} else {
se01.start();
nextFrame();
}
};
}
movieClip 56 {
frame 1 {
stop();
}
}
movieClip 60 {
frame 6 {
if (_root.btk == 1) {
_root.bg.nextFrame();
} else {
_root.bg.gotoAndStop(_root.bg._currentframe - 1);
}
}
frame 12 {
stop();
if (_root.bg._currentframe == 5) {
_root.gotoAndStop('g_cl');
} else {
_root.nextFrame();
}
}
}
frame 9 {
if (btk == 1) {
v01.start();
}
btn_nx.onRelease = function () {
stopAllSounds();
se01.start();
gotoAndStop('start');
};
}
frame 10 {
v02.start();
btn_bk.onRelease = function () {
stopAllSounds();
se01.start();
_root.bg.gotoAndStop(1);
gotoAndStop('title');
};
}