IntelliJ IDEA Flex Support

We’ve created a short live demo, showing some of IntelliJ IDEA Flex support features during the process of creating a simple Hello World with Flex from scratch. The demo explains how to create and configure a project, author the code and run your (probably first) Flex application. You can watch the demo online or download a zip archive. If you need more information about IntelliJ IDEA Flex support, see this feature page.

Comments below can no longer be edited.

21 Responses to IntelliJ IDEA Flex Support

  1. Avatar

    Christopher Mason says:

    March 19, 2009

    Could you please describe the status of maven flex support? I see IDEADEV-32647. After importing a maven pom in build 9757, no swc or resource bundle dependencies are recognized. When I try to add a flex facet manually, it behaves oddly: forgets the path to the flex SDK, forgets the flex library, etc. Hit okay and try to compile and it seems to be giving jars to the flex compiler:??


    which causes errors during flex compile.

    I’ve tried three different flex maven systems (flex-mojos, israfil, and servebox). I’ve had the most success with codebox. Which do you recommend/support?

    Any hints you could give would be most appreciated.


  2. Avatar

    Anton.Makeev says:

    March 19, 2009

    At the moment we only support flex-mojos plugin, all the swc dependencies should be correctly recognized and configured.
    If you have problems with it, please open a JIRA issue

    Anton Makeev

  3. Avatar

    Chris Shepperd says:

    March 24, 2009

    Can you describe the status/roadmap for Flex refactoring? This is an area of great frustration in the Flex Builder world, and one where IntelliJ usually shines but not so for Flex yet. Thanks.

  4. Avatar

    Maxim.Mossienko says:

    March 25, 2009

    Rename, introduce variable / constant / field, safe delete are in IDEA 8.1 Several refactorings (extract/inline method, change signature, move file / constant) are planned for IDEA 9

  5. Avatar

    Mary says:

    July 31, 2009

    My flex client in MAIA (IDEA 9 EAP) fires up IE even though html file type is associated with firefox in my environment. How do I set MAIA to fire up firefox instead when the flex client starts?

  6. Avatar

    AlexanderD says:

    August 3, 2009

    unfortunately it is the behavior of Flex debugger (fdb tool).
    Please see comments of the issue for details:

  7. Avatar

    Mary says:

    August 3, 2009

    Thanks for the info on fdb using IE, and for keeping the ticket open.

  8. Avatar

    mspwong says:

    November 2, 2009

    I am trying to use IDEA’s flex compiler for the first time and am having some trouble with it. My project is setup with 2 modules: 1)a flex module and 2)a java module with spring and web facets. I am building my java module with my ant script, but want to use IDEA’s builder for the flex module. The flex compiler settings has a place for the “Main class”. It’s a webapp project, and a flex module to boot — it does not have a class with a main() method. Without the Main class set, running the flex module results in a popup prompting me to choose a Main class. Any suggestion/insight out there?

    I am using the latest Maia build (90.116). Is the video demo’ing working with flex in Maia out yet?


  9. Avatar

    Alexander Doroshko says:

    November 3, 2009

    Mary, I’ve answered you in the forum: http://www.jetbrains.net/devnet/message/5248685
    As for video demos – they are not up-to-date because some changes in UI were made since then. But general idea was not changed so you may find Flex demos useful. See also BlazeDS demo: http://www.jetbrains.com/idea/training/demos/blaze_ds.html

  10. Avatar

    eddie vedder says:

    March 29, 2010

    What’s wrong with good old documentation in pdf?

    Or maybe I’m crazy..

  11. Avatar

    Alexander Doroshko says:

    March 30, 2010

    Eddie, there’s no reference to any pdf on this page.
    There was some old pdf about Flex support in IntelliJ IDEA in a different blog entry from early 2008. And it is really outdated because since then Flex support has been improved greatly.

  12. Avatar

    anu says:

    December 1, 2010

    I am trying to setup my Idea 8 for a flex module. I have added some external swcs as dependencies. But in my mxmls the classes in the swc show up as red. If I add source the red goes away. This works in most cases but there are some for which I am not going to be able to add source. swc dependency should be added just like jars, right?

  13. Avatar

    Alexander Doroshko says:

    December 1, 2010

    anu, consider using IDEA 10, release candidate is already available http://confluence.jetbrains.net/display/IDEADEV/IDEA+X+EAP
    Or at least IDEA 9.0.4. Flex support has evolved SO MUCH since IDEA 8! As far as I remember SWC dependencies usually worked in IDEA 8 as well, yes, SWCs should be attached in the same way as JARs in case of java. If it doesn’t work – update is the only way.

  14. Avatar

    Steve Thompson says:

    December 2, 2010

    I am using the latest version of IDEA 10 (98.486) with a Flex project, and I have to say that I absolutely love the power this gives me over Adobe Flash Builder (AFB). However, there is one thing that AFB can do that IntelliJ cannot, and it is driving me crazy. My project was originally created with AFB and communicates data back and forth with some .Net services that I’ve developed. This works great, but compiling the project in IDEA and launching it gives me the following when I try to communicate with my services:

    faultCode:Client.Error.MessageSend faultString:’Send failed’ faultDetail:’Channel.Connect.Failed error
    NetConnection.Call.Failed: HTTP: Status 404: url: ‘”

    Currently I get around this by also keeping AFB in memory, which somehow seems to fix the problem. But I would really like to send AFB packing – is there anything I can do configuration wise to overcome this obstacle to using IDEA exclusively?

    Thanks and best regards,


  15. Avatar

    Alexander Doroshko says:

    December 3, 2010

    Steve, something seems to be different in compilation settings in FB and IDEA. Please add something like -dump-config=c:/fb_config.xml to FB project additional compiler options and compare generated file with IDEA’s compiler configuration. We may continue discussion at our forum http://devnet.jetbrains.net/community/idea/ideacommunity or issue tracker http://youtrack.jetbrains.net Please attach information about compiler configuration and we’ll try to find the difference.

  16. Avatar

    Nick says:

    August 10, 2011

    Is there a user group or forum for intelliJ IDEA-Flex users? I’m using IDEA 9.0.3 with Flex SDK 4.1 and am really frustrated and why IDEA doesn’t work as expected… I’m previously an FB user and am considering switching our dev team to FB for productivity reasons.

    e.g. I add KapInspect_Flex4.swc to the libs folder and the auto code inspection. CTRL + ALT + SPACE doesn’t find anything. I have to manually add the namespace but Kap Inspect isn’t actually working when trying to launch it.

    If anyone can help with this one, that’ll be great.


  17. Avatar

    yole says:

    August 10, 2011

    There is no Flex specific forum but you’re welcome to post Flex related questions in the general forum:
    Also note that there has been a large amount of Flex related fixes in IntelliJ IDEA 10 and 10.5, so I strongly recommend upgrading to the latest version.

  18. Avatar

    Nick says:

    August 10, 2011

    Hi Yole,

    Thanks for the reply… I’ll read about the v10.5 updates.

    Do you have plans to create a dedicated Flex forum? Perhaps http://devnet.jetbrains.net/community/idea/flexdevelopers would do the trick and would filter out the flex guys from the non-flex guys.


  19. Avatar

    Alexander Doroshko says:

    August 10, 2011

    in IntelliJ IDEA is it not enough (correctly speaking – it is not required) to place library to some special place to make it available in highlighting/completion/compilation. You configure libraries at File | Project Structure | Modules | [your module] | Dependencies tab. You can configure library folder (probably it has buggy name in IDEA 9 – ‘Jar folder’) and in this case adding/removing SWC will be automatically picked.
    Indeed IDEA 10.5 has a lot of improvements though all basic things like SWC libraries should work in IDEA 9 as well.
    I’m ready to answer all your further question at our forum by link posted above.

  20. Avatar

    Nick says:

    August 10, 2011

    Also… I don’t suppose there are any London based seminars or updated tutorials on getting the most from IDEA?

  21. Avatar

    Alexander Doroshko says:

    August 10, 2011

    Come to Flash On The Beach conference in Brighton and meet us at the booth!