I have already looked at this question:How to change the text color in NumericStepper the link referenced is broken.
I have the following code:
var sdAdopt:NumericStepper = sdAdoptGroup.getChildAt(year) as NumericStepper;
sdAdopt.textDisplay.setStyle("color","red");
it does not work.
I have also tried
sdAdopt.setStyle("color", 0xFF0000);
I have also tried using a textFormatter object. Nothing has worked. What is going on?
To Change the colour of the text just use setStyle like so.
I'm not sure why your sample code is using year in the call to getChildAt.