I have a flash object interacting with a javascript function. The interaction works fine in every browser except in IE (all versions) I have tried with swfobject and with classic embeding. AllowScriptAccess is set to "always". Is there any cause for this flaw ? Thanks
我有一个flash对象与javascript函数交互。除了在IE(所有版本)中我尝试使用swfobject和经典嵌入之外,每个浏览器中的交互都很好。 AllowScriptAccess设置为“always”。这个漏洞有什么原因吗?谢谢
2 个解决方案
#1
If you're using ExternalInterface, the problem may be related to the way you're attempting to reference the object in JavaScript. Take a look at my answer to this question -- it might not be exactly the same issue, but my answer provides an end-to-end example of ExternalInterface that's been tested on IE, too, so you might want to compare it to your own to see whether anything's missing or out of place.
如果您使用的是ExternalInterface,则问题可能与您尝试在JavaScript中引用对象的方式有关。看看我对这个问题的回答 - 它可能不是完全相同的问题,但是我的回答提供了一个在IE上进行过测试的EndInterface的端到端示例,所以你可能想要将它与你的自己看看是否有任何遗漏或不合适的地方。
If that doesn't help, though, try posting some code, so we can have a look at what's going on and maybe diagnose the problem more specifically.
但是,如果这没有帮助,请尝试发布一些代码,这样我们就可以了解正在发生的事情,并可能更具体地诊断出问题。
#2
If you are running the test from a file instead of testing it on a webserver it might be because security settings.
如果从文件运行测试而不是在Web服务器上测试它可能是因为安全设置。
#1
If you're using ExternalInterface, the problem may be related to the way you're attempting to reference the object in JavaScript. Take a look at my answer to this question -- it might not be exactly the same issue, but my answer provides an end-to-end example of ExternalInterface that's been tested on IE, too, so you might want to compare it to your own to see whether anything's missing or out of place.
如果您使用的是ExternalInterface,则问题可能与您尝试在JavaScript中引用对象的方式有关。看看我对这个问题的回答 - 它可能不是完全相同的问题,但是我的回答提供了一个在IE上进行过测试的EndInterface的端到端示例,所以你可能想要将它与你的自己看看是否有任何遗漏或不合适的地方。
If that doesn't help, though, try posting some code, so we can have a look at what's going on and maybe diagnose the problem more specifically.
但是,如果这没有帮助,请尝试发布一些代码,这样我们就可以了解正在发生的事情,并可能更具体地诊断出问题。
#2
If you are running the test from a file instead of testing it on a webserver it might be because security settings.
如果从文件运行测试而不是在Web服务器上测试它可能是因为安全设置。