178
ActionScript language elements
See also
instanceof operator
void operator
void
expression
The
void
operator evaluates an expression and then discards its value, returning
undefined
.
The
void
operator is often used in comparisons using the
==
operator to test for undefined
values.
Availability:
ActionScript 1.0; Flash Lite 2.0
Operands
expression :
Object
- An expression to be evaluated.
Statements
Statements are language elements that perform or specify an action. For example, the return
statement returns a result as a value of the function in which it executes. The if statement
evaluates a condition to determine the next action that should be taken. The switch statement
creates a branching structure for ActionScript statements.
Statements summary
Button
object
Text field
object
Number
number
Boolean
boolean
Object
object
Function
function
Statement
Description
break
Appears within a loop (
for
,
for..in
,
do..while
or
while
) or within
a block of statements associated with a particular case within a
switch
statement.
case
Defines a condition for the
switch
statement.
Expression Type
Result
Summary of Contents for Flash Lite 2
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...