# Constant Scrolling issue

**URL:** https://forum.kirupa.com/t/constant-scrolling-issue/259876
**Category:** flash
**Created:** [May 9, 2008, 4:31pm UTC](https://forum.kirupa.com/t/constant-scrolling-issue/259876 "2008-05-09T16:31:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![levidyllan](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@levidyllan](https://forum.kirupa.com/u/levidyllan)
#### Post date: [May 9, 2008, 4:31pm UTC](https://forum.kirupa.com/t/constant-scrolling-issue/259876/1 "2008-05-09T16:31:54Z")

</div>

I have the following code:

```auto

theDownbtn.onRelease = function(){
      if(thicMC.thatMC.News_txt.scroll > 1){
        thicMC.thatMC.News_txt.scroll--;
       }
  }

```

this all works fine. The textField is created dynamically as is the text, ie createTextField(??); and the content is using the LoadVars() etc

What I am after is that currently you have to click the btn just to move up, what I would like is to be able to scroll smoothly when the mouse is down and stops when the mouse is release etc,

Any ideas how this can be achieved etc…

Am on Flash8/CS3 at work programing in AS2.

thanks si

---

<div class="post-metadata">

### Author: ![levidyllan](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@levidyllan](https://forum.kirupa.com/u/levidyllan)
#### Post date: [May 9, 2008, 5:04pm UTC](https://forum.kirupa.com/t/constant-scrolling-issue/259876/2 "2008-05-09T17:04:22Z")

</div>

well after a time thinks I beleive I have done it with a simple setInterval and clearIntyerval:

I added this to the rollover/onpress  
var scrollIdDown;  
this.scrollIdDown=setInterval(smoothscrollDown, 100);

then did the

smoothscrollDown(){  
thicMC.thatMC.News\_txt.scroll–;  
}

then in the rollOut I placed the clearInterval, and all seems ok
