网页中播放FLASH完毕时回到具体的某一帧
我的代码出现就是一块黑色,就是回到第一帧!~怎么能让它自动播放完毕后能回答具体的某一帧,不要再FLASH上坐操作,能用JS控制吗,JS代码贴出来!~
<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
with(navigator){
var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
if (!isIE || !isWin){
var flashVer = -1;
if (plugins && plugins.length > 0){
var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
if (desc == "") flashVer = -1;
else{
var descArr = desc.split(" ");
var tempArrMajor = descArr[2].split(".");
var verMajor = tempArrMajor[0];
var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
flashVer = parseFloat(verMajor + "." + verMinor);
}
}
// WebTV has Flash Player 4 or lower -- too low for video
else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
var verArr = reqVerStr.split(",");
var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
if (flashVer < reqVer){
if (confirm(msg))
window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
}
}
}
}
</script>
object控件代码
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
height="149" width="207">
<param name="movie" value="http://www.ask123.net/player/vcastr22.swf?IsAutoPlay=1&vcastr_file=http://XXX.flv">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=8%E6%9C%882%E6%97%A5%7E1&autoPlay=true&autoRewind=false" />
<embed src="XXX.flv" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=8%E6%9C%882%E6%97%A5%7E1&autoPlay=true&autoRewind=false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="FLVPlayer" width="207" height="149" OLDSRC="XXX.flv" OLDID="708" RELATED="1">
</embed>
</object>