flex渐变色制作圆角橙色按钮示例代码_Flex

复制代码 代码如下:

<?xml version="1.0" encoding="utf-8"?>

<s:SparkButtonSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fb="http://ns.adobe.com/flashbuilder/2009"
minWidth="42" minHeight="30"
alpha.disabled="0.5">

<fx:Metadata>
<![CDATA[
/**
* @copy spark.skins.spark.ApplicationSkin#hostComponent
*/
[HostComponent("spark.components.Button")]
]]>
</fx:Metadata>

<!-- states -->
<s:states>
<s:State name="up" />
<s:State name="over" />
<s:State name="down" />
<s:State name="disabled" />
</s:states>

<s:Rect left="0" right="0" top="0" bottom="0" topLeftRadiusX="7" topRightRadiusX="7"
bottomLeftRadiusX="7" bottomRightRadiusX="7">
<s:stroke>
<s:SolidColorStroke color.up="0xfaa51a"/>
</s:stroke>
<s:fill>
<s:LinearGradient rotation="0">
<s:entries>
<s:GradientEntry color="0xfaa51a"/>
<s:GradientEntry color="0xf47a20" ratio=".5"/>
</s:entries>
</s:LinearGradient>
<!--<s:RadialGradient rotation="0">
<s:entries>
<s:GradientEntry color="0xF0FFFF" ratio=".7"/>
<s:GradientEntry color="0xFF83FA"/>
</s:entries>
</s:RadialGradient>-->
</s:fill>
</s:Rect>
<!-- layer 8: text -->
<!--- @copy spark.components.supportClasses.ButtonBase#labelDisplay -->
<s:Label id="labelDisplay"
textAlign="center"
maxDisplayedLines="1"
fontSize="20"
horizontalCenter="0" verticalCenter="1" verticalAlign="middle"
left="10" right="10" top="2" bottom="2"
color.up="0xffffff">
</s:Label>

</s:SparkButtonSkin>

时间: 2024-10-26 05:48:23

flex渐变色制作圆角橙色按钮示例代码_Flex的相关文章

flex实现股票行情走势图示例代码_Flex

 第一步:jsp:1 复制代码 代码如下: <%@page import="java.util.Random,java.util.GregorianCalendar"%> <?xml version="1.0" encoding="utf-8"?> <items> <% GregorianCalendar calendar = new GregorianCalendar(); int year = cal

Flex中通过RadioButton进行切换示例代码_Flex

1.页面切换 复制代码 代码如下: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx&quo

flex动态加载swf皮肤示例代码_Flex

复制代码 代码如下: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minW

Flex调Javascript打开新窗口示例代码_Flex

测试应用TestJavascript.mxml 复制代码 代码如下: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adob

flex通过js获取ip和pcname示例代码_Flex

这个是在js中获取ip和pcname的方法,现在将它放在flex启动模板中即可.看代码: 复制代码 代码如下: function getClientPcName() { //"请将您浏览器Internet选项中的"对没有标记为安全的ActiveX控件进行初始化和脚本运行"设置为"启用"!\n\n然后刷新本页登陆!" var WshShellPcName = new ActiveXObject("WScript.Network"

Flex 遍历Object键和值的示例代码_Flex

遍历键 for(var k:String in obj) { trace("Key: " + k + " - value: " + obj[k]); } 遍历值 for each(var v:* in obj) { trace("Value: " + v); } 以上是小编为您精心准备的的内容,在的博客.问答.公众号.人物.课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索遍历键 遍历值 flex object 遍历.js 遍历对象属性

flex actionScript读取文件示例代码_Flex

import flash.events.Event; import flash.net.URLLoader; import flash.net.URLRequest; import flash.net.URLVariables; public class TxtLoader { private var setTxt:Function = null; public function TxtLoader() { } public function loadTxt(fileName:String, s

flex通过java后台获取ip和pcname示例代码_Flex

在***DAOImpl.java中的代码如下 复制代码 代码如下: public String getCompuName() { Map<String, String> map = System.getenv() ; String computerName = map.get("COMPUTERNAME");// 获取计算机名 return computerName; } public String getIp() { InetAddress addr = null; tr

css结合js制作下拉菜单示例代码_javascript技巧

复制代码 代码如下: <%@page pageEncoding="utf-8" contentType="text/html;charset=utf-8" %> <HTML> <HEAD> <title>WebForm5</title> <style>/* Root = Horizontal, Secondary = Vertical */ ul#navmenu-h { margin: 0; b