Combined Code
frame 1 {
function SoundVolFunc() {
VOLUME = (VOLUME + 1) % 5;
sound_obj.setVolume(VOLUME * 25);
}
function sisutemu(menu, obj) {
stopAllSounds();
gotoAndPlay(2);
}
var sound_obj = new Sound();
se_00 = new Sound(this);
se_01 = new Sound(this);
se_02 = new Sound(this);
se_03 = new Sound(this);
se_04 = new Sound(this);
se_05 = new Sound(this);
se_06 = new Sound(this);
se_07 = new Sound(this);
se_08 = new Sound(this);
se_09 = new Sound(this);
se_10 = new Sound(this);
se_11 = new Sound(this);
se_12 = new Sound(this);
se_00.attachSound('00');
se_01.attachSound('01');
se_02.attachSound('02');
se_03.attachSound('03');
se_04.attachSound('04');
se_05.attachSound('05');
se_06.attachSound('06');
se_07.attachSound('07');
se_08.attachSound('08');
se_09.attachSound('09');
se_10.attachSound('10');
se_11.attachSound('11');
se_12.attachSound('12');
VOLUME = 4;
menu_cm = new ContextMenu();
menu_cm.builtInItems.forward_back = false;
menu_cm.builtInItems.loop = false;
menu_cm.builtInItems.play = false;
menu_cm.builtInItems.print = false;
menu_cm.builtInItems.quality = true;
menu_cm.builtInItems.rewind = false;
menu_cm.builtInItems.save = false;
menu_cm.builtInItems.zoom = true;
MenuItem2 = new ContextMenuItem();
MenuItem2.caption = 'ソフトリセット';
MenuItem2.enabled = true;
MenuItem2.onSelect = sisutemu;
MenuItem2.separatorBefore = true;
MenuItem2.visible = true;
menu_cm.customItems.push(MenuItem2);
_root.menu = menu_cm;
}
frame 3 {
stop();
}
movieClip 6 {
}
movieClip 9 {
instance MSK of movieClip 6 {
onClipEvent (load) {
_alpha = 100;
}
}
}
instance of movieClip 9 {
onClipEvent (release) {
_parent.gotoAndPlay(4);
}
}
frame 4 {
stop();
}
movieClip 16 {
instance MSK of movieClip 6 {
onClipEvent (load) {
_alpha = 100;
}
}
}
instance of movieClip 16 {
onClipEvent (load) {
time_cnt = 500;
alp_cnt = 0;
hit_cnt = 0;
MSK._alpha = 100 - alp_cnt;
game_sw = 'on';
dsp_time = time_cnt / 25 + '秒';
dsp_alp = Math.floor(alp_cnt) + 'ï¼…';
dsp_hit = hit_cnt + '個';
}
onClipEvent (enterFrame) {
dsp_time = time_cnt / 25 + '秒';
dsp_alp = Math.floor(alp_cnt) + 'ï¼…';
dsp_hit = hit_cnt + '個';
if (game_sw == 'on') {
time_cnt -= 1;
if (time_cnt == 0) {
game_sw = 'off';
} else {
alp_cnt *= 0.998;
MSK._alpha = 100 - alp_cnt;
}
}
}
onClipEvent (press) {
if (game_sw == 'on') {
alp_cnt += 1;
hit_cnt += 1;
if (alp_cnt >= 100) {
alp_cnt = 100;
game_sw = 'off';
}
}
}
}