Video Scrubbing of Death

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

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


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.