Simple colour change of textInput?

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?


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