Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / General Discussion / About code structure on: November 09, 2011, 11:24:14
Very quick and simple question.

What's the best practice if I have a variable that will be used by many mediators and skins and that I don't want to duplicate (a Matrix value). Should I place it in the facade?

Thanks
2  PureMVC Manifold / Standard Version / PureMVC and FlashBuilder Modules on: November 02, 2011, 10:57:59
Hello

I have rewriten this post as I finally found many tips on other threads and demo examples.

I just want to be sure here that I am using the right technology:

I need to build a modular application (...doesn't mean that I will use Flex modules). The idea is that a Shell application is distributed to the client with some modules included, depending on his needs. So I would like to include a module manager utility in the shell and load/unload some specific modules delivered as zip files, extracting them in the right place through this utility. Then by restarting the application, these modules are loaded (or loaded on demand) and all communicate to the Shell in both directions.

Do I really need modules or RSL? Do I need Multicore for this purpose? Is this a typical Pipe application?

Thanks for any thought or tip!
3  Announcements and General Discussion / Architecture / RetrieveMediator for multiple instances on: October 18, 2011, 11:49:35
Hi guys

I read almost all the threads concerning the use of multi instances of a same Mediator. There is one thing that I didn't find: how to get back one of these specific mediator? Here is my case:

Architecture (simplified, easier than refectoring some example code):
*MyComponent.as is a component that I need to place 2 instances on my application. It has 2 states normal, and changed. Initial state is normal.
*MySubComponent.as is dynamically created and nested into each MyComponent. It has 1 button.

What I need to achieve:
When I press one of the 2 buttons from MySubComponent objects that are on my stage, the state of the corresponding parent (MyComponent) has to change from normal to changed.

What I've done:
* My ApplicationMediator creates 2 instances of a same MyComponent component + registers the 2 instances of MyComponentMediator using the myComponent.id property to make its name unique.
* Each MyComponent creates its own MySubComponent + registers its MySubComponentMediator.
* When I press the button of any MySubComponent, I send an Event to MySubComponentMediator.
* Here, I need to retrieve the MyComponentMediator associated to the MyComponent parent (and only this one!)in order to alter its state....here is my problem!

Thanks for your input!


Pages: [1]