# Action Script For Scrolling Text

**URL:** <https://forum.kirupa.com/t/action-script-for-scrolling-text/32576>\
**Category:** Uncategorized\
**Created:** [October 8, 2003, 4:02pm UTC](https://forum.kirupa.com/t/action-script-for-scrolling-text/32576 "2003-10-08T16:02:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![macmar](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@macmar](https://forum.kirupa.com/u/macmar)\
**Post date:** [October 8, 2003, 4:02pm UTC](https://forum.kirupa.com/t/action-script-for-scrolling-text/32576/1 "2003-10-08T16:02:16Z")

</div>

I have a text field on a layer using dynamic text and html. My 2 buttons on a 2nd layer with this AS:  
Up Button:  
on (release) {  
scrollText.scroll +=2 ;  
}  
Down Button:  
on (release) {  
scrollText.scroll -=2 ;  
}  
I don’t like the choppy action you get with this method (by simply changing the +=2 to +=1.3.4. etc.) Is there AS that will scroll the text continuously when the button is pressed? I don’t want a scroll BAR, I need my 2 seperate buttons positioned on stage where I want them. Thanks for any suggestions.
