
Setting Xtra cast member properties
49
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
cast member property.
To specify the cast member’s name:
•
Set the
name
cast member property.
To set the contents of the cast member’s comments field:
•
Set the
comments
cast member property. You can store any text information in this field that
you find useful, and access it at runtime by getting the
comments
property.
To specify the cast member’s purge priority:
•
Set the
purgePriority
cast member property.
To specify the content of the script that is attached to the cast member:
•
Set the
scriptText
cast member property.
To 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 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.
Содержание DIRECTOR MX 2004-USING DIRECTOR
Страница 1: ...DIRECTOR MX 2004 Using Director...
Страница 16: ...16 Chapter 1 Introduction...
Страница 82: ...82 Chapter 3 Sprites...
Страница 98: ...98 Chapter 4 Animation...
Страница 134: ...134 Chapter 5 Bitmaps...
Страница 242: ...242 Chapter 10 Sound and Synchronization...
Страница 274: ...274 Chapter 11 Using Digital Video...
Страница 290: ...290 Chapter 12 Behaviors...
Страница 302: ...302 Chapter 13 Navigation and User Interaction...
Страница 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Страница 392: ...392 Chapter 16 Working with Models and Model Resources...
Страница 418: ...418 Chapter 18 Movies in a Window...
Страница 446: ...446 Chapter 22 Managing and Testing Director Projects...