Cancel (Filereference.cancel Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

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

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