# Customize radioButton component

**URL:** <https://forum.kirupa.com/t/customize-radiobutton-component/194988>\
**Category:** flash\
**Created:** [July 27, 2006, 5:19pm UTC](https://forum.kirupa.com/t/customize-radiobutton-component/194988 "2006-07-27T17:19:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![satiss](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@satiss](https://forum.kirupa.com/u/satiss)\
**Post date:** [July 27, 2006, 5:19pm UTC](https://forum.kirupa.com/t/customize-radiobutton-component/194988/1 "2006-07-27T17:19:24Z")

</div>

I’m trying to set style to a radioButton… But I still can’t change the font size.

I tryed the coding on the reference page [http://livedocs.macromedia.com/flash/mx2004/main\_7\_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash\_MX\_2004&file=00002713.html](http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00002713.html)

drag a RadioButton on your Stage, then name the component \*\*myRadioButton, \*\*Put this actionscript in a frame :

myRadioButton.setStyle(“themeColor”, “0xFF0000”);  
myRadioButton.setStyle(“color”, “0xFFFFFF”);  
myRadioButton.setStyle(“embedFonts”, false); // true  
myRadioButton.setStyle(“fontFamily”, “verdana”);  
[COLOR=red]**myRadioButton.setStyle("fontSize ", “8”);**  
[/COLOR]myRadioButton.setStyle("fontStyle ", “italic”); // normal  
myRadioButton.setStyle(“fontWeight”, “none”); // bold  
myRadioButton.setStyle("textDecoration ", “none”); // underline

I need to use a FFF font (size 8px)  
Does someone as a solution for that? :book:
