# Progress Bar Scrubbing Help

**URL:** https://forum.kirupa.com/t/progress-bar-scrubbing-help/209876
**Category:** flash
**Created:** [December 13, 2006, 12:33am UTC](https://forum.kirupa.com/t/progress-bar-scrubbing-help/209876 "2006-12-13T00:33:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ktonini](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@ktonini](https://forum.kirupa.com/u/ktonini)
#### Post date: [December 13, 2006, 12:33am UTC](https://forum.kirupa.com/t/progress-bar-scrubbing-help/209876/1 "2006-12-13T00:33:33Z")

</div>

hello,

i have an mp3 player that uses a progress bar to scrub back and forth. For some reason though, when i click the progress bar, instead of scrubbing, it goes to the end and stops playing.

here is my actionscript:

```auto
startMove = function () {
    stopPlayback();
    progressBar.onEnterFrame = function () {
        if (btTrack._xmouse / btTrack._width * 100 > 100) {
        }
        if (100 <= 0) {
            var local1 = 0;
        }
        _pos = _snd.duration / 1000 * (local1 / 100);
        progressBar._xscale = local1;
    };
};
stopMove = function () {
    delete progressBar.onEnterFrame;
    startPlayback();
};

```

any ideas as to why it is behaving this way?

Thanks!

-Keith
