Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 嵌入的.SWF文件在IE中会变得疯狂,但在其他浏览器中不会_Actionscript 3_Flash_Internet Explorer_Sharepoint - Fatal编程技术网

Actionscript 3 嵌入的.SWF文件在IE中会变得疯狂,但在其他浏览器中不会

Actionscript 3 嵌入的.SWF文件在IE中会变得疯狂,但在其他浏览器中不会,actionscript-3,flash,internet-explorer,sharepoint,Actionscript 3,Flash,Internet Explorer,Sharepoint,我正在构建一个带有嵌入式.swf文件的SharePoint页面,该文件能够检测当前URL以激活和显示内容。除了IE之外,我测试过的所有浏览器都运行得很顺利。当我在IE中打开SharePoint页面时,.swf只是不停地复制框架。它完全忽略了我的脚本,我找不到任何可以对此负责的东西。URL检测脚本是下一个脚本: import flash.external.ExternalInterface; if (ExternalInterface.available) { var url:Strin

我正在构建一个带有嵌入式.swf文件的SharePoint页面,该文件能够检测当前URL以激活和显示内容。除了IE之外,我测试过的所有浏览器都运行得很顺利。当我在IE中打开SharePoint页面时,.swf只是不停地复制框架。它完全忽略了我的脚本,我找不到任何可以对此负责的东西。URL检测脚本是下一个脚本:

import flash.external.ExternalInterface;

if (ExternalInterface.available)
{
    var url:String = ExternalInterface.call("window.location.href.toString");
    if (url == "https://example1.aspx"){
        gotoAndStop(1)
    }
    else if (url == "https://example2.aspx"){
        gotoAndStop(2)
    }
    else if (url == "https://example3.aspx"){
        gotoAndStop(3)
    }
    else if (url == "https://example4.aspx"){
        gotoAndStop(4)
    }
}
每一个脚本都只是时间线内的按钮配置和停止。所以我很确定问题不在那里


有人有主意吗?

给我们看一下gotoAndStop的代码。到目前为止,您显示的内容无法用于诊断问题。可能是Flash Player版本问题,swf针对的是一个不可用的版本。Robbert,“我的按钮”的代码是gotoAndStop的简单事件侦听器,以及一些navigateToURL。停止就是停止;一切都很简单,这就是为什么我对这种情况如此困惑的原因。DX