Improved Flex Project Setup in IntelliJ IDEA 11.1
Hi, Flash and Flex devs!
We’ve been analyzing feedback from those of you who use IntelliJ IDEA for Flex and ActionScript development. A common problem turns out to be complicated project setup. To address this issue in IntelliJ IDEA 11.1, we have reworked the user interface, all the way from module wizard and project setup to run/debug configurations and AIR Packaging.
We believe these changes will make product experience better for everyone, and especially for the users of Eclipse-based IDEs.
Read on to see what we’ve changed so far. However, this isn’t final, as we count on more feedback from you to make additional improvements and polishing.
Introducing a new fundamental concept: build configuration. Build configuration is a set of parameters that define how to produce SWF or SWC, HTML wrapper, AIR descriptor and installer, Android and iOS package from the module source. ActionScript/Flex module can have one or more build configurations, thus allowing you to use the same code base to produce apps/libs for different target platforms (Web, Desktop or Mobile), pure AS3 or Flex based app/lib, use different SDKs, specific compiler options, etc.
You no longer need to create different types of SDKs depending on your target platform. Now you just define the Flex SDK, and IntelliJ IDEA will automatically choose the correct subset of SWCs for each build configuration.
The screenshot below shows a project with 2 modules: one of them (CommonLibs) produces a single pure ActionScript library, while the other (MyApp) has 3 Flex application build configurations: Mobile-, Desktop- and Web-targeted.
Build configurations give you an easy start with a small test project, as well as all the power to set up a huge multi-module enterprise level project with complex dependencies and various compiler options.
At this point you might ask: how are source files highlighted if the corresponding module has several contradictory build configurations? The answer is in the status bar (and the same item in the context menu) – there you can select which of the configurations is used to highlight module sources:
Hint: You can switch build configurations very quickly if you assign a keyboard shortcut to the action.
Run/debug configurations were redesigned as well. Now there is a ‘Flash App’ run configuration type that allows launching your app in the browser, on the desktop, mobile emulator or Android device, according to the selected build configuration:
IntelliJ IDEA 11.1 will open your Flex project and convert it to the new settings on the fly (having backed up previous settings), so it’s easy to start using new features in no time!
Happy Flash coding!
Subscribe to Blog updates
Top 10 UI Updates in IntelliJ IDEA for 2023
Hey there, fellow developers! Today, we want to share the most significant UI updates from 2023 that have transformed how IntelliJ IDEA looks and functions. New UI Of course, the highlight of our recent updates was the launch of our new, clean, and modern UI. This was first announced at the en…
The What, Why, and How of JPA Buddy in IntelliJ IDEA
Master JPA entity management with JPA Buddy in IntelliJ IDEA! Our latest article shows you how to simplify your workflow and reduce boilerplate code.
The Best of IntelliJ IDEA’s HTTP Client
In today's fast-paced tech world, easy and efficient management of web services and APIs is crucial. That's where IntelliJ IDEA's HTTP Client steps in, turning complex HTTP requests into a walk in the park. The HTTP Client is a feature-rich, text-based tool in IntelliJ IDEA Ultimate. It seamlessl…
Import Postman Collections to the HTTP Client
We know that many of you use Postman collections and want to stay in the flow while working with them. This means staying inside IntelliJ IDEA and not switching to a different app. Great news! You can now effortlessly transform Postman collections into .http and use them in the HTTP Client …