Adobe ended support for Flash Player on December 31, 2020. However, contributors to OpenFL often test their changes with old versions of Adobe Flash Player to ensure backwards compatibility. The instructions below explain how that can be done.
If you want to target web browsers with OpenFL, consider following the Setup HTML5 instructions instead.
There is no automatic setup available for the Flash target.
There is generally no setup required for the Flash target. However, you will need the standalone version of Adobe Flash Player (the plugin for web browsers is no longer available). You should download a “Content Debugger” version of the standalone Flash Player on your system, configured as your operating system’s default application for *.swf files:
Build & Run
To compile a Flash .swf file, run
lime build flash. Add the
-debug option to create a build that can connect to a SWF debugger. Add the
-release option to create a release build.
To compile and launch a Flash .swf file with one command, run
lime test flash.
Using SWC libraries
<haxeflag name="-swf-lib" value="libs/example.swc"/>
If you encounter any problems when setting up Lime for Flash, please visit the forums.