User Guide

190 ActionScript language elements
Example
The following example uses a do..while loop to evaluate whether a condition is true, and
traces
myVar until myVar is greater than 5. When myVar is greater than 5, the loop ends.
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.createEmptyMovieClip() and
MovieClip.createTextField().
Subclasses of dynamic classes are also dynamic.
Availability: ActionScript 2.0; Flash Lite 2.0