Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent user mouse-click interactivity with Flex Spark slider?

I am using Flex Spark Slider as a time-line for a Flex video player custom component I have created.

I want to prevent the user from clicking on the slider and changing its value, but at the same time I should be able to change the value of the slider programmatically.

Setting the "enabled" property for the slider to "false" doesn't help as then I am not able to change the slider value programmatically.

Any clue, how to achieve this behavior?

like image 255
stressed_geek Avatar asked Dec 01 '25 16:12

stressed_geek


1 Answers

If you only have a single element that needs to have the mouse disabled, use the mouseEnabled property. If however you have child elements on a particular object that you want to cascade the disabling of the mouse events to, make sure to set the mouseChildren property as well. This second one has caught me before when I was still getting a response to mouse events even though I though I had disabled them. For what you need, sounds like setting mouseEnabled should be enough.

like image 83
Scott Avatar answered Dec 04 '25 07:12

Scott



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!