Ya lo he resuelto. Primeramente creamos una máscara que será el espacio que abarcará el texto en nuestro documento que he llamado "mascara_mc".
Introducimos este código en una capa que he llamado acciones
Código PHP:
//FUNCIÓN PARA HACER EL SCROLL
function hacerScroll(e:Event):void{
var velocidad:Number = (mascara_mc.height/2-mouseY)/50;
tf.y+=velocidad;
if(tf.y>mascara_mc.y){
tf.y = mascara_mc.y;
}
if(tf.y+tf.height<mascara_mc.y+mascara_mc.height){
tf.y = mascara_mc.y+mascara_mc.height-tf.height;
}
}
stage.addEventListener(Event.ENTER_FRAME, hacerScroll);