//in ApplicationMediator
override public function handleNotification(notification:INotification):void
{
var name:String = notification.getName();
var body:Object = notification.getBody();
switch ( name )
{
case BrowserProxy.DATA_READY:
var setingsProxy : SettingsProxy = facade.retrieveProxy ( SettingsProxy.NAME ) as SettingsProxy ;
setingsProxy.settingsDataGet();
break;
}
}
The ApplicationMediator is the only one who cares if the Browser Settings have been set. Once that is completed then we need to make a new call to SettingsProxy to get information from a XML.
Again this works perfectly but I am wondering about this in regards to best practice.