EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Rightmargin (Textformat.rightmargin Property); Size (Textformat.size 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...
706 ActionScript classes
rightMargin (TextFormat.rightMargin property)
public rightMargin : Number
The right 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 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 text field object text";
mytext.setTextFormat(myformat);
size (TextFormat.size property)
public size : Number
The point size of text in this text format. The default value is null, which indicates that the
property is undefined.
Note: For Arabic, Hebrew, and Thai, this property works for paragraph-level formatting only.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example creates a text field and sets the text size 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.size = 20;
mytext.text = "This is my first text field object text";
mytext.setTextFormat(myformat);

Table of Contents

Related product manuals