相同按钮皮肤弹性的不同图标
我的按钮有下面的皮肤:
<?xml version="1.0" encoding="utf-8"?><s:SparkSkin
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
>
<!-- host component -->
<fx:Metadata>
<![CDATA[
[HostComponent("spark.components.Button")]
]]>
</fx:Metadata>
<!-- states -->
<s:states>
<s:State name="up" />
<s:State name="over" stateGroups="overStates"/>
<s:State name="down" stateGroups="overStates" />
<s:State name="disabled" />
</s:states>
.....
</s:SparkSkin>
我想知道如何为具有相同皮肤的不同按钮添加不同的图像。
I have the skin below for my buttons:
<?xml version="1.0" encoding="utf-8"?><s:SparkSkin
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
>
<!-- host component -->
<fx:Metadata>
<![CDATA[
[HostComponent("spark.components.Button")]
]]>
</fx:Metadata>
<!-- states -->
<s:states>
<s:State name="up" />
<s:State name="over" stateGroups="overStates"/>
<s:State name="down" stateGroups="overStates" />
<s:State name="disabled" />
</s:states>
.....
</s:SparkSkin>
I was wondering how I can add a different image for different buttons which have the same skin.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
两个步骤:
火花皮肤。
icon
样式Two steps:
SparkSkin.
icon
style of your Button您可以设置图像的路径(完整路径或相对于您所在路径的路径)
或嵌入图像
You can set the path of the image (the full path or relative to the path you are in)
Or embed the image