1240 ActionScript classes
leftMargin (TextFormat.leftMargin property)
public leftMargin : Number
The left margin of the paragraph, in points. The default value is
null
, which indicates that
the property is undefined.
Availability:
ActionScript 1.0; Flash Player 6
Example
The following example creates a text field and sets the left margin to 20 points.
this.createTextField("mytext",1,100,100,100,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
var myformat:TextFormat = new TextFormat();
myformat.leftMargin = 20;
mytext.text = "this is my first test field object text";
mytext.setTextFormat(myformat);
letterSpacing (TextFormat.letterSpacing property)
public letterSpacing : Number
The amount of space that is uniformly distributed between characters. The Number value
specifies the number of pixels that are added to the space after each character. A negative value
condenses the space between characters.
System fonts support integer values only; however, for embedded fonts, you can specify
floating point (noninteger) values (such as 2.6).
Availability:
ActionScript 1.0; Flash Player 8
Example
The following code example uses two TextFormat objects to apply positive and negative values
of
letterSpacing
to different ranges of text in a text field.
this.createTextField("mytext", this.getNextHighestDepth(), 10, 10, 200,
100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
var format1:TextFormat = new TextFormat();
format1.letterSpacing = -1;
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...