There are a few ways you could approach this, so here's one. All code goes in the timeline where the buttons live (on the actions layer).
The only thing I am uncertain of is what I did with the scrollV in the scrollUp and scrollDown functions. I have not used this before, so I am assuming it is the same property that AS2 uses "scroll" for.
function scrollUp(evt:Event):void {
textbox.scrollV += 1;
}
function scrollDown(evt:Event):void {
textbox.scrollV -= 1;
}
function upOver(evt:MouseEvent):void {
stage.addEventListener(Event.ENTER_FRAME, scrollUp);
}
up_btn.addEventListener(MouseEvent.ROLL_OVER, upOver);
function upOut(evt:MouseEvent):void {
stage.removeEventListener(Event.ENTER_FRAME, scrollUp);
}
up_btn.addEventListener(MouseEvent.ROLL_OUT, upOut);
function downOver(evt:MouseEvent):void {
stage.addEventListener(Event.ENTER_FRAME, scrollDown);
}
down_btn.addEventListener(MouseEvent.ROLL_OVER, downOver);
function downOut(evt:MouseEvent):void {
stage.removeEventListener(Event.ENTER_FRAME, scrollDown);
}
down_btn.addEventListener(MouseEvent.ROLL_OUT, downOut);