With Statement - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

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

Advertisement

Parameters
condition:Boolean
Example
In the following example, the
of
is less than 20, the value of
i
exits.
var i:Number = 0;
while (i < 20) {
trace(i);
i += 3;
}
The following result is displayed in the Output panel.
0
3
6
9
12
15
18
See also
continue statement

with statement

with (object:Object) { statement(s); }
Lets you specify an object (such as a movie clip) with the
expressions and actions inside that object with the
you from having to repeatedly write the object's name or the path to the object.
The
parameter becomes the context in which the properties, variables, and functions
object
in the
statement(s)
properties specified are
.
and
my_array
length
, any actions or statements inside the
state.california
inside the
california
To find the value of an identifier in the
beginning of the scope chain specified by the
level of the scope chain, in a specific order.
- An expression that evaluates to
statement is used to test an expression. When the value
while
is traced. When the condition is no longer
i
parameter are read. For example, if
and
length
concat
. In another example, if
my_array.concat
instance.
statement(s)
or
true
false
object
statement(s)
object
, those properties are automatically read as
statement are called from
with
parameter, ActionScript starts at the
and searches for the identifier at each
object
.
, the loop
true
parameter and evaluate
parameter. This prevents
is
, and two of the
my_array
is
object
Statements
223

Advertisement

Table of Contents
loading

Table of Contents