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

Chapter 10. Controlling Text > TextField Properties

TextField Properties

When you drag an input or dynamic text field on the Stage with the text tool, you are creating an instance of the TextField object. Before you can have access to its methods and properties, however, you must name your text field in the Property Inspector so that you can identify it with ActionScript.

The instance name of a text field is very different from the variable name that you’ve been using so far in the chapter (Figure 10.27). The variable name simply holds the contents of the text field. The instance name, on the other hand, identifies the text field for targeting purposes. When you can target the text field, you can evaluate or modify its many properties. These properties determine the kind and display of the text field. The property type, for example, defines an input or dynamic text field; border determines whether the text field has one; and _rotation controls the angle of the text field.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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