# Video Scrubbing of Death

**URL:** <https://forum.kirupa.com/t/video-scrubbing-of-death/183524>\
**Category:** flash\
**Created:** [March 27, 2006, 10:07pm UTC](https://forum.kirupa.com/t/video-scrubbing-of-death/183524 "2006-03-27T22:07:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![malidia](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/malidia/32/684_2.png) [@malidia](https://forum.kirupa.com/u/malidia)\
**Post date:** [March 27, 2006, 10:07pm UTC](https://forum.kirupa.com/t/video-scrubbing-of-death/183524/1 "2006-03-27T22:07:41Z")

</div>

Hello,

I seem to be having problems, i have developed my own scrub bar for a video embeded in an external .swf, and it works, but really slowly.

I have attached the main .fla, but I have an external video named “sampleVideo.fla” that I am only supplying the code for due to filesize.

Anyway, like I said the scrub bar works, although whenever I try and drag the slider the frame rate of the movie gets really choppy.

I was wondering if anyone would know what crucial mistake I am making.

Thanks in advance.

Here is the .fla

[www.troyblank.com/temp/videoPlayer.fla](http://www.troyblank.com/temp/videoPlayer.fla)

Here is the code that is in the external .swf this .fla refrences.

```auto

videoTracking = function () {
    this.onEnterFrame = function() {
        newScrubLocation = ((this._currentframe/this._totalframes)*_root.player_mov.videoSlider_mov.scrubBar_mov._width);
        _root.player_mov.videoSlider_mov.dragger_mov._x = newScrubLocation;
        if (this._currentframe>=this._totalframes) {
            stop();
            trace("Da movie is done");
            delete this.onEnterFrame;
        }
    };
};
videoTracking();

```

I think it maybe because I am scrubbing an .flv on a .swf’s timeline, but I dont’ know a better way to embed external video and control it, so if anyone knows a better way, i might head that route.
