Set style name for Label
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Label id="contactName" styleName="heading" x="10" y="10" text="AAA"/> </mx:Application>