ExternalInterface.addCallback在当地环境失败 [英] ExternalInterface.addCallback fails in local environment

查看:172
本文介绍了ExternalInterface.addCallback在当地环境失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得<一个href="http://stackoverflow.com/questions/4698506/actionscripts-externalinterface-addcallback-only-working-locally-not-in-product">this问题会回答我的问题,但我已经申请了以下修正:

I thought this question would answer my question, but I have applied the following fixes:

。如

Security.allowDomain("*");
Security.allowInsecureDomain("*");

html的

.html

param name="allowScriptAccess" value="always" />

的.js

params.allowscriptaccess = "always";

和我仍然看到 ExternalInterface.addCallback 方法失败本地。 它的工作原理在Web服务器上,或在开发文件夹。但是,并非在任意本地文件夹。

And I am still seeing the ExternalInterface.addCallback method fail locally. It works on a web server, or in the dev folder. But not in an arbitrary local folder.

推荐答案

添加为受信任的位置,你的SWF / HTML的文件夹。右键单击Flash播放器>全局设置>高级>受信任位置。

Add as a trusted location the folder where your swf/html reside. Right click the Flash Player>Global Settings>Advanced>Trusted Locations.

这篇关于ExternalInterface.addCallback在当地环境失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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