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

Pages: [1]
Print
Author Topic: when it is the best time to register Mediator?  (Read 2916 times)
marks416
Sr. Member
****
Posts: 52


View Profile Email
« on: October 21, 2008, 11:14:01 »

I have a question for register a Mediator with facade.registerMediator.

I use facade.registerMediator to register a Mediator,but why I get null when I access viewComponent, it seem I register the Mediator so early,what is the right time to register a Mediator?

Thanks

Mark
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: October 21, 2008, 09:16:58 »

Hi Mark,

Sounds like you might be having a deferred instantiation issue. Take a look at the FAQ section as well as the Flex Slacker demo.

Hope this helps,
-=Cliff>
Logged
Pages: [1]
Print