# ENTER\_FRAME event produces choppy video scrubbing

**URL:** <https://forum.kirupa.com/t/enter-frame-event-produces-choppy-video-scrubbing/306989>\
**Category:** flash\
**Created:** [March 25, 2010, 7:41pm UTC](https://forum.kirupa.com/t/enter-frame-event-produces-choppy-video-scrubbing/306989 "2010-03-25T19:41:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hausnfranz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hausnfranz/32/2427_2.png) [@Hausnfranz](https://forum.kirupa.com/u/Hausnfranz)\
**Post date:** [March 25, 2010, 7:41pm UTC](https://forum.kirupa.com/t/enter-frame-event-produces-choppy-video-scrubbing/306989/1 "2010-03-25T19:41:24Z")

</div>

This code works fine if the timeline is moving forward through the .flv file. However, the going in reverse produces choppy results. The choppyness seems uniform, as in, it’s always choppy and always the same intensity. So I don’t think it’s a computer issue, rather a code issue?

```auto
addEventListener(Event.ENTER_FRAME, smoothMove);  
function smoothMove(event:Event) { 

    if (smoothZUp == true) {
        btn8.y = btn8.y - 1;
        dockVid.gotoAndStop(dockVid.currentFrame + 1);
        
    } else if (smoothZDown == true) {
        btn8.y = btn8.y + 1;
        dockVid.gotoAndStop(dockVid.currentFrame - 1);
        
    } else {
        //do nothing
    }
}

```
