Skip to content

Instantly share code, notes, and snippets.

@tpryan
Created June 23, 2011 19:38
Show Gist options
  • Save tpryan/1043438 to your computer and use it in GitHub Desktop.
Save tpryan/1043438 to your computer and use it in GitHub Desktop.
Flex Mobile without actionBars
<?xml version="1.0" encoding="utf-8"?>
<s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
creationComplete="init(event)"
xmlns:s="library://ns.adobe.com/flex/spark" >
<fx:Script>
<![CDATA[
import flash.utils.clearInterval;
import flash.utils.setInterval;
import mx.events.FlexEvent;
import views.ActionBarHomeView;
protected var intervalID:uint;
protected function init(event:FlexEvent):void
{
this.actionBar.visible = false;
//just a timer to simulate calling some sort of service.
intervalID = setInterval(pushToFirstView, 2000);
}
private function pushToFirstView():void
{
clearInterval(intervalID);
navigator.pushView(views.ActionBarHomeView);
}
]]>
</fx:Script>
</s:ViewNavigatorApplication>
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" actionBarVisible="false"
xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
<s:TextArea left="10" right="10" top="10" bottom="10"
text="Just some placeholder data, nothing exciting." />
</s:View>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment