ADOBE DIRECTOR 11.0
User Guide
59
1
Create an external cast file, using the procedure under
Creating new casts
. Do not select Use In Current Movie.
2
With the Cast window for the external cast active, select File > Save, and place the external cast in the Libs folder
in the Director application folder.
3
Restart Director. The cast that you just created appears in the Library palette.
Setting cast member properties by using Lingo or
JavaScript syntax
Lingo or JavaScript syntax lets you control and edit cast members by setting their properties. Some properties are
available for every type of cast member, and other properties are available only for specific cast member types. For
more information about these properties, see the Scripting Reference topics in the Director Help Panel.
Specify the cast member’s content
•
Set the
media
Cast Member property.
Specify the cast member’s name
•
Set the
name
Cast Member property.
Set the contents of the cast member’s comments field
•
Set the
comments
Cast Member property. You can store any text information that you find useful, and access it
at runtime by getting the
comments
property.
Specify the cast member’s purge priority
•
Set the
purgePriority
Cast Member property.
Specify the content of the script that is attached to the cast member
•
Set the
scriptText
Cast Member property.
Specify the file that is assigned to a linked cast member
•
Set the
fileName
Cast Member property.
For additional cast member properties that you can test and set by using Lingo or JavaScript syntax, see the
properties in the Scripting Reference topics in the Director Help Panel.
Setting Xtra cast member properties
Xtra cast members have the same Name and Unload properties as other cast members, and they also contain an extra
panel of options that is accessible from the Property inspector. To set cast member properties, use the Member tab
and the custom tab for the type of cast member you are working with. The Member tab contains an Edit button and
might contain a More Options button, depending on the type of Xtra. Use the Edit button to edit the cast member
with its default editor. Use the More Options button to display the Cast Member Properties dialog box for the current
cast member.