AS3 Video Player: seekBar
I am making a custom video player with a play and pause button but also a slider (seekBar). I have got everything else to work save for the slider. I've been looking on the web the last few days trying to find code or a tutorial. This is what I have so far.
stop();
btnPlay.addEventListener(MouseEvent.CLICK, startplaying);
function startplaying(event:MouseEvent):void {
play();
logo.play();
}
btnPause.addEventListener(MouseEvent.CLICK, stopplaying);
function stopplaying(event:MouseEvent):void {
stop();
logo.stop();
}
logo.seekBar = seeker;
I need a function to link the video player to the slider. Any help would be appreciated.