Bigmama
|
|
« on: March 20, 2008, 03:03:39 » |
|
Hi, I don't know if any of you guys had a similar situation but here it goes. I currently have a main panel which is the main screen on my app, and im willing to switch state onFileLoad. Now, I have defined my custom MainPanel.mxml extending from panel and when the click Event is hit, I sendNotification(ApplicationFacade.CARGAR_PCU,SinManager);
Where should I place my state code, can I create a ErrorListState.mxml(would be my 2nd state for mainPanel), and how can i make the transition when i send the notification ?
Another Issue regarding good coding practices, is about nested CommandCalls. I think it is not Ok to invoke a command within a command, but I have done it once in my app. Should the good practice be, send a notification from commandA so controller can decide which command to execute, and reduce coupling between my commands ? Thanks Tom
|