Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Operators > *= (multiplication assignment) | |||
Flash Lite 1.0.
expression1*=expression2
expression1, expression2 Numbers or expressions that evaluate to numbers.
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); // output: 50
Usage 2: The second and third lines of the following example calculate the expressions on the right side of the equals sign (=) and assign the results to x and y:
i = 5; x = 4 - 6; y = i + 2; trace(x *= y); // output: -14
|
|
|
|