Textfield - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

TextField

Object
|
+-TextField
public dynamic class TextField
extends Object
The TextField class is used to create areas for text display and input. All dynamic and input
text fields in a SWF file are instances of the TextField class. You can give a text field an
instance name in the Property inspector and use the methods and properties of the TextField
class to manipulate it with ActionScript. TextField instance names are displayed in the Movie
Explorer and in the Insert Target Path dialog box in the Actions panel.
To create a text field dynamically, you do not use the
MovieClip.createTextField()
The methods of the TextField class let you set, select, and manipulate text in a dynamic or
input text field that you create during authoring or at runtime.
ActionScript provides several ways to format your text at runtime. The TextFormat class lets
you set character and paragraph formatting for TextField objects. In Flash Player 7 and later,
you can apply Cascading Style Sheets (CSS) styles to text fields using the TextField.styleSheet
property and the StyleSheet class. You can use CSS to style built-in HTML tags, define new
formatting tags, or apply styles. You can assign HTML formatted text, which might
optionally use CSS styles, directly to a text field. In Flash Player 7 and later, HTML text that
you assign to a text field can contain embedded media (movie clips, SWF files, JPEG files,
GIF files, PNG files). The text wraps around the embedded media in the same way that a web
browser wraps text around media embedded in an HTML document.
Flash Player supports a subset of HTML tags that you can use to format text.
Availability: ActionScript 1.0; Flash Player 6
See also
,
Object
createTextField (MovieClip.createTextField method)
Property summary
Modifiers
Property
_alpha:Number
antiAliasType:String
1162
ActionScript classes
new
.
Description
Sets or retrieves the alpha transparency value of the
text field.
The type of anti-aliasing used for this TextField
instance.
operator. Instead, you use

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF