How do I organize a Flex application?

I am currently a .NET developer, but I started working a bit with Flex and I found the community great. There are many excellent resources, but one of the problems that I encounter conceptually is to organize a flexible project. Based on the point of view of the "traditional" ASP.NET web application, I would create folders of related pages, controls, CSS, JavaScript, etc.

What is the best template for organizing a flex application? I like to use the code behind the template with my MXML files, but they are not really “pages” as such, since you cannot just dump everything to the root of your src folder?

+5
source share
2 answers

, FLEX, :

  src
   | - components
   |       | - containers
   |       |      | - actionscript
   |       |      | - mxml
   |       | - visual
   |              | - actionscript
   |              | - mxml
   |
   | - pages
   |    | - actionscript
   |    | - mxml
   |  
   | - includes
   |      | - images
   |      | - xml
   |      | - swfs
   |      | - css
   |
   | - www
   |    | - includes
   |    |     | - images
   |    |     | - swfs
   |    |     | - css
   |    |     | - javascript
   |    |
   |    | - index.html
   |
   | - util
   |     | - actionscript
   |
   | - Main.mxml

.

.

include .

www , .

util - actionscript .

+2

MVC, ​​ Cairngorm . , Model, View, Controller,... Cairngorm :

ProjectName
-assets
--images
-lib
-locale
-src
--com
---company
----project
-----model
-----events
-----view
-----controller
-----business
-----delegates
-----views
------components
-----util
-----vo
-Main.mxml
-Style.css

, , :

com/thirdparty/component

.

, , .

+4

All Articles