title: Which package do I need to import to use JPGEncoder in flash?
body: <pre><code>var jpgEncoder:JPGEncoder = new JPGEncoder(85);
  var jpgStream:ByteArray = jpgEncoder.encode(bmpData);
  </code></pre>
  
  <p>The above is reporting error:</p>
  
  <pre><code>Type was not found or was not a compile-time constant: JPGEncoder.
  Call to a possibly undefined method JPGEncoder.
  </code></pre>