Set the fontSize to 15 and the color to 0x9933FF for myButton instance
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initApp()"> <mx:Script> public function initApp():void { myButton.setStyle("fontSize",15); myButton.setStyle("color",0x9933FF); } </mx:Script> <mx:Button id="myButton" label="Click Here" /> </mx:Application>