Posts Tagged ‘ flash

misperception of H.264 on the Flash

It’s a very good read.

As he pointed out in his blog post, I think for some reasons many people seem to believe in HTML5 video without knowing the fact that there is *no standard in the video codec* yet.

We all know that Apple is pursuing H.264 for video codec as a standard, but there is still possibility not all browser vendors agree to use one video codec in the next several years for whatever reasons. Also there will be always newer codec that replaces H.264 and what will happen to the unofficial video codec standard?

As for the video player itself, video tag provides limited feature set whileas Flash player can have rich feature sets. In order to add new features to the video player (video tag), browser has to be upgraded whileas Flash author can upgrade the feature sets more freely.

I just feel that web is still messy and will be as it was as developers worked to fix compatibility issues between IE and Netscape. Now it’s another form of incompatibility issue.

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.