tag:robotlegs.tenderapp.com,2009-10-18:/discussions/robotlegs-2/14-robotlegs-2-popup-questionRobotlegs: Discussion 2012-04-24T12:53:59Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/148315792012-03-28T12:36:38Z2012-03-28T12:36:38ZRobotlegs 2 Popup Question<div><p>Hello Rick,</p>
<p>I got the order wrong in my example on that page. Did you try it
the other way around (adding the popup to the ViewManager before
adding it to the PopUpManager):</p>
<pre>
<code>[Inject] public var viewManager:IViewManager;
// .. //
var popup:TestPopupWindow = new TestPopupWindow();
viewManager.addContainer(popup);
PopUpManager.addPopUp(popup, FlexGlobals.topLevelApplication as DisplayObject);</code>
</pre>
<p>If that doesn't help try setting your context's log level to
Debug and seeing if you can spot anything odd in the logs.</p>
<p>Otherwise, could you explain your setup a little more?</p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/148315792012-03-28T13:26:07Z2012-03-28T13:26:07ZRobotlegs 2 Popup Question<div><p>I have tried the order switch. No luck. Let me try the context
debug and</p></div>Ricktag:robotlegs.tenderapp.com,2009-10-18:Comment/148315792012-03-28T15:47:18Z2012-03-28T15:47:18ZRobotlegs 2 Popup Question<div><p>Apologies...emailed that while on the road to the airport.</p>
<p>The Debug is spitting out:<br>
[trace] 2202 DEBUG Context-0-98 StageSyncExtension-4-4a - Context
view is now on stage. Initializing context... [trace] 2203 INFO
Context-0-98 Context-0-98 - Initializing... [trace] 2204 DEBUG
Context-0-98 ModularityExtension-3-33 - Modular context configured
to inherit. Broadcasting existence event... [trace] 2205 DEBUG
Context-0-98 ModularityExtension-3-33 - Modular context configured
to export. Listening for existence events... [trace] 2206 DEBUG
Context-0-98 ConfigManager-1-a8 - Context initializing.
Instantiating config class [class ContextViewListenerConfig]
[trace] 2211 INFO Context-0-98 Context-0-98 - Initialize
complete</p>
<p>When I click the ui controls (tabs, buttons, etc.) we get
feedback from the debugger. When I click a button that opens up the
popup...nothing.</p>
<p>I've tried a few different ways to implement this. Which causes
me to wonder if I'm not placing the code in the correct place. I
will post an example on github and share the link here.</p>
<p>Regarding your question about how I have things set up...</p>
<p>I've used <a href=
"mailto:tschneidereit@gmail.com">tschneidereit@gmail.com</a> Cafe
Townsend as a base for getting things wired up. From there I'm
injecting the IViewManager into a view (which returns null) and
issuing buttons click method to open the window.</p>
<p>Guessing that's the wrong way. So I tried dispatching an event
that's matched with a command that pops up the window and no
mediation.</p>
<p>I'll post an example.</p>
<p>Thanks for you help with this.</p></div>Ricktag:robotlegs.tenderapp.com,2009-10-18:Comment/148315792012-03-28T19:13:48Z2012-03-28T19:13:48ZRobotlegs 2 Popup Question<div><p>Okay I took a stab at this <a href=
"https://github.com/dartavion/Robotlegs-2-Simple-Project-with-Popup">
https://github.com/dartavion/Robotlegs-2-Simple-Project-with-Popup</a></p></div>Ricktag:robotlegs.tenderapp.com,2009-10-18:Comment/148315792012-03-28T20:09:16Z2012-03-28T20:09:16ZRobotlegs 2 Popup Question<div><p>Cool. I'll take a look at this shortly and let you know what I
find.</p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/148315792012-03-29T02:46:11Z2012-03-29T02:46:11ZRobotlegs 2 Popup Question<div><p>I ran through and fixed a number of things (sorry, I screwed the
formatting a bit by mistake):</p>
<p><a href=
"https://github.com/darscan/Robotlegs-2-Simple-Project-with-Popup/commit/b0988571408b95ec0d70e8514f3da30b86cae766">
https://github.com/darscan/Robotlegs-2-Simple-Project-with-Popup/co...</a></p>
<p>And then.. found a bug (or missing feature) in the RL2
StageObserver:</p>
<p><a href=
"https://github.com/robotlegs/robotlegs-framework/commit/ea0bc0732bdab713bed78ba90efed58a7b4ea565">
https://github.com/robotlegs/robotlegs-framework/commit/ea0bc0732bd...</a></p>
<p>You'll need to grab the latest code and build another SWC.</p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/148315792012-03-29T03:22:37Z2012-03-29T03:22:37ZRobotlegs 2 Popup Question<div><p>Thanks very much for your help with this. I'll give it a go and
report back tomorrow.</p>
<p>This is just--awesome.</p></div>Ricktag:robotlegs.tenderapp.com,2009-10-18:Comment/148315792012-03-29T12:16:39Z2012-03-29T12:16:39ZRobotlegs 2 Popup Question<div><p>Works like a charm and cleared up a bunch of questions for me.
Thank you for the extra time you put into this. Very much
appreciated.</p>
<p>If there is anything I can do to help the robotlegs team please
let me know.</p>
<p>I'm going to close this as this is now not an issue or challenge
;)</p></div>Rick