(Flash 8, ActionScript 2.0)
I am using an FLVPlayback component to play some video files and I have coded some controls for it.
Among these controls, there is a playhead that shows where the movie is at while playing. The playhead can be dragged inside the streamed potion of the video file and when released, the movie starts playing from where the playhead was released.
This works ok sometimes but other times, when the playhead is released, the FLVPlayback freezes and it won’t work anymore. It won’t work when I press play, when I move the playhead and I can’t load another movie either, it’s completely frozen.
Here is the code that is called when the playhead is released. I am using the seekPercent function.
FLVPlayback.seekPercent(Math.round(playhead._x / width * 100));
// width = the width of the bar where the playhead can move
Any idea what the error is and how I can fix it ?