Question: Is there a simple way (library function) to perform bitwise OR or OR for numbers larger than 32-bits in ActionScript?
From the docs: “Bitwise operators internally manipulate floating point numbers to change them to 32-bit integers. The exact operation performed depends on the operator, but all bitwise operations evaluate each binary digit (bit) of a 32-bit integer separately to calculate a new value . "
Bummer ...
I can not use and and | ops - does AS function as a library for this for numbers?
Features: I am moving a bunch of java to flex, and java supports a bunch of "long" masks. I know that I can separate Java masks into two types from the flexible side. Since all my manipulations with the mask are localized, this will not be too painful. However, I would like to keep the port as 1-1 as possible.
Any suggestions? Thanks!
source share