Rightmargin (Textformat.rightmargin Property); Size (Textformat.size Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

rightMargin (TextFormat.rightMargin property)

public rightMargin :
Number
The right margin of the paragraph, in points. The default value is
, which indicates that
null
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
, which indicates that the
null
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);
706
ActionScript classes

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents