1
在JavaScript中的onClick
侦听器中,我通过ExternalInterface
调用Flash方法来尝试呈现文件保存对话框。然而:是否可以通过ExternalInterface调用来允许FileReference.save()?
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中实现整个按钮。