首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Flash >

flash js与as通讯

2013-07-16 
flash js与as通信flash中js与as通信需要注意的问题。1.as2的调用方法为ExternalInterface.addCallback(cal

flash js与as通信
flash中js与as通信需要注意的问题。
1.as2的调用方法为ExternalInterface.addCallback("callAs",null,onShow);
as3的调用方法为ExternalInterface.addCallback("callAs",onShow);
2.如果发现仍不能调用,沙箱设置设置安全路径,然后再访问。

沙箱安全路径设置方法:
1)找到windows安装目录下system32\Macromed\Flash\FlashPlayerTrust,
2)在"FlashPlayerTrust"文件夹下新建一txt文件,内容如下:
c:\
d:\
e:\
f:\

3.如果还报“对象不支持此属性和方法”则要确定flash是否完全加载才调用js代码的。

热点排行