home *** CD-ROM | disk | FTP | other *** search
- function renderSettings()
- {
- bg_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.firstChild);
- help_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.firstChild);
- online_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- exit_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- content_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- moviepath_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- logos_top_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- logos_bottom_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- cd_info = String(settings.firstChild.firstChild.firstChild);
- header_start_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- fade_modus = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- url_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- copyright_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- debug_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- cd_sentence_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- show_cd_sentence_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- menu_overview_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- menu_help_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- menu_online_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- menu_playall_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- menu_exit_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- menu_back_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- media_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- exit_desc = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- menu_print_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- menu_color_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- app_name_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- menu_playall_chapter_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
- apptitle = "Video2Brain " + app_name_info;
- flashstudio.setapplicationtitle(apptitle);
- flashstudio.setwindowtitle(apptitle);
- tmp_header_info = header_start_info;
- if(debug_info == "true")
- {
- renderDebugger();
- }
- loadContent(content_info);
- }
- function initApp()
- {
- trace("renderSettings");
- _root.attachMovie("video_stage_holder","video_stage_holder",150);
- video_stage_holder._x = -2000;
- video_stage_holder.loadMovie(fsp_path + "9430830/vcore.v2b");
- video_stage_holder.setMask(mask_mc);
- renderBackground();
- }
- function renderDebugger()
- {
- _root.attachMovie("debug_mc","debug_mc_attached",250);
- debug_mc_attached.debug_op.text = os_info + "\n" + os_string[0];
- debug_mc_attached.debug_op.text += "\n" + fsp_path;
- }
- function renderBackground()
- {
- _root.attachMovie("border_mc","border_mc_attached",99);
- _root.attachMovie("black_mc","border_mc_attached",0);
- _root.createEmptyMovieClip("bg_mc",1);
- bg_container = bg_mc.createEmptyMovieClip("bg_container",2);
- bg_mc._visible = 0;
- bg_container.loadMovie(fsp_path + bg_info);
- bg_mc.onEnterFrame = function()
- {
- var _loc2_ = bg_container.getBytesTotal();
- var _loc1_ = bg_container.getBytesLoaded();
- if(_loc1_ > 0)
- {
- percent = int(_loc1_ / _loc2_ * 100);
- if(percent > 99)
- {
- delete bg_mc.onEnterFrame;
- bg_mc._x = 0;
- bg_mc._y = 0;
- bg_mc._width = 1024;
- bg_mc._height = 768;
- bg_mc._visible = 1;
- renderStructure();
- }
- }
- };
- }
- function renderStructure()
- {
- gotoAndStop(2);
- array_name = String("clevel" + current_clevel);
- array_name = new Array();
- structure = cd_content.firstChild;
- memory = new Array();
- memory[current_clevel] = structure;
- tmp_menu_distance = menu_distance - structure.childNodes.length - menu_subtr;
- positionElements();
- parseVideo(structure);
- i = 0;
- while(i < structure.childNodes.length)
- {
- array_name[i] = structure.childNodes[i];
- menu_pos_mc.attachMovie("button_mc","button_mc" + i,11 + i);
- menu_pos_mc["button_mc" + i]._y += tmp_menu_distance * i;
- menu_pos_mc["button_mc" + i].id = i;
- menu_pos_mc["button_mc" + i].clevel_data = array_name[i];
- i++;
- }
- }
- function renderNextMenu(clevel_data)
- {
- breadcrumb[current_clevel] = current_sub_chapter;
- parseVideo(clevel_data);
- if(current_clevel == 1)
- {
- tmp_header_info = header_start_info;
- second_navi_mc_attached.gotoAndStop(1);
- }
- else
- {
- second_navi_mc_attached.gotoAndStop(2);
- }
- tmp_header_info = String(clevel_data.attributes.name);
- tmp_menu_distance = int(menu_distance - clevel_data.childNodes.length - menu_subtr);
- deleteTeaser();
- header_mc_attached.removeMovieClip();
- _root.attachMovie("header_mc","header_mc_attached",9);
- header_mc_attached._x = 55;
- header_mc_attached._y = 130;
- menu_pos_mc.removeMovieClip();
- _root.createEmptyMovieClip("menu_pos_mc",7);
- menu_pos_mc._x = 55;
- menu_pos_mc._y = 384 - int(tmp_menu_distance * clevel_data.childNodes.length / 2) + 5;
- array_name = String("clevel" + current_clevel);
- array_name = new Array();
- memory[current_clevel] = clevel_data;
- i = 0;
- while(i < clevel_data.childNodes.length)
- {
- array_name[i] = clevel_data.childNodes[i];
- menu_pos_mc.attachMovie("button_mc","button_mc" + i,11 + i);
- menu_pos_mc["button_mc" + i]._y += tmp_menu_distance * i;
- menu_pos_mc["button_mc" + i].id = i;
- menu_pos_mc["button_mc" + i].clevel_data = array_name[i];
- menu_pos_mc["button_mc" + i].next_movie_data = array_name[i];
- i++;
- }
- }
- function renderLastMenu()
- {
- dark_mc_attached.removeMovieClip();
- overview_mc_attached.removeMovieClip();
- online_mc_attached.removeMovieClip();
- external_mc_attached.removeMovieClip();
- if(current_clevel > 1)
- {
- current_clevel--;
- }
- last_clevel_data = new Array();
- last_clevel_data = memory[current_clevel];
- parseVideo(last_clevel_data);
- tmp_menu_distance = int(menu_distance - last_clevel_data.childNodes.length - menu_subtr);
- tmp_header_info = String(last_clevel_data.attributes.name);
- if(current_clevel == 1)
- {
- tmp_header_info = header_start_info;
- second_navi_mc_attached.gotoAndStop(1);
- }
- else
- {
- second_navi_mc_attached.gotoAndStop(2);
- }
- deleteTeaser();
- header_mc_attached.removeMovieClip();
- _root.attachMovie("header_mc","header_mc_attached",9);
- header_mc_attached._x = 55;
- header_mc_attached._y = 130;
- menu_pos_mc.removeMovieClip();
- _root.createEmptyMovieClip("menu_pos_mc",7);
- menu_pos_mc._x = 55;
- menu_pos_mc._y = 384 - int(tmp_menu_distance * last_clevel_data.childNodes.length / 2) + 5;
- array_name = String("clevel" + current_clevel);
- array_name = new Array();
- i = 0;
- while(i < last_clevel_data.childNodes.length)
- {
- array_name[i] = last_clevel_data.childNodes[i];
- menu_pos_mc.attachMovie("button_mc","button_mc" + i,11 + i);
- menu_pos_mc["button_mc" + i]._y += tmp_menu_distance * i;
- menu_pos_mc["button_mc" + i].id = i;
- menu_pos_mc["button_mc" + i].clevel_data = array_name[i];
- menu_pos_mc["button_mc" + i].next_movie_data = array_name[i + 1];
- i++;
- }
- }
- function showTeaser(teaser_header, teaser_body, teaser_extra, cd, image)
- {
- trace(image);
- if(image == "" || image == "undefined")
- {
- teaser_image_container.removeMovieClip();
- }
- else
- {
- teaser_image_container = teaser_mc_attached.image_holder.createEmptyMovieClip("teaser_image_container",1);
- teaser_image_container._visible = 0;
- teaser_image_container.loadMovie(fsp_path + moviepath_info + image);
- teaser_mc_attached.onEnterFrame = function()
- {
- var _loc2_ = teaser_image_container.getBytesTotal();
- var _loc1_ = teaser_image_container.getBytesLoaded();
- if(_loc1_ > 0)
- {
- percent = int(_loc1_ / _loc2_ * 100);
- if(percent > 99)
- {
- delete teaser_mc_attached.onEnterFrame;
- teaser_image_container._width = 470;
- teaser_image_container._height = 270;
- teaser_image_container._visible = 1;
- teaser_image_container._alpha = 40;
- }
- }
- };
- }
- if(cd == cd_info or cd == "both")
- {
- teaser_mc_attached.teaser_header_op.textColor = 16777215;
- teaser_mc_attached.teaser_body_op.textColor = 16777215;
- }
- else
- {
- teaser_mc_attached.teaser_header_op.textColor = 10066329;
- teaser_mc_attached.teaser_body_op.textColor = 10066329;
- }
- teaser_mc_attached.teaser_header_op.text = teaser_header;
- teaser_mc_attached.teaser_body_op.text = teaser_body;
- teaser_mc_attached.teaser_extra_op.text = teaser_extra;
- if(director_info == undefined)
- {
- if(fade_modus == "true")
- {
- _root.onEnterFrame = function()
- {
- teaser_mc_attached._alpha += 5;
- if(teaser_mc_attached._alpha > 99)
- {
- delete _root.onEnterFrame;
- teaser_mc_attached._alpha = 100;
- }
- };
- }
- else
- {
- teaser_mc_attached._alpha = 100;
- }
- }
- else
- {
- teaser_mc_attached._alpha = 100;
- }
- }
- function deleteTeaser()
- {
- if(director_info == undefined)
- {
- if(fade_modus == "true")
- {
- _root.onEnterFrame = function()
- {
- teaser_mc_attached._alpha -= 5;
- if(teaser_mc_attached._alpha <= 0)
- {
- delete _root.onEnterFrame;
- teaser_mc_attached._alpha = 0;
- }
- };
- }
- else
- {
- teaser_mc_attached._alpha = 0;
- }
- }
- else
- {
- teaser_mc_attached._alpha = 0;
- }
- teaser_mc_attached.teaser_header_op.text = "";
- teaser_mc_attached.teaser_body_op.text = "";
- teaser_mc_attached.teaser_extra_op.text = "";
- }
- function positionElements()
- {
- _root.attachMovie("bg_mask","bg_mask_attached",5);
- bg_mask_attached._x = 0;
- bg_mask_attached._y = 0;
- _root.attachMovie("v2b_logo","v2b_logo",6);
- v2b_logo._x = 0;
- v2b_logo._y = 0;
- _root.createEmptyMovieClip("menu_pos_mc",7);
- menu_pos_mc._x = 55;
- menu_pos_mc._y = int(384 - tmp_menu_distance * structure.childNodes.length / 2) + 5;
- _root.attachMovie("second_navi_mc","second_navi_mc_attached",8);
- second_navi_mc_attached._x = 0;
- second_navi_mc_attached._y = 633;
- _root.attachMovie("header_mc","header_mc_attached",9);
- header_mc_attached._x = 55;
- header_mc_attached._y = 130;
- _root.attachMovie("teaser_mc","teaser_mc_attached",10);
- teaser_mc_attached._alpha = 0;
- teaser_mc_attached._x = 495;
- teaser_mc_attached._y = 250;
- }
- function attachLine(id)
- {
- if(menu_pos_mc._y + menu_pos_mc["button_mc" + id]._y <= teaser_mc_attached._y + teaser_mc_attached._height / 2)
- {
- menu_pos_mc["button_mc" + id].attachMovie("upperLine","line_attached",5);
- menu_pos_mc["button_mc" + id].line_attached._y = 12;
- menu_pos_mc["button_mc" + id].line_attached._height = teaser_mc_attached._y + teaser_mc_attached._height / 2 - (menu_pos_mc._y + menu_pos_mc["button_mc" + id]._y) - 12;
- }
- else
- {
- menu_pos_mc["button_mc" + id].attachMovie("lowerLine","line_attached",5);
- menu_pos_mc["button_mc" + id].line_attached._y = 12;
- menu_pos_mc["button_mc" + id].line_attached._height = menu_pos_mc._y + menu_pos_mc["button_mc" + id]._y - (teaser_mc_attached._y + teaser_mc_attached._height / 2) + 12;
- }
- }
- function deleteLine(id)
- {
- menu_pos_mc["button_mc" + id].line_attached.removeMovieClip();
- }
- function renderOverview()
- {
- return_to_overview = false;
- menu_pos_mc.removeMovieClip();
- header_mc_attached.removeMovieClip();
- second_navi_mc_attached.gotoAndStop(3);
- _root.attachMovie("dark_mc","dark_mc_attached",3);
- _root.attachMovie("overview_mc","overview_mc_attached",4);
- p_num = 1;
- print_depth = 300;
- _root.attachMovie("overview_mc_print","overview_mc_print" + p_num,print_depth++);
- _root["overview_mc_print" + p_num]._x = xposition_print;
- _root["overview_mc_print" + p_num]._xscale = p_xscale;
- _root["overview_mc_print" + p_num]._yscale = p_yscale;
- _root["overview_mc_print" + p_num].p_num_op.text = p_num;
- button_counter = 0;
- yposition = 100;
- yposition_print = 100;
- video_counter = 0;
- parseTree(structure);
- }
- function renderOnline()
- {
- menu_pos_mc.removeMovieClip();
- header_mc_attached.removeMovieClip();
- second_navi_mc_attached.gotoAndStop(4);
- _root.attachMovie("dark_mc","dark_mc_attached",3);
- _root.attachMovie("online_mc","online_mc_attached",4);
- online_mc_attached.pos_mc.loadMovie(fsp_path + online_info);
- }
- function renderExit()
- {
- menu_pos_mc.removeMovieClip();
- header_mc_attached.removeMovieClip();
- second_navi_mc_attached.removeMovieClip();
- _root.attachMovie("dark_mc","dark_mc_attached",3);
- _root.attachMovie("exit_mc","exit_mc_attached",99);
- exit_mc_attached.pos_mc.loadMovie(fsp_path + exit_info);
- }
- function parseTree(xmlNode)
- {
- button_counter++;
- if(xmlNode.hasChildNodes())
- {
- var _loc2_ = 0;
- while(_loc2_ < xmlNode.childNodes.length)
- {
- var _loc4_ = String(xmlNode.childNodes[_loc2_].nodeName);
- current_level = _loc4_.split("");
- if(xmlNode.childNodes[_loc2_].nodeName == "clevel1")
- {
- yposition += 44;
- tmp_chapter = String(xmlNode.childNodes[_loc2_].attributes.name);
- overview_mc_attached.scroll_mc.pos_mc.attachMovie("button_overview_mc","button_overview_mc" + button_counter,button_counter);
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter]._y = yposition;
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter]._x = 0;
- if(yposition_print >= max_print_length)
- {
- yposition_print = 100;
- p_num++;
- _root.attachMovie("overview_mc_print","overview_mc_print" + p_num,print_depth++);
- _root["overview_mc_print" + p_num]._x = xposition_print;
- _root["overview_mc_print" + p_num]._xscale = p_xscale;
- _root["overview_mc_print" + p_num]._yscale = p_yscale;
- _root["overview_mc_print" + p_num].p_num_op.text = p_num;
- }
- yposition_print += 44;
- _root["overview_mc_print" + p_num].pos_mc.attachMovie("button_overview_mc","button_overview_mc_print" + button_counter,button_counter);
- _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter]._y = yposition_print;
- _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter]._x = 0;
- if(String(xmlNode.childNodes[_loc2_].attributes.length) != "")
- {
- if(String(xmlNode.childNodes[_loc2_].attributes.cd) == cd_info or String(xmlNode.childNodes[_loc2_].attributes.cd) == "both")
- {
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].info_op.htmlText = "<b>" + String(xmlNode.childNodes[_loc2_].attributes.name) + " </b><i><font size=\'14\'>Gesamtdauer: ca. " + xmlNode.childNodes[_loc2_].attributes.length + "</font></i>";
- _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter].info_op.htmlText = "<font color=\'#000000\'><b>" + String(xmlNode.childNodes[_loc2_].attributes.name) + " </b><i><font size=\'14\'>Gesamtdauer: ca. " + xmlNode.childNodes[_loc2_].attributes.length + "</font></i>";
- }
- else if(show_cd_sentence_info == "true")
- {
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].info_op.htmlText = "<b><font color=\'#aaaaaa\'>" + String(xmlNode.childNodes[_loc2_].attributes.name) + "</font></b><i><font color=\'#ffffff\' size=\'14\'> " + cd_sentence_info + xmlNode.childNodes[_loc2_].attributes.cd + "</font></i>";
- _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter].info_op.htmlText = "<b><font color=\'#555555\'>" + String(xmlNode.childNodes[_loc2_].attributes.name) + "</font></b><i><font color=\'#ffffff\' size=\'14\'> " + cd_sentence_info + xmlNode.childNodes[_loc2_].attributes.cd + "</font></i>";
- }
- else
- {
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].info_op.htmlText = "<b><font color=\'#aaaaaa\'>" + String(xmlNode.childNodes[_loc2_].attributes.name) + "</font></b>";
- _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter].info_op.htmlText = "<b><font color=\'#555555\'>" + String(xmlNode.childNodes[_loc2_].attributes.name) + "</font></b>";
- }
- }
- else if(String(xmlNode.childNodes[_loc2_].attributes.cd) == cd_info or String(xmlNode.childNodes[_loc2_].attributes.cd) == "both")
- {
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].info_op.htmlText = "<b>" + String(xmlNode.childNodes[_loc2_].attributes.name) + " </b>";
- _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter].info_op.htmlText = "<b>" + String(xmlNode.childNodes[_loc2_].attributes.name) + " </b>";
- }
- else if(show_cd_sentence_info == "true")
- {
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].info_op.htmlText = "<b><font color=\'#aaaaaa\'>" + String(xmlNode.childNodes[_loc2_].attributes.name) + "</font></b><i><font color=\'#ffffff\' size=\'14\'> " + cd_sentence_info + xmlNode.childNodes[_loc2_].attributes.cd + "</font></i>";
- _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter].info_op.htmlText = "<b><font color=\'#555555\'>" + String(xmlNode.childNodes[_loc2_].attributes.name) + "</font></b><i><font color=\'#ffffff\' size=\'14\'> " + cd_sentence_info + xmlNode.childNodes[_loc2_].attributes.cd + "</font></i>";
- }
- else
- {
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].info_op.htmlText = "<b><font color=\'#aaaaaa\'>" + String(xmlNode.childNodes[_loc2_].attributes.name) + "</font></b>";
- _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter].info_op.htmlText = "<b><font color=\'#555555\'>" + String(xmlNode.childNodes[_loc2_].attributes.name) + "</font></b>";
- }
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].cd_id = xmlNode.childNodes[_loc2_].attributes.cd;
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].movie_id = xmlNode.childNodes[_loc2_].attributes.movie;
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].fps_id = xmlNode.childNodes[_loc2_].attributes.fps;
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].type_id = xmlNode.childNodes[_loc2_].attributes.type;
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].symbol_id = false;
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].subchapter_allowed = false;
- }
- else
- {
- yposition += 22;
- overview_mc_attached.scroll_mc.pos_mc.attachMovie("button_overview_mc","button_overview_mc" + button_counter,button_counter);
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter]._y = yposition;
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter]._x = 50 * (current_level[6] - 1);
- if(yposition_print >= max_print_length)
- {
- yposition_print = 100;
- p_num++;
- _root.attachMovie("overview_mc_print","overview_mc_print" + p_num,print_depth++);
- _root["overview_mc_print" + p_num]._x = xposition_print;
- _root["overview_mc_print" + p_num]._xscale = p_xscale;
- _root["overview_mc_print" + p_num]._yscale = p_yscale;
- _root["overview_mc_print" + p_num].p_num_op.text = p_num;
- }
- yposition_print += 22;
- _root["overview_mc_print" + p_num].pos_mc.attachMovie("button_overview_mc","button_overview_mc_print" + button_counter,button_counter);
- _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter]._y = yposition_print;
- _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter]._x = 50 * (current_level[6] - 1);
- if(String(xmlNode.childNodes[_loc2_].attributes.cd) == cd_info or String(xmlNode.childNodes[_loc2_].attributes.cd) == "both")
- {
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].info_op.htmlText = String(xmlNode.childNodes[_loc2_].attributes.name);
- _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter].info_op.htmlText = "<font color=\'#000000\'>" + String(xmlNode.childNodes[_loc2_].attributes.name);
- }
- else
- {
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].info_op.htmlText = "<font color=\'#aaaaaa\'>" + String(xmlNode.childNodes[_loc2_].attributes.name) + "</font>";
- _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter].info_op.htmlText = "<font color=\'#555555\'>" + String(xmlNode.childNodes[_loc2_].attributes.name);
- }
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].cd_id = xmlNode.childNodes[_loc2_].attributes.cd;
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].movie_id = xmlNode.childNodes[_loc2_].attributes.movie;
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].fps_id = xmlNode.childNodes[_loc2_].attributes.fps;
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].type_id = xmlNode.childNodes[_loc2_].attributes.type;
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].symbol_id = true;
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].video_level_data = xmlNode;
- if(xmlNode.childNodes[_loc2_].attributes.type == "menu")
- {
- tmp_subchapter = String(xmlNode.childNodes[_loc2_].attributes.name);
- }
- if(current_level[6] >= 3)
- {
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].subchapter_allowed = true;
- }
- else
- {
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].subchapter_allowed = false;
- }
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].chapter_id = tmp_chapter;
- overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].subchapter_id = tmp_subchapter;
- }
- parseTree(xmlNode.childNodes[_loc2_]);
- _loc2_ = _loc2_ + 1;
- }
- }
- }
- function parseVideo(xmlNode)
- {
- video_data = new Array();
- var _loc1_ = 0;
- while(_loc1_ < xmlNode.childNodes.length)
- {
- if(xmlNode.childNodes[_loc1_].attributes.type == "movie" and xmlNode.childNodes[_loc1_].attributes.cd == cd_info)
- {
- video_data.push(xmlNode.childNodes[_loc1_]);
- }
- _loc1_ = _loc1_ + 1;
- }
- }
- function parseVideoPlayAll(xmlNode)
- {
- if(xmlNode.hasChildNodes())
- {
- var _loc1_ = 0;
- while(_loc1_ < xmlNode.childNodes.length)
- {
- if(xmlNode.childNodes[_loc1_].nodeName == "clevel1")
- {
- subchapter = undefined;
- chapter = String(xmlNode.childNodes[_loc1_].attributes.name);
- }
- else if(xmlNode.childNodes[_loc1_].attributes.type == "menu")
- {
- subchapter = String(xmlNode.childNodes[_loc1_].attributes.name);
- }
- if(xmlNode.childNodes[_loc1_].attributes.type == "movie")
- {
- if(xmlNode.childNodes[_loc1_].attributes.cd == cd_info)
- {
- video_data.push(new Array(xmlNode.childNodes[_loc1_],chapter,subchapter));
- }
- }
- parseVideoPlayAll(xmlNode.childNodes[_loc1_]);
- _loc1_ = _loc1_ + 1;
- }
- }
- }
- function parseVideoPlayAllChapter(xmlNode)
- {
- if(xmlNode.nodeName == "clevel1")
- {
- subchapter = undefined;
- chapter = _root.chapter_header;
- }
- else
- {
- chapter = _root.chapter_header;
- if(xmlNode.attributes.type == "menu")
- {
- subchapter = String(xmlNode.attributes.name);
- }
- }
- if(xmlNode.hasChildNodes())
- {
- var _loc2_ = 0;
- while(_loc2_ < xmlNode.childNodes.length)
- {
- if(xmlNode.childNodes[_loc2_].attributes.type == "movie")
- {
- if(xmlNode.childNodes[_loc2_].attributes.cd == cd_info)
- {
- video_data.push(new Array(xmlNode.childNodes[_loc2_],chapter,subchapter));
- }
- }
- parseVideoPlayAllChapter(xmlNode.childNodes[_loc2_]);
- _loc2_ = _loc2_ + 1;
- }
- }
- }
- function playAll()
- {
- return_clevel = 1;
- current_video = 0;
- video_data = new Array();
- parseVideoPlayAll(structure);
- play_all_max = video_data.length;
- current_video_play_all_data = video_data[current_video][0];
- current_chapter = video_data[current_video][1];
- current_sub_chapter = video_data[current_video][2];
- play_all_mode = true;
- renderMovie(String(current_video_play_all_data.attributes.movie),String(current_video_play_all_data.attributes.fps),String(current_video_play_all_data.attributes.name));
- }
- function playAllChapter()
- {
- trace(current_clevel);
- return_clevel = current_clevel + 1;
- current_video = 0;
- video_data = new Array();
- parseVideoPlayAllChapter(memory[current_clevel]);
- play_all_max = video_data.length;
- current_video_play_all_data = video_data[current_video][0];
- current_chapter = video_data[current_video][1];
- current_sub_chapter = video_data[current_video][2];
- play_all_mode = true;
- renderMovie(String(current_video_play_all_data.attributes.movie),String(current_video_play_all_data.attributes.fps),String(current_video_play_all_data.attributes.name));
- }
- function startNextMovie()
- {
- clearInterval(_root.timeout);
- timeout_allowed = true;
- if(current_video < play_all_max - 1)
- {
- current_video++;
- current_video_play_all_data = video_data[current_video][0];
- current_chapter = video_data[current_video][1];
- current_sub_chapter = video_data[current_video][2];
- if(current_sub_chapter == undefined)
- {
- _root.current_sub_chapter = "undefined";
- current_clevel = 1;
- }
- else
- {
- current_clevel = 4;
- }
- renderNextMovie(String(current_video_play_all_data.attributes.movie),String(current_video_play_all_data.attributes.fps),String(current_video_play_all_data.attributes.name));
- }
- else
- {
- current_clevel = return_clevel;
- killMovie();
- }
- }
- function calculateCurrentVideo(id)
- {
- i = 0;
- while(i < video_data.length)
- {
- if(String(video_data[i].attributes.movie) == id)
- {
- current_video = i;
- }
- i++;
- }
- }
- function renderMovie(file, fps, movie_name)
- {
- video_stage_holder.CC_MovieLoader.reset();
- video_stage_holder.CC_MovieLoader._visible = 0;
- if(fps == "")
- {
- trace("no fps set!");
- current_fps = default_fps;
- }
- else
- {
- trace("current fps:" + fps);
- current_fps = fps;
- }
- menu_pos_mc.removeMovieClip();
- header_mc_attached.removeMovieClip();
- overview_mc_attached.removeMovieClip();
- second_navi_mc_attached._visible = 0;
- v2b_logo._visible = 0;
- bg_mask_attached._visible = 0;
- teaser_mc_attached._alpha = 0;
- _root.attachMovie("black_mc","black_mc_attached",3);
- movieURL_active = fsp_path + moviepath_info + file;
- video_stage_holder._x = 0;
- video_stage_holder.CC_MovieLoader._x = 512 - current_movie_width / 2;
- video_stage_holder.CC_MovieLoader._y = 384 - current_movie_height / 2 - 50;
- video_stage_holder.CS_movie_control.checkButtons();
- video_stage_holder.attachDuration();
- _root.attachMovie("movie_info_mc","movie_info_mc_attached",4);
- if(current_movie_height <= 600)
- {
- movie_info_mc_attached._y = 633;
- }
- else
- {
- movie_info_mc_attached._y = movie_loader_attached._y + current_movie_height;
- }
- if(return_to_overview == true)
- {
- if(show_subchapter == false)
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i><b>FILM: </b><i>" + movie_name + "</i>";
- }
- else
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i>" + "<b>ABSCHNITT: </b><i>" + current_sub_chapter + " </i>" + " <b>FILM: </b><i>" + movie_name + "</i>";
- }
- }
- else
- {
- current_clevel++;
- if(current_clevel > 3)
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i>" + "<b>ABSCHNITT: </b><i>" + current_sub_chapter + " </i>" + " <b>FILM: </b><i>" + movie_name + "</i>";
- }
- else
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i><b>FILM: </b><i>" + movie_name + "</i>";
- }
- }
- video_stage_holder.CC_MovieLoader.setMovieURL(movieURL_active);
- play_video_id = setInterval(playVideo,500);
- }
- function renderNextMovie(file, fps, movie_name)
- {
- video_stage_holder.CC_MovieLoader.reset();
- video_stage_holder.CC_MovieLoader._visible = 0;
- if(fps == "")
- {
- trace("no fps set!");
- current_fps = default_fps;
- }
- else
- {
- trace("current fps:" + fps);
- current_fps = fps;
- }
- movieURL_active = fsp_path + moviepath_info + file;
- video_stage_holder._x = 0;
- video_stage_holder.CC_MovieLoader._x = 512 - current_movie_width / 2;
- video_stage_holder.CC_MovieLoader._y = 384 - current_movie_height / 2 - 50;
- video_stage_holder.CS_movie_control.checkButtons();
- video_stage_holder.attachDuration();
- _root.attachMovie("movie_info_mc","movie_info_mc_attached",4);
- if(current_movie_height <= 600)
- {
- movie_info_mc_attached._y = 633;
- }
- else
- {
- movie_info_mc_attached._y = movie_loader_attached._y + current_movie_height;
- }
- if(return_to_overview == true)
- {
- if(show_subchapter == false)
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i><b>FILM: </b><i>" + movie_name + "</i>";
- }
- else
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i>" + "<b>ABSCHNITT: </b><i>" + current_sub_chapter + " </i>" + " <b>FILM: </b><i>" + movie_name + "</i>";
- }
- }
- else if(current_clevel > 3)
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i>" + "<b>ABSCHNITT: </b><i>" + current_sub_chapter + " </i>" + " <b>FILM: </b><i>" + movie_name + "</i>";
- }
- else
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i><b>FILM: </b><i>" + movie_name + "</i>";
- }
- video_stage_holder.CC_MovieLoader.setMovieURL(movieURL_active);
- play_video_id = setInterval(playVideo,50);
- }
- function renderPrevMovie(file, fps, movie_name)
- {
- video_stage_holder.CC_MovieLoader.reset();
- video_stage_holder.CC_MovieLoader._visible = 0;
- if(fps == "")
- {
- trace("no fps set!");
- current_fps = default_fps;
- }
- else
- {
- trace("current fps:" + fps);
- current_fps = fps;
- }
- movieURL_active = fsp_path + moviepath_info + file;
- video_stage_holder._x = 0;
- video_stage_holder.CC_MovieLoader._x = 512 - current_movie_width / 2;
- video_stage_holder.CC_MovieLoader._y = 384 - current_movie_height / 2 - 50;
- video_stage_holder.CS_movie_control.checkButtons();
- video_stage_holder.attachDuration();
- _root.attachMovie("movie_info_mc","movie_info_mc_attached",4);
- if(current_movie_height <= 600)
- {
- movie_info_mc_attached._y = 633;
- }
- else
- {
- movie_info_mc_attached._y = movie_loader_attached._y + current_movie_height;
- }
- if(return_to_overview == true)
- {
- if(show_subchapter == false)
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i><b>FILM: </b><i>" + movie_name + "</i>";
- }
- else
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i>" + "<b>ABSCHNITT: </b><i>" + current_sub_chapter + " </i>" + " <b>FILM: </b><i>" + movie_name + "</i>";
- }
- }
- else if(current_clevel > 3)
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i>" + "<b>ABSCHNITT: </b><i>" + current_sub_chapter + " </i>" + " <b>FILM: </b><i>" + movie_name + "</i>";
- }
- else
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i><b>FILM: </b><i>" + movie_name + "</i>";
- }
- video_stage_holder.CC_MovieLoader.setMovieURL(movieURL_active);
- play_video_id = setInterval(playVideo,50);
- }
- function renderExternalMovie(file, fps, movie_name)
- {
- video_stage_holder.CC_MovieLoader.reset();
- video_stage_holder.CC_MovieLoader._visible = 0;
- return_to_menu = false;
- if(fps == "")
- {
- trace("no fps set!");
- current_fps = default_fps;
- }
- else
- {
- trace("current fps:" + fps);
- current_fps = fps;
- }
- second_navi_mc_attached._visible = 0;
- v2b_logo._visible = 0;
- bg_mask_attached._visible = 0;
- teaser_mc_attached._alpha = 0;
- _root.attachMovie("black_mc","black_mc_attached",3);
- movieURL_active = fsp_path + moviepath_info + file;
- video_stage_holder._x = 0;
- video_stage_holder.CC_MovieLoader._x = 512 - current_movie_width / 2;
- video_stage_holder.CC_MovieLoader._y = 384 - current_movie_height / 2 - 50;
- video_stage_holder.CS_movie_control.checkButtons();
- video_stage_holder.attachDuration();
- _root.attachMovie("movie_info_mc","movie_info_mc_attached",4);
- if(current_movie_height <= 600)
- {
- movie_info_mc_attached._y = 633;
- }
- else
- {
- movie_info_mc_attached._y = movie_loader_attached._y + current_movie_height;
- }
- if(return_to_overview == true)
- {
- if(show_subchapter == false)
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i><b>FILM: </b><i>" + movie_name + "</i>";
- }
- else
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i>" + "<b>ABSCHNITT: </b><i>" + current_sub_chapter + " </i>" + " <b>FILM: </b><i>" + movie_name + "</i>";
- }
- }
- else if(current_clevel > 2)
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i>" + "<b>ABSCHNITT: </b><i>" + current_sub_chapter + " </i>" + " <b>FILM: </b><i>" + movie_name + "</i>";
- }
- else
- {
- movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + " </i><b>FILM: </b><i>" + movie_name + "</i>";
- }
- video_stage_holder.CC_MovieLoader.setMovieURL(movieURL_active);
- play_video_id = setInterval(playVideo,50);
- }
- function playVideo()
- {
- trace("playVideo");
- clearInterval(play_video_id);
- video_stage_holder.CC_MovieLoader._visible = 1;
- video_stage_holder.CC_MovieLoader.playMovie();
- }
- function renderExternal()
- {
- parseVideo(null);
- if(return_to_overview == false)
- {
- current_clevel++;
- }
- return_to_menu = true;
- menu_pos_mc.removeMovieClip();
- header_mc_attached.removeMovieClip();
- overview_mc_attached.removeMovieClip();
- second_navi_mc_attached.gotoAndStop(2);
- teaser_mc_attached._alpha = 0;
- _root.attachMovie("dark_mc","dark_mc_attached",3);
- _root.attachMovie("external_mc","external_mc_attached",4);
- external_mc_attached.loadMovie(fsp_path + moviepath_info + external_info);
- }
- function killMovie()
- {
- video_stage_holder.CC_MovieLoader.resetMovie();
- video_stage_holder._x = -2000;
- play_all_mode = false;
- black_mc_attached.removeMovieClip();
- movie_info_mc_attached.removeMovieClip();
- second_navi_mc_attached._visible = 1;
- v2b_logo._visible = 1;
- bg_mask_attached._visible = 1;
- if(return_to_menu)
- {
- if(return_to_overview == true)
- {
- renderOverview();
- }
- else
- {
- renderLastMenu();
- }
- }
- else
- {
- if(return_to_overview == false)
- {
- current_clevel--;
- }
- renderExternal();
- }
- }
- function printOverview()
- {
- my_print = new PrintJob();
- var _loc2_ = my_print.start();
- i = 1;
- while(i <= p_num)
- {
- my_print.addPage("overview_mc_print" + i,null,{printAsBitmap:false},1);
- i++;
- }
- my_print.send();
- delete my_print;
- }
- String.prototype.reduce = function(l, p)
- {
- var _loc6_ = this.split(" ");
- var _loc7_ = _loc6_.length;
- var _loc4_ = [];
- var _loc5_ = undefined;
- var _loc3_ = undefined;
- var _loc2_ = undefined;
- _loc2_ = 0;
- while(_loc2_ < _loc7_)
- {
- _loc3_ = _loc6_[_loc2_];
- cwl = _loc3_.length;
- if(_loc5_ + cwl > l)
- {
- return _loc4_.join(" ") + p;
- }
- _loc4_.push(_loc3_);
- _loc5_ += cwl + 1;
- _loc2_ = _loc2_ + 1;
- }
- return _loc4_.join(" ");
- };
-