Author Archive

Speed up Flex Compilation!

Friday, February 26th, 2010

If you work on large projects with dozens of Flex modules (or facets) you’ll like this new feature of IntelliJ IDEA 9.0.2, which lets shorten project build time by compiling several independent Flex modules (facets) in parallel.

To enable this feature go to Settings (Ctrl+Alt+S), Compiler node and then Flex Compiler page:

Let’s have a closer look at this feature. (more…)

Live Templates in JavaScript/ActionScript/Flex

Thursday, January 28th, 2010

Writing JavaScript/ActionScript/Flex code becomes easier with upcoming IntelliJ IDEA 9.0.2. New set of live templates (see Settings dialog (Ctrl+Alt+S), Live Templates, JavaScript/ActionScript group), allows to avoid tedious typing when you need to loop over an Array, Vector or anything else. Luckily, some abbreviations are the same as with Java: iter, itar, ritar. Here’s the list of currently available live templates:

Abbreviation Description
iter Iterate (for each..in)
itin Iterate (for..in)
itar Iterate elements of array
ritar Iterate elements of array in reverse order

(more…)

Flex SDK Sources and Flexmojos Projects

Monday, January 18th, 2010

If you are working with Flexmojos Maven projects in IntelliJ IDEA 9, and have imported Flexmojos project as described in this post, and are planning to debug your application and browse through Flex SDK sources, this post is a must-read for you. Inside you will find details on how to configure IntelliJ IDEA so that it properly recognizes SDK sources and their ASdocs.

(more…)

GraniteDS Projects with IntelliJ IDEA 9

Monday, November 30th, 2009

GraniteDS technology allows to create enterprise web applications with Flex at client side and Java at server side. With IntelliJ IDEA you can develop GraniteDS projects with complete coding assistance both for Flex and Java, compile, deploy, run, and debug both client and server side in just few clicks!

Let’s create an IntelliJ IDEA project for Hello World example from GraniteDS developer guide. You may configure a project yourself or download it here
(more…)

Generating Flex Methods

Friday, October 23rd, 2009

In Maia, you can easily generate Flex Constructor, Getter, Setter, Event Handler, and toString() methods, and some other stuff by just pressing Alt+Insert when cursor is in *.mxml or *.as file. Let’s have a look at some examples.
(more…)

Import Flexmojos Projects to IntelliJ IDEA 9

Monday, September 28th, 2009

Integration with Flex projects that are set up using Flexmojos Maven plugin is very much improved in IntelliJ IDEA 9 (Maia).

If you are using Flexmojos version 3.4 or higher, then the only thing you need to do to import your Flexmojos project to IntelliJ IDEA is to click New Project on the File menu and select your pom.xml file.

That’s all! Right after that you have full coding assistance, ability to compile your project in the same way as Maven does, and to run and debug your application in IntelliJ IDEA.

Note: get more information about configuring Flex SDK sources for Flexmojos projects. (more…)

Easy Import of Flex Builder Projects

Thursday, September 17th, 2009

Maia Flex support evolves rapidly — now you can import Flex projects created in Adobe Flash Builder (formerly known as Adobe Flex Builder). Maia makes this process easy and convenient by automatically doing this:

  • Creating a new Java module with Flex facet
  • Configuring its content and source roots
  • Setting up Flex SDK attached to Flex facet
  • Adjusting module dependencies (SWC libraries)
  • Building Flex compiler configuration: output type (swf/swc), main class, output folder and file name, and other options.

(more…)

Importing Flexmojos Projects to IntelliJ IDEA 8.1.3

Monday, August 17th, 2009

IntelliJ IDEA 8.1.3 includes initial support for importing Flex projects that are set up using Flexmojos Maven plugin.

To start the import we need to have a compilable Flexmojos project that generates Flex compiler configuration file during compilation. Let’s take a Flexmojos application sample from the book Maven: The Definitive Guide, chapter 17 Developing with Flexmojos,  section 17.3.2. Creating a Flex Application.

(more…)

Creating a Pure ActionScript Project in Maia

Thursday, July 16th, 2009

Want to write an application in pure ActionScript without MXML and  Flex components? Maia can help you with that!

All you need is a Flex module or Flex facet with configured Flex or AIR SDK. Flex module is recommended because New Flex Module Wizard allows you to create pure ActionScript sample application in just few clicks.


(more…)

Selecting Target Player for Flex Applications

Thursday, June 25th, 2009

With Maia it’s easy to target a specific version of Flash player for your Flex/AIR applications. All you need is to specify it on the Flex Compiler Settings tab of a Flex module or facet:

(more…)