User Guide
FileReferenceList (flash.net.FileReferenceList) 587
Method summary
Methods inherited from class Object
addListener (FileReferenceList.addListener method)
public addListener(listener:Object) : Void
Registers an object to receive notification when a FileReferenceList event listener is invoked.
Availability: ActionScript 1.0; Flash Player 8
Parameters
listener:Object - An object that listens for a callback notification from the
FileReferenceList event listeners.
Example
The following example demonstrates the
addListener() method.
import flash.net.FileReferenceList;
var listener:Object = new Object();
listener.onCancel = function(fileRefList:FileReferenceList) {
trace("onCancel");
}
listener.onSelect = function(fileRefList:FileReferenceList) {
trace("onSelect: " + fileRefList.fileList.length);
}
Modifiers Signature Description
addListener(listener
:Object) : Void
Registers an object to receive notification when a
FileReferenceList event listener is invoked.
browse([typelist:Arr
ay]) : Boolean
Displays a file-browsing dialog box in which the user
can select one or more local files to upload.
removeListener(liste
ner:Object) :
Boolean
Removes an object from the list of objects that receive
event notification messages.
addProperty (Object.addProperty method), hasOwnProperty
(Object.hasOwnProperty method), isPropertyEnumerable
(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf
method), registerClass (Object.registerClass method), toString
(Object.toString method), unwatch (Object.unwatch method), valueOf
(Object.valueOf method), watch (Object.watch method)