作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我正在尝试从 JavaScript 调用 FileReference 类的 browse() 方法(用户单击使用 ExternalInterface 的文本以调用 Flash 中的方法)。
不幸的是,我收到一条错误消息,告诉我这必须是用户的直接操作(例如单击按钮)。我通过 Google 进行了搜索,发现这是 Flash 10 中的一项新安全功能。
我能找到的唯一解决方案是在文本上放置一个 Flash 按钮或隐藏一个 flash 按钮,这将调用 browse() 方法。
我希望浏览器只显示 JavaScript,所有 Flash 代码只从 JavaScript 调用。
有什么办法可以做到这一点吗?
非常感谢,鲁迪
最佳答案
The only solutions I could find was to put a Flash button or to have a hidden flash button over the text, that will call the browse() method.
那些是唯一的解决方案。
关于javascript - 如何从 JavaScript 调用 FileReference.browse()?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2908434/
我是一名优秀的程序员,十分优秀!