Migration from flash builder issue

Hello,

I'm trying to setup an existing flex project in Intellij. This modular project has been initially developed with Flash Builder.
One of the project flex module needs a class contained in the main application so in flash builder I simply added a source path pointing to the main application src folder. I can't find out how to do the same with Intellij.

Thanks in advance.

9 comments
Comment actions Permalink

Ok,

I find a solution by addind a <root> children in the <CLASSES> node of the .iml configuration file.

0
Comment actions Permalink

Is this the the right way to do so ?

0
Comment actions Permalink

No, please don't do that. Manual *.iml file editing may cause unpredictable results. In your case you seem to have configured the same folder as a source path and as a library, that will bring some troubles in coding assistance for sure.
Per your description similar thing would probably be  adding "-source-path=xxx" at Additional compiler options tab of the Flash build configuration (Flash module subnode at the Proejct Structure dialog). But this is a bad solution from architectural point of view. For shared code I usually suggest to create a separate Flash module with build configuration of Library type, i.e. it will  be compiled in SWC that will be reused by severall apps.
I'll be able to give you the best answer if you attash all project files of all Flash Builder project (.projetc, .actionScriptProperties and other .xxx).

Meanwhile take a lookat these tutorials:
http://confluence.jetbrains.com/display/IntelliJIDEA/Import+Flash+Builder+Projects (note that project may be imported incorrectly in case of non-standard setup like yours, I need to look at tis to make sure)
http://confluence.jetbrains.com/display/IntelliJIDEA/Dependencies+Management+%28Build+Path%29
http://confluence.jetbrains.com/display/IntelliJIDEA/Create+a+New+Flex+or+ActionScript+Project

0
Comment actions Permalink

Hi Alexander,

Thank you, will reorganize the project to avoid this solution.

0
Comment actions Permalink

I have to say that switching from flash builder to Intellij is far from being a no brainer, at least for me...

My project is quite simple :

- A shell

- 2 RSL's

- Various Flex modules

In intellij I set up a module for the shell (type : Application) 2 modules for the librairies (type : Flex library for web) and a module for each Flex module (type : Runtime loaded module).

I'm able to compile and run the project but :

- The font style is not applied (fonts are embedded in a library and defined in a the style sheet declared in the shell)

- If I configure the libraries linkage as external, the project compiles but doesn't run : no .swf file is compiled for the libraries (like it is in flash builder for a runtime shared library)

Alexander, I would really appreciate if you could help me.

Thanks in advance
0
Comment actions Permalink

I'll be able to give you the best answer if you attach all project files  of all Flash Builder projects (.project, .actionScriptProperties and  others starting with dot if any). Current IntelliJ IDEA project files (.idea folder and all *.iml files) also may help. If you don't want to make files publuic send them directly to me: alexander dot doroshko at jetbrains com.

0
Comment actions Permalink

Thank you Alexander,

Here are the flash builder settings files.



Attachment(s):
project_settings.zip
0
Comment actions Permalink

Thank you,

probably the m main problem is that IntelliJ IDEA doen't work with RSLs nicely, i.e. for build configurations with output type: Library it compiles SWC, but doesn't extract SWF out of it. Also there's no way to setup dependency of RSL type. The latter problem can be workarounded: you specify a dependency of standard 'Include' type and in additional compiler options add something like '-runtime-shared-library-path=path/to/rslLib.swc,path/to/extracted/rslLib.swf'. Or instead of using 'Additional compiler options' field you may write a custom-flex-config.xml file with required parameters and configure path to it in the correspoding field in Compiler Options tab.

I'll be able to look at other details of your project next working day, i.e. monday.

0
Comment actions Permalink

Thank you Alexander,

Too bad that RSL generation is not well integrated to Intellij (the issue seems to be opened a long time ago http://youtrack.jetbrains.com/issue/IDEA-2482)
Is it a huge task to add this fonctionality ?

0

Please sign in to leave a comment.