Mediating POP ups and the POC

visnik's Avatar

visnik

19 Mar, 2012 09:25 PM

Hey all,

I am working on a project that will have a number of pop up windows, and was browsing the Knowledge base and forum, after finding the official solution here, I came across this post here by creynders. I was curious as to what is the "better" solution? The solution put forth from creynders sounds to be the more optimal as you don't have to manually create the mediators. If his is the better solution, was the POC he mentioned ever created and does it have a link so I can take a look?

If not, I have a few questions on the "official" solution.

Thanks,

  1. Support Staff 1 Posted by Ondina D.F. on 20 Mar, 2012 03:54 PM

    Ondina D.F.'s Avatar

    Hey,
    All you’d have to do to use creynders solution is this:
    ContextView.mxml

    Instead of:
    context=new ApplicationContext(this);

    you'd do this:
    context=new ApplicationContext(this.parent);

    where this.parent is [object ContextView_mx_managers_SystemManager]

    I've never used it in my projects, so I can’t tell you whether there are any pitfalls or not, but it is for sure less complicated than other solutions.
    I don’t have a link to his POC. You can ask him, though -> @camillereynders

    Ondina

  2. 2 Posted by visnik on 22 Mar, 2012 03:30 PM

    visnik's Avatar

    Thanks Ondina,

    I will create a few test project and play around with it as I am all for "less complicated". though since you do not use it yourself and the knowledge base still advises the other method, I guess I should assume it is the "better" way to go, at least at this point.

    Thanks again, as always you are of great help.

  3. Support Staff 3 Posted by Ondina D.F. on 22 Mar, 2012 03:46 PM

    Ondina D.F.'s Avatar

    Thanks for the nice words!! If you like experimenting, you can try rl2. Be aware of the fact that rl2 is still beta, so no guarantees that everything will work well.

  4. Ondina D.F. closed this discussion on 04 Apr, 2012 03:53 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