tags:

views:

76

answers:

1

Out of the box, a VSlider puts the minumum value on the bottom of the VSlider and the maximum value on the top of the VSlider. That makes sense....most of the time.

I'd like to reverse these....maximum value on the bottom, minimum value on the top...

And I'd like to avoid the headache associated with mySlider.rotation = 180

Man, you think there'd be a property for this...

Thanks.

A: 

You can extend the VSlider and add a method that reports the reverse of the slider value.

public function getReverseSliderValue() : Number {
  return Math.abs(this.value - this.maximum) + this.minimum;
  //Adding minimum is necessary when minimum != 0
}
Robusto