/= 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

Operands

expression1 : Number - A number or a variable that evaluates to a number.

expression2 : Number - A number or a variable that evaluates to a number.

Returns

Number - A number.

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 operator


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