Mediation of popups in Flex

creynders's Avatar

creynders

29 May, 2010 08:01 AM

I've been struggling with the mediation of popups in Flex and have so far solved it by manually creating the mediators as suggested on some other thread here, but I think I've found a better solution:
Instead of passing the main mxml file to RL as the contextview, you should pass the instance of the application's systemmanager, like this:

<local:RLPopupTestContext contextView="{ Application.application.systemManager }"/>

This will in fact relay the ADDED_TO_STAGE events of popups to the framework and automatically create the mediators for the mapped views

I put together a proof-of-concept, if you want I can send you guys the files so you can see for yourself.

  1. Support Staff 1 Posted by Joel Hooks on 29 May, 2010 03:02 PM

    Joel Hooks's Avatar

    I've experimented with this a bit as well. It would likely also provide a solution for AIR windows. It would also likely be a problem with modules, but I didn't explore it enough to determine that.

  2. 2 Posted by Nikos on 10 Jul, 2010 02:03 PM

    Nikos 's Avatar

    I would be interested in the POC please :)

  3. 3 Posted by Nikos on 12 Aug, 2010 02:01 PM

    Nikos 's Avatar

    Has anyone tried this with modules yet?

  4. 4 Posted by NYY80401 on 13 Sep, 2010 07:17 PM

    NYY80401's Avatar

    I too would be interested in the POC files.

    I put together a proof-of-concept, if you want I can send you guys the files so you can see for yourself.

  5. Stray closed this discussion on 19 Feb, 2011 10:39 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac