# Change font/color of TextInput?

**URL:** https://forum.kirupa.com/t/change-font-color-of-textinput/228594
**Category:** flash
**Created:** [June 9, 2007, 10:18am UTC](https://forum.kirupa.com/t/change-font-color-of-textinput/228594 "2007-06-09T10:18:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Huinoio](https://avatars.discourse-cdn.com/v4/letter/h/ce73a5/32.png) [@Huinoio](https://forum.kirupa.com/u/Huinoio)
#### Post date: [June 9, 2007, 10:18am UTC](https://forum.kirupa.com/t/change-font-color-of-textinput/228594/1 "2007-06-09T10:18:23Z")

</div>

Is there a quick and easy way to change the font/color of a component like the TextInput or Checkbox? I’m able to change the TextField with a TextFormat, but seem to run into a square peg and round hole with the other components.

var tf:TextFormat = new TextFormat();  
tf.font = “Verdana”;  
tf.color = 0x000000;  
tf.size = 10;  
tf.underline = false;  
var id\_lbl:TextField = new TextField();  
id\_lbl.defaultTextFormat = tf;

Can I plug this into a Checkbox to change the label or TextInput to change the text?
