且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

尝试从 JS 调用 ActionScript 函数时出现安全错误

更新时间:2021-09-01 00:32:03

如果你在线或本地测试,如果你有参数 allowscriptaccess="true" 就像 dome 说的那样,它应该可以工作.如果您使用 file://协议进行测试,您需要在 Flash Player 安全选项中允许您的驱动器.

if you test online or localhost, it should work if you had the param allowscriptaccess="true" like dome said. If you are testing with file:// protocol you need to allow your drive in the flash player security options.