ExternalInterface的JavaScript的不工作在Internet Explorer 11 [英] externalInterface javascript not working in internet explorer 11

查看:310
本文介绍了ExternalInterface的JavaScript的不工作在Internet Explorer 11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站,我使用ExternalInterface的用于之间我的javascript code和我的flash游戏的沟通。

In my website I use externalInterface for communication between my javascript code and my flash games.

这伟大工程的IE 10,但不能在IE浏览器11工作。

this works great on IE 10 but does not work on IE 11.

样品code:

 if (ie) {
            console.log('sending the graphs data');
            console.log("result_graph_object: " +     document.getElementById("result_graph_object"));
            console.log("is function: " + (typeof document.getElementById("result_graph_object").setGraphPath == 'function'));
            window.document.getElementById("result_graph_object").setGraphPath(handpath);  
        }

在IE10控制台输出:

console output in IE10:

sending the graphs data 
result_graph_object: [object HTMLObjectElement]  
is function: true 

在IE11控制台输出:

console output in IE11:

sending the graphs data 
result_graph_object: [object HTMLObjectElement]  
is function: false

由于某种原因,IE11不承认flash对象的方法(是功能:假的IE11)。

for some reason IE11 does not recognize the flash object method ("is function: false" on IE11).

没有任何人有任何想法,为什么出现这种情况? 谢谢

does anyone have any idea why this happens? thanks

推荐答案

要的人,这可能涉及到,

To whom this may concern,

IE浏览器11件作品与Flash嵌入元素,就像谷歌Chrome, 而不是像previous IE浏览器版本的Flash对象元素...

IE 11 works with flash embed elements just like google chrome, and not with flash object elements like in previous IE versions...

这是解决我的问题。

这篇关于ExternalInterface的JavaScript的不工作在Internet Explorer 11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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