with
Availability
Flash Player 5.
Usage
with (object: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.
The
parameter becomes the context in which the properties, variables, and functions in
object
the
statement(s)
properties specified are
.
my_array
length
any actions or statements inside the
instance.
To find the value of an identifier in the
beginning of the scope chain specified by the
of the scope chain, in a specific order.
The scope chain used by the
following list and continues to the last item:
•
The object specified in the
•
The object specified in the
•
The Activation object. (A temporary object that is automatically created when a function is
called that holds the local variables called in the function.)
•
The movie clip that contains the currently executing script.
•
The Global object (built-in objects such as Math and String).
230
Chapter 5: ActionScript Core Language Elements
ActionScript Core Language Elements
An action or group of actions enclosed in curly braces ({}).
parameter are read. For example, if
and
length
concat
and
my_array.concat
with
statement to resolve identifiers starts with the first item in the
with
parameter in the innermost
object
parameter in the outermost
object
statement(s)
object
, those properties are automatically read as
. In another example, if
statement are called from inside the
parameter, ActionScript starts at the
statement(s)
and searches for the identifier at each level
object
CHAPTER 5
parameter and
object
parameter. This
is
, and two of the
my_array
is
object
state.california
california
statement.
with
statement.
with
,
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?