EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE - Switch

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE
162 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
switch 73
switch
Availability
Flash Lite 1.0.
Usage
switch (expression){
caseClause:
[defaultClause:]
}
Parameters
expression Any numeric expression.
caseClause A case keyword followed by an expression, a colon, and a group of statements
to execute if the expression matches the switch
expression parameter.
defaultClause An optional default keyword followed by statements to execute if none of
the case expressions match the switch
expression parameter.
Description
Statement; creates a branching structure for ActionScript statements. Similar to the if
statement, the
switch statement tests a condition and executes statements if the condition
evaluates to
true.
Switch statements contain a fallback option called default. If no other statements are true, the
default statement is executed.

Table of Contents

Related product manuals