如何使用 JS 控制 flash 从指定位置进播放.
我在网上查到的是 使用 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>
...全文
相关推荐
JS 调用Flash播放mp3
JS 调用Flash播放mp3 提供JS调用接口 可控制停止、更换
HTML5 audio标签使用js进行播放控制实例
主要介绍了HTML5 audio标签使用js进行播放控制实例,本文直接给出代码实例,演示了获取播放时间、播放、暂停、静音等控制方法,需要的朋友可以参考下
vue使用video.js进行视频播放功能
video.js是一个拥有h5背景的网络视频播放器,同时支持h5以及Flash视频播放,这篇文章主要介绍了vue中使用video.js进行视频播放,需要的朋友可以参考下
flv播放器,源码,flash,javascript, js
很好用的flv播放器,好看,实用,flv播放器,源码,flash,javascript, js
使用flash播放mp4视频
使用flash播放视频,使用flash播放视频,使用flash播放视频,使用flash播放视频,


