Formatting Text Or Field Cast Members With Lingo Or Javascript Syntax - MACROMEDIA DIRECTOR MX 2004-USING DIRECTOR Use Manual

Hide thumbs Also See for DIRECTOR MX 2004-USING DIRECTOR:
Table of Contents

Advertisement

Formatting text or field cast members with Lingo or JavaScript
syntax
In addition to formatting text in any chunk expression, Lingo or JavaScript syntax can specify
anti-aliasing and kerning for an entire text cast member and control the appearance of the text's
bounding rectangle.
Setting anti-aliasing and kerning with Lingo or JavaScript syntax
You can use Lingo or JavaScript syntax to specify anti-aliasing and kerning for a text cast member:
To specify whether Director anti-aliases text in a text cast member, set the
member property.
To specify the size at which anti-aliasing in a text cast member takes effect, set the
antiAliasThreshold
To specify automatic kerning for a text cast member, set the
To specify the size at which automatic kerning for a text cast member takes effect, set the
kerningThreshold
For more information about these properties, see the Scripting Reference topics in the Director
Help Panel.
Formatting text boxes with Lingo or JavaScript syntax
Lingo or JavaScript syntax can specify the type of box that surrounds a text or field cast member.
For field cast members, script can also specify box characteristics such as borders, margins, drop
shadows, and height.
To specify the type of box around a text or field, set the
To specify the size of the border around a field, set the
To specify the size of the margin inside a field's box, set the
To specify the size of the drop shadow for a field's box, set the
member property.
To specify the height of a field's box on the Stage, set the
property.
For more information about these properties, see the Scripting Reference topics in the Director
Help Panel.
Setting text autotabbing and wrapping with Lingo or JavaScript syntax
Lingo or JavaScript syntax can set text autotabbing and wrapping.
To specify autotabbing for text or field cast members, set the
To specify whether lines wrap in a field cast member, set the
For more information about these properties, see the Scripting Reference topics in the Director
Help Panel.
178
Chapter 8: Text
cast member property.
cast member property.
antiAlias
cast member property.
kerning
cast member property.
boxType
field cast member property.
border
field cast member property.
margin
boxDropShadow
field cast member
pageHeight
cast member property.
autoTab
cast member property.
wordWrap
cast
field cast

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director mx 2004

Table of Contents