2010年11月25日 星期四

flash 10 上傳圖檔有問題?

在上傳圖檔時出現了這個訊息


*** Security Sandbox Violation ***
連線至 http://192.168.1.38/tests/image_encode_upload/deploy/image.php?path=output/ 已終止 - http://192.168.1.38/tests/image_encode_upload/deploy/savetoServer.swf 不允許
SecurityError: Error #2176: 特定動作 (像是顯示彈出式視窗的動作) 只能透過使用者互動叫用,例如滑鼠按下或按下按鈕等等。
at flash.net::URLStream/load()
at flash.net::URLLoader/load()
at savetoServer/captureImage()[D:\design\project4\pnoView\v8.4\savetoServer.as:341]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at gs::TweenLite/render()[D:\design\project4\pnoView\v8.4\classes\gs\TweenLite.as:340]
at gs::TweenLite$/executeAll()

原來像 POST 的動作只能由使用者觸發

沒有留言: