Chapter 3
122
Examples
This statement determines the number of the cast to which cast member Jazz is assigned.
Dot syntax:
put member("Jazz").castLibNum
Verbose syntax:
put the castLibNum of member "Jazz"
The following statement changes the cast member assigned to sprite 5 by switching its cast to
Wednesday Schedule.
Dot syntax:
sprite(5).castLibNum = castLib("Wednesday Schedule").number
Verbose syntax:
set the castLibNum of sprite 5 to the number of castLib "Wednesday Schedule"
castMemberList
Syntax
member(
whichCursorCastMember
).castmemberList
the castmemberList of member
whichCursorCastMember
Description
Cursor cast member property; specifies a list of cast members that make up the frames of a cursor.
For
whichCursorCastMember
, substitute a cast member name (within quotation marks) or a cast
member number. You can also specify cast members from different casts.
The first cast member in the list is the first frame of the cursor, the second cast member is the
second frame, and so on.
If you specify cast members that are invalid for use in a cursor, they will be ignored, and the
remaining cast members will be used.
This property can be tested and set.
Example
This command sets a series of four cast members for the animated color cursor cast member
named myCursor.
Dot syntax:
member("myCursor").castmemberList = \
[member 1, member 2, member 1 of castlib 2, member 2 of castlib 2]
Verbose syntax:
set the castmemberList of member "myCursor" = \
[member 1, member 2, member 1 of castlib 2, member 2 of castlib 2]
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...