0

我使用 Google 的 SWIFFY 将我的 SWF 转换为 HTML5。这在 FF 和其他浏览器上运行良好,但是在 IE9 中出现错误。奇怪,因为谷歌发布页面说它支持 IE9。

有没有办法解决这个问题?

我正在考虑回退到仅适用于 IE 的 SWF Flash Player。也不知道如何做到这一点。如果有人可以帮助我解决这个问题,那就太好了。非常感激!!!

这是 HTML5 文件中的代码(所有其他 SWIFFY HTML 文件的标准):

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Swiffy output</title>
    <script src="https://www.gstatic.com/swiffy/v5.3/runtime.js"></script>
    <script>
          swiffyobject = {"internedStrings": [
           "::::::::","::::::6Y:","::::::7E:","::::::9S:","RrRrRr::","::::::5H:","::::::8B:",
           "::::::1Q:","::::::8L:","::::::2N:","::::::8V:","::::::4K:","DdDdDd::",
           "5C5c5C5c5C5c::","::::::0J................................    
     </script>
     <style>html, body {width: 100%; height: 100%}</style>
  </head>
  <body style="margin: 0; overflow: hidden">
    <div id="swiffycontainer" style="width: 711px; height: 661px">
    </div>
    <script>

      var stage = new swiffy.Stage(document.getElementById('swiffycontainer'),
                                   swiffyobject);

      stage.start();
    </script>
  </body>
</html>
4

1 回答 1

1

Google 的文档目前实际上声称仅支持 IE10+。

要使用 Flash 后备,我只需使用 IE 条件注释。<!--[if gt IE 9]><!-->如果浏览器是 IE10+ ( ... ),则仅包含 swiffy javascript <!--<![endif]-->,并回退到通过将 HTML 包装在<!--[if lte IE 9]>...中直接嵌入 SWF 文件<![endif]-->

于 2014-09-02T23:09:54.510 回答