0
目前的工作流程如下:帶有鼠標點擊權限的Flash異步調用?
user clicks a button
sends a Loader to see if the user has permission
if the user has permission
uploads a file
不幸的是,這給:
SecurityError: 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.
看來,作爲一項安全功能,Flash 10的禁止使用某些功能(如上傳一個文件),除非它在鼠標點擊或按鈕按下之前。但是,由於我第一次加載請求權限,它不再看到MouseEvent事件(推測在堆棧中),並因此引發SecurityError。
任何解決方案?
有意義。不幸的是,API不報告任何問題 - 如果您沒有權限,它不會失敗,只是做它應該做的一個子集。 – Timmy 2009-11-19 23:14:50
不知道你的API,我只能說你必須重新設計它。閃存10添加了這個不幸的「功能」,它從每個人都帶走了很多可能性。 – 2009-11-19 23:28:34