var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(bmpData);
The above is reporting error:
Type was not found or was not a compile-time constant: JPGEncoder.
Call to a possibly undefined method JPGEncoder.