
Mouse.hide() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
617
See Also
Button.onPress(), Button.onRelease(), MovieClip.onMouseDown(), MovieClip.
onMouseMove(), MovieClip.onMouseUp(),
MovieClip._xmouse, MovieClip._ymouse,
updateAfterEvent()
Mouse.addListener() Method
register an object to receive onMouseDown(), onMouseMove(), and onMouseUp() events
Flash 6
Mouse.addListener(listener)
Arguments
listener An object with onMouseDown(), onMouseMove(), and/or onMouseUp()
methods defined.
Description
The addListener() method adds listener to the list of objects notified when Mouse’s
onMouseDown(), onMouseMove(), and onMouseUp() events occur. The
listener param-
eter is an object of any class that defines methods by the names onMouseDown,
onMouseMove, and/or onMouseUp; the methods are invoked when the corresponding
event occurs for Mouse. Instances of built-in classes, such as TextField or Button, can
respond to Mouse events. To stop a listener object from receiving events, use Mouse.
removeListener().
Multiple objects can respond independently to each Mouse event. When multiple listeners
are registered to Mouse, their methods are invoked in the order the listeners were added.
For general information on how listeners and callback functions work, see Chapter 10. For
sample Mouse listener code, see Mouse.onMouseDown( ...