# Fast forward and reverse movie button

**URL:** <https://forum.kirupa.com/t/fast-forward-and-reverse-movie-button/172930>\
**Category:** Uncategorized\
**Created:** [December 19, 2005, 6:35pm UTC](https://forum.kirupa.com/t/fast-forward-and-reverse-movie-button/172930 "2005-12-19T18:35:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wdv](https://avatars.discourse-cdn.com/v4/letter/w/9fc29f/32.png) [@wdv](https://forum.kirupa.com/u/wdv)\
**Post date:** [December 19, 2005, 6:35pm UTC](https://forum.kirupa.com/t/fast-forward-and-reverse-movie-button/172930/1 "2005-12-19T18:35:37Z")

</div>

I have attached the .fla file(flash8), can anyone help me?, I cant figure out how to keep my scroller from going off screen.

this is the action that was applied to my movie clip controller.

stop();  
onEnterFrame = nextFrame;  
myButton.onEnterFrame = function() {  
this.\_x = \_currentframe + 25;  
};  
myButton.onPress = function() {  
delete this.onEnterFrame;  
startDrag(this, false, 65, this.\_y, 525, this.\_y);  
onEnterFrame = function () {  
gotoAndStop(Math.round(myButton.\_x - 25));  
};  
};  
myButton.onRelease = myButton.onReleaseOutside = function () {  
stopDrag();  
onEnterFrame = nextFrame;  
this.onEnterFrame = function() {  
this.\_x = \_currentframe + 25;  
};  
};
