title: cahcing flash recorded audio in a bytearray on client
body: <p>I am building a small flash application to record audio from the client's computer. I wish to be able to use the microphone, store the recorded information in a byte array and then send it onwards. I saw the following piece of code that works fine with the camera:</p>
  
  <blockquote>
  <pre><code>        var _loc_1:BitmapData;
          var _loc_2:ByteArray;
          _loc_1 = new BitmapData(video.width, video.height, false, 13421772);
          _loc_1.draw(video, new Matrix());
  
          _loc_2 = PNGEncoder.encode(_loc_1);
          return Base64.encodeByteArray(_loc_2);
  </code></pre>
  </blockquote>
  
  <p>In order for this to work with audio I need classes like BitmapData and PNGEncoder that will work with audio and not just images \ video. Do you know of any such classes? Is it even possible?</p>