# FLVPlayback freezing error

**URL:** <https://forum.kirupa.com/t/flvplayback-freezing-error/302677>\
**Category:** flash\
**Created:** [January 5, 2010, 5:53pm UTC](https://forum.kirupa.com/t/flvplayback-freezing-error/302677 "2010-01-05T17:53:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fido\_glc](https://avatars.discourse-cdn.com/v4/letter/f/3da27b/32.png) [@fido\_glc](https://forum.kirupa.com/u/fido_glc)\
**Post date:** [January 5, 2010, 5:53pm UTC](https://forum.kirupa.com/t/flvplayback-freezing-error/302677/1 "2010-01-05T17:53:16Z")

</div>

(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.

```auto

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 ?
