K-L > length
lengthSyntax
length(expression
);length
(variable
);
Arguments
expression
Any string.
variable
The name of a variable.
Description
String function; returns the length of the specified string or variable name.
Player
Flash 4 or later. 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.
Example
The following example returns the value of the string Hello
:
length("Hello");
The result is 5.
See also
" " (string delimiter) String.length