Onioerror (Filereference.onioerror Event Listener) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

trace("onIOError: " + file.name);
}
listener.onSecurityError = function(file:FileReference,
errorString:String):Void {
trace("onSecurityError: " + file.name + " errorString: " + errorString);
}
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.browse();

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:
An input/output error occurs while the player is reading, writing, or transmitting the file.
The SWF file tries to upload a file to a server that requires authentication, such as a user
name and password. During upload, Flash Player does not provide a means for users to
enter passwords. If a SWF file tries to upload a file to a server that requires authentication,
the upload fails.
The SWF file tries to download a file from a server that requires authentication, in the
stand-alone or external player. During download, the stand-alone and external players do
not provide a means for users to enter passwords. If a SWF file in these players tries to
download a file from a server that requires authentication, the download fails. File
download can succeed only in the ActiveX control and browser plug-in players.
The value passed to the
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
Parameters
fileRef:flash.net.FileReference
parameter in
url
upload()
- The FileReference object that initiated the operation.
contains an invalid protocol. Valid
FileReference (flash.net.FileReference)
573

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF