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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Scrolling... need some help here

Status
Not open for further replies.

Kijori

Technical User
Jan 22, 2002
67
0
0
SG
I'm able to scroll a chunk of text line by line by creating my own scrolling script at every onRelease function.

How do I make the text scroll continuously while the mouse button is depressed? It's kinda not effective to be pressing the mouse button many times.

By the way, I don't want to use the scroll component.
 
Hello...

Create two movieclips for your up and down arrows and place this code on them (needs to be movieclips, not buttons). Make sure you place them on the movieclips themselves and not the timeline.


// FOR THE UP ARROW
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.myText_txt.scroll -=1;
}
}



// FOR THE DOWN ARROW
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.myText_txt.scroll +=1;
}
}


Hope that helps! And of course, you will have to change the name and target of the text field I have here to reflect the actual name and target you have in your movie.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top