Chapter 15
384
Using an animated color cursor in a movie
After you add an animated color cursor to the cast, use Lingo to switch to the animated cursor
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 the following command:
cursor (member
whichCursorCastMember
)
For
whichCursorCastMember
, substitute a cast member name (surrounded by quotation marks)
or a cast member number. For example, the following 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. The following 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)
in the Lingo Dictionary.
Summary of Contents for DIRECTOR MX-USING DIRECTOR MX
Page 1: ...Using Director MX Macromedia Director MX...
Page 12: ...Contents 12...
Page 156: ...Chapter 4 156...
Page 202: ...Chapter 6 202...
Page 244: ...Chapter 7 244...
Page 292: ...Chapter 10 292...
Page 330: ...Chapter 12 330...
Page 356: ...Chapter 13 356...
Page 372: ...Chapter 14 372...
Page 442: ...Chapter 16 442...
Page 472: ...Chapter 18 472...
Page 520: ...Chapter 19 520...
Page 536: ...Chapter 20 536...
Page 562: ...Chapter 23 562...
Page 566: ...Chapter 24 566...
Page 602: ...Chapter 27 602...