Me pueden dar una mano para hacer un scroll deslizable para un texto externo , quiero cambiar el que hice del clasico boton por uno deslizable.Gracias
Lo que tengo hecho con scroll de botones:
Código :
Texto._visible = false;
Texto.html = true;
Texto.wordWrap = true;
this.loadVariables("textos/plan/plan1.txt", Texto);
var miEstilo = new TextField.StyleSheet();
miEstilo.onLoad = function(cargado:Boolean):Void {
if (cargado) {
Texto.styleSheet = miEstilo;
Texto._visible = true;
//VOLVER A ASIGNAR EL TEXTO
//PARA QUE SE APLIQUE A LA NUEVO HOJA DE ESTILOS
Texto.htmlText = texto;
} else {
trace("Error cargando el CSS.");
}
};
miEstilo.load("qqq.css");
Up.onPress = function() {
Direccion = "up";
MoverTexto();
};
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;
};
loadMovie("galeria34_gif.swf", carga);
//this.swapDepths(pantalla_mc); 