Skip to content


ByteArray in Flash slide

I found this ByteArray slides by Lee Brimelow, which he presented at the Flash on the beach.

I knew that low level manipulation is so powerful tool, but had very little idea of how I could use them. This slide shows a good start for a beginner like myself.

Peronally, I used bitwise operators to extract red, green, blue color values. However, with the bitwise operators it works for many other things.

One of samples that Lee Brimelow presented was this:

for (var i=0;i<100;i++) {
    if (i&1) {
        // i is odd
    } else {
        // i is even
    }
}

To check whether the number is odd or even and according to Lee, it’s 600% faster than using the modulus operator.

Posted in News, Programming. Tagged with , , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.