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: RetrieveProxy returns null?  (Read 5920 times)
deltajam
Courseware Beta
Full Member
***
Posts: 25


View Profile Email
« on: March 06, 2009, 03:20:23 »

Hi, I have a Shell app that loads in a module, and then a command inside that module that registers a few proxies and a few mediators inside.  I have the following code:

:
public class LocationStepMediator extends BaseStepMediator
{
public static const NAME:String = "LocationStepMediator";

public function LocationStepMediator()
{
super( NAME );
}

override public function onRegister():void
{
var _proxy:LocationStepProxy = facade.retrieveProxy( LocationStepProxy.NAME ) as LocationStepProxy;
trace( _proxy );
}

}

but my proxy is returning null.  Why would this be?  How do I grab the correct facade instance?  I've loaded my proxy before mediator ... surely this should work?  I feel like it's something simple ..
Logged
deltajam
Courseware Beta
Full Member
***
Posts: 25


View Profile Email
« Reply #1 on: March 18, 2009, 10:46:11 »

:)  My apologies, I fixed this a week ago or so, but never replied back.  It was a stupid mistake on my part.  I was registering this proxy with a name closely related to another proxy, and I just overlooked it.
Logged
Pages: [1]
Print