Home » Action Script 3.0

Navegación en un textField como si fuera un scroll en AS3.0

6. mayo 2009 by marvin 0 Comentarios

De esta forma se puede navegar en un textField como si fuera un scroll

Para que funcione correctamente debe tener un text field con nombre de instancia texto_txt y dos botones predeterminados, uno para arriba y otro para abajo llamados up_mc y down_mc

    function up(e:Event):void{
        texto_txt.scrollV-=1;
    }
    
    function down(e:Event):void{
        texto_txt.scrollV+=1;       
    }
    
    up_mc.addEventListener(MouseEvent.CLICK, up);
    down_mc.addEventListener(MouseEvent.CLICK, down);

Sea el primero en calificar este post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Comentarios

Añadir comentario


 

  País

biuquote
  • Comentario
  • Vista previa
Loading