Reputation: 43
When I run this code
var jpgEncoder:JPGEncoder = new JPGEncoder(100);
It returns this error
Type was not found or was not a compile-time constant: JPGEncoder. Call to a possibly undefined method JPGEncoder.
Flash doesn't recognise "JPGEncoder" as a keyword.
Can someone help me please?
Upvotes: 0
Views: 1204
Reputation: 646
JPGEncoder is not a keyword, but a class you'll need to import to utilize.
Download JPGEncoder from as3corelib and import it into your program using
import com.adobe.images.JPGEncoder;
Upvotes: 1