User Guide

594 ActionScript classes
Parameters
listener:Object - An object that listens for a callback notification from the
FileReferenceList event listeners.
Returns
Boolean - Returns true if the object is removed. Otherwise, this method returns false.
Example
The following example demonstrates the
removeListener method.
import flash.net.FileReferenceList;
var listener:Object = new Object();
listener.onCancel = function(fileRefList:FileReferenceList) {
trace("onCancel");
trace(fileRefList.removeListener(this)); // true
}
listener.onSelect = function(fileRefList:FileReferenceList) {
trace("onSelect: " + fileRefList.fileList.length);
}
var fileRef:FileReferenceList = new FileReferenceList();
fileRef.addListener(listener);
fileRef.browse();
Function
Object
|
+-Function
public dynamic class Function
extends Object
Both user-defined and built-in functions in ActionScript are represented by Function objects,
which are instances of the Function class.
Availability: ActionScript 1.0; Flash Player 6