本文介绍了Flex中的Google Chrome扩展程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google已经为Chrome添加了扩展API。现在可以使用HTML / CSS / JS编写扩展。我试图在HTML页面中嵌入SWF,并与此页面进行交流,但我得到了:
$ b

有没有办法允许SWF访问扩展HTML页面?他们在同一个域名。

如果有人可以帮忙,我将不胜感激。

解决方案

在SWF和扩展的HTML页面之间进行通信可能是不可能的。问题是在Chrome中,Flash插件由于其对资源访问的要求而不能被沙箱化。因此,即使它们位于同一个域中,SWF也不在扩展程序的HTML页面呈现的沙箱之外。我不确定这是否按照设计。您可能希望在中提交错误。


Google have added Extensions API for Chrome. Now it's possible to write extensions using HTML/CSS/JS. I was trying to embed SWF in html page and communicate with this page, but I got:

Is there way to allow SWF access extension HTML page? They are in same "domain".

I would appreciate it if someone could help.

解决方案

It may not be possible to communicate between SWF and the extension's HTML page. The problem is that in Chrome the Flash plugin cannot be sandboxed due to its requirements for resource access. So even though they are in the same domain, the SWF is outside of the sandbox that the extension's HTML page renders in. Hence the error. I'm not sure if this is as designed. You may want to file a bug in the Chromium issue tracker.

这篇关于Flex中的Google Chrome扩展程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 11:37
查看更多