[Flashcoders] Strange behaviour ByteArray to BitmapData object

2009-03-16 Thread Jiri
I came across some very weird behaviour and I can't seem to find an explanation for it. I am trying to write a class that will store compressed ByteArrays that are retreive throught the bitmapData.getPixels. Here is some testing code, that I wrote for the testing if a decompressed ByteArray can

Re: [Flashcoders] Strange behaviour ByteArray to BitmapData object

2009-03-16 Thread Romuald Quantin
Did you try myByteArray.position = 0 before reading it ? You can try to use a Loader.loadBytes to instantiate a Bitmap (it uses a loader but it takes no time). Do you load the picture before storing the bytes? If it is helping, I built a loader that is storing bytes for a cache system and

Re: [Flashcoders] Strange behaviour ByteArray to BitmapData object

2009-03-16 Thread Jiri
Thank you. The position=0 seems to do the trick. I actually read over it in the documentation. RTFM should be RTFMW(ell) !! :) Little tips if you want to test, instead of using setPixels to fill your Bitmap, using graphics.beginBitmapFill seems quicker and less CPU intensive (test it, I'm

[Flashcoders] Job Opening with OPUBCO Communications Group in Oklahoma City, Oklahoma

2009-03-16 Thread Eric Johnson
OPUBCO Communications Group is looking for experienced Actionscript Programmers in and around the Oklahoma City area. The successful candidates will be responsible for working with Designers and Developers to create next generation widgets, browser-based applications and desktop applications

Re: [Flashcoders] Job Opening with OPUBCO Communications Group in Oklahoma City, Oklahoma

2009-03-16 Thread Linda Weller
Can this position be done virutally?  -Linda --- On Mon, 3/16/09, Eric Johnson ejohn...@opubco.com wrote: From: Eric Johnson ejohn...@opubco.com Subject: [Flashcoders] Job Opening with OPUBCO Communications Group in Oklahoma City, Oklahoma To: flashcoders@chattyfig.figleaf.com Date: Monday,