1 Reply Latest reply on Mar 23, 2007 12:46 PM by ebrentnelson

    HSlider with lables.

    oscar7878 Level 1
      Hi,

      I'm using a HSlider to select a price between a max and a min value. I'm getting the min / max price from mysql, so I dont know the values before calling the remote object.

      I'm assigning the HSlider.minimum and HSlider.maximun with the values from the remote object but i can not assing the "LABELS".

      How can create the HSlider' "lables" using actionscript?

      I tryed:

      //PriceFrom is the HSlider and 'labelMinPrice' / 'labelMaxPrice' are variables.
      PriceFrom.labels="[{labelMinPrice},{labelMaxPrice}]";
        • 1. Re: HSlider with lables.
          ebrentnelson
          You can do this:

          PriceFrom.labels=[labelMinPrice,labelMaxPrice];

          Where labelMinPrice and labelMaxPrice are variables, OR

          PriceFrom.labels=["labelMinPrice","labelMaxPrice"];

          If you want to bind the labels you will need to bind the array that you are using to assign the variables:

          [Bindable]
          var myArray = =["labelMinPrice","labelMaxPrice"];

          <mx:HSlider labels="{ myArray }" />