787
APPENDIX B
Operator Precedence and Associativity
This table lists all of the ActionScript operators and their associativity, from highest to
lowest precedence.
Operator Description Associativity
Highest precedence
+ Unary plus Right to left
- Unary minus Right to left
~ Bitwise NOT Right to left
! Logical NOT Right to left
not Logical NOT (Flash 4 style) Right to left
++ Post-increment Left to right
-- Post-decrement Left to right
( ) Function call Left to right
[ ] Array element Left to right
. Structure member Left to right
++ Pre-increment Right to left
-- Pre-decrement 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
+Add Left to right