var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(bmpData);
以上是报告错误:我需要导入哪个包才能在Flash中使用JPGEncoder?
Type was not found or was not a compile-time constant: JPGEncoder.
Call to a possibly undefined method JPGEncoder.
@phwd已经回答了你的问题,但是当你需要进一步的说明,这个博客文章可能会让你感兴趣:http://henryjones.us/articles/using-the-as3-jpeg-encoder – 2010-07-02 17:16:12
@nikc,几乎在那里,但我真的是新的闪光,似乎有什么东西是失踪时我尝试导入那个包... – ieplugin 2010-07-02 18:03:15