flex 链接外部页面与tabbar

发布时间:2019-06-22 22:19:07

Tab实现

<s:TabBar dataProvider="{myViewStack}"/>


<mx:ViewStack id="myViewStack" borderStyle="solid"> 

<s:NavigatorContent id="search" label="Search"> 

<s:Label text="Search Screen"/> 

</s:NavigatorContent> 

<s:NavigatorContent id="custInfo" label="Customer Info"> 

<s:Label text="Customer Info"/> 

</s:NavigatorContent> 

<s:NavigatorContent id="accountInfo" label="Account Info"> 

<s:Label text="Account Info"/> 

</s:NavigatorContent> 

</mx:ViewStack> 



外部链接实现

import flash.net.URLRequest;

import flash.net.navigateToURL;



var url:String="https://goatpm.com"; 

var request:URLRequest=new URLRequest(url); 

navigateToURL(request,"_blank"); 



Card image cap
APP STORE
Card image cap
应用宝
Card image cap
小米
Card image cap
华为