1 设定一个针对flash的id的函数,这里的id是main

<SCRIPT event="FSCommand(command,arg)" for="main" language=JavaScript>  
alert(command+arg);
window.document.main.SetVariable("info","test");
</SCRIPT>

第一行是设定命令(event)以及针对的id(for)
第二行是使用传递过来的两个变量
第三行是设定flash里面的变量的值,暂时找到就这样做反馈了

2 对于flash,embed里面要有一个 id="main"

<embed src="index.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="main" align="middle" id="main" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

唉,又搞这类的互动了……
以前做盛大的时候就烦了一次。



原创内容如转载请注明:来自 阿权的书房
收藏本文到网摘
ewre
2010/01/12 14:29
bad6666666666666666666666666666666666666666666666666666
分页: 1/1 第一页 1 最后页
发表评论
表情
emotemotemotemotemotemotemotemotemotemotemotemotemot
emotemotemotemotemotemotemotemotemotemotemotemot
打开HTML 打开UBB 打开表情 隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 不区分大小写
 

阅读推荐

服务器相关推荐

开发相关推荐

应用软件推荐