<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white"> <mx:Style>
.allButtons2 {
/* Creates a gradient from red/orange when button is in the
"out" state. */
fillColors: red, haloOrange;
} .allButtons4 {
/* Creates a gradient from red/orange when button is in the
"out" state. Creates a gradient from green/blue when
button is in the "over" state. */
fillColors: red, haloOrange, haloGreen, haloBlue;
} .allButtonsSolid {
fillColors: red, red;
} .allButtonsSolidOpaque {
fillAlphas: 1.0, 1.0;
fillColors: red, red;
}
</mx:Style> <mx:ViewStack id="viewStack"
visible="false"
includeInLayout="false">
<mx:VBox label="One">
<mx:Label text="One" />
</mx:VBox>
<mx:VBox label="Two">
<mx:Label text="Two" />
</mx:VBox>
<mx:VBox label="Three">
<mx:Label text="Three" />
</mx:VBox>
</mx:ViewStack> <mx:Form>
<mx:FormItem label="2 fill colors defined:">
<mx:ButtonBar id="buttonBar2"
buttonStyleName="allButtons2"
dataProvider="{viewStack}" />
</mx:FormItem>
<mx:FormItem label="4 fill colors defined:">
<mx:ButtonBar id="buttonBar4"
buttonStyleName="allButtons4"
dataProvider="{viewStack}" />
</mx:FormItem>
<mx:FormItem label="solid fill:">
<mx:ButtonBar id="buttonBarSolid"
buttonStyleName="allButtonsSolid"
dataProvider="{viewStack}" />
</mx:FormItem>
<mx:FormItem label="solid opaque fill:">
<mx:ButtonBar id="buttonBarSolidOpaque"
buttonStyleName="allButtonsSolidOpaque"
dataProvider="{viewStack}" />
</mx:FormItem>
</mx:Form> </mx:Application>

[Flex] ButtonBar系列——flex3 ButtonBar样式之颜色的填充的更多相关文章

  1. [Flex] ButtonBar系列——flex3 ButtonBar属性labelPlacement标签相对于指定图标的方向

    <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="h ...

  2. [Flex] ButtonBar系列——flex3 ButtonBar各项之间的间距调整

    <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="h ...

  3. [Flex] ButtonBar系列——flex3 ButtonBar圆角菜单的运用

    <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="h ...

  4. [Flex] ButtonBar系列——flex3 皮肤和外观设置

    <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="h ...

  5. [Flex] ButtonBar系列——flex3 labelFunction用户提供的函数,在每个项目上运行以确定其标签

    <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="h ...

  6. [Flex] ButtonBar系列——控制ButtonBar菜单是否可用

    <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="ht ...

  7. CSS系列——浏览器默认样式

    了解HTML标签在各浏览器当中的默认样式,可以让我们了解,为什么会要写Reset.css,Reset.css当中要怎么写样式最合理.试着思考下面的问题: 为什么会有默认样式? 每个浏览器的默认样式有什 ...

  8. UITabBarController 、TabBar背景颜色设置,UITabBarItem的文字样式(颜色和大小)UITabBarItem的位置调整

    改变UITabBarController的颜色 UIView*mView=[[UIView alloc]initWithFrame:CGRectMake(0,0,320,48)];//这是部分tabb ...

  9. [Flex] PopUpButton系列 —— 弹出菜单的行高设置

    <?xml version="1.0" encoding="utf-8"?> <!--Flex中如何通过variableRowHeight样式 ...

随机推荐

  1. noip2013提高组day1第一题-转圈游戏——快速幂典型应用

    所谓的快速幂: // 计算 m^n % k 的快速幂算法 int quickpow(int m,int n,int k) { ; ) { ) b = (b*m)%k; n = n >> ; ...

  2. GridView中实现点击某行的任意位置就选中该行

    来源:http://auv2009.blog.163.com/blog/static/68858712200992731010670/ 在 GridView中增加一列:(该列是选择按钮,让其不显示) ...

  3. poj 1597 Uniform Generator【生成指定范围内所有随机数】

    本文参考资料:http://hi.baidu.com/bnjyjncwbdbjnzr/item/1f997cfdd225d5d143c36a58 题意:一个生成随机数的函数, Seed[x+1] =  ...

  4. OpenJudge计算概论-完美立方【暂时就想到了枚举法了】

    /*===================================== 完美立方 总时间限制: 1000ms 内存限制: 65536kB 描述 a的立方 = b的立方 + c的立方 + d的立 ...

  5. 【jmeter】逻辑控制器

    JMeter中的Logic Controller用于为Test Plan中的节点添加逻辑控制器. JMeter中的Logic Controller分为两类:一类用来控制Test Plan执行过程中节点 ...

  6. URL地址中的转义符

    如果在XML里面存储URL地址可能涉及到转义符的问题 WEB开发中通过问号(?)方式在浏览器地址栏中传值时.浏览器是通过“&”来区分问号后的参数个数的. 如果出现传值参数中带有“&”时 ...

  7. OpenCV图像处理篇之边缘检测算子

    OpenCV图像处理篇之边缘检测算子 转载: http://xiahouzuoxin.github.io/notes/ 3种边缘检测算子 一阶导数的梯度算子 高斯拉普拉斯算子 Canny算子 Open ...

  8. (转)LitJson 遍历key

    本文转载自:http://blog.csdn.net/inlet511/article/details/47127579 用LitJson插件获取到的对象,如果想遍历对象中包含的子对象的key,可以用 ...

  9. 【Oracle学习笔记-4】内连接和外连接的区别

    参考链接(非常棒) 摘要 下面主要以两个例子进行说明: 例子1: 表A结构如下: select * from A | 表B结构如下: select * from B 两个表要做连接,就必须有个连接字段 ...

  10. php 获取中文的拼音

    注意事项: 无法识别的中文 亳:bo,如果有此字,结果为空,调用此类之前需要手动加判断 蚌:bang,beng,多音字 莞:guan 圳:zhen 儋:dan 漯:luo 濮:pu 泸:lu 衢:qu ...