1 Attachment(s)
Horizontal Scrolling Text
Hello everybody :)
Text on the scroll start and on the scroll end is not readable. scroll.Speed is right, I dont wanna change it. I think, there is missing some scroll.pause on the begining and on the end. (or something like ease in, and ease out, or "speed in", "speed out") Any idea ?
PHP Code:
window_txt.text = "This is a test to see if I can scroll back and forth.";
scrollTest = 0;
newInterval = setInterval(makeItScroll, 30); //this is scroll.Speed
function makeItScroll(){
if (scrollTest === 0){
if (window_txt.hscroll < window_txt.maxhscroll ){
window_txt.hscroll += 1;
}
if (window_txt.hscroll >= window_txt.maxhscroll ){
scrollTest = 1;
}
} else {
if (window_txt.hscroll > 0){
window_txt.hscroll -= 5;
}
if (window_txt.hscroll <= 0){
scrollTest = 0;
}
}
}