03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

emoveListener (AsBroadcaster.removeListener<br />

method)<br />

public removeListener(listenerObj:Object) : Boolean<br />

Removes an object from the list of objects that receive event notification messages.<br />

You can call this method only from an object that has been initialized by using the<br />

AsBroadcaster.initialize() method.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 6<br />

Parameters<br />

listenerObj:Object - The name of a listener object that is registered to receive event<br />

notification from the broadcasting object.<br />

Returns<br />

Boolean - Returns true if the listener object is removed, <strong>and</strong> false otherwise.<br />

Example<br />

The following example shows how to remove a listener from the list of registered listeners.<br />

The following code works if it is added to the first full example in the Examples section of the<br />

AsBroadcaster.initialize() entry. The trace() statements are included only to verify<br />

that the number of registered listeners is reduced by one after calling the removeListener()<br />

method.<br />

trace(someObject._listeners.length); // Output: 2<br />

someObject.removeListener(myListener1);<br />

trace(someObject._listeners.length); // Output: 1<br />

See also<br />

addListener (AsBroadcaster.addListener method), initialize<br />

(AsBroadcaster.initialize method)<br />

BevelFilter (flash.filters.BevelFilter)<br />

Object<br />

|<br />

+-BitmapFilter<br />

|<br />

+-flash.filters.BevelFilter<br />

public class BevelFilter<br />

extends BitmapFilter<br />

278 <strong>ActionScript</strong> classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!