Availability: ActionScript 1.0; Flash Player 4
Parameters
condition:Boolean
code are executed as long as the
Example
The following example uses a
traces
until
myVar
myVar
var myVar:Number = 0;
do {
trace(myVar);
myVar++;
}
while (myVar < 5);
/* output:
0
1
2
3
4
*/
See also
break statement
dynamic statement
dynamic class className [ extends superClass ] [ implements interfaceName[,
interfaceName... ] ] {
// class definition here
}
Specifies that objects based on the specified class can add and access dynamic properties at
runtime.
Type checking on dynamic classes is less strict than type checking on nondynamic classes,
because members accessed inside the class definition and on class instances are not compared
with those defined in the class scope. Class member functions, however, can still be type
checked for return type and parameter types. This behavior is especially useful when you work
with MovieClip objects, because there are many different ways of adding properties and
objects to a movie clip dynamically, such as
MovieClip.createTextField()
- The condition to evaluate. The
condition
loop to evaluate whether a condition is
do..while
is greater than 5. When
.
statement(s)
parameter evaluates to
is greater than 5, the loop ends.
myVar
MovieClip.createEmptyMovieClip()
within the
block of
do
.
true
true,
and
Statements
and
203
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?