【发布时间】:2010-08-11 14:47:02
【问题描述】:
<script type="text/javascript" src="swfobject/swfobject.js"></script>
<script language="javascript" >
swfobject.registerObject("myId", "10.0.0");
function execute(){
return a;
}
</script>
<body style="margin:0">
<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="500">
<param name="movie" value="helpdeskApp_three.swf" />
<param name="allowScriptAccess" value="always" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="helpdeskApp_three.swf" width="800" height="500" >
<!--<![endif]-->
<div>
<h1>Alternative content</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
我有这个基于这个问题:Getting current URL in Flash from JavaScript using ExternalInterface and IE
但是,这在 Firefox 和 ie 中都不起作用。
如果我像这样将我的 Flash 嵌入到浏览器中:
<embed src="helpdeskApp_three.swf" id="flash" quality="high" scale="exactfit" width="800" height="500" name="movie" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>
这适用于 Firefox,但不适用于 ie。
嵌入我的 Flash 电影以使其适用于所有浏览器的正确方法是什么?
谢谢
【问题讨论】:
标签: javascript flash actionscript-3