我在网上查到的是 使用 GotoFrame方法,但没有效果..
我使用的是adobe flash player 10
IE 7请问有人知道怎么解决不..其它方法都运行正常.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312" />
<title> </title>
<script type="text/javascript">
function flash(ur,w,h){
document.write('<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="'+w+'" height="'+h+'">');
document.write('<param name="movie" value="'+ur+'">');
document.write('<param name="quality" value="high"> ');
document.write('<param name="wmode" value="transparent"> ');
document.write('<param name="menu" value="false"> ');
document.write('<embed src="'+ur+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="'+w+'" height="'+h+'" quality="High" wmode="transparent">');
document.write('</embed>');
document.write('</object>');
} </script>
</head>
<body> <script language="javascript" type="text/javascript">flash('200910160847047.swf','529','600');</script>
<input type="button" onclick="obj1.Play();" value="Play"/>
<input type="button" onclick="obj1.stop();" value="Play"/>
<input type="button" onclick="alert(obj1.CurrentFrame());" value="CurrentFrame"/>
<input type="button" onclick="alert(obj1.totalframes);" value="totalframes"/>
<input type="button" onclick="obj1.GotoFrame(100);" value="GotoFrame"/></body> </html>
我使用的是adobe flash player 10
IE 7请问有人知道怎么解决不..其它方法都运行正常.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312" />
<title> </title>
<script type="text/javascript">
function flash(ur,w,h){
document.write('<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="'+w+'" height="'+h+'">');
document.write('<param name="movie" value="'+ur+'">');
document.write('<param name="quality" value="high"> ');
document.write('<param name="wmode" value="transparent"> ');
document.write('<param name="menu" value="false"> ');
document.write('<embed src="'+ur+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="'+w+'" height="'+h+'" quality="High" wmode="transparent">');
document.write('</embed>');
document.write('</object>');
} </script>
</head>
<body> <script language="javascript" type="text/javascript">flash('200910160847047.swf','529','600');</script>
<input type="button" onclick="obj1.Play();" value="Play"/>
<input type="button" onclick="obj1.stop();" value="Play"/>
<input type="button" onclick="alert(obj1.CurrentFrame());" value="CurrentFrame"/>
<input type="button" onclick="alert(obj1.totalframes);" value="totalframes"/>
<input type="button" onclick="obj1.GotoFrame(100);" value="GotoFrame"/></body> </html>
解决方案 »
- 想用jq实现标签的展开效果,没有办法做到单个标签单独展开
- 关于用jQuery获取指定URL的源代码的问题
- 页面上点击图片链接会弹出另一个页面悬浮在当前页上面 之后点击关闭后可以返回当前页面
- 为什么在select处添加onchange事件无效??
- 如何在把页面内容全部载入后运行一个函数
- 求少于100的两位小数的正则表达式
- 求javascript学习的好网站!
- e.options.add(new Option(a[i], a[i])
- ie5.0不支持这种写法吗?在现等!
- js里有没有类似vbscript里的chr()函数?
- table任意行的数据不能相同
- 高分求(csdn首页右下角的效果是怎样做的?)
<script type="text/javascript">
46 function callActionScript(value)
47 {
48 //根据id获取flash实例,在这里id是CallAsFromJs,可以从Embed
49 var flash = (navigator.appName.indexOf ("Microsoft") !=-1)?window["obj1"]:document["obj2"];
50 //调用ActionScript注册的回调方法
51 flash.callActionScript(value);
52 }
53</script>
initialize="init()"private function init(): void
{
ExternalInterface.addCallback("callActionScript", xxMethod);
}
private function xxMethod(position: String): void
{
....
}