MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 779

Actionscript language reference
Table of Contents

Advertisement

Example
The following example creates a text field with a border and uses
the text.
var my_fmt:TextFormat = new TextFormat();
my_fmt.align = "center";
this.createTextField("my_txt", 1, 100, 100, 300, 100);
my_txt.multiline = true;
my_txt.wordWrap = true;
my_txt.border = true;
my_txt.text = "this is my first test field object text";
my_txt.setTextFormat(my_fmt);
TextFormat.blockIndent
Availability
Flash Player 6.
Usage
my_fmt.blockIndent:Number
Description
Property; a number that indicates the block indentation in points. Block indentation is applied to
an entire block of text; that is, to all lines of the text. In contrast, normal indentation
(
TextFormat.indent
TextFormat object does not specify block indentation.
Example
This example creates a text field with a border and sets the blockIndent to 20.
this.createTextField("mytext",1,100,100,100,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
var myformat:TextFormat = new TextFormat();
myformat.blockIndent = 20;
mytext.text = "this is my first test field object text";
mytext.setTextFormat(myformat);
TextFormat.bold
Availability
Flash Player 6.
Usage
my_fmt.bold:Boolean
) affects only the first line of each paragraph. If this property is
to center
TextFormat.align
null
TextFormat.bold
, the
779

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents