views:

69

answers:

1

Hi,

The application I'm working on needs to have a slider to allow the user to select a Date. However, the Spark hSlider component does not have a 'labels' field like the halo hSlider does - into which you could put a collection of labels to be displayed along the track of the slider to denote the values selectable from the slider.

I have read that you have to skin the hSlider's track in order to display labels in Flex 4 - does anyone have any guidence as to how this is done?

Thanks in advance

Danny

+1  A: 

You can make your HSlider look however you like by creating your own versions of the following skins: HSliderSkin, HSliderTrackSkin, HSliderThumbSkin. Copy the default versions of these files into your project and modify them however you like. Then set the skinClass property of your HSlider to be your custom HSliderSkin. Hope that helps.

Wade Mueller
Thanks Wade. I have had a quick look into skinning the slider, but time is a bit short so I was hoping that there might be someone out there who has already solved the specific problem of adding labels/ticks through skinning (since these were natively supported in the halo slider). I have botched a quick fix for now, but will go back and look at skinning in more depth when I get the time. Thanks.
DannyC