MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE Reference page 75

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

Advertisement

Parameters
The expression that is evaluated each time the
condition
The instructions to execute when the condition evaluates to
statement(s)
Description
Statement; tests an expression and runs a statement or series of statements repeatedly in a loop
as long as the expression is
Before the statement block is run, the condition is tested; if the test returns
statement block is run. If the condition is
statement after the
while
Looping is commonly used to perform an action when a counter variable is less than a
specified value. At the end of each loop, the counter is incremented until the specified value is
reached. At that point, the condition is no longer
The
statement performs the following series of steps. Each repetition of steps 1 through
while
4 is called an iteration of the loop. The condition is tested at the beginning of each iteration:
1.
The expression
condition
2.
If
evaluates to
condition
a nonzero number, go to step 3.
Otherwise, the
while
after the
loop.
while
3.
Run the statement block
4.
Go to step 1.
Example
The following example executes a loop as long as the value of the index variable
than 10:
i = 0;
while(i < 10) {
trace ("i = " add ++i);// Output: 1,2,3,4,5,6,7,8,9
}
See also
,
continue
do..while
.
true
false
statement's statement block is executed.
is evaluated.
or a value that converts to the Boolean value
true
statement completes and execution resumes at the next statement
statement(s)
,
for
while
, the statement block is skipped and the first
, and the loop ends.
true
.
statement executes.
.
true
, the
true
, such as
true
is less
i
while
75

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?

Questions and answers

Table of Contents