Hi,
I am trying to create an application where main view shows users(in a list component) and cars for each user(in datagrid component).
Application has 7 modules:
MainDisplayModule - module with list, datagrid component and buttons 'Add User', 'Remove User', 'Edit User', 'Add Car', 'Remove Car', 'Edit Car'
UserCreatorModule - module with UserCreator(popup window) component - FirstName, Age textInputs, OK and Cancel button
UserEditorModule - module with UserEditor(popup window) component - FirstName, Age textInputs, OK and Cancel button
UserRemoverModule - module UserRemover(popup window) component - FirstName label, OK and Cancel button
CarCreatorModule - module with CarCreator(popup window) component - Make, Model, Year textInputs, OK and Cancel button
CarEditorModule - module with CarEditor(popup window) component - Make, Model, Year textInputs, OK and Cancel button
CarRemoverModule - module CarRemover(popup window) component - Make, Model, Year label, Ok and Cancel button
Having separate modules for popups gives me States and Substates in this application
![:)](http://forums.puremvc.org/Smileys/default/xsmiley.gif.pagespeed.ic.R8GFI-pF6f.png)
.
Modules are connected with Pipes and each core(module) has its own StateMachine.
I have CarsProxy with methods addCar(car:CarVO), removeCar(car:carVO), getCars(), cars() and UsersProxy with methods addUser(user:UserVO), removeUser(user:UserVO), getUsers(), users().
Proxies add, remove and retrieve records from/to MySQL server.
Should I place CarsProxy, UsersProxy in a common library?
I dont know but i was thinking about creating another module(ServiceModule) and connecting it with modules. Modules could send and receive messages from/to ServiceModule. Is it a good practice?
Do you have a different approach?
I use Flex/Multicore, StateMachine, Pipes Utility.
Mariush T.
http://mariusht.com/blog/