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.
Содержание Director MX
Страница 1: ...Using Director MX Macromedia Director MX ...
Страница 12: ...Contents 12 ...
Страница 156: ...Chapter 4 156 ...
Страница 202: ...Chapter 6 202 ...
Страница 244: ...Chapter 7 244 ...
Страница 292: ...Chapter 10 292 ...
Страница 330: ...Chapter 12 330 ...
Страница 356: ...Chapter 13 356 ...
Страница 372: ...Chapter 14 372 ...
Страница 442: ...Chapter 16 442 ...
Страница 472: ...Chapter 18 472 ...
Страница 520: ...Chapter 19 520 ...
Страница 536: ...Chapter 20 536 ...
Страница 562: ...Chapter 23 562 ...
Страница 566: ...Chapter 24 566 ...
Страница 602: ...Chapter 27 602 ...