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: not a known Application Resource Proxy  (Read 6525 times)
landed
Full Member
***
Posts: 37


View Profile Email
« 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...
Logged
landed
Full Member
***
Posts: 37


View Profile Email
« Reply #1 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 );
Logged
Pages: [1]
Print