MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 749

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

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
block is run. If the condition is
the
action's statement block is executed.
while
Looping is commonly used to perform an action while 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
The
statement performs the following series of steps. Each repetition of steps 1–4 is called
while
an iteration of the loop. The
following steps:
The expression
1
If
2
condition
nonzero number, go to step 3.
Otherwise, the
after the
while
Run the statement block
3
Go to step 1.
4
See also
,
do while
continue
with
Availability
Flash Player 5.
Usage
with (object) {
statement(s);
}
Parameters
An instance of an ActionScript object or movie clip.
object
statement(s)
Returns
Nothing.
Description
Statement; lets you specify an object (such as a movie clip) with the
evaluate expressions and actions inside that object with the
prevents you from having to repeatedly write the object's name or the path to the object.
.
true
condition
, the statement block is skipped and the first statement after
false
is no longer
condition
is evaluated.
condition
evaluates to
or a value that converts to the Boolean value
true
statement is completed and execution resumes at the next statement
while
loop.
statement(s)
,
,
for
for..in
An action or group of actions enclosed in curly braces.
is tested; if the test returns
, and the loop ends.
true
is retested at the beginning of each iteration, as in the
.
statement(s)
, the statement
true
, such as a
true
parameter and
object
parameter. This
with
749

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Table of Contents