Lingo Dictionary > T-Z > type (cast member property) |
![]() ![]() ![]() |
type (cast member property)
Syntax
member(
whichCastMember
).type
the type of member
whichCastMember
member(
whichCastMember
, which castLib). type
member
whichCastMember
of castLib
whichCast.
type
the type of member
whichCastMember
of castLib
whichCast
Description
Cast member property; indicates the specified cast member's type. This property replaces the castType
property used in previous versions of Director.
The type
member property can be one of the following values:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This list includes those types of cast members that are available in Director and the Xtras that come with it. You can also define custom cast member types for custom cast members.
When a movie plays back as an applet, the type
member property is valid only for cast member types that the player supports.
For movies created in Director 5 and 6, the type
member property returns #field
for field cast members and #richText
for text cast members. However, field cast members originally created in Director 4 return #text
for the member type, providing backward compatibility for movies that were created in Director 4.
This property can be tested but not set.
Example
The following handler checks whether the cast member Today's News is a field cast member and displays an alert if it is not:
on checkFormat if member("Today's News").type <> #field then alert \"Sorry, this cast member must be a field." end
![]() ![]() ![]() |