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 / Re: How to register mediator to a runtime viewCompontent? on: January 17, 2009, 04:52:49
OK,I'll try this way! Thank you Cliff. :-*
2  Announcements and General Discussion / General Discussion / How to register mediator to a runtime viewCompontent? on: January 14, 2009, 08:54:14
Hi,guys

now i have a question in programming.

so normally i register a MediatorClass in startCommand  like this:

:
var app:mainApp = notification.getBody() as mainApp ;
                        facade.registerMediator(new ApplicationMediator(app));
                        facade.registerMediator(new LoginMediator(app.Login));

but how to register a MediatorClass for a ViewCompontent what added to App stage in runtime?

like this compontent in mxml:

:
in my application.mxml script...

var myChatPanel:ChatPanel = new ChatPanel();
addChild(myChatPanel);


how can i register MediatorClass for this UIcompontent...

that's all ~~   :-\
Pages: [1]