PureMVC Architects Lounge

Announcements and General Discussion => Fabrication => Topic started by: deltajam on March 06, 2009, 03:20:23



Title: RetrieveProxy returns null?
Post by: deltajam 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 ..


Title: Re: RetrieveProxy returns null?
Post by: deltajam 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.