Flex CSS: class definitions that work the same way as HTML CSS
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Style> .coolStuff { fontFamily:Tahoma; font-Size:14px; color:#AA4400; backgroundColor:#CCCCFF; } </mx:Style> <mx:TextInput text="Input 1" styleName="coolStuff" /> <mx:TextArea text="Input 2" styleName="coolStuff" /> <mx:TextInput text="Input 3" /> </mx:Application>