Skip to main content
Participant
June 27, 2008
Question

scrolling text

  • June 27, 2008
  • 3 replies
  • 246 views
HI, Im using following script to scroll text field:

on (press) {
_root.text.scroll = _root.Text.scroll + 1;
}

It scrolls down one line at a time or two (+2). Can some body help me with a script that, when I pres button it keeps on scrolling untill it reaches the last line?

Thanks In Advance.
This topic has been closed for replies.

3 replies

Participant
June 28, 2008
hey thanks a lot. That is a great help. I really appreciate that.
Noelbaland
Participating Frequently
June 28, 2008
Hello there,

Taking kglad's advice into hand you would create something like the script below.
All the code goes onto a frame in the timeline.
kglad
Community Expert
Community Expert
June 28, 2008
when your button is pressed, start a loop (setInterval or onEnterFrame) that repeatedly increments the scroll property of your textfield. you can use the maxscroll property of textfields to terminate your loop.

and flash is case sensitive and text is not a good name for a textfield (because it is a reserved word).