外部接口调用闪光灯不工作在IE9 [英] External Interface Calls To Flash Not Working in IE9

查看:152
本文介绍了外部接口调用闪光灯不工作在IE9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在网页中嵌入了一个Flash游戏(使用SWFObject v2.2),页面上有一些按照以下方式调用Flash的链接:

  window.document [ flashObjectId] flashMethod(); 

这对于我们尝试过的所有浏览器都有效,包括IE7和8,但是在IE9上,以下错误:SCRIPT438:对象不支持此属性或方法。

它在兼容模式下工作,所以我试图添加一个元标记告诉IE9使用兼容模式默认情况下,但是,这是行不通的,因为我们的游戏运行在Facebook内的IFrame。

我已经试过在Javascript中引用flash对象的所有方法,但是我总是在IE9中得到同样的错误信息。如果任何人有任何信息,可以帮助我得到这个在IE9的工作,我真的很感激它!

解决方案

这可能是您的问题和解决方案的原因也在这里提供:

http://msdn.microsoft.com/en-us/library/gg622942%28v=VS.85%29.aspx


We have a flash game embedded in a web page (using SWFObject v2.2) and there are some links on the page that call into the flash in the following manner:

window.document["flashObjectId"].flashMethod();

This has worked great on all browsers we have tried including IE7 and 8, however on IE9 it generates the following error: "SCRIPT438: Object doesn't support this property or method".

It does work in compatibility mode so I tried adding a meta tag to tell IE9 to use compatibility mode by default, however that didn't work because our game runs in an IFrame within Facebook.

I have tried referencing the flash object every way I could think of in the Javascript but I always get that same error message in IE9. If anyone has any information that could help me get this to work in IE9 I would really appreciate it!

解决方案

This is probably the reason for your problem and solution is also provided here:

http://msdn.microsoft.com/en-us/library/gg622942%28v=VS.85%29.aspx

这篇关于外部接口调用闪光灯不工作在IE9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆