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

flash actionscript : Continuous text scrolling


mcrensh5 NO[at]SPAM excite.com
3/20/2004 9:19:07 PM
I'm using Flash MX 2004 and I'd like to know if it's possible to make
text scroll "continuously" instead of specifying a number like below.


on (press) {
instancename.scroll+=1
}


This isn't what I want. In my case, when the user presses a nav
button I want the text to scroll as long as it's pressed -- like a
regular web page scroll.


Any help much appreciated.

kglad
3/21/2004 3:49:14 PM
on(press){
scrollI=setInterval(scrollF,50);
}
on(release){
clearInterval(scrollI);
}

and attached to a frame:

function scrollF(){
instancename.scroll++;
AddThis Social Bookmark Button