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;
_global.CHMeganePS = 'ON';
loadMovieNum('/data/' + _root.GoSelect + '.swf', 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_H5';
_root.GoNext = 'H5_A';
_root.GoBack = 'H4_H5_2';
_root.GoSelect = 'sys_b3';
_global.CHMeganePS1 = 'ON';
_root.f_LoadVC();
_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 17 {
on (release) {
_root.f_BT_SoundUP();
_root.f_SaveVC();
}
}
button 22 {
on (release) {
_root.f_BT_SoundDW();
_root.f_SaveVC();
}
}
movieClip 25 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 27 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 34 {
on (release) {
_root.f_BT_SceneNext();
}
}
button 39 {
on (release) {
_root.f_BT_SceneBack();
}
}
button 44 {
on (release) {
_root.f_BT_Select();
}
}
button 49 {
on (release) {
_root.f_BT_Exit();
}
}
button 54 {
on (release) {
_root.f_BT_WindowOP();
}
}
button 59 {
on (release) {
_root.f_BT_WindowCL();
}
}
movieClip 60 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 65 {
on (release) {
_root.f_BT_CinemaON();
}
}
button 68 {
on (release) {
_root.f_BT_CinemaOFF();
}
}
movieClip 69 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 74 {
on (release) {
_root.f_BT_SWindï½ï½—OP();
}
}
button 77 {
on (release) {
_root.f_BT_SWindï½ï½—CL();
}
}
movieClip 78 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 83 {
}
movieClip 86 {
frame 10 {
stop();
}
}
button 93 {
on (release) {
_root.f_BT_MwindowYES();
}
}
button 98 {
on (release) {
_root.f_BT_MwindowNO();
}
}
movieClip 101 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 102 {
}
instance BlackMat of movieClip 102 {
onClipEvent (enterFrame) {
_root.f_BlackMat();
_root.F_PanelViwe();
}
}
frame 2 {
_root.movNo = 'ag1';
_root.msCH = nare_mc1;
var naration = new Sound(_root.msCH);
naration.setVolume(_global.voiceVL);
}
movieClip 104 {
}
frame 871 {
if (_root.CH_Exit == 'OFF') {
loadMovieNum('/data/' + _root.GoNext + '.swf', 0);
} else {
_root.gotoAndPlay('MOV1');
}
}