1064
Chapter 14: Properties
type (Member)
Usage
-- Lingo syntax
memberObjRef
.type
// JavaScript syntax
memberObjRef
.type;
Description
Member property; indicates a cast member’s type. Read-only.
The
type
property can be one of the following values:
This list includes those types of cast members that are available in Director and the Xtra
extensions that come with it. You can also define custom cast member types for custom
cast members.
For movies created in Director 5 and 6, the
type
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.
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:
-- Lingo syntax
on checkFormat
if (member("Today’s News").type <> #field) then
_player.alert("Sorry, this cast member must be a field.")
end if
end
#animgif
#ole
#bitmap #palette
#button
#picture
#cursor
#QuickTimeMedia
#digitalVideo
#realMedia
#DVD
#script
#empty
#shape
#field
#shockwave3D
#filmLoop
#sound
#flash
#swa
#flashcomponent
#text
#font
#transition
#havok
#vectorShape
#movie
#windowsMedia
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...