fidiman
|
|
« on: October 01, 2008, 02:11:18 » |
|
Hello,
A little question . In my app, i have many component, each one has his mxml file.
So i have the MainView > ViewStack > TabNavigator > ComponentHomeMade
Today, for register my ComponentHomeMade to the facade i do this inside the component itself :
private function registerComponent():void { ApplicationFacade.getInstance().registerMediator( new ProduitVOListMediator( this ) ); } and this is invoked on the addedToStage Event.
It's very usefull to do that (i can unregister it with removeFromStage).
But i'm thinking that it's not very clean, it seems that a view component would not have this responsabilty ?
Am I true or Not ?
Thanks again...
|