Mega Code Archive

 
Categories / Flex / Components
 

Use style to change font size and weight for RadioButton and Label

<?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";     mx|RadioButton, mx|Label {       font-size:10;       font-weight:bold;     }   </mx:Style>   <mx:Panel title="Select a vehicle" width="135">     <mx:RadioButton label="Plane" value="plane" groupName="vehicleGroup"/>     <mx:RadioButton label="Train" value="train" groupName="vehicleGroup"/>     <mx:RadioButton label="Automobile" value="car" groupName="vehicleGroup"/>     <mx:RadioButtonGroup id="vehicleGroup" />     <mx:ControlBar>       <mx:Label text="asdf"/>     </mx:ControlBar>   </mx:Panel>    </mx:Application>