Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/02/2009, 08:28
arieljbon
 
Fecha de Ingreso: enero-2009
Mensajes: 159
Antigüedad: 15 años, 4 meses
Puntos: 2
Ayuda con un boton de texto scroll

Hola gente del foro , miren tengo este codigo
Código:
this.loadVariables("instituto.txt");//aquí pones el nombre de tu archivo.txt
this.Up.onPress = function(){
Direccion = "up";
MoverTexto();
}

this.Down.onPress = function(){
Direccion = "down";
MoverTexto();
}

function MoverTexto(){
_root.onEnterFrame = function(){
if(Direccion == "up"){
mytext.scroll -= 1;
}else if(Direccion == "down"){
mytext.scroll += 1;
}
}
}
this.Down.onRelease = function(){
delete _root.onEnterFrame;
}

this.Up.onRelease = function(){
delete _root.onEnterFrame;
}
ahora bien, este codigo me sube y baja anda perfecto cada vez que presione el boton correspondiente, ¿ cúal seria la forma para que cuando pase por arriba del mouse me realice el scroll sin parar hasta que retire el puntero de arriba del mouse?, le cambie onRelease por onRollover pero asi no me funciona.