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.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...