Flex plugin build configuration - change target player version

I've just started using IDEA with the Flex integration to build a Flash AS3.0 project, and while I can compile the project from the command-line using the Flex SDK with a wide variety of target player versions, IDEA seems to fix the player version to only 11.1. This is a problem due to the 3rd-party libraries I need to pull in to support older players.

I'm accessing this option from File | Project Structure | Modules | Dependencies | Target Player.

Right now, I have IDEA configured to use the Flex SDK I downloaded myself (version 4.6.0.23201), which is recognised. However the Target Player dropdown only shows 11.1, and I'd like to set it to 10.1 instead.

How can I do this?

3 comments

First of all you need to make sure that the file [Flex SDK]/frameworks/libs/player/10.1/playerglobal.swc exists.
Second, you need to make sure that it is present at Project Structore | SDKs | [your SDK name] | Classpath. Instead of doing this - just delete configured SDK at Project Structure | SDKs and add it again - it will pick all SWCs from the SDK, including all versions of playerglobal.swc.
Third, after previous steps you'll be able to select 10.1 at Project Structure | Modules | [your module] | [your build configuration subnode] | Dependencies tab.

0

Yes, correctly diagnosed. I'm fairly new to Flash development, and the problem was just having a version of the Flex SDK installed that didn't support anything but the player version 11.1.

I just needed to download an earlier version of the Flex SDK and configure IDEA to use it.

Thanks for the help :)

0

You can stay with any version of the Flex SDK and only download playerglobal.swc corresponding to the required Flash Player version: http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html#playerglobal

0

Please sign in to leave a comment.