Flash Player 4. This function, along with all of the string functions, has been deprecated in Flash 5. It is recommended that you use the methods and length
property of the String object to perform the same operations.
length(expression
)length
(variable
)
expression
A string.
variable
The name of a variable.
The length of the specified string or variable name.
String function; returns the length of the specified string or variable name.
The following example returns the value of the string "Hello"
.
length("Hello");
The result is 5.