flex按钮添加图标

来源:互联网 发布:键帽配色软件 编辑:程序博客网 时间:2024/06/05 06:13

主要使用<fx:Style>标签,按钮主要使用<mx:Button>

<?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" minWidth="955" minHeight="600"><fx:Style >@namespace s "library://ns.adobe.com/flex/spark";@namespace mx "library://ns.adobe.com/flex/mx";.myCustomButton {overSkin:Embed(source="../flex_src/weather/a_1.gif");upSkin:Embed(source="../flex_src/weather/a_2.gif");downSkin:Embed(source="../flex_src/weather/a_3.gif");}</fx:Style ><mx:Button styleName="myCustomButton"  width="300" height="120" x="183" y="177"/><mx:Button styleName="myCustomButton"  x="707" y="76" label="按钮" width="224" height="79"/></s:Application>


原创粉丝点击