EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Leading (Textformat.leading Property); Leftmargin (Textformat.leftmargin 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...
TextFormat 705
leading (TextFormat.leading property)
public leading : Number
An integer that represents the amount of vertical space in pixels (called leading) between lines.
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 and sets the leading to 10.
var my_fmt:TextFormat = new TextFormat();
my_fmt.leading = 10;
this.createTextField("my_txt", 1, 100, 100, 100, 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);
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 Lite 2.0
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 text field object text";
mytext.setTextFormat(myformat);

Table of Contents

Related product manuals