IntelliJ IDEA 14.0.0 Web Help

Compiler: ActionScript & Flex Compiler

File | Settings | Build, Execution, Deployment | Compiler | ActionScript and Flex Compiler


Use the Compiler > ActionScript and Flex Compiler page to select the Flex compiler for your project and to specify the associated settings.

Item Description
Compile with Select which of the available Flex compilers should be used:
  • Built-in compiler shell. An IntelliJ IDEA compiler shell which uses the Flex SDK compiler API.

    This compiler shell can perform incremental compilations. As a multithreaded shell, it is capable of running a number of compilations simultaneously, in parallel.

  • Mxmlc/compc. The mxmlc / compc compiler available in Flex SDK.

    This compiler cannot compile incrementally. However, it can run several independent compilation processes simultaneously which significantly improves the compilation performance.

Whichever of the compiler options you use, IntelliJ IDEA keeps track of the modules where nothing has changed since the previous compilation. Consequently, the SWF and SWC files that are up-to-date are not compiled.

Prefer ActionScript Compiler 2.0 for pure ActionScript build configurations If this check box is selected, the ActionScript Compiler 2.0 (ASC 2.0) is used for pure ActionScript build configurations.
Parallel compilation with up to <this_many> threads or processes Specify the maximum number of compilation threads (for the built-in compiler shell) or processes (for the mxml/compc compiler) to run simultaneously.
Compiler heap size Specify the maximum heap size available to the process that launches the compiler.

The default 512 Mb is suitable for most of the purposes. However, the built-in compiler shell, as a single-process compiler, may require more memory for large projects.

VM options If necessary, type the string to be passed to the VM when IntelliJ IDEA launches the compiler.

If you need more room to type, click shift-enter-button.png next to the field to access the Flex Compiler VM options dialog where the text entry area is larger.

When specifying the options, follow these rules:

  • Use spaces to separate individual options, for example, -client -ea -Xmx1024m.
  • If an option includes spaces, enclose the spaces or the argument that contains the spaces in double quotes, for example, some" "arg or "some arg".
  • If an option includes double quotes (e.g. as part of the argument), escape the double quotes by means of the backslashes, for example, -Dmy.prop=\"quoted_value\".

See Also

Language and Framework-Specific Guidelines:

External Links:

Web Resources:

Last modified: 4 December 2014
comments powered by Disqus