tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/683-callout-mediatorRobotlegs: Discussion 2012-11-20T10:15:37Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/209205802012-11-16T15:52:50Z2012-11-16T15:52:50ZCallout Mediator<div><p>See if you can use something like this:</p>
<p>A ViewNavigator:<br>
var
calloutNavigator:CalloutNavigator=injector.instantiate(CalloutNavigator);<br>
injector.mapValue(CalloutNavigator, calloutNavigator);<br>
mediatorMap.createMediator(calloutNavigator);</p>
<p>A Callout:<br>
var
someCallOutView:SomeCallOutView=injector.instantiate(SomeCallOutView);<br>
injector.mapValue(SomeCallOutView, someCallOutView);<br>
mediatorMap.createMediator(someCallOutView);</p>
<p>someCallOutView.open(popUpOwner);<br>
someCallOutView.setPopUpData("SOME DATA");<br>
someCallOutView.calloutGroup.addElement(calloutNavigator);</p>
<p>-*popUpOwner is a DisplayObjectContainer</p>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/209205802012-11-16T16:01:32Z2012-11-16T16:01:32ZCallout Mediator<div><p>I’d let the CalloutNavigatorMediator call a method on
CalloutNavigator (component), and within this method I’d push
other views.</p></div>Ondina D.F.