站长网 Unix 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


<?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>
<fx:Declarations>

</fx:Declarations>

<!– states –>
<s:states>
<s:State />
<s:State />
<s:State />
<s:State />
</s:states>
<s:Rect left=”0″ right=”0″ top=”0″ bottom=”0″>
<s:fill>
<s:BitmapFill source.up=”@Embed(‘images/1_130927114244_1.png’)” smooth=”true” fillMode=”scale”/>
</s:fill>
</s:Rect>

</s:SparkButtonSkin>

本文来自网络,不代表站长网立场,转载请注明出处:https://www.zwzz.com.cn/html/server/unix/2021/0525/6575.html

作者: dawei

【声明】:站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。
联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部