Ok, enough messing around, please try to isolate the slider filter
function and behavior first; before trying to add it to the comboBox
filtes. Below is a basic sturcture of what you need to do. 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 = slider.values[0];
sliderToValue = slider.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 [email protected], "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.
>