all groups > flash actionscript > august 2006 >
You're in the

flash actionscript

group:

scroller help


scroller help erikcute
8/7/2006 7:21:52 PM
flash actionscript:
I could not figure out how to make the scrolling text go back to the original
position after rolling out on the controls.

anyway, i attached the code i used but its doesn't work. please help me.
thanks.



on (rollOver) {
tellTarget ("/scrollingtext") {
prevFrame();
}
gotoAndStop("up2");
}
on (rollOut) {
tellTarget ("/scrollingtext") {
gotoAndStop(1);
}
gotoAndStop("up2");
}
Re: scroller help WebXperience
8/7/2006 8:45:16 PM
I don't actually understand what your rolling over. But I'm assuming that it
must be a button and that you have attached your code to the button.

I normally pace all my code on the main timeline so that I won't have to hunt
for it later if I need to make changes. This is how my code would look using
buttons (scrollDown, scrollUp):

thi.scrollDown.onRollover = function() {
loadedInfo.scroll += 1;
}

this.scrollUp.onRollover = function() {
loadedInfo.scroll -= 1;
}


AddThis Social Bookmark Button