Copy link to clipboard
Copied
Hello Flash community.
I'm using ADOBE AIR 17 and I have problem with embed image with compression.
my code is here:
[Embed(mime Type="image/jpeg", source="test.jpg", compression="true", quality="80")] and compiler has problem
Error message:
Error: Could not find definition flash.utils.Bitmap referenced by embedded source C:\test.jpg.
Error: The definition of base class Bitmap was not found.
when I embed only this, working correctly [Embed(source="test.jpg")]
Thank you for any ideas.
Copy link to clipboard
Copied
Moved to AIR development
Copy link to clipboard
Copied
Wouldn't you compress the JPG at 80 quality before embedding, in your image editor?
Copy link to clipboard
Copied
Have you tried using PNG?
As the Documentation states:
compression=true|false | For lossless images only (GIF and PNG) specifies to compress the embedded image in the generated SWF file. |
Find more inspiration, events, and resources on the new Adobe Community
Explore Now