User Guide

186 ActionScript language elements
In a for loop, continue causes the Flash interpreter to skip the rest of the loop body. In the
following example, if the i modulo 3 equals 0, then the
trace(i) statement is skipped:
trace("example 3");
for (var i = 0; i < 10; i++) {
if (i % 3 == 0) {
continue;
}
trace(i);
}
In the following for..in loop, continue causes the Flash interpreter to skip the rest of the
loop body and jump back to the top of the loop, where the next value in the enumeration is
processed:
for (i in _root) {
if (i == "$version") {
continue;
}
trace(i);
}
default statement
default: statements
Defines the default case for a switch statement. The statements execute if the expression
parameter of the
switch statement doesn't equal (using the strict equality [===] operation)
any of the
expression parameters that follow the case keywords for a given switch
statement.
A
switch is not required to have a default case statement. A default case statement does
not have to be last in the list. If you use a
default statement outside a switch statement, it
produces an error and the script doesn't compile.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
statements:String - Any statements.