Targeting Flash Player versions

Use the target-player compiler option to specify the version of Flash Player that you want to target with the application. Features requiring a later version of Flash Player are not compiled into the application.

One reason for setting the target Player version is if you are unsure of Player usage penetration rates and want to choose a Player version that is lower than the most recent one. Another reason is if your users are locked in to a particular Player version, such as when they are on an intranet and cannot upgrade.

The target-player option has the following syntax:


The major_version is required while minor_version and revision are optional. If you do not specify the minor_version or revision, the compiler uses zero.

For Flex 4.0, the only supported value of the target-player option is 10.0.0. For Flex 4.1, the default value is 10.1.0. For Flex 4.5, the default value is 10.2.0. For Flex 4.6, the default value is 11.1.

The minimum value for Flex 4.6 is 11.1. The minimum value for Flex 4.5 is 10.2.0. For Flex 4.0 and 4.1, the minimum value is 10.0.0 (although Flex 4.1 included Player 10.1).

If you do not explicitly set the value of this option, the compiler uses the default from the flex-config.xml file.

SWF version (advanced)

The swf-version compiler option specifies the SWF file format version of the output SWF file. Features requiring a later version of the SWF file format are not compiled into the application. This is different from the Player version in that it refers to the SWF specification versioning scheme.

For example, to compile an application to version 10 of the SWF specification, use the following:

This is an advanced option that you should only use if you have an understanding of the SWF specification that you are targeting. For information about the SWF specifications, visit the SWF Technology Center.