9/27/2010 3:00:51 AM
Title:
Remove HSlider thumb mouse move
Hi All,
I wan to remove thumb drag event from HSlider. I just need its click event not the drag event.'
I am working on a video player sort of thing and in that I am using HSlider thumbs to display as markers for sync points in the video. But the application requirement is to just show sync marker and do something on marker's click. But the problem is that they are drag-gable and this allows user to move their position, which is not required.
Thanks in advance for any help.
Varun
9/27/2010 10:54:27 AM
you can stop any event from executing by using stopPropagation inside your event handler function. In your case you can use event.stopPropagation() inside the scrollevent of the horizontal Scrollbar of your image list.
private function ImageScroll(evt:ScrollEvent):void{
evt.stopPropagation();
}
9/29/2010 1:35:58 AM
Thanks for help Troy.
But I am talking about HSlider in HSlider we can increase number of thumbs by setting thumbcount property of the HSlider. I need to stop thumbs drag event. I am not talking about horizontal scrollbar. Any idea how to do it with HSlider?
9/29/2010 11:56:38 AM
The real solution can be done by extending the class and writing your own thumb down class code ,thats going to be big work because u want drag to stop but click to work, so just removing click listener is not your solution .See this workaround it will allow the click on thumb but prevent it from being dragged.
9/30/2010 4:06:10 AM
OK let me try your suggestion.Thanks