About operators
181
The following table lists all the ActionScript operators and their associativity, from highest to
lowest precedence. For more information and guidelines on using operators and parentheses,
see
Chapter 19, “Formatting ActionScript syntax,” on page 764
.
Operator
Description
Associativity
Highest precedence
x
++
Post-increment
Left to right
x
--
Post-decrement
Left to right
.
Object property access
Left to right
[ ]
Array element
Left to right
( )
Parentheses
Left to right
function ( )
Function call
Left to right
++
x
Pre-increment
Right to left
--
x
Pre-decrement
Right to left
-
Unary negation, such as x = -1
Left to right
~
Bitwise NOT
Right to left
!
Logical NOT
Right to left
new
Allocate object
Right to left
delete
Deallocate object
Right to left
typeof
Type of object
Right to left
void
Returns undefined value
Right to left
*
Multiply
Left to right
/
Divide
Left to right
%
Modulo
Left to right
+
Unary plus
Right to left
-
Unary minus
Right to left
<<
Bitwise left shift
Left to right
>>
Bitwise right shift
Left to right
>>>
Bitwise right shift (unsigned)
Left to right
instanceof
Instance of (finds the class of which the object is
an instance)
Requires Flash Player 6 or later
Left to right
<
Less than
Left to right
Summary of Contents for FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Page 1: ...Learning ActionScript 2 0 in Flash...
Page 8: ...8 Contents...
Page 18: ...18 Introduction...
Page 30: ...30 What s New in Flash 8 ActionScript...
Page 66: ...66 Writing and Editing ActionScript 2 0...
Page 328: ...328 Interfaces...
Page 350: ...350 Handling Events...
Page 590: ...590 Creating Interaction with ActionScript...
Page 710: ...710 Understanding Security...
Page 730: ...730 Debugging Applications...
Page 780: ...780 Deprecated Flash 4 operators...
Page 830: ...830 Index...