New Video Tutorial on ByteArray Image Decoding

I just finished uploading a new tutorial that shows you how to use the ByteArray class to parse and display images in formats that Flash doesn’t natively support, in this case BMP. In the tutorial I explain how to read a file specification and translate that into ActionScript 3.0 code. If you need an introduction to the ByteArray class you can check out my slides from the recent workshop I did in Amsterdam.

Lee


Commentary

  1. Malith says:

    Hi Lee
    thanks for the tutorial

    can we do the same for play unsupported audio stream ,
    actually i wan to create a flash player to play online radio stream that comes from Microsoft media server, instead play using Media player plugin

    thanks

  2. Todd says:

    outstanding, I love your tutorials. This one was especially what I needed.

  3. Thi says:

    Thanks Lee, really enjoyed it :)

  4. Jeremy White says:

    Is there video from your workshop in Amsterdam?

  5. whizzle says:

    Hey Lee, nice tutorial. Also if you’re worried about the performance from ++x vs x++ you get much better performance in loops using int vs uint. uint should only be used in hex/color math. It’s much slow than int for simple math.

  6. cyb says:

    Hi Lee what about saving the bytearray to a server instead on one’s desktop…could you make a tutorial on that?

  7. Matt says:

    Lee, Great tutorial. I watched a video of this preso online a while back and it was super helpful when trying to dig into this byte array stuff.

    Keep up the good work!

  8. Mathias says:

    Thanks for the awesome tutorial Lee!
    The lower the level programming, the better!!! :D

    how about sharing those fancy wallpapers of yours, don’t be shy!

  9. mehpac says:

    thanks lee, very nice!
    when are you coming to Spain amigo mio ??

  10. khaled says:

    Thanks lee I love it

  11. Matt (MSFX) says:

    great to see you pushing more tuts out Lee :)

  12. personman says:

    Try decoding MIDI.

  13. Clouds says:

    I’m very interested. Can you make another tutorial on low-level bytecode programming for sound?

  14. shani says:

    thanks
    missed your tut’s.
    i would love to see the same for audio

    shani

  15. Rajdeep Rath says:

    There is a major big in flash now days. can some confirm it ?

    1. wordpress uploader does not show proper progress.
    2. Megauploads.com uploader dosent show proper progress.
    3. many more sites that used flash as uploader dont show progress properly anymore.

    It seems the more we are going into the forward direction with action-script , things are getting messier ?

    Bugs that were were present earlier in flash 8 have crept up !

  16. khaled says:

    I am sorry but we are talking about bytearray here not for the bugs
    Nice tutorial lee keep it up

  17. Rajdeep Rath says:

    Yes Mr Lee good tutorial though. @khaled but i couldn’t notice the fact that the more we are moving forward, the glitches are increasing the deployment environment. Being a flash developer it does hurt to see pointing fingers at what one loves.

  18. Rhuno says:

    Great job, Lee, I love your tutorials. Just an FYI on the reason for the padding bytes. It is because it is easier for the processor and bus to handle bytes in multiples of four because of the 32/64 bit architecture. It is an optimization. If anyone wants to get more in depth, please feel free.

  19. C2v says:

    Hey CYB, i’ve the code for doing that. If you want it lemme know mkay?

    :) cheers

  20. Shawn says:

    Great tut dude.

    I’m pretty sure the error at the end there was because you had created an infinite loop.

    You were decrementing a uint in your outer loop, and checking if it’s >= 0. But a uint will ALWAYS be >= 0, after it reaches 0 it loops back around to 4294967295.

Leave a Comment