Flex中TabNavigator设置Tabs样式思路及源码

随心笔谈1年前 (2023)发布 admin
109 0

xmlns:s=”library://ns.adobe.com/flex/spark”

xmlns:mx=”library://ns.adobe.com/flex/mx”

width=”100%” height=”100%”

>

@namespace s “library://ns.adobe.com/flex/spark”;

@namespace mx “library://ns.adobe.com/flex/mx”;

.myTabs{

color:#FFFFFF;

font-weight:bold;

background-color:#6495ED;

}

.myTextTabs{

color:#8B0000;

background-color:#97FFFF;

font-weight:bold;

}

mx|TabNavigator{

tab-style-name:”myTabs”;

first-tab-style-name:”myTabs”;

last-tab-style-name:”myTabs”;

selected-tab-text-style-name:”myTextTabs”;

}

import mx.collections.ArrayCollection;

[Bindable]

//学生数据绑定

private var studentArray:ArrayCollection=new ArrayCollection([

{sno:”2013010101″,math:”96″},

{sno:”2013010102″,math:”89″},

{sno:”2013010103″,math:”87″},

{sno:”2013010104″,math:”90″},

{sno:”2013010105″,math:”78″},

{sno:”2013010106″,math:”69″},

{sno:”2013010107″,math:”92″},

{sno:”2013010108″,math:”80″},

{sno:”2013010109″,math:”60″},

{sno:”2013010110″,math:”89″}

]);

[Bindable]

//教师数据绑定

private var teacherArray:ArrayCollection=new ArrayCollection([

{tno:”2013010101″,tscore:”96″},

{tno:”2013010102″,tscore:”99″},

{tno:”2013010103″,tscore:”77″},

{tno:”2013010104″,tscore:”70″},

{tno:”2013010105″,tscore:”98″},

{tno:”2013010106″,tscore:”79″},

{tno:”2013010107″,tscore:”82″},

{tno:”2013010108″,tscore:”70″},

{tno:”2013010109″,tscore:”80″},

{tno:”2013010110″,tscore:”79″}

]);

]]>

© 版权声明

相关文章