How do mx.graphics.codec.JPEGEncoder and com.adobe

2019-09-19 00:16发布

问题:

Basically that's the question - how do mx.graphics.codec.JPEGEncoder and com.adobe.images.JPGEncoder relate to each other?

回答1:

The former is included in the Flash Player 10.1 ActionScript core library, while the latter is part of as3corelib, an open source ActionScript library.

Both are developed and distributed by Adobe, and the API seems to be identical (at least at first glance) so my guess is they compiled the functionality of the as3corelib class into the core library. Have a look at this demo project comparing both classes (and some more codecs)