难道ExternalInterface的工作文件:协议? [英] Does ExternalInterface work on the file: protocol?

查看:199
本文介绍了难道ExternalInterface的工作文件:协议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以证实,ExternalInterface的工程对文件:<?/ code>的协议,或者点一些文件是说,它不会

Can anyone confirm that ExternalInterface works on the file: protocol, or point to some docs that say that it will not?

推荐答案

它的开始看起来像这样将无法正常工作。<一个href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000350.html#wp123020">this页面说:

It's starting to look like this will not work.. this page says:

脚本中的任一方向   本地HTML文件和本地SWF   文件 - 例如,使用   ExternalInterface类 - 要求   无论是HTML文件和SWF文件   参与在本地信任   沙箱中。这是因为当地   对于浏览器的安全模型的区别   与Flash Player本地安全   模型。

Scripting in either direction between local HTML files and local SWF files--for example, using the ExternalInterface class--requires that both the HTML file and SWF file involved be in the local-trusted sandbox. This is because the local security models for browsers differ from the Flash Player local security model.

这是怎么说的受信任的本地沙箱:

And this is what it says about the local-trusted sandbox:

受信任的本地沙箱 - 本地的SWF   注册为受信任的文件   (由用户或安装程序)   被放置在受信任的本地   沙箱中。系统管理员和   用户也有能力   重新分配(移动)一个本地的SWF文件或   从受信任的本地沙箱为主   对安全性的考虑(见   管理用户控制和用户   控制)。被分配的SWF文件   到受信任的本地沙箱能   与任何其他SWF文件交互,   可以从任何地方加载数据(远程或   本地)。

The local-trusted sandbox--Local SWF files that are registered as trusted (by users or by installer programs) are placed in the local-trusted sandbox. System administrators and users also have the ability to reassign (move) a local SWF file to or from the local-trusted sandbox based on security considerations (see Administrative user controls and User controls). SWF files that are assigned to the local-trusted sandbox can interact with any other SWF files and can load data from anywhere (remote or local).

所以,无论是安装程序或用户将不得不把SWF到一个受信任的本地沙箱AFAICT ..

So either a installer or user would have to put the swf in to a local-trusted-sandbox afaict..

这篇关于难道ExternalInterface的工作文件:协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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