all groups > flash (macromedia) > november 2004 >
You're in the

flash (macromedia)

group:

HELP!!! Most likely a simple fix for a guru which i'm not!


HELP!!! Most likely a simple fix for a guru which i'm not! shawnoel
11/30/2004 9:14:50 PM
flash (macromedia):
Hello,
I want my text to scroll while the up or down button is being held. I can make
it move up or down however many lines i specify, but how can i make the text
scroll continuously without having to press the button(s) every time and/or can
i make a scrollbar that one could just drag up or down? Any help is greatly
appreciated! Thank you so much!
Re: HELP!!! Most likely a simple fix for a guru which i'm not! NSurveyor
11/30/2004 9:38:38 PM
Re: HELP!!! Most likely a simple fix for a guru which i'm not! shawnoel
11/30/2004 9:50:59 PM
Hello NSurveyor! Thanks for replying! Yeah, i did try to use the UI component.
I have Flash MX 2004 Pro. The reason i didn't use the component was because i
couldnt get the CSS to take. The way i did it was using a text box with a .txt
file that loads in the text box. I programmed the buttons to move one line per
click, but can i have the text scroll while holding the up or down button
rather than having to click it each time? Thanks for the reply and i hope to
get another. Thanks again!!!
Re: HELP!!! Most likely a simple fix for a guru which i'm not! NSurveyor
11/30/2004 10:11:25 PM
Well, Give your up button the instance name ub, and your down button the
intance name, db, and add this script to the frame that holds the up and down
buttons:
textbox = _root.myPath.toThe.textbox;
//Change textbox, to the correct path to the textbox.
ub.onPress = function(){
scrollUp = setInterval(scroll,50,textbox,-1)
}
ub.onRelease = function(){
clearInterval(scrollUp);
}
db.onPress = function(){
scrollDown = setInterval(scroll,50,textbox,1)
}
db.onRelease = function(){
clearInterval(scrollDown);
}
function scroll(textbox,direction){
textbox.scroll = textbox.scroll+direction;
updateAfterEvent();
}

Re: HELP!!! Most likely a simple fix for a guru which i'm not! shawnoel
11/30/2004 10:22:05 PM
NSurveyor, You are an absolute, gracious, kind, considerate, certifiable
GENIUS!!!!!!!!! I can not stress enough how much you have helped me out!!!
Thank you very much.! If there is anything that i can do for you in the way of
design or illustration then feel free to contact me at shawnoel@netzero.com.
Thank you again!!!!!
Re: HELP!!! Most likely a simple fix for a guru which i'm not! NSurveyor
11/30/2004 10:23:17 PM
AddThis Social Bookmark Button