Author Archive

Create FlexUnit Tests Quickly in IntelliJ IDEA

Wednesday, December 28th, 2011

Do you know how to navigate from a class to its test and back again or how to create a FlexUnit test quickly with IntelliJ IDEA 11? Let me tell you.

First of all make sure that flexunit.swc is within your module dependencies:

and just press Ctrl+Shift+T (Cmd+Shift+T on Mac) or select Navigate | Test from main menu:

(more…)

Some Nice/New Features of ActionScript/Flex Debugger

Tuesday, December 13th, 2011

I’d like to highlight few useful features in ActionScript/Flex debugger, some of which are new in IntelliJ IDEA 11.

Better members presentation in Variables view (informative icons, sorting) with ability to jump to source:

Convenient collections view (size, Vector status, collection elements):

Mark any object instance and this instance will be highlighted in all views if met again until the end of the debug session:

[SWF] and [UnloadSWF] messages are now filtered out by default. Toggle respective button in Debug tool window to switch the filter off:

Debug with pleasure!

New in 10.5: Develop Mobile AIR Applications for Android

Wednesday, April 27th, 2011

Latest EAP of IntelliJ IDEA 10.5 supports full cycle of Mobile AIR applications development: write code, compile, package, install, run and debug on emulator or Android device! Let’s look at common development workflow. (more…)

Create Flex Skin, custom Event and other classes easily

Monday, February 21st, 2011

Do you know that one of the most effective ways of writing code in IntelliJ IDEA is Create From Usage approach, when first use a class, method, or other symbol, and IntelliJ IDEA then generates its declaration in a single click? Well, you do now, plus I’d like to give you two more examples of useful quick fixes that can generate routine code for you in no time.

Create Flex Skin

IntelliJ IDEA knows which MXML attributes must contain qualified name of a class. Class doesn’t exist? Invoke quick fix and get it right away.

In case of Skin class its behavior is even smarter. Write a skin class usage…

(more…)

New Flex run options

Wednesday, August 4th, 2010

IntelliJ IDEA 10 EAP provides two new options for Flex and FlexUnit run configurations:

(more…)

Improved Flex Debugger

Friday, May 7th, 2010

It’s not a secret that IntelliJ IDEA has a fully functional interactive debugger for Flex and AIR applications. Here’s a list of features added or improved in upcoming IntelliJ IDEA 9.0.3 release:

  • XML and XMLList runtime value view
  • Smart Step Into: select a function to step into if more than one available (Shift+F7) (more…)

Package AIR Installation File

Thursday, April 22nd, 2010

Creating AIR installer (*.air), unsigned intermediate AIR package (*.airi) as well as generating self-signed certificate is possible in IntelliJ IDEA via Tools menu, Flex group, Package AIR Installation File action.

(more…)

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 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 define a function, variable or constant, 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
pf public function
prf private function
psf public static function
prsf private static function
pv public var
prv private var
psv public static var
prsv private static var
pc public const
prc private const
psc public static const
prsc private static const

To use a live template, just type its abbreviation anywhere in your code and press Tab. Here are some examples: (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…)