![MACROMEDIA FLASH 8-FLASH Reference Download Page 22](http://html2.mh-extra.com/html/macromedia/flash-8-flash/flash-8-flash_reference_3347197022.webp)
22
Flash Lite Global Functions
length()
Availability
Flash Lite 1.0.
Usage
length(
expression
)
length(
variable
)
Operands
expression
A
string.
variable
The name of a variable.
Description
String function; returns the number of characters of the specified string or variable name.
Example
The following example returns the length of the string
"Hello"
:
length("Hello");
The result is 5.
The following example validates an e-mail address by checking that it contains at least six
characters:
email = "[email protected]";
if (length(email) > 6) {
//trace ("email appears to have enough characters to be valid");
}
loadMovie()
Availability
Flash Lite 1.1.
Usage
loadMovie(
url
,
target
[,
method
])
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...