Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Mouse | |||
Object
|
+-Mouse
public class Mouse
extends Object
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, but you can hide it and implement a custom pointer that you create using a movie clip .
A Flash application can only monitor mouse events that occur within its focus. A Flash application cannot detect mouse events in another application.
Availability: ActionScript 1.0; Flash Player 5
Properties inherited from class Object
|
Event |
Description |
|---|---|
|
onMouseDown |
Notified when the mouse is pressed. |
|
onMouseMove |
Notified when the mouse moves. |
|
onMouseUp |
Notified when the mouse is released. |
|
onMouseWheel |
Notified when the user rolls the mouse wheel. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
addListener |
Registers an object to receive notifications of the |
|
|
hide |
Hides the pointer in a SWF file. |
|
|
removeListener |
Removes an object that was previously registered with |
|
|
show |
Displays the mouse pointer in a SWF file. |
Methods inherited from class Object addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toString, unwatch, valueOf, watch
Version 8
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00002427.html
Comments
BrandStyler said on Dec 7, 2005 at 6:06 PM :