Lingo Dictionary
121
This
case
statement tests whether the cursor is over sprite 1, 2, or 3 and runs the corresponding
Lingo if it is:
case the rollOver of
1: puppetSound "Horn"
2: puppetSound "Drum"
3: puppetSound "Bongos"
end case
castLib
Syntax
castLib
whichCast
Description
Keyword; indicates that the cast specified in
whichCast
is a cast.
The default cast is cast number 1. To specify a cast member in a cast other than cast 1, set
castLib
to specify the alternative cast.
Examples
This statement displays the number of the Buttons cast in the Message window.
Dot syntax:
put castLib("Buttons").number
Verbose syntax:
put the number of castLib "Buttons"
This statement assigns cast member 5 in castLib 4 to sprite 10:
sprite(10).member = member(5, 4)
castLibNum
Syntax
member(
whichCastMember
).castLibNum
the castLibNum of member
whichCastMember
sprite(
whichSprite
).castLibNum
the castLibNum of sprite
whichSprite
Description
Cast member and sprite property; determines the number of the cast that contains the specified
cast member, or which castLib is currently associated with the specified sprite.
If you change
the castLibNum
sprite property without changing
the memberNum
sprite property,
Director uses the cast member that has the same cast member number in the new cast. This is
useful for movies that you use as templates and update by supplying new casts. If you organize the
cast contents so that each cast member has a cast member number that corresponds to its role in
the movie, Director automatically inserts the new cast members correctly. To change the cast
member assigned to a sprite regardless of its cast, set the
member
sprite property.
For a cast member, this property can be tested but not set. It can be both tested and set for a sprite.
Summary of Contents for DIRECTOR MX-LINGO DICTIONARY
Page 1: ...Lingo Dictionary Macromedia Director MX...
Page 756: ...Index 756...