MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 140

Actionscript language reference
Table of Contents

Advertisement

continue
Availability
Flash Player 4.
Usage
continue
Parameters
None.
Returns
Nothing.
Description
Statement; jumps past all remaining statements in the innermost loop and starts the next iteration
of the loop as if control had passed through to the end of the loop normally. It has no effect
outside a loop.
Example
In the following
body and jump to the top of the loop, where the condition is tested:
trace("example 1");
var i:Number = 0;
while (i<10) {
if (i%3 == 0) {
i++;
continue;
}
trace(i);
i++;
}
In the following
body and jump to the bottom of the loop, where the condition is tested:
trace("example 2");
var i:Number = 0;
do {
if (i%3 == 0) {
i++;
continue;
}
trace(i);
i++;
} while (i<10);
In a
loop,
for
continue
following example, if the i modulo 3 equals 0, then the
trace("example 3");
for (var i = 0; i<10; i++) {
140
Chapter 5: ActionScript Core Language Elements
ActionScript Core Language Elements
loop,
while
continue
loop,
do while
continue
causes the Flash interpreter to skip the rest of the loop body. In the
causes the Flash interpreter to skip the rest of the loop
causes the Flash interpreter to skip the rest of the loop
trace(i)
CHAPTER 5
statement is skipped:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents