【问题标题】:SWFObject based Flash movie won't show in Internet Explorer 10基于 SWFObject 的 Flash 影片不会在 Internet Explorer 10 中显示
【发布时间】:2013-09-29 02:02:08
【问题描述】:

我正在使用 Roy Tanck 的 WP-Cumulus Tag Cloud 查看器。它是一个 SWF 文件,与 SWFObject.js 一起使用以显示旋转的标签球体。它在 Chrome 和 FireFox 中运行良好,但在 Internet Explorer 10 中,画布是空白的。如果我在画布上单击鼠标右键,我确实会看到指向 Roy Tanck 网站的归属链接,表明电影已加载,并且调试器的控制台选项卡中没有显示任何错误,但没有标记范围,只是一个空白的白色画布。我使用的是 SWFObject v2.2,我的 Flash 播放器版本是 11.8.800.175。我跟踪了为 SWF 创建标记 XML 的主要功能(如下所示),一切正常。不幸的是,我得到的只是电影的空白显示,并且控制台中没有错误。我确实查看了 flashvars 的值,它们与我在 Chrome 和 FireFox 中跟踪该方法时的值相同。谁能给我一些可能有助于解决此问题的方法?:

// Create the tag cloud using the given associative array where the Key is the
//  value to display in the tag cloud and the Value is the HREF for the link
//  to be associated with the display value.
function createTagCloud(aryDisplayStringsWithLinks, style)
{
    if (typeof aryDisplayStringsWithLinks == 'undefined')
        return;

    // Build tags XML partial for use by the Cumulus Tag Cloud.
    var tagCloudXML = "<tags>";

    var iCount = 0;

    for (var Key in aryDisplayStringsWithLinks)
    {
        tagCloudXML += createOneTagCloudXMLElement(Key, aryDisplayStringsWithLinks[Key], style);
        iCount++;
    } // for()

    tagCloudXML += "</tags>";

    // Must have at least two elements or the tag cloud won't make any sense.
    if (iCount < 2)
        return;

    var params =
    {
        wmode: "transparent"
    };

    var flashvars =
    {
        // TAGS HYPERLINKS ***MUST** HAVE THE STYLE ATTRIBUTE OR YOU WON'T SEE ANYTHING IN THE VIEWPORT! (and you
        //  will think it is broken when it is not).
        tagcloud: tagCloudXML,
        // tagcloud: '<tags><a href="http://google.com/" style="font-size:9pt;" >One</a><a href="http://microsoft.com/"  style="font-size:9pt;" >Two</a></tags>',

        mode: "tags",
        distr: "true",
        tcolor: "0x3366CC",
        hicolor: "0x0000bb"
    };

    swfobject.embedSWF(
        "/Content/flash/tagcloud.swf",
        "flashcontent",
        "470",
        "380",
        "9.0.0",
        "",
        flashvars
        );
} // function createTagCloud(aryDisplayStringsWithLins) {

【问题讨论】:

    标签: javascript flash internet-explorer swfobject


    【解决方案1】:

    您是否面临以下问题 操作系统:Windows 8 浏览器:Internet Explorer 10

    • 打开调试器 (F12)
    • 缓存(菜单栏)-> 选择[“始终从服务器刷新”]

    它现在可以工作了。

    当所有请求都不是200时存在问题 在没有上述调整的情况下进一步调试以找到修复

    找到此检查是否可以为您解决问题 Flash not working on Windows 8 / Internet explorer 10

    【讨论】:

    • 谢谢 我试过你的建议,但没有解决。请注意,正如我在帖子中所说,Flash 播放器确实可以运行。我可以看到白色的初始 Flash 画布,右键单击它会显示 Flash 上下文帮助菜单。但是没有电影放映,该区域仍然是空白的。我还尝试了您回复中链接文档中建议的元标记,但这也没有改变任何东西。
    猜你喜欢
    • 2020-08-02
    • 2017-01-30
    • 1970-01-01
    • 2012-10-25
    • 1970-01-01
    • 2015-04-26
    • 2011-02-11
    • 2023-04-03
    • 1970-01-01
    相关资源
    最近更新 更多