Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript language elements > Operators > /= division assignment operator | |||
expression1 /= expression2
Assigns expression1 the value of expression1 / expression2. For example, the following two statements are equivalent:
x /= y; x = x / y;
Availability: ActionScript 1.0; Flash Player 4
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
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001271.html