Tabstops (Textformat.tabstops Property); Target (Textformat.target 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

tabStops (TextFormat.tabStops property)

public tabStops :
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 (
width).
Note: For Flash Lite, this property works for embedded fonts only. This property is not
supported for Arabic, Hebrew, and Thai.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example creates two text fields, one with tab stops every 40 pixels, and the
other with tab stops every 75 pixels.
this.createTextField("mytext",1,100,100,400,100);
mytext.border = true;
var myformat:TextFormat = new TextFormat();
myformat.tabStops = [40,80,120,160];
mytext.text = "A\tB\tC\tD"; // \t is the tab stop character
mytext.setTextFormat(myformat);
this.createTextField("mytext2",2,100,220,400,100);
mytext2.border = true;
var myformat2:TextFormat = new TextFormat();
myformat2.tabStops = [75,150,225,300];
mytext2.text ="A\tB\tC\tD";
mytext2.setTextFormat(myformat2);

target (TextFormat.target property)

public target :
String
Indicates the target window where the hyperlink is displayed. If the target window is an empty
string, the text is displayed in the default target window
name or one of the following four names:
window,
specifies a new window,
_blank
and
specifies the top-level frame in the current window. If the
_top
property is an empty string or
have no effect.
Availability: ActionScript 1.0; Flash Lite 2.0
Array
_self
_parent
, you can get or set this property, but the property will
null
), the default tab stop is 4 (average character
null
. You can choose a custom
_self
specifies the current frame in the current
specifies the parent of the current frame,
TextFormat.url
TextFormat
707

Advertisement

Table of Contents
loading

Table of Contents