View Full Version : Customized dyanmically gathered text scroller problem....


DEfusion
07-01-2003, 11:07 AM
I've made my own buttons to control the scrolling of a text field, they work like this (for the down button, the up button is very similar):

Frame 1 actionscript:

loadVariablesNum("news_flash.php", 0);
stop();

Frame 2 actionscript:

if (scrolltext.scroll<scrolltext.maxscroll) {
scrolltext.scroll++;
} else {
gotoAndStop(1);
}

Frame 3 actionscript:

gotoAndPlay(2);

Down button actionscript:

on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndStop(1);
}


Now it works fine enough (not as I wanted it, because I couldn't figure some things out) but its not the smoothest of movements and I'd like to increase the speed. Is there anyway to do that?

I've followed how people have set up scrollers which work really smoothly, but they all use motion tweens for the scrolling action on static text. Is there anyway to create something like this with my dynamic text, I've tried it but it just moves the text box... is there a way I can force the text box to show all the dynamic text.

I.e.

1. Force the text box to show all the dynamic text.
2. to scroll down check to see if text box bottom is outside the movie bottom (I don't need any masking or anything for this movie) if so scroll it up (while rollover).
3. to scroll up as above but in reverse.

Any help would be greatly appreciated.

-D