I have a NumericStepper:
<mx:NumericStepper id="percentWidVal" minimum="1" maximum="100" value="50"/>
percentWidVal.value = chart.getChartOptions().getPercentWidth(); // doesn't work
How could I get this to work? I can't find any way to make the stepper lose it's focus but that seems like it would be the obvious solution.
How is that code running? Based on a timer or some other user action? You can call setFocus() on another component and the numeric stepper will lose focus
Flex SDK Developer
Adobe Systems Inc.
The actionscript gets called when the user selects another chart from a list. The event handler calls the actionscript line to fill in the forms with all the information for that chart (Title, Type, percentWidth, etc).
By the way, if I change the NumericStepper to a TextInput, the code works and updates fine. Don't know why this won't work for a stepper.