puremvc
|
 |
« Reply #1 on: September 13, 2009, 06:58:04 » |
|
Using MultiCore, each core can have its own StateMachine. So if your Popup were a module with its own PureMVC core, you could go that way. If the popup talks to a service that nothing else in the app talks to, it might make sense to modularize and place the form, its mediator, the proxy that communicates with the service into a core. This also makes the whole business maximally reusable.
But more than likely, a State Machine instance for a form is not what you're looking for. Flex has view states, which allow a component to have multiple visual configurations. It takes care of all the business of state transitions for you, even animating them if you'd like. That combined with binding that enables and disables things based on the form is really the best way to encapsulate your form's behavior within the component.
-=Cliff>
|