(Division Assignment) - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

/= (division assignment)

Availability
Flash Player 4.
Usage
expression1 /= expression2
Parameters
expression1,expression2
Returns
A number.
Description
Operator (arithmetic compound assignment); assigns
. For example, the following two statements are equivalent:
expression2
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 (
numbers:
var x:Number = 10;
var y:Number = 2;
x /= y;
trace(x); // output: 5
See Also
/ (division)
56
Chapter 2: ActionScript Language Reference
A number or a variable that evaluates to a number.
the value of
expression1
operator with variables and
/=)
expression1 /

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash mx

Table of Contents