Combined Code
frame 1 {
stop();
}
frame 2 {
bgm_play('05');
mv1.gotoAndStop(3);
_global.mc1 = 0;
eroero = 0;
fin_on = 0;
loop1_on = 0;
wait0_on = 0;
wait1_on = 0;
wait2_on = 0;
wait3_on = 0;
wait0 = function (wait0_wait) {
if (wait0_on == 0) {
wait0_on = 1;
wait0_time = getTimer();
}
if ((getTimer() - wait0_time) / 100 > wait0_wait) {
wait0_on = 0;
gotoAndPlay(_currentframe + 1);
} else {
gotoAndPlay(_currentframe - 1);
}
};
wait1 = function (wait1_wait, num1, num2) {
if (wait1_on == 0) {
wait1_on = 1;
wait1_sw1 = mv1._currentframe;
wait1_sw2 = 3;
wait1_time = getTimer();
wait_x = num1;
if (wait_x == 0) {
wait_x = 10000;
}
wait_y = num2;
if (wait_y == 0) {
wait_y = -10000;
}
}
if (wait1_sw2 == 0) {
wait1_sw2 = 1;
wait1_sw2_time = getTimer();
wait1_sw2_wait = Math.random() * 2500;
mv1.gotoAndStop(wait1_sw1);
gotoAndPlay(_currentframe - 1);
} else {
if (wait1_sw2 == 3) {
wait1_sw2 = 2;
mv1.gotoAndStop(wait1_sw1 - 2);
gotoAndPlay(_currentframe - 2);
} else {
if (wait1_sw2 == 2) {
wait1_sw2 = 0;
mv1.gotoAndStop(wait1_sw1 - 1);
gotoAndPlay(_currentframe - 1);
} else {
if (getTimer() - wait1_sw2_time > wait1_sw2_wait) {
wait1_sw2 = 3;
gotoAndPlay(_currentframe - 1);
} else {
if ((getTimer() - wait1_time) / 100 < wait1_wait) {
gotoAndPlay(_currentframe - 1);
} else {
if ((_parent.mv_y / _parent.mv_z) * 100 < wait_y) {
gotoAndPlay(_currentframe - 1);
} else {
wait1_on = 0;
mv1.gotoAndStop(wait1_sw1);
gotoAndPlay(_currentframe + 1);
}
}
}
}
}
}
};
wait2 = function (wait2_long, wait2_wait) {
if (wait2_on == 0) {
wait2_on = 1;
wait2_time = getTimer();
wait2_sw1 = mv1._currentframe;
wait2_sw2 = wait2_sw1;
}
wait2_sw2 += Math.floor(Math.random() * (wait2_long - 1)) + 1;
if (wait2_sw2 > wait2_sw1 + wait2_long - 1) {
wait2_sw2 -= wait2_long;
}
if ((getTimer() - wait2_time) / 100 > wait2_wait) {
mv1.gotoAndStop(wait2_sw1);
wait2_on = 0;
gotoAndPlay(_currentframe + 1);
} else {
mv1.gotoAndStop(wait2_sw2);
gotoAndPlay(_currentframe - 3);
}
};
}
movieClip 2 {
}
frame 5 {
wait1(20, 0, 0);
}
frame 9 {
wait2(3, 18);
voice_play('101');
}
frame 12 {
wait1(10, 0, 0);
}
frame 16 {
wait2(3, 28);
voice_play('102');
}
frame 19 {
wait1(20, 0, -220);
}
frame 22 {
mv1.gotoAndStop(6);
}
frame 24 {
wait0(5);
voice_play('103');
}
frame 25 {
mv1.gotoAndStop(7);
}
frame 27 {
mv1.gotoAndStop(9);
}
frame 29 {
mv1.gotoAndStop(10);
}
frame 32 {
wait1(5, 0, 0);
}
frame 36 {
wait2(4, 18);
voice_play('104');
}
frame 39 {
wait1(5, 0, 0);
}
frame 40 {
mv1.gotoAndStop(14);
}
frame 43 {
mv1.gotoAndStop(15);
voice_play('105');
}
frame 46 {
mv1.gotoAndStop(18);
}
frame 49 {
wait1(5, 0, -170);
}
frame 53 {
wait2(4, 2);
voice_play('106');
}
frame 56 {
wait1(5, 0, 0);
}
frame 60 {
wait2(4, 20);
voice_play('107');
}
frame 63 {
wait1(5, 0, 0);
}
frame 67 {
wait2(4, 25);
voice_play('108');
}
frame 70 {
wait1(10, 0, 0);
}
frame 71 {
mv1.gotoAndStop(24);
}
frame 74 {
wait1(1, 0, -170);
}
frame 78 {
wait2(4, 40);
voice_play('109');
}
frame 80 {
mv1.gotoAndStop(16);
}
frame 82 {
mv1.gotoAndStop(17);
}
frame 84 {
mv1.gotoAndStop(18);
}
frame 86 {
wait0(5);
}
frame 88 {
mv1.gotoAndStop(28);
}
frame 90 {
mv1.gotoAndStop(29);
}
frame 92 {
mv1.gotoAndStop(30);
}
frame 94 {
mv1.gotoAndStop(31);
}
frame 98 {
wait2(4, 22);
voice_play('110');
}
frame 101 {
wait1(5, 0, -170);
}
frame 104 {
mv1.gotoAndStop(28);
}
frame 106 {
mv1.gotoAndStop(18);
}
frame 109 {
wait1(10, 0, 0);
}
frame 113 {
wait2(4, 55);
voice_play('111');
}
frame 116 {
wait1(5, 0, 0);
}
frame 119 {
mv1.gotoAndStop(36);
}
frame 122 {
mv1.gotoAndStop(37);
}
frame 125 {
mv1.gotoAndStop(38);
}
frame 128 {
mv1.gotoAndStop(43);
voice_play('112');
}
frame 131 {
mv1.gotoAndStop(44);
}
frame 134 {
mv1.gotoAndStop(45);
}
frame 137 {
mv1.gotoAndStop(46);
}
frame 140 {
mv1.gotoAndStop(43);
}
frame 143 {
mv1.gotoAndStop(44);
}
frame 146 {
mv1.gotoAndStop(45);
}
frame 149 {
mv1.gotoAndStop(46);
}
frame 152 {
mv1.gotoAndStop(43);
}
frame 155 {
mv1.gotoAndStop(44);
}
frame 158 {
mv1.gotoAndStop(45);
}
frame 161 {
mv1.gotoAndStop(46);
}
frame 164 {
mv1.gotoAndStop(39);
fin_on = 2;
if (loop1_on == 0) {
loop1_on = 1;
loop1_cnt = 0;
} else {
loop1_cnt += 1;
}
if (loop1_cnt == 15) {
_parent.gotoAndPlay('jp31');
}
}
frame 167 {
mv1.gotoAndStop(40);
}
frame 170 {
mv1.gotoAndStop(41);
}
frame 173 {
mv1.gotoAndStop(42);
}
frame 176 {
gotoAndPlay(164);
}
frame 178 {
stop();
_parent.gotoAndPlay('jp21');
}