我有一个swf:Adjusting__Age.swf
。如果我运行它的语言环境,它会起作用:
file:///C:/xampp/htdocs/test/Adjusting__Age.html
但如果我在网上或甚至在我的本地主机上晒它,它就不会出现:
http://localhost/test/Adjusting_Age.html
这是我的代码:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="512" height="384" id="training-video" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="videos/Adjusting__Age.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="videos/Adjusting_Age.swf" quality="high" bgcolor="#ffffff" width="512" height="384" name="training-video" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
任何想法如何使这项工作?
感谢
答案 0 :(得分:1)
您应该检查IIS是否允许下载swf文件 - 如果不是,则需要添加正确的MIME类型。
答案 1 :(得分:-1)
建议:1 首先尝试将您的Adjusting_ Age.swf移到视频目录之外并手动检查。这样调整 _Age.swf和Adjusting__Age.html都在同一目录中(在本例中为:test)。所以你的代码应该是这样的。
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="512" height="384" id="training-video" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Adjusting__Age.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="Adjusting__Age.swf" quality="high" bgcolor="#ffffff" width="512" height="384" name="training-video" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
或者因为这个文件名错误。你的embed src语句显示的是Adjusting_Age.swf而不是Adjusting__Age.swf。
您的评论代码。试试这个。
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="author" content="Administrator">
<meta name="description" content="">
<meta name="keywords" content="testing">
</head>
<body bgcolor="#FFFFFF">
<center>
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="560" height="410"
>
<param name="movie" value="Adjusting__Age.swf">
<param name="bgcolor" value="#FFFFFF">
<param name="quality" value="high">
<param name="allowscriptaccess" value="samedomain">
<embed
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
width="560" height="410"
src="Adjusting__Age.swf"
bgcolor="#FFFFFF"
quality="high"
allowscriptaccess="samedomain"
>
<noembed>
</noembed>
</embed>
</object>
</center>
</body>
</html>