My Spruing initialization is as follows
contextURL="application_context.xml";
applicationContext.addConfigLocation(contextURL);
applicationContext.addEventListener(Event.COMPLETE , handleComplete);
applicationContext.load();
private function handleComplete():void{
logger.send("handleComplete called");
var mainAnimation:MainAnimation = applicationContext.getObject.("mainanimation") as MainAnimation;
logger.send("Starting Main application");
mainAnimation.start();
}
handleComplete is never called.
There are a number of possible problems.
1) Is there any way to provide a handler to catch "file not found". A pretty common type of problem specially in an IDE like FDT where so much is automated.
2) Where does the application_context.xml file go in FDT to get it in the right place when Run As is selected
3) Can I find out if the application_context is read but perhaps does not parse.
Anything else that I should try to get this working?


Reply With Quote