Frame 1
function f_dec(str) {
var len = keycode.length;
var i = 0;
var maxlen = Math.min(12, str.length);
i = 0;
while (i < len) {
if (str == keycode[i]) {
return(i);
}
i++;
}
return(99);
}
_root.createEmptyMovieClip("mbc_se00", 1);
_root.createEmptyMovieClip("mbc_se01", 2);
_root.createEmptyMovieClip("mbc_se02", 3);
_root.automode = false;
_root.bgmid = 1;
_root.se_00 = new Sound(this.mbc_se00);
_root.se_01.stop();
_root.se_01.setVolume(100);
_root.se_01 = new Sound(this.mbc_se01);
_root.se_01isEnd = true;
_root.se_01.onSoundComplete = function () {
_root.se_01isEnd = true;
};
_root.se_02.stop();
_root.se_02.setVolume(100);
_root.se_02 = new Sound(this.mbc_se02);
_root.eroflgscore = new Array(10);
_root.eroflgscore[0] = 0;
_root.eroflgscore[1] = 5000;
_root.eroflgscore[2] = 10000;
_root.eroflgscore[3] = 20000;
_root.eroflgscore[4] = 30000;
_root.eroflgscore[5] = 50000;
_root.eroflgscore[6] = 70000 /* 0x011170 */;
_root.eroflgscore[7] = 100000 /* 0x0186A0 */;
_root.eroflgscore[8] = 130000 /* 0x01FBD0 */;
_root.eroflgscore[9] = 200000 /* 0x030D40 */;
_root.eroflgscore[10] = 500000 /* 0x07A120 */;
_root.flgkey = new Array(10);
_root.flgkey[0] = 15;
_root.flgkey[1] = 53;
_root.flgkey[2] = 30;
_root.flgkey[3] = 54;
_root.flgkey[4] = 23;
_root.flgkey[5] = 12;
_root.flgkey[6] = 63;
_root.flgkey[7] = 24;
_root.flgkey[8] = 11;
_root.flgkey[9] = 24;
_root.flgkey[10] = 19;
var keycode = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "_", "!", "$", "&", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "+", "-", "*", "/", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"];
if (_root.notfirst == undefined) {
_root.nowscoretagptn = 0;
_root.eroflg = new Array(10);
var i = 0;
i = 0;
while (i < 11) {
_root.eroflg[i] = false;
i++;
}
var str = "";
var so = SharedObject.getLocal("irisuero", "/");
if (so.data.playchk != undefined) {
_root.playchk = so.data.playchk;
_root.highscores = so.data.highscores.slice();
str = so.data.str;
var code = 0;
var maxlen = Math.min(12, str.length);
i = 0;
while (i < maxlen) {
code = f_dec(str.substr(i, 1));
if (i < 11) {
if (code == _root.flgkey[i]) {
_root.eroflg[i] = true;
}
} else if ((code % 3) == 0) {
var tmpcode = (code / 3);
if (tmpcode <= 6) {
_root.nowscoretagptn = tmpcode;
}
}
i++;
}
}
}
_root.notfirst = true;
if (_root.highscores == undefined) {
_root.highscores = new Array(10);
var i = 0;
var k = 0;
i = 0;
while (i < 10) {
_root.highscores[i] = new Array(2);
k = 0;
while (k < 3) {
_root.highscores[i][k] = 0;
k++;
}
i++;
}
}
if (_root.playchk == undefined) {
_root.playchk = false;
}
this.stop();
Frame 2
prevFrame();
Frame 13
_root.bgmvol = 100;
_root.joujitu_s1 = 0;
_root.nowstage = 0;
_root.titlemode = 0;
_root.se_00.stop();
_root.se_00.setVolume(_root.bgmvol);
_root.se_00.attachSound("tyakusinzero");
_root.bgmid = 1;
stop();
Instance of Symbol 529 MovieClip in Frame 13
onClipEvent (load) {
defx = this._x;
dx = 0;
cnt = -1;
fr = 0;
lastdxhugou = 1;
nowon = false;
}
onClipEvent (enterFrame) {
if (_root.titlemode == 0) {
if (!nowon) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
dx = 15;
cnt = 1;
fr = 0;
this._x = defx;
nowon = true;
_root.se_02.attachSound("puu89");
_root.se_02.start(0, 1);
}
} else if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
nowon = false;
}
}
if (cnt > 0) {
this._x = this._x + (dx * lastdxhugou);
if (dx > 1) {
dx = dx - 1;
if (dx > 1) {
fr++;
if (cnt <= fr) {
lastdxhugou = lastdxhugou * -1;
cnt++;
fr = 0;
}
} else {
dx = 1;
if (this._x > defx) {
lastdxhugou = -1;
} else {
lastdxhugou = 1;
}
}
} else if (this._x == defx) {
cnt = 0;
return(undefined);
}
}
}
Instance of Symbol 534 MovieClip "btnrank" in Frame 13
onClipEvent (load) {
defx = this._x;
dx = 0;
cnt = -1;
fr = 0;
lastdxhugou = 1;
nowon = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.titlemode == 0) {
if (!nowon) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._xscale = 200;
this._yscale = 200;
this._x = defx;
dx = 15;
cnt = 1;
fr = 0;
nowon = true;
gotoAndStop (2);
_root.se_02.attachSound("puu89");
_root.se_02.start(0, 1);
}
} else if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
nowon = false;
gotoAndStop (1);
}
}
if (this._xscale > 100) {
this._xscale = this._xscale - 25;
this._yscale = this._yscale - 25;
}
if (cnt > 0) {
this._x = this._x + (dx * lastdxhugou);
if (dx > 1) {
dx = dx - 1;
if (dx > 1) {
fr++;
if (cnt <= fr) {
lastdxhugou = lastdxhugou * -1;
cnt++;
fr = 0;
}
} else {
dx = 1;
if (this._x > defx) {
lastdxhugou = -1;
} else {
lastdxhugou = 1;
}
}
} else if (this._x == defx) {
cnt = 0;
return(undefined);
}
}
}
onClipEvent (mouseDown) {
if (nowon) {
_root.se_02.attachSound("decide2");
_root.se_02.start(0, 1);
_root.mc_titlectrl.attachMovie("mc_rank", "mc_rank", 1);
_root.mc_titlectrl.f_btnvisible(false);
_root.mc_titlectrl.m_lastframeclick = true;
_root.titlemode = 2;
nowon = false;
gotoAndStop (1);
}
}
Instance of Symbol 539 MovieClip "btnalbum" in Frame 13
onClipEvent (load) {
defx = this._x;
dx = 0;
cnt = -1;
fr = 0;
lastdxhugou = 1;
nowon = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.titlemode == 0) {
if (!nowon) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._xscale = 200;
this._yscale = 200;
this._x = defx;
dx = 15;
cnt = 1;
fr = 0;
nowon = true;
gotoAndStop (2);
_root.se_02.attachSound("puu89");
_root.se_02.start(0, 1);
}
} else if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
nowon = false;
gotoAndStop (1);
}
}
if (this._xscale > 100) {
this._xscale = this._xscale - 25;
this._yscale = this._yscale - 25;
}
if (cnt > 0) {
this._x = this._x + (dx * lastdxhugou);
if (dx > 1) {
dx = dx - 1;
if (dx > 1) {
fr++;
if (cnt <= fr) {
lastdxhugou = lastdxhugou * -1;
cnt++;
fr = 0;
}
} else {
dx = 1;
if (this._x > defx) {
lastdxhugou = -1;
} else {
lastdxhugou = 1;
}
}
} else if (this._x == defx) {
cnt = 0;
return(undefined);
}
}
}
onClipEvent (mouseDown) {
if (!_root.eroflg[1]) {
return(undefined);
}
if (nowon) {
_root.se_02.attachSound("decide2");
_root.se_02.start(0, 1);
if (_root.eroflg[0]) {
_root.mc_titlectrl.attachMovie("mc_alb", "mc_alb", 1);
_root.mc_titlectrl.f_btnvisible(false);
_root.mc_titlectrl.m_lastframeclick = true;
_root.titlemode = 1;
nowon = false;
gotoAndStop (1);
} else {
_root.nowstage = 6;
if (_root.mcparam == undefined) {
_root.gotoAndStop("s4data");
} else {
_root.gotoAndStop("s6");
}
}
}
}
Instance of Symbol 544 MovieClip "btnstart" in Frame 13
onClipEvent (load) {
defx = this._x;
dx = 0;
cnt = -1;
fr = 0;
lastdxhugou = 1;
nowon = false;
stop();
}
onClipEvent (enterFrame) {
if (_root.titlemode == 0) {
if (!nowon) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._xscale = 200;
this._yscale = 200;
this._x = defx;
dx = 15;
cnt = 1;
fr = 0;
nowon = true;
gotoAndStop (2);
_root.se_02.attachSound("puu89");
_root.se_02.start(0, 1);
}
} else if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
nowon = false;
gotoAndStop (1);
}
}
if (this._xscale > 100) {
this._xscale = this._xscale - 25;
this._yscale = this._yscale - 25;
}
if (cnt > 0) {
this._x = this._x + (dx * lastdxhugou);
if (dx > 1) {
dx = dx - 1;
if (dx > 1) {
fr++;
if (cnt <= fr) {
lastdxhugou = lastdxhugou * -1;
cnt++;
fr = 0;
}
} else {
dx = 1;
if (this._x > defx) {
lastdxhugou = -1;
} else {
lastdxhugou = 1;
}
}
} else if (this._x == defx) {
cnt = 0;
return(undefined);
}
}
}
onClipEvent (mouseDown) {
if (nowon) {
_root.se_02.attachSound("decide2");
_root.se_02.start(0, 1);
_root.gotoAndStop("main");
}
}
Instance of Symbol 337 MovieClip "mc_titlectrl" in Frame 13
onClipEvent (load) {
function f_btnvisible(bool) {
_parent.btnstart._visible = bool;
_parent.btnalbum._visible = bool;
_parent.btnrank._visible = bool;
}
m_click = false;
m_lastframeclick = false;
}
onClipEvent (enterFrame) {
if (_root.titlemode == 0) {
if (m_click && (!m_lastframeclick)) {
if (_root.btnmanu.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.mc_titlectrl.attachMovie("mc_manu", "mc_manu", 1);
f_btnvisible(false);
_root.titlemode = 3;
}
}
} else if (_root.titlemode == 1) {
if (m_click && (!m_lastframeclick)) {
if (this.mc_alb.btn_modoru.hitTest(_root._xmouse, _root._ymouse, false)) {
this.mc_alb.removeMovieClip();
f_btnvisible(true);
_root.titlemode = 0;
}
}
} else if (_root.titlemode == 2) {
if (m_click && (!m_lastframeclick)) {
if (this.mc_rank.btn_modoru.hitTest(_root._xmouse, _root._ymouse, false)) {
this.mc_rank.removeMovieClip();
f_btnvisible(true);
_root.titlemode = 0;
}
}
} else if (_root.titlemode == 3) {
if (m_click && (!m_lastframeclick)) {
if (this.mc_manu.btn_modoru.hitTest(_root._xmouse, _root._ymouse, false)) {
this.mc_manu.removeMovieClip();
f_btnvisible(true);
_root.titlemode = 0;
}
}
}
m_lastframeclick = m_click;
}
onClipEvent (mouseDown) {
m_click = true;
}
onClipEvent (mouseUp) {
m_click = false;
}
Frame 14
prevFrame();
Frame 18
_root.bgmvol = 100;
_root.joujitu_s1 = 0;
_root.nowstage = 1;
_root.bar._xscale = joujitu_s1;
_root.se_01isEnd = true;
_root.automode = false;
_root.se_00.stop();
_root.bgmid = 1;
this.btnspd._visible = false;
this.btngotos3._visible = _root.playchk;
stop();
Instance of Symbol 565 MovieClip "mc" in Frame 18
onClipEvent (keyDown) {
if (_root.mode == 0) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
}
onClipEvent (mouseUp) {
_root.m_click = false;
}
onClipEvent (mouseDown) {
if (_root.mode == 0) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
_root.m_click = true;
}
Instance of Symbol 567 MovieClip "btnautomode" in Frame 18
on (release) {
if (_root.automode) {
_root.automode = false;
gotoAndStop (1);
} else {
_root.automode = true;
gotoAndStop (2);
}
}
Instance of Symbol 569 MovieClip "btngotos3" in Frame 18
on (release) {
_root.nowstage = 3;
_root.gotoAndStop("s3");
}
Frame 19
prevFrame();
Frame 23
stop();
Frame 24
prevFrame();
Frame 28
_root.txt_lv._visible = false;
_root.lbl_lv._visible = false;
_root.txt_score._visible = false;
stop();
Instance of Symbol 645 MovieClip "s3" in Frame 28
onClipEvent (load) {
function f_creatEm() {
var emname;
var rnd = Math.floor(Math.random() * 2);
switch (rnd) {
case 0 :
emname = "em1";
break;
case 1 :
emname = "em2";
}
var objEm = this.attachMovie(emname, "em" + m_emnum, 10000 + m_emnum);
m_em.push(objEm);
m_emlen++;
m_emnum++;
objEm.sts = 0;
objEm.hp = 1;
objEm.ed = false;
var color_obj = new Color(objEm);
var rndcolor = 0;
if (_root.nowlv < 20) {
rndcolor = Math.floor(Math.random() * 3);
} else {
rndcolor = Math.floor(Math.random() * 4);
}
objEm.colorptn = rndcolor;
switch (rndcolor) {
case 0 :
color_obj.setRGB(13369344);
break;
case 1 :
color_obj.setRGB(13421568);
break;
case 2 :
color_obj.setRGB(204);
break;
case 3 :
color_obj.setRGB(13369548);
}
var rndsize = (Math.floor(Math.random() * 4) * 50);
objEm._xscale = 100 + rndsize;
objEm._yscale = 100 + rndsize;
objEm.atari = objEm._height / 2;
objEm._rotation = Math.floor(Math.random() * 12) * 30;
objEm.rensaidx = -1;
objEm.dx = 0;
objEm.dy = Math.min((_root.nowlv / 20) + 2, 3);
if (m_emrush && (m_emrushptnfast)) {
objEm.dy = objEm.dy * 2;
}
objEm._x = PCMINX + Math.floor(Math.random() * EMPOPXRENG);
objEm._y = MINY - objEm.atari;
objEm.kusariwait = 0;
if ((m_emnum % 35) == 0) {
if (edgoal == 0) {
this.embgm._visible = true;
this.embgm._x = PCMINX + Math.floor(Math.random() * EMPOPXRENG);
this.embgm._y = MINY - (objEm._height / 2);
this.embgm.dy = Math.floor(_root.nowlv / 5) + 5;
this.embgm.atari = this.embgm._width / 2;
}
}
}
function f_creatEd() {
var emname;
var rnd = (ednum % 4);
switch (rnd) {
case 0 :
emname = "em_ed1";
break;
case 1 :
emname = "em_ed2";
break;
case 2 :
emname = "em_ed3";
break;
case 3 :
emname = "em_ed4";
}
var objEm = this.attachMovie(emname, "em" + m_emnum, 10000 + m_emnum);
m_em.push(objEm);
m_emlen++;
m_emnum++;
ednum++;
objEm.sts = 0;
objEm.hp = 1;
objEm.ed = true;
objEm.colorptn = 8;
objEm.atari = 38;
objEm.rensaidx = -1;
if (m_emrush && (m_emrushptnfast)) {
objEm.dy = objEm.dy * 2;
}
var tmpx = (PCMINX + Math.floor(Math.random() * EDPOP_XRENG));
if (tmpx > EDPOP_NG_X_MIN) {
tmpx = tmpx + EDPOP_NG_XRENG;
}
objEm._x = tmpx;
objEm._y = MINY - (objEm._height / 2);
objEm.dx = 0;
if (edgoal == 0) {
objEm.dy = 6;
} else {
objEm.dy = 10;
}
objEm.moveptn = 0;
}
function f_emclear(i) {
m_em[i].removeMovieClip();
m_em.splice(i, 1);
m_emlen--;
}
function f_savedata() {
var len = m_rensa.length;
var i = 0;
i = 0;
while (i < len) {
if (m_rensa[i] > _root.maxrensa) {
_root.maxrensa = m_rensa[i];
}
i++;
}
i = 0;
while (i < 10) {
if (_root.highscores[i][0] < _root.score) {
var tmparray = new Array(2);
tmparray[0] = _root.score;
tmparray[1] = _root.maxrensa;
tmparray[2] = _root.nowlv;
_root.highscores.splice(i, 0, tmparray);
_root.highscores.pop();
break;
}
i++;
}
var tmpscoretagptn = 0;
if (!_root.eroflg[0]) {
if (_root.score < _root.eroflgscore[1]) {
tmpscoretagptn = 0;
} else if (_root.score < _root.eroflgscore[5]) {
tmpscoretagptn = 1;
} else {
tmpscoretagptn = 2;
}
} else if (_root.score < _root.eroflgscore[8]) {
tmpscoretagptn = 3;
} else if (_root.score < _root.eroflgscore[9]) {
tmpscoretagptn = 5;
} else {
tmpscoretagptn = 6;
}
if (tmpscoretagptn > _root.nowscoretagptn) {
_root.nowscoretagptn = tmpscoretagptn;
}
var i = 0;
i = 1;
while (i < 7) {
if (_root.score >= _root.eroflgscore[i]) {
_root.eroflg[i] = true;
}
i++;
}
if (_root.eroflg[0]) {
i = 7;
while (i < 11) {
if (_root.score >= _root.eroflgscore[i]) {
_root.eroflg[i] = true;
}
i++;
}
}
var keycode = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "_", "!", "$", "&", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "+", "-", "*", "/", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"];
var str = "";
var num = 0;
i = 0;
while (i < 11) {
if (_root.eroflg[i]) {
num = _root.flgkey[i];
} else {
num = f_randomnotnum(_root.flgkey[i], 70);
}
str = str + keycode[num];
i++;
}
str = str + keycode[_root.nowscoretagptn * 3];
var so = SharedObject.getLocal("irisuero", "/");
so.data.highscores = _root.highscores.slice();
so.data.str = str;
so.data.playchk = _root.playchk;
so.flush();
}
function f_randomnotnum(tag, maxnum) {
var num = 0;
do {
num = Math.floor(Math.random() * maxnum);
} while (num == tag);
return(num);
}
function f_getscore(score, setx, sety) {
getscores[getscoreidx]._visible = true;
getscores[getscoreidx]._x = setx;
getscores[getscoreidx]._y = sety;
getscores[getscoreidx].text = score;
getscoreidx++;
if (getscoreidx >= GETSCORELEN) {
getscoreidx = 0;
}
_root.score = _root.score + score;
_root.txt_score.text = _root.score;
if (_root.score > edscore) {
if (m_emnum > edpopemnum) {
f_creatEd();
edpopemnum = m_emnum + EDPOPEMNUMONE;
edscore = _root.score + EDSCORE_ONE;
}
}
}
function f_emsetkusari(objEm) {
if (objEm.kusariwait > 0) {
return(undefined);
}
if (objEm.ed) {
if (objEm.sts == 0) {
return(undefined);
}
}
if (objEm.sts < 2) {
objEm.kusariwait = 3;
}
}
function f_emkusaru(objEm) {
if (objEm.sts > 1) {
return(undefined);
}
if (objEm.ed) {
_root.joujitu_s3 = Math.min(_root.joujitu_s3 + (JOUJITUCARE * 15), MAXJOUJITU);
_root.se_02.attachSound("puu89");
objEm.gotoAndStop("dead");
} else {
_root.se_02.attachSound("buble02");
_root.joujitu_s3 = _root.joujitu_s3 - ((850 - Math.floor(objEm._y)) * 2);
if (_root.joujitu_s3 < 0) {
if (!_root.gameclearflg) {
_root.se_00.stop();
_root.gameover = true;
_root.bar._xscale = 0;
f_savedata();
_root.gotoAndStop("gameover");
}
}
var color_obj = new Color(objEm);
switch (objEm.colorptn) {
case 0 :
color_obj.setRGB(6684672);
break;
case 1 :
color_obj.setRGB(6710784);
break;
case 2 :
color_obj.setRGB(102);
break;
case 3 :
color_obj.setRGB(6684774);
}
}
_root.se_02.start(0, 1);
objEm._rotation = 0;
objEm.sts = 3;
objEm.hp = 2;
}
function f_emhit(objEm) {
_root.se_02.attachSound("cursor3");
_root.se_02.start(0, 1);
if (!objEm.ed) {
var color_obj = new Color(objEm);
switch (objEm.colorptn) {
case 0 :
color_obj.setRGB(16711680);
break;
case 1 :
color_obj.setRGB(16776960);
break;
case 2 :
color_obj.setRGB(255);
break;
case 3 :
color_obj.setRGB(16711935);
}
}
objEm.sts = 1;
}
function f_emOk(objEm) {
_root.se_02.attachSound("puu89");
_root.se_02.start(0, 1);
if (!objEm.ed) {
var color_obj = new Color(objEm);
switch (objEm.colorptn) {
case 0 :
color_obj.setRGB(16737894);
break;
case 1 :
color_obj.setRGB(16777062);
break;
case 2 :
color_obj.setRGB(6711039);
break;
case 3 :
color_obj.setRGB(16738047);
}
}
objEm.sts = 2;
objEm.kusariwait = 0;
}
function f_emchscore_a(objEm) {
objEm.sts = 4;
objEm.kusariwait = 0;
if (objEm.rensaidx > -1) {
var tmpscore = ((_root.nowlv * 8) * (1 + (m_rensa[objEm.rensaidx] * 0.5)));
if (objEm.ed) {
tmpscore = Math.floor(tmpscore / 10);
} else {
_root.joujitu_s3 = Math.min((_root.joujitu_s3 + JOUJITUCARE) + (m_rensa[objEm.rensaidx] * 200), MAXJOUJITU);
}
m_rensa[objEm.rensaidx]++;
} else {
var tmpscore = (_root.nowlv * 8);
if (objEm.ed) {
tmpscore = Math.floor(tmpscore / 10);
} else {
_root.joujitu_s3 = Math.min(_root.joujitu_s3 + JOUJITUCARE, MAXJOUJITU);
}
}
f_getscore(tmpscore, objEm._x, objEm._y);
_root.se_02.attachSound("decide2");
_root.se_02.start(0, 1);
}
function f_emchscore_b(objEm, objTag, rensaidx) {
objEm.sts = 4;
objTag.sts = 4;
objEm.kusariwait = 0;
objTag.kusariwait = 0;
var tmpscore = ((_root.nowlv * 8) * (1 + (m_rensa[rensaidx] * 0.5)));
if (objEm.ed) {
tmpscore = Math.floor(tmpscore / 10);
} else {
_root.joujitu_s3 = Math.min((_root.joujitu_s3 + JOUJITUCARE) + (m_rensa[rensaidx] * 200), MAXJOUJITU);
}
f_getscore(tmpscore, objEm._x, objEm._y);
f_getscore(tmpscore, objTag._x, objTag._y);
m_rensa[rensaidx]++;
_root.se_02.attachSound("decide2");
_root.se_02.start(0, 1);
}
function f_emchscore_c(objEm, objTag) {
objEm.sts = 4;
objTag.sts = 4;
objEm.kusariwait = 0;
objTag.kusariwait = 0;
var tmpscore = (_root.nowlv * 8);
if (objEm.ed) {
tmpscore = Math.floor(tmpscore / 10);
} else {
_root.joujitu_s3 = Math.min(_root.joujitu_s3 + JOUJITUCARE, MAXJOUJITU);
}
f_getscore(tmpscore, objEm._x, objEm._y);
f_getscore(tmpscore, objTag._x, objTag._y);
_root.se_02.attachSound("decide2");
_root.se_02.start(0, 1);
_root.joujitu_s3 = Math.min(_root.joujitu_s3 + JOUJITUCARE, MAXJOUJITU);
}
function f_shotvsem(objEm, objShot) {
var rad = Math.atan2(-objEm._height, objEm._x - objShot._x);
objEm.dx = (objEm.dx / 10) + ((Math.cos(rad) * Math.abs(objShot.dy)) / 2);
if ((objEm.dy * objShot.dy) <= 0) {
objEm.dy = (objEm.dy * -0.2) + ((Math.sin(rad) * (-objShot.dy)) * 1.5);
} else {
objEm.dy = objEm.dy + ((Math.sin(rad) * (-objShot.dy)) / 10);
}
objEm.drot = objEm.drot + (((rad * 180) / Math.PI) / 5);
}
function f_atari_emem(objEm, objTag) {
var sx = (objEm._x - objTag._x);
var sy = (objEm._y - objTag._y);
var atarir = (objEm.atari + objTag.atari);
return(((sx * sx) + (sy * sy)) < (atarir * atarir));
}
function f_atari_shotem(objEm, objShot) {
if (objShot.lasty > objShot._y) {
if ((objShot.lasty + SHOTATARI) < (objEm._y - objEm.atari)) {
} else if ((objShot._y - SHOTATARI) > (objEm._y + objEm.atari)) {
} else if ((objShot._x + SHOTATARI) < (objEm._x - objEm.atari)) {
} else if ((objShot._x - SHOTATARI) > (objEm._x + objEm.atari)) {
} else {
return(true);
}
return(false);
}
if ((objShot._y + SHOTATARI) < (objEm._y - objEm.atari)) {
} else if ((objShot.lasty - SHOTATARI) > (objEm._y + objEm.atari)) {
} else if ((objShot._x + SHOTATARI) < (objEm._x - objEm.atari)) {
} else if ((objShot._x - SHOTATARI) > (objEm._x + objEm.atari)) {
} else {
return(true);
}
return(false);
}
function f_aegi() {
if (!_root.se_01isEnd) {
} else {
var rnd = Math.floor(Math.random() * 20);
_root.se_01.stop();
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi1");
_root.kutiptn = 1;
break;
case 1 :
_root.se_01.attachSound("aegi2");
_root.kutiptn = 2;
break;
case 2 :
_root.se_01.attachSound("aegi3");
_root.kutiptn = 1;
break;
case 3 :
_root.se_01.attachSound("aegi4");
_root.kutiptn = 1;
break;
case 4 :
_root.se_01.attachSound("aegi5");
_root.kutiptn = 1;
break;
case 5 :
_root.se_01.attachSound("aegi6");
_root.kutiptn = 2;
break;
case 6 :
_root.se_01.attachSound("aegi7");
_root.kutiptn = 2;
break;
case 7 :
_root.se_01.attachSound("aegi8");
_root.kutiptn = 2;
break;
case 8 :
_root.se_01.attachSound("aegi9");
_root.kutiptn = 1;
break;
case 9 :
_root.se_01.attachSound("aegi10");
_root.kutiptn = 1;
break;
case 10 :
_root.se_01.attachSound("aegi11");
_root.kutiptn = 1;
break;
case 11 :
_root.se_01.attachSound("aegi12");
_root.kutiptn = 1;
break;
case 12 :
_root.se_01.attachSound("aegi13");
_root.kutiptn = 1;
break;
case 13 :
_root.se_01.attachSound("aegi14");
_root.kutiptn = 1;
break;
case 14 :
_root.se_01.attachSound("aegi15");
_root.kutiptn = 1;
break;
case 15 :
_root.se_01.attachSound("aegi16");
_root.kutiptn = 1;
break;
case 16 :
_root.se_01.attachSound("aegi17");
_root.kutiptn = 1;
break;
case 17 :
_root.se_01.attachSound("aegi18");
_root.kutiptn = 1;
break;
case 18 :
_root.se_01.attachSound("aegi19");
_root.kutiptn = 2;
break;
case 19 :
_root.se_01.attachSound("aegi20");
_root.kutiptn = 1;
}
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
if (edgoal >= 2) {
if (m_bikuntime < _root.gametime) {
m_bikuntime = _root.gametime + 30;
this.s3_3_1.gotoAndPlay("a1");
this.s3_3_1.kao.mayu.gotoAndStop(2);
var rnd = Math.floor(Math.random() * 2);
if (rnd == 0) {
this.s3_3_1.kao.f_stoplvadd(1);
}
}
}
_root.nowlv++;
_root.txt_lv.text = _root.nowlv;
}
if (_root.nowstage != 3) {
this.swapDepths(20000);
this.removeMovieClip();
}
_root.playchk = true;
_root.se_00.onSoundComplete = function () {
if (_root.bgmid == 10) {
_root.bgmid = 11;
_root.se_00.attachSound("ruriko_loop");
_root.se_00.start(0, 99);
}
};
MAXJOUJITU = 10000;
JOUJITUCARE = 60;
_root.se_01isEnd = true;
_root.gameclearflg = false;
_root.joujitu_s3 = MAXJOUJITU;
_root.bgmvol = 100;
this.stop();
this.s3_1_1.stop();
this.s3_1_2.stop();
_root.mc_haert._visible = false;
_root.mc_haert.stop();
_root.txt_heart._visible = false;
_root.mc_bg.stop();
_root.timestop = false;
titi1 = this.s3_1_1.titi1;
titi2 = this.s3_1_1.titi2;
titi1.atari = 20;
titi2.atari = 20;
this.embgm.swapDepths(100);
this.explod.swapDepths(90);
this.s3_1_2.swapDepths(80);
this.pc.swapDepths(70);
this.tamaf.swapDepths(60);
this.mankokakusi.swapDepths(50);
this.s3_1_1.swapDepths(40);
SCRX = 567;
SCRY = 765;
MINX = 0;
MAXX = SCRX;
MINY = 0;
MAXY = SCRY;
SHOTATARI = 8;
PCMINX = 50;
PCMAXX = 510;
EMPOPXRENG = PCMAXX - PCMINX;
EDPOP_NG_XRENG = 200;
EDPOP_XRENG = EMPOPXRENG - EDPOP_NG_XRENG;
EDPOP_NG_X_MIN = Math.floor(SCRX / 2) - (EDPOP_NG_XRENG / 2);
EDPOP_NG_X_MAX = Math.floor(SCRX / 2) + (EDPOP_NG_XRENG / 2);
MANKO_X = 267;
MANKO_Y = 606;
MANKO_W = 60;
MANKO_H = 90;
MANKO_ATARI_MAXX = MANKO_X + (MANKO_W / 2);
MANKO_ATARI_MINX = MANKO_X - (MANKO_W / 2);
MANKO_ATARI_MAXY = MANKO_Y + (MANKO_H / 2);
MANKO_ATARI_MINY = MANKO_Y - (MANKO_H / 2);
HEART_X = 314;
HEART_Y = 340;
HEART_W = 26;
HEART_H = 20;
HEART_ATARI_MAXX = HEART_X + (HEART_W / 2);
HEART_ATARI_MINX = HEART_X - (HEART_W / 2);
HEART_ATARI_MAXY = HEART_Y + (HEART_H / 2);
HEART_ATARI_MINY = HEART_Y - (HEART_H / 2);
ONPMSG_X = 567;
ONPMSG_Y = 725;
m_em = new Array();
m_emlen = 0;
m_emnum = 0;
ednum = 0;
edgoal = 0;
edpopemnum = 10;
EDPOPEMNUMONE = 10;
edscore = 1000;
EDSCORE_ONE = 3000;
flg_edgoalone = false;
flg_s3_2fade = false;
m_bikuntime = 0;
m_rensa = new Array();
m_rensalen = 0;
m_emwait = 0;
m_emrush = false;
m_emrushptnfast = false;
m_emrushmodewait = 1000;
m_emrushmode_endtime = 0;
_root.score = 0;
_root.txt_score.text = _root.score;
_root.gametime = 0;
_root.eventcheck = 0;
_root.nowlv = 1;
_root.maxrensa = 0;
_root.txt_lv.text = _root.nowlv;
_root.gameover = false;
_root.txt_score._visible = false;
getscores = new Array();
GETSCORELEN = 5;
getscoreidx = 0;
i = 0;
while (i < GETSCORELEN) {
getscores.push(eval ("_root.txt_getscore" + i));
getscores[i]._visible = false;
getscores[i].cnt = 0;
i++;
}
this.explod.swapDepths(20000);
this.explod._visible = false;
this.explod.stop();
this.mankokakusi._visible = false;
this.embgm._visible = false;
}
onClipEvent (enterFrame) {
if (_root.timestop) {
if (flg_edgoalone) {
var objEm;
var emlen = (m_emlen - 2);
i = emlen;
while (i >= 0) {
objEm = m_em[i];
if (objEm.sts == 4) {
var tmpalpha = (objEm._alpha - 2);
if (tmpalpha > 0) {
objEm._alpha = tmpalpha;
objEm._xscale = objEm._xscale + 2;
objEm._yscale = objEm._yscale + 2;
} else {
f_emclear(i);
}
}
i--;
}
_root.bgmvol = _root.bgmvol - 2;
if (_root.bgmvol > 0) {
_root.se_00.setVolume(_root.bgmvol);
} else {
_root.se_00.stop();
_root.bgmvol = 100;
_root.se_00.setVolume(_root.bgmvol);
_root.bgmid = 10;
_root.se_00.attachSound("ruriko_intr");
_root.se_00.start(0, 1);
_root.timestop = false;
flg_edgoalone = false;
}
}
return(undefined);
}
var i = 0;
var k = 0;
_root.gametime++;
if (flg_s3_2fade) {
var tmpalpha = (this.s3_2_1._alpha - 4);
if (tmpalpha > 0) {
this.s3_2_1._alpha = tmpalpha;
this.s3_2_2._alpha = tmpalpha;
} else {
flg_s3_2fade = false;
this.s3_2_1.removeMovieClip();
this.s3_2_2.removeMovieClip();
}
}
var objEm;
var objTag;
var emlen = (m_emlen - 1);
i = emlen;
for ( ; i >= 0 ; i--) {
objEm = m_em[i];
if (objEm.kusariwait > 0) {
objEm.kusariwait--;
if (objEm.kusariwait <= 0) {
f_emkusaru(objEm);
}
}
if (objEm.sts == 4) {
var tmpalpha = (objEm._alpha - 5);
if (tmpalpha > 0) {
objEm._alpha = tmpalpha;
objEm._xscale = objEm._xscale + 5;
objEm._yscale = objEm._yscale + 5;
} else {
f_emclear(i);
}
} else {
if (objEm.sts == 3) {
} else if (objEm.sts == 0) {
objEm._x = objEm._x + objEm.dx;
objEm._y = objEm._y + objEm.dy;
if (objEm._y > (MAXY - objEm._height)) {
f_emsetkusari(objEm);
}
} else {
if (objEm._x > (MAXX - objEm.atari)) {
objEm._x = MAXX - objEm.atari;
objEm.dx = objEm.dx * -1;
} else if (objEm._x < (MINX + objEm.atari)) {
objEm._x = MINX + objEm.atari;
objEm.dx = objEm.dx * -1;
}
if (objEm._y < (MINY + objEm.atari)) {
objEm._y = MINY + objEm.atari;
objEm.dy = 0;
} else if (objEm._y > (MAXY - objEm._height)) {
if (objEm.sts == 2) {
f_emchscore_a(objEm);
} else {
f_emsetkusari(objEm);
}
continue;
}
if (objEm.hitTest(titi1._x, titi1._y, true)) {
if (objEm.dx > 0) {
titi1.gotoAndPlay("migi");
} else {
titi1.gotoAndPlay("hidari");
}
if (objEm.dy > 0) {
objEm._y = titi1._y - (objEm._height / 2);
} else {
objEm._y = titi1._y + (objEm._height / 2);
}
f_aegi();
objEm.dx = Math.min(objEm.dx, -8);
objEm.dy = objEm.dy * -1;
} else if (objEm.hitTest(titi2._x, titi2._y, true)) {
if (objEm.dx > 0) {
titi2.gotoAndPlay("migi");
} else {
titi2.gotoAndPlay("hidari");
}
if (objEm.dy > 0) {
objEm._y = titi2._y - (objEm._height / 2);
} else {
objEm._y = titi2._y + (objEm._height / 2);
}
f_aegi();
objEm.dx = Math.max(objEm.dx, 8);
objEm.dy = objEm.dy * -1;
}
objEm._x = objEm._x + objEm.dx;
objEm._y = objEm._y + objEm.dy;
objEm._rotation = objEm._rotation + objEm.drot;
if (objEm.dy < 0) {
objEm.dy = objEm.dy + (2 - Math.floor(objEm.dy / 4));
} else {
objEm.dy = objEm.dy + 1;
}
}
if (objEm.ed) {
if (objEm.sts == 0) {
if (objEm.moveptn == 0) {
if (objEm._y > MANKO_Y) {
objEm.moveptn = 1;
var edspd = 0;
if (edgoal == 0) {
edspd = 4;
} else {
edspd = 8;
}
if (objEm._x < MANKO_X) {
objEm.dx = edspd;
} else {
objEm.dx = -edspd;
}
objEm.dy = 0;
}
} else if (objEm.moveptn == 1) {
if ((objEm._x + objEm.atari) < MANKO_ATARI_MINX) {
} else if (MANKO_ATARI_MAXX < (objEm._x - objEm.atari)) {
} else {
var rad = Math.atan2(HEART_Y - objEm._y, HEART_X - objEm._x);
objEm.dx = Math.cos(rad) * 5;
objEm.dy = Math.sin(rad) * 5;
objEm.moveptn = 2;
break;
}
}
}
if (_root.gameover) {
} else if (objEm.sts > 2) {
} else if ((objEm._x + objEm.atari) < HEART_ATARI_MINX) {
} else if (HEART_ATARI_MAXX < (objEm._x - objEm.atari)) {
} else if ((objEm._y + objEm.atari) < HEART_ATARI_MINY) {
} else if (HEART_ATARI_MAXY < (objEm._y - objEm.atari)) {
} else {
edgoal++;
f_emchscore_a(objEm);
objEm.swapDepths(100000 + edgoal);
objEm.stop();
if (edgoal == 1) {
flg_edgoalone = true;
_root.timestop = true;
_root.txt_heart._visible = true;
_root.mc_haert._visible = true;
} else if (edgoal == 2) {
_root.mc_bg.gotoAndStop(2);
var tmp_currentframe = this.s3_1_1._currentframe;
this.s3_1_1.removeMovieClip();
this.s3_1_2.removeMovieClip();
this.attachMovie("s3_2_1", "s3_2_1", 41);
this.attachMovie("s3_2_2", "s3_2_2", 81);
this.s3_2_1.gotoAndPlay(tmp_currentframe);
this.s3_2_2.gotoAndPlay(tmp_currentframe);
titi1 = this.s3_2_1.titi1;
titi2 = this.s3_2_1.titi2;
titi1.atari = 20;
titi2.atari = 20;
} else if (edgoal == 3) {
this.s3_2_1.kao.gotoAndPlay(2);
} else if (edgoal == 4) {
_root.mc_bg.gotoAndPlay(3);
this.attachMovie("s3_3_1", "s3_3_1", 40);
this.attachMovie("s3_1_2", "s3_1_2", 80);
this.s3_3_1.r_h.stop();
this.s3_3_1.l_h.stop();
flg_s3_2fade = true;
titi1 = this.s3_3_1.titi1;
titi2 = this.s3_3_1.titi2;
titi1.atari = 20;
titi2.atari = 20;
} else if (edgoal == 5) {
_root.attachMovie("whiteout2", "whiteout2", 1000);
_root.gameclearflg = true;
_root.eroflg[0] = true;
f_savedata();
_root.nowstage = 5;
}
_root.joujitu_s3 = Math.min(_root.joujitu_s3 + (JOUJITUCARE * 70), MAXJOUJITU);
_root.mc_haert.gotoAndPlay(2);
_root.txt_heart.text = 5 - edgoal;
break;
}
}
k = i - 1;
while (k >= 0) {
objTag = m_em[k];
if (objTag.sts == 4) {
} else if ((objEm.sts == 3) && (objTag.sts == 3)) {
} else if ((objEm.sts == 0) && (objTag.sts == 0)) {
} else if (objEm.hitTest(objTag)) {
if (objEm.colorptn == objTag.colorptn) {
if ((objEm.sts == 2) && (objTag.sts == 2)) {
} else if (objEm.sts == 3) {
if (objTag.sts == 2) {
f_emchscore_b(objEm, objTag, objTag.rensaidx);
} else {
f_emchscore_c(objEm, objTag);
}
} else if (objTag.sts == 3) {
if (objEm.sts == 2) {
f_emchscore_b(objEm, objTag, objEm.rensaidx);
} else {
f_emchscore_c(objEm, objTag);
}
} else if (objEm.sts == 2) {
objTag.rensaidx = objEm.rensaidx;
f_emOk(objTag);
} else if (objTag.sts == 2) {
objEm.rensaidx = objTag.rensaidx;
f_emOk(objEm);
} else {
objEm.rensaidx = m_rensalen;
objTag.rensaidx = m_rensalen;
m_rensa.push(0);
m_rensalen++;
f_emOk(objEm);
f_emOk(objTag);
if (objTag.sts == 0) {
objTag.dx = 0;
objTag.dy = 0;
f_emhit(objTag);
}
if (objEm.sts == 0) {
objEm.dx = 0;
objEm.dy = 0;
f_emhit(objEm);
}
}
} else if (objEm.sts == 3) {
if (objTag.sts == 4) {
} else if (objTag.sts == 2) {
f_emchscore_a(objTag);
} else {
f_emsetkusari(objTag);
}
} else if (objTag.sts == 3) {
if (objEm.sts == 4) {
} else if (objEm.sts == 2) {
f_emchscore_a(objEm);
} else {
f_emsetkusari(objEm);
}
} else {
if (objTag.sts == 0) {
objTag.dx = 0;
objTag.dy = 0;
f_emhit(objTag);
}
if (objEm.sts == 0) {
objEm.dx = 0;
objEm.dy = 0;
f_emhit(objEm);
}
}
if (objEm.sts == 0) {
} else if (objEm.sts > 2) {
} else {
tmpTagdx = objTag.dx;
tmpTagdy = objTag.dy;
objTag.dx = objTag.dx + (((-objTag.dx) / 2) + (objEm.dx / 2));
objTag.dy = objTag.dy + (((-objTag.dy) / 2) + (objEm.dy / 2));
objEm.dx = objEm.dx + (((-objEm.dx) / 2) + (tmpTagdx / 2));
objEm.dy = objEm.dy + (((-objEm.dy) / 2) + (tmpTagdy / 2));
var tmprot = (((Math.atan2(objEm._y - objTag._y, objEm._x - objTag._x) * 180) / Math.PI) / 5);
objEm._rotation = objEm._rotation + tmprot;
objTag._rotation = objTag._rotation - tmprot;
}
}
k--;
}
}
}
if (_root.gametime <= 70) {
switch (_root.gametime) {
case 20 :
f_creatEm();
break;
case 35 :
f_creatEm();
break;
case 50 :
f_creatEm();
break;
case 65 :
f_creatEm();
_root.txt_score._visible = true;
_root.txt_lv._visible = true;
_root.lbl_lv._visible = true;
_root.se_00.stop();
_root.se_00.setVolume(100);
_root.se_00.attachSound("terette");
_root.bgmid = 3;
_root.se_00.start(0, 99);
this.s3_1_1.play();
this.s3_1_2.play();
break;
case 70 :
_root.attachMovie("onpumesse1", "onpumesse1", 500);
_root.onpumesse1._x = ONPMSG_X;
_root.onpumesse1._y = ONPMSG_Y;
}
return(undefined);
}
i = 0;
while (i < GETSCORELEN) {
if (getscores[i]._visible) {
getscores[i].cnt++;
if (getscores[i].cnt < 15) {
getscores[i]._y = getscores[i]._y - 2;
} else if (getscores[i].cnt < 25) {
getscores[i]._y = getscores[i]._y - 2;
getscores[i]._alpha = getscores[i]._alpha - 10;
} else {
getscores[i].cnt = 0;
getscores[i]._visible = false;
getscores[i]._alpha = 100;
}
}
i++;
}
var objShot;
i = 0;
while (i < pc.MAXSHOT) {
objShot = pc.shots[i];
if (objShot._visible) {
var isHit = false;
if (objShot.cnt == 0) {
objShot.cnt++;
objShot.dx = this.pc._x - objShot._x;
} else {
var k = 0;
var objEm;
var emlen = (m_emlen - 1);
k = emlen;
while (k >= 0) {
objEm = m_em[k];
if ((objEm._y > pc._y) && (objShot.dy < 0)) {
} else if (objEm.sts == 4) {
} else if (f_atari_shotem(objEm, objShot)) {
isHit = true;
if (objEm.sts == 0) {
objEm.dy = 0;
}
if (objEm.sts == 2) {
if (objEm.hp > 0) {
f_shotvsem(objEm, objShot);
objEm.hp--;
_root.se_02.attachSound("call07");
_root.se_02.start(0, 1);
} else {
objEm.sts = 4;
_root.se_02.attachSound("decide3");
_root.se_02.start(0, 1);
}
} else if (objEm.sts == 3) {
if (objEm.hp > 0) {
objEm.hp--;
} else {
if (objEm.ed) {
_root.se_02.attachSound("decide2");
_root.se_02.start(0, 1);
_root.joujitu_s3 = Math.min(_root.joujitu_s3 + (JOUJITUCARE * 40), MAXJOUJITU);
}
this.explod.gotoAndPlay(1);
this.explod._x = objEm._x - 24;
this.explod._y = objEm._y - 24;
this.explod._visible = true;
_root.se_02.attachSound("bom24");
_root.se_02.start(0, 1);
f_emclear(k);
}
} else {
f_shotvsem(objEm, objShot);
if (objEm.sts == 0) {
f_emhit(objEm);
}
}
}
k--;
}
}
if (f_atari_shotem(this.titi1, objShot)) {
isHit = true;
if (objShot._x < this.titi1) {
this.titi1.gotoAndPlay("migi");
} else {
this.titi1.gotoAndPlay("hidari");
}
f_aegi();
}
if (f_atari_shotem(this.titi2, objShot)) {
isHit = true;
if (objShot._x < this.titi2) {
this.titi2.gotoAndPlay("migi");
} else {
this.titi2.gotoAndPlay("hidari");
}
f_aegi();
}
if (isHit) {
objShot._visible = false;
} else {
objShot._x = objShot._x + objShot.dx;
objShot.dx = objShot.dx * 0.9;
if (Math.abs(objShot.dx) < 0.1) {
objShot.dx = 0;
}
objShot.lasty = objShot._y;
objShot._y = objShot._y + objShot.dy;
objShot.dy = objShot.dy + 6;
if (objShot.dy < 0) {
objShot._yscale = 50 - (objShot.dy * 5);
} else if (objShot.dy > 0) {
objShot._yscale = -50 - (objShot.dy * 5);
}
if ((objShot._y + (objShot._height / 2)) < MINY) {
objShot._visible = false;
} else if ((objShot._y - (objShot._height / 2)) > MAXY) {
objShot._visible = false;
}
}
}
i++;
}
if (m_emwait <= 0) {
f_creatEm();
if (m_emrush && (!m_emrushptnfast)) {
m_emwait = 10;
} else {
m_emwait = Math.max(30 - Math.floor(_root.nowlv / 8), 10);
}
} else {
m_emwait--;
}
if (!m_emrush) {
if (m_emrushmodewait < 0) {
m_emrush = true;
m_emrushptnfast = !m_emrushptnfast;
m_emrushmode_endtime = (_root.gametime + 200) + _root.nowlv;
} else {
m_emrushmodewait = m_emrushmodewait - (50 + _root.nowlv);
}
} else if (m_emrushmode_endtime < _root.gametime) {
m_emrush = false;
m_emrushmodewait = 20000;
}
_root.joujitu_s3 = Math.max(_root.joujitu_s3 - Math.min(Math.floor(_root.nowlv / 4), 8), 1);
_root.bar._xscale = _root.joujitu_s3 / 100;
if (this.embgm._visible) {
this.embgm._y = this.embgm._y + this.embgm.dy;
if ((this.embgm._y - this.embgm.atari) > MAXY) {
this.embgm._visible = false;
} else {
var objShot;
i = 0;
while (i < pc.MAXSHOT) {
objShot = pc.shots[i];
if (objShot._visible) {
if (f_atari_shotem(this.embgm, objShot)) {
objShot._visible = false;
this.embgm._visible = false;
if (_root.bgmid < 10) {
_root.se_00.stop();
_root.se_00.setVolume(100);
if (_root.bgmid == 1) {
_root.se_00.attachSound("goemon");
_root.bgmid = 2;
} else if (_root.bgmid == 2) {
_root.se_00.attachSound("terette");
_root.bgmid = 3;
} else if (_root.bgmid == 3) {
_root.se_00.attachSound("tyakusinzero");
_root.bgmid = 1;
}
_root.se_00.start(0, 99);
}
break;
}
}
i++;
}
}
}
if (_root.nowlv > 49) {
if (edgoal == 0) {
_root.timestop = true;
_root.attachMovie("hissatu", "hissatu", 10000);
var k = 0;
var objEm;
var emlen = (m_emlen - 1);
k = emlen;
while (k >= 0) {
m_em[k].sts = 4;
k--;
}
_root.nowlv = 1;
}
}
if (_root.eventcheck == 0) {
} else if (_root.eventcheck == 3) {
_root.yurehoukou = _root.yurehoukou * -1;
var yure = 2;
this._x = Math.floor(Math.random() * yure) - (yure * _root.yurehoukou);
this._y = Math.floor(Math.random() * yure) - (yure / 2);
} else if (_root.eventcheck == 4) {
_root.yurehoukou = _root.yurehoukou * -1;
var yure = 6;
this._x = Math.floor(Math.random() * yure) - (yure * _root.yurehoukou);
this._y = Math.floor(Math.random() * yure) - (yure / 2);
} else if (_root.eventcheck == 5) {
_root.yurehoukou = _root.yurehoukou * -1;
var yure = 12;
this._x = Math.floor(Math.random() * yure) - (yure * _root.yurehoukou);
this._y = Math.floor(Math.random() * yure) - (yure / 2);
}
}
Frame 29
prevFrame();
Frame 33
stop();
Frame 34
prevFrame();
Frame 38
stop();
Frame 39
prevFrame();
Frame 41
stop();
Instance of Symbol 807 MovieClip "s4" in Frame 41
onClipEvent (load) {
function f_setdparam(obj, mcIdx, motionIdx, framenum) {
obj.dx = (_root.mcparam[mcIdx][motionIdx][0] - obj._x) / framenum;
obj.dy = (_root.mcparam[mcIdx][motionIdx][1] - obj._y) / framenum;
obj.drot = (_root.mcparam[mcIdx][motionIdx][2] - obj._rotation) / framenum;
obj.dxs = (_root.mcparam[mcIdx][motionIdx][3] - obj._xscale) / framenum;
obj.dys = (_root.mcparam[mcIdx][motionIdx][4] - obj._yscale) / framenum;
}
function f_movemc(obj) {
obj._x = obj._x + obj.dx;
obj._y = obj._y + obj.dy;
obj._rotation = obj._rotation + obj.drot;
obj._xscale = obj._xscale + obj.dxs;
obj._yscale = obj._yscale + obj.dys;
}
function f_setdparams(motionIdx, framenum) {
f_setdparam(this.bousi, 0, motionIdx, framenum);
f_setdparam(this.kao, 1, motionIdx, framenum);
f_setdparam(this.munekami, 2, motionIdx, framenum);
f_setdparam(this.migititi, 3, motionIdx, framenum);
f_setdparam(this.hidarititi, 4, motionIdx, framenum);
f_setdparam(this.r_h, 5, motionIdx, framenum);
f_setdparam(this.l_h, 6, motionIdx, framenum);
f_setdparam(this.migihiza, 7, motionIdx, framenum);
f_setdparam(this.hidarihiza, 8, motionIdx, framenum);
f_setdparam(this.osu, 9, motionIdx, framenum);
f_setdparam(this.manko_u, 10, motionIdx, framenum);
f_setdparam(this.tinkomask, 11, motionIdx, framenum);
f_setdparam(this.tinko, 12, motionIdx, framenum);
f_setdparam(this.migimomo, 13, motionIdx, framenum);
f_setdparam(this.hidarimomo, 14, motionIdx, framenum);
f_setdparam(this.l_d_a, 15, motionIdx, framenum);
f_setdparam(this.l_u_a, 16, motionIdx, framenum);
f_setdparam(this.hara, 17, motionIdx, framenum);
f_setdparam(this.dou, 18, motionIdx, framenum);
f_setdparam(this.r_d_a, 19, motionIdx, framenum);
f_setdparam(this.r_u_a, 20, motionIdx, framenum);
f_setdparam(this.kami_ru, 21, motionIdx, framenum);
f_setdparam(this.kami_lu, 22, motionIdx, framenum);
f_setdparam(this.bousiback, 23, motionIdx, framenum);
f_setdparam(this.kami_ld, 24, motionIdx, framenum);
f_setdparam(this.kami_rd, 25, motionIdx, framenum);
lastmotionidx = motionIdx;
}
function f_calc_2jou(value) {
return(value * value);
}
function f_handclick_on(objHand) {
if (!_root.eroflg[7]) {
return(undefined);
}
if (objHand.drag) {
var tmpx = (objHand._x - (lastxmouse - _root._xmouse));
var tmpy = (objHand._y - (lastymouse - _root._ymouse));
if (objHand.atari.hitTest(tmpx, tmpy, true)) {
objHand._x = tmpx;
objHand._y = tmpy;
lastxmouse = _root._xmouse;
lastymouse = _root._ymouse;
}
} else if (_root._ymouse < (objHand._y - 110)) {
} else if (objHand._y < _root._ymouse) {
} else if (_root._xmouse < (objHand._x - 40)) {
} else if ((objHand._x + 40) < _root._xmouse) {
} else {
if (objHand.grip) {
objHand.clicktime = _root.s4time + 8;
objHand.drag = true;
lastxmouse = _root._xmouse;
lastymouse = _root._ymouse;
return(true);
}
objHand.drag = true;
objHand.grip = true;
objHand.gotoAndStop(2);
objHand.clicktime = _root.s4time;
lastxmouse = _root._xmouse;
lastymouse = _root._ymouse;
}
return(false);
}
function f_handclick_off(objHand) {
objHand.drag = false;
if (objHand.grip) {
if (objHand.clicktime > _root.s4time) {
objHand.grip = false;
objHand.modorityu = true;
objHand.gotoAndStop(1);
}
}
}
function f_setgriphandd(objHand, rot, framenum) {
objHand.drot = (rot - objHand._rotation) / framenum;
}
function f_handmove(objHand) {
var armmove = false;
var objUA = objHand.u_a;
var objDA = objHand.d_a;
if (objHand.grip) {
armmove = true;
if (pistonsts > 0) {
objHand._rotation = objHand._rotation + objHand.drot;
var tmpx = (objHand._x + objHand.dx);
var tmpy = (objHand._y + objHand.dy);
if (objHand.atari.hitTest(tmpx, tmpy, true)) {
objHand._x = tmpx;
objHand._y = tmpy;
}
}
} else if (objHand.modorityu) {
armmove = true;
var mcIdx = objHand.mcIdx;
var tmpx = objHand._x;
var tmpy = objHand._y;
var tagx = _root.mcparam[mcIdx][lastmotionidx][0];
var tagy = _root.mcparam[mcIdx][lastmotionidx][1];
var tagrot = _root.mcparam[mcIdx][lastmotionidx][2];
if (objHand._x < (tagx - 4)) {
} else if (tagx < (objHand._x - 4)) {
} else if (objHand._y < (tagy - 4)) {
} else if (tagy < (objHand._y - 4)) {
} else {
objHand._x = tagx;
objHand._y = tagy;
f_setdparam(objHand, objHand.mcIdx, lastmotionidx, nextframenum);
objDA.dx = 0;
objDA.dy = 0;
objDA.drot = 0;
objHand.modorityu = false;
}
if (objHand.modorityu) {
objHand._x = objHand._x + ((tagx - objHand._x) * 0.2);
objHand._y = objHand._y + ((tagy - objHand._y) * 0.2);
objHand._rotation = objHand._rotation + ((tagrot - objHand._rotation) * 0.2);
}
} else {
f_movemc(objHand);
f_movemc(objDA);
}
if (armmove) {
var loopnum = 0;
if (pistonsts > 0) {
loopnum = 8;
} else {
loopnum = 1;
}
i = loopnum;
while (i > 0) {
var tmpx = (objHand._x - objUA._x);
var tmpy = (objHand._y - objUA._y);
var L = Math.sqrt(f_calc_2jou(tmpx) + f_calc_2jou(tmpy));
var theta = Math.atan2(objUA._y - objHand._y, objUA._x - objHand._x);
var tmpcosalph = ((((L * L) + objHand.r2) - objUA.r2) / ((2 * L) * objHand.r));
var alph = Math.acos(tmpcosalph);
if (objHand.isLeft) {
alph = alph * -1;
}
var px2 = (objHand._x + (objHand.r * Math.cos(theta + alph)));
var py2 = (objHand._y + (objHand.r * Math.sin(theta + alph)));
objDA._x = px2;
objDA._y = py2;
objDA._rotation = ((((theta + alph) * 180) / Math.PI) + 180) - objDA.defrot;
objUA._rotation = ((Math.atan2(objDA._y - objUA._y, objDA._x - objUA._x) * 180) / Math.PI) - objUA.defrot;
if (i == 1) {
break;
}
if (objHand.isLeft) {
if (objUA._rotation < 20) {
break;
}
} else if (objUA._rotation > -20) {
break;
}
objHand._y = objHand._y - 2;
i--;
}
}
return(armmove);
}
function f_go_piston() {
this.migititi.gotoAndPlay("start");
this.hidarititi.gotoAndPlay("start");
this.kao.momiager.gotoAndPlay("f2");
this.kao.momiagel.gotoAndPlay("f2");
this.kao.maegami.gotoAndPlay("f2");
pistonsts = 2;
if (_root.pistonmotion == 0) {
nextframenum = 2 + _root.spd;
f_setdparams(2, nextframenum);
} else {
if (_root.nowpistonmotion == 0) {
nextframenum = _root.spd + 2;
} else {
nextframenum = Math.max(_root.spd, 1);
}
f_setdparams(28, nextframenum);
}
_root.nowpistonmotion = _root.pistonmotion;
if (this.l_h.grip) {
f_setgriphandd(l_h, -5, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 1;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 5, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 1;
}
m_allclickon = true;
}
function f_go_hiki(framenum) {
this.kao.maegami.gotoAndPlay("f1");
pistonsts = 1;
if (_root.pistonmotion == 0) {
nextframenum = framenum + _root.spd;
f_setdparams(1, nextframenum);
} else {
if (_root.nowpistonmotion == 0) {
nextframenum = _root.spd + 2;
} else {
nextframenum = Math.max(1, (framenum + _root.spd) - 1);
}
f_setdparams(27, nextframenum);
}
_root.nowpistonmotion = _root.pistonmotion;
if (this.l_h.grip) {
f_setgriphandd(l_h, 10, nextframenum);
this.l_h.dx = 1;
this.l_h.dy = 1;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -10, nextframenum);
this.r_h.dx = -1;
this.r_h.dy = 1;
}
m_allclickon = true;
}
function f_go_loop(framenum) {
this.kao.f_tuki();
pistonsts = 3;
if (_root.pistonmotion == 0) {
nextframenum = Math.max(_root.spd, 1);
f_setdparams(3, nextframenum);
} else {
if (_root.nowpistonmotion == 0) {
nextframenum = _root.spd + 2;
} else {
nextframenum = Math.max(_root.spd - 1, 1);
}
f_setdparams(29, nextframenum);
}
_root.nowpistonmotion = _root.pistonmotion;
if (this.l_h.grip) {
f_setgriphandd(l_h, 0, nextframenum);
this.l_h.dx = -2;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 0, nextframenum);
this.r_h.dx = 2;
this.r_h.dy = 0;
}
m_allclickon = true;
}
function f_go_def(framenum) {
pistonsts = 99;
nextframenum = framenum + _root.spd;
f_setdparams(0, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 0, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 0, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
this.kao.houtimode = false;
m_allclickon = true;
}
function f_go_end1(framenum) {
pistonsts = 4;
pistonstssub = 0;
nextframenum = framenum;
f_setdparams(5, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 40, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -40, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
m_allclickon = true;
}
function f_go_end1b(framenum) {
pistonsts = 6;
pistonstssub = 0;
nextframenum = framenum;
f_setdparams(5, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 40, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -40, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_end2(framenum) {
pistonsts = 6;
pistonstssub = 1;
nextframenum = framenum;
f_setdparams(6, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 39, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -39, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_end3() {
pistonsts = 7;
nextframenum = 2;
this.migititi.gotoAndPlay("titiyure");
this.hidarititi.gotoAndPlay("titiyure");
f_setdparams(7, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 40, nextframenum);
this.l_h.dx = 2;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -40, nextframenum);
this.r_h.dx = -2;
this.r_h.dy = 0;
}
}
function f_go_nuki1() {
pistonsts = 100;
pistonstssub = 1;
nextframenum = 20;
f_setdparams(10, nextframenum);
f_ikiiki();
if (this.l_h.grip) {
f_setgriphandd(l_h, 20, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 2;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -20, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 2;
}
}
function f_go_nuki2() {
pistonsts = 100;
pistonstssub = 2;
nextframenum = 20;
f_setdparams(11, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 22, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -22, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_nuki3() {
pistonsts = 100;
pistonstssub = 3;
nextframenum = 2;
this.tinko.setMask(null);
this.tinko.swapDepths(this.manko_u);
this.tinkomask._visible = false;
this.manko_u.gotoAndStop(2);
var obj = this.manko_u.attachMovie("mankoanime2", "mankoanime2", 2);
obj._x = -1;
obj._y = 1;
this.tinko.gotoAndPlay("nuke");
f_setdparams(12, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 25, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 2;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -25, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 2;
}
this.kao.mayuptn = 1;
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
f_nukikoe();
if (_root.m_gom) {
if (finished) {
this.tinko.tinko.gotoAndPlay("g2");
} else {
this.tinko.tinko.gotoAndStop("g4");
}
}
}
function f_go_nuki4() {
pistonsts = 100;
pistonstssub = 4;
nextframenum = 3;
f_setdparams(13, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 25, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -25, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_nuki5(framenum) {
pistonsts = 100;
pistonstssub = 5;
nextframenum = framenum;
f_setdparams(14, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 30, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -30, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_nuki6(framenum) {
pistonsts = 100;
pistonstssub = 6;
nextframenum = framenum;
f_setdparams(15, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 31, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -31, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_nuki7() {
pistonsts = 100;
pistonstssub = 6;
nextframenum = 2;
f_setdparams(16, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 31, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -31, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_tinkoin0() {
pistonsts = 101;
pistonstssub = 0;
nextframenum = 10;
f_setdparams(25, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 24, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = -1;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -24, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = -1;
}
}
function f_go_tinkoin1() {
pistonsts = 101;
pistonstssub = 1;
nextframenum = 2;
f_setdparams(17, nextframenum);
f_koe_tinkoinmae();
this.kao.f_hiki();
if (this.l_h.grip) {
f_setgriphandd(l_h, 25, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = -1;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -25, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = -1;
}
}
function f_go_tinkoin2() {
pistonsts = 101;
pistonstssub = 2;
nextframenum = 10;
f_setdparams(18, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 26, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -26, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_tinkoin3() {
pistonsts = 101;
pistonstssub = 3;
nextframenum = 10;
f_setdparams(19, nextframenum);
this.manko_u.gotoAndStop(2);
this.manko_u.mankotoji.removeMovieClip();
var obj = this.manko_u.attachMovie("mankoanime1", "mankoanime1", 1);
obj._x = -1;
obj._y = 1;
if (this.l_h.grip) {
f_setgriphandd(l_h, 10, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 1;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -10, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 1;
}
}
function f_go_tinkoin4() {
pistonsts = 101;
pistonstssub = 4;
nextframenum = 20;
f_setdparams(20, nextframenum);
this.tinko.swapDepths(this.manko_u);
this.manko_u.gotoAndStop(1);
this.tinko.setMask(this.tinkomask);
this.tinkomask._visible = true;
this.kao.f_tuki();
if (this.l_h.grip) {
f_setgriphandd(l_h, 15, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -15, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_tinkoin5() {
pistonsts = 101;
pistonstssub = 5;
nextframenum = 4;
f_setdparams(21, nextframenum);
this.kao.f_hiki();
if (this.l_h.grip) {
f_setgriphandd(l_h, -10, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 10, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_tinkoin6() {
pistonsts = 101;
pistonstssub = 6;
nextframenum = 4;
this.kao.f_tuki();
f_setdparams(22, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, -5, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 5, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_tinkoin7() {
pistonsts = 101;
pistonstssub = 7;
nextframenum = 4;
f_setdparams(23, nextframenum);
this.kao.f_hiki();
if (this.l_h.grip) {
f_setgriphandd(l_h, -5, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 5, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_tinkoin8() {
pistonsts = 101;
pistonstssub = 8;
nextframenum = 11;
f_setdparams(24, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, -1, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 1, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_hikikoe() {
_root.se_01.stop();
var rnd;
if (_root.kutiptn == 1) {
rnd = Math.floor(Math.random() * 6);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
lastkoe = rnd;
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi3");
break;
case 1 :
_root.se_01.attachSound("aegi1");
break;
case 2 :
_root.se_01.attachSound("aegi7");
break;
case 3 :
_root.se_01.attachSound("aegi9");
break;
case 4 :
_root.se_01.attachSound("aegi13");
break;
case 5 :
_root.se_01.attachSound("a3[53].mp3");
}
} else if (_root.kutiptn == 2) {
rnd = Math.floor(Math.random() * 5);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
lastkoe = rnd;
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi2");
break;
case 1 :
_root.se_01.attachSound("aegi6");
break;
case 2 :
_root.se_01.attachSound("aegi8");
break;
case 3 :
_root.se_01.attachSound("a3[26].mp3");
break;
case 4 :
_root.se_01.attachSound("a3[27].mp3");
}
} else {
rnd = Math.floor(Math.random() * 4);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
lastkoe = rnd;
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi3_5");
break;
case 1 :
_root.se_01.attachSound("aegi3_4");
break;
case 2 :
_root.se_01.attachSound("aegi3_7");
break;
case 3 :
_root.se_01.attachSound("a3[27].mp3");
}
}
lastkoe = rnd;
_root.se_01.start(0, 1);
this.kao.kuti.gotoAndStop(_root.kutiptn);
}
function f_nukikoe() {
if (!_root.se_01isEnd) {
return(undefined);
}
_root.se_01.stop();
var rnd = Math.floor(Math.random() * 7);
if (lastkoe == rnd) {
rnd = rnd - 1;
}
lastkoe = rnd;
switch (rnd) {
case 0 :
_root.se_01.attachSound("iki_a1");
_root.kutiptn = 2;
break;
case 1 :
_root.se_01.attachSound("iki_a2");
_root.kutiptn = 1;
break;
case 2 :
_root.se_01.attachSound("iki_a3");
_root.kutiptn = 2;
break;
case 3 :
_root.se_01.attachSound("iki_a4");
_root.kutiptn = 1;
break;
case 4 :
_root.se_01.attachSound("iki_a5");
_root.kutiptn = 1;
break;
case 5 :
_root.se_01.attachSound("aegi_hoho2");
_root.kutiptn = 1;
break;
case 6 :
_root.se_01.attachSound("aegi_hoho1");
_root.kutiptn = 2;
break;
default :
_root.se_01.attachSound("aegi_hoho1");
_root.kutiptn = 1;
}
lastkoe = rnd;
_root.se_01.start(0, 1);
this.kao.kuti.gotoAndStop(_root.kutiptn);
}
function f_koe_tinkoinmae() {
if (!_root.se_01isEnd) {
return(undefined);
}
_root.kutiptn = Math.floor(Math.random() * 2);
this.kao.kuti.gotoAndStop(_root.kutiptn);
_root.se_01.stop();
var rnd = 0;
if (_root.kutiptn == 0) {
rnd = Math.floor(Math.random() * 16);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi1");
break;
case 1 :
_root.se_01.attachSound("aegi3");
break;
case 2 :
_root.se_01.attachSound("aegi4");
break;
case 3 :
_root.se_01.attachSound("aegi5");
break;
case 4 :
_root.se_01.attachSound("aegi13");
break;
case 5 :
_root.se_01.attachSound("aegi18");
break;
case 6 :
_root.se_01.attachSound("aegi20");
break;
case 7 :
_root.se_01.attachSound("a3[28].mp3");
break;
case 8 :
_root.se_01.attachSound("a3[29].mp3");
break;
case 9 :
_root.se_01.attachSound("a3[32].mp3");
break;
case 10 :
_root.se_01.attachSound("a3[35].mp3");
break;
case 11 :
_root.se_01.attachSound("a3[36].mp3");
break;
case 12 :
_root.se_01.attachSound("a3[37].mp3");
break;
case 13 :
_root.se_01.attachSound("a3[39].mp3");
break;
case 14 :
_root.se_01.attachSound("hiki1");
break;
case 15 :
_root.se_01.attachSound("aegi_hoho2");
_root.kutiptn = 1;
break;
default :
_root.se_01.attachSound("a3[39].mp3");
_root.kutiptn = 1;
}
lastkoe = rnd;
} else {
rnd = Math.floor(Math.random() * 16);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi2");
break;
case 1 :
_root.se_01.attachSound("aegi6");
break;
case 2 :
_root.se_01.attachSound("aegi8");
break;
case 3 :
_root.se_01.attachSound("aegi7");
break;
case 4 :
_root.se_01.attachSound("aegi19");
break;
case 5 :
_root.se_01.attachSound("a3[21].mp3");
break;
case 6 :
_root.se_01.attachSound("a3[24].mp3");
break;
case 7 :
_root.se_01.attachSound("a3[25].mp3");
break;
case 8 :
_root.se_01.attachSound("a3[26].mp3");
break;
case 9 :
_root.se_01.attachSound("a3[27].mp3");
break;
case 10 :
_root.se_01.attachSound("aegi26");
break;
case 11 :
_root.se_01.attachSound("aegi3_4");
break;
case 12 :
_root.se_01.attachSound("aegi3_5");
break;
case 13 :
_root.se_01.attachSound("aegi_hoho1");
_root.kutiptn = 2;
break;
case 14 :
_root.se_01.attachSound("aegi_t1");
_root.kutiptn = 2;
break;
case 15 :
_root.se_01.attachSound("aegi_t2");
_root.kutiptn = 2;
break;
default :
_root.se_01.attachSound("aegi_t2");
_root.kutiptn = 1;
}
}
_root.se_01.start(0, 1);
}
function f_joujituset() {
if (syaseicnt == 0) {
if (joujitu_s4 > JOUJITU_MAX) {
_root.bar._xscale = 100;
_root.bar.duplicateMovieClip("syaseibar", 1);
var color_obj = new Color(_root.syaseibar);
color_obj.setRGB(16777215);
_root.syaseibar._xscale = 0;
syaseicnt = 1;
} else {
_root.bar._xscale = (joujitu_s4 / JOUJITU_MAX) * 100;
}
}
}
function f_koe_syasei() {
switch (_root.kutiptn) {
case 1 :
if (_root.irisup < 10) {
rnd = Math.floor(Math.random() * 7);
} else if (_root.irisup < 20) {
rnd = Math.floor(Math.random() * 10);
} else if (_root.irisup < 30) {
rnd = Math.floor(Math.random() * 14);
} else if (_root.irisup < 40) {
rnd = 7 + Math.floor(Math.random() * 8);
} else if (_root.irisup < 50) {
rnd = 10 + Math.floor(Math.random() * 10);
} else {
rnd = 15 + Math.floor(Math.random() * 7);
}
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi1");
break;
case 1 :
_root.se_01.attachSound("aegi4");
break;
case 2 :
_root.se_01.attachSound("aegi9");
break;
case 3 :
_root.se_01.attachSound("aegi11");
break;
case 4 :
_root.se_01.attachSound("aegi13");
break;
case 5 :
_root.se_01.attachSound("aegi17");
break;
case 6 :
_root.se_01.attachSound("aegi18");
break;
case 7 :
_root.se_01.attachSound("a3[32].mp3");
break;
case 8 :
_root.se_01.attachSound("a3[33].mp3");
break;
case 9 :
_root.se_01.attachSound("a3[34].mp3");
break;
case 10 :
_root.se_01.attachSound("a3[37].mp3");
break;
case 11 :
_root.se_01.attachSound("a3[39].mp3");
break;
case 12 :
_root.se_01.attachSound("a3[23].mp3");
break;
case 13 :
_root.se_01.attachSound("aegi23");
break;
case 14 :
_root.se_01.attachSound("aegi3_2");
break;
case 15 :
_root.se_01.attachSound("aegic2_1");
break;
case 16 :
_root.se_01.attachSound("aegic2_2");
break;
case 17 :
_root.se_01.attachSound("aegic2_3");
break;
case 18 :
_root.se_01.attachSound("aegic2_5");
break;
case 19 :
_root.se_01.attachSound("aegic2_6");
break;
case 20 :
_root.se_01.attachSound("aegic2_7");
break;
default :
_root.se_01.attachSound("aegi23");
}
break;
case 2 :
if (_root.irisup < 5) {
rnd = Math.floor(Math.random() * 5);
} else if (_root.irisup < 10) {
rnd = Math.floor(Math.random() * 8);
} else if (_root.irisup < 20) {
rnd = Math.floor(Math.random() * 10);
} else {
rnd = 4 + Math.floor(Math.random() * 9);
}
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi2");
break;
case 1 :
_root.se_01.attachSound("aegi6");
break;
case 2 :
_root.se_01.attachSound("aegi8");
break;
case 3 :
_root.se_01.attachSound("aegi7");
break;
case 4 :
_root.se_01.attachSound("aegi_hoho1");
break;
case 5 :
_root.se_01.attachSound("a3[21].mp3");
break;
case 6 :
_root.se_01.attachSound("a3[22].mp3");
break;
case 7 :
_root.se_01.attachSound("a3[24].mp3");
break;
case 8 :
_root.se_01.attachSound("aegi22");
break;
case 9 :
_root.se_01.attachSound("aegi26");
break;
case 10 :
_root.se_01.attachSound("aegi3_4");
break;
case 11 :
_root.se_01.attachSound("aegi3_5");
break;
case 12 :
_root.se_01.attachSound("aegi3_10");
break;
default :
_root.se_01.attachSound("aegi_hoho1");
}
break;
case 3 :
case 4 :
rnd = Math.floor(Math.random() * 7);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 1 :
_root.se_01.attachSound("aegi4_2");
break;
case 2 :
_root.se_01.attachSound("aegi_t1");
break;
case 3 :
_root.se_01.attachSound("aegi_t2");
break;
case 4 :
_root.se_01.attachSound("aegi_t3");
break;
case 5 :
_root.se_01.attachSound("aegi_t4");
break;
case 6 :
_root.se_01.attachSound("aegi_t5");
}
break;
case 5 :
if (_root.irisup < 5) {
rnd = Math.floor(Math.random() * 5);
} else if (_root.irisup < 10) {
rnd = Math.floor(Math.random() * 8);
} else if (_root.irisup < 20) {
rnd = Math.floor(Math.random() * 10);
} else if (_root.irisup < 30) {
rnd = 4 + Math.floor(Math.random() * 9);
} else if (_root.irisup < 40) {
rnd = 4 + Math.floor(Math.random() * 15);
}
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi2");
break;
case 1 :
_root.se_01.attachSound("aegi6");
break;
case 2 :
_root.se_01.attachSound("aegi8");
break;
case 3 :
_root.se_01.attachSound("aegi7");
break;
case 4 :
_root.se_01.attachSound("aegi_hoho1");
break;
case 5 :
_root.se_01.attachSound("a3[21].mp3");
break;
case 6 :
_root.se_01.attachSound("a3[22].mp3");
break;
case 7 :
_root.se_01.attachSound("a3[24].mp3");
break;
case 8 :
_root.se_01.attachSound("aegi22");
break;
case 9 :
_root.se_01.attachSound("aegi26");
break;
case 10 :
_root.se_01.attachSound("aegi3_4");
break;
case 11 :
_root.se_01.attachSound("aegi3_5");
break;
case 12 :
_root.se_01.attachSound("aegi3_10");
break;
case 13 :
_root.se_01.attachSound("aegi4_2");
break;
case 14 :
_root.se_01.attachSound("aegi_t1");
break;
case 15 :
_root.se_01.attachSound("aegi_t2");
break;
case 16 :
_root.se_01.attachSound("aegi_t3");
break;
case 17 :
_root.se_01.attachSound("aegi_t4");
break;
case 18 :
_root.se_01.attachSound("aegi_t5");
break;
default :
_root.se_01.attachSound("aegi_hoho1");
}
}
lastkoe = rnd;
_root.se_01.stop();
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
function f_ikiiki() {
var rnd = Math.floor(Math.random() * 4);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("iki_b1");
break;
case 1 :
_root.se_01.attachSound("iki_b2");
break;
case 2 :
_root.se_01.attachSound("iki_b3");
break;
case 3 :
_root.se_01.attachSound("iki_b4");
}
lastkoe = rnd;
_root.se_01.stop();
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
function f_iki() {
if (!_root.se_01isEnd) {
return(undefined);
}
var rnd = Math.floor(Math.random() * 8);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("iki_a1");
break;
case 1 :
_root.se_01.attachSound("iki_a2");
break;
case 2 :
_root.se_01.attachSound("iki_a3");
break;
case 3 :
_root.se_01.attachSound("iki_a4");
break;
case 4 :
_root.se_01.attachSound("iki_a5");
break;
case 5 :
_root.se_01.attachSound("iki_a6");
break;
case 6 :
_root.se_01.attachSound("iki_a7");
break;
case 7 :
_root.se_01.attachSound("iki_a8");
}
lastkoe = rnd;
_root.se_01.stop();
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
function f_mouseatari_irisu() {
if (_root._xmouse < 205) {
} else if (369 < _root._xmouse) {
} else if (_root._ymouse < 280) {
} else if (680 < _root._ymouse) {
} else {
return(true);
}
return(false);
}
function f_gomchg() {
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
} else {
this.tinko.tinko.gotoAndStop("nomal");
}
}
function f_sourouchg() {
if (_root.sourou) {
JOUJITU_MAX = 200;
} else {
JOUJITU_MAX = 2000;
}
JOUJITU_MAXWARU1000 = JOUJITU_MAX / 1000;
}
_root.btn_sourou._visible = _root.eroflg[6];
_root.btnautomode._visible = _root.eroflg[2];
_root.btnspdup._visible = _root.eroflg[3];
_root.btnspddown._visible = _root.eroflg[3];
_root.txt_spd._visible = _root.eroflg[3];
_root.btn_pistonmotion_r._visible = _root.eroflg[4];
_root.btn_pistonmotion_l._visible = _root.eroflg[4];
_root.txt_pistonmotion._visible = _root.eroflg[4];
if (_root.nowstage != 4) {
this.swapDepths(20000);
this.removeMovieClip();
return(undefined);
}
namidahukityuu = false;
pistonsts = 0;
pistonstssub = 0;
m_pistonEnded = false;
nextframenum = 0;
m_allclickon = false;
m_befoflameclickon = false;
_root.spd = 2;
_root.pistonmotion = 0;
_root.nowpistonmotion = 0;
_root.PISTONMOTHIN_MIN = 0;
_root.PISTONMOTHIN_MAX = 1;
_root.txt_pistonmotion.text = _root.pistonmotion;
_root.txt_spd.text = _root.spd;
_root.s4time = 0;
_root.irisup = 0;
_root.namida = false;
namidabuff = 0;
_root.automode = false;
_root.hohogo = false;
_root.btn_gom._visible = false;
_root.m_gom = true;
this.tinko.tinko.gotoAndStop("g1");
gomsiru = true;
_root.kutiptn = 6;
syaseicnt = 0;
syaseitime = 0;
syaseinum = 0;
syaseip = 0;
MAXSYASEIP = 100;
SYASEIGAMAN = 50;
finished = false;
lastmotionidx = 0;
keirennum = 0;
tinkoout = false;
tinkohide = false;
nownakadasinum = 0;
joujitu_s4 = 0;
_root.sourou = false;
f_sourouchg();
f_joujituset();
lastkoe = 0;
bousi.mcIdx = 0;
kao.mcIdx = 1;
munekami.mcIdx = 2;
migititi.mcIdx = 3;
hidarititi.mcIdx = 4;
r_h.mcIdx = 5;
l_h.mcIdx = 6;
migihiza.mcIdx = 7;
hidarihiza.mcIdx = 8;
osu.mcIdx = 9;
manko_u.mcIdx = 10;
tinkomask.mcIdx = 11;
tinko.mcIdx = 12;
migimomo.mcIdx = 13;
hidarimomo.mcIdx = 14;
l_d_a.mcIdx = 15;
l_u_a.mcIdx = 16;
hara.mcIdx = 17;
dou.mcIdx = 18;
r_d_a.mcIdx = 19;
r_u_a.mcIdx = 20;
kami_ru.mcIdx = 21;
kami_lu.mcIdx = 22;
bousiback.mcIdx = 23;
kami_ld.mcIdx = 24;
kami_rd.mcIdx = 25;
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
this.tinko.setMask(this.tinkomask);
this.osu.stop();
this.manko_u.stop();
this.l_h.gotoAndStop(1);
this.l_h.grip = false;
this.l_h.drag = false;
this.l_h.clicktime = 0;
this.l_h.defx = this.l_h._x;
this.l_h.defy = this.l_h._y;
this.l_h.modorityu = false;
this.l_h.atari = this.atari_l_h;
this.l_h.u_a = this.l_u_a;
this.l_h.d_a = this.l_d_a;
this.l_h.isLeft = true;
this.l_h.r = Math.sqrt(f_calc_2jou(l_h._x - l_d_a._x) + f_calc_2jou(l_h._y - l_d_a._y));
this.l_h.r2 = f_calc_2jou(this.l_h.r);
this.l_u_a.r = Math.sqrt(f_calc_2jou(l_u_a._x - l_d_a._x) + f_calc_2jou(l_u_a._y - l_d_a._y));
this.l_u_a.defrot = (Math.atan2(l_d_a._y - l_u_a._y, l_d_a._x - l_u_a._x) * 180) / Math.PI;
this.l_d_a.defrot = (Math.atan2(l_h._y - l_d_a._y, l_h._x - l_d_a._x) * 180) / Math.PI;
this.l_u_a.r2 = f_calc_2jou(this.l_u_a.r);
this.r_h.gotoAndStop(1);
this.r_h.grip = false;
this.r_h.drag = false;
this.r_h.clicktime = 0;
this.r_h.defx = this.r_h._x;
this.r_h.defy = this.r_h._y;
this.r_h.modorityu = false;
this.r_h.atari = this.atari_r_h;
this.r_h.u_a = this.r_u_a;
this.r_h.d_a = this.r_d_a;
this.r_h.isLeft = false;
this.r_h.r = Math.sqrt(f_calc_2jou(r_h._x - r_d_a._x) + f_calc_2jou(r_h._y - r_d_a._y));
this.r_h.r2 = f_calc_2jou(this.r_h.r);
this.r_u_a.r = Math.sqrt(f_calc_2jou(r_u_a._x - r_d_a._x) + f_calc_2jou(r_u_a._y - r_d_a._y));
this.r_u_a.defrot = (Math.atan2(r_d_a._y - r_u_a._y, r_d_a._x - r_u_a._x) * 180) / Math.PI;
this.r_d_a.defrot = (Math.atan2(r_h._y - r_d_a._y, r_h._x - r_d_a._x) * 180) / Math.PI;
this.r_u_a.r2 = f_calc_2jou(this.r_u_a.r);
lastxmouse = _root._xmouse;
lastymouse = _root._ymouse;
this.stop();
}
onClipEvent (mouseUp) {
m_click = false;
}
onClipEvent (mouseDown) {
m_click = true;
}
onClipEvent (keyDown) {
m_keydown = true;
if (Key.isDown(38)) {
_root.btnspdup.f_btnspdup();
}
if (Key.isDown(40)) {
_root.btnspddown.f_btnspddown();
}
if (Key.isDown(37)) {
_root.btn_pistonmotion_l.f_btnclick();
}
if (Key.isDown(39)) {
_root.btn_pistonmotion_r.f_btnclick();
}
if (Key.isDown(65)) {
_root.btnautomode.f_aotomodechg();
}
if (key.isDown(86)) {
if (_root.eroflg[6]) {
_root.btn_sourou._visible = !_root.btn_sourou._visible;
}
if (_root.eroflg[2]) {
_root.btnautomode._visible = !_root.btnautomode._visible;
}
if (_root.eroflg[3]) {
_root.btnspdup._visible = !_root.btnspdup._visible;
_root.btnspddown._visible = !_root.btnspddown._visible;
_root.txt_spd._visible = !_root.txt_spd._visible;
}
if (_root.eroflg[4]) {
_root.btn_pistonmotion_r._visible = !_root.btn_pistonmotion_r._visible;
_root.btn_pistonmotion_l._visible = !_root.btn_pistonmotion_l._visible;
_root.txt_pistonmotion._visible = !_root.txt_pistonmotion._visible;
}
_root.btnmodoru._visible = !_root.btnmodoru._visible;
}
}
onClipEvent (keyUp) {
m_keydown = false;
}
onClipEvent (enterFrame) {
_root.s4time++;
var spasekeydown = Key.isDown(32);
_root.test3 = m_pistonend;
_root.test4 = (nownakadasinum + " ") + m_pistonEnded;
_root.test1 = m_befoflameclickon;
if (syaseicnt > 0) {
if (syaseicnt < SYASEIGAMAN) {
syaseicnt = syaseicnt + 1;
_root.syaseibar._xscale = (syaseicnt * 100) / SYASEIGAMAN;
} else if (syaseicnt < 200) {
joujitu_s4 = JOUJITU_MAX;
_root.bar._visible = false;
_root.syaseibar._xscale = 100;
syaseicnt = 200;
syaseinum = 0;
syaseip = MAXSYASEIP;
finished = true;
} else if (syaseicnt == 200) {
if (syaseitime < _root.s4time) {
if (syaseinum == 0) {
syaseitime = (_root.s4time + 10) + Math.floor(Math.random() * 10);
} else if (syaseinum == 1) {
syaseitime = (_root.s4time + 3) + Math.floor(Math.random() * 6);
} else if (syaseinum == 2) {
syaseitime = (_root.s4time + 10) + Math.floor(Math.random() * 10);
} else if (syaseinum == 3) {
syaseitime = _root.s4time + 3;
} else {
syaseitime = (_root.s4time + 2) + Math.floor(Math.random() * 16);
}
if ((syaseip / MAXSYASEIP) > 0.5) {
_root.se_02.attachSound("syaseisnd2");
} else {
_root.se_02.attachSound("syaseisnd1");
}
if (!tinkoout) {
if (pistonsts == 6) {
keirentime = 0;
} else {
if (pistonsts == 0) {
var rnd = Math.floor(math.random() * 3);
if (rnd == 0) {
this.kao.mabatakitime = 0;
} else {
this.kao.yosomitime = 0;
}
nextframenum = 2;
pistonstssub = 2;
f_setdparams(26, nextframenum);
}
if (_root.se_01isEnd) {
f_koe_syasei();
}
}
}
syaseip = syaseip - (((20 + Math.floor(Math.random() * 20)) * Math.max(4, 10 - syaseinum)) / 10);
if (syaseip < 0) {
syaseip = 0;
syaseicnt = 300;
syaseitime = _root.s4time + 20;
}
if ((pistons == 100) && (pistonstssub > 2)) {
this.osu.gotoAndPlay("soto");
this.tinko.gotoAndPlay("soto");
} else {
this.osu.gotoAndPlay("naka");
this.tinko.gotoAndPlay("naka");
}
_root.se_02.stop();
_root.se_02.start(0, 1);
syaseinum++;
if (!_root.m_gom) {
nownakadasinum++;
}
}
_root.syaseibar._xscale = _root.syaseibar._xscale - ((_root.syaseibar._xscale - syaseip) * 0.2);
} else if (syaseicnt == 300) {
_root.syaseibar._xscale = _root.syaseibar._xscale - ((_root.syaseibar._xscale - syaseip) * 0.2);
if (_root.syaseibar._xscale < 1) {
joujitu_s4 = 0;
syaseicnt = 0;
_root.syaseibar.removeMovieClip();
_root.bar._visible = true;
_root.bar._xscale = 0;
}
}
}
if (pistonsts > 0) {
switch (pistonsts) {
case 1 :
joujitu_s4 = joujitu_s4 + 1;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
m_pistonend = true;
f_go_piston();
break;
}
} else {
m_pistonend = true;
f_go_piston();
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
m_pistonend = true;
f_go_piston();
} else {
if (nextframenum == 0) {
if ((m_click || (_root.automode)) || (spasekeydown)) {
f_go_piston();
} else {
this.kao.maegami.gotoAndPlay("f4");
this.kao.f_koe();
f_go_def(8);
}
}
break;
joujitu_s4 = joujitu_s4 + 8;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
m_pistonend = true;
}
} else {
m_pistonend = true;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
m_pistonend = true;
}
if (nextframenum == 0) {
this.migititi.gotoAndPlay("titiyure");
this.hidarititi.gotoAndPlay("titiyure");
this.kao.momiager.gotoAndPlay("f3");
this.kao.momiagel.gotoAndPlay("f3");
this.kao.maegami.gotoAndPlay("f3");
_root.irisup++;
if (!_root.namida) {
namidabuff = namidabuff + _root.irisup;
if (namidabuff > 400) {
_root.namida = true;
namidabuff = 0;
}
}
if (!gomsiru) {
if (_root.m_gom) {
this.tinko.tinko.gotoAndPlay("g1");
}
gomsiru = true;
}
if ((m_click || (_root.automode)) || (spasekeydown)) {
if (m_pistonend) {
this.kao.f_tukiend();
keirentime = 0;
f_go_end1(20);
m_pistonEnded = true;
} else {
f_go_loop();
}
} else {
f_go_def(8);
}
m_pistonend = false;
} else if (nextframenum == 2) {
if (this.l_h.grip) {
this.l_h.dx = -8;
}
if (this.r_h.grip) {
this.r_h.dx = 8;
}
} else if (nextframenum == 1) {
if (this.l_h.grip) {
this.l_h.dx = -4;
}
if (this.r_h.grip) {
this.r_h.dx = 4;
}
}
break;
joujitu_s4 = joujitu_s4 + 4;
if (this.l_h.grip) {
this.l_h.dx = this.l_h.dx * 0.5;
}
if (this.r_h.grip) {
this.r_h.dx = this.r_h.dx * 0.5;
}
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
m_pistonend = true;
f_go_piston();
break;
}
} else {
m_pistonend = true;
f_go_piston();
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
m_pistonend = true;
f_go_piston();
} else {
if (nextframenum == 0) {
this.kao.f_hiki();
f_go_hiki(1);
}
break;
if (((!m_befoflameclickon) && (m_click)) || ((!m_befoflamespacedown) && (spasekeydown))) {
f_go_hiki(2);
f_hikikoe();
}
if (nextframenum == 0) {
if (_root.irisup > 100) {
_root.irisup = 0;
}
if (m_click || (spasekeydown)) {
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
f_go_end2(30);
} else {
f_go_def(8);
}
}
break;
if (keirentime < _root.s4time) {
if (syaseicnt == 200) {
f_go_end3();
keirentime = _root.s4time + 200;
f_koe_syasei();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
break;
}
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
f_go_end3();
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
break;
}
} else {
if ((!m_click) && (!spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.mabatakiflg = false;
this.kao.f_koe_hoho();
} else if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_end1b(30);
f_iki();
} else {
f_go_end2(30);
}
}
break;
joujitu_s4 = joujitu_s4 + 2;
if (nextframenum == 0) {
f_go_end1b(2);
this.kao.mayuptn = 0;
this.kao.kaoischg = true;
}
break;
joujitu_s4 = joujitu_s4 + 1;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
} else {
if (nextframenum == 0) {
this.gotoAndStop("s4n");
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && m_click) || (m_befoflamespacedown && spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || spasekeydown) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.houtimode = false;
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (nextframenum == 0) {
this.gotoAndStop("s4n");
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || spasekeydown) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.houtimode = false;
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
}
if (nextframenum == 0) {
this.kao.f_hiki();
f_go_hiki(1);
}
break;
if (((!m_befoflameclickon) && (m_click)) || ((!m_befoflamespacedown) && (spasekeydown))) {
f_go_hiki(2);
f_hikikoe();
}
if (nextframenum == 0) {
if (_root.irisup > 100) {
_root.irisup = 0;
}
if (m_click || (spasekeydown)) {
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
f_go_end2(30);
} else {
f_go_def(8);
}
}
break;
if (keirentime < _root.s4time) {
if (syaseicnt == 200) {
f_go_end3();
keirentime = _root.s4time + 200;
f_koe_syasei();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
break;
}
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
f_go_end3();
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
break;
}
} else {
if ((!m_click) && (!spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.mabatakiflg = false;
this.kao.f_koe_hoho();
} else if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_end1b(30);
f_iki();
} else {
f_go_end2(30);
}
}
break;
joujitu_s4 = joujitu_s4 + 2;
if (nextframenum == 0) {
f_go_end1b(2);
this.kao.mayuptn = 0;
this.kao.kaoischg = true;
}
break;
joujitu_s4 = joujitu_s4 + 1;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
} else {
if (nextframenum == 0) {
this.gotoAndStop("s4n");
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || spasekeydown) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.houtimode = false;
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (nextframenum == 0) {
this.gotoAndStop("s4n");
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && (spasekeydown))) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || (spasekeydown)) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.houtimode = false;
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
}
if (nextframenum == 0) {
if ((m_click || (_root.automode)) || (spasekeydown)) {
f_go_piston();
} else {
this.kao.maegami.gotoAndPlay("f4");
this.kao.f_koe();
f_go_def(8);
}
}
break;
case 2 :
joujitu_s4 = joujitu_s4 + 8;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
m_pistonend = true;
}
} else {
m_pistonend = true;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
m_pistonend = true;
}
if (nextframenum == 0) {
this.migititi.gotoAndPlay("titiyure");
this.hidarititi.gotoAndPlay("titiyure");
this.kao.momiager.gotoAndPlay("f3");
this.kao.momiagel.gotoAndPlay("f3");
this.kao.maegami.gotoAndPlay("f3");
_root.irisup++;
if (!_root.namida) {
namidabuff = namidabuff + _root.irisup;
if (namidabuff > 400) {
_root.namida = true;
namidabuff = 0;
}
}
if (!gomsiru) {
if (_root.m_gom) {
this.tinko.tinko.gotoAndPlay("g1");
}
gomsiru = true;
}
if ((m_click || (_root.automode)) || (spasekeydown)) {
if (m_pistonend) {
this.kao.f_tukiend();
keirentime = 0;
f_go_end1(20);
m_pistonEnded = true;
} else {
f_go_loop();
}
} else {
f_go_def(8);
}
m_pistonend = false;
} else if (nextframenum == 2) {
if (this.l_h.grip) {
this.l_h.dx = -8;
}
if (this.r_h.grip) {
this.r_h.dx = 8;
}
} else if (nextframenum == 1) {
if (this.l_h.grip) {
this.l_h.dx = -4;
}
if (this.r_h.grip) {
this.r_h.dx = 4;
}
}
break;
case 3 :
joujitu_s4 = joujitu_s4 + 4;
if (this.l_h.grip) {
this.l_h.dx = this.l_h.dx * 0.5;
}
if (this.r_h.grip) {
this.r_h.dx = this.r_h.dx * 0.5;
}
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
m_pistonend = true;
f_go_piston();
break;
}
} else {
m_pistonend = true;
f_go_piston();
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
m_pistonend = true;
f_go_piston();
} else {
if (nextframenum == 0) {
this.kao.f_hiki();
f_go_hiki(1);
}
break;
if (((!m_befoflameclickon) && (m_click)) || ((!m_befoflamespacedown) && (spasekeydown))) {
f_go_hiki(2);
f_hikikoe();
}
if (nextframenum == 0) {
if (_root.irisup > 100) {
_root.irisup = 0;
}
if (m_click || (spasekeydown)) {
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
f_go_end2(30);
} else {
f_go_def(8);
}
}
break;
if (keirentime < _root.s4time) {
if (syaseicnt == 200) {
f_go_end3();
keirentime = _root.s4time + 200;
f_koe_syasei();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
break;
}
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
f_go_end3();
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
break;
}
} else {
if ((!m_click) && (!spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.mabatakiflg = false;
this.kao.f_koe_hoho();
} else if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_end1b(30);
f_iki();
} else {
f_go_end2(30);
}
}
break;
joujitu_s4 = joujitu_s4 + 2;
if (nextframenum == 0) {
f_go_end1b(2);
this.kao.mayuptn = 0;
this.kao.kaoischg = true;
}
break;
joujitu_s4 = joujitu_s4 + 1;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
} else {
if (nextframenum == 0) {
this.gotoAndStop("s4n");
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || spasekeydown) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.houtimode = false;
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (nextframenum == 0) {
this.gotoAndStop("s4n");
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && (spasekeydown))) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || (spasekeydown)) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.houtimode = false;
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
}
if (nextframenum == 0) {
this.kao.f_hiki();
f_go_hiki(1);
}
break;
case 4 :
if (((!m_befoflameclickon) && (m_click)) || ((!m_befoflamespacedown) && (spasekeydown))) {
f_go_hiki(2);
f_hikikoe();
}
if (nextframenum == 0) {
if (_root.irisup > 100) {
_root.irisup = 0;
}
if (m_click || (spasekeydown)) {
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
f_go_end2(30);
} else {
f_go_def(8);
}
}
break;
case 6 :
if (keirentime < _root.s4time) {
if (syaseicnt == 200) {
f_go_end3();
keirentime = _root.s4time + 200;
f_koe_syasei();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
break;
}
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
f_go_end3();
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
break;
}
} else {
if ((!m_click) && (!spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.mabatakiflg = false;
this.kao.f_koe_hoho();
} else if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_end1b(30);
f_iki();
} else {
f_go_end2(30);
}
}
break;
joujitu_s4 = joujitu_s4 + 2;
if (nextframenum == 0) {
f_go_end1b(2);
this.kao.mayuptn = 0;
this.kao.kaoischg = true;
}
break;
joujitu_s4 = joujitu_s4 + 1;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
} else {
if (nextframenum == 0) {
this.gotoAndStop("s4n");
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && (spasekeydown))) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || (spasekeydown)) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.houtimode = false;
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (nextframenum == 0) {
this.gotoAndStop("s4n");
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && (spasekeydown))) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || (spasekeydown)) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.houtimode = false;
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
case 7 :
joujitu_s4 = joujitu_s4 + 2;
if (nextframenum == 0) {
f_go_end1b(2);
this.kao.mayuptn = 0;
this.kao.kaoischg = true;
}
break;
case 99 :
joujitu_s4 = joujitu_s4 + 1;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
} else {
if (nextframenum == 0) {
this.gotoAndStop("s4n");
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && (spasekeydown))) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || (spasekeydown)) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.houtimode = false;
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (nextframenum == 0) {
this.gotoAndStop("s4n");
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
case 100 :
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && (spasekeydown))) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || (spasekeydown)) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.houtimode = false;
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houtimode_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
case 101 :
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
f_joujituset();
if (m_click) {
if (f_handclick_on(this.l_h)) {
this.l_h._rotation = 0;
switch (pistonsts) {
case 1 :
f_setgriphandd(this.l_h, 10, nextframenum);
break;
case 2 :
f_setgriphandd(this.l_h, -5, nextframenum);
break;
case 3 :
this.l_h.drot = 0;
break;
case 4 :
f_setgriphandd(this.l_h, 0, nextframenum);
break;
case 99 :
f_setgriphandd(this.l_h, 0, nextframenum);
}
}
if (f_handclick_on(this.r_h)) {
this.r_h._rotation = 0;
switch (pistonsts) {
case 1 :
f_setgriphandd(this.r_h, -10, nextframenum);
break;
case 2 :
f_setgriphandd(this.r_h, 5, nextframenum);
break;
case 3 :
this.r_h.drot = 0;
break;
case 4 :
f_setgriphandd(this.r_h, 0, nextframenum);
break;
case 99 :
f_setgriphandd(this.r_h, 0, nextframenum);
}
}
} else {
f_handclick_off(this.l_h);
f_handclick_off(this.r_h);
}
f_movemc(bousi);
f_movemc(kao);
f_movemc(munekami);
f_movemc(migititi);
f_movemc(hidarititi);
f_movemc(migihiza);
f_movemc(hidarihiza);
f_movemc(manko_u);
f_movemc(tinkomask);
if (!tinkohide) {
f_movemc(osu);
f_movemc(tinko);
}
f_movemc(migimomo);
f_movemc(hidarimomo);
f_movemc(l_u_a);
f_movemc(hara);
f_movemc(dou);
f_movemc(r_u_a);
f_movemc(kami_ru);
f_movemc(kami_lu);
f_movemc(bousiback);
f_movemc(kami_ld);
f_movemc(kami_rd);
f_handmove(this.r_h);
f_handmove(this.l_h);
m_befoflameclickon = m_click;
m_befoflamespacedown = spasekeydown;
nextframenum--;
return(undefined);
}
if (nextframenum == 0) {
if (pistonstssub == 0) {
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
} else {
pistonstssub = 0;
nextframenum = 25;
f_setdparams(8, nextframenum);
}
}
nextframenum--;
if (m_click) {
f_handclick_on(this.l_h);
f_handclick_on(this.r_h);
} else {
f_handclick_off(this.l_h);
f_handclick_off(this.r_h);
}
f_movemc(bousi);
f_movemc(kao);
f_movemc(munekami);
f_movemc(migititi);
f_movemc(hidarititi);
f_movemc(migihiza);
f_movemc(hidarihiza);
f_movemc(osu);
f_movemc(manko_u);
f_movemc(tinkomask);
f_movemc(tinko);
f_movemc(migimomo);
f_movemc(hidarimomo);
f_movemc(l_u_a);
f_movemc(hara);
f_movemc(dou);
f_movemc(r_u_a);
f_movemc(kami_ru);
f_movemc(kami_lu);
f_movemc(bousiback);
f_movemc(kami_ld);
f_movemc(kami_rd);
f_handmove(this.r_h);
f_handmove(this.l_h);
if ((((!this.l_h.grip) && (_root.namida)) && (!namidahukityuu)) && (_root.eroflg[10])) {
if (this.te_namida_atari.hitTest(_root._xmouse, _root._ymouse, true)) {
if (m_click) {
this.te_namida._visible = false;
this.kao.gotoAndPlay("namidahuki");
_root.namida = false;
return(undefined);
}
this.te_namida._visible = true;
this.te_namida._x = _root._xmouse;
this.te_namida._y = _root._ymouse;
} else {
this.te_namida._visible = false;
}
}
if (((this.kao.hohocnt <= 0) && (!namidahukityuu)) && (this.kao.hohosts < 4)) {
if (syaseicnt < 200) {
if ((_root.eroflg[9] || (finished)) || (syaseicnt > 0)) {
if (m_click) {
if (this.osu.hitTest(_root._xmouse, _root._ymouse, false)) {
m_befoflameclickon = true;
this.gotoAndStop("def");
f_go_nuki1();
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
return(undefined);
}
}
}
}
var pressok = false;
if (spasekeydown) {
pressok = true;
} else if (m_click) {
if (f_mouseatari_irisu()) {
pressok = true;
}
}
if (pressok) {
m_pistonend = false;
m_pistonEnded = false;
_root.nowpistonmotion = _root.pistonmotion;
m_befoflamespacedown = spasekeydown;
m_befoflameclickon = m_click;
this.gotoAndStop("def");
f_go_hiki(6);
f_hikikoe();
return(undefined);
}
}
}
Instance of Symbol 567 MovieClip "btnautomode" in Frame 41
on (release) {
f_aotomodechg();
}
onClipEvent (load) {
function f_aotomodechg() {
if (!_root.eroflg[2]) {
return(undefined);
}
if (_root.automode) {
_root.automode = false;
gotoAndStop (1);
} else {
_root.automode = true;
gotoAndStop (2);
}
}
}
Instance of Symbol 810 MovieClip "btn_gom" in Frame 41
on (release) {
f_click();
}
onClipEvent (load) {
function f_click() {
if (!_root.eroflg[9]) {
return(undefined);
}
if (!_root.s4.tinkohide) {
return(undefined);
}
_root.m_gom = !_root.m_gom;
_root.s4.f_gomchg();
if (_root.m_gom) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 813 MovieClip "btn_sourou" in Frame 41
on (release) {
f_click();
}
onClipEvent (load) {
function f_click() {
if (!_root.eroflg[6]) {
return(undefined);
}
_root.sourou = !_root.sourou;
_root.s4.f_sourouchg();
if (_root.sourou) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 569 MovieClip "btnspdup" in Frame 41
on (release) {
f_btnspdup();
}
onClipEvent (load) {
function f_btnspdup() {
if (!_root.eroflg[3]) {
return(undefined);
}
_root.spd = Math.min(_root.spd + 1, 5);
_root.txt_spd.text = _root.spd;
}
}
Instance of Symbol 569 MovieClip "btnspddown" in Frame 41
on (release) {
f_btnspddown();
}
onClipEvent (load) {
function f_btnspddown() {
if (!_root.eroflg[3]) {
return(undefined);
}
_root.spd = Math.max(_root.spd - 1, 0);
_root.txt_spd.text = _root.spd;
}
}
Instance of Symbol 569 MovieClip "btn_pistonmotion_r" in Frame 41
on (release) {
f_btnclick();
}
onClipEvent (load) {
function f_btnclick() {
if (!_root.eroflg[4]) {
return(undefined);
}
_root.pistonmotion = _root.pistonmotion + 1;
if (_root.pistonmotion > _root.PISTONMOTHIN_MAX) {
_root.pistonmotion = _root.PISTONMOTHIN_MIN;
}
_root.txt_pistonmotion.text = _root.pistonmotion;
}
}
Instance of Symbol 569 MovieClip "btn_pistonmotion_l" in Frame 41
on (release) {
f_btnclick();
}
onClipEvent (load) {
function f_btnclick() {
if (!_root.eroflg[4]) {
return(undefined);
}
_root.pistonmotion = _root.pistonmotion - 1;
if (_root.pistonmotion < _root.PISTONMOTHIN_MIN) {
_root.pistonmotion = _root.PISTONMOTHIN_MAX;
}
_root.txt_pistonmotion.text = _root.pistonmotion;
}
}
Instance of Symbol 159 MovieClip "btnmodoru" in Frame 41
on (release) {
_root.gotoAndStop("title");
}
Frame 42
prevFrame();
Frame 45
stop();
Instance of Symbol 832 MovieClip "s6" in Frame 45
onClipEvent (load) {
function f_setdparam(obj, mcIdx, motionIdx, framenum) {
obj.dx = (_root.mcparam[mcIdx][motionIdx][0] - obj._x) / framenum;
obj.dy = (_root.mcparam[mcIdx][motionIdx][1] - obj._y) / framenum;
obj.drot = (_root.mcparam[mcIdx][motionIdx][2] - obj._rotation) / framenum;
obj.dxs = (_root.mcparam[mcIdx][motionIdx][3] - obj._xscale) / framenum;
obj.dys = (_root.mcparam[mcIdx][motionIdx][4] - obj._yscale) / framenum;
}
function f_movemc(obj) {
obj._x = obj._x + obj.dx;
obj._y = obj._y + obj.dy;
obj._rotation = obj._rotation + obj.drot;
obj._xscale = obj._xscale + obj.dxs;
obj._yscale = obj._yscale + obj.dys;
}
function f_setdparams(motionIdx, framenum) {
f_setdparam(this.bousi, 0, motionIdx, framenum);
f_setdparam(this.kao, 1, motionIdx, framenum);
f_setdparam(this.munekami, 2, motionIdx, framenum);
f_setdparam(this.migititi, 3, motionIdx, framenum);
f_setdparam(this.hidarititi, 4, motionIdx, framenum);
f_setdparam(this.r_h, 5, motionIdx, framenum);
f_setdparam(this.l_h, 6, motionIdx, framenum);
f_setdparam(this.migihiza, 7, motionIdx, framenum);
f_setdparam(this.hidarihiza, 8, motionIdx, framenum);
f_setdparam(this.osu, 9, motionIdx, framenum);
f_setdparam(this.manko_u, 10, motionIdx, framenum);
f_setdparam(this.tinkomask, 11, motionIdx, framenum);
f_setdparam(this.tinko, 12, motionIdx, framenum);
f_setdparam(this.migimomo, 13, motionIdx, framenum);
f_setdparam(this.hidarimomo, 14, motionIdx, framenum);
f_setdparam(this.l_d_a, 15, motionIdx, framenum);
f_setdparam(this.l_u_a, 16, motionIdx, framenum);
f_setdparam(this.hara, 17, motionIdx, framenum);
f_setdparam(this.dou, 18, motionIdx, framenum);
f_setdparam(this.r_d_a, 19, motionIdx, framenum);
f_setdparam(this.r_u_a, 20, motionIdx, framenum);
f_setdparam(this.kami_ru, 21, motionIdx, framenum);
f_setdparam(this.kami_lu, 22, motionIdx, framenum);
f_setdparam(this.bousiback, 23, motionIdx, framenum);
f_setdparam(this.kami_ld, 24, motionIdx, framenum);
f_setdparam(this.kami_rd, 25, motionIdx, framenum);
lastmotionidx = motionIdx;
}
function f_calc_2jou(value) {
return(value * value);
}
function f_handclick_on(objHand) {
if (!_root.eroflg[7]) {
return(undefined);
}
if (objHand.drag) {
var tmpx = (objHand._x - (lastxmouse - _root._xmouse));
var tmpy = (objHand._y - (lastymouse - _root._ymouse));
if (objHand.atari.hitTest(tmpx, tmpy, true)) {
objHand._x = tmpx;
objHand._y = tmpy;
lastxmouse = _root._xmouse;
lastymouse = _root._ymouse;
}
} else if (_root._ymouse < (objHand._y - 110)) {
} else if (objHand._y < _root._ymouse) {
} else if (_root._xmouse < (objHand._x - 40)) {
} else if ((objHand._x + 40) < _root._xmouse) {
} else {
if (objHand.grip) {
objHand.clicktime = _root.s4time + 8;
objHand.drag = true;
lastxmouse = _root._xmouse;
lastymouse = _root._ymouse;
return(true);
}
objHand.drag = true;
objHand.grip = true;
objHand.gotoAndStop(2);
objHand.clicktime = _root.s4time;
lastxmouse = _root._xmouse;
lastymouse = _root._ymouse;
}
return(false);
}
function f_handclick_off(objHand) {
objHand.drag = false;
if (objHand.grip) {
if (objHand.clicktime > _root.s4time) {
objHand.grip = false;
objHand.modorityu = true;
objHand.gotoAndStop(1);
}
}
}
function f_setgriphandd(objHand, rot, framenum) {
objHand.drot = (rot - objHand._rotation) / framenum;
}
function f_handmove(objHand) {
var armmove = false;
var objUA = objHand.u_a;
var objDA = objHand.d_a;
if (objHand.grip) {
armmove = true;
if (pistonsts > 0) {
objHand._rotation = objHand._rotation + objHand.drot;
var tmpx = (objHand._x + objHand.dx);
var tmpy = (objHand._y + objHand.dy);
if (objHand.atari.hitTest(tmpx, tmpy, true)) {
objHand._x = tmpx;
objHand._y = tmpy;
}
}
} else if (objHand.modorityu) {
armmove = true;
var mcIdx = objHand.mcIdx;
var tmpx = objHand._x;
var tmpy = objHand._y;
var tagx = _root.mcparam[mcIdx][lastmotionidx][0];
var tagy = _root.mcparam[mcIdx][lastmotionidx][1];
var tagrot = _root.mcparam[mcIdx][lastmotionidx][2];
if (objHand._x < (tagx - 4)) {
} else if (tagx < (objHand._x - 4)) {
} else if (objHand._y < (tagy - 4)) {
} else if (tagy < (objHand._y - 4)) {
} else {
objHand._x = tagx;
objHand._y = tagy;
f_setdparam(objHand, objHand.mcIdx, lastmotionidx, nextframenum);
objDA.dx = 0;
objDA.dy = 0;
objDA.drot = 0;
objHand.modorityu = false;
}
if (objHand.modorityu) {
objHand._x = objHand._x + ((tagx - objHand._x) * 0.2);
objHand._y = objHand._y + ((tagy - objHand._y) * 0.2);
objHand._rotation = objHand._rotation + ((tagrot - objHand._rotation) * 0.2);
}
} else {
f_movemc(objHand);
f_movemc(objDA);
}
if (armmove) {
var loopnum = 0;
if (pistonsts > 0) {
loopnum = 8;
} else {
loopnum = 1;
}
i = loopnum;
while (i > 0) {
var tmpx = (objHand._x - objUA._x);
var tmpy = (objHand._y - objUA._y);
var L = Math.sqrt(f_calc_2jou(tmpx) + f_calc_2jou(tmpy));
var theta = Math.atan2(objUA._y - objHand._y, objUA._x - objHand._x);
var tmpcosalph = ((((L * L) + objHand.r2) - objUA.r2) / ((2 * L) * objHand.r));
var alph = Math.acos(tmpcosalph);
if (objHand.isLeft) {
alph = alph * -1;
}
var px2 = (objHand._x + (objHand.r * Math.cos(theta + alph)));
var py2 = (objHand._y + (objHand.r * Math.sin(theta + alph)));
objDA._x = px2;
objDA._y = py2;
objDA._rotation = ((((theta + alph) * 180) / Math.PI) + 180) - objDA.defrot;
objUA._rotation = ((Math.atan2(objDA._y - objUA._y, objDA._x - objUA._x) * 180) / Math.PI) - objUA.defrot;
if (i == 1) {
break;
}
if (objHand.isLeft) {
if (objUA._rotation < 20) {
break;
}
} else if (objUA._rotation > -20) {
break;
}
objHand._y = objHand._y - 2;
i--;
}
}
return(armmove);
}
function f_go_piston() {
this.migititi.gotoAndPlay("start");
this.hidarititi.gotoAndPlay("start");
this.kao.momiager.gotoAndPlay("f2");
this.kao.momiagel.gotoAndPlay("f2");
this.kao.maegami.gotoAndPlay("f2");
pistonsts = 2;
if (_root.pistonmotion == 0) {
nextframenum = 2 + _root.spd;
f_setdparams(2, nextframenum);
} else {
if (_root.nowpistonmotion == 0) {
nextframenum = _root.spd + 2;
} else {
nextframenum = Math.max(_root.spd, 1);
}
f_setdparams(28, nextframenum);
}
_root.nowpistonmotion = _root.pistonmotion;
if (this.l_h.grip) {
f_setgriphandd(l_h, -5, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 1;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 5, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 1;
}
m_allclickon = true;
}
function f_go_hiki(framenum) {
this.kao.maegami.gotoAndPlay("f1");
pistonsts = 1;
if (_root.pistonmotion == 0) {
nextframenum = framenum + _root.spd;
f_setdparams(1, nextframenum);
} else {
if (_root.nowpistonmotion == 0) {
nextframenum = _root.spd + 2;
} else {
nextframenum = Math.max(1, (framenum + _root.spd) - 1);
}
f_setdparams(27, nextframenum);
}
_root.nowpistonmotion = _root.pistonmotion;
if (this.l_h.grip) {
f_setgriphandd(l_h, 10, nextframenum);
this.l_h.dx = 1;
this.l_h.dy = 1;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -10, nextframenum);
this.r_h.dx = -1;
this.r_h.dy = 1;
}
m_allclickon = true;
}
function f_go_loop(framenum) {
this.kao.f_tuki();
pistonsts = 3;
if (_root.pistonmotion == 0) {
nextframenum = Math.max(_root.spd, 1);
f_setdparams(3, nextframenum);
} else {
if (_root.nowpistonmotion == 0) {
nextframenum = _root.spd + 2;
} else {
nextframenum = Math.max(_root.spd - 1, 1);
}
f_setdparams(29, nextframenum);
}
_root.nowpistonmotion = _root.pistonmotion;
if (this.l_h.grip) {
f_setgriphandd(l_h, 0, nextframenum);
this.l_h.dx = -2;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 0, nextframenum);
this.r_h.dx = 2;
this.r_h.dy = 0;
}
m_allclickon = true;
}
function f_go_def(framenum) {
pistonsts = 99;
nextframenum = framenum + _root.spd;
f_setdparams(0, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 0, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 0, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
m_allclickon = true;
}
function f_go_end1(framenum) {
pistonsts = 4;
pistonstssub = 0;
nextframenum = framenum;
f_setdparams(5, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 40, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -40, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
m_allclickon = true;
}
function f_go_end1b(framenum) {
pistonsts = 6;
pistonstssub = 0;
nextframenum = framenum;
f_setdparams(5, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 40, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -40, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_end2(framenum) {
pistonsts = 6;
pistonstssub = 1;
nextframenum = framenum;
f_setdparams(6, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 39, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -39, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_end3() {
pistonsts = 7;
nextframenum = 2;
this.migititi.gotoAndPlay("titiyure");
this.hidarititi.gotoAndPlay("titiyure");
f_setdparams(7, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 40, nextframenum);
this.l_h.dx = 2;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -40, nextframenum);
this.r_h.dx = -2;
this.r_h.dy = 0;
}
}
function f_go_nuki1() {
pistonsts = 100;
pistonstssub = 1;
nextframenum = 20;
f_setdparams(10, nextframenum);
f_ikiiki();
if (this.l_h.grip) {
f_setgriphandd(l_h, 20, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 2;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -20, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 2;
}
}
function f_go_nuki2() {
pistonsts = 100;
pistonstssub = 2;
nextframenum = 20;
f_setdparams(11, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 22, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -22, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_nuki3() {
pistonsts = 100;
pistonstssub = 3;
nextframenum = 2;
this.tinko.setMask(null);
this.tinko.swapDepths(this.manko_u);
this.tinkomask._visible = false;
this.manko_u.gotoAndStop(2);
var obj = this.manko_u.attachMovie("mankoanime2", "mankoanime2", 2);
obj._x = -1;
obj._y = 1;
this.tinko.gotoAndPlay("nuke");
f_setdparams(12, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 25, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 2;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -25, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 2;
}
this.kao.mayuptn = 1;
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
f_nukikoe();
if (_root.m_gom) {
if (finished) {
this.tinko.tinko.gotoAndPlay("g2");
} else {
this.tinko.tinko.gotoAndStop("g4");
}
}
}
function f_go_nuki4() {
pistonsts = 100;
pistonstssub = 4;
nextframenum = 3;
f_setdparams(13, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 25, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -25, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_nuki5(framenum) {
pistonsts = 100;
pistonstssub = 5;
nextframenum = framenum;
f_setdparams(14, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 30, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -30, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_nuki6(framenum) {
pistonsts = 100;
pistonstssub = 6;
nextframenum = framenum;
f_setdparams(15, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 31, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -31, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_nuki7() {
pistonsts = 100;
pistonstssub = 6;
nextframenum = 2;
f_setdparams(16, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 31, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -31, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_tinkoin0() {
pistonsts = 101;
pistonstssub = 0;
nextframenum = 10;
f_setdparams(25, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 24, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = -1;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -24, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = -1;
}
}
function f_go_tinkoin1() {
pistonsts = 101;
pistonstssub = 1;
nextframenum = 2;
f_setdparams(17, nextframenum);
f_koe_tinkoinmae();
this.kao.f_hiki();
if (this.l_h.grip) {
f_setgriphandd(l_h, 25, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = -1;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -25, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = -1;
}
}
function f_go_tinkoin2() {
pistonsts = 101;
pistonstssub = 2;
nextframenum = 10;
f_setdparams(18, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, 26, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -26, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_tinkoin3() {
pistonsts = 101;
pistonstssub = 3;
nextframenum = 10;
f_setdparams(19, nextframenum);
this.manko_u.gotoAndStop(2);
this.manko_u.mankotoji.removeMovieClip();
var obj = this.manko_u.attachMovie("mankoanime1", "mankoanime1", 1);
obj._x = -1;
obj._y = 1;
if (this.l_h.grip) {
f_setgriphandd(l_h, 10, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 1;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -10, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 1;
}
}
function f_go_tinkoin4() {
pistonsts = 101;
pistonstssub = 4;
nextframenum = 20;
f_setdparams(20, nextframenum);
this.tinko.swapDepths(this.manko_u);
this.manko_u.gotoAndStop(1);
this.tinko.setMask(this.tinkomask);
this.tinkomask._visible = true;
this.kao.f_tuki();
if (this.l_h.grip) {
f_setgriphandd(l_h, 15, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, -15, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_tinkoin5() {
pistonsts = 101;
pistonstssub = 5;
nextframenum = 4;
f_setdparams(21, nextframenum);
this.kao.f_hiki();
if (this.l_h.grip) {
f_setgriphandd(l_h, -10, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 10, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_tinkoin6() {
pistonsts = 101;
pistonstssub = 6;
nextframenum = 4;
this.kao.f_tuki();
f_setdparams(22, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, -5, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 5, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_tinkoin7() {
pistonsts = 101;
pistonstssub = 7;
nextframenum = 4;
f_setdparams(23, nextframenum);
this.kao.f_hiki();
if (this.l_h.grip) {
f_setgriphandd(l_h, -5, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 5, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_go_tinkoin8() {
pistonsts = 101;
pistonstssub = 8;
nextframenum = 11;
f_setdparams(24, nextframenum);
if (this.l_h.grip) {
f_setgriphandd(l_h, -1, nextframenum);
this.l_h.dx = 0;
this.l_h.dy = 0;
}
if (this.r_h.grip) {
f_setgriphandd(r_h, 1, nextframenum);
this.r_h.dx = 0;
this.r_h.dy = 0;
}
}
function f_hikikoe() {
_root.se_01.stop();
var rnd;
if (_root.kutiptn == 1) {
rnd = Math.floor(Math.random() * 6);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
lastkoe = rnd;
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi3");
break;
case 1 :
_root.se_01.attachSound("aegi1");
break;
case 2 :
_root.se_01.attachSound("aegi7");
break;
case 3 :
_root.se_01.attachSound("aegi9");
break;
case 4 :
_root.se_01.attachSound("aegi13");
break;
case 5 :
_root.se_01.attachSound("a3[53].mp3");
}
} else {
rnd = Math.floor(Math.random() * 5);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
lastkoe = rnd;
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi2");
break;
case 1 :
_root.se_01.attachSound("aegi6");
break;
case 2 :
_root.se_01.attachSound("aegi8");
break;
case 3 :
_root.se_01.attachSound("a3[26].mp3");
break;
case 4 :
_root.se_01.attachSound("a3[27].mp3");
}
_root.kutiptn = 2;
}
lastkoe = rnd;
_root.se_01.start(0, 1);
this.kao.kuti.gotoAndStop(_root.kutiptn);
}
function f_nukikoe() {
if (!_root.se_01isEnd) {
return(undefined);
}
_root.se_01.stop();
var rnd = Math.floor(Math.random() * 4);
if (lastkoe == rnd) {
rnd = rnd - 1;
}
lastkoe = rnd;
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi_hoho2");
_root.kutiptn = 1;
break;
case 1 :
_root.se_01.attachSound("aegi_hoho1");
_root.kutiptn = 2;
break;
case 2 :
_root.se_01.attachSound("aegi19");
_root.kutiptn = 2;
break;
case 3 :
_root.se_01.attachSound("aegi11");
_root.kutiptn = 1;
break;
default :
_root.se_01.attachSound("aegi_hoho1");
_root.kutiptn = 1;
}
lastkoe = rnd;
_root.se_01.start(0, 1);
this.kao.kuti.gotoAndStop(_root.kutiptn);
}
function f_koe_tinkoinmae() {
if (!_root.se_01isEnd) {
return(undefined);
}
_root.kutiptn = Math.floor(Math.random() * 2);
this.kao.kuti.gotoAndStop(_root.kutiptn);
_root.se_01.stop();
var rnd = 0;
if (_root.kutiptn == 0) {
rnd = Math.floor(Math.random() * 16);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi1");
break;
case 1 :
_root.se_01.attachSound("aegi3");
break;
case 2 :
_root.se_01.attachSound("aegi4");
break;
case 3 :
_root.se_01.attachSound("aegi5");
break;
case 4 :
_root.se_01.attachSound("aegi13");
break;
case 5 :
_root.se_01.attachSound("aegi18");
break;
case 6 :
_root.se_01.attachSound("aegi20");
break;
case 7 :
_root.se_01.attachSound("a3[28].mp3");
break;
case 8 :
_root.se_01.attachSound("a3[29].mp3");
break;
case 9 :
_root.se_01.attachSound("a3[32].mp3");
break;
case 10 :
_root.se_01.attachSound("a3[35].mp3");
break;
case 11 :
_root.se_01.attachSound("a3[36].mp3");
break;
case 12 :
_root.se_01.attachSound("a3[37].mp3");
break;
case 13 :
_root.se_01.attachSound("a3[39].mp3");
break;
case 14 :
_root.se_01.attachSound("hiki1");
break;
case 15 :
_root.se_01.attachSound("aegi_hoho2");
_root.kutiptn = 1;
break;
default :
_root.se_01.attachSound("a3[39].mp3");
_root.kutiptn = 1;
}
lastkoe = rnd;
} else {
rnd = Math.floor(Math.random() * 16);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi2");
break;
case 1 :
_root.se_01.attachSound("aegi6");
break;
case 2 :
_root.se_01.attachSound("aegi8");
break;
case 3 :
_root.se_01.attachSound("aegi7");
break;
case 4 :
_root.se_01.attachSound("aegi19");
break;
case 5 :
_root.se_01.attachSound("a3[21].mp3");
break;
case 6 :
_root.se_01.attachSound("a3[24].mp3");
break;
case 7 :
_root.se_01.attachSound("a3[25].mp3");
break;
case 8 :
_root.se_01.attachSound("a3[26].mp3");
break;
case 9 :
_root.se_01.attachSound("a3[27].mp3");
break;
case 10 :
_root.se_01.attachSound("aegi26");
break;
case 11 :
_root.se_01.attachSound("aegi3_4");
break;
case 12 :
_root.se_01.attachSound("aegi3_5");
break;
case 13 :
_root.se_01.attachSound("aegi_hoho1");
_root.kutiptn = 2;
break;
case 14 :
_root.se_01.attachSound("aegi_t1");
_root.kutiptn = 2;
break;
case 15 :
_root.se_01.attachSound("aegi_t2");
_root.kutiptn = 2;
break;
default :
_root.se_01.attachSound("aegi_t2");
_root.kutiptn = 1;
}
}
_root.se_01.start(0, 1);
}
function f_joujituset() {
if (!_root.eroflg[5]) {
return(undefined);
}
if (syaseicnt == 0) {
if (joujitu_s4 > JOUJITU_MAX) {
_root.bar._xscale = 100;
_root.bar.duplicateMovieClip("syaseibar", 1);
var color_obj = new Color(_root.syaseibar);
color_obj.setRGB(16777215);
_root.syaseibar._xscale = 0;
syaseicnt = 1;
} else {
_root.bar._xscale = (joujitu_s4 / JOUJITU_MAX) * 100;
}
}
}
function f_koe_syasei() {
switch (_root.kutiptn) {
case 1 :
if (_root.irisup < 10) {
rnd = Math.floor(Math.random() * 7);
} else if (_root.irisup < 20) {
rnd = Math.floor(Math.random() * 10);
} else if (_root.irisup < 30) {
rnd = Math.floor(Math.random() * 14);
} else if (_root.irisup < 40) {
rnd = 7 + Math.floor(Math.random() * 8);
} else if (_root.irisup < 50) {
rnd = 10 + Math.floor(Math.random() * 10);
} else {
rnd = 15 + Math.floor(Math.random() * 7);
}
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi1");
break;
case 1 :
_root.se_01.attachSound("aegi4");
break;
case 2 :
_root.se_01.attachSound("aegi9");
break;
case 3 :
_root.se_01.attachSound("aegi11");
break;
case 4 :
_root.se_01.attachSound("aegi13");
break;
case 5 :
_root.se_01.attachSound("aegi17");
break;
case 6 :
_root.se_01.attachSound("aegi18");
break;
case 7 :
_root.se_01.attachSound("a3[32].mp3");
break;
case 8 :
_root.se_01.attachSound("a3[33].mp3");
break;
case 9 :
_root.se_01.attachSound("a3[34].mp3");
break;
case 10 :
_root.se_01.attachSound("a3[37].mp3");
break;
case 11 :
_root.se_01.attachSound("a3[39].mp3");
break;
case 12 :
_root.se_01.attachSound("a3[23].mp3");
break;
case 13 :
_root.se_01.attachSound("aegi23");
break;
case 14 :
_root.se_01.attachSound("aegi3_2");
break;
case 15 :
_root.se_01.attachSound("aegic2_1");
break;
case 16 :
_root.se_01.attachSound("aegic2_2");
break;
case 17 :
_root.se_01.attachSound("aegic2_3");
break;
case 18 :
_root.se_01.attachSound("aegic2_5");
break;
case 19 :
_root.se_01.attachSound("aegic2_6");
break;
case 20 :
_root.se_01.attachSound("aegic2_7");
break;
default :
_root.se_01.attachSound("aegi23");
}
break;
case 2 :
if (_root.irisup < 5) {
rnd = Math.floor(Math.random() * 5);
} else if (_root.irisup < 10) {
rnd = Math.floor(Math.random() * 8);
} else if (_root.irisup < 20) {
rnd = Math.floor(Math.random() * 10);
} else {
rnd = 4 + Math.floor(Math.random() * 9);
}
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi2");
break;
case 1 :
_root.se_01.attachSound("aegi6");
break;
case 2 :
_root.se_01.attachSound("aegi8");
break;
case 3 :
_root.se_01.attachSound("aegi7");
break;
case 4 :
_root.se_01.attachSound("aegi_hoho1");
break;
case 5 :
_root.se_01.attachSound("a3[21].mp3");
break;
case 6 :
_root.se_01.attachSound("a3[22].mp3");
break;
case 7 :
_root.se_01.attachSound("a3[24].mp3");
break;
case 8 :
_root.se_01.attachSound("aegi22");
break;
case 9 :
_root.se_01.attachSound("aegi26");
break;
case 10 :
_root.se_01.attachSound("aegi3_4");
break;
case 11 :
_root.se_01.attachSound("aegi3_5");
break;
case 12 :
_root.se_01.attachSound("aegi3_10");
break;
default :
_root.se_01.attachSound("aegi_hoho1");
}
break;
case 3 :
case 4 :
rnd = Math.floor(Math.random() * 7);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 1 :
_root.se_01.attachSound("aegi4_2");
break;
case 2 :
_root.se_01.attachSound("aegi_t1");
break;
case 3 :
_root.se_01.attachSound("aegi_t2");
break;
case 4 :
_root.se_01.attachSound("aegi_t3");
break;
case 5 :
_root.se_01.attachSound("aegi_t4");
break;
case 6 :
_root.se_01.attachSound("aegi_t5");
}
break;
case 5 :
if (_root.irisup < 5) {
rnd = Math.floor(Math.random() * 5);
} else if (_root.irisup < 10) {
rnd = Math.floor(Math.random() * 8);
} else if (_root.irisup < 20) {
rnd = Math.floor(Math.random() * 10);
} else if (_root.irisup < 30) {
rnd = 4 + Math.floor(Math.random() * 9);
} else if (_root.irisup < 40) {
rnd = 4 + Math.floor(Math.random() * 15);
}
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi2");
break;
case 1 :
_root.se_01.attachSound("aegi6");
break;
case 2 :
_root.se_01.attachSound("aegi8");
break;
case 3 :
_root.se_01.attachSound("aegi7");
break;
case 4 :
_root.se_01.attachSound("aegi_hoho1");
break;
case 5 :
_root.se_01.attachSound("a3[21].mp3");
break;
case 6 :
_root.se_01.attachSound("a3[22].mp3");
break;
case 7 :
_root.se_01.attachSound("a3[24].mp3");
break;
case 8 :
_root.se_01.attachSound("aegi22");
break;
case 9 :
_root.se_01.attachSound("aegi26");
break;
case 10 :
_root.se_01.attachSound("aegi3_4");
break;
case 11 :
_root.se_01.attachSound("aegi3_5");
break;
case 12 :
_root.se_01.attachSound("aegi3_10");
break;
case 13 :
_root.se_01.attachSound("aegi4_2");
break;
case 14 :
_root.se_01.attachSound("aegi_t1");
break;
case 15 :
_root.se_01.attachSound("aegi_t2");
break;
case 16 :
_root.se_01.attachSound("aegi_t3");
break;
case 17 :
_root.se_01.attachSound("aegi_t4");
break;
case 18 :
_root.se_01.attachSound("aegi_t5");
break;
default :
_root.se_01.attachSound("aegi_hoho1");
}
}
lastkoe = rnd;
_root.se_01.stop();
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
function f_ikiiki() {
var rnd = Math.floor(Math.random() * 4);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("iki_b1");
break;
case 1 :
_root.se_01.attachSound("iki_b2");
break;
case 2 :
_root.se_01.attachSound("iki_b3");
break;
case 3 :
_root.se_01.attachSound("iki_b4");
}
lastkoe = rnd;
_root.se_01.stop();
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
function f_iki() {
if (!_root.se_01isEnd) {
return(undefined);
}
var rnd = Math.floor(Math.random() * 8);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("iki_a1");
break;
case 1 :
_root.se_01.attachSound("iki_a2");
break;
case 2 :
_root.se_01.attachSound("iki_a3");
break;
case 3 :
_root.se_01.attachSound("iki_a4");
break;
case 4 :
_root.se_01.attachSound("iki_a5");
break;
case 5 :
_root.se_01.attachSound("iki_a6");
break;
case 6 :
_root.se_01.attachSound("iki_a7");
break;
case 7 :
_root.se_01.attachSound("iki_a8");
}
lastkoe = rnd;
_root.se_01.stop();
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
function f_mouseatari_irisu() {
if (_root._xmouse < 205) {
} else if (369 < _root._xmouse) {
} else if (_root._ymouse < 280) {
} else if (680 < _root._ymouse) {
} else {
return(true);
}
return(false);
}
function f_gomchg() {
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
} else {
this.tinko.tinko.gotoAndStop("nomal");
}
}
function f_sourouchg() {
if (_root.sourou) {
JOUJITU_MAX = 200;
} else {
JOUJITU_MAX = 2000;
}
JOUJITU_MAXWARU1000 = JOUJITU_MAX / 1000;
}
_root.btn_sourou._visible = _root.eroflg[6];
_root.btnautomode._visible = _root.eroflg[2];
_root.btnspdup._visible = _root.eroflg[3];
_root.btnspddown._visible = _root.eroflg[3];
_root.txt_spd._visible = _root.eroflg[3];
_root.btn_pistonmotion_r._visible = _root.eroflg[4];
_root.btn_pistonmotion_l._visible = _root.eroflg[4];
_root.txt_pistonmotion._visible = _root.eroflg[4];
if (_root.nowstage != 6) {
this.swapDepths(20000);
this.removeMovieClip();
return(undefined);
}
namidahukityuu = false;
pistonsts = 0;
pistonstssub = 0;
m_pistonEnded = false;
nextframenum = 0;
m_allclickon = false;
m_befoflameclickon = false;
_root.spd = 2;
_root.pistonmotion = 0;
_root.nowpistonmotion = 0;
_root.PISTONMOTHIN_MIN = 0;
_root.PISTONMOTHIN_MAX = 1;
_root.txt_pistonmotion.text = _root.pistonmotion;
_root.txt_spd.text = _root.spd;
_root.s4time = 0;
_root.irisup = 0;
_root.namida = false;
namidabuff = 0;
_root.automode = false;
_root.hohogo = false;
_root.m_gom = false;
this.tinko.tinko.gotoAndStop("nomal");
gomsiru = true;
_root.kutiptn = 6;
syaseicnt = 0;
syaseitime = 0;
syaseinum = 0;
syaseip = 0;
MAXSYASEIP = 100;
SYASEIGAMAN = 50;
finished = false;
lastmotionidx = 0;
keirennum = 0;
tinkoout = false;
tinkohide = false;
nownakadasinum = 0;
joujitu_s4 = 0;
_root.sourou = false;
f_sourouchg();
f_joujituset();
lastkoe = 0;
bousi.mcIdx = 0;
kao.mcIdx = 1;
munekami.mcIdx = 2;
migititi.mcIdx = 3;
hidarititi.mcIdx = 4;
r_h.mcIdx = 5;
l_h.mcIdx = 6;
migihiza.mcIdx = 7;
hidarihiza.mcIdx = 8;
osu.mcIdx = 9;
manko_u.mcIdx = 10;
tinkomask.mcIdx = 11;
tinko.mcIdx = 12;
migimomo.mcIdx = 13;
hidarimomo.mcIdx = 14;
l_d_a.mcIdx = 15;
l_u_a.mcIdx = 16;
hara.mcIdx = 17;
dou.mcIdx = 18;
r_d_a.mcIdx = 19;
r_u_a.mcIdx = 20;
kami_ru.mcIdx = 21;
kami_lu.mcIdx = 22;
bousiback.mcIdx = 23;
kami_ld.mcIdx = 24;
kami_rd.mcIdx = 25;
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
this.tinko.setMask(this.tinkomask);
this.osu.stop();
this.manko_u.stop();
this.l_h.gotoAndStop(1);
this.l_h.grip = false;
this.l_h.drag = false;
this.l_h.clicktime = 0;
this.l_h.defx = this.l_h._x;
this.l_h.defy = this.l_h._y;
this.l_h.modorityu = false;
this.l_h.atari = this.atari_l_h;
this.l_h.u_a = this.l_u_a;
this.l_h.d_a = this.l_d_a;
this.l_h.isLeft = true;
this.l_h.r = Math.sqrt(f_calc_2jou(l_h._x - l_d_a._x) + f_calc_2jou(l_h._y - l_d_a._y));
this.l_h.r2 = f_calc_2jou(this.l_h.r);
this.l_u_a.r = Math.sqrt(f_calc_2jou(l_u_a._x - l_d_a._x) + f_calc_2jou(l_u_a._y - l_d_a._y));
this.l_u_a.defrot = (Math.atan2(l_d_a._y - l_u_a._y, l_d_a._x - l_u_a._x) * 180) / Math.PI;
this.l_d_a.defrot = (Math.atan2(l_h._y - l_d_a._y, l_h._x - l_d_a._x) * 180) / Math.PI;
this.l_u_a.r2 = f_calc_2jou(this.l_u_a.r);
this.r_h.gotoAndStop(1);
this.r_h.grip = false;
this.r_h.drag = false;
this.r_h.clicktime = 0;
this.r_h.defx = this.r_h._x;
this.r_h.defy = this.r_h._y;
this.r_h.modorityu = false;
this.r_h.atari = this.atari_r_h;
this.r_h.u_a = this.r_u_a;
this.r_h.d_a = this.r_d_a;
this.r_h.isLeft = false;
this.r_h.r = Math.sqrt(f_calc_2jou(r_h._x - r_d_a._x) + f_calc_2jou(r_h._y - r_d_a._y));
this.r_h.r2 = f_calc_2jou(this.r_h.r);
this.r_u_a.r = Math.sqrt(f_calc_2jou(r_u_a._x - r_d_a._x) + f_calc_2jou(r_u_a._y - r_d_a._y));
this.r_u_a.defrot = (Math.atan2(r_d_a._y - r_u_a._y, r_d_a._x - r_u_a._x) * 180) / Math.PI;
this.r_d_a.defrot = (Math.atan2(r_h._y - r_d_a._y, r_h._x - r_d_a._x) * 180) / Math.PI;
this.r_u_a.r2 = f_calc_2jou(this.r_u_a.r);
lastxmouse = _root._xmouse;
lastymouse = _root._ymouse;
this.stop();
this.kao.f_houti_on();
}
onClipEvent (mouseUp) {
m_click = false;
}
onClipEvent (mouseDown) {
m_click = true;
}
onClipEvent (keyDown) {
m_keydown = true;
if (Key.isDown(38)) {
_root.btnspdup.f_btnspdup();
}
if (Key.isDown(40)) {
_root.btnspddown.f_btnspddown();
}
if (Key.isDown(37)) {
_root.btn_pistonmotion_l.f_btnclick();
}
if (Key.isDown(39)) {
_root.btn_pistonmotion_r.f_btnclick();
}
if (Key.isDown(65)) {
_root.btnautomode.f_aotomodechg();
}
if (key.isDown(86)) {
if (_root.eroflg[6]) {
_root.btn_sourou._visible = !_root.btn_sourou._visible;
}
if (_root.eroflg[2]) {
_root.btnautomode._visible = !_root.btnautomode._visible;
}
if (_root.eroflg[3]) {
_root.btnspdup._visible = !_root.btnspdup._visible;
_root.btnspddown._visible = !_root.btnspddown._visible;
_root.txt_spd._visible = !_root.txt_spd._visible;
}
if (_root.eroflg[4]) {
_root.btn_pistonmotion_r._visible = !_root.btn_pistonmotion_r._visible;
_root.btn_pistonmotion_l._visible = !_root.btn_pistonmotion_l._visible;
_root.txt_pistonmotion._visible = !_root.txt_pistonmotion._visible;
}
_root.btnmodoru._visible = !_root.btnmodoru._visible;
}
}
onClipEvent (keyUp) {
m_keydown = false;
}
onClipEvent (enterFrame) {
_root.s4time++;
var spasekeydown = Key.isDown(32);
_root.test3 = m_pistonend;
_root.test4 = (nownakadasinum + " ") + m_pistonEnded;
_root.test1 = m_befoflameclickon;
if (syaseicnt > 0) {
if (syaseicnt < SYASEIGAMAN) {
syaseicnt = syaseicnt + 1;
_root.syaseibar._xscale = (syaseicnt * 100) / SYASEIGAMAN;
} else if (syaseicnt < 200) {
joujitu_s4 = JOUJITU_MAX;
_root.bar._visible = false;
_root.syaseibar._xscale = 100;
syaseicnt = 200;
syaseinum = 0;
syaseip = MAXSYASEIP;
finished = true;
} else if (syaseicnt == 200) {
if (syaseitime < _root.s4time) {
if (syaseinum == 0) {
syaseitime = (_root.s4time + 10) + Math.floor(Math.random() * 10);
} else if (syaseinum == 1) {
syaseitime = (_root.s4time + 3) + Math.floor(Math.random() * 6);
} else if (syaseinum == 2) {
syaseitime = (_root.s4time + 10) + Math.floor(Math.random() * 10);
} else if (syaseinum == 3) {
syaseitime = _root.s4time + 3;
} else {
syaseitime = (_root.s4time + 2) + Math.floor(Math.random() * 16);
}
if ((syaseip / MAXSYASEIP) > 0.5) {
_root.se_02.attachSound("syaseisnd2");
} else {
_root.se_02.attachSound("syaseisnd1");
}
if (!tinkoout) {
if (pistonsts == 6) {
keirentime = 0;
} else {
if (pistonsts == 0) {
var rnd = Math.floor(math.random() * 3);
if (rnd == 0) {
this.kao.mabatakitime = 0;
} else {
this.kao.yosomitime = 0;
}
nextframenum = 2;
pistonstssub = 2;
f_setdparams(26, nextframenum);
}
if (_root.se_01isEnd) {
f_koe_syasei();
}
}
}
syaseip = syaseip - (((20 + Math.floor(Math.random() * 20)) * Math.max(4, 10 - syaseinum)) / 10);
if (syaseip < 0) {
syaseip = 0;
syaseicnt = 300;
syaseitime = _root.s4time + 20;
}
if ((pistons == 100) && (pistonstssub > 2)) {
this.osu.gotoAndPlay("soto");
this.tinko.gotoAndPlay("soto");
} else {
this.osu.gotoAndPlay("naka");
this.tinko.gotoAndPlay("naka");
}
_root.se_02.stop();
_root.se_02.start(0, 1);
syaseinum++;
if (!_root.m_gom) {
nownakadasinum++;
}
}
_root.syaseibar._xscale = _root.syaseibar._xscale - ((_root.syaseibar._xscale - syaseip) * 0.2);
} else if (syaseicnt == 300) {
_root.syaseibar._xscale = _root.syaseibar._xscale - ((_root.syaseibar._xscale - syaseip) * 0.2);
if (_root.syaseibar._xscale < 1) {
joujitu_s4 = 0;
syaseicnt = 0;
_root.syaseibar.removeMovieClip();
_root.bar._visible = true;
_root.bar._xscale = 0;
}
}
}
if (pistonsts > 0) {
switch (pistonsts) {
case 1 :
joujitu_s4 = joujitu_s4 + 1;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
m_pistonend = true;
f_go_piston();
break;
}
} else {
m_pistonend = true;
f_go_piston();
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
m_pistonend = true;
f_go_piston();
} else {
if (nextframenum == 0) {
if ((m_click || (_root.automode)) || (spasekeydown)) {
f_go_piston();
} else {
this.kao.maegami.gotoAndPlay("f4");
this.kao.f_koe();
f_go_def(8);
}
}
break;
joujitu_s4 = joujitu_s4 + 8;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
m_pistonend = true;
}
} else {
m_pistonend = true;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
m_pistonend = true;
}
if (nextframenum == 0) {
this.migititi.gotoAndPlay("titiyure");
this.hidarititi.gotoAndPlay("titiyure");
this.kao.momiager.gotoAndPlay("f3");
this.kao.momiagel.gotoAndPlay("f3");
this.kao.maegami.gotoAndPlay("f3");
if (!gomsiru) {
if (_root.m_gom) {
this.tinko.tinko.gotoAndPlay("g1");
}
gomsiru = true;
}
if ((m_click || (_root.automode)) || (spasekeydown)) {
if (m_pistonend) {
this.kao.f_tukiend();
keirentime = 0;
f_go_end1(20);
m_pistonEnded = true;
} else {
f_go_loop();
}
} else {
f_go_def(8);
}
m_pistonend = false;
} else if (nextframenum == 2) {
if (this.l_h.grip) {
this.l_h.dx = -8;
}
if (this.r_h.grip) {
this.r_h.dx = 8;
}
} else if (nextframenum == 1) {
if (this.l_h.grip) {
this.l_h.dx = -4;
}
if (this.r_h.grip) {
this.r_h.dx = 4;
}
}
break;
joujitu_s4 = joujitu_s4 + 4;
if (this.l_h.grip) {
this.l_h.dx = this.l_h.dx * 0.5;
}
if (this.r_h.grip) {
this.r_h.dx = this.r_h.dx * 0.5;
}
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
m_pistonend = true;
f_go_piston();
break;
}
} else {
m_pistonend = true;
f_go_piston();
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
m_pistonend = true;
f_go_piston();
} else {
if (nextframenum == 0) {
this.kao.f_hiki();
f_go_hiki(1);
}
break;
if (((!m_befoflameclickon) && (m_click)) || ((!m_befoflamespacedown) && (spasekeydown))) {
f_go_hiki(2);
f_hikikoe();
}
if (nextframenum == 0) {
if (_root.irisup > 100) {
_root.irisup = 0;
}
if (m_click || (spasekeydown)) {
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
f_go_end2(30);
} else {
f_go_def(8);
}
}
break;
if (keirentime < _root.s4time) {
if (syaseicnt == 200) {
f_go_end3();
keirentime = _root.s4time + 200;
f_koe_syasei();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
break;
}
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
f_go_end3();
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
break;
}
} else {
if ((!m_click) && (!spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.mabatakiflg = false;
this.kao.f_koe_hoho();
} else if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_end1b(30);
f_iki();
} else {
f_go_end2(30);
}
}
break;
joujitu_s4 = joujitu_s4 + 2;
if (nextframenum == 0) {
f_go_end1b(2);
this.kao.mayuptn = 0;
this.kao.kaoischg = true;
}
break;
joujitu_s4 = joujitu_s4 + 1;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
} else {
if (nextframenum == 0) {
this.kao.f_houti_on();
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
_root.mayuptn = 1;
this.kao.mayu.gotoAndStop(_root.mayuptn);
this.kao.stoplv = 0;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && m_click) || (m_befoflamespacedown && spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || spasekeydown) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.f_houti_off();
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (nextframenum == 0) {
this.kao.f_houti_on();
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
_root.mayuptn = 1;
this.kao.mayu.gotoAndStop(_root.mayuptn);
this.kao.stoplv = 0;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || spasekeydown) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.f_houti_off();
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
}
if (nextframenum == 0) {
this.kao.f_hiki();
f_go_hiki(1);
}
break;
if (((!m_befoflameclickon) && (m_click)) || ((!m_befoflamespacedown) && (spasekeydown))) {
f_go_hiki(2);
f_hikikoe();
}
if (nextframenum == 0) {
if (_root.irisup > 100) {
_root.irisup = 0;
}
if (m_click || (spasekeydown)) {
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
f_go_end2(30);
} else {
f_go_def(8);
}
}
break;
if (keirentime < _root.s4time) {
if (syaseicnt == 200) {
f_go_end3();
keirentime = _root.s4time + 200;
f_koe_syasei();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
break;
}
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
f_go_end3();
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
break;
}
} else {
if ((!m_click) && (!spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.mabatakiflg = false;
this.kao.f_koe_hoho();
} else if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_end1b(30);
f_iki();
} else {
f_go_end2(30);
}
}
break;
joujitu_s4 = joujitu_s4 + 2;
if (nextframenum == 0) {
f_go_end1b(2);
this.kao.mayuptn = 0;
this.kao.kaoischg = true;
}
break;
joujitu_s4 = joujitu_s4 + 1;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
} else {
if (nextframenum == 0) {
this.kao.f_houti_on();
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
_root.mayuptn = 1;
this.kao.mayu.gotoAndStop(_root.mayuptn);
this.kao.stoplv = 0;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || spasekeydown) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.f_houti_off();
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (nextframenum == 0) {
this.kao.f_houti_on();
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
_root.mayuptn = 1;
this.kao.mayu.gotoAndStop(_root.mayuptn);
this.kao.stoplv = 0;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && (spasekeydown))) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || (spasekeydown)) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.f_houti_off();
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
}
if (nextframenum == 0) {
if ((m_click || (_root.automode)) || (spasekeydown)) {
f_go_piston();
} else {
this.kao.maegami.gotoAndPlay("f4");
this.kao.f_koe();
f_go_def(8);
}
}
break;
case 2 :
joujitu_s4 = joujitu_s4 + 8;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
m_pistonend = true;
}
} else {
m_pistonend = true;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
m_pistonend = true;
}
if (nextframenum == 0) {
this.migititi.gotoAndPlay("titiyure");
this.hidarititi.gotoAndPlay("titiyure");
this.kao.momiager.gotoAndPlay("f3");
this.kao.momiagel.gotoAndPlay("f3");
this.kao.maegami.gotoAndPlay("f3");
if (!gomsiru) {
if (_root.m_gom) {
this.tinko.tinko.gotoAndPlay("g1");
}
gomsiru = true;
}
if ((m_click || (_root.automode)) || (spasekeydown)) {
if (m_pistonend) {
this.kao.f_tukiend();
keirentime = 0;
f_go_end1(20);
m_pistonEnded = true;
} else {
f_go_loop();
}
} else {
f_go_def(8);
}
m_pistonend = false;
} else if (nextframenum == 2) {
if (this.l_h.grip) {
this.l_h.dx = -8;
}
if (this.r_h.grip) {
this.r_h.dx = 8;
}
} else if (nextframenum == 1) {
if (this.l_h.grip) {
this.l_h.dx = -4;
}
if (this.r_h.grip) {
this.r_h.dx = 4;
}
}
break;
case 3 :
joujitu_s4 = joujitu_s4 + 4;
if (this.l_h.grip) {
this.l_h.dx = this.l_h.dx * 0.5;
}
if (this.r_h.grip) {
this.r_h.dx = this.r_h.dx * 0.5;
}
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
m_pistonend = true;
f_go_piston();
break;
}
} else {
m_pistonend = true;
f_go_piston();
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
m_pistonend = true;
f_go_piston();
} else {
if (nextframenum == 0) {
this.kao.f_hiki();
f_go_hiki(1);
}
break;
if (((!m_befoflameclickon) && (m_click)) || ((!m_befoflamespacedown) && (spasekeydown))) {
f_go_hiki(2);
f_hikikoe();
}
if (nextframenum == 0) {
if (_root.irisup > 100) {
_root.irisup = 0;
}
if (m_click || (spasekeydown)) {
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
f_go_end2(30);
} else {
f_go_def(8);
}
}
break;
if (keirentime < _root.s4time) {
if (syaseicnt == 200) {
f_go_end3();
keirentime = _root.s4time + 200;
f_koe_syasei();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
break;
}
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
f_go_end3();
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
break;
}
} else {
if ((!m_click) && (!spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.mabatakiflg = false;
this.kao.f_koe_hoho();
} else if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_end1b(30);
f_iki();
} else {
f_go_end2(30);
}
}
break;
joujitu_s4 = joujitu_s4 + 2;
if (nextframenum == 0) {
f_go_end1b(2);
this.kao.mayuptn = 0;
this.kao.kaoischg = true;
}
break;
joujitu_s4 = joujitu_s4 + 1;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
} else {
if (nextframenum == 0) {
this.kao.f_houti_on();
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
_root.mayuptn = 1;
this.kao.mayu.gotoAndStop(_root.mayuptn);
this.kao.stoplv = 0;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || spasekeydown) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.f_houti_off();
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (nextframenum == 0) {
this.kao.f_houti_on();
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
_root.mayuptn = 1;
this.kao.mayu.gotoAndStop(_root.mayuptn);
this.kao.stoplv = 0;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && (spasekeydown))) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || (spasekeydown)) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.f_houti_off();
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
}
if (nextframenum == 0) {
this.kao.f_hiki();
f_go_hiki(1);
}
break;
case 4 :
if (((!m_befoflameclickon) && (m_click)) || ((!m_befoflamespacedown) && (spasekeydown))) {
f_go_hiki(2);
f_hikikoe();
}
if (nextframenum == 0) {
if (_root.irisup > 100) {
_root.irisup = 0;
}
if (m_click || (spasekeydown)) {
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
f_go_end2(30);
} else {
f_go_def(8);
}
}
break;
case 6 :
if (keirentime < _root.s4time) {
if (syaseicnt == 200) {
f_go_end3();
keirentime = _root.s4time + 200;
f_koe_syasei();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
break;
}
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
f_go_end3();
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
break;
}
} else {
if ((!m_click) && (!spasekeydown)) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.mabatakiflg = false;
this.kao.f_koe_hoho();
} else if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_end1b(30);
f_iki();
} else {
f_go_end2(30);
}
}
break;
joujitu_s4 = joujitu_s4 + 2;
if (nextframenum == 0) {
f_go_end1b(2);
this.kao.mayuptn = 0;
this.kao.kaoischg = true;
}
break;
joujitu_s4 = joujitu_s4 + 1;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
} else {
if (nextframenum == 0) {
this.kao.f_houti_on();
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
_root.mayuptn = 1;
this.kao.mayu.gotoAndStop(_root.mayuptn);
this.kao.stoplv = 0;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && (spasekeydown))) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || (spasekeydown)) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.f_houti_off();
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (nextframenum == 0) {
this.kao.f_houti_on();
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
_root.mayuptn = 1;
this.kao.mayu.gotoAndStop(_root.mayuptn);
this.kao.stoplv = 0;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && (spasekeydown))) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || (spasekeydown)) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.f_houti_off();
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
case 7 :
joujitu_s4 = joujitu_s4 + 2;
if (nextframenum == 0) {
f_go_end1b(2);
this.kao.mayuptn = 0;
this.kao.kaoischg = true;
}
break;
case 99 :
joujitu_s4 = joujitu_s4 + 1;
if ((!m_befoflameclickon) && (m_click)) {
if (_root.automode) {
if (f_mouseatari_irisu()) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
break;
}
} else if ((!m_befoflamespacedown) && (spasekeydown)) {
f_go_piston();
if (m_pistonEnded) {
m_pistonEnded = false;
} else {
m_pistonend = true;
}
} else {
if (nextframenum == 0) {
this.kao.f_houti_on();
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
_root.mayuptn = 1;
this.kao.mayu.gotoAndStop(_root.mayuptn);
this.kao.stoplv = 0;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && (spasekeydown))) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || (spasekeydown)) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.f_houti_off();
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (nextframenum == 0) {
this.kao.f_houti_on();
pistonsts = 0;
pistonstssub = 1;
nextframenum = 25;
_root.mayuptn = 1;
this.kao.mayu.gotoAndStop(_root.mayuptn);
this.kao.stoplv = 0;
f_setdparams(9, nextframenum);
return(undefined);
}
break;
case 100 :
if (pistonstssub < 2) {
if (((!m_befoflameclickon) && (m_click)) || (m_befoflamespacedown && (spasekeydown))) {
f_go_def(8);
this.kao.mayuptn = Math.floor(Math.random() * 2);
if ((!_root.namida) && (this.kao.kaoptn == 0)) {
this.kao.stoplv = Math.floor(Math.random() * 5);
} else {
this.kao.stoplv = Math.floor(Math.random() * 6);
}
this.kao.f_koe();
break;
}
} else if (tinkohide) {
if (m_click || (spasekeydown)) {
if (this.manko_u.hitTest(_root._xmouse, _root._ymouse, false)) {
f_go_tinkoin0();
tinkohide = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = false;
}
this.osu._visible = true;
this.tinko._visible = true;
this.kao.f_houti_off();
break;
}
}
} else {
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
if (tinkoout) {
if (seiekitaretime < _root.s4time) {
seiekitaretime = Math.floor((_root.s4time + 20) + ((100 + Math.floor(Math.random() * 600)) / nownakadasinum));
if (nownakadasinum > 0) {
var obj;
if ((nownakadasinum % 2) == 0) {
obj = this.manko_u.attachMovie("seiekitare", "seiekitare" + nownakadasinum, 100 + nownakadasinum);
} else {
obj = this.manko_u.attachMovie("seiekitare2", "seiekitare2" + nownakadasinum, 100 + nownakadasinum);
}
obj._x = 24;
obj._y = -7;
nownakadasinum = Math.max(nownakadasinum - 3, 0);
}
}
}
if (nextframenum == 0) {
if (pistonstssub == 1) {
f_go_nuki2();
} else if (pistonstssub == 2) {
f_go_nuki3();
tinkoout = true;
if (nownakadasinum > 0) {
seiekitaretime = _root.s4time + Math.floor((20 + Math.floor(Math.random() * 500)) / nownakadasinum);
}
} else if (pistonstssub == 3) {
f_go_nuki4();
} else if (pistonstssub == 4) {
f_go_nuki5(20);
if (this.l_h.grip) {
this.l_h.dy = 2;
}
if (this.r_h.grip) {
this.r_h.dy = 2;
}
keirennum = 0;
keirentime = (_root.s4time + 50) + Math.floor(Math.random() * 120);
this.kao.f_houti_on();
keirennum = 0;
} else if (pistonstssub == 5) {
f_go_nuki6(30);
tinkohide = true;
finished = false;
if (_root.eroflg[9]) {
_root.btn_gom._visible = true;
}
if (_root.m_gom) {
this.tinko.tinko.gotoAndStop("g3");
gomsiru = false;
}
this.osu._visible = false;
this.tinko._visible = false;
} else if (pistonstssub == 6) {
f_go_nuki5(30);
} else if (pistonstssub == 7) {
f_go_nuki6(2);
}
} else if (pistonstssub > 4) {
if (keirentime < _root.s4time) {
if (_root.irisup < 25) {
keirentime = _root.s4time + 10000;
} else {
keirentime = (_root.s4time + 20) + Math.floor(Math.random() * (120 + ((keirennum * keirennum) * 9)));
f_ikiiki();
f_go_nuki7();
this.kao.f_eyesdown();
this.kao.mayuptn = 1;
this.kao.kaoischg = true;
keirennum++;
}
}
}
break;
case 101 :
if (nextframenum != 0) {
break;
}
if (pistonstssub == 0) {
f_go_tinkoin1();
} else if (pistonstssub == 1) {
f_go_tinkoin2();
} else if (pistonstssub == 2) {
f_go_tinkoin3();
tinkoout = false;
} else if (pistonstssub == 3) {
f_go_tinkoin4();
} else if (pistonstssub == 4) {
f_go_tinkoin5();
} else if (pistonstssub == 5) {
f_go_tinkoin6();
} else if (pistonstssub == 6) {
f_go_tinkoin7();
} else if (pistonstssub == 7) {
f_go_tinkoin8();
} else {
if (pistonstssub != 8) {
break;
}
f_go_def();
}
}
f_joujituset();
f_movemc(bousi);
f_movemc(kao);
f_movemc(munekami);
f_movemc(migititi);
f_movemc(hidarititi);
f_movemc(migihiza);
f_movemc(hidarihiza);
f_movemc(manko_u);
f_movemc(tinkomask);
if (!tinkohide) {
f_movemc(osu);
f_movemc(tinko);
}
f_movemc(migimomo);
f_movemc(hidarimomo);
f_movemc(l_u_a);
f_movemc(hara);
f_movemc(dou);
f_movemc(r_u_a);
f_movemc(kami_ru);
f_movemc(kami_lu);
f_movemc(bousiback);
f_movemc(kami_ld);
f_movemc(kami_rd);
f_handmove(this.r_h);
f_handmove(this.l_h);
m_befoflameclickon = m_click;
m_befoflamespacedown = spasekeydown;
nextframenum--;
return(undefined);
}
if (nextframenum == 0) {
if (pistonstssub == 0) {
pistonstssub = 1;
nextframenum = 25;
f_setdparams(9, nextframenum);
} else {
pistonstssub = 0;
nextframenum = 25;
f_setdparams(8, nextframenum);
}
}
nextframenum--;
f_movemc(bousi);
f_movemc(kao);
f_movemc(munekami);
f_movemc(migititi);
f_movemc(hidarititi);
f_movemc(migihiza);
f_movemc(hidarihiza);
f_movemc(osu);
f_movemc(manko_u);
f_movemc(tinkomask);
f_movemc(tinko);
f_movemc(migimomo);
f_movemc(hidarimomo);
f_movemc(l_u_a);
f_movemc(hara);
f_movemc(dou);
f_movemc(r_u_a);
f_movemc(kami_ru);
f_movemc(kami_lu);
f_movemc(bousiback);
f_movemc(kami_ld);
f_movemc(kami_rd);
f_handmove(this.r_h);
f_handmove(this.l_h);
if (((this.kao.hohocnt <= 0) && (!namidahukityuu)) && (this.kao.hohosts < 4)) {
if (syaseicnt < 200) {
if (finished || (syaseicnt > 0)) {
if (m_click) {
if (this.osu.hitTest(_root._xmouse, _root._ymouse, false)) {
m_befoflameclickon = true;
f_go_nuki1();
this.kao.mayuptn = Math.floor(Math.random() * 2);
this.kao.f_eyeschg();
this.kao.f_houti_off();
return(undefined);
}
}
}
}
var pressok = false;
if (spasekeydown) {
pressok = true;
} else if (m_click) {
if (f_mouseatari_irisu()) {
pressok = true;
}
}
if (pressok) {
m_pistonend = false;
m_pistonEnded = false;
_root.nowpistonmotion = _root.pistonmotion;
m_befoflamespacedown = spasekeydown;
m_befoflameclickon = m_click;
f_go_hiki(6);
this.kao.f_eyeschg();
this.kao.f_houti_off();
f_hikikoe();
return(undefined);
}
}
}
Instance of Symbol 813 MovieClip "btn_sourou" in Frame 45
on (release) {
f_click();
}
onClipEvent (load) {
function f_click() {
if (!_root.eroflg[6]) {
return(undefined);
}
_root.sourou = !_root.sourou;
_root.s6.f_sourouchg();
if (_root.sourou) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
Frame 46
prevFrame();
Frame 49
function f_setparam(obj, mcIdx, motionIdx) {
_root.mcparam[mcIdx][motionIdx] = new Array(5);
_root.mcparam[mcIdx][motionIdx][0] = obj._x;
_root.mcparam[mcIdx][motionIdx][1] = obj._y;
_root.mcparam[mcIdx][motionIdx][2] = obj._rotation;
_root.mcparam[mcIdx][motionIdx][3] = obj._xscale;
_root.mcparam[mcIdx][motionIdx][4] = obj._yscale;
}
_root.mcparam = new Array(26);
var i;
i = 0;
while (i < 26) {
_root.mcparam[i] = new Array();
i++;
}
var k = 0;
i = 0;
while (i < 30) {
switch (i) {
case 0 :
s4data.gotoAndStop("def");
break;
case 1 :
s4data.gotoAndStop("standby");
break;
case 2 :
s4data.gotoAndStop("a1");
break;
case 3 :
s4data.gotoAndStop("a1loop");
break;
case 4 :
s4data.gotoAndStop("a1end");
break;
case 5 :
s4data.gotoAndStop("a2end");
break;
case 6 :
s4data.gotoAndStop("a2end2");
break;
case 7 :
s4data.gotoAndStop("a2end3");
break;
case 8 :
s4data.gotoAndStop("taiki1");
break;
case 9 :
s4data.gotoAndStop("taiki2");
break;
case 10 :
s4data.gotoAndStop("nuki1");
break;
case 11 :
s4data.gotoAndStop("nuki2");
break;
case 12 :
s4data.gotoAndStop("nuki3");
break;
case 13 :
s4data.gotoAndStop("nuki4");
break;
case 14 :
s4data.gotoAndStop("nuki5");
break;
case 15 :
s4data.gotoAndStop("nuki6");
break;
case 16 :
s4data.gotoAndStop("nuki7");
break;
case 17 :
s4data.gotoAndStop("ire1");
break;
case 18 :
s4data.gotoAndStop("ire2");
break;
case 19 :
s4data.gotoAndStop("ire3");
break;
case 20 :
s4data.gotoAndStop("ire4");
break;
case 21 :
s4data.gotoAndStop("ire5");
break;
case 22 :
s4data.gotoAndStop("ire6");
break;
case 23 :
s4data.gotoAndStop("ire7");
break;
case 24 :
s4data.gotoAndStop("ire8");
break;
case 25 :
s4data.gotoAndStop("ire0");
break;
case 26 :
s4data.gotoAndStop("taiki_s");
break;
case 27 :
s4data.gotoAndStop("a2s");
break;
case 28 :
s4data.gotoAndStop("a2");
break;
case 29 :
s4data.gotoAndStop("a2loop");
}
f_setparam(s4data.bousi, 0, i);
f_setparam(s4data.kao, 1, i);
f_setparam(s4data.munekami, 2, i);
f_setparam(s4data.migititi, 3, i);
f_setparam(s4data.hidarititi, 4, i);
f_setparam(s4data.r_h, 5, i);
f_setparam(s4data.l_h, 6, i);
f_setparam(s4data.migihiza, 7, i);
f_setparam(s4data.hidarihiza, 8, i);
f_setparam(s4data.osu, 9, i);
f_setparam(s4data.manko_u, 10, i);
f_setparam(s4data.tinkomask, 11, i);
f_setparam(s4data.tinko, 12, i);
f_setparam(s4data.migimomo, 13, i);
f_setparam(s4data.hidarimomo, 14, i);
f_setparam(s4data.l_d_a, 15, i);
f_setparam(s4data.l_u_a, 16, i);
f_setparam(s4data.hara, 17, i);
f_setparam(s4data.dou, 18, i);
f_setparam(s4data.r_d_a, 19, i);
f_setparam(s4data.r_u_a, 20, i);
f_setparam(s4data.kami_ru, 21, i);
f_setparam(s4data.kami_lu, 22, i);
f_setparam(s4data.bousiback, 23, i);
f_setparam(s4data.kami_ld, 24, i);
f_setparam(s4data.kami_rd, 25, i);
i++;
}
if (_root.nowstage == 6) {
_root.gotoAndStop("s6");
} else {
_root.gotoAndStop("s4");
}
Symbol 148 MovieClip [seiekitare2] Frame 201
this.removeMovieClip();
Symbol 155 MovieClip [onpumesse1] Frame 261
this.removeMovieClip();
Instance of Symbol 163 MovieClip "mc_ari" in Symbol 168 MovieClip [mc_alb] Frame 1
on (release) {
_root.nowstage = 4;
if (_root.mcparam == undefined) {
_root.gotoAndStop("s4data");
} else {
_root.gotoAndStop("s4");
}
}
Instance of Symbol 165 MovieClip "mc_nasi" in Symbol 168 MovieClip [mc_alb] Frame 1
on (release) {
_root.nowstage = 6;
if (_root.mcparam == undefined) {
_root.gotoAndStop("s4data");
} else {
_root.gotoAndStop("s6");
}
}
Instance of Symbol 234 MovieClip "kome" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
this.nowframe = 1;
this.stop();
}
onClipEvent (enterFrame) {
if (this.nowframe == 1) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
this.gotoAndStop(2);
this.nowframe = 2;
}
} else if (!this.hitTest(_root._xmouse, _root._ymouse, false)) {
this.gotoAndStop(1);
this.nowframe = 1;
}
}
Symbol 236 MovieClip Frame 1
txt_eroflgscore1.text = _root.eroflgscore[1];
if (_root.nowscoretagptn >= 1) {
txt_eroflgscore2.text = _root.eroflgscore[2];
txt_eroflgscore3.text = _root.eroflgscore[3];
txt_eroflgscore4.text = _root.eroflgscore[4];
txt_eroflgscore5.text = _root.eroflgscore[5];
eroflgtxt2._visible = true;
eroflgtxt3._visible = true;
eroflgtxt4._visible = true;
eroflgtxt5._visible = true;
} else {
txt_eroflgscore2.text = "???";
txt_eroflgscore3.text = "???";
txt_eroflgscore4.text = "???";
txt_eroflgscore5.text = "???";
eroflgtxt2._visible = false;
eroflgtxt3._visible = false;
eroflgtxt4._visible = false;
eroflgtxt5._visible = false;
}
if (_root.nowscoretagptn >= 2) {
txt_eroflgscore6.text = _root.eroflgscore[6];
eroflgtxt6._visible = true;
} else {
txt_eroflgscore6.text = "???";
eroflgtxt6._visible = false;
}
if (!_root.eroflg[1]) {
var color_obj = new Color(this.eroflgtxt1);
color_obj.setRGB(10066329);
}
if (!_root.eroflg[2]) {
var color_obj = new Color(this.eroflgtxt2);
color_obj.setRGB(10066329);
}
if (!_root.eroflg[3]) {
var color_obj = new Color(this.eroflgtxt3);
color_obj.setRGB(10066329);
}
if (!_root.eroflg[4]) {
var color_obj = new Color(this.eroflgtxt4);
color_obj.setRGB(10066329);
}
if (!_root.eroflg[5]) {
var color_obj = new Color(this.eroflgtxt5);
color_obj.setRGB(10066329);
}
if (!_root.eroflg[6]) {
var color_obj = new Color(this.eroflgtxt6);
color_obj.setRGB(10066329);
}
if (_root.eroflg[0]) {
eroflgtxt0._visible = true;
if (_root.nowscoretagptn >= 3) {
txt_eroflgscore7.text = _root.eroflgscore[7];
txt_eroflgscore8.text = _root.eroflgscore[8];
eroflgtxt7._visible = true;
eroflgtxt8._visible = true;
} else {
txt_eroflgscore7.text = "???";
txt_eroflgscore8.text = "???";
eroflgtxt7._visible = false;
eroflgtxt8._visible = false;
}
if (_root.nowscoretagptn >= 5) {
txt_eroflgscore9.text = _root.eroflgscore[9];
eroflgtxt9._visible = true;
} else {
txt_eroflgscore9.text = "???";
eroflgtxt9._visible = false;
}
if (_root.nowscoretagptn >= 6) {
txt_eroflgscore10.text = _root.eroflgscore[10];
eroflgtxt10._visible = true;
} else {
txt_eroflgscore10.text = "???";
eroflgtxt10._visible = false;
}
if (!_root.eroflg[7]) {
var color_obj = new Color(this.eroflgtxt7);
color_obj.setRGB(10066329);
}
if (!_root.eroflg[8]) {
var color_obj = new Color(this.eroflgtxt8);
color_obj.setRGB(10066329);
}
if (!_root.eroflg[9]) {
var color_obj = new Color(this.eroflgtxt9);
color_obj.setRGB(10066329);
}
if (!_root.eroflg[10]) {
var color_obj = new Color(this.eroflgtxt10);
color_obj.setRGB(10066329);
}
} else {
txt_eroflgscore7._visible = false;
txt_eroflgscore8._visible = false;
txt_eroflgscore9._visible = false;
txt_eroflgscore10._visible = false;
eroflgtxt0._visible = false;
eroflgtxt7._visible = false;
eroflgtxt8._visible = false;
eroflgtxt9._visible = false;
eroflgtxt10._visible = false;
}
Symbol 241 MovieClip [mc_rank] Frame 1
var i = 0;
i = 0;
while (i < 10) {
eval ("this.txt_highscore" + i).text = _root.highscores[i][0];
eval ("this.txt_rensa" + i).text = _root.highscores[i][1];
eval ("this.txt_lv" + i).text = _root.highscores[i][2];
i++;
}
Symbol 252 MovieClip Frame 1
this.onEnterFrame = function () {
nParcent = (_parent._parent.getBytesLoaded() / _parent._parent.getBytesTotal()) * 100;
_xscale = nParcent;
if (_xscale == 100) {
if (_root.playchk) {
_parent._parent.gotoAndPlay("title");
} else {
_parent._parent.gotoAndPlay("main");
}
}
};
Symbol 310 MovieClip [hissatu] Frame 65
_root.se_02.attachSound("iyoo");
_root.se_02.start(0, 1);
Symbol 310 MovieClip [hissatu] Frame 79
_root.timestop = false;
_root.txt_lv.text = _root.nowlv;
this.removeMovieClip();
Symbol 321 MovieClip [em_ed1] Frame 5
gotoAndPlay (1);
Symbol 326 MovieClip [em_ed2] Frame 5
gotoAndPlay (1);
Symbol 331 MovieClip [em_ed3] Frame 5
gotoAndPlay (1);
Symbol 336 MovieClip [em_ed4] Frame 5
gotoAndPlay (1);
Instance of Symbol 337 MovieClip in Symbol 338 MovieClip [whiteout] Frame 1
onClipEvent (enterFrame) {
if (_root._root.bgmvol > 0) {
_root._root.bgmvol = _root._root.bgmvol - 5;
if (_root._root.bgmvol <= 0) {
_root._root.bgmvol = 0;
_root.se_00.stop();
} else {
_root.se_00.setVolume(_root.bgmvol);
}
}
}
Symbol 338 MovieClip [whiteout] Frame 16
_root.nowstage = 2;
_root.gotoAndStop("s2");
Symbol 338 MovieClip [whiteout] Frame 23
this.removeMovieClip();
Symbol 361 MovieClip [mankoanime1] Frame 11
this.removeMovieClip();
Symbol 362 MovieClip [mankoanime2] Frame 11
var obj = _parent.attachMovie("mankotoji", "mankotoji", 2);
obj._x = -0.5;
obj._y = 4;
this.removeMovieClip();
Symbol 366 MovieClip [seiekitare] Frame 162
this.removeMovieClip();
Instance of Symbol 337 MovieClip in Symbol 367 MovieClip [whiteout2] Frame 1
onClipEvent (enterFrame) {
if (_root._root.bgmvol > 0) {
_root._root.bgmvol = _root._root.bgmvol - 2;
if (_root._root.bgmvol <= 0) {
_root._root.bgmvol = 0;
_root.se_00.stop();
_root.se_00.stop();
_root.se_00.setVolume(100);
_root.se_00.attachSound("ruriko_intr");
_root.bgmid = 10;
_root.se_00.start(0, 1);
this.removeMovieClip();
} else {
_root.se_00.setVolume(_root.bgmvol);
}
}
}
Symbol 367 MovieClip [whiteout2] Frame 30
_root.gotoAndStop("s5");
this.removeMovieClip();
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 16
stop();
Symbol 417 MovieClip Frame 32
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 16
stop();
Symbol 420 MovieClip Frame 32
stop();
Symbol 439 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 6
stop();
Symbol 442 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 6
stop();
Symbol 445 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 7
stop();
Instance of Symbol 463 MovieClip "mc_hyoujou_s3_3" in Symbol 466 MovieClip Frame 1
onClipEvent (load) {
function f_stoplvadd(addlv) {
stoplv = stoplv + addlv;
if (stoplv < 1) {
stoplv = 1;
} else if (stoplv > 5) {
stoplv = 5;
}
}
mabatakitime = (_root.gametime + 20) + Math.floor(Math.random() * 40);
yosomitime = (_root.gametime + 60) + Math.floor(Math.random() * 50);
mayutime = (_root.gametime + 200) + Math.floor(Math.random() * 100);
_root.kutiptn = 6;
this.kuti.gotoAndStop(_root.kutiptn);
_root.mayuptn = 1;
this.mayu.gotoAndStop(_root.mayuptn);
nowlv = 1;
stoplv = 1;
mabatakimaelv = 1;
}
onClipEvent (enterFrame) {
if (nowlv > stoplv) {
nowlv--;
this.gotoAndStop(nowlv);
} else if (nowlv < stoplv) {
nowlv++;
this.gotoAndStop(nowlv);
} else if (mabatakimaelv > 0) {
stoplv = mabatakimaelv;
mabatakimaelv = 0;
nowlv--;
this.gotoAndStop(nowlv);
} else if (yosomitime < _root.gametime) {
yosomitime = (_root.gametime + 100) + Math.floor(Math.random() * 60);
stoplv = 1 + Math.floor(Math.random() * 4);
} else if (mayutime < _root.gametime) {
mayutime = (_root.gametime + 200) + Math.floor(Math.random() * 100);
_root.mayuptn = 1 + Math.floor(Math.random() * 2);
this.mayu.gotoAndStop(_root.mayuptn);
} else if (mabatakitime < _root.gametime) {
stoplv = 5 + Math.floor(Math.random() * 2);
if (nowlv < 5) {
mabatakimaelv = nowlv;
} else {
mabatakimaelv = 1 + Math.floor(Math.random() * 4);
}
mabatakitime = (_root.gametime + 20) + Math.floor(Math.random() * 60);
}
}
Symbol 467 MovieClip [s3_3_1] Frame 31
gotoAndPlay (1);
Symbol 467 MovieClip [s3_3_1] Frame 36
gotoAndPlay (1);
Symbol 491 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 16
stop();
Symbol 491 MovieClip Frame 32
stop();
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 16
stop();
Symbol 494 MovieClip Frame 32
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 90
stop();
Symbol 564 MovieClip Frame 9
if (_root.se_01isEnd) {
var rnd = Math.floor(Math.random() * 20);
_root.se_01.stop();
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi1");
break;
case 1 :
_root.se_01.attachSound("aegi2");
break;
case 2 :
_root.se_01.attachSound("aegi3");
break;
case 3 :
_root.se_01.attachSound("aegi4");
break;
case 4 :
_root.se_01.attachSound("aegi5");
break;
case 5 :
_root.se_01.attachSound("aegi6");
break;
case 6 :
_root.se_01.attachSound("aegi7");
break;
case 7 :
_root.se_01.attachSound("aegi8");
break;
case 8 :
_root.se_01.attachSound("aegi9");
break;
case 9 :
_root.se_01.attachSound("aegi10");
break;
case 10 :
_root.se_01.attachSound("aegi11");
break;
case 11 :
_root.se_01.attachSound("aegi12");
break;
case 12 :
_root.se_01.attachSound("aegi13");
break;
case 13 :
_root.se_01.attachSound("aegi14");
break;
case 14 :
_root.se_01.attachSound("aegi15");
break;
case 15 :
_root.se_01.attachSound("aegi16");
break;
case 16 :
_root.se_01.attachSound("aegi17");
break;
case 17 :
_root.se_01.attachSound("aegi18");
break;
case 18 :
_root.se_01.attachSound("aegi19");
break;
case 19 :
_root.se_01.attachSound("aegi20");
}
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
_root.joujitu_s1 = _root.joujitu_s1 + 2;
if (_root.joujitu_s1 >= 100) {
_root.bar._xscale = 100;
_root.joujitu_s1 = 100;
_root.attachMovie("whiteout", "whiteout", 10000);
} else {
_root.bar._xscale = _root.joujitu_s1;
}
if (_root.joujitu_s1 < 40) {
} else if (_root.joujitu_s1 == 40) {
_root.se_00.stop();
_root.bgmvol = 0;
_root.se_00.setVolume(_root.bgmvol);
_root.se_00.attachSound("goemon");
_root.bgmid = 2;
_root.se_00.start(0, 99);
} else if (_root.joujitu_s1 < 60) {
_root.bgmvol = Math.min(100, _root.bgmvol + 4);
_root.se_00.setVolume(_root.bgmvol);
} else if (_root.joujitu_s1 < 80) {
_root.bgmvol = Math.max(0, _root.bgmvol - 6);
_root.se_00.setVolume(_root.bgmvol);
}
Symbol 564 MovieClip Frame 11
if (_root.joujitu_s1 >= 100) {
m_loop = false;
gotoAndPlay (20);
} else if ((Key.isDown(32) || (_root.m_click)) || (_root.automode)) {
m_loop = true;
} else {
m_loop = false;
gotoAndPlay (20);
}
Symbol 564 MovieClip Frame 17
if (m_loop) {
if (_root._xmouse > 300) {
var rnd = Math.floor(Math.random() * 2);
switch (rnd) {
case 0 :
this.gotoAndPlay("loop2");
break;
case 1 :
this.gotoAndPlay("loop5");
}
} else if (_root._ymouse < 200) {
this.gotoAndPlay("loop4");
} else {
var rnd = Math.floor(Math.random() * 2);
switch (rnd) {
case 0 :
this.gotoAndPlay("loop1");
break;
case 1 :
this.gotoAndPlay("loop3");
}
}
}
Symbol 564 MovieClip Frame 50
if (_root.joujitu_s1 >= 100) {
stop();
}
Symbol 564 MovieClip Frame 61
_parent.gotoAndStop(1);
Symbol 564 MovieClip Frame 66
if (_root.se_01isEnd) {
var rnd = Math.floor(Math.random() * 20);
_root.se_01.stop();
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi1");
break;
case 1 :
_root.se_01.attachSound("aegi2");
break;
case 2 :
_root.se_01.attachSound("aegi3");
break;
case 3 :
_root.se_01.attachSound("aegi4");
break;
case 4 :
_root.se_01.attachSound("aegi5");
break;
case 5 :
_root.se_01.attachSound("aegi6");
break;
case 6 :
_root.se_01.attachSound("aegi7");
break;
case 7 :
_root.se_01.attachSound("aegi8");
break;
case 8 :
_root.se_01.attachSound("aegi9");
break;
case 9 :
_root.se_01.attachSound("aegi10");
break;
case 10 :
_root.se_01.attachSound("aegi11");
break;
case 11 :
_root.se_01.attachSound("aegi12");
break;
case 12 :
_root.se_01.attachSound("aegi13");
break;
case 13 :
_root.se_01.attachSound("aegi14");
break;
case 14 :
_root.se_01.attachSound("aegi15");
break;
case 15 :
_root.se_01.attachSound("aegi16");
break;
case 16 :
_root.se_01.attachSound("aegi17");
break;
case 17 :
_root.se_01.attachSound("aegi18");
break;
case 18 :
_root.se_01.attachSound("aegi19");
break;
case 19 :
_root.se_01.attachSound("aegi20");
}
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
_root.joujitu_s1 = _root.joujitu_s1 + 2;
if (_root.joujitu_s1 >= 100) {
_root.bar._xscale = 100;
_root.joujitu_s1 = 100;
_root.attachMovie("whiteout", "whiteout", 10000);
} else {
_root.bar._xscale = _root.joujitu_s1;
}
if (_root.joujitu_s1 < 40) {
} else if (_root.joujitu_s1 == 40) {
_root.se_00.stop();
_root.bgmvol = 0;
_root.se_00.setVolume(_root.bgmvol);
_root.se_00.attachSound("goemon");
_root.bgmid = 2;
_root.se_00.start(0, 99);
} else if (_root.joujitu_s1 < 60) {
_root.bgmvol = Math.min(100, _root.bgmvol + 4);
_root.se_00.setVolume(_root.bgmvol);
} else if (_root.joujitu_s1 < 80) {
_root.bgmvol = Math.max(0, _root.bgmvol - 6);
_root.se_00.setVolume(_root.bgmvol);
}
Symbol 564 MovieClip Frame 68
if (_root.joujitu_s1 >= 100) {
m_loop = false;
gotoAndPlay (76);
} else if ((Key.isDown(32) || (_root.m_click)) || (_root.automode)) {
m_loop = true;
} else {
m_loop = false;
gotoAndPlay (76);
}
Symbol 564 MovieClip Frame 74
if (m_loop) {
if (_root._xmouse > 300) {
var rnd = Math.floor(Math.random() * 2);
switch (rnd) {
case 0 :
this.gotoAndPlay("loop2");
break;
case 1 :
this.gotoAndPlay("loop5");
}
} else if (_root._ymouse < 200) {
this.gotoAndPlay("loop4");
} else {
var rnd = Math.floor(Math.random() * 2);
switch (rnd) {
case 0 :
this.gotoAndPlay("loop1");
break;
case 1 :
this.gotoAndPlay("loop3");
}
}
}
Symbol 564 MovieClip Frame 106
if (_root.joujitu_s1 >= 100) {
stop();
}
Symbol 564 MovieClip Frame 117
_parent.gotoAndStop(1);
Symbol 564 MovieClip Frame 123
if (_root.se_01isEnd) {
var rnd = Math.floor(Math.random() * 20);
_root.se_01.stop();
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi1");
break;
case 1 :
_root.se_01.attachSound("aegi2");
break;
case 2 :
_root.se_01.attachSound("aegi3");
break;
case 3 :
_root.se_01.attachSound("aegi4");
break;
case 4 :
_root.se_01.attachSound("aegi5");
break;
case 5 :
_root.se_01.attachSound("aegi6");
break;
case 6 :
_root.se_01.attachSound("aegi7");
break;
case 7 :
_root.se_01.attachSound("aegi8");
break;
case 8 :
_root.se_01.attachSound("aegi9");
break;
case 9 :
_root.se_01.attachSound("aegi10");
break;
case 10 :
_root.se_01.attachSound("aegi11");
break;
case 11 :
_root.se_01.attachSound("aegi12");
break;
case 12 :
_root.se_01.attachSound("aegi13");
break;
case 13 :
_root.se_01.attachSound("aegi14");
break;
case 14 :
_root.se_01.attachSound("aegi15");
break;
case 15 :
_root.se_01.attachSound("aegi16");
break;
case 16 :
_root.se_01.attachSound("aegi17");
break;
case 17 :
_root.se_01.attachSound("aegi18");
break;
case 18 :
_root.se_01.attachSound("aegi19");
break;
case 19 :
_root.se_01.attachSound("aegi20");
}
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
_root.joujitu_s1 = _root.joujitu_s1 + 2;
if (_root.joujitu_s1 >= 100) {
_root.bar._xscale = 100;
_root.joujitu_s1 = 100;
_root.attachMovie("whiteout", "whiteout", 10000);
} else {
_root.bar._xscale = _root.joujitu_s1;
}
if (_root.joujitu_s1 < 40) {
} else if (_root.joujitu_s1 == 40) {
_root.se_00.stop();
_root.bgmvol = 0;
_root.se_00.setVolume(_root.bgmvol);
_root.se_00.attachSound("goemon");
_root.bgmid = 2;
_root.se_00.start(0, 99);
} else if (_root.joujitu_s1 < 60) {
_root.bgmvol = Math.min(100, _root.bgmvol + 4);
_root.se_00.setVolume(_root.bgmvol);
} else if (_root.joujitu_s1 < 80) {
_root.bgmvol = Math.max(0, _root.bgmvol - 6);
_root.se_00.setVolume(_root.bgmvol);
}
Symbol 564 MovieClip Frame 125
if (_root.joujitu_s1 >= 100) {
m_loop = false;
gotoAndPlay (133);
} else if ((Key.isDown(32) || (_root.m_click)) || (_root.automode)) {
m_loop = true;
} else {
m_loop = false;
gotoAndPlay (133);
}
Symbol 564 MovieClip Frame 131
if (m_loop) {
if (_root._xmouse > 300) {
var rnd = Math.floor(Math.random() * 2);
switch (rnd) {
case 0 :
this.gotoAndPlay("loop2");
break;
case 1 :
this.gotoAndPlay("loop5");
}
} else if (_root._ymouse < 200) {
this.gotoAndPlay("loop4");
} else {
var rnd = Math.floor(Math.random() * 2);
switch (rnd) {
case 0 :
this.gotoAndPlay("loop1");
break;
case 1 :
this.gotoAndPlay("loop3");
}
}
}
Symbol 564 MovieClip Frame 163
if (_root.joujitu_s1 >= 100) {
stop();
}
Symbol 564 MovieClip Frame 174
_parent.gotoAndStop(1);
Symbol 564 MovieClip Frame 181
if (_root.se_01isEnd) {
var rnd = Math.floor(Math.random() * 20);
_root.se_01.stop();
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi1");
break;
case 1 :
_root.se_01.attachSound("aegi2");
break;
case 2 :
_root.se_01.attachSound("aegi3");
break;
case 3 :
_root.se_01.attachSound("aegi4");
break;
case 4 :
_root.se_01.attachSound("aegi5");
break;
case 5 :
_root.se_01.attachSound("aegi6");
break;
case 6 :
_root.se_01.attachSound("aegi7");
break;
case 7 :
_root.se_01.attachSound("aegi8");
break;
case 8 :
_root.se_01.attachSound("aegi9");
break;
case 9 :
_root.se_01.attachSound("aegi10");
break;
case 10 :
_root.se_01.attachSound("aegi11");
break;
case 11 :
_root.se_01.attachSound("aegi12");
break;
case 12 :
_root.se_01.attachSound("aegi13");
break;
case 13 :
_root.se_01.attachSound("aegi14");
break;
case 14 :
_root.se_01.attachSound("aegi15");
break;
case 15 :
_root.se_01.attachSound("aegi16");
break;
case 16 :
_root.se_01.attachSound("aegi17");
break;
case 17 :
_root.se_01.attachSound("aegi18");
break;
case 18 :
_root.se_01.attachSound("aegi19");
break;
case 19 :
_root.se_01.attachSound("aegi20");
}
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
_root.joujitu_s1 = _root.joujitu_s1 + 2;
if (_root.joujitu_s1 >= 100) {
_root.bar._xscale = 100;
_root.joujitu_s1 = 100;
_root.attachMovie("whiteout", "whiteout", 10000);
} else {
_root.bar._xscale = _root.joujitu_s1;
}
if (_root.joujitu_s1 < 40) {
} else if (_root.joujitu_s1 == 40) {
_root.se_00.stop();
_root.bgmvol = 0;
_root.se_00.setVolume(_root.bgmvol);
_root.se_00.attachSound("goemon");
_root.bgmid = 2;
_root.se_00.start(0, 99);
} else if (_root.joujitu_s1 < 60) {
_root.bgmvol = Math.min(100, _root.bgmvol + 4);
_root.se_00.setVolume(_root.bgmvol);
} else if (_root.joujitu_s1 < 80) {
_root.bgmvol = Math.max(0, _root.bgmvol - 6);
_root.se_00.setVolume(_root.bgmvol);
}
Symbol 564 MovieClip Frame 183
if (_root.joujitu_s1 >= 100) {
m_loop = false;
gotoAndPlay (191);
} else if ((Key.isDown(32) || (_root.m_click)) || (_root.automode)) {
m_loop = true;
} else {
m_loop = false;
gotoAndPlay (191);
}
Symbol 564 MovieClip Frame 189
if (m_loop) {
if (_root._xmouse > 300) {
var rnd = Math.floor(Math.random() * 2);
switch (rnd) {
case 0 :
this.gotoAndPlay("loop2");
break;
case 1 :
this.gotoAndPlay("loop5");
}
} else if (_root._ymouse < 200) {
this.gotoAndPlay("loop4");
} else {
var rnd = Math.floor(Math.random() * 2);
switch (rnd) {
case 0 :
this.gotoAndPlay("loop1");
break;
case 1 :
this.gotoAndPlay("loop3");
}
}
}
Symbol 564 MovieClip Frame 221
if (_root.joujitu_s1 >= 100) {
stop();
}
Symbol 564 MovieClip Frame 232
_parent.gotoAndStop(1);
Symbol 564 MovieClip Frame 244
if (_root.se_01isEnd) {
var rnd = Math.floor(Math.random() * 20);
_root.se_01.stop();
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi1");
break;
case 1 :
_root.se_01.attachSound("aegi2");
break;
case 2 :
_root.se_01.attachSound("aegi3");
break;
case 3 :
_root.se_01.attachSound("aegi4");
break;
case 4 :
_root.se_01.attachSound("aegi5");
break;
case 5 :
_root.se_01.attachSound("aegi6");
break;
case 6 :
_root.se_01.attachSound("aegi7");
break;
case 7 :
_root.se_01.attachSound("aegi8");
break;
case 8 :
_root.se_01.attachSound("aegi9");
break;
case 9 :
_root.se_01.attachSound("aegi10");
break;
case 10 :
_root.se_01.attachSound("aegi11");
break;
case 11 :
_root.se_01.attachSound("aegi12");
break;
case 12 :
_root.se_01.attachSound("aegi13");
break;
case 13 :
_root.se_01.attachSound("aegi14");
break;
case 14 :
_root.se_01.attachSound("aegi15");
break;
case 15 :
_root.se_01.attachSound("aegi16");
break;
case 16 :
_root.se_01.attachSound("aegi17");
break;
case 17 :
_root.se_01.attachSound("aegi18");
break;
case 18 :
_root.se_01.attachSound("aegi19");
break;
case 19 :
_root.se_01.attachSound("aegi20");
}
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
_root.joujitu_s1 = _root.joujitu_s1 + 2;
if (_root.joujitu_s1 >= 100) {
_root.bar._xscale = 100;
_root.joujitu_s1 = 100;
_root.attachMovie("whiteout", "whiteout", 10000);
} else {
_root.bar._xscale = _root.joujitu_s1;
}
if (_root.joujitu_s1 < 40) {
} else if (_root.joujitu_s1 == 40) {
_root.se_00.stop();
_root.bgmvol = 0;
_root.se_00.setVolume(_root.bgmvol);
_root.se_00.attachSound("goemon");
_root.bgmid = 2;
_root.se_00.start(0, 99);
} else if (_root.joujitu_s1 < 60) {
_root.bgmvol = Math.min(100, _root.bgmvol + 4);
_root.se_00.setVolume(_root.bgmvol);
} else if (_root.joujitu_s1 < 80) {
_root.bgmvol = Math.max(0, _root.bgmvol - 6);
_root.se_00.setVolume(_root.bgmvol);
}
Symbol 564 MovieClip Frame 246
if (_root.joujitu_s1 >= 100) {
m_loop = false;
gotoAndPlay (255);
} else if ((Key.isDown(32) || (_root.m_click)) || (_root.automode)) {
m_loop = true;
} else {
m_loop = false;
gotoAndPlay (255);
}
Symbol 564 MovieClip Frame 252
if (m_loop) {
if (_root._xmouse > 300) {
var rnd = Math.floor(Math.random() * 2);
switch (rnd) {
case 0 :
this.gotoAndPlay("loop2");
break;
case 1 :
this.gotoAndPlay("loop5");
}
} else if (_root._ymouse < 200) {
this.gotoAndPlay("loop4");
} else {
var rnd = Math.floor(Math.random() * 2);
switch (rnd) {
case 0 :
this.gotoAndPlay("loop1");
break;
case 1 :
this.gotoAndPlay("loop3");
}
}
}
Symbol 564 MovieClip Frame 285
if (_root.joujitu_s1 >= 100) {
stop();
}
Symbol 564 MovieClip Frame 296
_parent.gotoAndStop(1);
Symbol 565 MovieClip Frame 1
stop();
Symbol 567 MovieClip Frame 1
stop();
Symbol 583 MovieClip Frame 1
if (_root.nowstage != 2) {
stop();
}
Symbol 583 MovieClip Frame 18
_root.nowstage = 3;
_root.gotoAndStop("s3");
Symbol 584 MovieClip Frame 20
stop();
Symbol 616 MovieClip Frame 6
stop();
Symbol 641 MovieClip Frame 13
this._visible = false;
stop();
Instance of Symbol 616 MovieClip "pc" in Symbol 645 MovieClip Frame 1
onClipEvent (load) {
function f_shot(obj, shotx, shoty) {
this.shotcount++;
if (this.shotcount >= MAXSHOT) {
this.shotcount = 0;
}
var objshot = this.shots[this.shotcount];
objshot._x = obj._x + shotx;
objshot._y = obj._y + shoty;
objshot._visible = true;
objshot.dy = -80;
objshot.cnt = 0;
objshot.lasty = objshot._y;
this.gotoAndPlay("shot");
_root.joujitu_s3 = _root.joujitu_s3 - 30;
}
this.sts = 1;
this.shotwait = 0;
this.stop();
this.MINX = _parent.PCMINX;
this.MAXX = _parent.PCMAXX;
this.shotcount = 0;
this.MAXSHOT = 10;
this.shots = new Array();
i = 0;
while (i < MAXSHOT) {
var objshot = _parent.tamaf.tamaorg.duplicateMovieClip("tama" + i, 1000 + i);
this.shots[i] = objshot;
objshot.stop();
objshot._visible = false;
i++;
}
_parent.tamaf.tamaorg.swapDepths(999);
_parent.tamaf.tamaorg.removeMovieClip();
}
onClipEvent (enterFrame) {
if (_root.timestop) {
return(undefined);
}
if (_root.gametime <= 65) {
return(undefined);
}
if (this.sts == 0) {
} else if (this.sts == 1) {
if (this.shotwait > 0) {
this.shotwait--;
} else if (m_click || (Key.isDown(32))) {
f_shot(this, 0, 0);
this.shotwait = 4;
}
m_xmouse = _root._xmouse;
m_xmouse = Math.max(m_xmouse, MINX);
m_xmouse = Math.min(m_xmouse, MAXX);
this._x = this._x - ((this._x - m_xmouse) * 0.2);
if ((this._x < 256) || (294 < this._x)) {
_parent.mankokakusi._visible = true;
} else {
_parent.mankokakusi._visible = false;
}
} else if (this.sts == 4) {
if (m_pcstartcnt < 40) {
m_pcstartcnt++;
} else {
this._visible = false;
}
}
}
onClipEvent (mouseUp) {
m_click = false;
}
onClipEvent (mouseDown) {
m_click = true;
}
Symbol 655 MovieClip Frame 20
stop();
Symbol 667 MovieClip Frame 1
if (!_root.gameover) {
stop();
}
Instance of Symbol 665 MovieClip in Symbol 667 MovieClip Frame 52
on (release) {
_root.gotoAndPlay("title");
}
Instance of Symbol 666 MovieClip in Symbol 667 MovieClip Frame 52
on (release) {
getURL ("http://www.d3p.co.jp/s_20/s20_083.html", "_blank");
}
Symbol 667 MovieClip Frame 218
stop();
Symbol 676 MovieClip Frame 1
if (_root.nowstage != 5) {
this.stop();
} else {
this.play();
}
Instance of Symbol 337 MovieClip in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._root.bgmvol > 0) {
_root._root.bgmvol = _root._root.bgmvol - 2;
if (_root._root.bgmvol <= 0) {
_root._root.bgmvol = 0;
_root.se_00.stop();
this.removeMovieClip();
} else {
_root.se_00.setVolume(_root.bgmvol);
}
}
}
Symbol 676 MovieClip Frame 46
_root.se_00.stop();
_root.bgmvol = 100;
_root.se_00.setVolume(_root.bgmvol);
_root.bgmid = 12;
_root.se_00.attachSound("tw006");
_root.se_00.start(0, 1);
Symbol 676 MovieClip Frame 51
txt_score.text = _root.score;
Instance of Symbol 159 MovieClip in Symbol 676 MovieClip Frame 51
on (release) {
_root.gotoAndStop("title");
}
Symbol 676 MovieClip Frame 76
stop();
Symbol 704 MovieClip Frame 24
stop();
Symbol 705 MovieClip Frame 1
stop();
Symbol 705 MovieClip Frame 6
gotoAndStop (1);
Symbol 705 MovieClip Frame 11
gotoAndStop (1);
Symbol 705 MovieClip Frame 18
gotoAndStop (1);
Symbol 711 MovieClip Frame 5
gotoAndStop (1);
Symbol 711 MovieClip Frame 9
gotoAndStop (1);
Symbol 716 MovieClip Frame 5
stop();
Symbol 716 MovieClip Frame 20
stop();
Symbol 717 MovieClip Frame 5
stop();
Symbol 717 MovieClip Frame 20
stop();
Instance of Symbol 724 MovieClip "te_hoho_atari" in Symbol 776 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 776 MovieClip Frame 6
gotoAndStop (1);
Symbol 776 MovieClip Frame 12
gotoAndStop (7);
Symbol 776 MovieClip Frame 18
gotoAndStop (13);
Symbol 776 MovieClip Frame 24
gotoAndStop (19);
Symbol 776 MovieClip Frame 30
gotoAndStop (25);
Symbol 776 MovieClip Frame 37
gotoAndStop (31);
Symbol 776 MovieClip Frame 43
gotoAndStop (38);
Symbol 776 MovieClip Frame 49
gotoAndStop (44);
Symbol 776 MovieClip Frame 55
gotoAndStop (50);
Symbol 776 MovieClip Frame 61
gotoAndStop (56);
Symbol 776 MovieClip Frame 68
gotoAndStop (62);
Symbol 776 MovieClip Frame 74
gotoAndStop (69);
Symbol 776 MovieClip Frame 81
gotoAndStop (75);
Symbol 776 MovieClip Frame 87
gotoAndStop (82);
Symbol 776 MovieClip Frame 94
gotoAndStop (88);
Symbol 776 MovieClip Frame 115
_parent.namidahukityuu = false;
if (_root.irisup == 0) {
this.gotoAndStop("a1");
} else if (_root.irisup < 5) {
this.gotoAndStop("a2");
} else if (_root.irisup < 25) {
this.gotoAndStop("a3");
} else {
this.gotoAndStop("a4");
}
Instance of Symbol 773 MovieClip "te_hoho" in Symbol 776 MovieClip Frame 116
onClipEvent (load) {
this._visible = false;
}
Symbol 776 MovieClip Frame 122
stop();
Symbol 776 MovieClip Frame 129
stop();
Symbol 776 MovieClip Frame 133
this.gotoAndStop("hoho_namida3");
Symbol 776 MovieClip Frame 139
hohosts = 6;
Symbol 776 MovieClip Frame 146
stop();
Symbol 776 MovieClip Frame 153
stop();
Symbol 776 MovieClip Frame 157
this.gotoAndStop("hoho_nomal3");
Symbol 776 MovieClip Frame 163
hohosts = 6;
Symbol 785 MovieClip Frame 1
stop();
Symbol 785 MovieClip Frame 5
stop();
Symbol 785 MovieClip Frame 16
stop();
Symbol 786 MovieClip Frame 1
stop();
Symbol 786 MovieClip Frame 6
prevFrame();
Symbol 786 MovieClip Frame 16
stop();
Symbol 787 MovieClip Frame 4
stop();
Symbol 787 MovieClip Frame 7
stop();
Symbol 787 MovieClip Frame 15
stop();
Symbol 787 MovieClip Frame 20
stop();
Instance of Symbol 724 MovieClip "te_hoho_atari" in Symbol 806 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 773 MovieClip "te_hoho" in Symbol 806 MovieClip Frame 72
onClipEvent (load) {
this._visible = false;
}
Symbol 806 MovieClip Frame 78
stop();
Symbol 806 MovieClip Frame 85
stop();
Symbol 806 MovieClip Frame 89
this.gotoAndStop("hoho_namida3");
Symbol 806 MovieClip Frame 95
hohosts = 6;
Symbol 806 MovieClip Frame 102
stop();
Symbol 806 MovieClip Frame 109
stop();
Symbol 806 MovieClip Frame 113
this.gotoAndStop("hoho_nomal3");
Symbol 806 MovieClip Frame 119
hohosts = 6;
Instance of Symbol 776 MovieClip "kao" in Symbol 807 MovieClip Frame 1
onClipEvent (load) {
function f_setkao() {
if (_root.namida) {
if (_root.hohogo) {
this.gotoAndStop("b_afhoho1");
} else if (_root.irisup == -1) {
this.gotoAndStop("b6");
} else if (_root.irisup == 0) {
this.gotoAndStop("b1");
} else if (_root.irisup < 20) {
this.gotoAndStop("b2");
} else if (_root.irisup < 40) {
this.gotoAndStop("b22_1");
} else if (_root.irisup < 60) {
this.gotoAndStop("b3");
} else if (_root.irisup < 80) {
this.gotoAndStop("b4");
} else {
this.gotoAndStop("b5");
}
} else if (_root.hohogo) {
this.gotoAndStop("a_afhoho1");
} else if (_root.irisup == 0) {
this.gotoAndStop("a1");
} else if (_root.irisup < 20) {
this.gotoAndStop("a2");
} else if (_root.irisup < 40) {
this.gotoAndStop("a22_1");
} else if (_root.irisup < 60) {
this.gotoAndStop("a3");
} else if (_root.irisup < 80) {
this.gotoAndStop("a4");
} else {
this.gotoAndStop("a5");
}
}
function f_koe_hoho() {
_root.se_01.stop();
var rnd = Math.floor(Math.random() * 2);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
lastkoe = rnd;
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi_hoho2");
_root.kutiptn = 1;
break;
case 1 :
_root.se_01.attachSound("aegi_hoho1");
_root.kutiptn = 2;
}
_root.se_01.start(0, 1);
this.kuti.gotoAndStop(_root.kutiptn);
}
mabatakiwait = 0;
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 40);
yosomiwait = 0;
yosomitime = (_root.s4time + 60) + Math.floor(Math.random() * 40);
f_setkao();
if (_root.kutiptn == 4) {
_root.kutiptn = 3;
}
this.kuti.gotoAndStop(_root.kutiptn);
}
onClipEvent (enterFrame) {
if (_parent.namidahukityuu) {
return(undefined);
}
if (((!_parent.l_h.grip) && (this.hohosts < 4)) && (_root.eroflg[8])) {
if (_parent.m_click) {
if (this.te_hoho_atari.hitTest(_root._xmouse, _root._ymouse, true)) {
if (lastxmouse != _root._xmouse) {
lastxmouse = _root._xmouse;
if (this.hohosts != 1) {
if (_root.namida) {
this.gotoAndPlay("hoho_namida1");
} else {
this.gotoAndPlay("hoho_nomal1");
}
f_koe_hoho();
}
this.hohosts = 1;
this.hohocnt = 1;
this.te_hoho._x = this._xmouse;
this.te_hoho._y = this._ymouse;
this.te_hoho._rotation = ((25 - this._xmouse) * 15) / 20;
_root.hohogo = false;
}
this.te_hoho._visible = true;
} else {
this.te_hoho._visible = false;
if (this.hohocnt > 0) {
this.hohosts = 4;
}
}
} else {
this.te_hoho._visible = false;
if (this.hohocnt > 0) {
this.hohosts = 4;
}
}
}
if (hohocnt > 0) {
if (hohosts < 4) {
if (hohocnt == 40) {
hohosts = 3;
if (_root.namida) {
this.gotoAndPlay("hoho_namida2");
} else {
this.gotoAndPlay("hoho_nomal2");
}
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 60);
hohocnt++;
_root.hohogo = true;
} else if (hohocnt == 41) {
if (mabatakitime < _root.s4time) {
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 60);
if (_root.namida) {
this.gotoAndPlay("hoho_namida4");
} else {
this.gotoAndPlay("hoho_nomal4");
}
}
} else {
hohocnt++;
}
} else if (hohosts == 4) {
if (_root.hohogo) {
hohosts = 6;
} else {
hohosts = 5;
if (_root.namida) {
this.gotoAndPlay("hoho_namida5");
} else {
this.gotoAndPlay("hoho_nomal5");
}
}
} else if (hohosts == 5) {
this.play();
} else if (hohosts == 6) {
f_setkao();
hohocnt = 0;
hohosts = 0;
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 40);
chgkaotime = (_root.s4time + 200) + Math.floor(Math.random() * 120);
lastxmouse = -100;
}
return(undefined);
}
if (mabatakiwait > 0) {
mabatakiwait--;
} else if (yosomiwait > 0) {
yosomiwait--;
if (yosomiwait <= 0) {
yosomitime = (_root.s4time + 20) + Math.floor(Math.random() * 60);
f_setkao();
}
} else if (yosomitime < _root.s4time) {
if (_root.namida) {
if (_root.hohogo) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("b_afhoho2");
} else if (_root.irisup == -1) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("b61");
} else if (_root.irisup == 0) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("b11");
} else if (_root.irisup < 20) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("b21");
} else if (_root.irisup < 30) {
yosomiwait = 40 + Math.floor(Math.random() * 2);
this.gotoAndStop("b22_2");
} else if (_root.irisup < 40) {
yosomiwait = 40 + Math.floor(Math.random() * 2);
this.gotoAndStop("b31");
} else if (_root.irisup < 50) {
yosomiwait = 1 + Math.floor(Math.random() * 2);
this.gotoAndStop("b41");
} else {
yosomiwait = 1 + Math.floor(Math.random() * 2);
this.gotoAndStop("b51");
}
} else if (_root.hohogo) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("a_afhoho2");
} else if (_root.irisup == 0) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("a11");
} else if (_root.irisup < 20) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("a21");
} else if (_root.irisup < 30) {
yosomiwait = 40 + Math.floor(Math.random() * 2);
this.gotoAndStop("a22_2");
} else if (_root.irisup < 40) {
yosomiwait = 40 + Math.floor(Math.random() * 2);
this.gotoAndStop("a31");
} else if (_root.irisup < 50) {
yosomiwait = 1 + Math.floor(Math.random() * 2);
this.gotoAndStop("a41");
} else {
yosomiwait = 1 + Math.floor(Math.random() * 2);
this.gotoAndStop("a51");
}
}
if (mabatakitime < _root.s4time) {
mabatakiwait = 3;
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 60);
if (_root.namida) {
if (_root.hohogo) {
this.gotoAndPlay("mabataki_b_afhoho");
} else if (_root.irisup == -1) {
this.gotoAndPlay("mabataki_b6");
} else if (_root.irisup == 0) {
this.gotoAndPlay("mabataki_b1");
} else if (_root.irisup < 20) {
this.gotoAndPlay("mabataki_b2");
} else if (_root.irisup < 30) {
this.gotoAndPlay("mabataki_b22");
} else if (_root.irisup < 40) {
this.gotoAndPlay("mabataki_b3");
} else if (_root.irisup < 50) {
this.gotoAndPlay("mabataki_b4");
} else {
this.gotoAndPlay("mabataki_b5");
}
} else if (_root.hohogo) {
this.gotoAndPlay("mabataki_a_afhoho");
} else if (_root.irisup == 0) {
this.gotoAndPlay("mabataki_a1");
} else if (_root.irisup < 20) {
this.gotoAndPlay("mabataki_a2");
} else if (_root.irisup < 30) {
this.gotoAndPlay("mabataki_a22");
} else if (_root.irisup < 40) {
this.gotoAndPlay("mabataki_a3");
} else if (_root.irisup < 50) {
this.gotoAndPlay("mabataki_a4");
} else {
this.gotoAndPlay("mabataki_a5");
}
}
}
Instance of Symbol 779 MovieClip "te_namida_atari" in Symbol 807 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 780 MovieClip "te_namida" in Symbol 807 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 782 MovieClip "atari_l_h" in Symbol 807 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 784 MovieClip "atari_r_h" in Symbol 807 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 806 MovieClip "kao" in Symbol 807 MovieClip Frame 7
onClipEvent (load) {
function f_koe(isForcibly) {
if (isForcibly) {
} else if (!_root.se_01isEnd) {
return(undefined);
}
var rnd;
switch (_root.kutiptn) {
case 1 :
if (_root.irisup < 10) {
rnd = Math.floor(Math.random() * 15);
} else if (_root.irisup < 20) {
rnd = 5 + Math.floor(Math.random() * 20);
} else if (_root.irisup < 30) {
rnd = 10 + Math.floor(Math.random() * 20);
} else if (_root.irisup < 40) {
rnd = 20 + Math.floor(Math.random() * 14);
} else if (_root.irisup < 50) {
rnd = 25 + Math.floor(Math.random() * 15);
} else if (_root.irisup < 60) {
rnd = 30 + Math.floor(Math.random() * 10);
} else {
rnd = 35 + Math.floor(Math.random() * 13);
}
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi1");
break;
case 1 :
_root.se_01.attachSound("aegi3");
break;
case 2 :
_root.se_01.attachSound("aegi4");
break;
case 3 :
_root.se_01.attachSound("aegi5");
break;
case 4 :
_root.se_01.attachSound("aegi9");
break;
case 5 :
_root.se_01.attachSound("aegi10");
break;
case 6 :
_root.se_01.attachSound("aegi11");
break;
case 7 :
_root.se_01.attachSound("aegi12");
break;
case 8 :
_root.se_01.attachSound("aegi13");
break;
case 9 :
_root.se_01.attachSound("aegi14");
break;
case 10 :
_root.se_01.attachSound("aegi15");
break;
case 11 :
_root.se_01.attachSound("aegi16");
break;
case 12 :
_root.se_01.attachSound("aegi17");
break;
case 13 :
_root.se_01.attachSound("aegi18");
break;
case 14 :
_root.se_01.attachSound("aegi20");
break;
case 15 :
_root.se_01.attachSound("a3[28].mp3");
break;
case 16 :
_root.se_01.attachSound("a3[29].mp3");
break;
case 17 :
_root.se_01.attachSound("a3[30].mp3");
break;
case 18 :
_root.se_01.attachSound("a3[31].mp3");
break;
case 19 :
_root.se_01.attachSound("a3[32].mp3");
break;
case 20 :
_root.se_01.attachSound("a3[33].mp3");
break;
case 21 :
_root.se_01.attachSound("a3[34].mp3");
break;
case 22 :
_root.se_01.attachSound("a3[35].mp3");
break;
case 23 :
_root.se_01.attachSound("a3[36].mp3");
break;
case 24 :
_root.se_01.attachSound("a3[37].mp3");
break;
case 25 :
_root.se_01.attachSound("a3[39].mp3");
break;
case 26 :
_root.se_01.attachSound("a3[23].mp3");
break;
case 27 :
_root.se_01.attachSound("aegi23");
break;
case 28 :
_root.se_01.attachSound("aegi3_1");
break;
case 29 :
_root.se_01.attachSound("aegi3_2");
break;
case 30 :
_root.se_01.attachSound("aegic2_1");
break;
case 31 :
_root.se_01.attachSound("aegic2_2");
break;
case 32 :
_root.se_01.attachSound("aegic2_3");
break;
case 33 :
_root.se_01.attachSound("aegic2_4");
break;
case 34 :
_root.se_01.attachSound("aegic2_5");
break;
case 35 :
_root.se_01.attachSound("aegic2_6");
break;
case 36 :
_root.se_01.attachSound("aegic2_7");
break;
case 37 :
_root.se_01.attachSound("aegic_1");
break;
case 40 :
_root.se_01.attachSound("aegic_2");
break;
case 41 :
_root.se_01.attachSound("aegic_3");
break;
case 42 :
_root.se_01.attachSound("aegic_4");
break;
case 43 :
_root.se_01.attachSound("aegic_5");
break;
case 44 :
_root.se_01.attachSound("aegic_6");
break;
case 45 :
_root.se_01.attachSound("aegic_7");
break;
case 46 :
_root.se_01.attachSound("aegic_8");
break;
case 47 :
_root.se_01.attachSound("aegic_9");
break;
default :
_root.se_01.attachSound("aegi4");
}
break;
case 2 :
if (_root.irisup < 5) {
rnd = Math.floor(Math.random() * 5);
} else if (_root.irisup < 10) {
rnd = Math.floor(Math.random() * 8);
} else if (_root.irisup < 20) {
rnd = 5 + Math.floor(Math.random() * 10);
} else if (_root.irisup < 30) {
rnd = 10 + Math.floor(Math.random() * 10);
} else {
rnd = 15 + Math.floor(Math.random() * 10);
}
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi2");
break;
case 1 :
_root.se_01.attachSound("aegi6");
break;
case 2 :
_root.se_01.attachSound("aegi8");
break;
case 3 :
_root.se_01.attachSound("aegi7");
break;
case 4 :
_root.se_01.attachSound("aegi19");
break;
case 5 :
_root.se_01.attachSound("a3[20].mp3");
break;
case 6 :
_root.se_01.attachSound("a3[21].mp3");
break;
case 7 :
_root.se_01.attachSound("a3[22].mp3");
break;
case 8 :
_root.se_01.attachSound("a3[24].mp3");
break;
case 9 :
_root.se_01.attachSound("a3[25].mp3");
break;
case 10 :
_root.se_01.attachSound("a3[26].mp3");
break;
case 11 :
_root.se_01.attachSound("a3[27].mp3");
break;
case 12 :
_root.se_01.attachSound("aegi21");
break;
case 13 :
_root.se_01.attachSound("aegi22");
break;
case 14 :
_root.se_01.attachSound("aegi24");
break;
case 15 :
_root.se_01.attachSound("aegi25");
break;
case 16 :
_root.se_01.attachSound("aegi26");
break;
case 17 :
_root.se_01.attachSound("aegi27");
break;
case 18 :
_root.se_01.attachSound("aegi28");
break;
case 19 :
_root.se_01.attachSound("aegi3_4");
break;
case 20 :
_root.se_01.attachSound("aegi3_5");
break;
case 21 :
_root.se_01.attachSound("aegi3_6");
break;
case 23 :
_root.se_01.attachSound("aegi3_9");
break;
case 24 :
_root.se_01.attachSound("aegi3_10");
break;
default :
_root.se_01.attachSound("aegi26");
}
break;
case 3 :
if (_root.irisup < 50) {
rnd = Math.floor(Math.random() * 8);
} else {
rnd = Math.floor(Math.random() * 10);
}
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi4_1");
break;
case 1 :
_root.se_01.attachSound("aegi4_2");
break;
case 2 :
_root.se_01.attachSound("aegi4_3");
break;
case 3 :
_root.se_01.attachSound("aegi4_4");
break;
case 4 :
_root.se_01.attachSound("aegi4_5");
break;
case 5 :
_root.se_01.attachSound("aegi4_6");
break;
case 6 :
_root.se_01.attachSound("aegi4_7");
break;
case 7 :
_root.se_01.attachSound("aegi4_8");
break;
case 8 :
_root.se_01.attachSound("aegi5_1");
break;
case 9 :
_root.se_01.attachSound("aegi5_2");
break;
default :
_root.se_01.attachSound("aegi4_8");
}
break;
case 4 :
rnd = Math.floor(Math.random() * 6);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi5_2");
break;
case 1 :
_root.se_01.attachSound("aegi5_3");
break;
case 2 :
_root.se_01.attachSound("aegi6_1");
break;
case 3 :
_root.se_01.attachSound("aegi6_2");
break;
case 4 :
_root.se_01.attachSound("aegi6_3");
break;
case 5 :
_root.se_01.attachSound("aegi6_4");
break;
case 6 :
_root.se_01.attachSound("aegi6_5");
break;
default :
_root.se_01.attachSound("aegi6_1");
}
case 5 :
if (_root.irisup < 5) {
rnd = Math.floor(Math.random() * 5);
} else if (_root.irisup < 10) {
rnd = Math.floor(Math.random() * 8);
} else if (_root.irisup < 20) {
rnd = 5 + Math.floor(Math.random() * 10);
} else if (_root.irisup < 30) {
rnd = 10 + Math.floor(Math.random() * 10);
} else if (_root.irisup < 40) {
rnd = 15 + Math.floor(Math.random() * 10);
} else if (_root.irisup < 50) {
rnd = 20 + Math.floor(Math.random() * 9);
} else {
rnd = 25 + Math.floor(Math.random() * 9);
}
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi2");
break;
case 1 :
_root.se_01.attachSound("aegi6");
break;
case 2 :
_root.se_01.attachSound("aegi8");
break;
case 3 :
_root.se_01.attachSound("aegi7");
break;
case 4 :
_root.se_01.attachSound("aegi19");
break;
case 5 :
_root.se_01.attachSound("a3[20].mp3");
break;
case 6 :
_root.se_01.attachSound("a3[21].mp3");
break;
case 7 :
_root.se_01.attachSound("a3[22].mp3");
break;
case 8 :
_root.se_01.attachSound("a3[24].mp3");
break;
case 9 :
_root.se_01.attachSound("a3[25].mp3");
break;
case 10 :
_root.se_01.attachSound("a3[26].mp3");
break;
case 11 :
_root.se_01.attachSound("a3[27].mp3");
break;
case 12 :
_root.se_01.attachSound("aegi21");
break;
case 13 :
_root.se_01.attachSound("aegi22");
break;
case 14 :
_root.se_01.attachSound("aegi24");
break;
case 15 :
_root.se_01.attachSound("aegi25");
break;
case 16 :
_root.se_01.attachSound("aegi26");
break;
case 17 :
_root.se_01.attachSound("aegi27");
break;
case 18 :
_root.se_01.attachSound("aegi28");
break;
case 19 :
_root.se_01.attachSound("aegi3_4");
break;
case 20 :
_root.se_01.attachSound("aegi3_5");
break;
case 21 :
_root.se_01.attachSound("aegi3_6");
break;
case 23 :
_root.se_01.attachSound("aegi3_9");
break;
case 24 :
_root.se_01.attachSound("aegi3_10");
break;
case 25 :
_root.se_01.attachSound("aegi4_1");
break;
case 26 :
_root.se_01.attachSound("aegi4_2");
break;
case 27 :
_root.se_01.attachSound("aegi4_3");
break;
case 28 :
_root.se_01.attachSound("aegi4_4");
break;
case 29 :
_root.se_01.attachSound("aegi4_5");
break;
case 30 :
_root.se_01.attachSound("aegi4_6");
break;
case 31 :
_root.se_01.attachSound("aegi4_7");
break;
case 32 :
_root.se_01.attachSound("aegi4_8");
break;
case 33 :
_root.se_01.attachSound("aegi5_1");
break;
case 34 :
_root.se_01.attachSound("aegi5_2");
break;
default :
_root.se_01.attachSound("aegi3_5");
}
}
lastkoe = rnd;
_root.se_01.stop();
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
function f_tuki() {
if (eyesdowntime < _root.s4time) {
eyesdowntime = (_root.s4time + 80) + Math.floor(Math.random() * 100);
f_eyesdown();
}
f_kutichg();
mayuptn = 1;
kaoischg = true;
f_koe(false);
}
function f_hiki() {
f_eyeschg();
mayuptn = 0;
kaoischg = true;
}
function f_tukiend() {
if (_root.namida) {
if (_root.irisup == -1) {
_root.kutiptn = 2;
} else if (_root.irisup < 5) {
_root.kutiptn = 2;
} else if (_root.irisup < 25) {
_root.kutiptn = 2;
} else if (_root.irisup < 40) {
_root.kutiptn = 3;
} else if (_root.irisup < 60) {
_root.kutiptn = 3 + Math.floor(Math.random() * 3);
} else {
_root.kutiptn = 4 + Math.floor(Math.random() * 3);
}
} else if (_root.irisup < 5) {
_root.kutiptn = 2;
} else if (_root.irisup < 25) {
_root.kutiptn = 2;
} else if (_root.irisup < 40) {
_root.kutiptn = 3;
} else if (_root.irisup < 60) {
_root.kutiptn = 3 + Math.floor(Math.random() * 3);
} else {
_root.kutiptn = 4 + Math.floor(Math.random() * 3);
}
if ((!_root.namida) && (kaoptn == 0)) {
stoplv = Math.min(4, (stoplv + 1) + Math.floor(Math.random() * 3));
} else {
stoplv = Math.min(5, (stoplv + 1) + Math.floor(Math.random() * 3));
}
f_koe(true);
mayuptn = 1;
this.kuti.gotoAndStop(_root.kutiptn);
kaoischg = true;
}
function f_kaoinit() {
eyes_chg_time = (_root.s4time + 100) + Math.floor(Math.random() * 80);
if (_root.namida) {
if (_root.hohogo) {
nowlv = 0;
kaoptn = 2;
stoplv = 0;
_root.kutiptn = 1;
} else if (_root.irisup == -1) {
nowlv = 0;
kaoptn = 0;
stoplv = 0;
_root.kutiptn = 5;
} else if (_root.irisup < 20) {
nowlv = 0;
kaoptn = 0;
stoplv = 0;
_root.kutiptn = 1;
} else if (_root.irisup < 40) {
kaoptn = 2;
nowlv = 2;
stoplv = 2 + Math.floor(Math.random() * 2);
_root.kutiptn = 1 + Math.floor(Math.random() * 2);
} else if (_root.irisup < 60) {
kaoptn = 2;
nowlv = 2;
stoplv = 2 + Math.floor(Math.random() * 2);
_root.kutiptn = 1 + Math.floor(Math.random() * 2);
} else if (_root.irisup < 80) {
kaoptn = 1;
nowlv = 2;
stoplv = 2 + Math.floor(Math.random() * 3);
_root.kutiptn = 1 + Math.floor(Math.random() * 2);
} else {
kaoptn = 1;
nowlv = 4;
stoplv = 4 + Math.floor(Math.random() * 2);
_root.kutiptn = 1 + Math.floor(Math.random() * 3);
if (_root.kutiptn == 3) {
_root.kutiptn = 5;
}
}
} else if (_root.hohogo) {
kaoptn = 2;
nowlv = 0;
stoplv = 0;
_root.kutiptn = 1;
_root.hohogo = false;
} else if (_root.irisup < 20) {
kaoptn = 0;
nowlv = 0;
stoplv = 0;
_root.kutiptn = 1 + Math.floor(Math.random() * 2);
} else if (_root.irisup < 40) {
kaoptn = 2;
nowlv = 2;
stoplv = 2 + Math.floor(Math.random() * 2);
_root.kutiptn = 1 + Math.floor(Math.random() * 2);
} else if (_root.irisup < 60) {
kaoptn = 2;
nowlv = 2;
stoplv = 2 + Math.floor(Math.random() * 2);
_root.kutiptn = 1 + Math.floor(Math.random() * 2);
} else if (_root.irisup < 80) {
kaoptn = 1;
nowlv = 2;
stoplv = 2 + Math.floor(Math.random() * 2);
_root.kutiptn = 1 + Math.floor(Math.random() * 2);
} else {
kaoptn = 1;
nowlv = 4;
stoplv = 4 + Math.floor(Math.random() * 2);
_root.kutiptn = 1 + Math.floor(Math.random() * 3);
if (_root.kutiptn == 3) {
_root.kutiptn = 5;
}
}
this.kuti.gotoAndStop(_root.kutiptn);
kaoischg = true;
}
function f_eyeschg() {
if (eyes_chg_time < _root.s4time) {
eyes_chg_time = (_root.s4time + 100) + Math.floor(Math.random() * 80);
if (_root.hohogo) {
kaoptn = 2;
stoplv = 0;
} else if (_root.irisup == -1) {
kaoptn = 0;
stoplv = 0;
} else if (_root.irisup < 20) {
kaoptn = 0;
stoplv = 0;
} else if (_root.irisup < 40) {
kaoptn = 2;
stoplv = 2 + Math.floor(Math.random() * 2);
} else if (_root.irisup < 60) {
kaoptn = 2;
stoplv = 2 + Math.floor(Math.random() * 2);
} else if (_root.irisup < 80) {
kaoptn = 1;
stoplv = Math.floor(Math.random() * 4);
} else {
kaoptn = 1;
stoplv = Math.floor(Math.random() * 5);
}
}
}
function f_eyesdown() {
if ((!_root.namida) && (kaoptn == 0)) {
if (stoplv != 4) {
stoplv = stoplv + Math.floor(Math.random() * 2);
}
} else if (stoplv != 5) {
stoplv = stoplv + Math.floor(Math.random() * 2);
}
}
function f_kutichg() {
if (kuti_chg_time < _root.s4time) {
kuti34cnt = 0;
var tmpkutiptn;
kuti_chg_time = (_root.s4time + 80) + Math.floor(Math.random() * 80);
if (_root.irisup == -1) {
tmpkutiptn = 3;
} else if (_root.irisup < 40) {
tmpkutiptn = 1 + Math.floor(Math.random() * 2);
} else if (_root.irisup < 50) {
tmpkutiptn = 1 + Math.floor(Math.random() * 3);
} else {
tmpkutiptn = 1 + Math.floor(Math.random() * 5);
if (tmpkutiptn == 2) {
tmpkutiptn = 5;
}
}
if (tmpkutiptn != _root.kutiptn) {
_root.kutiptn = tmpkutiptn;
lastkoe = -1;
this.kuti.gotoAndStop(_root.kutiptn);
}
}
}
function f_setgr() {
kaoischg = false;
if ((!_root.namida) && (kaoptn == 0)) {
nowlv = Math.min(nowlv, 4);
stoplv = Math.min(stoplv, 4);
} else {
nowlv = Math.min(nowlv, 5);
stoplv = Math.min(stoplv, 5);
}
var tmpflameno = ((nowlv * 2) + mayuptn);
if (_root.namida) {
if (this.kaoptn == 0) {
tmpflameno = tmpflameno + 35;
} else if (this.kaoptn == 1) {
tmpflameno = tmpflameno + 47;
} else {
tmpflameno = tmpflameno + 59;
}
} else if (this.kaoptn == 0) {
tmpflameno = tmpflameno + 1;
} else if (this.kaoptn == 1) {
tmpflameno = tmpflameno + 11;
} else {
tmpflameno = tmpflameno + 23;
}
this.gotoAndStop(tmpflameno);
}
function f_koe_hoho() {
if (!_root.se_01isEnd) {
return(undefined);
}
_root.se_01.stop();
var rnd = Math.floor(Math.random() * 2);
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi_hoho2");
_root.kutiptn = 1;
break;
case 1 :
_root.se_01.attachSound("aegi_hoho1");
_root.kutiptn = 2;
}
this.kuti.gotoAndStop(_root.kutiptn);
_root.se_01.start(0, 1);
}
function f_mabataki() {
if ((!_root.namida) && (kaoptn == 0)) {
if (nowlv < 3) {
taglv = nowlv;
} else {
taglv = Math.floor(Math.random() * 4);
}
stoplv = 3;
} else {
if (nowlv < 4) {
taglv = nowlv;
} else {
taglv = Math.floor(Math.random() * 4);
}
stoplv = 4;
}
mabatakiflg = true;
}
function f_houtimode_on() {
houtimode = true;
mabatakitime = (_root.s4time + 100) + Math.floor(Math.random() * 120);
chgkaotime = (_root.s4time + 200) + Math.floor(Math.random() * 120);
}
hohosts = 0;
hohocnt = 0;
this.nowlv = 0;
this.stoplv = 0;
this.mayuptn = 0;
this.kaoptn = 0;
this.lastkoe = -1;
this.mabatakiflg = false;
kuti34cnt = 0;
this.kuti.stop();
f_kaoinit();
f_setgr();
kaoischg = false;
chgkaotime = 0;
houtimode = false;
}
onClipEvent (enterFrame) {
if (_parent.namidahukityuu) {
return(undefined);
}
if (((!_parent.l_h.grip) && (this.hohosts < 4)) && (_root.eroflg[8])) {
if (_parent.m_click) {
if (this.te_hoho_atari.hitTest(_root._xmouse, _root._ymouse, true)) {
if (lastxmouse != _root._xmouse) {
lastxmouse = _root._xmouse;
if (this.hohosts != 1) {
if (_root.namida) {
this.gotoAndPlay("hoho_namida1");
} else {
this.gotoAndPlay("hoho_nomal1");
}
}
this.hohosts = 1;
this.hohocnt = 1;
this.te_hoho._x = this._xmouse;
this.te_hoho._y = this._ymouse;
this.te_hoho._rotation = ((25 - this._xmouse) * 15) / 20;
_root.hohogo = false;
}
this.te_hoho._visible = true;
} else {
this.te_hoho._visible = false;
if (this.hohocnt > 0) {
this.hohosts = 4;
}
}
} else {
this.te_hoho._visible = false;
if (this.hohocnt > 0) {
this.hohosts = 4;
}
}
}
if (hohocnt > 0) {
if (hohosts < 4) {
if (hohocnt == 40) {
hohosts = 3;
if (_root.namida) {
this.gotoAndPlay("hoho_namida2");
} else {
this.gotoAndPlay("hoho_nomal2");
}
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 60);
hohocnt++;
_root.hohogo = true;
} else if (hohocnt == 41) {
if (mabatakitime < _root.s4time) {
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 60);
if (_root.namida) {
this.gotoAndPlay("hoho_namida4");
} else {
this.gotoAndPlay("hoho_nomal4");
}
}
} else {
hohocnt++;
}
} else if (hohosts == 4) {
hohosts = 6;
} else if (hohosts == 5) {
this.play();
} else if (hohosts == 6) {
if (_root.namida) {
nowlv = 7;
stoplv = 7;
this.gotoAndStop("f2_7_1");
} else {
nowlv = 5;
stoplv = 5;
this.gotoAndStop("f1_5_1");
}
eyes_chg_time = 0;
f_eyeschg();
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 40);
chgkaotime = (_root.s4time + 200) + Math.floor(Math.random() * 120);
hohocnt = 0;
hohosts = 0;
lastxmouse = -100;
}
return(undefined);
}
if (nowlv > stoplv) {
nowlv--;
f_setgr();
} else if (nowlv < stoplv) {
nowlv++;
f_setgr();
} else if (kaoischg) {
f_setgr();
} else if (_root.kutiptn == 3) {
kuti34cnt++;
if (kuti34cnt > 10) {
if (Math.floor(Math.random() * 3) == 0) {
_root.kutiptn = 2;
} else {
_root.kutiptn = 5;
}
this.kuti.gotoAndStop(_root.kutiptn);
kuti34cnt = 0;
}
} else if (_root.kutiptn == 4) {
kuti34cnt++;
if (kuti34cnt > 10) {
_root.kutiptn = 3;
this.kuti.gotoAndStop(_root.kutiptn);
kuti34cnt = 0;
}
} else if (mabatakiflg) {
stoplv = taglv;
mabatakiflg = false;
nowlv--;
f_setgr();
} else if (houtimode) {
if (chgkaotime < _root.s4time) {
stoplv = Math.floor(Math.random() * 2);
chgkaotime = (_root.s4time + 200) + Math.floor(Math.random() * 120);
} else if (mabatakitime < _root.s4time) {
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 60);
f_mabataki();
}
}
}
Symbol 810 MovieClip Frame 1
stop();
Symbol 813 MovieClip Frame 1
stop();
Instance of Symbol 831 MovieClip "kao" in Symbol 832 MovieClip Frame 1
onClipEvent (load) {
function f_koe(isForcibly) {
if (isForcibly) {
} else if (!_root.se_01isEnd) {
return(undefined);
}
var rnd;
switch (_root.kutiptn) {
case 1 :
rnd = Math.floor(Math.random() * 15);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi1");
break;
case 1 :
_root.se_01.attachSound("aegi3");
break;
case 2 :
_root.se_01.attachSound("aegi4");
break;
case 3 :
_root.se_01.attachSound("aegi5");
break;
case 4 :
_root.se_01.attachSound("aegi9");
break;
case 5 :
_root.se_01.attachSound("aegi10");
break;
case 6 :
_root.se_01.attachSound("aegi11");
break;
case 7 :
_root.se_01.attachSound("aegi12");
break;
case 8 :
_root.se_01.attachSound("aegi13");
break;
case 9 :
_root.se_01.attachSound("aegi14");
break;
case 10 :
_root.se_01.attachSound("aegi15");
break;
case 11 :
_root.se_01.attachSound("aegi16");
break;
case 12 :
_root.se_01.attachSound("aegi17");
break;
case 13 :
_root.se_01.attachSound("aegi18");
break;
case 14 :
_root.se_01.attachSound("aegi20");
break;
default :
_root.se_01.attachSound("aegi4");
}
break;
case 2 :
rnd = Math.floor(Math.random() * 5);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi2");
break;
case 1 :
_root.se_01.attachSound("aegi6");
break;
case 2 :
_root.se_01.attachSound("aegi8");
break;
case 3 :
_root.se_01.attachSound("aegi7");
break;
case 4 :
_root.se_01.attachSound("aegi19");
break;
default :
_root.se_01.attachSound("aegi26");
}
}
lastkoe = rnd;
_root.se_01.stop();
_root.se_01.start(0, 1);
_root.se_01isEnd = false;
}
function f_tuki() {
if (eyesdowntime < _root.s4time) {
eyesdowntime = (_root.s4time + 80) + Math.floor(Math.random() * 100);
f_eyesdown();
}
f_kutichg();
mayuptn = 1;
this.mayu.gotoAndStop(_root.mayuptn);
kaoischg = true;
f_koe(false);
}
function f_hiki() {
if (yosomitime < _root.s4time) {
f_eyeschg();
}
mayuptn = 0;
this.mayu.gotoAndStop(_root.mayuptn);
kaoischg = true;
}
function f_tukiend() {
stoplv = Math.min(5, (stoplv + 1) + Math.floor(Math.random() * 3));
f_koe(true);
_root.kutiptn = 2;
_root.mayuptn = 1;
this.kuti.gotoAndStop(_root.kutiptn);
this.mayu.gotoAndStop(_root.mayuptn);
kaoischg = true;
}
function f_eyeschg() {
yosomitime = (_root.s4time + 40) + Math.floor(Math.random() * 60);
stoplv = 1 + Math.floor(Math.random() * 3);
if (stoplv == 3) {
kaoptn = 1;
stoplv = 2;
} else {
kaoptn = 0;
}
}
function f_eyesdown() {
stoplv = stoplv + Math.floor(Math.random() * 2);
if (stoplv == 2) {
kaoptn = Math.floor(Math.random() * 2);
}
}
function f_kutichg() {
if (kuti_chg_time < _root.s4time) {
kuti_chg_time = (_root.s4time + 80) + Math.floor(Math.random() * 80);
_root.kutiptn = 1 + Math.floor(Math.random() * 2);
this.kuti.gotoAndStop(_root.kutiptn);
}
}
function f_koe_hoho() {
if (!_root.se_01isEnd) {
return(undefined);
}
_root.se_01.stop();
var rnd = Math.floor(Math.random() * 2);
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi_hoho2");
_root.kutiptn = 1;
break;
case 1 :
_root.se_01.attachSound("aegi_hoho1");
_root.kutiptn = 2;
}
this.kuti.gotoAndStop(_root.kutiptn);
_root.se_01.start(0, 1);
}
function f_stoplvadd(addlv) {
stoplv = stoplv + addlv;
if (stoplv < 1) {
stoplv = 1;
} else if (stoplv > 5) {
stoplv = 5;
}
}
function f_houti_off() {
houtimode = false;
}
function f_houti_on() {
houtimode = true;
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 40);
yosomitime = (_root.s4time + 60) + Math.floor(Math.random() * 50);
mayutime = (_root.s4time + 200) + Math.floor(Math.random() * 100);
kuti_chg_time = (_root.s4time + 20) + Math.floor(Math.random() * 40);
}
this.kaoptn = 0;
this.lastkoe = -1;
_root.kutiptn = 6;
this.kuti.gotoAndStop(_root.kutiptn);
_root.mayuptn = 1;
this.mayu.gotoAndStop(_root.mayuptn);
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 40);
yosomitime = (_root.s4time + 60) + Math.floor(Math.random() * 50);
mayutime = (_root.s4time + 200) + Math.floor(Math.random() * 100);
eyesdowntime = 0;
kuti_chg_time = (_root.s4time + 20) + Math.floor(Math.random() * 40);
kaoptn = 0;
nowlv = 1;
stoplv = 1;
mabatakimaelv = 1;
}
onClipEvent (enterFrame) {
if (nowlv > stoplv) {
nowlv--;
if ((kaoptn == 1) && (nowlv == 2)) {
this.gotoAndStop(6);
} else {
this.gotoAndStop(nowlv);
}
} else if (nowlv < stoplv) {
nowlv++;
if ((kaoptn == 1) && (nowlv == 2)) {
this.gotoAndStop(6);
} else {
this.gotoAndStop(nowlv);
}
} else if (mabatakimaelv > 0) {
stoplv = mabatakimaelv;
mabatakimaelv = 0;
nowlv--;
this.gotoAndStop(nowlv);
} else if (houtimode) {
if (yosomitime < _root.s4time) {
yosomitime = (_root.s4time + 100) + Math.floor(Math.random() * 60);
stoplv = 1 + Math.floor(Math.random() * 3);
if (stoplv > 3) {
this.gotoAndStop(6);
kaoptn = 1;
stoplv = 2;
} else {
kaoptn = 0;
}
} else if (mabatakitime < _root.s4time) {
stoplv = 5;
if (nowlv < 5) {
mabatakimaelv = nowlv;
} else {
mabatakimaelv = 1 + Math.floor(Math.random() * 4);
}
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 100);
} else if (mayutime < _root.s4time) {
mayutime = (_root.s4time + 200) + Math.floor(Math.random() * 100);
_root.mayuptn = 1 + Math.floor(Math.random() * 2);
this.mayu.gotoAndStop(_root.mayuptn);
} else if (kuti_chg_time < _root.s4time) {
kuti_chg_time = _root.s4time + 20000;
_root.kutiptn = 1;
this.kuti.gotoAndStop(_root.kutiptn);
}
}
}
Instance of Symbol 782 MovieClip "atari_l_h" in Symbol 832 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 784 MovieClip "atari_r_h" in Symbol 832 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 779 MovieClip "te_namida_atari" in Symbol 851 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 780 MovieClip "te_namida" in Symbol 851 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 782 MovieClip "atari_l_h" in Symbol 851 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 784 MovieClip "atari_r_h" in Symbol 851 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 850 MovieClip "kao" in Symbol 851 MovieClip Frame 81
onClipEvent (load) {
function f_setkao() {
if (_root.namida) {
if (_root.hohogo) {
this.gotoAndStop("b_afhoho1");
} else if (_root.irisup == -1) {
this.gotoAndStop("b6");
} else if (_root.irisup == 0) {
this.gotoAndStop("b1");
} else if (_root.irisup < 20) {
this.gotoAndStop("b2");
} else if (_root.irisup < 40) {
this.gotoAndStop("b22_1");
} else if (_root.irisup < 60) {
this.gotoAndStop("b3");
} else if (_root.irisup < 80) {
this.gotoAndStop("b4");
} else {
this.gotoAndStop("b5");
}
} else if (_root.hohogo) {
this.gotoAndStop("a_afhoho1");
} else if (_root.irisup == 0) {
this.gotoAndStop("a1");
} else if (_root.irisup < 20) {
this.gotoAndStop("a2");
} else if (_root.irisup < 40) {
this.gotoAndStop("a22_1");
} else if (_root.irisup < 60) {
this.gotoAndStop("a3");
} else if (_root.irisup < 80) {
this.gotoAndStop("a4");
} else {
this.gotoAndStop("a5");
}
}
function f_koe_hoho() {
_root.se_01.stop();
var rnd = Math.floor(Math.random() * 2);
if (lastkoe == rnd) {
rnd = Math.max(0, rnd - 1);
}
lastkoe = rnd;
switch (rnd) {
case 0 :
_root.se_01.attachSound("aegi_hoho2");
_root.kutiptn = 1;
break;
case 1 :
_root.se_01.attachSound("aegi_hoho1");
_root.kutiptn = 2;
}
_root.se_01.start(0, 1);
this.kuti.gotoAndStop(_root.kutiptn);
}
mabatakiwait = 0;
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 40);
yosomiwait = 0;
yosomitime = (_root.s4time + 60) + Math.floor(Math.random() * 40);
f_setkao();
if (_root.kutiptn == 4) {
_root.kutiptn = 3;
}
this.kuti.gotoAndStop(_root.kutiptn);
}
onClipEvent (enterFrame) {
if (_parent.namidahukityuu) {
return(undefined);
}
if (((!_parent.l_h.grip) && (this.hohosts < 4)) && (_root.eroflg[8])) {
if (_parent.m_click) {
if (this.te_hoho_atari.hitTest(_root._xmouse, _root._ymouse, true)) {
if (lastxmouse != _root._xmouse) {
lastxmouse = _root._xmouse;
if (this.hohosts != 1) {
if (_root.namida) {
this.gotoAndPlay("hoho_namida1");
} else {
this.gotoAndPlay("hoho_nomal1");
}
f_koe_hoho();
}
this.hohosts = 1;
this.hohocnt = 1;
this.te_hoho._x = this._xmouse;
this.te_hoho._y = this._ymouse;
this.te_hoho._rotation = ((25 - this._xmouse) * 15) / 20;
_root.hohogo = false;
}
this.te_hoho._visible = true;
} else {
this.te_hoho._visible = false;
if (this.hohocnt > 0) {
this.hohosts = 4;
}
}
} else {
this.te_hoho._visible = false;
if (this.hohocnt > 0) {
this.hohosts = 4;
}
}
}
if (hohocnt > 0) {
if (hohosts < 4) {
if (hohocnt == 40) {
hohosts = 3;
if (_root.namida) {
this.gotoAndPlay("hoho_namida2");
} else {
this.gotoAndPlay("hoho_nomal2");
}
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 60);
hohocnt++;
_root.hohogo = true;
} else if (hohocnt == 41) {
if (mabatakitime < _root.s4time) {
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 60);
if (_root.namida) {
this.gotoAndPlay("hoho_namida4");
} else {
this.gotoAndPlay("hoho_nomal4");
}
}
} else {
hohocnt++;
}
} else if (hohosts == 4) {
if (_root.hohogo) {
hohosts = 6;
} else {
hohosts = 5;
if (_root.namida) {
this.gotoAndPlay("hoho_namida5");
} else {
this.gotoAndPlay("hoho_nomal5");
}
}
} else if (hohosts == 5) {
this.play();
} else if (hohosts == 6) {
f_setkao();
hohocnt = 0;
hohosts = 0;
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 40);
chgkaotime = (_root.s4time + 200) + Math.floor(Math.random() * 120);
lastxmouse = -100;
}
return(undefined);
}
if (mabatakiwait > 0) {
mabatakiwait--;
} else if (yosomiwait > 0) {
yosomiwait--;
if (yosomiwait <= 0) {
yosomitime = (_root.s4time + 20) + Math.floor(Math.random() * 60);
f_setkao();
}
} else if (yosomitime < _root.s4time) {
if (_root.namida) {
if (_root.hohogo) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("b_afhoho2");
} else if (_root.irisup == -1) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("b61");
} else if (_root.irisup == 0) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("b11");
} else if (_root.irisup < 20) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("b21");
} else if (_root.irisup < 30) {
yosomiwait = 40 + Math.floor(Math.random() * 2);
this.gotoAndStop("b22_2");
} else if (_root.irisup < 40) {
yosomiwait = 40 + Math.floor(Math.random() * 2);
this.gotoAndStop("b31");
} else if (_root.irisup < 50) {
yosomiwait = 1 + Math.floor(Math.random() * 2);
this.gotoAndStop("b41");
} else {
yosomiwait = 1 + Math.floor(Math.random() * 2);
this.gotoAndStop("b51");
}
} else if (_root.hohogo) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("a_afhoho2");
} else if (_root.irisup == 0) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("a11");
} else if (_root.irisup < 20) {
yosomiwait = 40 + Math.floor(Math.random() * 40);
this.gotoAndStop("a21");
} else if (_root.irisup < 30) {
yosomiwait = 40 + Math.floor(Math.random() * 2);
this.gotoAndStop("a22_2");
} else if (_root.irisup < 40) {
yosomiwait = 40 + Math.floor(Math.random() * 2);
this.gotoAndStop("a31");
} else if (_root.irisup < 50) {
yosomiwait = 1 + Math.floor(Math.random() * 2);
this.gotoAndStop("a41");
} else {
yosomiwait = 1 + Math.floor(Math.random() * 2);
this.gotoAndStop("a51");
}
}
if (mabatakitime < _root.s4time) {
mabatakiwait = 3;
mabatakitime = (_root.s4time + 20) + Math.floor(Math.random() * 60);
if (_root.namida) {
if (_root.hohogo) {
this.gotoAndPlay("mabataki_b_afhoho");
} else if (_root.irisup == -1) {
this.gotoAndPlay("mabataki_b6");
} else if (_root.irisup == 0) {
this.gotoAndPlay("mabataki_b1");
} else if (_root.irisup < 20) {
this.gotoAndPlay("mabataki_b2");
} else if (_root.irisup < 30) {
this.gotoAndPlay("mabataki_b22");
} else if (_root.irisup < 40) {
this.gotoAndPlay("mabataki_b3");
} else if (_root.irisup < 50) {
this.gotoAndPlay("mabataki_b4");
} else {
this.gotoAndPlay("mabataki_b5");
}
} else if (_root.hohogo) {
this.gotoAndPlay("mabataki_a_afhoho");
} else if (_root.irisup == 0) {
this.gotoAndPlay("mabataki_a1");
} else if (_root.irisup < 20) {
this.gotoAndPlay("mabataki_a2");
} else if (_root.irisup < 30) {
this.gotoAndPlay("mabataki_a22");
} else if (_root.irisup < 40) {
this.gotoAndPlay("mabataki_a3");
} else if (_root.irisup < 50) {
this.gotoAndPlay("mabataki_a4");
} else {
this.gotoAndPlay("mabataki_a5");
}
}
}
Instance of Symbol 779 MovieClip "te_namida_atari" in Symbol 851 MovieClip Frame 199
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 780 MovieClip "te_namida" in Symbol 851 MovieClip Frame 199
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 782 MovieClip "atari_l_h" in Symbol 851 MovieClip Frame 199
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 784 MovieClip "atari_r_h" in Symbol 851 MovieClip Frame 199
onClipEvent (load) {
this._visible = false;
}