# Help: Scroll

**URL:** https://forum.kirupa.com/t/help-scroll/117975
**Category:** Uncategorized
**Created:** [August 1, 2004, 5:16pm UTC](https://forum.kirupa.com/t/help-scroll/117975 "2004-08-01T17:16:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mister\_B](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Mister\_B](https://forum.kirupa.com/u/Mister_B)
#### Post date: [August 1, 2004, 5:16pm UTC](https://forum.kirupa.com/t/help-scroll/117975/1 "2004-08-01T17:16:02Z")

</div>

In flash MX 2004 there is no scrollbar component.  
In an aplication I am making, I don’t want to use to many components, so I want to make a dynamic textbox scroll. I took the tutorial here, but it dosen’t explain how to make the draggy bit in the middle. Can anyone help me? Does anyone know? – Thanks, Mister B.

---

<div class="post-metadata">

### Author: ![miran](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@miran](https://forum.kirupa.com/u/miran)
#### Post date: [August 1, 2004, 11:11pm UTC](https://forum.kirupa.com/t/help-scroll/117975/2 "2004-08-01T23:11:17Z")

</div>

Look up the scroll properties of the TextField Class.  
Code could be like this:

upButton\_btn.onPress = function() {  
pressing = true;  
movement = -1;  
};  
upButton\_btn.onRelease = function() {  
pressing = false;  
};  
downButton\_btn.onPress = function() {  
pressing = true;  
movement = 1;  
};  
downButton\_btn.onRelease = function() {  
pressing = false;  
};  
\_root.onEnterFrame = function() {  
if (pressing==true) {  
scrollWindow\_txt.scroll = scrollWindow\_txt.scroll + movement  
}  
};

//Each row of text has an index value. The top row is 1 and the one below is 2 and so on…  
I hope this helps

---

<div class="post-metadata">

### Author: ![Mister\_B](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Mister\_B](https://forum.kirupa.com/u/Mister_B)
#### Post date: [August 2, 2004, 1:04am UTC](https://forum.kirupa.com/t/help-scroll/117975/3 "2004-08-02T01:04:33Z")

</div>

It isn’t the buttons which are a problem, and that is the code, but I just don’t know where to begin with the drag-bar-bit. can anyone help?

---

<div class="post-metadata">

### Author: ![Mister\_B](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Mister\_B](https://forum.kirupa.com/u/Mister_B)
#### Post date: [August 3, 2004, 4:08am UTC](https://forum.kirupa.com/t/help-scroll/117975/4 "2004-08-03T04:08:05Z")

</div>

no-one?

---

<div class="post-metadata">

### Author: ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)
#### Post date: [August 3, 2004, 8:23am UTC](https://forum.kirupa.com/t/help-scroll/117975/5 "2004-08-03T08:23:23Z")

</div>

Look at this tutorial [http://www.actionscript.org/tutorials/intermediate/scrolling\_a\_text\_box\_II/index.shtml](http://www.actionscript.org/tutorials/intermediate/scrolling_a_text_box_II/index.shtml) 😉
