Textfield - 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

If you set
System.useCodepage
operating system running the player must include the characters used in your external text file
in order for the text to display. For example, if you load an external text file that contains
Chinese characters, those characters cannot display on a system that uses the CP1252 code
page because that code page does not include Chinese characters.
To ensure that users on all platforms can view external text files used in your SWF files, you
should encode all external text files as Unicode and leave
default. This way, Flash Player 6 and later interprets the text as Unicode.
Availability: ActionScript 1.0; Flash Lite 2.0

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 Lite 2.0
to true, remember that the traditional code page of the
new
.
System.useCodepage
operator. Instead, you use
set to false by
TextField
645

Advertisement

Table of Contents
loading

Table of Contents