I like testing pages in standalone mode but in my last project i needed to listen for afterPreload event and setup submenu in home page based on site.xml content.
I've did some rewrites, add some functionality and now it can be done. You can listen to/and hijack: afterPreload, beforeTransitionIn, afterTransitionIn, afterComplete, beforeTransitionOut, afterTransitionOut. You can use it like in gaia by calling Gaia.api functions.
Now GaiaStandAloneRunner take 4 parameter.
new GaiaStandAloneRunner(this, "xml/site.xml", Pages.HOME,onInitComplete);
onInitComplete is called when gaia is setup and you can listen for api events.
private function onInitComplete():void{
releaseGaia = Gaia.api.afterPreload(afterPreload,true,false);
}
Check out the code:
http://dc-graphics.pl/pociag/gaia/standalone_extended.zipThis code needs to be cleaned. Some of the functions in API should be blocked in standalone mode (like goto). When I find more time I'll do some more cleaning and testing.