Hey…I have the following code for the actions of my buttons. Right now the text will scroll for days. How do I get it to stop when the text is at the top or bottom?
THANKS. vv
:goatee:
[AS]//
scrollUp.onRollover = function(){
//makes a loop so the movie clip will be scrolled as long as the mouse is over the button
onEnterFrame = moveUp;
}
scrollUp.onRollOut = scrollUp.onDragOut = function(){
//ends the loop so the content stops moving when the mouse leaves the button
onEnterFrame = null;
}
scrollDown.onRollover = function(){
onEnterFrame = moveDown;
}
scrollDown.onRollOut = scrollDown.onDragOut = function(){
onEnterFrame = null;
}
//functions called to move the content mc
function moveUp(){
content._y -=5;
updateAfterEvent();
}
function moveDown(){
content._y +=5;
updateAfterEvent();
}[/AS]