Symbols > *= (multiplication assignment) |
*= (multiplication assignment)
multiplication assignment, *=
Availability
Flash Player 4.
Usage
expression1*=expression2
Parameters
None.
Returns
Nothing.
Description
Operator (arithmetic compound assignment); assigns expression1 the value of expression1 * expression2. For example, the following two expressions are the same:
x *= yx = x * y
Example
The following example assigns the value 50 to the variable x.
x = 5;y = 10;trace (x *= y);// returns 50
Example
The second and third lines of the following example calculate the expressions on the right-hand side of the equals sign and assign the results to x and y.
i = 5; x = 4 - 6; y = i + 2; trace(x *= y); // returns -14
See also