I’m trying to include the following class in my Flash project:
import flash.display.JPEGXREncoderOptions;
According to the official documentation, this is available as of Flash Player 11.3. I’ve set up FDT to use playerglobal.swc from 11.3 (and indeed, I can see the class inside the SWC from FDT’s browser inside my project). This also compiles fine. However, I get the following runtime error when I try to run the output SWF:
Error #1014: Class flash.display::JPEGXREncoderOptions could not be found.
I’ve verified that the Flash Player I’m running the .swf with is indeed 11.3 – to be more specific, 11.3.300.265. I’m running on Windows 7 64-bit, with the debug player.
Am I missing something here? Do I need to set up something else?
I’m guessing you’re missing the correct
-swf-versioncompiler flag (which you can set in the Debug Configurations and choosing the right compiler flag radio so you can edit the flags as needed)For example, in Flash Player 11.4
-swf-version=17, so I imagine for Flash Player 11.3 it’s something like 15 or 16.