Skip to content

Instantly share code, notes, and snippets.

@Ondina
Created October 20, 2011 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ondina/1301072 to your computer and use it in GitHub Desktop.
Save Ondina/1301072 to your computer and use it in GitHub Desktop.
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark">
<s:ViewNavigator id="MainViewNavigator"
label="Main"
width="100%"
height="100%" firstView="com.robotlegs.demos.robotlegsincremental.views.components.SomeView" preinitialize="application_preinitializeHandler(event)">
<fx:Script>
<![CDATA[
import com.robotlegs.demos.robotlegsincremental.ApplicationContext;
import mx.events.FlexEvent;
protected var context:ApplicationContext;
protected function application_preinitializeHandler(event:FlexEvent):void
{
context=new ApplicationContext(MainViewNavigator);
}
]]>
</fx:Script>
</s:ViewNavigator>
</s:Application></
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment