Chapter 4
154
Creating libraries
A library is a special type of unlinked external cast that appears in the Library palette. When you
drag a cast member from an external cast library to the Stage or Score, Director automatically
copies the cast member to one of the movie’s internal casts. Libraries are useful for storing any
type of commonly used cast members, especially behaviors. A library cannot be linked to a movie.
See “Attaching behaviors” on page 357.
When you create a library, as explained in the following procedure, it appears in the Library List
pop-up menu in the Library palette.
To create a library:
1
Create an external cast file, following the procedure under “Creating new casts” on page 128.
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.
Setting cast member properties using Lingo
Lingo 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. See entries for individual properties in the Lingo Dictionary.
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 Lingo can test and set, see the Lingo Dictionary
sections that discuss the specific cast member type.
Summary of Contents for DIRECTOR MX-USING DIRECTOR MX
Page 1: ...Using Director MX Macromedia Director MX...
Page 12: ...Contents 12...
Page 156: ...Chapter 4 156...
Page 202: ...Chapter 6 202...
Page 244: ...Chapter 7 244...
Page 292: ...Chapter 10 292...
Page 330: ...Chapter 12 330...
Page 356: ...Chapter 13 356...
Page 372: ...Chapter 14 372...
Page 442: ...Chapter 16 442...
Page 472: ...Chapter 18 472...
Page 520: ...Chapter 19 520...
Page 536: ...Chapter 20 536...
Page 562: ...Chapter 23 562...
Page 566: ...Chapter 24 566...
Page 602: ...Chapter 27 602...