Combined Code
frame 1 {
sya = 0;
}
frame 7 {
rand = Math.floor(Math.random() * 6);
if (rand == 0) {
var sound_obj = new Sound();
sound_obj.attachSound('nltu01');
sound_obj.start();
} else {
if (rand == 1) {
var sound_obj = new Sound();
sound_obj.attachSound('toiki');
sound_obj.start();
} else {
if (rand == 2) {
var sound_obj = new Sound();
sound_obj.attachSound('toiki01');
sound_obj.start();
}
}
}
}
frame 17 {
if (sya >= 5) {
gotoAndPlay('s2');
} else {
sya += 1;
gotoAndPlay('s1');
}
}
frame 169 {
gotoAndPlay('ka' add random(2));
}
frame 185 {
rand = Math.floor(Math.random() * 8);
if (rand == 0) {
var sound_obj = new Sound();
sound_obj.attachSound('toiki01');
sound_obj.start();
} else {
if (rand == 1) {
var sound_obj = new Sound();
sound_obj.attachSound('toiki01');
sound_obj.start();
} else {
if (rand == 2) {
var sound_obj = new Sound();
sound_obj.attachSound('toiki01');
sound_obj.start();
}
}
}
}
frame 207 {
gotoAndPlay('ka' add random(2));
}
frame 223 {
rand = Math.floor(Math.random() * 8);
if (rand == 0) {
var sound_obj = new Sound();
sound_obj.attachSound('toiki01');
sound_obj.start();
} else {
if (rand == 1) {
var sound_obj = new Sound();
sound_obj.attachSound('toiki01');
sound_obj.start();
} else {
if (rand == 2) {
var sound_obj = new Sound();
sound_obj.attachSound('toiki01');
sound_obj.start();
}
}
}
}
frame 244 {
gotoAndPlay('ka1');
}