Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You always have access to the eventMap property itself, so if you wanted
to listen to two child buttons on your view, that were exposed through
getters, you can use the event map to manage this:
Example 8-4. MosiacTool: TileSupplyDetailViewMediator.as maps listeners to two Button sub-components of the mediated view
override public function onRegister():void
{
eventMap.mapListener(view.deleteButton, MouseEvent.CLICK,
dispatchDeletionRequest, MouseEvent);
eventMap.mapListener(view.radioButton, MouseEvent.CLICK,
dispatchSupplySelected, MouseEvent);
addViewListener(ColorChangeEvent.CHANGED,
dispatchColorChange, ColorChangeEvent);
addContextListener(TileSupplyEvent.QUANTITY_CHANGED,
updateCount, TileSupplyEvent);
}