720
Chapter 14: Properties
cursor
Usage
-- Lingo syntax
spriteObjRef
.cursor
// JavaScript syntax
spriteObjRef
.cursor;
Description
Sprite property; determines the cursor used when the pointer is over a sprite. Read/write.
This property stays in effect until you turn it off by setting the cursor to 0. Use the
cursor
property to change the cursor when the mouse pointer is over specific regions of the screen and to
indicate regions where certain actions are possible when the user clicks on them.
When you set the
cursor
property in a given frame, Director keeps track of the sprite rectangle to
determine whether to alter the cursor. This rectangle persists when the movie enters another
frame unless you set the
cursor
property for that channel to 0.
•
Use the following syntax to specify the number of a cast member to use as a cursor and its
optional mask.
-- Lingo syntax
spriteObjRef
.cursor = [
castMemberObjRef
,
maskCastMemberObjRef
]
// JavaScript syntax
spriteObjRef
.cursor = [
castMemberObjRef
,
maskCastMemberObjRef
];
•
Use the following syntax to specify default system cursors.
-- Lingo syntax
spriteObjRef
.cursor =
castMemberObjRef
// JavaScript syntax
spriteObjRef
.cursor =
castMemberObjRef
;
The
cursor
property can be set to one of the following integer values:
Value
Description
-1, 0
Arrow
1
I-Beam
2
Cross
3
Crossbar
4
Watch (Macintosh) or Hour glass (Windows)
5
North South East West (NSEW)
6
North South (NS)
200
Blank (hides cursor)
254
Help
256
Pencil
257
Eraser
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...