来自古树boog 谢谢古树
-
- onEnterFrame = function ()
- {
- LB = getBytesLoaded();
- TB = getBytesTotal();
- PC = LB / TB * 100;
- loaderbar.setbar(PC);
- if (_root.online)
- {
- if (TB > 4 && PC == 100 && pagesInfoLoaded && pageflipLoaded && xplusLoaded)
- {
- if (X_Plus || debug_mode == "true")
- {
- var _loc22 = function ()
- {
- var _loc2 = _root.createTextField("debug_txt", 18999, 50, 150, 300, 400);
- _loc2.background = true;
- _loc2.border = true;
- _loc2.wordWrap = true;
- _loc2.text = "";
- };
- var sendDataBuffer = function ()
- {
- fscommand("readline", "root_data_buffer_str");
- _root.debug_txt.text = _root.debug_txt.text + "获取离线数据……\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- var send_lv = new LoadVars();
- var _loc2 = _root.createEmptyMovieClip("root_data_buffer_mc", 10011);
- _loc2.onEnterFrame = function ()
- {
- if (_root.root_data_buffer_str != "[eof]")
- {
- if (_root.root_data_buffer_str != "")
- {
- send_lv.sendAndLoad(_root.root_data_buffer_str + "&selfflag=" + selfflag + "&FBState=offlineexe&ranstr=" + ranStr(32), send_lv, "post");
- _root.debug_txt.text = _root.debug_txt.text + ("获取到并发送离线数据:\n" + _root.root_data_buffer_str + "&selfflag=" + selfflag + "&FBState=offlineexe" + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.root_data_buffer_mc.removeMovieClip();
- } // end if
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "无离线数据~\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.root_data_buffer_mc.removeMovieClip();
- } // end else if
- };
- send_lv.onData = function (data_str)
- {
- if (data_str == undefined || data_str != "ok")
- {
- _root.debug_txt.text = _root.debug_txt.text + ("发送失败,保存离线数据:\n" + _root.root_data_buffer_str + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- getURL("FSCommand:writeline", _root.root_data_buffer_str);
- _root.root_data_buffer_str = "";
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + ("返回:" + data_str + ",离线数据提交成功!\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.root_data_buffer_str = "";
- sendDataBuffer();
- } // end else if
- };
- };
- if (debug_mode == "true")
- {
- _loc22();
- } // end if
- System.security.allowDomain("*");
- System.security.allowInsecureDomain("*");
- var FBState = function ()
- {
- if (_root.online)
- {
- return ("onlineswf");
- }
- else
- {
- return ("onlineexe");
- } // end else if
- };
- var ad_url_str = "http://xp-adms.xplus.com.cn/ads_policy_new.php?per=";
- var con_str = ".";
- _root.zine_str = zine || "zine";
- _root.magname_str = magname || "zine";
- var uid_str = uid || "";
- var guid_str = guid || "";
- var _loc13 = g_diskID || "";
- var _loc12 = g_macAddr || "";
- var _loc24 = g_systemDir || "C:/WINDOWS/system32";
- if (_loc13 == "" && _loc12 == "")
- {
- var cpuid_str = "";
- }
- else
- {
- var cpuid_str = _loc13 + "||" + _loc12;
- } // end else if
- _root.debug_txt.text = _root.debug_txt.text + ("硬盘ID:" + _loc13 + "\n网卡地址:" + _loc12 + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.magidno_str = magidno || "";
- var ver_str = ver || "";
- var site = site || "";
- var selfflag = selfflag || "maga";
- if (__registered == 1)
- {
- selfflag = "xplus";
- } // end if
- var ranStr = function (length_num)
- {
- var _loc2 = "";
- for (var _loc1 = 0; _loc1 < length_num; ++_loc1)
- {
- _loc2 = _loc2 + String((Math.random() * 36).toString(36));
- } // end of for
- return (_loc2);
- };
- var checkOfflineAd = function ()
- {
- _root.debug_txt.text = _root.debug_txt.text + "○检查离线广告:\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- var _loc3 = true;
- for (var _loc2 = 0; _loc2 < _root.pagesXML.childNodes.length; ++_loc2)
- {
- if (_root.pagesXML.childNodes[_loc2].attributes.AdFile.length > 1)
- {
- _root.debug_txt.text = _root.debug_txt.text + ("○发现离线广告: \n○跨页:" + _loc2 + "\n○AdFile:" + _root.pagesXML.childNodes[_loc2].attributes.AdFile + "\n○AdId:" + _root.pagesXML.childNodes[_loc2].attributes.AdId + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _loc3 = false;
- ad_id_array[_loc2] = new Array("", _root.pagesXML.childNodes[_loc2].attributes.AdFile, _root.pagesXML.childNodes[_loc2].attributes.AdId, _loc2);
- } // end if
- } // end of for
- if (_loc3)
- {
- _root.debug_txt.text = _root.debug_txt.text + "○未发现离线广告,播放默认包死广告。 \n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- ad_id_array[3] = new Array("", "xplus_ad.swf", "default", "3");
- } // end if
- };
- var _loc23;
- var ad_files_array = new Array();
- var ad_id_array = new Array();
- var loadAdData = function ()
- {
- var _loc3 = ad_url_str + zine_str + con_str + magname_str + con_str + uid_str + con_str + guid_str + con_str + cpuid_str + con_str + magidno_str + con_str + ver_str;
- _root.debug_txt.text = _root.debug_txt.text + ("请求广告数据: " + _loc3 + "&selfflag=" + selfflag + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- var _loc2 = new LoadVars();
- _loc2.sendAndLoad(_loc3 + "&selfflag=" + selfflag + "&ranstr=" + ranStr(32), _loc2, "post");
- _loc2.onHTTPStatus = function (http_num)
- {
- if (http_num != 200)
- {
- } // end if
- };
- _loc2.onData = function (data_str)
- {
- if (data_str != undefined)
- {
- if (data_str != "-1")
- {
- _root.debug_txt.text = _root.debug_txt.text + ("收到广告数据: " + data_str + "\n\n");
- dataToArray(data_str);
- arrayToObject();
- checkAd(_root.page);
- preLoadAd();
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "收到广告数据:-1\n不飘广告,不检查离线广告。\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- } // end else if
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "未收到广告数据!\n尝试检查离线广告。\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- checkOfflineAd();
- } // end else if
- };
- };
- if (!_root.online)
- {
- _root.debug_txt.text = _root.debug_txt.text + ("☆当前不在线,读取 " + _root.g_systemDir + "/xu.txt:\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- var _loc14 = new LoadVars();
- _loc14.load(_root.g_systemDir + "/xu.txt");
- _loc14.onData = function (xu_str)
- {
- if (xu_str != undefined)
- {
- _root.debug_txt.text = _root.debug_txt.text + "☆xu.txt 存在!\n\n";
- var _loc3 = xu_str.split("&");
- for (var _loc2 = 0; _loc2 < _loc3.length; ++_loc2)
- {
- if (_loc3[_loc2].indexOf("uid") == 0)
- {
- uid_str = _loc3[_loc2].slice(4);
- _root.debug_txt.text = _root.debug_txt.text + ("☆获取到uid: " + uid_str + "\n");
- continue;
- } // end if
- if (_loc3[_loc2].indexOf("guid") == 0)
- {
- guid_str = _loc3[_loc2].slice(5);
- _root.debug_txt.text = _root.debug_txt.text + ("☆获取到guid: " + guid_str + "\n");
- continue;
- } // end if
- if (_loc3[_loc2].indexOf("cpuid") == 0)
- {
- cpuid_str = _loc3[_loc2].slice(6);
- _root.debug_txt.text = _root.debug_txt.text + ("☆获取到cpuid: " + cpuid_str + "\n");
- continue;
- } // end if
- if (_loc3[_loc2].indexOf("ver") == 0)
- {
- ver_str = _loc3[_loc2].slice(4);
- _root.debug_txt.text = _root.debug_txt.text + ("☆获取到ver: " + ver_str + "\n");
- } // end if
- } // end of for
- _root.debug_txt.text = _root.debug_txt.text + "☆xu.txt 读取完毕!\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- loadAdData();
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "☆xu.txt 不存在!\n\n";
- loadAdData();
- } // end else if
- };
- _root.debug_txt.text = _root.debug_txt.text + ("打开离线数据文件:\n" + g_systemDir + "\\subbuffer.sl\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- getURL("FSCommand:open", g_systemDir + "\\subbuffer.sl");
- sendDataBuffer();
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "☆当前在线,不读取cpuid!\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- loadAdData();
- } // end else if
- var root_page = 0;
- _root.onPageFlip = function (state, page)
- {
- if (state == 0)
- {
- if (root_page != page)
- {
- checkAd(page);
- sendTimes(root_page);
- } // end if
- }
- else if (state == 2 && page == 0 || state == 1 && page == _root.maxpage)
- {
- removeAd(0);
- sendTimes(_root.page);
- }
- else
- {
- root_page = _root.page;
- } // end else if
- };
- _root.postButton = function (name_str)
- {
- var _loc2 = new LoadVars();
- var data_buffer_str = "http://xp-adms.xplus.com.cn/online_paper_button_click.php?uid=" + uid_str + "&guid=" + guid_str + "&cpuid=" + cpuid_str + "&magidno=" + magidno_str + "&mag_name=" + magname_str + "&ver=" + ver_str + "&site=" + site + "&pno=" + _root.page / 2 + "&btn=" + name_str;
- _loc2.sendAndLoad(data_buffer_str + "&selfflag=" + selfflag + "&FBState=" + FBState() + "&ranstr=" + ranStr(32), _loc2, "post");
- _root.debug_txt.text = _root.debug_txt.text + ("发送按钮点击数据\n" + data_buffer_str + "&selfflag=" + selfflag + "&FBState=" + FBState() + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _loc2.onData = function (data_str)
- {
- if (data_str == undefined || data_str != "ok")
- {
- _root.debug_txt.text = _root.debug_txt.text + ("按钮数据提交失败,保存地址:\n" + data_buffer_str + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- getURL("FSCommand:writeline", data_buffer_str);
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + ("返回:" + data_str + ",按钮数据提交成功!\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- } // end else if
- };
- };
- var dataToArray = function (data_str)
- {
- ad_files_array = data_str.split("#");
- if (ad_files_array[ad_files_array.length - 1].length < 3)
- {
- ad_files_array.pop();
- } // end if
- };
- var arrayToObject = function ()
- {
- for (var _loc1 = 0; _loc1 < ad_files_array.length; ++_loc1)
- {
- var _loc2 = ad_files_array[_loc1].split("|")[0].slice(ad_files_array[_loc1].lastIndexOf("/") + 1);
- var _loc3 = ad_files_array[_loc1].split("|")[0].slice(0, ad_files_array[_loc1].lastIndexOf("/") + 1);
- ad_id_array[Number(_loc2)] = new Array();
- ad_id_array[Number(_loc2)][0] = _loc3;
- ad_id_array[Number(_loc2)][1] = ad_files_array[_loc1].split("|")[2];
- ad_id_array[Number(_loc2)][2] = ad_files_array[_loc1].split("|")[1];
- ad_id_array[Number(_loc2)][3] = _loc2;
- } // end of for
- };
- var preload_id = 0;
- var preLoadAd = function ()
- {
- var preload_mc = _root.createEmptyMovieClip("preload_mc", 19999);
- preload_mc._lockroot = true;
- preload_mc._y = 5000;
- preload_mc._visible = false;
- var _loc4 = new Sound(preload_mc);
- _loc4.setVolume(0);
- var preload_mcl = new MovieClipLoader();
- var _loc3 = new Object();
- _loc3.onLoadComplete = function (target_mc)
- {
- _root.debug_txt.text = _root.debug_txt.text + "预加载完毕.\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- if (preload_id == ad_id_array.length)
- {
- _root.debug_txt.text = _root.debug_txt.text + "全部预加载完毕.\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- preload_mc.removeMovieClip();
- } // end if
- for (var _loc2 = preload_id; _loc2 < ad_id_array.length; ++_loc2)
- {
- if (ad_id_array[_loc2] != undefined)
- {
- preload_mcl.loadClip(ad_id_array[_loc2][0] + ad_id_array[_loc2][1], preload_mc);
- _root.debug_txt.text = _root.debug_txt.text + ("预加载广告" + _loc2 + ":" + ad_id_array[_loc2][0] + ad_id_array[_loc2][1] + "\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- preload_id = _loc2 + 1;
- break;
- } // end if
- } // end of for
- };
- preload_mcl.addListener(_loc3);
- for (var _loc2 = preload_id; _loc2 < ad_id_array.length; ++_loc2)
- {
- if (ad_id_array[_loc2] != undefined)
- {
- preload_mcl.loadClip(ad_id_array[_loc2][0] + ad_id_array[_loc2][1], preload_mc);
- _root.debug_txt.text = _root.debug_txt.text + ("预加载广告" + _loc2 + ":" + ad_id_array[_loc2][0] + ad_id_array[_loc2][1] + "\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- preload_id = _loc2 + 1;
- break;
- } // end if
- } // end of for
- };
- _root.closeWin = function (null_str)
- {
- if (null_str != "null")
- {
- _root.debug_txt.text = _root.debug_txt.text + "一秒时间到,执行关闭。\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- } // end if
- fscommand("quit");
- clearInterval(_root.closeInterval);
- };
- _root.sendTimes = function (page_num, flag_str)
- {
- if (flag_str == "close")
- {
- if (_root.online)
- {
- _root.debug_txt.text = _root.debug_txt.text + "一秒钟后关闭杂志!\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.closeInterval = setInterval(_root.closeWin, 1000);
- }
- else
- {
- fscommand("hide");
- } // end if
- } // end else if
- var _loc2 = new LoadVars();
- var data_buffer_str = "http://xp-adms.xplus.com.cn/online_paper_page_read.php?uid=" + uid_str + "&guid=" + guid_str + "&cpuid=" + cpuid_str + "&magidno=" + magidno_str + "&mag_name=" + magname_str + "&ver=" + ver_str + "&site=" + site + "&pno=" + page_num / 2 + "&pt=" + _root.g_pageTimeArray[page_num];
- _loc2.sendAndLoad(data_buffer_str + "&selfflag=" + selfflag + "&FBState=" + FBState() + "&ranstr=" + ranStr(32), _loc2, "post");
- _root.debug_txt.text = _root.debug_txt.text + ("发送页面浏览时间\n" + data_buffer_str + "&selfflag=" + selfflag + "&FBState=" + FBState() + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.g_pageTimeArray[page_num] = 0;
- _loc2.onData = function (data_str)
- {
- if (data_str == undefined || data_str != "ok")
- {
- _root.debug_txt.text = _root.debug_txt.text + ("页面数据提交失败,保存地址:\n" + data_buffer_str + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- getURL("FSCommand:writeline", data_buffer_str);
- if (flag_str == "close")
- {
- _root.debug_txt.text = _root.debug_txt.text + "提交当页数据失败,执行关闭。\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.closeWin("null");
- } // end if
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + ("返回:" + data_str + ",页面数据提交成功!\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- if (flag_str == "close")
- {
- _root.debug_txt.text = _root.debug_txt.text + "提交当页数据成功,执行关闭。\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.closeWin("null");
- } // end if
- } // end else if
- };
- };
- var loadAd = function (ad_array)
- {
- var _loc5 = _root.pages.pp.createEmptyMovieClip("ad_mc", 10001);
- var _loc4 = new MovieClipLoader();
- var _loc3 = new Object();
- _loc3.onLoadInit = function ()
- {
- var _loc2 = new LoadVars();
- var data_buffer_str = "http://xp-adms.xplus.com.cn/ads_paper_jump_new.php?filename=" + ad_array[1] + "&adver_id=" + ad_array[2] + "&adver_pos=" + ad_array[3] + "&uid=" + uid_str + "&guid=" + guid_str + "&cpuid=" + cpuid_str + "&magidno=" + magidno_str + "&mag_name=" + magname_str + "&ver=" + ver_str + "&site=" + site;
- _loc2.sendAndLoad(data_buffer_str + "&selfflag=" + selfflag + "&FBState=" + FBState() + "&ranstr=" + ranStr(32), _loc2, "post");
- _root.debug_txt.text = _root.debug_txt.text + ("返回广告数据:" + data_buffer_str + "&selfflag=" + selfflag + "&FBState=" + FBState() + "&ranstr=" + ranStr(32) + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _loc2.onData = function (data_str)
- {
- if (data_str == undefined || data_str != "ok")
- {
- _root.debug_txt.text = _root.debug_txt.text + ("广告数据提交失败,保存地址:\n" + data_buffer_str + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- getURL("FSCommand:writeline", data_buffer_str);
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + ("返回:" + data_str + ",广告数据提交成功!\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- } // end else if
- };
- };
- _loc4.addListener(_loc3);
- _loc4.loadClip(ad_array[0] + ad_array[1], _loc5);
- _root.pageSound(0);
- _root.debug_txt.text = _root.debug_txt.text + ("载入广告:" + ad_array[0] + ad_array[1] + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- };
- _root.reLoadPage = function ()
- {
- _root.debug_txt.text = _root.debug_txt.text + ("重新加载页面:" + _root.pages.pp.ppp._url.split("/")[_root.pages.pp.ppp._url.split("/").length - 1] + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.pages.pp.ppp.unloadMovie();
- _root.pages.pp.ppp.loadMovie(_root.pages.pp.ppp._url.split("/")[_root.pages.pp.ppp._url.split("/").length - 1]);
- };
- _root.removeAd = function (del_num)
- {
- if (del_num != 0)
- {
- _root.reLoadPage();
- } // end if
- _root.debug_txt.text = _root.debug_txt.text + ("删除前广告:" + _root.pages.pp.ad_mc + "[" + _root.pages.pp.ad_mc.getDepth() + "]" + _root.pages.pp.ad_mc._width + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.pages.pp.createEmptyMovieClip("ad_mc", 1001);
- _root.pageSound(100);
- _root.debug_txt.text = _root.debug_txt.text + ("删除后广告:" + _root.pages.pp.ad_mc + "[" + _root.pages.pp.ad_mc.getDepth() + "]" + _root.pages.pp.ad_mc._width + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- };
- _root.pageSound = function (snd_num)
- {
- var _loc2 = new Sound(_root.pages.pp.ppp);
- var ad_snd = new Sound(_root.pages.pp.ad_mc);
- _root.debug_txt.text = _root.debug_txt.text + ("设置音量前:" + _loc2.getVolume() + "\n广告音量:" + ad_snd.getVolume() + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- var onEnterFrame_mc = _root.createEmptyMovieClip("onEnterFrame_mc", 82);
- onEnterFrame_mc.onEnterFrame = function ()
- {
- if (_root.pages.pp.ppp.getBytesLoaded() > 0 || _root.pages.pp.ppp._width > 0)
- {
- var _loc2 = new Sound(_root.pages.pp.ppp);
- _loc2.setVolume(snd_num);
- ad_snd.setVolume(100);
- _root.debug_txt.text = _root.debug_txt.text + ("设置音量后:" + snd_num + "->" + _loc2.getVolume() + "\n广告音量:" + ad_snd.getVolume() + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- onEnterFrame_mc.removeMovieClip();
- } // end if
- };
- };
- var checkAd = function (page_num)
- {
- removeAd();
- _root.debug_txt.text = _root.debug_txt.text + "检查该页是否有广告……\n";
- if (ad_id_array[page_num / 2] != undefined)
- {
- _root.debug_txt.text = _root.debug_txt.text + "该页有广告!\n";
- loadAd(ad_id_array[page_num / 2]);
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "该页无广告!\n\n";
- } // end else if
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- };
- _root.btnEnabled = function (s)
- {
- if (s)
- {
- _root.debug_txt.text = _root.debug_txt.text + "控制按钮启用\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- Mouse.addListener(mousecontroll);
- Key.addListener(_root);
- buttons.face_mc.enabled = true;
- buttons.back_mc.enabled = true;
- buttons.contents_mc.enabled = true;
- buttons.btn_prev.enabled = true;
- buttons.btn_next.btn_next.enabled = true;
- delete buttons.page_btn.onRollOver;
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "控制按钮禁用\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- Mouse.removeListener(mousecontroll);
- Key.removeListener(_root);
- buttons.face_mc.enabled = false;
- buttons.back_mc.enabled = false;
- buttons.contents_mc.enabled = false;
- buttons.btn_prev.enabled = false;
- buttons.btn_next.btn_next.enabled = false;
- buttons.page_btn.onRollOver = function ()
- {
- this.useHandCursor = false;
- };
- } // end else if
- };
- } // end if
- delete onEnterFrame;
- getURL("FSCommand:fullscreen", fullscreen);
- gotoAndPlay(15);
- } // end if
- }
- else if (TB > 4 && PC == 100 && pagesInfoLoaded && pageflipLoaded && g_bXplus != undefined)
- {
- if (g_bXplus == "1" || debug_mode == "true")
- {
- if (g_systemDir != undefined && g_diskID != undefined && g_macAddr != undefined)
- {
- _loc22 = function ()
- {
- var _loc2 = _root.createTextField("debug_txt", 18999, 50, 150, 300, 400);
- _loc2.background = true;
- _loc2.border = true;
- _loc2.wordWrap = true;
- _loc2.text = "";
- };
- var sendDataBuffer = function ()
- {
- fscommand("readline", "root_data_buffer_str");
- _root.debug_txt.text = _root.debug_txt.text + "获取离线数据……\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- var send_lv = new LoadVars();
- var _loc2 = _root.createEmptyMovieClip("root_data_buffer_mc", 10011);
- _loc2.onEnterFrame = function ()
- {
- if (_root.root_data_buffer_str != "[eof]")
- {
- if (_root.root_data_buffer_str != "")
- {
- send_lv.sendAndLoad(_root.root_data_buffer_str + "&selfflag=" + selfflag + "&FBState=offlineexe&ranstr=" + ranStr(32), send_lv, "post");
- _root.debug_txt.text = _root.debug_txt.text + ("获取到并发送离线数据:\n" + _root.root_data_buffer_str + "&selfflag=" + selfflag + "&FBState=offlineexe" + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.root_data_buffer_mc.removeMovieClip();
- } // end if
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "无离线数据~\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.root_data_buffer_mc.removeMovieClip();
- } // end else if
- };
- send_lv.onData = function (data_str)
- {
- if (data_str == undefined || data_str != "ok")
- {
- _root.debug_txt.text = _root.debug_txt.text + ("发送失败,保存离线数据:\n" + _root.root_data_buffer_str + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- getURL("FSCommand:writeline", _root.root_data_buffer_str);
- _root.root_data_buffer_str = "";
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + ("返回:" + data_str + ",离线数据提交成功!\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.root_data_buffer_str = "";
- sendDataBuffer();
- } // end else if
- };
- };
- if (debug_mode == "true")
- {
- _loc22();
- } // end if
- System.security.allowDomain("*");
- System.security.allowInsecureDomain("*");
- var FBState = function ()
- {
- if (_root.online)
- {
- return ("onlineswf");
- }
- else
- {
- return ("onlineexe");
- } // end else if
- };
- var ad_url_str = "http://xp-adms.xplus.com.cn/ads_policy_new.php?per=";
- var con_str = ".";
- _root.zine_str = zine || "zine";
- _root.magname_str = magname || "zine";
- var uid_str = uid || "";
- var guid_str = guid || "";
- _loc13 = g_diskID || "";
- _loc12 = g_macAddr || "";
- _loc24 = g_systemDir || "C:/WINDOWS/system32";
- if (_loc13 == "" && _loc12 == "")
- {
- var cpuid_str = "";
- }
- else
- {
- var cpuid_str = _loc13 + "||" + _loc12;
- } // end else if
- _root.debug_txt.text = _root.debug_txt.text + ("硬盘ID:" + _loc13 + "\n网卡地址:" + _loc12 + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.magidno_str = magidno || "";
- var ver_str = ver || "";
- var site = site || "";
- var selfflag = selfflag || "maga";
- if (__registered == 1)
- {
- selfflag = "xplus";
- } // end if
- var ranStr = function (length_num)
- {
- var _loc2 = "";
- for (var _loc1 = 0; _loc1 < length_num; ++_loc1)
- {
- _loc2 = _loc2 + String((Math.random() * 36).toString(36));
- } // end of for
- return (_loc2);
- };
- var checkOfflineAd = function ()
- {
- _root.debug_txt.text = _root.debug_txt.text + "○检查离线广告:\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- var _loc3 = true;
- for (var _loc2 = 0; _loc2 < _root.pagesXML.childNodes.length; ++_loc2)
- {
- if (_root.pagesXML.childNodes[_loc2].attributes.AdFile.length > 1)
- {
- _root.debug_txt.text = _root.debug_txt.text + ("○发现离线广告: \n○跨页:" + _loc2 + "\n○AdFile:" + _root.pagesXML.childNodes[_loc2].attributes.AdFile + "\n○AdId:" + _root.pagesXML.childNodes[_loc2].attributes.AdId + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _loc3 = false;
- ad_id_array[_loc2] = new Array("", _root.pagesXML.childNodes[_loc2].attributes.AdFile, _root.pagesXML.childNodes[_loc2].attributes.AdId, _loc2);
- } // end if
- } // end of for
- if (_loc3)
- {
- _root.debug_txt.text = _root.debug_txt.text + "○未发现离线广告,播放默认包死广告。 \n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- ad_id_array[3] = new Array("", "xplus_ad.swf", "default", "3");
- } // end if
- };
- var ad_files_array = new Array();
- var ad_id_array = new Array();
- var loadAdData = function ()
- {
- var _loc3 = ad_url_str + zine_str + con_str + magname_str + con_str + uid_str + con_str + guid_str + con_str + cpuid_str + con_str + magidno_str + con_str + ver_str;
- _root.debug_txt.text = _root.debug_txt.text + ("请求广告数据: " + _loc3 + "&selfflag=" + selfflag + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- var _loc2 = new LoadVars();
- _loc2.sendAndLoad(_loc3 + "&selfflag=" + selfflag + "&ranstr=" + ranStr(32), _loc2, "post");
- _loc2.onHTTPStatus = function (http_num)
- {
- if (http_num != 200)
- {
- } // end if
- };
- _loc2.onData = function (data_str)
- {
- if (data_str != undefined)
- {
- if (data_str != "-1")
- {
- _root.debug_txt.text = _root.debug_txt.text + ("收到广告数据: " + data_str + "\n\n");
- dataToArray(data_str);
- arrayToObject();
- checkAd(_root.page);
- preLoadAd();
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "收到广告数据:-1\n不飘广告,不检查离线广告。\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- } // end else if
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "未收到广告数据!\n尝试检查离线广告。\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- checkOfflineAd();
- } // end else if
- };
- };
- if (!_root.online)
- {
- _root.debug_txt.text = _root.debug_txt.text + ("☆当前不在线,读取 " + _root.g_systemDir + "/xu.txt:\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _loc14 = new LoadVars();
- _loc14.load(_root.g_systemDir + "/xu.txt");
- _loc14.onData = function (xu_str)
- {
- if (xu_str != undefined)
- {
- _root.debug_txt.text = _root.debug_txt.text + "☆xu.txt 存在!\n\n";
- var _loc3 = xu_str.split("&");
- for (var _loc2 = 0; _loc2 < _loc3.length; ++_loc2)
- {
- if (_loc3[_loc2].indexOf("uid") == 0)
- {
- uid_str = _loc3[_loc2].slice(4);
- _root.debug_txt.text = _root.debug_txt.text + ("☆获取到uid: " + uid_str + "\n");
- continue;
- } // end if
- if (_loc3[_loc2].indexOf("guid") == 0)
- {
- guid_str = _loc3[_loc2].slice(5);
- _root.debug_txt.text = _root.debug_txt.text + ("☆获取到guid: " + guid_str + "\n");
- continue;
- } // end if
- if (_loc3[_loc2].indexOf("cpuid") == 0)
- {
- cpuid_str = _loc3[_loc2].slice(6);
- _root.debug_txt.text = _root.debug_txt.text + ("☆获取到cpuid: " + cpuid_str + "\n");
- continue;
- } // end if
- if (_loc3[_loc2].indexOf("ver") == 0)
- {
- ver_str = _loc3[_loc2].slice(4);
- _root.debug_txt.text = _root.debug_txt.text + ("☆获取到ver: " + ver_str + "\n");
- } // end if
- } // end of for
- _root.debug_txt.text = _root.debug_txt.text + "☆xu.txt 读取完毕!\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- loadAdData();
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "☆xu.txt 不存在!\n\n";
- loadAdData();
- } // end else if
- };
- _root.debug_txt.text = _root.debug_txt.text + ("打开离线数据文件:\n" + g_systemDir + "\\subbuffer.sl\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- getURL("FSCommand:open", g_systemDir + "\\subbuffer.sl");
- sendDataBuffer();
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "☆当前在线,不读取cpuid!\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- loadAdData();
- } // end else if
- var root_page = 0;
- _root.onPageFlip = function (state, page)
- {
- if (state == 0)
- {
- if (root_page != page)
- {
- checkAd(page);
- sendTimes(root_page);
- } // end if
- }
- else if (state == 2 && page == 0 || state == 1 && page == _root.maxpage)
- {
- removeAd(0);
- sendTimes(_root.page);
- }
- else
- {
- root_page = _root.page;
- } // end else if
- };
- _root.postButton = function (name_str)
- {
- var _loc2 = new LoadVars();
- var data_buffer_str = "http://xp-adms.xplus.com.cn/online_paper_button_click.php?uid=" + uid_str + "&guid=" + guid_str + "&cpuid=" + cpuid_str + "&magidno=" + magidno_str + "&mag_name=" + magname_str + "&ver=" + ver_str + "&site=" + site + "&pno=" + _root.page / 2 + "&btn=" + name_str;
- _loc2.sendAndLoad(data_buffer_str + "&selfflag=" + selfflag + "&FBState=" + FBState() + "&ranstr=" + ranStr(32), _loc2, "post");
- _root.debug_txt.text = _root.debug_txt.text + ("发送按钮点击数据\n" + data_buffer_str + "&selfflag=" + selfflag + "&FBState=" + FBState() + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _loc2.onData = function (data_str)
- {
- if (data_str == undefined || data_str != "ok")
- {
- _root.debug_txt.text = _root.debug_txt.text + ("按钮数据提交失败,保存地址:\n" + data_buffer_str + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- getURL("FSCommand:writeline", data_buffer_str);
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + ("返回:" + data_str + ",按钮数据提交成功!\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- } // end else if
- };
- };
- var dataToArray = function (data_str)
- {
- ad_files_array = data_str.split("#");
- if (ad_files_array[ad_files_array.length - 1].length < 3)
- {
- ad_files_array.pop();
- } // end if
- };
- var arrayToObject = function ()
- {
- for (var _loc1 = 0; _loc1 < ad_files_array.length; ++_loc1)
- {
- var _loc2 = ad_files_array[_loc1].split("|")[0].slice(ad_files_array[_loc1].lastIndexOf("/") + 1);
- var _loc3 = ad_files_array[_loc1].split("|")[0].slice(0, ad_files_array[_loc1].lastIndexOf("/") + 1);
- ad_id_array[Number(_loc2)] = new Array();
- ad_id_array[Number(_loc2)][0] = _loc3;
- ad_id_array[Number(_loc2)][1] = ad_files_array[_loc1].split("|")[2];
- ad_id_array[Number(_loc2)][2] = ad_files_array[_loc1].split("|")[1];
- ad_id_array[Number(_loc2)][3] = _loc2;
- } // end of for
- };
- var preload_id = 0;
- var preLoadAd = function ()
- {
- var preload_mc = _root.createEmptyMovieClip("preload_mc", 19999);
- preload_mc._lockroot = true;
- preload_mc._y = 5000;
- preload_mc._visible = false;
- var _loc4 = new Sound(preload_mc);
- _loc4.setVolume(0);
- var preload_mcl = new MovieClipLoader();
- var _loc3 = new Object();
- _loc3.onLoadComplete = function (target_mc)
- {
- _root.debug_txt.text = _root.debug_txt.text + "预加载完毕.\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- if (preload_id == ad_id_array.length)
- {
- _root.debug_txt.text = _root.debug_txt.text + "全部预加载完毕.\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- preload_mc.removeMovieClip();
- } // end if
- for (var _loc2 = preload_id; _loc2 < ad_id_array.length; ++_loc2)
- {
- if (ad_id_array[_loc2] != undefined)
- {
- preload_mcl.loadClip(ad_id_array[_loc2][0] + ad_id_array[_loc2][1], preload_mc);
- _root.debug_txt.text = _root.debug_txt.text + ("预加载广告" + _loc2 + ":" + ad_id_array[_loc2][0] + ad_id_array[_loc2][1] + "\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- preload_id = _loc2 + 1;
- break;
- } // end if
- } // end of for
- };
- preload_mcl.addListener(_loc3);
- for (var _loc2 = preload_id; _loc2 < ad_id_array.length; ++_loc2)
- {
- if (ad_id_array[_loc2] != undefined)
- {
- preload_mcl.loadClip(ad_id_array[_loc2][0] + ad_id_array[_loc2][1], preload_mc);
- _root.debug_txt.text = _root.debug_txt.text + ("预加载广告" + _loc2 + ":" + ad_id_array[_loc2][0] + ad_id_array[_loc2][1] + "\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- preload_id = _loc2 + 1;
- break;
- } // end if
- } // end of for
- };
- _root.closeWin = function (null_str)
- {
- if (null_str != "null")
- {
- _root.debug_txt.text = _root.debug_txt.text + "一秒时间到,执行关闭。\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- } // end if
- fscommand("quit");
- clearInterval(_root.closeInterval);
- };
- _root.sendTimes = function (page_num, flag_str)
- {
- if (flag_str == "close")
- {
- if (_root.online)
- {
- _root.debug_txt.text = _root.debug_txt.text + "一秒钟后关闭杂志!\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.closeInterval = setInterval(_root.closeWin, 1000);
- }
- else
- {
- fscommand("hide");
- } // end if
- } // end else if
- var _loc2 = new LoadVars();
- var data_buffer_str = "http://xp-adms.xplus.com.cn/online_paper_page_read.php?uid=" + uid_str + "&guid=" + guid_str + "&cpuid=" + cpuid_str + "&magidno=" + magidno_str + "&mag_name=" + magname_str + "&ver=" + ver_str + "&site=" + site + "&pno=" + page_num / 2 + "&pt=" + _root.g_pageTimeArray[page_num];
- _loc2.sendAndLoad(data_buffer_str + "&selfflag=" + selfflag + "&FBState=" + FBState() + "&ranstr=" + ranStr(32), _loc2, "post");
- _root.debug_txt.text = _root.debug_txt.text + ("发送页面浏览时间\n" + data_buffer_str + "&selfflag=" + selfflag + "&FBState=" + FBState() + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.g_pageTimeArray[page_num] = 0;
- _loc2.onData = function (data_str)
- {
- if (data_str == undefined || data_str != "ok")
- {
- _root.debug_txt.text = _root.debug_txt.text + ("页面数据提交失败,保存地址:\n" + data_buffer_str + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- getURL("FSCommand:writeline", data_buffer_str);
- if (flag_str == "close")
- {
- _root.debug_txt.text = _root.debug_txt.text + "提交当页数据失败,执行关闭。\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.closeWin("null");
- } // end if
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + ("返回:" + data_str + ",页面数据提交成功!\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- if (flag_str == "close")
- {
- _root.debug_txt.text = _root.debug_txt.text + "提交当页数据成功,执行关闭。\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.closeWin("null");
- } // end if
- } // end else if
- };
- };
- var loadAd = function (ad_array)
- {
- var _loc5 = _root.pages.pp.createEmptyMovieClip("ad_mc", 10001);
- var _loc4 = new MovieClipLoader();
- var _loc3 = new Object();
- _loc3.onLoadInit = function ()
- {
- var _loc2 = new LoadVars();
- var data_buffer_str = "http://xp-adms.xplus.com.cn/ads_paper_jump_new.php?filename=" + ad_array[1] + "&adver_id=" + ad_array[2] + "&adver_pos=" + ad_array[3] + "&uid=" + uid_str + "&guid=" + guid_str + "&cpuid=" + cpuid_str + "&magidno=" + magidno_str + "&mag_name=" + magname_str + "&ver=" + ver_str + "&site=" + site;
- _loc2.sendAndLoad(data_buffer_str + "&selfflag=" + selfflag + "&FBState=" + FBState() + "&ranstr=" + ranStr(32), _loc2, "post");
- _root.debug_txt.text = _root.debug_txt.text + ("返回广告数据:" + data_buffer_str + "&selfflag=" + selfflag + "&FBState=" + FBState() + "&ranstr=" + ranStr(32) + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _loc2.onData = function (data_str)
- {
- if (data_str == undefined || data_str != "ok")
- {
- _root.debug_txt.text = _root.debug_txt.text + ("广告数据提交失败,保存地址:\n" + data_buffer_str + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- getURL("FSCommand:writeline", data_buffer_str);
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + ("返回:" + data_str + ",广告数据提交成功!\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- } // end else if
- };
- };
- _loc4.addListener(_loc3);
- _loc4.loadClip(ad_array[0] + ad_array[1], _loc5);
- _root.pageSound(0);
- _root.debug_txt.text = _root.debug_txt.text + ("载入广告:" + ad_array[0] + ad_array[1] + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- };
- _root.reLoadPage = function ()
- {
- _root.debug_txt.text = _root.debug_txt.text + ("重新加载页面:" + _root.pages.pp.ppp._url.split("/")[_root.pages.pp.ppp._url.split("/").length - 1] + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.pages.pp.ppp.unloadMovie();
- _root.pages.pp.ppp.loadMovie(_root.pages.pp.ppp._url.split("/")[_root.pages.pp.ppp._url.split("/").length - 1]);
- };
- _root.removeAd = function (del_num)
- {
- if (del_num != 0)
- {
- _root.reLoadPage();
- } // end if
- _root.debug_txt.text = _root.debug_txt.text + ("删除前广告:" + _root.pages.pp.ad_mc + "[" + _root.pages.pp.ad_mc.getDepth() + "]" + _root.pages.pp.ad_mc._width + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.pages.pp.createEmptyMovieClip("ad_mc", 1001);
- _root.pageSound(100);
- _root.debug_txt.text = _root.debug_txt.text + ("删除后广告:" + _root.pages.pp.ad_mc + "[" + _root.pages.pp.ad_mc.getDepth() + "]" + _root.pages.pp.ad_mc._width + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- };
- _root.pageSound = function (snd_num)
- {
- var _loc2 = new Sound(_root.pages.pp.ppp);
- var ad_snd = new Sound(_root.pages.pp.ad_mc);
- _root.debug_txt.text = _root.debug_txt.text + ("设置音量前:" + _loc2.getVolume() + "\n广告音量:" + ad_snd.getVolume() + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- var onEnterFrame_mc = _root.createEmptyMovieClip("onEnterFrame_mc", 82);
- onEnterFrame_mc.onEnterFrame = function ()
- {
- if (_root.pages.pp.ppp.getBytesLoaded() > 0 || _root.pages.pp.ppp._width > 0)
- {
- var _loc2 = new Sound(_root.pages.pp.ppp);
- _loc2.setVolume(snd_num);
- ad_snd.setVolume(100);
- _root.debug_txt.text = _root.debug_txt.text + ("设置音量后:" + snd_num + "->" + _loc2.getVolume() + "\n广告音量:" + ad_snd.getVolume() + "\n\n");
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- onEnterFrame_mc.removeMovieClip();
- } // end if
- };
- };
- var checkAd = function (page_num)
- {
- removeAd();
- _root.debug_txt.text = _root.debug_txt.text + "检查该页是否有广告……\n";
- if (ad_id_array[page_num / 2] != undefined)
- {
- _root.debug_txt.text = _root.debug_txt.text + "该页有广告!\n";
- loadAd(ad_id_array[page_num / 2]);
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "该页无广告!\n\n";
- } // end else if
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- };
- _root.btnEnabled = function (s)
- {
- if (s)
- {
- _root.debug_txt.text = _root.debug_txt.text + "控制按钮启用\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- Mouse.addListener(mousecontroll);
- Key.addListener(_root);
- buttons.face_mc.enabled = true;
- buttons.back_mc.enabled = true;
- buttons.contents_mc.enabled = true;
- buttons.btn_prev.enabled = true;
- buttons.btn_next.btn_next.enabled = true;
- delete buttons.page_btn.onRollOver;
- }
- else
- {
- _root.debug_txt.text = _root.debug_txt.text + "控制按钮禁用\n\n";
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- _root.debug_txt.scroll = _root.debug_txt.maxscroll;
- Mouse.removeListener(mousecontroll);
- Key.removeListener(_root);
- buttons.face_mc.enabled = false;
- buttons.back_mc.enabled = false;
- buttons.contents_mc.enabled = false;
- buttons.btn_prev.enabled = false;
- buttons.btn_next.btn_next.enabled = false;
- buttons.page_btn.onRollOver = function ()
- {
- this.useHandCursor = false;
- };
- } // end else if
- };
- delete onEnterFrame;
- getURL("FSCommand:fullscreen", fullscreen);
- gotoAndPlay(15);
- } // end if
- }
- else
- {
- delete onEnterFrame;
- getURL("FSCommand:fullscreen", fullscreen);
- gotoAndPlay(15);
- } // end else if
- } // end else if
- };
复制代码
替换下面
- onEnterFrame = function () {
- LB = getBytesLoaded();
- TB = getBytesTotal();
- PC = LB/TB*100;
- loaderbar.setbar(PC);
- if (TB>4 && PC == 100 && pagesInfoLoaded && pageflipLoaded) {
- delete onEnterFrame;
- getURL("FSCommand:fullscreen", fullscreen);
- gotoAndPlay(15);
- }
- // end if
- };
复制代码 |