//获取上传文件名System.useCodePage=true;var uploadURL:URLRequest;var file:FileReference;file = new FileReference();file.addEventListener(Event.SELECT, selectHandler);file.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);file.addEventListener(ProgressEvent.PROGRESS, progressHandler);file.addEventListener(Event.COMPLETE, completeHandler);//file.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,dataHandler);function selectHandler(event:Event):void {uploadTxt.text = file.name;}function ioErrorHandler(event:IOErrorEvent):void {uploadTxt.text ="上传失败...";}function progressHandler(event:ProgressEvent):void {var file:FileReference = FileReference(event.target);uploadTxt.text ="正在上传..."+int((event.bytesLoaded/event.bytesTotal)*100)+"%";}function completeHandler(event:Ev……