开发者社区> 问答> 正文

火狐js调用Flex4无法执行?报错

在flex中注册了一个方法

ExternalInterface.addCallback("signServer", signServer);

当使用火狐浏览器执行js方法signServer时出现错误

Error: Error in Actionscript. Use a try/catch block to find error.

chrome则无问题。

同时导出发行版之后,chrome调用出现问题,报错

  1. Uncaught TypeError: Cannot call method 'signServer' of null

网上有说延时加载,在js的document.ready之后执行,也不可以

flash用的是最新的版本

展开
收起
爱吃鱼的程序员 2020-06-22 14:47:46 491 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    这所有的都是因为在本地运行被flash的安全机制限制所导致,放在web工程中就好了flex这东西,感觉快死了

    2020-06-22 14:48:05
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
JavaScript函数 立即下载
Delivering Javascript to World 立即下载
编程语言如何演化-以JS的private为例 立即下载