if there is no support for communicating between widgets and master.
i just suggest that you should add some interface methods to widget shell and widgets(or buttons that invoke widget).
in each interfaces, define like below.
public function sendApplicationNotificaction(key:String, noteBody:Object):void;
in each implements(ex:hoge.mxml),
public sendApplicationNotificaction(key:String, noteBody:Object):void{
dispatchEvent(new CustomNoticeEvent(CustomNoticeEvent.NOTICE, key, noteBody);
}
in each Mediator subclasses
hoge.addEventListener(CustomNoticeEvent.NOTICE, onApplicationNotice);
private function onApplicationNotice(event:CustomNoticeEvent):void{
sendNotification(event.key, event.noteBody);
}
How about this?