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);
this.createTextField("mytext2",2,100,220,200,100);
mytext2.multiline = true;
mytext2.wordWrap = true;
mytext2.border = true;
var myformat2:TextFormat = new TextFormat();
myformat2.tabStops = [40,80,120,160];
mytext2.text ="ABCD";
mytext2.setTextFormat(myformat2);
960
Chapter 2: ActionScript Language Reference
), the default tab stop is 4
null
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers