PDA

View Full Version : scrolling text


Julia
03-27-2003, 10:29 AM
I have added a dynamic scrolling text field in MX using

instName.scroll += 1; and
instName.scroll -= 1;


attached to up and down buttons.

However, I would like the text to scroll continuously and smoothly on mouseover rather than jump as it does at present and its important that I use up and down buttons rather than a scrollbar.

Any help out there - I can only find tutorials available for Flash 5 and they dont seem to work on MX? Be gentle, I am only a designer, not a programmer so you have to be very simple and obvious!!

farafiro
03-27-2003, 12:06 PM
just put the statment within an onEnterFrame
up.onPress = function(){
goUp = true
}
up.onRelease = function(){
goUp = false
}
down.onPress = function(){
goDown = true
}
down.onRelease = function(){
goDown = false
}
_root.onEnterFrame = function(){
if(goUp) textField.scroll+=1
if(goDown) textField.scroll-=1
}
u can chamge the onPress with onRollOver

farafiro
03-27-2003, 12:10 PM
also here is onr u can adjust it to MX code
http://www.actionscript.org/tutorials/intermediate/scrolling_text/index.shtml

nd, welcome to the forum

Julia
03-28-2003, 08:05 AM
Thanks so much for that - it works just as I was hoping it would !!

Julia :D