Example
In the following
while
jump to the top of the loop, where the condition is tested:
i = 0;
while (i < 10) {
if (i % 3 == 0) {
i++;
continue;
}
trace(i);
i++;
}
In the following
do..while
and jump to the bottom of the loop, where the condition is tested:
i = 0;
do {
if (i % 3 == 0) {
i++;
continue;
}
trace(i);
i++;
} while (i < 10);
In a
loop,
for
continue
example, if
modulo 3 equals 0, the
i
for (i = 0; i < 10; i++) {
if (i % 3 == 0) {
continue;
}
trace(i);
}
See also
,
,
do..while
for
while
loop,
causes Flash Lite to skip the rest of the loop body and
continue
loop,
continue
causes Flash Lite to skip the rest of the loop body. In the following
trace(i)
causes Flash Lite to skip the rest of the loop body
statement is skipped:
continue
67
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?