gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 06:46:58 25 4
gpt4 key购买 nike

任何人都可以确认 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com