User Guide
722 Chapter 14: Properties
To use custom cursors, set the cursor property to a list containing the cast member to be used as
a cursor or to the number that specifies a system cursor. In Windows, a cursor must be a cast
member, not a resource; if a cursor is not available because it is a resource, Director displays the
standard arrow cursor instead. For best results, don’t use custom cursors when creating cross-
platform movies.
Custom cursor cast members must be no larger than 16 by 16 pixels, and must be 1-bit in depth.
If the sprite is a bitmap that has matte ink applied, the cursor changes only when the cursor is
over the matte portion of the sprite.
When the cursor is over the location of a sprite that has been removed, rollover still occurs. Avoid
this problem by not performing rollovers at these locations or by relocating the sprite up above
the menu bar before deleting it.
On the Macintosh, you can use a numbered cursor resource in the current open movie file as the
cursor by setting
cursor to the number of the cursor resource.
Example
This statement changes the cursor that appears over sprite 20 to a watch (Macintosh) or hourglass
(Windows) cursor.
-- Lingo syntax
sprite(20).cursor = 4
// JavaScript syntax
sprite(20).cursor = 4;
See also
Sprite
301 Air brush
302 Zoom in
303 Zoom out
304 Zoom cancel
305 Start shape
306 Add point
307 Close shape
308 Zoom camera
309 Move camera
310 Rotate camera
457 Custom
Value Description