Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Operators > %= (modulo 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 equivalent:
x %= yx = x % y
The following example assigns the value 4 to the variable x:
x = 14;y = 5;trace(x %= y);// output: 4
|
|
|
|