Removelistener (Filereference.removelistener Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Parameters
fileRef:flash.net.FileReference
Example
The following example traces a message within the
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void {
trace("onSelect: " + file.name);
if(!file.upload("http://www.yourdomain.com/
yourUploadHandlerScript.cfm")) {
trace("Upload dialog failed to open.");
}
}
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.browse();
removeListener (FileReference.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
Parameters
- An object that listens for a callback notification from the FileReference
listener:Object
event listeners.
Returns
- Returns
Boolean
true
removed. Otherwise, this method returns
578
ActionScript classes
- The FileReference object that initiated the operation.
if the object specified in the
false
event listener.
onSelect
parameter was successfully
listener
.

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