Returns
- Returns
Boolean
true
displayed. Returns
false
in progress, or if you use the
extension string in any element in the array.
Example
The following example displays a dialog box in which the user can select an image file to be
uploaded.
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void {
trace("Opened " + file.name);
}
listener.onCancel = function(file:FileReference):Void {
trace("User cancelled");
}
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.browse();
See also
onSelect (FileReferenceList.onSelect event listener)
(FileReference.onCancel event listener)
,
method)
browse (FileReferenceList.browse method)
cancel (FileReference.cancel method)
public cancel() : Void
Cancels any ongoing upload or download operation on this FileReference object.
Availability: ActionScript 1.0; Flash Player 8
if the parameters are valid and the file-browsing dialog box is
if the dialog box is not displayed, if another browse session is already
parameter but fail to provide a description or
typelist
,
onCancel
,
download (FileReference.download
FileReference (flash.net.FileReference)
563
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?