闪吧Flash加载播放流程

一、相关文件

flash8.net中与Flash播放相关的文件共有七个(每个Flash都对应着一个id号,假设当前id为16612):

1.http://www.flash8.net/flash/16612.shtml  //播放静态页面
2.http://www.flash8.net/images/swfplayer/flashobject.js  //定义了一个非常重要的函数FlashObject
3.http://www.flash8.net/flash/msl.aspx  //以iframe形式嵌于16612.shtml页中
4.http://www.flash8.net/flash/SwfPlayer_cookie.aspx  //选择镜像,player_cookie.swf包含于其中
5.http://www.flash8.net/images/swfplayer/player_cookie.swf
5.http://www3.flash8.net/flashplayer/SwfPlayer_msl.aspx  //播放Flash,2007player12.swf包含于其中
7.http://www.flash8.net/images/swfplayer/2007player12.swf

二、加载流程

16612.shtml页中msl.aspx参数形如:
msl.aspx?id=16612&width=550&height=400&bgcolor=000000&totalframe=458&framerate=12&MSL=1&main=0&width_player=550&height_player=450&size=603

当MSL参数值不为空时跳至为空时将参数原样传至SwfPlayer_msl.aspx页加载flash文件并播放;否则将参数原样传至SwfPlayer_cookie.aspx页选择镜像之后参数继续传至msl.aspx,然后再传至SwfPlayer_msl.aspx(此文件地址为:http://www5.flash8.net/flashplayer/SwfPlayer_msl.aspx)加载flash文件并播放。

三、附注

1.FlashObject函数调用方式实例:

<div id="flashshow">
</div>
<script type="text/javascript">
var fo = new FlashObject("../images/swfplayer/player_cookie.swf?id=&width=&height=&bgcolor=&totalframe=&framerate=&MSL=&main=&size=", "fotester", "", "", "8", "#FFFFFF");
fo.write("flashshow");
</script>


2.在SwfPlayer_msl.aspx及2007player12.swf内都有判断当前域是否为flash8.net,否则都将定向至16612.shtml页。SwfPlayer_msl.aspx中为:

if(!/^http:\/\/[a-z]+.flash8.net\/.*$/.test(document.referrer))location.replace("http: //www.flash8.net/flash/16612.shtml");


3.分析过程可借助于下载软件获取页面源代码

整个分析过程中我依次改变msl.aspx后参数地址,并用迅雷下载,如:
http://www.flash8.net/flash/msl.aspx?msl.aspx?id=16612
http://www.flash8.net/flash/msl.aspx?id=16612&width=550&height=400&bgcolor=000000
http://www.flash8.net/flash/msl.aspx?id=16612&width=550&height=400&bgcolor=000000&totalframe=458
http://www.flash8.net/flash/msl.aspx?id=16612&width=550&height=400&bgcolor=000000&totalframe=458&framerate=12
http://www.flash8.net/flash/msl.aspx?id=16612&width=550&height=400&bgcolor=000000&totalframe=458&framerate=12&MSL=1

你会发现,随着传入参数的不同,返回的代码也有点不同,我就这样得出当MSL不为空时页面转至SwfPlayer_msl.aspx,为空转至SwfPlayer_cookie.aspx的。

上一篇: 网站安全从结构做起
下一篇: Javascript数据类型实例的创建
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags:
最新日志:
评论: 1 | 引用: 0 | 查看次数: 5253
发表评论
登录后再发表评论!