tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/79-need-for-applicationmediatorRobotlegs: Discussion 2013-04-28T10:02:18Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/14151732010-04-10T01:21:29Z2010-04-10T01:21:29Zneed for ApplicationMediator?<div><p>I generally mediate the main application. The contextView is a
special case in regards to mediation. It is mediated * immediately*
when it is mapped.</p>
<p>Automatic mediation is a convenience. It eliminates the need for
createMediator in most cases. Popups and AIR windows are notable
exceptions. By default auto-mediation is set to true and as your
views are added to the display list the MediatorMap checks for
mappings and mediates them for you. This has some ramification is
terms for performance for critical applications such as games or
heavy data-visualization. Typical Flex applications won't
suffer.</p>
<p>createMediator is necessary when you turn auto-mediation off
when mapping, when you create popups using the Flex PopUpManager,
or when you create AIR windows. Popups and AIR windows are created
off the main display list, so the auto-mediation cannot receive the
added to stage events to call createMediator for you.</p></div>Joel Hooks