1 Reply Latest reply on Jul 6, 2007 4:26 AM by peterent

    Data to control slider

    kwartz2
      How do I get data input from a user interface to control the position of the pointer on a slider on my bar chart
        • 1. Re: Data to control slider
          peterent Level 2
          The position of the pointer on the Slider is controlled by setting the Slider's value property:

          <mx:Slider id="miles" minimum="0" maximum="5000" />
          ...
          miles.value = 238;

          I don't know what other control you have in mind for changing the position of the pointer, but most interactive controls support the change event:

          ... change="miles.value=event.currentTarget. value" ...

          If the control were a NumericStepper, then value would be the right property; if the control were a ComboBox, then you might want the currentIndex or perhaps a field of the currentItem.