1232 ActionScript classes
The
MovieClip.getNextHighestDepth()
method used in this example requires Flash Player
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
MovieClip.getNextHighestDepth()
method.
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 Player 6
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);
bold (TextFormat.bold property)
public bold : Boolean
A Boolean value that specifies whether the text is boldface. The default value is
null
, which
indicates that the property is undefined. If the value is
true
, then the text is boldface.
Availability:
ActionScript 1.0; Flash Player 6
Example
The following example creates a text field that includes characters in boldface.
var my_fmt:TextFormat = new TextFormat();
my_fmt.bold = true;
this.createTextField("my_txt", 1, 100, 100, 300, 100);
my_txt.multiline = true;
my_txt.wordWrap = true;
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...