For - MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 1.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

for

Availability
Flash Lite 1.0.
Usage
for (init; condition; next) {
statement(s);
}
Parameters
An expression to evaluate before beginning the looping sequence, typically an
init
assignment expression.
An expression that evaluates to
condition
before each loop iteration; the loop exits when the condition evaluates to
An expression to evaluate after each loop iteration; usually an assignment expression
next
using the increment (
One or more instructions to execute in the loop.
statement(s)
Description
Statement; a loop construct that evaluates the
begins a looping sequence by which, as long as the
is executed, and the next expression is evaluated.
Some properties cannot be enumerated by the
movie clip properties, such as
Example
The following example uses the
sum = 0;
for (i = 1; i <= 100; i++) {
sum = sum + i;
}
See also
,
++ (increment)
–– (decrement)
) or decrement (--) operator.
++
and
, are not enumerated.
_x
_y
loop to sum the numbers from 1 to 100:
for
,
do..while
or
. The condition is evaluated
true
false
(initialize) expression once and then
init
evaluates to
condition
or
statements. For example,
for
for..in
,
while
.
false
,
true
statement
for
71

Advertisement

Table of Contents
loading
Need help?

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?

Table of Contents