# Scroller

**URL:** https://forum.kirupa.com/t/scroller/14805
**Category:** flash
**Created:** [March 3, 2003, 12:39am UTC](https://forum.kirupa.com/t/scroller/14805 "2003-03-03T00:39:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![X\_Alco](https://avatars.discourse-cdn.com/v4/letter/x/e5b9ba/32.png) [@X\_Alco](https://forum.kirupa.com/u/X_Alco)
#### Post date: [March 3, 2003, 12:39am UTC](https://forum.kirupa.com/t/scroller/14805/1 "2003-03-03T00:39:59Z")

</div>

Ok here’s my question, I have an input text box with my text and its scrollable and all that stuff. But now I don’t want to use Macromedia’s scroll bar, I’d like to use my own. I don’t know what actions to asign the buttons. I want one to make it scroll up, and the other to make is scroll down. If someone could give me an answer I would be very thankfull.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 3, 2003, 12:49am UTC](https://forum.kirupa.com/t/scroller/14805/2 "2003-03-03T00:49:35Z")

</div>

[http://www.kirupa.com/developer/flash5/scrolltext.htm](http://www.kirupa.com/developer/flash5/scrolltext.htm)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 3, 2003, 12:54am UTC](https://forum.kirupa.com/t/scroller/14805/3 "2003-03-03T00:54:54Z")

</div>

Erm…for me, I will simply create a movie clip, dump everything into that movieclip, and scroll it as a whole. In this way, you can use any button of your choice. Below, i create a boolean variable called ‘scrollUp’ at root level. Then we’ll put the codes below into, let’s say, the ‘scroll up’ button:

on ( press ) {  
\_root.scrollUp = true;  
}

on ( release, releaseOutside ){  
\_root.scrollUp = false;  
}

then in the movieclip itself, i will give it another piece of code:

onClipEvent(enterFrame){  
if ( \_root.scrollUp )  
\_y += 5;

//we take 100 as the boundary. The movieclip cannot scroll  
//beyond this boundary

```
     if ( _y &gt; 100 )
       _y -= 5;

```

}

That’s all. Hope this helps 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 3, 2003, 12:57am UTC](https://forum.kirupa.com/t/scroller/14805/4 "2003-03-03T00:57:35Z")

</div>

they are using Input text. doesn’t really work as well with a MC because then you would probably have to mask stuff…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 3, 2003, 2:03am UTC](https://forum.kirupa.com/t/scroller/14805/5 "2003-03-03T02:03:30Z")

</div>

Well, I will just mask it. It’s not so difficult to create a mask anyway. 🙂 But again, it depends on what you are trying to do and which method works better for you.
