MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 786

Actionscript language reference
Table of Contents

Advertisement

TextFormat.leftMargin
Availability
Flash Player 6.
Usage
my_fmt.leftMargin:Number
Description
Property; the left margin of the paragraph, in points. The default value is
that the property is undefined.
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);
TextFormat.rightMargin
Availability
Flash Player 6.
Usage
my_fmt.rightMargin:Number
Description
Property; the right margin of the paragraph, in points. The default value is
that the property is undefined.
Example
The following example creates a text field and sets the right 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.rightMargin = 20;
mytext.text = "this is my first test field object text";
mytext.setTextFormat(myformat);
786
Chapter 7: ActionScript for Flash
, which indicates
null
, which indicates
null

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents