MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 716

Actionscript language reference
Table of Contents

Advertisement

TextField class
Availability
Flash Player 6.
Description
You can use the TextField class to perform low-level text rendering. However, in Flex, you
typically use the Label, Text, TextArea, and TextInput controls to process text.
All dynamic and input text fields in a SWF file are instances of the TextField class.
The TextField class inherits from the
To create a text field dynamically, you do not use the
MovieClip.createTextField()
Method summary for the TextField class
Method
TextField.addListener()
TextField.getFontList()
TextField.getDepth()
TextField.getNewTextFormat()
TextField.getTextFormat()
TextField.removeListener()
TextField.removeTextField()
TextField.replaceSel()
TextField.replaceText()
TextField.setNewTextFormat()
TextField.setTextFormat()
Property summary for the TextField class
Property
TextField._alpha
TextField.autoSize
TextField.background
TextField.backgroundColor
716
Chapter 7: ActionScript for Flash
Object
class.
new
.
Description
Registers an object to receive notification when the
event handlers are invoked.
onScroller
Returns names of fonts on the player's host system as an array.
Returns the depth of a text field.
Gets the default text format assigned to newly inserted text.
Returns a TextFormat object containing formatting information for
some or all text in a text field.
Removes a listener object.
Removes a text field that was created with
MovieClip.createTextField()
Replaces the current selection.
Replaces a range of characters.
Sets a TextFormat object for text that is inserted by a user or by a
method.
Sets a TextFormat object for a specified range of text in a
text field.
Description
The transparency value of a text field instance.
Controls automatic alignment and sizing of a text field.
Indicates if the text field has a background fill.
Indicates the color of the background fill.
ActionScript for Flash
operator. Instead, you use
.
CHAPTER 7
and
onChanged

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