User Guide
876 Chapter 14: Properties
mouseLoc
Usage
-- Lingo syntax
_mouse.mouseLoc
// JavaScript syntax
_mouse.mouseLoc;
Description
Mouse property; returns the current position of the mouse as a point(). Read-only.
The point location is given as two coordinates, with the horizontal location first, then the
vertical location.
Example
The following statement displays the current position of the mouse.
-- Lingo syntax
trace(_mouse.mouseLoc)
// JavaScript syntax
trace(_mouse.mouseLoc);
See also
Mouse, mouseH, mouseV
mouseMember
Usage
-- Lingo syntax
_mouse.mouseMember
// JavaScript syntax
_mouse.mouseMember;
Description
Mouse property; returns the cast member assigned to the sprite that is under the pointer when the
property is called. Read-only.
When the pointer is not over a sprite, this property returns the result
VOID (Lingo) or null
(JavaScript syntax).
You can use this property to make a movie perform specific actions when the pointer rolls over a
sprite and the sprite uses a certain cast member.
The value of the
mouseMember property can change frequently. To use this property multiple
times in a handler with a consistent value, assign the mouseMember value to a local variable when
the handler starts and use the variable.