Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Global Functions > String() | |||
Flash Lite 1.0.
String(expression)
expression An expression to convert to a string.
Function; returns a string representation of the specified parameter as described in the following list:
expression is a number, the return string is a text representation of the number.expression is a string, the return string is expression.expression is a Boolean value, the return string is true or false. expression is a movie clip, the return value is the target path of the movie clip in slash (/) notation.The following example sets birthYearNum to 1976, converts it to a string using the String() function, and then compares it to the string "1976" by using the eq operator.
birthYearNum = 1976;
birthYearStr = String(birthYearNum);
if (birthYearStr eq "1976") {
trace ("birthYears match");
}
|
|
|
|