Ver Mensaje Individual
  #6 (permalink)  
Antiguo 13/12/2011, 10:30
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 10 meses
Puntos: 406
Respuesta: duda tonta respecto aun boton

Hola Zera:
Si quieres mover un texto cargado externamente, aquí tienes un código:
Código actionscript:
Ver original
  1. this.loadVariables("nombre.txt");
  2. Up.onPress = function(){
  3.     Direccion = "up";
  4.     MoverTexto();
  5. }
  6.  
  7. Down.onPress = function(){
  8.     Direccion = "down";
  9.     MoverTexto();
  10. }
  11.  
  12. function MoverTexto(){
  13.     _root.onEnterFrame = function(){
  14.         if(Direccion == "up"){
  15.             Texto.scroll -= 1;
  16.         }else if(Direccion == "down"){
  17.             Texto.scroll += 1;
  18.         }
  19.     }
  20. }
  21. Down.onRelease = function(){
  22.     delete _root.onEnterFrame;
  23. }
  24.  
  25. Up.onRelease = function(){
  26.     delete _root.onEnterFrame;
  27. }
Espero haberte sido de ayuda
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/