I am trying to use the NumericStepper component in Flex and would like to give its textField (not just the whole thing) an id but not sure how. I have already given an id to the NumericStepper itself but would like to give an id to its textInput field.
Share
It already has one. The TextInput of a NumericStepper is a skin part named textDisplay. SkinParts by definition must be defined as public variables.
So you can access it as
myNumericStepperInstance.textDisplayFor example to trace out the text, you might use something like this:
I’m not sure what you want to use this for, though. I’m not sure I’d recommend trying to toy with skin parts from the outside of a component. You’re better off extending the component to perform your needed functionality.