ActionScript and Flex
In this section:
- ActionScript and Flex
- Getting started with ActionScript, Flex or AIR application development
- Import Adobe Flash Builder projects
- Create and Edit Flex application elements
- Work with build configurations
- Configure dependencies for modular applications
- Build ActionScript and Flex applications
- Run and debug ActionScript and Flex applications
- Package AIR applications
- Test ActionScript and Flex applications
- ActionScript-Specific refactorings
Basics
To support ActionScript and Flex, IntelliJ IDEA provides:
The Flash/Flex Support plugin. This plugin is bundled with the IDE and must be enabled.
A dedicated module type (Flash).
Build configurations for the various target platforms (Web, Desktop and Mobile) and output types (SWF and SWC).
Dedicated run/debug configuration types (Flash App, FlexUnit and Flash Remote Debug).
The ActionScript Profiler and Flash UI Designer plugins. These plugins are available for download from the JetBrains repository. For more information, see Profiling CPU in Flash and Flex Applications. See also, Manage plugins.
ActionScript and Flex support
ActionScript and Flex support includes:
Code completion, including completion of statements Ctrl+Shift+Enter and Smart Type completion Ctrl+Shift+Space.
Error and syntax highlighting.
- ActionScript and Flex code refactorings:
Delegate Methods.
Move Inner to Upper Level for moving classes, functions, variables, constants and namespaces declared outside of packages into a package.
Move/Copy a file.
Pull members up, push members down, Pull members up, push members down.
Rename a file, function, variable, parameter, property or label (both directly and via references).
Safe delete a file.
ActionScript and Flex code inspections and quick-fixes.
Intention actions for creating various application elements.
Code formatting and folding.
Advanced Search and Navigation, plus Structure View.
Enhanced navigation with gutter icons.
Navigation from CSS properties and selectors to their declarations in ActionScript Ctrl+B.
Possibility to build ActionScript and Flex applications using various compiler shells and compilation options.
Support for breakpoints and specific run/debug configurations for debugging ActionScript and Flex applications directly from IntelliJ IDEA.
ActionScript and Flex-aware debugger that lets you execute applications step by step, evaluate expressions, examine related information and find runtime bugs.
Quick Javadoc Ctrl+Q for AsDoc.
BlazeDS support.
AIR application development support at all stages of application development cycle. Development of AIR applications for mobile devices is also supported. For basic how-to information, see New in IntelliJ IDEA 10.5: Develop Mobile AIR Applications for Android.
Possibility to create pure ActionScript applications.
ActionScript live templates: File | Settings | Live Templates | ActionScript and JavaScript groups.
Ability to wrap and unwrap code constructs in ActionScript and MXML Ctrl+Alt+T and Ctrl+Shift+Delete.
Type Hierarchy Ctrl+H, Method Hierarchy Ctrl+Shift+H and Call Hierarchy Ctrl+Alt+H for Flex sources (.mxml and .as files).
Easy import of Flex projects created in Adobe Flash Builder.
Import of Flexmojos projects. See the description of related import setting.
ActionScript and Flex UML class diagrams. Among the features is the ability to view changes in ActionScript source files in a structured visual form.
FlexUnit support
IntelliJ IDEA supports the versions 0.9 and 4 of FlexUnit, a unit testing framework for Flex and ActionScript applications and libraries.
FlexUnit support includes:
Dedicated FlexUnit run/debug configurations to run a single test method, test suite, all methods in a certain test class, or all test classes in a given package.
Ability to perform the tests both in the run and the debug modes.
Support for Flunit tests via FlexUnit 4 test runner.
FlexUnit-aware code inspections (turned off by default).