网站地图网站结构
宜昌车市  互联星空  网上营业厅  天翼宽带  天翼视讯  三峡论坛  
同城交友  交易市场  三峡旅游  宜昌房产  快捷人才  图片中心  天翼LIV  
  热门推荐: [ 天翼视讯安卓版下载v5.3.31.43 ] [ 天翼视讯主界面 ]
 
  您现在的位置 主页 > 天翼视讯 > 正文
 

天翼视讯 采集的AS2脚本方法

2020-08-01 15:11  文章来源:网络整理    字体:


function printList() {
var _loc8 = _root.cmp.youku+"http://v.youku.com/v_show/id_"+_root.id+".html";
if (swf_urlj.lastIndexOf("&vid=1") != -1) {
_root.cmp.youku_f_html = 1;
urlmmid = 2;
_root.cmp.musicPlayUrl = _root.id;
_root.cmp.musicPlayId = 0;
_loc8 = "";
_root.cmp.视频模式 = 2;
_root.cmp.代理id = 1;
集数例表._x = 3000;
musicList._x = 570;
loadMusic();
} else if (swf_urlj.lastIndexOf("&vid=2") != -1) {
if (swf_urlj.lastIndexOf("&list=") != -1) {
_global.indexid = _root._url.split("&list=")[1];
_global.indexid_i = 1;
_root.cmp.musicPlayId = 0;
_loc8 = "";
_root.cmp.视频模式 = 1;
_root.cmp.代理id = 2;
集数例表._x = 3000;
musicList._x = 570;
_root.bfs.musicPlayId = _root.bfs.listPlayId=_root.bfs.listOpenId=1;
load_天翼网代理_list();
} else {
_root.cmp.musicPlayId = 0;
_loc8 = "";
_root.cmp.视频模式 = 2;
_root.cmp.代理id = 2;
集数例表._x = 3000;
musicList._x = 3000;
load_天翼网代理();
}
} else if (swf_urlj.lastIndexOf("&vid=3") != -1) {
System.useCodepage = false;
_root.cmp.musicPlayId = 0;
_loc8 = "";
_root.cmp.视频模式 = 2;
_root.cmp.代理id = 3;
_root.cmp.激动网视频道id = "激动网";
集数例表._x = 3000;
musicList._x = 3000;
激动网loadhtm();
} else if (swf_urlj.lastIndexOf("&vid=4") != -1) {
if (iii == 1) {
i = 0;
_root.bfs.musicPlayId = "0";
iii = 0;
}
_root.cmp.musicPlayId = 0;
_loc8 = "";
_root.cmp.代理id = 4;
_root.cmp.视频模式 = 2;
集数例表._x = 570;
musicList._x = 3000;
if (swf_urlj.lastIndexOf("/n") != -1) {
_root.cmp.视频模式 = 1;
搜狐loadhtm();
} else if (swf_urlj.lastIndexOf("&list=") != -1) {
var pid = swf_urlj.split("&list=")[1];
视频代理编号.text = _root.id;
flv_多少集.text = pid;
_root.cmp.视频模式 = 1;
剧集列表m();
} else {
视频代理编号.text = _root.id;
flv_多少集.text = "1";
_root.cmp.视频模式 = 2;
剧集列表m();
}
} else if (swf_urlj.lastIndexOf("&vid=5") != -1) {//乐视网
乐视网视频地址 = "http://www.letv.com/"+_root.id;//http://www.flashcs5as3.com/bfs/代理程序/letv.php?id=
_root.cmp.youku_vid = "";
_root.cmp.musicPlayId = 0;
_root.cmp.代理id = 5;
集数例表._x = 570;
musicList._x = 3000;
_root.cmp.视频模式 = 1;
//乐视网loadhtm();
/////////////////////////////////////
if (swf_urlj.lastIndexOf("&vid=5&list=1") != -1) {//乐视网
乐视网视频地址 = "http://www.letv.com/"+_root.id;
_root.cmp.youku_vid = "";
_root.cmp.musicPlayId = 0;
_root.cmp.代理id = 5;
集数例表._x = 570;
musicList._x = 3000;
_root.cmp.视频模式 = 2;
乐视网loadhtm_xml();
} else if (swf_urlj.lastIndexOf("&vid=5") != -1) {
乐视网loadhtm();
}
///////////////////////////////
} else if (swf_urlj.lastIndexOf("&vid=6") != -1) {
_root.bfs.新浪代理 = "http://v.iask.com/v_play.php?vid="+_root.id;
_local8 = "";
_root.cmp.musicPlayId = 0;
_root.cmp.代理id = 6;
集数例表._x = 3000;
musicList._x = 3000;
_root.cmp.视频模式 = 2;
新浪代理loadhtm();
} else if (swf_urlj.lastIndexOf("&vid=7") != -1) {
_root.cmp.音悦代理 = _root.cmp.音悦代理+_root.id;
_local8 = "";
_root.cmp.musicPlayId = 0;
_root.cmp.代理id = 7;
集数例表._x = 3000;
musicList._x = 3000;
_root.cmp.视频模式 = 2;
音悦代理loadhtm();
} else if (swf_urlj.lastIndexOf("&vid=8") != -1) {//play腾讯
//_root.bfs.qqplay_xmlurl = "http://vv.video.qq.com/getinfo?vids="+_root.id;
_local8 = "";
_root.cmp.musicPlayId = 0;
_root.cmp.代理id = 8;
集数例表._x = 3000;
musicList._x = 3000;
_root.cmp.视频模式 = 2;
腾讯loadxml();
} else if (swf_urlj.lastIndexOf("&vid=8&vip=") != -1) {
_local8 = "";
_root.cmp.musicPlayId = 0;
_root.cmp.代理id = 8;
集数例表._x = 3000;
musicList._x = 3000;
_root.cmp.视频模式 = 2;
腾讯loadxml_vip();
} else {
//_root.cmp.musicPlayId++;
集数例表._x = 3000;
musicList._x = 570;
_root.cmp.代理id = 1;
System.useCodepage = true;
_root.cmp.ii++;
_root.bfs.Listxml = new XML();
_root.bfs.Listxml.ignoreWhite = true;
_root.bfs.Listxml.load(_loc8);
_root.bfs.Listxml.onLoad = function(ok) {
if (ok) {
var _loc6 = _root.bfs.Listxml.firstChild.childNodes.length;
var _loc2 = -1;
var _loc8;
var _loc5 = new String("");
var _loc3;
var _loc7;
while (_loc2++, _loc2=26) {
scrollList._visible = true;
} else {
scrollList._visible = false;
}
};
if (_root.cmp.listPlayId == _root.cmp.listOpenId) {
musicList.scroll = _root.cmp.musicPlayId-3;
} else {
musicList.scroll = 1;
}
if (_root.cmp.isPlaying) {
delete _root.cmp.my_nc;
_root.cmp.mySound.stop();
_root.cmp.my_ns.close();
_root.scene.my_video.cfvideo.clear();
loadMusic();
//trace(_root.cmp.musicPlayUrl);
}
}
if (swf_urlj.lastIndexOf("&txt=") != -1) {
muan_txt._x = 5.699500E+002;
muan_txt.text = swf_urlj.split("&txt=")[1];
if (_root.cmp.视频模式 == 2) {
面板元件.bufferinfo.text = "播放:"+muan_txt.text;
纯环btn时间 = setInterval(纯环事件的btn, 6000);
}
} else {
muan_txt._x = 3000;
muan_txt.text = "";
}
}
function d(id) {
_root.bfs.Listxml.childNodes[id].removeNode();
printList();
}
function p(id) {
playThis(id);
}
function playThis(id) {
_loc200.gotoAndPlay("on");
_root.cmp.musicPlayId = id;
_root.cmp.listPlayId = _root.cmp.listOpenId;
_root.cmp.isPlaying = true;
printList();
}
function playThisk() {
_loc200.gotoAndPlay("on");
_root.cmp.musicPlayId = _root.cmp.musicPlayId+1;
_root.cmp.listPlayId = _root.cmp.listOpenId;
_root.cmp.isPlaying = true;
printList();
}
function loadMusic() {
guage._alpha = 0;
scene.mm._alpha = 40;
_root.cmp.html_flv_id = 2;
_root.cmp.musicNextId = getNextId();
_root.cmp.musicNextUrl = getNextUrl();
if (urlmmid == 2) {
_root.cmp.Play_id = 2;
}
_root.msg.showNum(Number(_root.cmp.musicPlayId)+1);
_root.msg.showTime(0,0);
_root.msg.showDownload(0,"");
_root.cmp.isPlaying = false;
_root.cmp.downloading = false;
_loc200 = attachMovie("制作啊城", "制作啊城", 99999);
_root.cmp.musictype = "flv";
_root.cmp.youku_f = 2;
_loc200.gotoAndPlay(2);
if (_root.cmp.Play_id == 2) {
}
loadokm();
}
function loadokm() {
times = 0;
guage.checkPlayTime();
sound.volset.setVol();
updateInfo();
musicStop = 0;
musicPause = 0;
show_msg_state();
}
function 下一首() {
if (_root.cmp.Play_id == 2) {
_root.cmp.Play_id = 3;
var _loc2 = _root.bfs.Listxml.firstChild.childNodes[_root.cmp.musicPlayId-1].attributes.label;
if (_loc2.lastIndexOf(".htm") != -1) {
playflvok(_loc2,_loc2);
} else {
var _loc3 = _root.bfs.Listxml.firstChild.childNodes[_root.cmp.musicPlayId-1].attributes.label;
_root.cmp.musicPlayUrl = _loc3.split("A_")[1];
loadMusic();
}
printList();
trace(_root.cmp.musicPlayUrl);
_root.cmp.musicPlayId = _root.cmp.ii;
}
}
function 上一首() {
if (_root.cmp.Play_id == 2) {
_root.cmp.Play_id = 4;
var _loc2 = _root.bfs.Listxml.firstChild.childNodes[_root.cmp.musicPlayId+1].attributes.label;
if (_loc2.lastIndexOf(".htm") != -1) {
playflvok(_loc2,_loc2);
} else {
var _loc3 = _root.bfs.Listxml.firstChild.childNodes[_root.cmp.musicPlayId+1].attributes.label;
_root.cmp.musicPlayUrl = _loc3.split("A_")[1];
loadMusic();
}
printList();
trace(_root.cmp.musicPlayUrl);
_root.cmp.musicPlayId = _root.cmp.ii;
}
}
function 播放() {
if (musicStop == 1) {
if (_root.cmp.musictype == "mp3") {
} else if (_root.cmp.musictype == "swf") {
} else if (_root.cmp.musictype == "flv") {
_root.cmp.my_ns.pause(false);
playflvok1(_root.cmp.musicPlayUrl,_root.cmp.musicPlayUrl);
} else if (_root.cmp.musictype == "mp4") {
_root.cmp.my_ns.pause(false);
playflvok1(_root.cmp.musicPlayUrl,_root.cmp.musicPlayUrl);
} else {
wmpPlay();
}
} else if (musicPause == 1) {
if (_root.cmp.musictype == "mp3") {
} else if (_root.cmp.musictype == "swf") {
} else if (_root.cmp.musictype == "flv") {
} else if (_root.cmp.musictype == "mp4") {
} else {
wmpPlay();
}
}
musicStop = 0;
musicPause = 0;
show_msg_state();
面板元件.bufferinfo.text = "播放";
纯环btn时间 = setInterval(纯环事件的btn, 6000);
}
function quickBuStop() {
if (_root.cmp.musictype == "mp3") {
} else if (_root.cmp.musictype == "swf") {
} else if (_root.cmp.musictype == "flv") {
_root.cmp.my_ns.pause(true);
} else if (_root.cmp.musictype == "mp4") {
_root.cmp.my_ns.pause(true);
} else {
wmpPause();
}
musicStop = 1;
musicPause = 0;
show_msg_state();
面板元件.bufferinfo.text = "停止";
纯环btn时间 = setInterval(纯环事件的btn, 6000);
}
function 停止() {
if (_root.cmp.musictype == "mp3") {
} else if (_root.cmp.musictype == "swf") {
_root.swfmc.dyc_swf.stop();
} else if (_root.cmp.musictype == "flv") {
_root.cmp.my_ns.pause(true);
} else if (_root.cmp.musictype == "mp4") {
_root.cmp.my_ns.pause(true);
} else {
wmpStop();
}
musicStop = 1;
musicPause = 0;
show_msg_state();
面板元件.bufferinfo.text = "停止";
纯环btn时间 = setInterval(eval("纯环事件的btn"), 6000);
}
function checkDownload() {
delete this.onEnterFrame;
var is_conn = "连接中";
var is_down = "正在下载";
var co_down = "已完成";
var cl;
var ct;
var cp;
this.onEnterFrame = function() {
if (_root.cmp.musictype == "mp3") {
} else if (_root.cmp.musictype == "swf") {
} else if (_root.cmp.musictype == "flv") {
cl = _root.cmp.my_ns.bytesLoaded;
ct = _root.cmp.my_ns.bytesTotal;
} else if (_root.cmp.musictype == "mp4") {
cl = _root.cmp.my_ns.bytesLoaded;
ct = _root.cmp.my_ns.bytesTotal;
} else {
delete this.onEnterFrame;
return;
}
cp = Math.round(cl/ct*100);
if (isNaN(cp) == false && ct>4000) {
_root.cmp.downloading = true;
msg.showDownload(cp,is_down);
if (cp == 100) {
delete this.onEnterFrame;
msg.showDownload(cp,co_down);
guage.mdux_id_load();
}
} else {
msg.showDownload(0,is_conn);
}
};
}
function bufferMusic() {
_root.cmp.buffer_download = false;
delete _root.cmp.bufferSound;
_root.cmp.buffer_ns.close();
unloadMovie(dyc_swf_1);
this.removeMovieClip();
_root.cmp.bufferSound = new Sound();
_root.cmp.buffer_ns = new NetStream(_root.cmp.my_nc);
_root.cmp.musicBufferUrl = _loc2;
if (_root.cmp.musictype == "swf") {
this.createEmptyMovieClip("dyc_swf_1",101);
}
var _loc2 = _root.cmp.musicNextUrl;
var _loc3 = _loc2.substring(_loc2.length-4).toLowerCase();
if (_loc3 == ".mp3") {
_root.cmp.buffermusictype = "mp3";
_root.cmp.bufferSound.loadSound(_loc2,true);
_root.cmp.bufferSound.stop();
} else if (_loc3 == ".swf") {
_root.cmp.buffermusictype = "swf";
if (_root.cmp.musictype == "swf") {
loadMovie(_loc2, dyc_swf_1);
_root.cmp.dyc_swf_1.stop();
}
} else if (_loc3 == ".flv") {
_root.cmp.buffermusictype = "flv";
_root.cmp.buffer_ns.play(_loc2);
_root.cmp.buffer_ns.pause(true);
} else if (_loc3 == ".wma") {
_root.cmp.buffermusictype = "wmp";
} else {
_root.cmp.buffermusictype = "flvpm4卫视电台";
_root.cmp.buffer_ns.play(_loc2);
_root.cmp.buffer_ns.pause(true);
}
checkBuffer();
}
function checkBuffer() {
delete this.onEnterFrame;
var is_next = "开始缓冲";
var is_buff = "缓冲下首";
var co_buff = "缓冲完成";
var cl;
var ct;
var cp;
this.onEnterFrame = function() {
if (_root.cmp.buffermusictype == "mp3") {
cl = _root.cmp.bufferSound.getBytesLoaded();
ct = _root.cmp.bufferSound.getBytesTotal();
} else if (_root.cmp.buffermusictype == "swf") {
} else if (_root.cmp.buffermusictype == "flv") {
cl = _root.cmp.buffer_ns.bytesLoaded;
ct = _root.cmp.buffer_ns.bytesTotal;
} else if (_root.cmp.buffermusictype == "flvpm4卫视电台") {
cl = _root.cmp.buffer_ns.bytesLoaded;
ct = _root.cmp.buffer_ns.bytesTotal;
} else {
delete this.onEnterFrame;
return;
}
cp = Math.round(cl/ct*100);
if (isNaN(cp) == false && ct>4000) {
_root.cmp.downloading = true;
msg.showDownload(cp,is_buff);
if (cp == 100) {
delete this.onEnterFrame;
msg.showDownload(cp,co_buff);
_root.cmp.buffer_download = true;
}
} else {
msg.showDownload(0,is_next);
}
};
}
function goFullScreen() {
Stage.displayState = "fullScreen";
cs_cfvideo.gotoAndPlay(2);
面板元件.ps = true;
}
function exitFullScreen() {
Stage.displayState = "normal";
cs_cfvideo.gotoAndPlay(7);
面板元件.ps = false;
}
function menuHandler(obj, menuObj) {
if (Stage.displayState == "normal") {
menuObj.customItems[0].enabled = true;
menuObj.customItems[1].enabled = false;
} else {
menuObj.customItems[0].enabled = false;
menuObj.customItems[1].enabled = true;
}
}
function flashcs5as3() {
getURL(_root.cmp.userUrl, "_blank");
}
//------------------全------视频----------------
/////////////////////////////////////////////////////
function setNoScale() {
if (!((_root.cmp.scalemode == "1") && (_root.cmp.musictype == "flv"))) {
Stage.scaleMode = "noScale";
fscommand("allowscale", false);
}
Stage.showMenu = true;
fscommand("showmenu", true);
}
///////////////////////////////////////////////////////////
function goFullScreenkkk() {
scene._x = 7.800000E+000;
scene._y = 1.142000E+002;
scene._width = 7.520500E+002;
scene._height = 5.039500E+002;
guage._x = 1.077500E+002;
muan_txt._x = 3000;
面板元件.psbz = true;
}
////////////////////////////////////////////////////////////
function checkMusic() {
if (musicStop != 1) {
var checkMc = this.createEmptyMovieClip("checkMc", this.getNextHighestDepth());
checkMc.onEnterFrame = function() {
if (time2-time1>1000) {
delete checkMc.onEnterFrame;
time1 = getTimer();
if (_root.cmp.downloading == false) {
if (times>30) {
playAuto();
times = 0;
} else {
++times;
checkMusic();
}
} else {
times = 0;
}
} else {
time2 = getTimer();
}
};
}
}

  相关文章
· 天翼视讯免费版v2.0.107
· 电信江苏淮安分公司第三届天翼智能手机
· 天翼视讯PP视频联合会员上线,强强联手
· 武汉市黄陂区南湖村:“天翼大喇叭”打
· 准备好了吗?2020中国电信“天翼杯”网络
· 平治信息:深圳兆能签订8050万元采购合同
 
  热门新闻
 
· “老大”陈翔做客陌陌谈《幻乐之城》
· 中国电信将成立新的分公司
· 最快宽带! 30G电影20秒下完
· 翼动未来,引领变革——天翼视讯确立平台化媒体运营发展之路
· 中国电信天翼视讯亚运助威团大型线下活动"+pi
· 360度视角任意看!天翼视讯与中兴通讯打造国际
· 天翼视讯网络电视客户端官方pc版 5.1.2.10
· 天翼视讯app安卓下载 vv5.3.43.18
· 传祺SUV家族再添新“硬汉”!“震天翼”全新设
· 只要终场哨音不响,比赛就没有结束
 
  热门图片
 
   
  天翼视讯PP视频联合会员上线,强强联手升级用户体验  
   
  武汉市黄陂区南湖村:“天翼大喇叭”打通防汛  
 
 
   
  官宣!天翼及时会视频会议APP正式上线!  
   
  ​“六城同创 爱有天翼”志愿服务活动正式启动  
 
 
   
  IDC:中国电信天翼云稳步上升 位居云运营服务市场第一  
   
  中国电信天翼云会议平台下载v1.2.1.1103 官方pc版  
 
     
免责声明:本(栏目、频道等)内容由SP提供, 欢迎大家对侵犯版权等不合法和不健康的内容进行监督和举报
[增值电信业务经营许可证A2.B1.B2-20090001] [文网文[2008]053号] 删稿联系邮箱:sheng6665588@gmail.com 中国电信湖北公司