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