Using Director > Navigation and User Interaction > Using an animated color cursor in a movie

 

Using an animated color cursor in a movie

Once you have added an animated color cursor to the cast, use Lingo to switch to the animated cursor just as you would any other cursor. You can set up an animated cursor as the movie's cursor or a sprite's cursor.

To switch to an animated color cursor, use this command:

cursor (member whichCursorCastMember)

For whichCursorCastMember, substitute a cast member name (surrounded by quotation marks) or a cast member number. For example, this sprite script changes the cursor to the cast member named myCursor when the cursor is over the sprite:

on mouseEnter
	cursor (member "myCursor")
end

To reset the cursor to the regular arrow cursor, specify a cursor type of -1 (and do not use parentheses). This sample sprite script resets the cursor:

on mouseLeave
	cursor -1
end

Note: Do not place an animated color cursor cast member on the Stage.

For more information, see cursor (command).