You are missing the change event.
private function onChange():void
Pls let me know if you have any issue.
Shardul Singh Bartwal
Not really i tried that event...
it runs everytime the slider changes his value..
even when im using the thumb and i made my slider move along with a movie so it calls the change event all the time...
there is another event or method that i can use?
I have a slider, with those thumb events:
protected function slider_thumbPress():void
private function slider_thumbRelease():void
Now this events only occure when you click the thumb, but i want the movie to move also when you click somewhere on the slider.
so i used this event:
protected function slider_mouseDownHandler(event:MouseEvent):void
var posX:Number = event.localX;
var totalX:Number = 430;
var dur:Number = player.getDuration();
player.seekTo(Math.floor((posX / totalX) * dur), true);
Now they are conflicting each other...
There is a way to fix it?