ActionScript 2.0 Language Reference |
|
|
|
| ActionScript classes > FileReferenceList (flash.net.FileReferenceList) > removeListener (FileReferenceList.removeListener method) | |||
public removeListener(listener:Object) : Boolean
Removes an object from the list of objects that receive event notification messages.
Availability: ActionScript 1.0; Flash Player 8
listener:Object - An object that listens for a callback notification from the FileReferenceList event listeners.
Boolean - Returns true if the object is removed. Otherwise, this method returns false.
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();
|
|
|
|