![]() ![]() | |
Flash Player 4.
expression1*=expression2
None.
Nothing.
Operator (arithmetic compound assignment); assigns expression1 the value of expression1 * expression2. For example, the following two expressions are the same:
x *= yx = x * y
Usage 1: The following example assigns the value 50 to the variable x.
x = 5;y = 10;trace (x *= y);// returns 50
Usage 2: 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
![]() ![]() | |