PDA

View Full Version : controlling position of data loaded in a text field



LillyBee4
May 20th, 2002, 02:43 PM
Hi,

I have a scrolling text field, data on a text file (externalVariables.txt) and buttons. Data loads upon pressing the buttons using the following method:

on the main timeline:

loadVariables ("externalVariables.txt", "_root");

on each button:

on (release) {
text = variable;
}

The problem is the following: if someone presses a button, scrolls down 5 lines and then presses another button, the new data will be displayed from line 5 instead of line 1.

How do I control the position of the data, so the text is always displayed from line 1?

Thanks.
Stephanie

suprabeener
May 20th, 2002, 05:17 PM
set your text fields scroll value to 1 whenever you change content.