• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Viewing and Entering Informat... > Working with the TextField Class

Working with the TextField Class

The TextField class contains methods, properties, events, and listeners for working with a wide variety of text applications. Although the class contains relatively few methods, events, and listeners, there's a long list of properties. The key to working effectively with the TextField class is using the properties effectively and in conjunction with text for matting.

Before beginning to look at the details of the class, let's take a quick look at creating and formatting text fields dynamically from MovieClip objects. The MovieClip.createTextField() method allows for dynamic creation of a text field, and the TextFormat class can fully establish a format. For example, the following small script generates a text field, provides some minimal formatting, and adds text:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint