switch
Availability
Flash Lite 1.0.
Usage
switch (expression){
caseClause:
[defaultClause:]
}
Parameters
Any numeric expression.
expression
A
caseClause
case
to execute if the expression matches the switch
An optional
defaultClause
the case expressions match the switch
Description
Statement; creates a branching structure for ActionScript statements. Similar to the
statement, the
switch
evaluates to
.
true
Switch statements contain a fallback option called default. If no other statements are true, the
default statement is executed.
keyword followed by an expression, a colon, and a group of statements
keyword followed by statements to execute if none of
default
expression
statement tests a condition and executes statements if the condition
parameter.
expression
parameter.
if
switch
73
Need help?
Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?