MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 787

Actionscript language reference
Table of Contents

Advertisement

TextFormat.size
Availability
Flash Player 6.
Usage
my_fmt.size:Number
Description
Property; the point size of text in this text format. The default value is
the property is undefined.
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 test field object text";
mytext.setTextFormat(myformat);
TextFormat.tabStops
Availability
Flash Player 6.
Usage
my_fmt.tabStops:Array
Description
Property; specifies custom tab stops as an array of non-negative integers. Each tab stop is
specified in pixels. If custom tab stops are not specified (
(average character width).
Example
The following example creates two text fields, one with tab stops every 20 pixels, and the other
with tab stops every 40 pixels.
this.createTextField("mytext",1,100,100,200,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
var myformat:TextFormat = new TextFormat();
myformat.tabStops = [20,40,60,80];
mytext.text = "ABCD";
mytext.setTextFormat(myformat);
, which indicates that
null
), the default tab stop is 4
null
TextFormat.tabStops
787

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