With - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

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).
To set a variable inside a
statement, or you must enter the full path to the Timeline on which you want the variable to live.
If you set a variable in a
value according to the scope chain. If the variable doesn't already exist, the new value will be set
on the Timeline from which the
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, you must have declared the variable outside the
with
statement without declaring it, the
with
statement was called.
with
ActionScript Language Reference
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 2
parameter and
object
parameter. This
is
, and two of the
my_array
is
object
state.california
california
statement.
with
statement.
with
statement will look for the
with
,
with
with 1007

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents