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

Chapter 17. Text: Add Text to a Document > Assign instance names to text fields

Assign instance names to text fields

An input text field on the Stage is an instance of the ActionScript TextField object, to which you can apply properties and methods. As a best practice, you should name text field instances so that you or others working on the project can refer to the instance in ActionScript.

1.
Select the input text field that you placed next to First Name. In the Property inspector, enter firstName_txt in the Instance Name text box.

2.
Select the input text field that you placed next to Last Name. In the Property inspector, enter lastName_txt in the Instance Name text box.

3.
Select the input text field that you placed next to eMail Address. In the Property inspector, enter eMail_txt in the Instance Name text box.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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