Set Button color with style
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Style> @namespace mx "http://www.adobe.com/2006/mxml"; mx|Button { color: Blue; } .myClass { fontFamily:Arial, Helvetica, "_sans"; color: Red; fontSize: 22; fontSize: 10pt; fontWeight:bold; } </mx:Style> <mx:VBox id="vb"> <mx:TextInput styleName="myClass" text="My attrs" id="ip1" width="400" /> <mx:Label id="lb1" text="" width="400" /> <mx:Button label="Get Style"/> </mx:VBox> </mx:Application>