IntelliJ IDEA 2018.2 Help

ActionScript & Flex Compiler

File | Settings | Build, Execution, Deployment | Compiler | ActionScript and Flex Compiler for Windows and Linux
IntelliJ IDEA | Preferences | Build, Execution, Deployment | Compiler | ActionScript and Flex Compiler for macOS


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 checkbox 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 icons general expandComponent svg next to the field to access the Flex Compiler VM options dialog where the text entry area is larger.

When specifying JVM 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 spaces in double quotes, for example, some" "arg or "some arg".

  • If an option includes double quotes (as part of the argument), escape the double quotes using backslashes, for example, -Dmy.prop=\"quoted_value\".

  • You can pass environment variable values to custom Java properties. For example, if you define a variable MY_ENV_VAR, you can pass it to the foo property as follows:

    -Dfoo=${MY_ENV_VAR}

Last modified: 20 November 2018

See Also

Language and Framework-Specific Guidelines:

External Links: