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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access