Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript language elements > Global Functions > length function | |||
length(expression:String)length(variable)
Deprecated since Flash Player 5. This function, along with all the string functions, has been deprecated. Macromedia recommends that you use the methods of the String class and the String.length property to perform the same operations.
Returns the length of the specified string or variable.
Availability: ActionScript 1.0; Flash Player 4
expression:String - A string.
variable:Object - The name of a variable.
Number - The length of the specified string or variable.
The following example returns the length of the string "Hello": length("Hello"); The result is 5.
" string delimiter operator, String, length (String.length property)
Version 8
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00001738.html