MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 568

Actionscript language reference
Table of Contents

Advertisement

variable = null
maxChars = null
styleSheet = undefined
tabInded = undefined
A text field created with
font = "Times New Roman"
size = 12
color = 0x000000
bold = false
italic = false
underline = false
url = ""
target = ""
align = "left"
leftMargin = 0
rightMargin = 0
indent = 0
leading = 0
blockIndent = 0
bullet = false
display = block
tabStops = [] (empty array)
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Example
The following example creates a text field with a width of 300, a height of 100, an x coordinate of
100, a y coordinate of 100, no border, red, and underlined text:
this.createTextField("my_txt", 1, 100, 100, 300, 100);
my_txt.multiline = true;
my_txt.wordWrap = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFF0000;
my_fmt.underline = true;
my_txt.text = "This is my first test field object text.";
my_txt.setTextFormat(my_fmt);
See also
TextFormat class
MovieClip._currentframe
Availability
Flash Player 4.
Usage
my_mc._currentframe:Number
568
Chapter 7: ActionScript for Flash
createTextField()
receives the following default TextFormat object:

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