AS3下载文件到桌面的代码
private var request:URLRequest; private var localRef:FileReference; protected function buttonClick():void { request = new URLRequest("soundbyte.mp3"); localRef = new FileReference(); try { // Prompt and downlod file localRef.download( request ); } catch (error:Error) { trace("Unable to download file."); } }