tag:robotlegs.tenderapp.com,2009-10-18:/discussions/robotlegs-2/1-robolegs-2-and-flex-popupRobotlegs: Discussion 2012-02-09T16:58:34Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/133732392012-02-02T14:59:51Z2012-02-02T14:59:51ZRobolegs 2 and Flex popup<div><p>Hello Denis,</p>
<p>The ClassicRobotlegsBundle configures the ViewManager for you.
All you need to do is inject it and add the popup as a container
(be sure to remove it afterwards as well):</p>
<pre>
<code>[Inject] public var viewManager:IViewManager;
// .. //
var w:TestPopupWindow = new TestPopupWindow();
PopUpManager.addPopUp(w, FlexGlobals.topLevelApplication as DisplayObject);
viewManager.addContainer(w);</code>
</pre>
<p>Hope that helps!</p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/133732392012-02-03T03:22:08Z2012-02-03T03:23:12ZRobolegs 2 and Flex popup<div><p>Hello Shaun,</p>
<p>Unfortunately your example did not work, mediation is not
happening. But I found what is wrong. I just needed to
"addContainer" before adding popup on stage. In this case all my
popup mediating are working properly.</p>
<p><code>[Inject] public var viewManager:IViewManager;<br>
// .. // var w:TestPopupWindow = new TestPopupWindow();<br>
viewManager.addContainer(w);<br>
PopUpManager.addPopUp(w, FlexGlobals.topLevelApplication as
DisplayObject);</code></p></div>barmalei4iktag:robotlegs.tenderapp.com,2009-10-18:Comment/133732392012-02-09T16:58:33Z2012-02-09T16:58:33ZRobolegs 2 and Flex popup<div><p>Sounds like this is resolved. Closing this discussion - if you
have more questions, you can re-open, or start a new
discussion.</p></div>Shaun Smith