Setting cast member properties 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.
To specify the cast member's content:
•
Set the
media
To specify the cast member's name:
•
Set the
cast member property.
name
To set the contents of the cast member's comments field:
•
Set the
comments
you find useful, and access it at runtime by getting the
To specify the cast member's purge priority:
•
Set the
purgePriority
To specify the content of the script that is attached to the cast member:
•
Set the
scriptText
To specify the file that is assigned to a linked cast member:
•
Set the
fileName
For additional cast member properties that you can test and set 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, but they
can 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.
The custom tab for the type of cast member you are working with might also contain a More
Options button. This button displays the Cast Member Properties dialog box for the current
cast member.
The content of the Properties dialog box is determined by the developer of the Xtra. For
non-Macromedia Xtra extensions, refer to any documentation that the developer supplies.
cast member property.
cast member property. You can store any text information in this field that
cast member property.
cast member property.
cast member property.
property.
comments
Setting Xtra cast member properties
49
Need help?
Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?
Questions and answers