Mouse class
Availability
Flash Player 5.
Description
The Mouse class is a top-level class whose properties and methods you can access without using a
constructor. You can use the methods of the Mouse class to hide and show the mouse pointer
(cursor) in the SWF file. The mouse pointer is visible by default.
Method summary for the Mouse class
Method
Mouse.addListener()
Mouse.hide()
Mouse.removeListener()
Mouse.show()
Listener summary for the Mouse class
Method
Mouse.onMouseDown
Mouse.onMouseMove
Mouse.onMouseUp
Mouse.onMouseWheel
Mouse.addListener()
Availability
Flash Player 6.
Usage
Mouse.addListener (newListener:Object)
Parameters
newListener
Returns
Nothing.
362
Chapter 6: ActionScript Core Classes
Description
Registers an object to receive
onMouseWheel
Hides the mouse pointer in the SWF file.
Removes an object that was registered with
Displays the mouse pointer in the SWF file.
Description
Notified when the mouse button is pressed down.
Notified when the mouse is moved.
Notified when the mouse button is released.
Notified when the user rolls the mouse wheel.
An object.
ActionScript Core Classes
onMouseDown
, and
notification.
onMouseUp
CHAPTER 6
,
,
onMouseMove
.
addListener()
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?