S > String (function) |
String (function)
string, string function
Availability
Flash Player 4.
Usage
String(expression)
Parameters
expression An expression to convert to a string.
Returns
A string.
Description
Function; returns a string representation of the specified parameter as follows:
If expression is a Boolean value, the return string is true or false.
If expression is a number, the return string is a text representation of the number.
If expression is a string, the return string is expression.
If expression is an object, the return value is a string representation of the object generated by calling the string property for the object, or by calling Object.toString if no such property exists.
If expression is a movie clip, the return value is the target path of the movie clip in slash (/) notation.
If expression is undefined, the return value is an empty string("").
See also
Number.toString, Object.toString, String (object), " " (string delimiter)