home *** CD-ROM | disk | FTP | other *** search
- function setCurrentSection(m_1, m_2, m_3, m_4, id, name, there_is_photo_gallery)
- {
- _root.curr_section_m_1 = m_1;
- _root.curr_section_m_2 = m_2;
- _root.curr_section_m_3 = m_3;
- _root.curr_section_m_4 = m_4;
- _root.curr_section_id = id;
- _root.curr_section_name = name;
- _root.photo_gallery_exists = there_is_photo_gallery;
- }
- function initCurrentSection(m_1, m_2, m_3, m_4, id, name, there_is_photo_gallery)
- {
- if(m_2 == -1 and _root.main_section_clicked != m_1)
- {
- _root.load_main_interface = true;
- _root.main_section_previous_clicked = _root.main_section_clicked;
- _root.main_section_clicked = m_1;
- _root.main_section_clicked_id = id;
- _root.main_section_clicked_name = name;
- _root.photo_gallery_exists = there_is_photo_gallery;
- }
- else
- {
- _root.main_section_previous_clicked = _root.main_section_clicked;
- if(_root.curr_section_m_2 != -1)
- {
- _root.load_main_interface = false;
- }
- }
- _root.curr_section_m_1 = m_1;
- _root.curr_section_m_2 = m_2;
- _root.curr_section_m_3 = m_3;
- _root.curr_section_m_4 = m_4;
- _root.curr_section_id = id;
- _root.curr_section_name = name;
- if(_root.video_gallery_is_loaded == true)
- {
- _root.video_gallery_is_loaded = false;
- unloadMovie(_root.main.video_stage);
- if(_root.BgMusicIsOn == true)
- {
- tellTarget(_root.main.audiobg_stage)
- {
- gotoAndStop("sound_play");
- }
- }
- else
- {
- tellTarget(_root.main.audiobg_stage)
- {
- gotoAndStop("sound_stop");
- }
- }
- }
- if(_root._root.music_gallery_is_loaded == true)
- {
- _root._root.music_gallery_is_loaded = false;
- unloadMovie(_root.main.music_stage);
- if(_root.BgMusicIsOn == true)
- {
- tellTarget(_root.main.audiobg_stage)
- {
- gotoAndStop("sound_play");
- }
- }
- else
- {
- tellTarget(_root.main.audiobg_stage)
- {
- gotoAndStop("sound_stop");
- }
- }
- }
- if(_root.curr_section_m_2 == -1)
- {
- if(_root.main_section_clicked != _root.main_section_previous_clicked)
- {
- _root.main.gotoAndPlay(321);
- }
- }
- else if(_root.load_main_interface)
- {
- _root.main.gotoAndPlay(323);
- }
- else
- {
- tellTarget(_root.main.main_stage.section_main)
- {
- gotoAndStop("Load_Text");
- play();
- }
- if(_root.photo_gallery_is_loaded)
- {
- _root.photo_gallery_is_loaded = false;
- tellTarget(_root.main.photo_stage.photo_gallery)
- {
- gotoAndStop("Close_Photo_Gallery");
- }
- }
- }
- }
- setCurrentSection(_root.main_section_clicked,-1,-1,-1,_root.main_section_clicked_id,_root.main_section_clicked_name,_root.photo_gallery_exists);
- _root.main_section_previous_clicked = -1;
-