Apache flex 正常的纽扣皮肤在哪里
我正在尝试复制/修改默认按钮的spark外观,但不确定如何找到该外观。当我将鼠标悬停在Apache flex 正常的纽扣皮肤在哪里,apache-flex,actionscript-3,adobe,mxml,Apache Flex,Actionscript 3,Adobe,Mxml,我正在尝试复制/修改默认按钮的spark外观,但不确定如何找到该外观。当我将鼠标悬停在上时,默认的按钮皮肤位于中,并且子类皮肤。 不确定为什么要这样编辑 您可以使用mxml文件创建一个皮肤类,并使用skinClass <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
上时,默认的按钮皮肤位于中,并且子类皮肤。
不确定为什么要这样编辑
您可以使用mxml文件创建一个皮肤类,并使用skinClass
<s:Skin
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark"
minWidth="21" minHeight="21">
<fx:Metadata>
[HostComponent("spark.components.Button")]
</fx:Metadata>
<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" width="69" height="20" radiusX="2" radiusY="2">
<s:stroke>
<s:SolidColorStroke color="0x000000" weight="1"/>
</s:stroke>
</s:Rect>
<s:Label id="labelDisplay"
alpha.up="1"
alpha.down=".5"
alpha.over=".25"
horizontalCenter="0" verticalCenter="1"
left="10" right="10" top="2" bottom="2">
</s:Label>
</s:Skin>
[主机组件(“spark.components.Button”)]
在您的主要应用程序中
<s:Button label="Alpha Change" skinClass="mySkins.AlphaButtonSkin"/>
您使用的是Flex Builder还是Flash Builder 4?