User Guide

Table Of Contents
substring() 41
String()
Availability
Flash Lite 1.0.
Usage
String(expression)
Operands
expression An expression to convert to a string.
Description
Function; returns a string representation of the specified parameter as described in the
following list:
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 a Boolean value, the return string is true or false.
If expression is a movie clip, the return value is the target path of the movie clip in slash
(/) notation.
Example
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");
}
substring()
Availability
Flash Lite 1.0.
Usage
substring(string, index, count)