1

问题是什么?
Internet Explorer 9(本地和网络)无法在随机刷新时加载我的 Flash 横幅。例如,我刚刚完全重新加载了页面 19 次,第 19 次加载了横幅。如果我使用强制刷新 (CTRL+F5) 或完全清除缓存(甚至手动转储 Internet 临时文件目录),则无法解决问题。这让我相信这不是缓存问题。Firefox 和 Chrome 总是完美地加载它,但我需要它在 IE 中工作,因为该网站主要面向该受众。

我如何导出这个 Flash 文件并嵌入它?
我正在使用使用 Flash CS5 的 Flash 横幅,将 .swf 导出为 Flash Player 8 / Actionscript 2.0。

我已经像 Dreamweaver CS5 默认那样嵌入了 Flash,但如果 Flash 播放器不存在或早于 Flash Player 6,则添加了一个备用(图像)。这是嵌入代码:

<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="778" height="313" title="title">
    <param name="movie" value="file.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <param name="swfversion" value="6.0.65.0" />
    <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
    <param name="expressinstall" value="Scripts/expressInstall.swf" />
    <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="file.swf" width="778" height="313" title="title">
      <!--<![endif]-->
      <param name="quality" value="high" />
      <param name="wmode" value="transparent" />
      <param name="swfversion" value="6.0.65.0" />
      <param name="expressinstall" value="Scripts/expressInstall.swf" />
      <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
      <div class="alternative_logo">&nbsp;</div>
      <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
  </object>

如果有人能帮我解决这个问题,我将非常感激。感谢您的时间。

4

1 回答 1

1

您应该考虑使用swfobject嵌入 SWF。它可以很好地处理各种浏览器怪癖。

取自官方文档的示例:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <title>SWFObject - step 3</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="swfobject.js"></script>

    <script type="text/javascript">
    swfobject.registerObject("myId", "9.0.115", "expressInstall.swf");
    </script>

  </head>
  <body>
    <div>

      <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420">

        <param name="movie" value="myContent.swf" />
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="myContent.swf" width="780" height="420">
        <!--<![endif]-->
          <p>Alternative content</p>
        <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>
  </body>
</html>
于 2012-04-24T21:16:46.493 回答