title: Actionscript PNGEncoder performance and UI blocking
body: <p>I'm trying to use PNGEncoder to encode a bitmapData object into a png ByteArray so I can send the data to the server.  Everything would be peachy except the bitmapData is 4000x4000px and when I run the PNGEncoder.encode function on it the whole app stops (UI is blocked) for 5-8 seconds while it runs.  Does anybody have any suggestions on how to not make it block so bad, I read about chunking up the process (since you can't multithread in AS3) but can't find any sample code on chunking up the process.</p>
  
  <p>Thanks,
  Sam</p>