I have created two scroll buttons for my dynamic text field, following this guide
http://www.kirupa.com/developer/flash5/scrolltext.htm
My problem is, that you have to click the buttons many times to scroll down to the end.
How do you make it possible to “Press and hold” the mousebutton instead?
My code is as follows:
TextField name: scrollableText
Button Up Code:
on (press, release, keyPress "<Up>") {
currentScroll = scrollableText.scroll;
if (Number(currentScroll)>1) {
scrollableText.scroll = currentScroll-1;
}
}
Button Down Code:
on (press, release, keyPress "<Down>") {
currentScroll = scrollableText.scroll;
if (Number(currentScroll)<Number(scrollableText.maxscroll)) {
scrollableText.scroll = Number(currentScroll)+1;
}
}
Thanks in advance