Adding global CSS styles
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Style> @namespace mx "http://www.adobe.com/2006/mxml"; global { fontFamily:'Arial'; fontSize:12px; textDecoration: underline; fontWeight: bold; fontStyle: italic; backgroundColor: #66CC66; } mx|Application { textDecoration: underline; backgroundColor: #FFCCFF; } </mx:Style> <mx:Panel title="This is a test" width="261" height="178"> <mx:Label text="This is a dummy text" /> </mx:Panel> </mx:Application>