I read the following discussion about Application package strucutre:
http://forums.puremvc.org/index.php?topic=8.0I try to understand what is the best way to design my PureMVC application.
For example, when I first start my application, it displays a menu bar with menu items on top and the remaining area of the screen is used to display screen layout for different domains (e.g. domain1, domain2 .... domain10) based on what menuitem selection.
Could you help me with the following questions?
(1) Do you see any problem with the following Application package structrue ?
(2) Is standard PureMVC appropriate for this scenario? or
I should consider domain1, domain2 ... etc as separate modules and use Multi-core PureMVC instead ?
(3) Should I use ViewStack to navigate different screen layout based on what menu item is selected?
What happens if I have 30+ menu items (or submenu items) that will trigger the change on screen
layout? Is ViewStack approriate to handle this ?
In Main.xml, it references MainDisplay.mxml
Inside MainDisplay.xml, it contains
<mx:ViewStack>
<components:viewForDomain1 creationComplete="..."/>
<components:viewForDomain2 creationComplete="..."/>
.........
<components:viewForDomain10 creationComplete="..."/>
</mx:ViewStack>
=================================================
com.myco.myapp.[domain1].model.*
com.myco.myapp.[domain1].view.*
com.myco.myapp.[domain1].controller.*
com.myco.myapp.[domain2].model.*
com.myco.myapp.[domain2].view.*
com.myco.myapp.[domain2].controller.*
com.myco.myapp.[domain3].model.*
com.myco.myapp.[domain3].view.*
com.myco.myapp.[domain3].controller.*
..........
com.myco.myapp.[domain10].model.*
com.myco.myapp.[domain10].view.*
com.myco.myapp.[domain10].controller.*
com.myco.myapp.main.controller
StartupCommand.as
ModelPrepCommand.as
ViewPrepCommand.as
com.myco.myapp.main.view
MainDisplayMediator.as
com.myco.myapp.main.view.components
MainDisplay.mxml
com.myco.myapp.main.model
com.myco.myapp
ApplicationFacade.as
com.myco.myapp
ApplicationConstants.as
Main.mxmlThanks for your help