User Guide

56 Chapter 2: ActionScript Language Reference
/= (division assignment)
Availability
Flash Player 4.
Usage
expression1 /= expression2
Parameters
expression1,expression2
A number or a variable that evaluates to a number.
Returns
A number.
Description
Operator (arithmetic compound assignment); assigns expression1 the value of expression1 /
expression2. For example, the following two statements are equivalent:
x /= y
x = x / y
For more information, see “Operator precedence and associativity” in Using ActionScript in Flash.
Example
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
See Also
/ (division)