# AS3 videoplayer

**URL:** <https://forum.kirupa.com/t/as3-videoplayer/267588>\
**Category:** flash\
**Created:** [August 3, 2008, 3:52pm UTC](https://forum.kirupa.com/t/as3-videoplayer/267588 "2008-08-03T15:52:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheMagicMan](https://avatars.discourse-cdn.com/v4/letter/t/f4b2a3/32.png) [@TheMagicMan](https://forum.kirupa.com/u/TheMagicMan)\
**Post date:** [August 3, 2008, 3:52pm UTC](https://forum.kirupa.com/t/as3-videoplayer/267588/1 "2008-08-03T15:52:06Z")

</div>

I’m building a flash video player in AS3, but having troubles with the progress scrubber.  
this is my code that i think i’m having troubles with:  
controller.playbox.x = (nsStream.time/objInfo.duration) \* (controller.f\_middle.width)

playbox is the scrubber, f\_middle is the progress bar.

The problem is that the scrubber always starts in the most left of the symbol it is with, which is not where I want it to be. The scrubber should start where the original place is.

Thanks
