在 JavaScript 的侦听器中,我通过尝试显示文件保存对话框onClick
调用 Flash 方法。ExternalInterface
然而:
Error: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press.
at flash.net::FileReference/_save()
at flash.net::FileReference/save()
at <my code>
at Function/http://adobe.com/AS3/2006/builtin::apply()
at flash.external::ExternalInterface$/_callIn()
at Function/<anonymous>()
有什么办法可以让它工作吗?也许我可以设置一个安全策略,或者让用户批准?我不想在 Flash 中实现整个按钮。