Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/03/2009, 07:35
arieljbon
 
Fecha de Ingreso: enero-2009
Mensajes: 159
Antigüedad: 15 años, 3 meses
Puntos: 2
Pregunta Bajar velocidad Scroll, se puede?

Hola quisiera saber si se puede bajar la veleciodad de un scroll, tengo una caja de texto dinamic text, en la cual trae un texto desde un txt y lo muestra y tiene las flechas para subir y bajar, cuando pasa el puntero hace dicho scroll, se pude bajar la velocidad de dicho scroll.
Aqui dejo mi codigo para ve si se puede hacer algo.
Código:
this.loadVariables("instituto.txt");//aquí pones el nombre de tu archivo.txt
this.Up.onRollOver = function(){
Direccion = "up";
MoverTexto();
}

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

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

this.Up.onRollOut = function(){
delete _root.onEnterFrame;
}