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

Chapter 10. Controlling Text > The String Object

The String Object

You can apply the methods and properties of the String object to analyze and manipulate string data types. The String object can tell you the position of a certain character, for example, or what character occupies a certain position. You can also dissect just a portion of the string and put that part, called a substring, into a new string, or you can concatenate substrings and strings. You can even change the lowercase and uppercase styles of different parts of the string. Table 10.5 summarizes several methods and properties of the String objects.

You can perform all this parsing and shuffling of strings without first having to create an instance of the String object. Flash does this automatically by creating a temporary String object that it discards after the work of the method is completed.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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