# Scroll lenght

**URL:** <https://forum.kirupa.com/t/scroll-lenght/445>\
**Category:** flash\
**Created:** [July 17, 2002, 7:05pm UTC](https://forum.kirupa.com/t/scroll-lenght/445 "2002-07-17T19:05:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![neophtye](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@neophtye](https://forum.kirupa.com/u/neophtye)\
**Post date:** [July 17, 2002, 7:05pm UTC](https://forum.kirupa.com/t/scroll-lenght/445/1 "2002-07-17T19:05:44Z")

</div>

I created a text field but the field stop scrolling after a certain amount of lines. How do i get it to scroll through my text field?

here is the code on the up button:

on (press) {  
if (mytext.scroll\>1) {  
mytext.scroll–;  
}  
}

here is the code on the down button:

on (press) {  
if (mytext.scroll\<mytext.maxscroll) {  
mytext.scroll++;  
}  
}

any codes or variables I need to have the text scroll to its lenght?

thanks

---

<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:** [July 17, 2002, 7:27pm UTC](https://forum.kirupa.com/t/scroll-lenght/445/2 "2002-07-17T19:27:28Z")

</div>

[http://www.macromedia.com/support/flash/ts/documents/dynamic\_text\_scrollmx.htm](http://www.macromedia.com/support/flash/ts/documents/dynamic_text_scrollmx.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:** [July 17, 2002, 7:30pm UTC](https://forum.kirupa.com/t/scroll-lenght/445/3 "2002-07-17T19:30:36Z")

</div>

You might just want to simplify the actionscript, that might works. Here are the two buttons:

on (release) {  
myText.scroll = myText.scroll + 1;  
}

on (release) {  
myText.scroll = myText.scroll - 1;  
}

Hope this helps. Good Luck

Peace  
nemo | Bejingler

🙂

---

<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:** [July 17, 2002, 7:52pm UTC](https://forum.kirupa.com/t/scroll-lenght/445/4 "2002-07-17T19:52:58Z")

</div>

I havent seen that work with large amounts of text. Do you have a working example?
