`
keren
  • 浏览: 1556471 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

flex4.5移动设备开发-定时跳转到某个页面

    博客分类:
  • Flex
 
阅读更多
【转】http://www.terrenceryan.com/blog/post.cfm/flex-mobile-getting-rid-of-the-action-bar
<?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>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics