i have a scrollable dynamic text, and i made 2 buttons to scroll it. it has a script like so:
upButton.onPress = function () {
myTextField.scroll = myTextField.scroll - 1;
}
downButton.onPress = function () {
myTextField.scroll = myTextField.scroll + 1;
}
but, to scroll the whole text field, i have to press the button lots of times. what i want to do is that it would scroll the text field while i am pressing the button and holding it down, like normal scrollbars do.
how can i do that?
anyone?