# Smooth scrolling of text

**URL:** <https://forum.kirupa.com/t/smooth-scrolling-of-text/135171>\
**Category:** Uncategorized\
**Created:** [January 25, 2005, 9:42am UTC](https://forum.kirupa.com/t/smooth-scrolling-of-text/135171 "2005-01-25T09:42:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nasih](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@nasih](https://forum.kirupa.com/u/nasih)\
**Post date:** [January 25, 2005, 9:42am UTC](https://forum.kirupa.com/t/smooth-scrolling-of-text/135171/1 "2005-01-25T09:42:58Z")

</div>

Hi

please help me to make this a more smooth scrolling with actionscript.  
text will be loaded dynamically. (not static)

* * *

onClipEvent ( enterFrame ) { // this is Button movieClip  
if (lPressed) {  
this.\_parent.txt.scroll += 1;

```
   myTimer = 1;
  while (myTimer &lt; 50000){
	myTimer ++;  
  }

```

}  
}

* * *

on (rollOver) { // // these are up and down buttons  
lPressed = true;  
}  
on (rollOut) {  
lPressed = false;  
}
