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中實現整個按鈕。