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

Chapter 7. Tools for Use with Text and T... > Using the Selection Class with the T...

Using the Selection Class with the TextField Class

Whenever you click an object on the Stage, including a text field, you can use the Selection class to learn about what has been selected and act on that information. For example, if you're using input text fields with inline labels (for example, <name>, <address>), you can use the Selection class to find out exactly which input field the user has selected. Knowing that information, you can then provide further details in a dynamic text field to help guide the user through the data-entry process.

To help a user fill in the appropriate information in a field, you can use prompt information. Sometimes, a field may need lots of detail explaining to the user what needs to be typed into it. However, given the limited amount of space on the screen, only so much room is available. Rather than placing input instructions in static text and using a good deal of screen space, you can use the same information space for all the input fields. As the user clicks each field, different instructions appear in the same place, allowing for simple or expanded information. Because all the input field information is provided in the same place, the user has a single focal point for input and input instructions.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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