-1
我想上傳文件。使用
flash.filesystem.File
但是,應用程序保持崩潰
Adobe空中手機上傳文件
private function uploadFile(f:File):void
{
f.addEventListener(ProgressEvent.PROGRESS, uploadProgress);
f.addEventListener(Event.COMPLETE, callBackFunc);
f.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA , callBackFunc);
f.addEventListener(SecurityErrorEvent.SECURITY_ERROR, uploadError);
f.addEventListener(HTTPStatusEvent.HTTP_STATUS, uploadError);
f.addEventListener(IOErrorEvent.IO_ERROR, uploadError);
f.upload(urlRequest,"Filedata",false);
}
沒有說不是,也沒有例外,在空氣中simolator的應用程序崩潰,以及在Android設備 – Shvilam
然後,我們需要參考M因爲你在這裏所做的只是顯示事件正在聽... –
Josh Janusch嘗試任何文件與Adobe AIR 3.9它會崩潰 – Shvilam