0

Is there a way to hide the track in an HSlider and if possible so that only the button accepts mouse interaction?

I would like to layer two HSliders together on top of one another and make a pseudo multithumb slider and hide the track of one of them (so you can click the other thumb).

zero323
  • 322,348
  • 103
  • 959
  • 935
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
  • Have you tried track as visible = false? ex.:- hsliderID.track.visible = false;(on creationComplete of HSlider) where as hsliderID is ID of HSlider. – Mahesh Parate Sep 24 '12 at 08:40
  • 1
    Or create a custom skin without track. – RIAstar Sep 24 '12 at 08:51
  • I tried slider.track.alpha = 0 and hid the track but I was not able to click anything behind it still. – 1.21 gigawatts Sep 24 '12 at 16:36
  • Use visible, not alpha. Alpha just changes the transparency. Visible completely removes its viewable properties from the display list. Set visible to false and it will no longer accept mouse events and should allow you to click items under the track. – Josh Sep 24 '12 at 20:23

1 Answers1

1

You will need to create custom skin for HSlider without track or with an invisible track

TobiHeidi
  • 1,201
  • 2
  • 14
  • 23