![MACROMEDIA FLASH 8-FLASH Reference Download Page 81](http://html2.mh-extra.com/html/macromedia/flash-8-flash/flash-8-flash_reference_3347197081.webp)
and
81
+= (addition assignment)
Availability
Flash Lite 1.0.
Usage
expression1
+=
expression2
Operands
expression1, expression2
Numbers or strings.
Description
Operator (arithmetic compound assignment); assigns
expression1
the value of
expre expression2
. For example, the following two statements have the
same result:
x += y;
x = x + y;
All the rules of the addition (
+
) operator apply to the addition assignment (
+=
) operator.
Example
The following example uses the addition assignment (
+=
) operator to increase the value of
x
by the value of
y
:
x = 5;
y = 10;
x += y;
trace(x);// output: 15
See also
+ (numeric add)
and
Availability
Flash Lite 1.0.
Usage
condition1
and
condition2
Operands
condition1, condition2
Conditions or expressions that evaluate to
true
or
false
.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...