MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 1064

Director scripting reference
Table of Contents

Advertisement

type (Member)
Usage
-- Lingo syntax
memberObjRef.type
// JavaScript syntax
memberObjRef.type;
Description
Member property; indicates a cast member's type. Read-only.
The
property can be one of the following values:
type
#animgif
#bitmap
#button
#cursor
#digitalVideo
#DVD
#empty
#field
#filmLoop
#flash
#flashcomponent
#font
#havok
#movie
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
and
for text cast members. However, field cast members originally created in Director
#richText
4 return
for the member type, providing backward compatibility for movies that were
#text
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
1064
Chapter 14: Properties
#ole
#palette
#picture
#QuickTimeMedia
#realMedia
#script
#shape
#shockwave3D
#sound
#swa
#text
#transition
#vectorShape
#windowsMedia
property returns
type
for field cast members
#field

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents