Hi,
I have created a Flash MP3 player with a timeline, at the moment you have to click on the place in the timeline to move to but I would like people to be able to click and drag the time slider.
The code I have for setting the position in the time slider is
function setNewProgress(e:MouseEvent):void {
var p:int = sndObject.length * e.currentTarget.mouseX / 166;
chaObject.stop();
chaObject = sndObject.play(p);
this.btnPlay.visible = false;
this.btnPause.visible = true;
}
which is called by
this.progressbar.addEventListener(MouseEvent.CLICK, setNewProgress);
How do I make it click and drag
Thanx,
Sam Rudge