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 / Getting Started / Connecting a view component on the stage to a mediator on: March 05, 2009, 09:14:44
Is it possible for a view component (movieClip in this case) to instantiate the connection to a mediator?  I'm trying to create an environment where I can drag and drop components for rapid deployment and in order to do this, I need to be able to nest my components and still allow them to communicate.  In the solutions I am deploying I use an arbitrary portion of my components with every build.

Say I have a view component that contains a button.  I would like for this button when pressed to cause another view component to populate it's text box with the text "button pressed" no matter how these movieclips may be nested in other components.  I have almost wrapped my head around the concept of commands and proxies, but I don't know if this kind of connection with a mediator is possible.  Apologies if my question is flawed or unclear, I'm still trying to orient myself to this architecture.

Any advice, comments?
Pages: [1]