Created
June 23, 2011 19:38
-
-
Save tpryan/1043438 to your computer and use it in GitHub Desktop.
Flex Mobile without actionBars
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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