EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Blockindent (Textformat.blockindent Property)

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
698 ActionScript classes
The default value is null, which indicates that the property is undefined.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example creates a text field with a border and uses
TextFormat.align to
center 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 text field object text";
my_txt.setTextFormat(my_fmt);
blockIndent (TextFormat.blockIndent property)
public blockIndent : Number
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) affects only the first line of each paragraph. If this property is null,
the TextFormat object does not specify block indentation.
Availability: ActionScript 1.0; Flash Lite 2.0
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 text field object text";
mytext.setTextFormat(myformat);

Table of Contents

Related product manuals