Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

resetting the text scroll in a text box

Status
Not open for further replies.

FlappyCat

IS-IT--Management
Nov 20, 2004
7
GB
Hi all

I have a movie which reads in different text files to a dynamic text area when different buttons are clicked. It works well except if you have scrolled down one body of text, then when you load the next text file, it starts from the scrolled position of the previous text. Is there a simple way (has to be simple 'cos I am) of resetting the scroll location?

Thanks for looking (and any help!).

Ian
 
How are you accomplishing the srolling? The sroll bar component or the srollpane (or some other way?)

Wow JT that almost looked like you knew what you were doing!
 
Thanks Pixl8r

I'm using this:
if (down == "1") {
this.textField.scroll += 1;
}
- hope that answers!
 
That pointed me in the right direction - thanks.

Had to reference the text area from the _root.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top