User Guide

794 Chapter 2:
Property summary for the String class
Constructor for the String class
Availability
Flash Player 5.
Usage
new String(value:String) : String
Parameters
value
The initial value of the new String object.
Returns
A reference to a String object.
Description
Constructor; creates a new String object.
Note: Because string literals use less overhead than String objects and are generally easier to use,
you should use string literals instead of the constructor for the String class unless you have a good
reason to use a String object rather than a string literal.
See also
String(), " " (string delimiter)
String.substring()
Returns the characters between two indexes in a string.
String.toLowerCase()
Converts the string to lowercase and returns the result; does not change
the contents of the original object.
String.toUpperCase()
Converts the string to uppercase and returns the result; does not change
the contents of the original object.
Property Description
String.length
A nonzero-based integer specifying the number of characters in the
specified String object.
Method Description