Chapter 10
288
Formatting chunks of text with Lingo
The Director interface lets you format a variety of text characteristics, such as the font, size, style,
and line spacing. Using Lingo, you can format text dynamically as the movie plays. You can also
use Lingo to rapidly format text during authoring.
Formatting text with Lingo
Lingo can format text in an entire cast member or any specific chunk of text using the following
properties. See entries for individual properties in the Lingo Dictionary.
•
To select or identify a chunk of text in a field cast member, use the
selStart
and
selEnd
cast
member properties. These properties identify the first and last characters of a text selection.
•
To refer to a selected chunk of text, use the
selection
cast member property.
•
To specify the font for a text cast member, field cast member, or chunk expression, set the
font
cast member property.
•
To specify the character size for a text cast member, field cast member, or chunk expression, set
the
fontSize
property.
•
To specify the line spacing for a field cast member, set the
lineHeight
property.
•
To specify the style for a text cast member, field cast member, or chunk expression, set the
fontStyle
property.
•
To specify the drop shadow size for the characters in a field cast member, set the
boxDropShadow
property.
•
To specify additional spacing to be applied to a chunk expression in a text cast member, set the
charSpacing
property.
•
To specify the foreground color for a field cast member, set the
foreColor
property.
Applying paragraph formats with Lingo
Lingo can control paragraph formatting such as alignment and indenting for a chunk expression.
See entries for individual properties in the Lingo Dictionary.
•
To set text alignment for a text or field cast member, set the
alignment
property.
•
To set line spacing in points for a text cast member, set the
fixedLineSpace
property.
•
To add pixels below paragraphs in a text cast member, set the
bottomSpacing
property.
•
To add pixels above paragraphs in a text cast member, set the
topSpacing
property.
•
To specify line spacing in a field cast member, set the
lineHeight
property.
•
To add pixels to the first indent in a chunk expression in a text cast member, set the
firstIndent
property.
•
To set the left indent (in pixels) of a chunk expression in a text cast member, set the
leftIndent
property.
•
To set the right indent (in pixels) of a chunk expression in a text cast member, set the
rightIndent
property.
•
To specify or obtain a list of tabs that are in a chunk expression in a text cast member, set or test
the
tabs
property.
Содержание 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...