PureMVC Architects Lounge

Announcements and General Discussion => Getting Started => Topic started by: landed on July 24, 2009, 06:45:12



Title: not a known Application Resource Proxy
Post by: landed on July 24, 2009, 06:45:12
I get the error not a known Application Resource Proxy when I try and run my proxy listed below. I can see that I missed anything

:
public class LangSwfProxy extends EntityProxy implements IStartupProxy
{

public static const NAME:String = "langSwfProxy"
//public static const SRNAME:String = "langSwfProxySR";

private var stageMed : StageMediator;
private var flashVar : FlashVarsVo;

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


public function load() :void
{
sendNotification( ApplicationFacade.LANGSWFLOADING);
stageMed = ApplicationFacade.getInstance().retrieveMediator(StageMediator.NAME) as StageMediator;
flashVar = stageMed.flashVars;
//
var mLoader:Loader = new Loader();
//
ExternalInterface.call("console.log", { LangSwfProxy:"URL: " + "assets/swf/" + LangFont.getLoadAssetString(flashVar.getVar("siteId")) } );
//
var mRequest:URLRequest = new URLRequest("assets/swf/"+LangFont.getLoadAssetString(flashVar.getVar("siteId")));
//
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
mLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
//
mLoader.load(mRequest);
        }



function onCompleteHandler(loadEvent:Event)
{
sendLoadedNotification( ApplicationFacade.LANGSWFLOADED, "", NAME );
}



private function errorHandler(e:IOErrorEvent):void
{
            sendLoadedNotification( ApplicationFacade.LANGSWFFAILED,"", NAME );
        }



function onProgressHandler(mProgress:ProgressEvent)
{
//
}

}

}

thanks for any ideas...


Title: Re: not a known Application Resource Proxy
Post by: landed on July 24, 2009, 06:54:16
Hmmm it didnt like passing an empty note body !

sendLoadedNotification( ApplicationFacade.LANGSWFLOADED, "", NAME );

fixed with ...

sendLoadedNotification( ApplicationFacade.LANGSWFLOADED, NAME, NAME );