home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 May / PCpro_2005_05.ISO / files / mut / 9430830 / client.swf / scripts / frame_28 / DoAction_2.as next >
Encoding:
Text File  |  2004-12-15  |  43.0 KB  |  946 lines

  1. function renderSettings()
  2. {
  3.    bg_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.firstChild);
  4.    help_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.firstChild);
  5.    online_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
  6.    exit_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
  7.    content_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
  8.    moviepath_info = folder + String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
  9.    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);
  10.    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);
  11.    cd_info = String(settings.firstChild.firstChild.firstChild);
  12.    header_start_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
  13.    fade_modus = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
  14.    url_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
  15.    copyright_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
  16.    debug_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
  17.    cd_sentence_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
  18.    show_cd_sentence_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
  19.    menu_overview_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
  20.    menu_help_info = String(settings.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild);
  21.    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);
  22.    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);
  23.    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);
  24.    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);
  25.    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);
  26.    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);
  27.    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);
  28.    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);
  29.    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);
  30.    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);
  31.    apptitle = "Video2Brain " + app_name_info;
  32.    flashstudio.setapplicationtitle(apptitle);
  33.    flashstudio.setwindowtitle(apptitle);
  34.    tmp_header_info = header_start_info;
  35.    if(debug_info == "true")
  36.    {
  37.       renderDebugger();
  38.    }
  39.    loadContent(content_info);
  40. }
  41. function initApp()
  42. {
  43.    trace("renderSettings");
  44.    _root.attachMovie("video_stage_holder","video_stage_holder",150);
  45.    video_stage_holder._x = -2000;
  46.    video_stage_holder.loadMovie(fsp_path + "9430830/vcore.v2b");
  47.    video_stage_holder.setMask(mask_mc);
  48.    renderBackground();
  49. }
  50. function renderDebugger()
  51. {
  52.    _root.attachMovie("debug_mc","debug_mc_attached",250);
  53.    debug_mc_attached.debug_op.text = os_info + "\n" + os_string[0];
  54.    debug_mc_attached.debug_op.text += "\n" + fsp_path;
  55. }
  56. function renderBackground()
  57. {
  58.    _root.attachMovie("border_mc","border_mc_attached",99);
  59.    _root.attachMovie("black_mc","border_mc_attached",0);
  60.    _root.createEmptyMovieClip("bg_mc",1);
  61.    bg_container = bg_mc.createEmptyMovieClip("bg_container",2);
  62.    bg_mc._visible = 0;
  63.    bg_container.loadMovie(fsp_path + bg_info);
  64.    bg_mc.onEnterFrame = function()
  65.    {
  66.       var _loc2_ = bg_container.getBytesTotal();
  67.       var _loc1_ = bg_container.getBytesLoaded();
  68.       if(_loc1_ > 0)
  69.       {
  70.          percent = int(_loc1_ / _loc2_ * 100);
  71.          if(percent > 99)
  72.          {
  73.             delete bg_mc.onEnterFrame;
  74.             bg_mc._x = 0;
  75.             bg_mc._y = 0;
  76.             bg_mc._width = 1024;
  77.             bg_mc._height = 768;
  78.             bg_mc._visible = 1;
  79.             renderStructure();
  80.          }
  81.       }
  82.    };
  83. }
  84. function renderStructure()
  85. {
  86.    gotoAndStop(2);
  87.    array_name = String("clevel" + current_clevel);
  88.    array_name = new Array();
  89.    structure = cd_content.firstChild;
  90.    memory = new Array();
  91.    memory[current_clevel] = structure;
  92.    tmp_menu_distance = menu_distance - structure.childNodes.length - menu_subtr;
  93.    positionElements();
  94.    parseVideo(structure);
  95.    i = 0;
  96.    while(i < structure.childNodes.length)
  97.    {
  98.       array_name[i] = structure.childNodes[i];
  99.       menu_pos_mc.attachMovie("button_mc","button_mc" + i,11 + i);
  100.       menu_pos_mc["button_mc" + i]._y += tmp_menu_distance * i;
  101.       menu_pos_mc["button_mc" + i].id = i;
  102.       menu_pos_mc["button_mc" + i].clevel_data = array_name[i];
  103.       i++;
  104.    }
  105. }
  106. function renderNextMenu(clevel_data)
  107. {
  108.    breadcrumb[current_clevel] = current_sub_chapter;
  109.    parseVideo(clevel_data);
  110.    if(current_clevel == 1)
  111.    {
  112.       tmp_header_info = header_start_info;
  113.       second_navi_mc_attached.gotoAndStop(1);
  114.    }
  115.    else
  116.    {
  117.       second_navi_mc_attached.gotoAndStop(2);
  118.    }
  119.    tmp_header_info = String(clevel_data.attributes.name);
  120.    tmp_menu_distance = int(menu_distance - clevel_data.childNodes.length - menu_subtr);
  121.    deleteTeaser();
  122.    header_mc_attached.removeMovieClip();
  123.    _root.attachMovie("header_mc","header_mc_attached",9);
  124.    header_mc_attached._x = 55;
  125.    header_mc_attached._y = 130;
  126.    menu_pos_mc.removeMovieClip();
  127.    _root.createEmptyMovieClip("menu_pos_mc",7);
  128.    menu_pos_mc._x = 55;
  129.    menu_pos_mc._y = 384 - int(tmp_menu_distance * clevel_data.childNodes.length / 2) + 5;
  130.    array_name = String("clevel" + current_clevel);
  131.    array_name = new Array();
  132.    memory[current_clevel] = clevel_data;
  133.    i = 0;
  134.    while(i < clevel_data.childNodes.length)
  135.    {
  136.       array_name[i] = clevel_data.childNodes[i];
  137.       menu_pos_mc.attachMovie("button_mc","button_mc" + i,11 + i);
  138.       menu_pos_mc["button_mc" + i]._y += tmp_menu_distance * i;
  139.       menu_pos_mc["button_mc" + i].id = i;
  140.       menu_pos_mc["button_mc" + i].clevel_data = array_name[i];
  141.       menu_pos_mc["button_mc" + i].next_movie_data = array_name[i];
  142.       i++;
  143.    }
  144. }
  145. function renderLastMenu()
  146. {
  147.    dark_mc_attached.removeMovieClip();
  148.    overview_mc_attached.removeMovieClip();
  149.    online_mc_attached.removeMovieClip();
  150.    external_mc_attached.removeMovieClip();
  151.    if(current_clevel > 1)
  152.    {
  153.       current_clevel--;
  154.    }
  155.    last_clevel_data = new Array();
  156.    last_clevel_data = memory[current_clevel];
  157.    parseVideo(last_clevel_data);
  158.    tmp_menu_distance = int(menu_distance - last_clevel_data.childNodes.length - menu_subtr);
  159.    tmp_header_info = String(last_clevel_data.attributes.name);
  160.    if(current_clevel == 1)
  161.    {
  162.       tmp_header_info = header_start_info;
  163.       second_navi_mc_attached.gotoAndStop(1);
  164.    }
  165.    else
  166.    {
  167.       second_navi_mc_attached.gotoAndStop(2);
  168.    }
  169.    deleteTeaser();
  170.    header_mc_attached.removeMovieClip();
  171.    _root.attachMovie("header_mc","header_mc_attached",9);
  172.    header_mc_attached._x = 55;
  173.    header_mc_attached._y = 130;
  174.    menu_pos_mc.removeMovieClip();
  175.    _root.createEmptyMovieClip("menu_pos_mc",7);
  176.    menu_pos_mc._x = 55;
  177.    menu_pos_mc._y = 384 - int(tmp_menu_distance * last_clevel_data.childNodes.length / 2) + 5;
  178.    array_name = String("clevel" + current_clevel);
  179.    array_name = new Array();
  180.    i = 0;
  181.    while(i < last_clevel_data.childNodes.length)
  182.    {
  183.       array_name[i] = last_clevel_data.childNodes[i];
  184.       menu_pos_mc.attachMovie("button_mc","button_mc" + i,11 + i);
  185.       menu_pos_mc["button_mc" + i]._y += tmp_menu_distance * i;
  186.       menu_pos_mc["button_mc" + i].id = i;
  187.       menu_pos_mc["button_mc" + i].clevel_data = array_name[i];
  188.       menu_pos_mc["button_mc" + i].next_movie_data = array_name[i + 1];
  189.       i++;
  190.    }
  191. }
  192. function showTeaser(teaser_header, teaser_body, teaser_extra, cd, image)
  193. {
  194.    trace(image);
  195.    if(image == "" || image == "undefined")
  196.    {
  197.       teaser_image_container.removeMovieClip();
  198.    }
  199.    else
  200.    {
  201.       teaser_image_container = teaser_mc_attached.image_holder.createEmptyMovieClip("teaser_image_container",1);
  202.       teaser_image_container._visible = 0;
  203.       teaser_image_container.loadMovie(fsp_path + moviepath_info + image);
  204.       teaser_mc_attached.onEnterFrame = function()
  205.       {
  206.          var _loc2_ = teaser_image_container.getBytesTotal();
  207.          var _loc1_ = teaser_image_container.getBytesLoaded();
  208.          if(_loc1_ > 0)
  209.          {
  210.             percent = int(_loc1_ / _loc2_ * 100);
  211.             if(percent > 99)
  212.             {
  213.                delete teaser_mc_attached.onEnterFrame;
  214.                teaser_image_container._width = 470;
  215.                teaser_image_container._height = 270;
  216.                teaser_image_container._visible = 1;
  217.                teaser_image_container._alpha = 40;
  218.             }
  219.          }
  220.       };
  221.    }
  222.    if(cd == cd_info or cd == "both")
  223.    {
  224.       teaser_mc_attached.teaser_header_op.textColor = 16777215;
  225.       teaser_mc_attached.teaser_body_op.textColor = 16777215;
  226.    }
  227.    else
  228.    {
  229.       teaser_mc_attached.teaser_header_op.textColor = 10066329;
  230.       teaser_mc_attached.teaser_body_op.textColor = 10066329;
  231.    }
  232.    teaser_mc_attached.teaser_header_op.text = teaser_header;
  233.    teaser_mc_attached.teaser_body_op.text = teaser_body;
  234.    teaser_mc_attached.teaser_extra_op.text = teaser_extra;
  235.    if(director_info == undefined)
  236.    {
  237.       if(fade_modus == "true")
  238.       {
  239.          _root.onEnterFrame = function()
  240.          {
  241.             teaser_mc_attached._alpha += 5;
  242.             if(teaser_mc_attached._alpha > 99)
  243.             {
  244.                delete _root.onEnterFrame;
  245.                teaser_mc_attached._alpha = 100;
  246.             }
  247.          };
  248.       }
  249.       else
  250.       {
  251.          teaser_mc_attached._alpha = 100;
  252.       }
  253.    }
  254.    else
  255.    {
  256.       teaser_mc_attached._alpha = 100;
  257.    }
  258. }
  259. function deleteTeaser()
  260. {
  261.    if(director_info == undefined)
  262.    {
  263.       if(fade_modus == "true")
  264.       {
  265.          _root.onEnterFrame = function()
  266.          {
  267.             teaser_mc_attached._alpha -= 5;
  268.             if(teaser_mc_attached._alpha <= 0)
  269.             {
  270.                delete _root.onEnterFrame;
  271.                teaser_mc_attached._alpha = 0;
  272.             }
  273.          };
  274.       }
  275.       else
  276.       {
  277.          teaser_mc_attached._alpha = 0;
  278.       }
  279.    }
  280.    else
  281.    {
  282.       teaser_mc_attached._alpha = 0;
  283.    }
  284.    teaser_mc_attached.teaser_header_op.text = "";
  285.    teaser_mc_attached.teaser_body_op.text = "";
  286.    teaser_mc_attached.teaser_extra_op.text = "";
  287. }
  288. function positionElements()
  289. {
  290.    _root.attachMovie("bg_mask","bg_mask_attached",5);
  291.    bg_mask_attached._x = 0;
  292.    bg_mask_attached._y = 0;
  293.    _root.attachMovie("v2b_logo","v2b_logo",6);
  294.    v2b_logo._x = 0;
  295.    v2b_logo._y = 0;
  296.    _root.createEmptyMovieClip("menu_pos_mc",7);
  297.    menu_pos_mc._x = 55;
  298.    menu_pos_mc._y = int(384 - tmp_menu_distance * structure.childNodes.length / 2) + 5;
  299.    _root.attachMovie("second_navi_mc","second_navi_mc_attached",8);
  300.    second_navi_mc_attached._x = 0;
  301.    second_navi_mc_attached._y = 633;
  302.    _root.attachMovie("header_mc","header_mc_attached",9);
  303.    header_mc_attached._x = 55;
  304.    header_mc_attached._y = 130;
  305.    _root.attachMovie("teaser_mc","teaser_mc_attached",10);
  306.    teaser_mc_attached._alpha = 0;
  307.    teaser_mc_attached._x = 495;
  308.    teaser_mc_attached._y = 250;
  309. }
  310. function attachLine(id)
  311. {
  312.    if(menu_pos_mc._y + menu_pos_mc["button_mc" + id]._y <= teaser_mc_attached._y + teaser_mc_attached._height / 2)
  313.    {
  314.       menu_pos_mc["button_mc" + id].attachMovie("upperLine","line_attached",5);
  315.       menu_pos_mc["button_mc" + id].line_attached._y = 12;
  316.       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;
  317.    }
  318.    else
  319.    {
  320.       menu_pos_mc["button_mc" + id].attachMovie("lowerLine","line_attached",5);
  321.       menu_pos_mc["button_mc" + id].line_attached._y = 12;
  322.       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;
  323.    }
  324. }
  325. function deleteLine(id)
  326. {
  327.    menu_pos_mc["button_mc" + id].line_attached.removeMovieClip();
  328. }
  329. function renderOverview()
  330. {
  331.    return_to_overview = false;
  332.    menu_pos_mc.removeMovieClip();
  333.    header_mc_attached.removeMovieClip();
  334.    second_navi_mc_attached.gotoAndStop(3);
  335.    _root.attachMovie("dark_mc","dark_mc_attached",3);
  336.    _root.attachMovie("overview_mc","overview_mc_attached",4);
  337.    p_num = 1;
  338.    print_depth = 300;
  339.    _root.attachMovie("overview_mc_print","overview_mc_print" + p_num,print_depth++);
  340.    _root["overview_mc_print" + p_num]._x = xposition_print;
  341.    _root["overview_mc_print" + p_num]._xscale = p_xscale;
  342.    _root["overview_mc_print" + p_num]._yscale = p_yscale;
  343.    _root["overview_mc_print" + p_num].p_num_op.text = p_num;
  344.    button_counter = 0;
  345.    yposition = 100;
  346.    yposition_print = 100;
  347.    video_counter = 0;
  348.    parseTree(structure);
  349. }
  350. function renderOnline()
  351. {
  352.    menu_pos_mc.removeMovieClip();
  353.    header_mc_attached.removeMovieClip();
  354.    second_navi_mc_attached.gotoAndStop(4);
  355.    _root.attachMovie("dark_mc","dark_mc_attached",3);
  356.    _root.attachMovie("online_mc","online_mc_attached",4);
  357.    online_mc_attached.pos_mc.loadMovie(fsp_path + online_info);
  358. }
  359. function renderExit()
  360. {
  361.    menu_pos_mc.removeMovieClip();
  362.    header_mc_attached.removeMovieClip();
  363.    second_navi_mc_attached.removeMovieClip();
  364.    _root.attachMovie("dark_mc","dark_mc_attached",3);
  365.    _root.attachMovie("exit_mc","exit_mc_attached",99);
  366.    exit_mc_attached.pos_mc.loadMovie(fsp_path + exit_info);
  367. }
  368. function parseTree(xmlNode)
  369. {
  370.    button_counter++;
  371.    if(xmlNode.hasChildNodes())
  372.    {
  373.       var _loc2_ = 0;
  374.       while(_loc2_ < xmlNode.childNodes.length)
  375.       {
  376.          var _loc4_ = String(xmlNode.childNodes[_loc2_].nodeName);
  377.          current_level = _loc4_.split("");
  378.          if(xmlNode.childNodes[_loc2_].nodeName == "clevel1")
  379.          {
  380.             yposition += 44;
  381.             tmp_chapter = String(xmlNode.childNodes[_loc2_].attributes.name);
  382.             overview_mc_attached.scroll_mc.pos_mc.attachMovie("button_overview_mc","button_overview_mc" + button_counter,button_counter);
  383.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter]._y = yposition;
  384.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter]._x = 0;
  385.             if(yposition_print >= max_print_length)
  386.             {
  387.                yposition_print = 100;
  388.                p_num++;
  389.                _root.attachMovie("overview_mc_print","overview_mc_print" + p_num,print_depth++);
  390.                _root["overview_mc_print" + p_num]._x = xposition_print;
  391.                _root["overview_mc_print" + p_num]._xscale = p_xscale;
  392.                _root["overview_mc_print" + p_num]._yscale = p_yscale;
  393.                _root["overview_mc_print" + p_num].p_num_op.text = p_num;
  394.             }
  395.             yposition_print += 44;
  396.             _root["overview_mc_print" + p_num].pos_mc.attachMovie("button_overview_mc","button_overview_mc_print" + button_counter,button_counter);
  397.             _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter]._y = yposition_print;
  398.             _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter]._x = 0;
  399.             if(String(xmlNode.childNodes[_loc2_].attributes.length) != "")
  400.             {
  401.                if(String(xmlNode.childNodes[_loc2_].attributes.cd) == cd_info or String(xmlNode.childNodes[_loc2_].attributes.cd) == "both")
  402.                {
  403.                   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>";
  404.                   _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>";
  405.                }
  406.                else if(show_cd_sentence_info == "true")
  407.                {
  408.                   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>";
  409.                   _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>";
  410.                }
  411.                else
  412.                {
  413.                   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>";
  414.                   _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>";
  415.                }
  416.             }
  417.             else if(String(xmlNode.childNodes[_loc2_].attributes.cd) == cd_info or String(xmlNode.childNodes[_loc2_].attributes.cd) == "both")
  418.             {
  419.                overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].info_op.htmlText = "<b>" + String(xmlNode.childNodes[_loc2_].attributes.name) + " </b>";
  420.                _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>";
  421.             }
  422.             else if(show_cd_sentence_info == "true")
  423.             {
  424.                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>";
  425.                _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>";
  426.             }
  427.             else
  428.             {
  429.                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>";
  430.                _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>";
  431.             }
  432.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].cd_id = xmlNode.childNodes[_loc2_].attributes.cd;
  433.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].movie_id = xmlNode.childNodes[_loc2_].attributes.movie;
  434.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].fps_id = xmlNode.childNodes[_loc2_].attributes.fps;
  435.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].type_id = xmlNode.childNodes[_loc2_].attributes.type;
  436.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].symbol_id = false;
  437.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].subchapter_allowed = false;
  438.          }
  439.          else
  440.          {
  441.             yposition += 22;
  442.             overview_mc_attached.scroll_mc.pos_mc.attachMovie("button_overview_mc","button_overview_mc" + button_counter,button_counter);
  443.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter]._y = yposition;
  444.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter]._x = 50 * (current_level[6] - 1);
  445.             if(yposition_print >= max_print_length)
  446.             {
  447.                yposition_print = 100;
  448.                p_num++;
  449.                _root.attachMovie("overview_mc_print","overview_mc_print" + p_num,print_depth++);
  450.                _root["overview_mc_print" + p_num]._x = xposition_print;
  451.                _root["overview_mc_print" + p_num]._xscale = p_xscale;
  452.                _root["overview_mc_print" + p_num]._yscale = p_yscale;
  453.                _root["overview_mc_print" + p_num].p_num_op.text = p_num;
  454.             }
  455.             yposition_print += 22;
  456.             _root["overview_mc_print" + p_num].pos_mc.attachMovie("button_overview_mc","button_overview_mc_print" + button_counter,button_counter);
  457.             _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter]._y = yposition_print;
  458.             _root["overview_mc_print" + p_num].pos_mc["button_overview_mc_print" + button_counter]._x = 50 * (current_level[6] - 1);
  459.             if(String(xmlNode.childNodes[_loc2_].attributes.cd) == cd_info or String(xmlNode.childNodes[_loc2_].attributes.cd) == "both")
  460.             {
  461.                overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].info_op.htmlText = String(xmlNode.childNodes[_loc2_].attributes.name);
  462.                _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);
  463.             }
  464.             else
  465.             {
  466.                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>";
  467.                _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);
  468.             }
  469.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].cd_id = xmlNode.childNodes[_loc2_].attributes.cd;
  470.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].movie_id = xmlNode.childNodes[_loc2_].attributes.movie;
  471.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].fps_id = xmlNode.childNodes[_loc2_].attributes.fps;
  472.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].type_id = xmlNode.childNodes[_loc2_].attributes.type;
  473.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].symbol_id = true;
  474.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].video_level_data = xmlNode;
  475.             if(xmlNode.childNodes[_loc2_].attributes.type == "menu")
  476.             {
  477.                tmp_subchapter = String(xmlNode.childNodes[_loc2_].attributes.name);
  478.             }
  479.             if(current_level[6] >= 3)
  480.             {
  481.                overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].subchapter_allowed = true;
  482.             }
  483.             else
  484.             {
  485.                overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].subchapter_allowed = false;
  486.             }
  487.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].chapter_id = tmp_chapter;
  488.             overview_mc_attached.scroll_mc.pos_mc["button_overview_mc" + button_counter].subchapter_id = tmp_subchapter;
  489.          }
  490.          parseTree(xmlNode.childNodes[_loc2_]);
  491.          _loc2_ = _loc2_ + 1;
  492.       }
  493.    }
  494. }
  495. function parseVideo(xmlNode)
  496. {
  497.    video_data = new Array();
  498.    var _loc1_ = 0;
  499.    while(_loc1_ < xmlNode.childNodes.length)
  500.    {
  501.       if(xmlNode.childNodes[_loc1_].attributes.type == "movie" and xmlNode.childNodes[_loc1_].attributes.cd == cd_info)
  502.       {
  503.          video_data.push(xmlNode.childNodes[_loc1_]);
  504.       }
  505.       _loc1_ = _loc1_ + 1;
  506.    }
  507. }
  508. function parseVideoPlayAll(xmlNode)
  509. {
  510.    if(xmlNode.hasChildNodes())
  511.    {
  512.       var _loc1_ = 0;
  513.       while(_loc1_ < xmlNode.childNodes.length)
  514.       {
  515.          if(xmlNode.childNodes[_loc1_].nodeName == "clevel1")
  516.          {
  517.             subchapter = undefined;
  518.             chapter = String(xmlNode.childNodes[_loc1_].attributes.name);
  519.          }
  520.          else if(xmlNode.childNodes[_loc1_].attributes.type == "menu")
  521.          {
  522.             subchapter = String(xmlNode.childNodes[_loc1_].attributes.name);
  523.          }
  524.          if(xmlNode.childNodes[_loc1_].attributes.type == "movie")
  525.          {
  526.             if(xmlNode.childNodes[_loc1_].attributes.cd == cd_info)
  527.             {
  528.                video_data.push(new Array(xmlNode.childNodes[_loc1_],chapter,subchapter));
  529.             }
  530.          }
  531.          parseVideoPlayAll(xmlNode.childNodes[_loc1_]);
  532.          _loc1_ = _loc1_ + 1;
  533.       }
  534.    }
  535. }
  536. function parseVideoPlayAllChapter(xmlNode)
  537. {
  538.    if(xmlNode.nodeName == "clevel1")
  539.    {
  540.       subchapter = undefined;
  541.       chapter = _root.chapter_header;
  542.    }
  543.    else
  544.    {
  545.       chapter = _root.chapter_header;
  546.       if(xmlNode.attributes.type == "menu")
  547.       {
  548.          subchapter = String(xmlNode.attributes.name);
  549.       }
  550.    }
  551.    if(xmlNode.hasChildNodes())
  552.    {
  553.       var _loc2_ = 0;
  554.       while(_loc2_ < xmlNode.childNodes.length)
  555.       {
  556.          if(xmlNode.childNodes[_loc2_].attributes.type == "movie")
  557.          {
  558.             if(xmlNode.childNodes[_loc2_].attributes.cd == cd_info)
  559.             {
  560.                video_data.push(new Array(xmlNode.childNodes[_loc2_],chapter,subchapter));
  561.             }
  562.          }
  563.          parseVideoPlayAllChapter(xmlNode.childNodes[_loc2_]);
  564.          _loc2_ = _loc2_ + 1;
  565.       }
  566.    }
  567. }
  568. function playAll()
  569. {
  570.    return_clevel = 1;
  571.    current_video = 0;
  572.    video_data = new Array();
  573.    parseVideoPlayAll(structure);
  574.    play_all_max = video_data.length;
  575.    current_video_play_all_data = video_data[current_video][0];
  576.    current_chapter = video_data[current_video][1];
  577.    current_sub_chapter = video_data[current_video][2];
  578.    play_all_mode = true;
  579.    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));
  580. }
  581. function playAllChapter()
  582. {
  583.    trace(current_clevel);
  584.    return_clevel = current_clevel + 1;
  585.    current_video = 0;
  586.    video_data = new Array();
  587.    parseVideoPlayAllChapter(memory[current_clevel]);
  588.    play_all_max = video_data.length;
  589.    current_video_play_all_data = video_data[current_video][0];
  590.    current_chapter = video_data[current_video][1];
  591.    current_sub_chapter = video_data[current_video][2];
  592.    play_all_mode = true;
  593.    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));
  594. }
  595. function startNextMovie()
  596. {
  597.    clearInterval(_root.timeout);
  598.    timeout_allowed = true;
  599.    if(current_video < play_all_max - 1)
  600.    {
  601.       current_video++;
  602.       current_video_play_all_data = video_data[current_video][0];
  603.       current_chapter = video_data[current_video][1];
  604.       current_sub_chapter = video_data[current_video][2];
  605.       if(current_sub_chapter == undefined)
  606.       {
  607.          _root.current_sub_chapter = "undefined";
  608.          current_clevel = 1;
  609.       }
  610.       else
  611.       {
  612.          current_clevel = 4;
  613.       }
  614.       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));
  615.    }
  616.    else
  617.    {
  618.       current_clevel = return_clevel;
  619.       killMovie();
  620.    }
  621. }
  622. function calculateCurrentVideo(id)
  623. {
  624.    i = 0;
  625.    while(i < video_data.length)
  626.    {
  627.       if(String(video_data[i].attributes.movie) == id)
  628.       {
  629.          current_video = i;
  630.       }
  631.       i++;
  632.    }
  633. }
  634. function renderMovie(file, fps, movie_name)
  635. {
  636.    video_stage_holder.CC_MovieLoader.reset();
  637.    video_stage_holder.CC_MovieLoader._visible = 0;
  638.    if(fps == "")
  639.    {
  640.       trace("no fps set!");
  641.       current_fps = default_fps;
  642.    }
  643.    else
  644.    {
  645.       trace("current fps:" + fps);
  646.       current_fps = fps;
  647.    }
  648.    menu_pos_mc.removeMovieClip();
  649.    header_mc_attached.removeMovieClip();
  650.    overview_mc_attached.removeMovieClip();
  651.    second_navi_mc_attached._visible = 0;
  652.    v2b_logo._visible = 0;
  653.    bg_mask_attached._visible = 0;
  654.    teaser_mc_attached._alpha = 0;
  655.    _root.attachMovie("black_mc","black_mc_attached",3);
  656.    movieURL_active = fsp_path + moviepath_info + file;
  657.    video_stage_holder._x = 0;
  658.    video_stage_holder.CC_MovieLoader._x = 512 - current_movie_width / 2;
  659.    video_stage_holder.CC_MovieLoader._y = 384 - current_movie_height / 2 - 50;
  660.    video_stage_holder.CS_movie_control.checkButtons();
  661.    video_stage_holder.attachDuration();
  662.    _root.attachMovie("movie_info_mc","movie_info_mc_attached",4);
  663.    if(current_movie_height <= 600)
  664.    {
  665.       movie_info_mc_attached._y = 633;
  666.    }
  667.    else
  668.    {
  669.       movie_info_mc_attached._y = movie_loader_attached._y + current_movie_height;
  670.    }
  671.    if(return_to_overview == true)
  672.    {
  673.       if(show_subchapter == false)
  674.       {
  675.          movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + "    </i><b>FILM: </b><i>" + movie_name + "</i>";
  676.       }
  677.       else
  678.       {
  679.          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>";
  680.       }
  681.    }
  682.    else
  683.    {
  684.       current_clevel++;
  685.       if(current_clevel > 3)
  686.       {
  687.          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>";
  688.       }
  689.       else
  690.       {
  691.          movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + "    </i><b>FILM: </b><i>" + movie_name + "</i>";
  692.       }
  693.    }
  694.    video_stage_holder.CC_MovieLoader.setMovieURL(movieURL_active);
  695.    play_video_id = setInterval(playVideo,500);
  696. }
  697. function renderNextMovie(file, fps, movie_name)
  698. {
  699.    video_stage_holder.CC_MovieLoader.reset();
  700.    video_stage_holder.CC_MovieLoader._visible = 0;
  701.    if(fps == "")
  702.    {
  703.       trace("no fps set!");
  704.       current_fps = default_fps;
  705.    }
  706.    else
  707.    {
  708.       trace("current fps:" + fps);
  709.       current_fps = fps;
  710.    }
  711.    movieURL_active = fsp_path + moviepath_info + file;
  712.    video_stage_holder._x = 0;
  713.    video_stage_holder.CC_MovieLoader._x = 512 - current_movie_width / 2;
  714.    video_stage_holder.CC_MovieLoader._y = 384 - current_movie_height / 2 - 50;
  715.    video_stage_holder.CS_movie_control.checkButtons();
  716.    video_stage_holder.attachDuration();
  717.    _root.attachMovie("movie_info_mc","movie_info_mc_attached",4);
  718.    if(current_movie_height <= 600)
  719.    {
  720.       movie_info_mc_attached._y = 633;
  721.    }
  722.    else
  723.    {
  724.       movie_info_mc_attached._y = movie_loader_attached._y + current_movie_height;
  725.    }
  726.    if(return_to_overview == true)
  727.    {
  728.       if(show_subchapter == false)
  729.       {
  730.          movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + "    </i><b>FILM: </b><i>" + movie_name + "</i>";
  731.       }
  732.       else
  733.       {
  734.          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>";
  735.       }
  736.    }
  737.    else if(current_clevel > 3)
  738.    {
  739.       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>";
  740.    }
  741.    else
  742.    {
  743.       movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + "    </i><b>FILM: </b><i>" + movie_name + "</i>";
  744.    }
  745.    video_stage_holder.CC_MovieLoader.setMovieURL(movieURL_active);
  746.    play_video_id = setInterval(playVideo,50);
  747. }
  748. function renderPrevMovie(file, fps, movie_name)
  749. {
  750.    video_stage_holder.CC_MovieLoader.reset();
  751.    video_stage_holder.CC_MovieLoader._visible = 0;
  752.    if(fps == "")
  753.    {
  754.       trace("no fps set!");
  755.       current_fps = default_fps;
  756.    }
  757.    else
  758.    {
  759.       trace("current fps:" + fps);
  760.       current_fps = fps;
  761.    }
  762.    movieURL_active = fsp_path + moviepath_info + file;
  763.    video_stage_holder._x = 0;
  764.    video_stage_holder.CC_MovieLoader._x = 512 - current_movie_width / 2;
  765.    video_stage_holder.CC_MovieLoader._y = 384 - current_movie_height / 2 - 50;
  766.    video_stage_holder.CS_movie_control.checkButtons();
  767.    video_stage_holder.attachDuration();
  768.    _root.attachMovie("movie_info_mc","movie_info_mc_attached",4);
  769.    if(current_movie_height <= 600)
  770.    {
  771.       movie_info_mc_attached._y = 633;
  772.    }
  773.    else
  774.    {
  775.       movie_info_mc_attached._y = movie_loader_attached._y + current_movie_height;
  776.    }
  777.    if(return_to_overview == true)
  778.    {
  779.       if(show_subchapter == false)
  780.       {
  781.          movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + "    </i><b>FILM: </b><i>" + movie_name + "</i>";
  782.       }
  783.       else
  784.       {
  785.          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>";
  786.       }
  787.    }
  788.    else if(current_clevel > 3)
  789.    {
  790.       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>";
  791.    }
  792.    else
  793.    {
  794.       movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + "    </i><b>FILM: </b><i>" + movie_name + "</i>";
  795.    }
  796.    video_stage_holder.CC_MovieLoader.setMovieURL(movieURL_active);
  797.    play_video_id = setInterval(playVideo,50);
  798. }
  799. function renderExternalMovie(file, fps, movie_name)
  800. {
  801.    video_stage_holder.CC_MovieLoader.reset();
  802.    video_stage_holder.CC_MovieLoader._visible = 0;
  803.    return_to_menu = false;
  804.    if(fps == "")
  805.    {
  806.       trace("no fps set!");
  807.       current_fps = default_fps;
  808.    }
  809.    else
  810.    {
  811.       trace("current fps:" + fps);
  812.       current_fps = fps;
  813.    }
  814.    second_navi_mc_attached._visible = 0;
  815.    v2b_logo._visible = 0;
  816.    bg_mask_attached._visible = 0;
  817.    teaser_mc_attached._alpha = 0;
  818.    _root.attachMovie("black_mc","black_mc_attached",3);
  819.    movieURL_active = fsp_path + moviepath_info + file;
  820.    video_stage_holder._x = 0;
  821.    video_stage_holder.CC_MovieLoader._x = 512 - current_movie_width / 2;
  822.    video_stage_holder.CC_MovieLoader._y = 384 - current_movie_height / 2 - 50;
  823.    video_stage_holder.CS_movie_control.checkButtons();
  824.    video_stage_holder.attachDuration();
  825.    _root.attachMovie("movie_info_mc","movie_info_mc_attached",4);
  826.    if(current_movie_height <= 600)
  827.    {
  828.       movie_info_mc_attached._y = 633;
  829.    }
  830.    else
  831.    {
  832.       movie_info_mc_attached._y = movie_loader_attached._y + current_movie_height;
  833.    }
  834.    if(return_to_overview == true)
  835.    {
  836.       if(show_subchapter == false)
  837.       {
  838.          movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + "    </i><b>FILM: </b><i>" + movie_name + "</i>";
  839.       }
  840.       else
  841.       {
  842.          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>";
  843.       }
  844.    }
  845.    else if(current_clevel > 2)
  846.    {
  847.       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>";
  848.    }
  849.    else
  850.    {
  851.       movie_info_mc_attached.movie_info_op.htmlText = "<b>KAPITEL: </b><i>" + current_chapter + "    </i><b>FILM: </b><i>" + movie_name + "</i>";
  852.    }
  853.    video_stage_holder.CC_MovieLoader.setMovieURL(movieURL_active);
  854.    play_video_id = setInterval(playVideo,50);
  855. }
  856. function playVideo()
  857. {
  858.    trace("playVideo");
  859.    clearInterval(play_video_id);
  860.    video_stage_holder.CC_MovieLoader._visible = 1;
  861.    video_stage_holder.CC_MovieLoader.playMovie();
  862. }
  863. function renderExternal()
  864. {
  865.    parseVideo(null);
  866.    if(return_to_overview == false)
  867.    {
  868.       current_clevel++;
  869.    }
  870.    return_to_menu = true;
  871.    menu_pos_mc.removeMovieClip();
  872.    header_mc_attached.removeMovieClip();
  873.    overview_mc_attached.removeMovieClip();
  874.    second_navi_mc_attached.gotoAndStop(2);
  875.    teaser_mc_attached._alpha = 0;
  876.    _root.attachMovie("dark_mc","dark_mc_attached",3);
  877.    _root.attachMovie("external_mc","external_mc_attached",4);
  878.    external_mc_attached.loadMovie(fsp_path + moviepath_info + external_info);
  879. }
  880. function killMovie()
  881. {
  882.    video_stage_holder.CC_MovieLoader.resetMovie();
  883.    video_stage_holder._x = -2000;
  884.    play_all_mode = false;
  885.    black_mc_attached.removeMovieClip();
  886.    movie_info_mc_attached.removeMovieClip();
  887.    second_navi_mc_attached._visible = 1;
  888.    v2b_logo._visible = 1;
  889.    bg_mask_attached._visible = 1;
  890.    if(return_to_menu)
  891.    {
  892.       if(return_to_overview == true)
  893.       {
  894.          renderOverview();
  895.       }
  896.       else
  897.       {
  898.          renderLastMenu();
  899.       }
  900.    }
  901.    else
  902.    {
  903.       if(return_to_overview == false)
  904.       {
  905.          current_clevel--;
  906.       }
  907.       renderExternal();
  908.    }
  909. }
  910. function printOverview()
  911. {
  912.    my_print = new PrintJob();
  913.    var _loc2_ = my_print.start();
  914.    i = 1;
  915.    while(i <= p_num)
  916.    {
  917.       my_print.addPage("overview_mc_print" + i,null,{printAsBitmap:false},1);
  918.       i++;
  919.    }
  920.    my_print.send();
  921.    delete my_print;
  922. }
  923. String.prototype.reduce = function(l, p)
  924. {
  925.    var _loc6_ = this.split(" ");
  926.    var _loc7_ = _loc6_.length;
  927.    var _loc4_ = [];
  928.    var _loc5_ = undefined;
  929.    var _loc3_ = undefined;
  930.    var _loc2_ = undefined;
  931.    _loc2_ = 0;
  932.    while(_loc2_ < _loc7_)
  933.    {
  934.       _loc3_ = _loc6_[_loc2_];
  935.       cwl = _loc3_.length;
  936.       if(_loc5_ + cwl > l)
  937.       {
  938.          return _loc4_.join(" ") + p;
  939.       }
  940.       _loc4_.push(_loc3_);
  941.       _loc5_ += cwl + 1;
  942.       _loc2_ = _loc2_ + 1;
  943.    }
  944.    return _loc4_.join(" ");
  945. };
  946.