主要使用<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>