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

Parameters

expression:String - A string.

variable:Object - The name of a variable.

Returns

Number - The length of the specified string or variable.

Example

The following example returns the length of the string "Hello": length("Hello"); The result is 5.

See also

" 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