【发布时间】:2010-07-02 16:55:23
【问题描述】:
var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(bmpData);
以上是报错:
Type was not found or was not a compile-time constant: JPGEncoder.
Call to a possibly undefined method JPGEncoder.
【问题讨论】:
-
@phwd 已经回答了您的问题,但是当您需要进一步说明时,您可能会对这篇博文感兴趣:henryjones.us/articles/using-the-as3-jpeg-encoder
-
@nikc,差不多了,但我真的是 flash 新手,当我尝试导入该包时似乎缺少某些东西......