413
name (cast property)
Syntax
castLib (
whichCast
)
.
name
the name of castLib
whichCast
Description
Cast member property; returns the name of the specified cast.
This property can be tested and set.
Example
This code iterates through all the castLibs in a movie and displays their names in the
Message window:
totalCastLibs = the number of castLibs
repeat with currentCastLib = 1 to totalCastLibs
put "Castlib"&¤tCastLib&&"is named"&&castLib(currentCastLib).name
end repeat
See also
&& (concatenator)
name (cast member property)
Syntax
member(
whichCastMember
)
.
name
the name of member
whichCastMember
Description
Cast member property; determines the name of the specified cast member. The argument
whichCastMember
is a string when is used as the cast member name or an integer when used as
the cast member number.
The name is a descriptive string assigned by the developer. Setting this property is equivalent to
entering a name in the Cast Member Properties dialog box.
This property can be tested and set.
Examples
This statement changes the name of the cast member named On to Off:
member("On").name = "Off"
This statement sets the name of cast member 15 to Background Sound:
member(15).name = "Background Sound"
This statement sets the variable
itsName
to the name of the cast member that follows the cast
member whose number is equal to the variable
i
:
itsName = member(i + 1).name
See also
number (cast member property)
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...