Addlistener (Filereferencelist.addlistener Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Method summary
Modifiers
Signature
addListener(listener
:Object) : Void
browse([typelist:Arr
ay]) : Boolean
removeListener(liste
ner:Object) :
Boolean
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),

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
- An object that listens for a callback notification from the
listener:Object
FileReferenceList event listeners.
Example
The following example demonstrates the
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);
}
Description
Registers an object to receive notification when a
FileReferenceList event listener is invoked.
Displays a file-browsing dialog box in which the user
can select one or more local files to upload.
Removes an object from the list of objects that receive
event notification messages.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
addListener()
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
method.
FileReferenceList (flash.net.FileReferenceList)
valueOf
587

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?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF