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

发布时间:2022-04-17 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了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>

脚本宝典总结

以上是脚本宝典为你收集整理的flex渐变色制作圆角橙色按钮示例代码全部内容,希望文章能够帮你解决flex渐变色制作圆角橙色按钮示例代码所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:渐变色