expression1 /= expression2
Assigns expression1 the value of expression1 / expression2. For example, the following two statements are equivalent:
x /= y; and x = x / y;
expression1 : Number - A number or a variable that evaluates to a number.
expression2 : Number - A number or a variable that evaluates to a number.
Number - A number.
The following code illustrates using the division assignment (/=) operator with variables and numbers:
var x:Number = 10; var y:Number = 2; x /= y; trace(x); // output: 5