244 Chapter 12: ActionScript Dictionary
/= (division assignment)
Availability
Flash Player 4.
Usage
expression1 /= expression2
Parameters
expression1,expression2
A number or a variable that evaluates to a number.
Returns
Nothing.
Description
Operator (arithmetic compound assignment); assigns expression1 the value of expression1 /
expression2. For example, the following two statements are the same:
x /= y
x = x / y
Example
The following code illustrates using the /= operator with variables and numbers.
x = 10;
y = 2;
x /= y;
// x now contains the value 5
[] (array access)
Availability
Flash Player 4.
Usage
my_array = ["a0", a1,...aN]
myMultiDimensional_array = [["a0",...aN],...["a0",...aN]]
my_array[E] = value
myMultiDimensional_array[E][E] = value
object["value"]
Parameters
my_array
The name of an array.
a0, a1,...aN Elements in an array.
myMultiDimensional_array The name of a simulated multidimensional array.
E The number (or index) of an element in an array.
object The name of an object.
value A string or an expression that evaluates to a string that names a property of the object.