Flash 8 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:flash.net.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.macromedia.com/NonExistentFile.pdf", "NonExistentFile.pdf");
Version 8
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00002217.html
Comments
No screen name said on Feb 2, 2006 at 2:03 AM : No screen name said on Apr 7, 2006 at 3:24 AM : No screen name said on Sep 11, 2006 at 10:23 AM : lmanca said on Nov 10, 2006 at 7:15 AM : No screen name said on Jan 29, 2007 at 3:03 PM : Dronecorp said on May 7, 2007 at 12:54 PM :