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);
TextFormat.target
Availability
Flash Player 6.
Usage
my_fmt.target:String
Description
Property; 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
custom name or one of the following four names:
window,
_blank
specifies the top-level frame in the current window. If the
_top
empty string or
null
Example
The following example creates a text field with a hyperlink to the Macromedia website. The
example uses
TextFormat.target
var myformat:TextFormat = new TextFormat();
myformat.url = "http://www.macromedia.com";
myformat.target = "_blank";
this.createTextField("mytext",1,100,100,200,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
mytext.html = true;
mytext.text = "Go to Macromedia.com";
mytext.setTextFormat(myformat);
TextFormat.underline
Availability
Flash Player 6.
Usage
my_fmt.underline:Boolean
788
Chapter 7: ActionScript for Flash
specifies a new window,
, you can get or set this property, but the property will have no effect.
to display the Macromedia website in a new browser window.
specifies the current frame in the current
_self
specifies the parent of the current frame, and
_parent
. You can choose a
_self
property is an
TextFormat.url
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?