# Audio Progress bar scrubbing/slider?

**URL:** <https://forum.kirupa.com/t/audio-progress-bar-scrubbing-slider/327029>\
**Category:** flash\
**Created:** [January 31, 2012, 10:42pm UTC](https://forum.kirupa.com/t/audio-progress-bar-scrubbing-slider/327029 "2012-01-31T22:42:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazerbrains](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lazerbrains](https://forum.kirupa.com/u/lazerbrains)\
**Post date:** [January 31, 2012, 10:42pm UTC](https://forum.kirupa.com/t/audio-progress-bar-scrubbing-slider/327029/1 "2012-01-31T22:42:08Z")

</div>

I have an audio progress bar that I have created. It uses the following code:

```auto

import flash.events.Event;progress_bar_inst.tb_mc.scaleX = 0;
addEventListener(Event.ENTER_FRAME,EnterFrame);
function EnterFrame(evt:Event):void {
    progress_bar_inst.tb_mc.scaleX = instructor_audio.currentFrame/instructor_audio.totalFrames;
}

```

It works great! But I would like to add the ability to “scrub” or use a slider to move forward and back in the audio clip. (like it does with FLV Playback component)

I have no idea how to do this. DOes anyone have any info on this, or is there an easy way to add to my existing code to add this functionality?
