Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > FileReference (flash.net.FileReference) > onIOError (FileReference.onIOError event listener) | |||
onIOError = function(fileRef:FileReference) {}
Invoked when an input/output error occurs.
This listener is invoked when the upload or download fails for any of the following reasons:
url parameter in upload() contains an invalid protocol. Valid protocols are HTTP and HTTPS.Important: Only Flash applications that are running in a browser -- that is, using the browser plug-in or ActiveX control -- can provide a dialog to prompt the user to enter a user name and password for authentication, and then only for downloads. For uploads that use the plug-in or ActiveX control, or that upload and download using either the standalone or external players, the file transfer fails.
Availability: ActionScript 1.0; Flash Player 8
fileRef:FileReference - The FileReference object that initiated the operation.
The following example traces a message when the onIOError event is triggered. For simplicity, none of the other event listeners are included in this example.
import flash.net.FileReference;
var listener:Object = new Object();
listener.onIOError = function(file:FileReference):Void {
trace("onIOError");
}
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.download("http://www.adobe.com/NonExistentFile.pdf", "NonExistentFile.pdf");
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001669.html