Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/06/2007, 16:48
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Re: scrollbar texto

Hola aprendiz_flash:
Crea 2 botones y al ponerlo en el escenario le das como nombre de instancia: Up y Down.
Crea un campo de texto dinámico y como variable escribe: texto, la opción Multilínea activado.
En la capa 2 frame 1 coloca éste código:
this.loadVariables("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") {
Texto.scroll -= 1;
} else if (Direccion == "down") {
Texto.scroll += 1;
}
};
}
this.Down.onRelease = function() {
delete _root.onEnterFrame;
};
this.Up.onRelease = function() {
delete _root.onEnterFrame;
};
Con el Block de Notas crea un archivo y en si interior escribe así:
texto=Aquí escribe todo el texto que desees...
Lo guardas con un nombre y la Codificación: UTF-8.

Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/