home *** CD-ROM | disk | FTP | other *** search
Wrap
function renderVideoDataArray(nodes_array, depth_array) { var _loc1_ = 0; while(_loc1_ < nodes_array.length) { depth_array[depth_array.length - 1] += 1; var _loc4_ = depth_array.join(".") + "."; nodes_array[_loc1_].attributes.index = _loc4_; if(nodes_array[_loc1_].attributes.type == "movie") { video_array.push({chapter_id:_loc4_,movie_name:nodes_array[_loc1_].attributes.name,movie:nodes_array[_loc1_].attributes.movie}); } if(nodes_array[_loc1_].hasChildNodes()) { renderVideoDataArray(nodes_array[_loc1_].childNodes,depth_array.concat([0])); } _loc1_ = _loc1_ + 1; } if(depth_array.length == 1) { openApplication(); } } function renderSettings() { if(client_os == "Windows") { mdm.Forms.SplashForm.callFunction("output","Rendering settings..",""); } var _loc2_ = settings.firstChild.childNodes[0]; while(_loc2_ != null) { _root[_loc2_.nodeName] = _loc2_.firstChild.nodeValue; _loc2_ = _loc2_.nextSibling; } _loc2_ = styles.firstChild.childNodes[0]; while(_loc2_ != null) { _root[_loc2_.nodeName] = _loc2_.firstChild.nodeValue; _loc2_ = _loc2_.nextSibling; } if(default_stage_width > client_res_x) { default_stage_width = client_res_x; } if(default_stage_height > client_res_y) { default_stage_height = client_res_y; } if(allow_bookmarks != "true") { tab_bookmarks = undefined; } tab_arr.push([tab_home,"home_mc",false]); tab_arr.push([tab_dvd_content,"dvd_content_mc",false]); tab_arr.push([tab_bookmarks,"bookmarks_mc",false]); tab_arr.push([tab_online,"online_mc",false]); tab_arr.push([tab_help,"help_mc",false]); tab_arr.push([tab_setup,"setup_mc",false]); i = 0; while(i < tab_arr.length) { if(!(tab_arr[i][0] == "" or tab_arr[i][0] == null or tab_arr[i][0] == undefined)) { used_tab_arr.push(tab_arr[i]); } i++; } if(moviefolder_1280 == "" or moviefolder_1280 == null or moviefolder_1280 == undefined or moviefolder_1280 == "null" or moviefolder_1280 == "undefined") { moviefolder_1280 = moviefolder_1024; } if(moviefolder_1024 == "" or moviefolder_1024 == null or moviefolder_1024 == undefined or moviefolder_1024 == "null" or moviefolder_1024 == "undefined") { moviefolder_1024 = moviefolder_1280; } if(max_video_res == 1280) { moviefolder = moviefolder_1280; } else if(max_video_res == 1024) { moviefolder = moviefolder_1024; } moviepath_info = folder + moviefolder; if(wfiles_folder == undefined) { wfiles_folder = ""; } if(client_res_y <= 768) { full_video_mode_display = "true"; } if(videojump_ondrag_allowed == "true") { videojump_ondrag_allowed = true; } else { videojump_ondrag_allowed = false; } apptitle = vendor_name + " - " + app_name; application_title_op.autoSize = true; application_title_op.text = apptitle; mdm.Application.title = apptitle; so_name = "v2b" + unique_app_code; v2b_so = SharedObject.getLocal(so_name,"/"); if(v2b_so.data.last_seen_movie) { last_seen_movie_xml_node = new XML(v2b_so.data.last_seen_movie[0]); } tmp_header_info = header_start_info; if(debug == "true") { renderDebugger(); } loadContent(); } function renderDebugger() { test_op._y = 200; _root.attachMovie("debug_mc","debug_mc_attached",5500); debug_mc_attached.debug_op.text = os_info + "\n" + os_string[0]; debug_mc_attached.debug_op.text += "\n" + fsp_path; } function renderMain() { loadClip(fsp_path + folder + bg_image,bg_mc,null,null,"fullfixed",true,undefined,false,true); content_pos_mc._x = 0; content_pos_mc._y = 0; content_pos_mc.attachMovie("content_bg_mc","content_bg_mc",content_pos_mc.getNextHighestDepth()); content_pos_mc.content_bg_mc._y = 25; content_pos_mc.attachMovie("bottom_mc","bottom_mc",content_pos_mc.getNextHighestDepth()); content_pos_mc.bottom_mc._x = 2; content_pos_mc.bottom_mc._y = 2; content_pos_mc.bottom_mc.app_header_text_mc.text_op.autoSize = true; content_pos_mc.bottom_mc.app_header_text_mc.text_op.text = app_name; content_pos_mc.bottom_mc.app_header_reflex_mc.text_op.autoSize = true; content_pos_mc.bottom_mc.app_header_reflex_mc.text_op.text = app_name; content_pos_mc.bottom_mc.header_reflexion_mc._width = Math.round(content_pos_mc.bottom_mc.app_header_reflex_mc.text_op._width + 10); content_pos_mc.bottom_mc.createEmptyMovieClip("logo_bottom_holder_mc",1); loadClip(fsp_path + folder + logo_bottom,content_pos_mc.bottom_mc.logo_bottom_holder_mc,null,null,null,false,setPos,false,true); content_pos_mc.attachMovie("tab_navigation_mc","tab_navigation_mc",content_pos_mc.getNextHighestDepth()); content_pos_mc.tab_navigation_mc._y = 0; content_pos_mc.tab_navigation_mc.attachMovie("tab_navigation_bg_mc","tab_navigation_bg_mc",content_pos_mc.tab_navigation_mc.getNextHighestDepth()); content_pos_mc.tab_navigation_mc.tab_navigation_bg_mc._height = 25; i = 0; while(i < used_tab_arr.length) { content_pos_mc.tab_navigation_mc.attachMovie("tab_navigation_item_mc","tab_item_mc" + i,content_pos_mc.tab_navigation_mc.getNextHighestDepth()); content_pos_mc.tab_navigation_mc["tab_item_mc" + i].item_id = i; content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_rollover_mc._visible = false; content_pos_mc.tab_navigation_mc["tab_item_mc" + i].text_op._x = 20; content_pos_mc.tab_navigation_mc["tab_item_mc" + i].text_op.autoSize = true; content_pos_mc.tab_navigation_mc["tab_item_mc" + i].text_op.textColor = parseColor(tabnavigator_text_color); content_pos_mc.tab_navigation_mc["tab_item_mc" + i].text_op.text = used_tab_arr[i][0].toUpperCase(); content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_bg_mc._width = Math.round(content_pos_mc.tab_navigation_mc["tab_item_mc" + i].text_op.textWidth + 47); if(i == 0) { content_pos_mc.tab_navigation_mc["tab_item_mc" + i]._x = 2; } else { content_pos_mc.tab_navigation_mc["tab_item_mc" + i]._x = Math.round(content_pos_mc.tab_navigation_mc["tab_item_mc" + (i - 1)]._x + content_pos_mc.tab_navigation_mc["tab_item_mc" + (i - 1)]._width + 2); } content_pos_mc.tab_navigation_mc["tab_item_mc" + i]._y = 2; drawBox(content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_rollover_mc,content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_bg_mc._width,23,parseColor(tabnavigator_rollover_color),parseColor(tabnavigator_rollover_color),100,100,"linear"); drawBox(content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_active_mc,content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_bg_mc._width,25,parseColor(tabnavigator_pressed_color),parseColor(tabnavigator_pressed_color),100,100,"linear"); content_pos_mc.tab_navigation_mc["tab_item_mc" + i].onRollOver = function() { this.tab_navigation_item_rollover_mc._visible = true; }; content_pos_mc.tab_navigation_mc["tab_item_mc" + i].onRollOut = content_pos_mc.tab_navigation_mc["tab_item_mc" + i].onReleaseOutside = function() { this.tab_navigation_item_rollover_mc._visible = false; }; content_pos_mc.tab_navigation_mc["tab_item_mc" + i].onRelease = function() { renderContent(this.item_id); }; i++; } content_pos_mc.tab_navigation_mc.tab_navigation_bg_mc._width = Math.round(content_pos_mc.tab_navigation_mc._width + 2); content_pos_mc.attachMovie("content_panel_mc","content_panel_mc",content_pos_mc.getNextHighestDepth()); AsBroadcaster.initialize(content_pos_mc.content_panel_mc); content_pos_mc.content_panel_mc._x = 2; content_pos_mc.content_panel_mc._y = 27; content_pos_mc.createEmptyMovieClip("content_mc",content_pos_mc.getNextHighestDepth()); content_pos_mc.content_mc._x = 2; content_pos_mc.content_mc._y = 27; content_pos_mc.attachMovie("video_mc","video_mc",content_pos_mc.getNextHighestDepth()); content_pos_mc.video_mc._x = 2; content_pos_mc.video_mc._y = 52; loadClip(fsp_path + folder + "vcore.swf",content_pos_mc.video_mc,null,null,null,false,false,false,false,true); content_pos_mc.attachMovie("mct_mc","mct_mc",content_pos_mc.getNextHighestDepth()); content_pos_mc.mct_mc._x = 0; if(full_video_mode_display == "true") { content_pos_mc.mct_mc._y = 27; } else { content_pos_mc.mct_mc._y = 52; } setPos(); renderContent(0); } function renderContent(arg) { if(video_mode) { if(mct_mode) { killMCT(); } else if(content_pos_mc.video_mc.flv_player_state == "stopped") { killMovie(); } else { pauseMovie(); } } i = 0; while(i < used_tab_arr.length) { content_pos_mc.tab_navigation_mc["tab_item_mc" + i].tab_navigation_item_active_mc._visible = false; content_pos_mc.tab_navigation_mc["tab_item_mc" + arg].text_op.textColor = parseColor(tabnavigator_text_color); content_pos_mc.tab_navigation_mc["tab_item_mc" + i].enabled = true; if(used_tab_arr[i][2]) { content_pos_mc.content_mc[used_tab_arr[i][1]].setVisibility(false); } i++; } content_pos_mc.tab_navigation_mc["tab_item_mc" + arg].tab_navigation_item_rollover_mc._visible = false; content_pos_mc.tab_navigation_mc["tab_item_mc" + arg].tab_navigation_item_active_mc._visible = true; content_pos_mc.tab_navigation_mc["tab_item_mc" + arg].text_op.textColor = parseColor(tabnavigator_text_pressed_color); content_pos_mc.tab_navigation_mc["tab_item_mc" + arg].enabled = false; if(used_tab_arr[arg][2]) { content_pos_mc.content_mc[used_tab_arr[arg][1]].setVisibility(true); } else { content_pos_mc.content_mc.attachMovie(used_tab_arr[arg][1],used_tab_arr[arg][1],arg); used_tab_arr[arg][2] = true; } last_visible_content = arg; }