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.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...