Ok, enough f%#king around, please try to isolate the slider filter
function and behavior first.  Below is the basic structure of what you
need to do with the slider.  Please give it a try and when you get this
working, move on to combining it with the comboBoxes.

-TH

private var sliderFromValue : Number = 0;
private var sliderToValue : Number = 3000000;

private function onSliderChange(event:SliderEvent):void
{
      var slider : Slider = Slider(event.currentTarget);
      sliderFromValue = mySlider.values[0];
      sliderToValue = mySlider.values[1];
      filterGrid();
}

private function filterGrid():void
{
      dataAr.filterFunction=myFilterFunction;
      dataAr.refresh();
}

private function myFilterFunction(item : Object) : Boolean
{
       return (item.value >= sliderFromValue && item.value <=
sliderToValue);
}

<mx:HSlider id="mySlider"
      thumbCount="2"
      snapInterval="100000"
      liveDragging="true"
      minimum="0"
      maximum="3000000"
      allowThumbOverlap="false"
      change="onSliderChange(event)"/>


--- In flexcoders@yahoogroups.com, "stinasius" <[EMAIL PROTECTED]> wrote:
>
> when i take out values="[0,3000000] " there is no change in the
> behavior. is the way i call the filter function on the change events
> of the combos and slider correct? have a feeling that's what is
> causing the problem.
>


Reply via email to