Seek Bar Component Flash CS5
Hi, I've been trying to use the seek bar component in Flash CS5.
I've managed to use create my own play and pause buttons using the following code:
playbtn.addEventListener(MouseEvent.CLICK, fl_ClickToPlayVideo);
function fl_ClickToPlayVideo(event:MouseEvent):void
{
// Replace video_instance_name with the instance name of the video component
video.play();
}
pausebtn.addEventListener(MouseEvent.CLICK, fl_ClickToPauseVideo);
function fl_ClickToPauseVideo(event:MouseEvent):void
{
// Replace video_instance_name with the instance name of the video component
video.pause();
}
I've dragged the SeekBar component onto the stage and given it an instance name of "mySeekBar".
I have then referenced this in the Actionscript as follows:
video.seekBar = mySeekBar;
However, the seek bar doesn't work. It displays but there is no slider etc.
Can anyone help me out as I have very little knowledge of Actionscript!
Thanks.
