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  PureMVC Manifold / Standard Version / RetrieveProxy Returning NULL on: April 19, 2008, 11:09:10
Hi,

I'm trying to get started on a simple PureMVC app with version 2.0.3. I have a startup command that registers a proxy and mediator via:

facade.registerProxy( new WorldProxy() );
facade.registerMediator( new ApplicationMediator( main ) );

The ApplicationMediator further registers a MenuMediator:

facade.registerMediator( new MenuMediator(menuSprite) );

The problem is that in the MenuMediator, I'm unable to retrieve my WorldProxy, like:

proxy = facade.retrieveProxy( WorldProxy.NAME ) as WorldProxy;
trace('proxy:'+proxy)

The trace shows that proxy is NULL. How can this be if I've registered the proxy?

Pages: [1]