Use a static constant as the source for a data-binding expression
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> public static const constString:String="A static const."; </mx:Script> <mx:Button label="{constString}" /> </mx:Application>