Dynamic Statement - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash lite 2

Table of Contents