Set the value and range

Set the range:

<js:NumericStepper minimum="0" maximum="25"/>

Set the current value:

<js:NumericStepper value="5"/>

Snap to specific values:

<js:NumericStepper snapInterval="5"/>

Listen to events

Listen for changes to the value property:

<js:NumericStepper id="stepper" valueChange="onValueChange(event)"/>
<fx:Script>
<![CDATA[
private function onValueChange(event:Event):void
{
trace("value change:", stepper.value);
}
]]>
</fx:Script>
  • No labels