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

Chapter 10. Controlling Text > The Selection Class

The Selection Class

The Selection class controls the selection of characters in text fields. Unlike most classes, the Selection class doesn’t need a constructor function to be instantiated before you can use it because there can be only one insertion-point position or selection in a Flash movie at a time. So the Selection class will always refer to that one position or selection.

The methods of the Selection class affect a text field in two ways: It can control which text field is currently active, or focused, and it can control where the insertion point is positioned within that text field. Table 10.4 summarizes important methods of the Selection class.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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