Flex/Air - Sharing code between modules
Hi,
I am a former flashbuilder user that been trying out IDEA.
I really like it. But I have question regarding modules and how to share code and assets between modules.
I have a project that I would would like to export for both air mobile and web.
This is how the folder structure looks like, before setting up IDEA. (used in fb)
- main folder
- Base (base is used by both mobile and web version)
- scr
- assets (images, fonts etc. not swc)
- lib (swc)
- Mobile (needs to use , scr, assets and swc from base)
- scr
- Web (needs to use , scr, assets and swc from base)
- scr
Wich is the best way to setup a IDEA project with modules?
请先登录再写评论。
Hi,welcome to IntelliJ IDEA!
Here are some tutorials for quick start: http://confluence.jetbrains.com/display/IntelliJIDEA/Flash+Development
IntelliJ IDEA doesn't allow to configure the same content root of source folder for more than one module by design.
For you there are 2 ways to setup the project in IntelliJ IDEA:
1. Configure a single Flash module in a following way:
If you decide to go this way then you will be able to choose how to highlight source files: according to Web BC configuration or according to Mobile one. Active Flash BC is selected in the status bar or using context menu.
2. Configure a multi-modular project:
2.1. Library module:
2.2. Web module
2.3. Mobile module
Thanks alot!
I will try it out.