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

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

The default value is
, which indicates that the property is undefined.
null
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example creates a text field with a border and uses
to
TextFormat.align
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
(
) affects only the first line of each paragraph. If this property is
,
TextFormat.indent
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);
698
ActionScript classes

Advertisement

Table of Contents
loading

Table of Contents