flex按钮添加图标
发布时间:2020-12-15 04:18:02 所属栏目:百科 来源:网络整理
导读:主要使用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" min
主要使用<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> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |