Name
Mouse
Object — hide or reveal the mouse pointer
Availability
Flash 5
Synopsis
Mouse.methodName
Methods
- hide
( )
Hides the mouse pointer.
- show
( )
Enables the mouse pointer.
Description
The
Mouse
object has only two
methods and no properties. We use Mouse.hide( )
to conceal the system mouse pointer, usually in order to replace it
with a customized mouse pointer as shown later. It may also be
desirable to hide the mouse pointer in fullscreen,
keyboard-controlled movies or for touch-screen kiosks.
Note that the Mouse
object does not tell us the
location of the mouse pointer. That information is stored in the
_xmouse
and _ ymouse
properties
of each movie clip object. Use _root._xmouse
and
_root._ ymouse
to determine the mouse
pointer’s location on the main Stage.
See Also
MovieClip
._xmouse
,
MovieClip
._ ymouse
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.