Combined Code
frame 1 {
function f_LoadVC() {
LocalData_A = SharedObject.getLocal('SuimaData', '/');
if (LocalData_A.data.voiceVL != undefind) {
_global.voiceVL = LocalData_A.data.voiceVL;
} else {
_global.voiceVL = 50;
}
}
function f_SaveVC() {
LocalData_A = SharedObject.getLocal('SuimaData', '/');
LocalData_A.data.voiceVL = _global.voiceVL;
LocalData_A.flush();
}
function f_BlackMat() {
if (_root.BlackMatCH == 'OFF') {
if (_root.BlackMat._alpha >= 0) {
_root.BlackMat._alpha -= 3;
} else {
if (_root.kuromaku1._alpha <= 0) {
_root.kuromaku1._alpha = _root.kuromaku1._alpha;
}
}
} else {
if (_root.BlackMatCH == 'ON') {
if (_root.BlackMat._alpha <= 100) {
_root.BlackMat._alpha += 10;
} else {
if (_root.BlackMat._alpha >= 100) {
_root.BlackMat._alpha = _root.BlackMat._alpha;
loadMovieNum('/data/' + _root.GoSelect + '.swf', 0);
}
}
}
}
}
function f_voice() {
if (_root.CH_SVLV == '0%') {
if (_root.CH_Vend == 'ON') {
_root.CH_Vend = 'OFF';
_root.CH_MVNO = Math.floor(Math.random() * 10) + 1;
if (_global.CH_VC == 'YES') {
_root.VCNo = 'MV' + _root.CH_MVNO;
}
if (_root.CH_MV1 != 'MV' + _root.CH_MVNO and _root.CH_MV2 != 'MV' + _root.CH_MVNO and _root.CH_MV3 != 'MV' + _root.CH_MVNO) {
_root.CH_MV3 = _root.CH_MV2;
_root.CH_MV2 = _root.CH_MV1;
_root.CH_MV1 = 'MV' + _root.CH_MVNO;
objsound_ALL = new Sound(_root.MC2);
objsound_ALL.attachSound('MV' + _root.CH_MVNO);
objsound_ALL.setVolume(_global.voiceVL);
volume = _global.voiceVL;
objsound_ALL.start();
objsound_ALL.onSoundComplete = function (f_EndCH) {
_root.CH_Vend = 'ON';
};
} else {
_root.CH_Vend = 'ON';
}
}
} else {
if (_root.CH_SVLV == '100%') {
if (_root.CH_Vend2 == 'ON') {
_root.CH_Vend2 = 'OFF';
objsound_ALL.stop('MV' + _root.CH_MVNO);
objsound_ALL.stop('SV' + _root.CH_MVNO2);
_root.CH_MVNO2 = Math.floor(Math.random() * 6) + 1;
if (_global.CH_VC == 'YES') {
_root.VCNo = 'SV' + _root.CH_MVNO2;
}
if (_root.CH_SV1 != 'SV' + _root.CH_MVNO2 and _root.CH_SV2 != 'SV' + _root.CH_MVNO2 and _root.CH_SV3 != 'SV' + _root.CH_MVNO2) {
_root.CH_SV3 = _root.CH_SV2;
_root.CH_SV2 = _root.CH_SV1;
_root.CH_SV1 = 'SV' + _root.CH_MVNO2;
objsound_ALL = new Sound(_root.MC2);
objsound_ALL.attachSound('SV' + _root.CH_MVNO2);
objsound_ALL.setVolume(_global.voiceVL);
volume = _global.voiceVL;
objsound_ALL.start();
objsound_ALL.onSoundComplete = function (f_EndCH) {
_root.CH_Vend = 'ON';
_root.CH_Vend2 = 'ON';
_root.CH_SVLV = '0%';
};
} else {
_root.CH_MVNO2 = Math.floor(Math.random() * 6) + 1;
objsound_ALL = new Sound(_root.MC2);
objsound_ALL.attachSound('SV' + _root.CH_MVNO2);
objsound_ALL.setVolume(_global.voiceVL);
volume = _global.voiceVL;
objsound_ALL.start();
objsound_ALL.onSoundComplete = function (f_EndCH) {
_root.CH_Vend = 'ON';
_root.CH_Vend2 = 'ON';
_root.CH_SVLV = '0%';
};
}
}
} else {
if (_root.CH_SVLV == '50%') {
if (_root.CH_Vend3 == 'ON') {
_root.CH_Vend3 = 'OFF';
_root.CH_MVSV = Math.floor(Math.random() * 2) + 1;
}
if (_root.CH_MVSV == 1) {
if (_root.CH_Vend2 == 'ON') {
_root.CH_Vend2 = 'OFF';
objsound_ALL.stop('MV' + _root.CH_MVNO);
objsound_ALL.stop('SV' + _root.CH_MVNO2);
_root.CH_MVNO2 = Math.floor(Math.random() * 6) + 1;
if (_global.CH_VC == 'YES') {
_root.VCNo = 'SV' + _root.CH_MVNO2;
}
if (_root.CH_SV1 != 'SV' + _root.CH_MVNO2 and _root.CH_SV2 != 'SV' + _root.CH_MVNO2 and _root.CH_SV3 != 'SV' + _root.CH_MVNO2) {
_root.CH_SV3 = _root.CH_SV2;
_root.CH_SV2 = _root.CH_SV1;
_root.CH_SV1 = 'SV' + _root.CH_MVNO2;
objsound_ALL = new Sound(_root.MC2);
objsound_ALL.attachSound('SV' + _root.CH_MVNO2);
objsound_ALL.setVolume(_global.voiceVL);
volume = _global.voiceVL;
objsound_ALL.start();
objsound_ALL.onSoundComplete = function (f_EndCH) {
_root.CH_Vend = 'ON';
_root.CH_Vend2 = 'ON';
_root.CH_Vend3 = 'ON';
_root.CH_SVLV = '0%';
};
} else {
_root.CH_MVNO2 = Math.floor(Math.random() * 6) + 1;
objsound_ALL = new Sound(_root.MC2);
objsound_ALL.attachSound('SV' + _root.CH_MVNO2);
objsound_ALL.setVolume(_global.voiceVL);
volume = _global.voiceVL;
objsound_ALL.start();
objsound_ALL.onSoundComplete = function (f_EndCH) {
_root.CH_Vend = 'ON';
_root.CH_Vend2 = 'ON';
_root.CH_Vend3 = 'ON';
_root.CH_SVLV = '0%';
};
}
}
} else {
objsound_ALL.stop('MV' + _root.CH_MVNO);
objsound_ALL.stop('SV' + _root.CH_MVNO2);
_root.CH_Vend = 'ON';
_root.CH_Vend2 = 'ON';
_root.CH_Vend3 = 'ON';
_root.CH_SVLV = '0%';
}
}
}
}
}
function F_PanelViwe() {
if (_global.CH_SWindow == 'OFF') {
if (_root._ymouse >= 430 and _root._xmouse <= 510 and _root._xmouse >= 122) {
_root.CP_Mask.gotoAndStop('ON');
} else {
_root.CP_Mask.gotoAndStop('OFF');
}
} else {
if (_global.CH_SWindow == 'ON') {
if (_root._ymouse >= 430 and _root._xmouse <= 510 and _root._xmouse >= 122) {
_root.CP_Mask.gotoAndStop('ON');
} else {
if (_root._ymouse <= 430 and _root._ymouse >= 390 and _root._xmouse <= 210 and _root._xmouse >= 160) {
_root.CP_Mask.gotoAndStop('ON');
} else {
_root.CP_Mask.gotoAndStop('OFF');
_root.SWindow.gotoAndStop('CL');
_root.CPaneru.SIc.gotoAndStop('OFF');
_global.CH_SWindow = 'OFF';
}
}
}
}
}
function f_BT_Exit() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('WindowOP');
volume = 20;
objsound_Se.setVolume(volume);
objsound_Se.start();
_root.CH_Exit = 'ON';
_root.Mwindow.gotoAndStop('OP');
}
}
function f_BT_MwindowYES() {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('WindowCL');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
fscommand('quit');
}
function f_BT_MwindowNO() {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('WindowCL');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
_root.CH_Exit = 'OFF';
_root.Mwindow.gotoAndStop('CL');
}
function f_BT_SWindï½ï½—OP() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('SoundWindow');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
_root.SWindow.gotoAndStop('OP');
_root.CPaneru.SIc.gotoAndStop('ON');
_global.CH_SWindow = 'ON';
}
}
function f_BT_SWindï½ï½—CL() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('SoundWindow');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
_root.SWindow.gotoAndStop('CL');
_root.CPaneru.SIc.gotoAndStop('OFF');
_global.CH_SWindow = 'OFF';
}
}
function f_BT_SoundUP() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('SoundUP');
volume = 20;
objsound_Se.setVolume(volume);
objsound_Se.start();
if (_global.voiceVL < 100) {
_global.voiceVL += 10;
objsound_ALL.setVolume(volume);
objsound_ALL.setVolume(_global.voiceVL);
var v3 = new Sound(_root.msCH);
v3.setVolume(_global.voiceVL);
} else {
_global.voiceVL = _global.voiceVL;
}
_root.SWindow.VolumeTXT = _global.voiceVL;
}
}
function f_BT_SoundDW() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('SoundUP');
volume = 20;
objsound_Se.setVolume(volume);
objsound_Se.start();
if (_global.voiceVL > 0) {
_global.voiceVL -= 10;
objsound_ALL.setVolume(volume);
objsound_ALL.setVolume(_global.voiceVL);
var v3 = new Sound(_root.msCH);
v3.setVolume(_global.voiceVL);
} else {
_global.voiceVL = _global.voiceVL;
}
_root.SWindow.VolumeTXT = _global.voiceVL;
}
}
function f_BT_Select() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('Select');
volume = 100;
objsound_Se.setVolume(volume);
objsound_Se.start();
objsound_Se.onSoundComplete = function (f_SoundEndCH) {
_root.BlackMatCH = 'ON';
};
}
}
function f_BT_SceneBack() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('SceneNext');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
objsound_Se.onSoundComplete = function (f_SoundEndCH) {
loadMovieNum('/data/' + _root.GoBack + '.swf', 0);
};
}
}
function f_BT_SceneNext() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('SceneNext');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
objsound_Se.onSoundComplete = function (f_SoundEndCH) {
loadMovieNum('/data/' + _root.GoNext + '.swf', 0);
};
}
}
function f_BT_MoveBack() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('MoveNext');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
if (_root.movNo == 'ag1') {
_root.gotoAndPlay('MOV6');
} else {
if (_root.movNo == 'ag6') {
_root.gotoAndPlay('MOV5');
} else {
if (_root.movNo == 'ag5') {
_root.gotoAndPlay('MOV4');
} else {
if (_root.movNo == 'ag4') {
_root.gotoAndPlay('MOV3');
} else {
if (_root.movNo == 'ag3') {
_root.gotoAndPlay('MOV2');
} else {
if (_root.movNo == 'ag2') {
_root.gotoAndPlay('MOV1');
}
}
}
}
}
}
}
}
function f_BT_MoveNext() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('MoveNext');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
if (_root.movNo == 'ag1') {
_root.gotoAndPlay('MOV2');
} else {
if (_root.movNo == 'ag2') {
_root.gotoAndPlay('MOV3');
} else {
if (_root.movNo == 'ag3') {
_root.gotoAndPlay('MOV4');
} else {
if (_root.movNo == 'ag4') {
_root.gotoAndPlay('MOV5');
} else {
if (_root.movNo == 'ag5') {
_root.gotoAndPlay('MOV6');
} else {
if (_root.movNo == 'ag6') {
_root.gotoAndPlay('MOV1');
}
}
}
}
}
}
}
}
function f_BT_LoopON() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('LoopLock');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
_global.CH_Loop = 'ON';
_root.CPaneru.LWindow.gotoAndStop('ON');
}
}
function f_BT_LoopOFF() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('LoopLock');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
_global.CH_Loop = 'OFF';
_root.CPaneru.LWindow.gotoAndStop('OFF');
}
}
function f_BT_CinemaON() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('Cenema');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
_global.CH_Cinema = 'ON';
_root.CPaneru.CWindow.gotoAndStop('ON');
}
}
function f_BT_CinemaOFF() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('Cenema');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
_global.CH_Cinema = 'OFF';
_root.CPaneru.CWindow.gotoAndStop('OFF');
}
}
function f_BT_WindowOP() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('FullSC');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
fscommand('fullscreen', 'true');
fscommand('showmenu', 'false');
fscommand('allowscale', 'true');
_global.CH_Full = 'ON';
_root.CPaneru.FWindow.gotoAndStop('ON');
}
}
function f_BT_WindowCL() {
if (_root.CH_Exit == 'OFF') {
objsound_Se = new Sound(_root.MC1);
objsound_Se.attachSound('FullSC');
volume = 30;
objsound_Se.setVolume(volume);
objsound_Se.start();
fscommand('fullscreen', 'true');
fscommand('allowscale', 'false');
_global.CH_Full = 'OFF';
_root.CPaneru.FWindow.gotoAndStop('OFF');
}
}
_global.SceneName = 'H4_E';
_root.GoNext = 'H4_Fin2_1';
_root.GoBack = 'H4_Fin1_3';
_root.GoSelect = 'sys_b3';
_global.CHMeganePS1 = 'ON';
_root.f_LoadVC();
_global.CH_Loop = 'OFF';
_root.CH_Exit = 'OFF';
_root.BlackMat._alpha = 100;
_root.BlackMatCH = 'OFF';
_root.SWindow.VolumeTXT = _global.voiceVL;
_root.createEmptyMovieClip('MC1', 1);
_root.createEmptyMovieClip('MC2', 2);
_root.CH_Vend = 'ON';
_root.CH_Vend2 = 'ON';
_root.CH_Vend3 = 'ON';
_root.CH_SVLV = '0%';
if (_global.CH_Loop == 'OFF') {
_root.CPaneru.LWindow.gotoAndStop('OFF');
} else {
if (_global.CH_Loop == 'ON') {
_root.CPaneru.LWindow.gotoAndStop('ON');
}
}
if (_global.CH_Cinema == 'OFF') {
_root.CPaneru.CWindow.gotoAndStop('OFF');
} else {
if (_global.CH_Cinema == 'ON') {
_root.CPaneru.CWindow.gotoAndStop('ON');
}
}
if (_global.CH_Full == 'OFF') {
_root.CPaneru.FWindow.gotoAndStop('OFF');
} else {
if (_global.CH_Full == 'ON') {
_root.CPaneru.FWindow.gotoAndStop('ON');
}
}
}
button 27 {
on (release) {
_root.f_BT_SoundUP();
_root.f_SaveVC();
}
}
button 32 {
on (release) {
_root.f_BT_SoundDW();
_root.f_SaveVC();
}
}
movieClip 35 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 37 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 44 {
on (release) {
_root.f_BT_MoveNext();
}
}
button 49 {
on (release) {
_root.f_BT_MoveBack();
}
}
button 54 {
on (release) {
_root.f_BT_SceneNext();
}
}
button 59 {
on (release) {
_root.f_BT_SceneBack();
}
}
button 64 {
on (release) {
_root.f_BT_Select();
}
}
button 69 {
on (release) {
_root.f_BT_Exit();
}
}
button 74 {
on (release) {
_root.f_BT_WindowOP();
}
}
button 79 {
on (release) {
_root.f_BT_WindowCL();
}
}
movieClip 80 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 85 {
on (release) {
_root.f_BT_CinemaON();
}
}
button 88 {
on (release) {
_root.f_BT_CinemaOFF();
}
}
movieClip 89 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 94 {
on (release) {
_root.f_BT_LoopON();
}
}
button 97 {
on (release) {
_root.f_BT_LoopOFF();
}
}
movieClip 98 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 103 {
on (release) {
_root.f_BT_SWindï½ï½—OP();
}
}
button 106 {
on (release) {
_root.f_BT_SWindï½ï½—CL();
}
}
movieClip 107 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 108 {
}
movieClip 111 {
frame 10 {
stop();
}
}
button 118 {
on (release) {
_root.f_BT_MwindowYES();
}
}
button 123 {
on (release) {
_root.f_BT_MwindowNO();
}
}
movieClip 126 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 127 {
}
instance BlackMat of movieClip 127 {
onClipEvent (enterFrame) {
_root.f_BlackMat();
_root.F_PanelViwe();
_root.f_voice();
}
}
frame 2 {
_root.movNo = 'ag1';
_root.msCH = nare_mc1;
var naration = new Sound(_root.msCH);
naration.setVolume(_global.voiceVL);
}
movieClip 128 {
}
frame 601 {
if (_global.CH_Loop == 'ON') {
_root.gotoAndPlay('MOV1');
} else {
nextFrame;
}
}
frame 602 {
_root.movNo = 'ag2';
_root.msCH = nare_mc2;
var naration = new Sound(_root.msCH);
naration.setVolume(_global.voiceVL);
}
movieClip 130 {
}
frame 1201 {
if (_global.CH_Loop == 'ON') {
_root.gotoAndPlay('MOV2');
} else {
nextFrame;
}
}
frame 1202 {
_root.movNo = 'ag3';
_root.msCH = nare_mc3;
var naration = new Sound(_root.msCH);
naration.setVolume(_global.voiceVL);
}
movieClip 132 {
}
frame 1501 {
if (_global.CH_Loop == 'ON') {
_root.gotoAndPlay('MOV3');
} else {
nextFrame;
}
}
frame 1502 {
_root.movNo = 'ag4';
_root.msCH = nare_mc4;
var naration = new Sound(_root.msCH);
naration.setVolume(_global.voiceVL);
}
movieClip 134 {
}
frame 2101 {
if (_global.CH_Loop == 'ON') {
_root.gotoAndPlay('MOV4');
} else {
nextFrame;
}
}
frame 2102 {
_root.movNo = 'ag5';
_root.msCH = nare_mc5;
var naration = new Sound(_root.msCH);
naration.setVolume(_global.voiceVL);
}
movieClip 136 {
}
frame 2401 {
if (_global.CH_Loop == 'ON') {
_root.gotoAndPlay('MOV5');
} else {
nextFrame;
}
}
frame 2402 {
_root.movNo = 'ag6';
_root.msCH = nare_mc6;
var naration = new Sound(_root.msCH);
naration.setVolume(_global.voiceVL);
}
movieClip 138 {
}
frame 2700 {
if (_root.CH_Exit == 'OFF') {
if (_global.CH_Cinema == 'OFF') {
if (_global.CH_Loop == 'ON') {
_root.gotoAndPlay('MOV6');
} else {
_root.gotoAndPlay('MOV1');
}
} else {
if (_global.CH_Cinema == 'ON') {
if (_global.CH_Loop == 'ON') {
_root.gotoAndPlay('MOV6');
} else {
loadMovieNum('/data/' + _root.GoNext + '.swf', 0);
}
}
}
} else {
if (_global.CH_Cinema == 'OFF') {
if (_global.CH_Loop == 'ON') {
_root.gotoAndPlay('MOV6');
} else {
_root.gotoAndPlay('MOV1');
}
} else {
if (_global.CH_Cinema == 'ON') {
if (_global.CH_Loop == 'ON') {
_root.gotoAndPlay('MOV6');
} else {
_root.gotoAndPlay('MOV6');
}
}
}
}
}