# Simple colour change of textInput?

**URL:** https://forum.kirupa.com/t/simple-colour-change-of-textinput/159793
**Category:** flash
**Created:** [August 20, 2005, 9:21am UTC](https://forum.kirupa.com/t/simple-colour-change-of-textinput/159793 "2005-08-20T09:21:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![darthmahon](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@darthmahon](https://forum.kirupa.com/u/darthmahon)
#### Post date: [August 20, 2005, 9:21am UTC](https://forum.kirupa.com/t/simple-colour-change-of-textinput/159793/1 "2005-08-20T09:21:14Z")

</div>

Hi,

I’ve got a simple function to change the colour of a textInput component box - problem is it doesn’t work. I can’t see why not - surely this should be really simple, I can’t understand why it is so hard?

```auto

function colourChange(txtField, bgColour, txtColour) {
    _root.txtField.backgroundColor = bgColour;
    _root.txtField.Color = txtColour;
    _root.txtField.background = true;
    _root.txtField.border = false;
}

colourChange("ticker_txt", "0xFF0000", "0xFFFFFF");

```

I have a textInput component on the stage with an instance name of ticker\_txt.

Any ideas? Is it even possible to change the colour of the font in textInput components?

Cheers,  
Chris
