Groups | Blog | Home
all groups > flash actionscript > march 2006 >

flash actionscript : continuous scroll of dynamic text on button roll over?????


mstein78
3/15/2006 8:51:32 PM

I have a dynamic text box and two bottons to scroll the text. but the
buttons only scroll one line at a time. I need them to continuously
scroll down.
Please walk me through this.
I saw a post that said this could be done thru certian actionscripting,
which was places on the movice clip the text was in. But my text box is
in inside a movie clip, and when i tried to put it inside of one, the
text did not load anymore.

so please walk me through the simplest way to do this. i dont need a
scroll bar, just 2 buttons that continuously scrol the text on roll
over.

Thanks a ton!!!!


--
mstein78
------------------------------------------------------------------------
mstein78's Profile: http://www.24help.info/member.php?userid=759
View this thread: http://www.24help.info/showthread.php?t=902208

24help.info - IT Newsgroups @ http://www.24help.info
kglad
3/16/2006 1:07:37 AM
if your textfield has instance name tf you can use:


downBtn.onPress=function(){
scrollI=setInterval(scrollF,50,-1);
}
upBtn.onPress=function(){
scrollI=setInterval(scrollF,50,1);
}

downBtn.onRelease=downBtn.onReleaseOutside=upBtn.onRelease=upBtn.onReleaseOutsid
e=function(){
clearInterval(scrollI);
}
function scrollF(dir){
tf.scroll+=dir;
}
AddThis Social Bookmark Button