
Mouse.removeListener() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
622
|
ActionScript Language Reference
screen refresh from within an onMouseUp() listener; updateAfterEvent() has an effect only
when invoked either from a movie clip mouse or key event or a setInterval() callback.
See Also
Button.onRelease(), Mouse.addListener(), Mouse.onMouseDown(), Mouse.onMouseMove(),
MovieClip.onMouseUp()
Mouse.removeListener() Method
cancels event notices for the specified listener
Flash 6
Mouse.removeListener(listener)
Arguments
listener An object that was previously registered as a listener for Mouse.
Returns
A Boolean; true if listener was found and removed, false if listener was not registered as
an event listener for Mouse. The return value is useful for debugging code that removes
listeners.
Description
The removeListener() method stops listener from receiving Mouse event notifications. It
should only be used after
listener has been registered as an event listener via addListener().
The listener object is not deleted, but it can be removed and added repeatedly. Event
listeners should be removed when the task they perform is no longer required.
See Also
Mouse.addListener(), Mouse.onMouseDown(), Mouse.onMouseMove(), Mouse.onMouseUp();
Chapter 10
Mouse.show() Method
make the mouse pointer appear
Flash 5
Mouse.show()
Returns
Either 1 or 0, indicating ...