actionscript-3 - ExternalInterface 是否适用于文件 : protocol?

标签 actionscript-3 flash actionscript file-uri

任何人都可以确认 ExternalInterface 在 file: 上工作吗?协议(protocol),或者指向一些说它不会的文档?

最佳答案

它开始看起来好像不起作用.. this page说:

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.



这就是它对本地可信沙箱的描述:

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 放入本地受信任的沙箱中。

关于actionscript-3 - ExternalInterface 是否适用于文件 : protocol?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5241561/

相关文章:

actionscript-3 - 在 AS3 中,当值大于最大 int 时,getTimer() 将返回什么

actionscript-3 - 访问 protected 或私有(private)属性(property)

flash - Flash 10开发需要什么?

flash - 使用 draw 方法时如何旋转 BitmapData。宽度高度边界裁剪/裁剪问题

arrays - ActionScript 3 : Identifying an array element to delete when the elements are objects/class instances

javascript - JSFL spritesheetexporter BUG

flash - 如何从 actionscript 发出同步 URL 请求?

用于网络摄像头访问的 Java 与 Flash

flash - MP4 视频略微异步 - 但仅在初始播放时

xml - ActionScript 3 是否需要 XML 的错误事件处理程序?