Ver Mensaje Individual
  #10 (permalink)  
Antiguo 21/03/2007, 14:31
Rizzo
 
Fecha de Ingreso: septiembre-2006
Mensajes: 1.193
Antigüedad: 17 años, 7 meses
Puntos: 30
Sonrisa Re: Trans. Alfa en texto dinámico

si, si te fijas yo puse todo lo que estas diciendo en el quinto mensaje, solo que tu solo pusiste esto

Código:
var alpha:Number = setInterval(function() {
        my_txt._alpha -= 2;
        if (my_txt._alpha <= 0) {
                clearInterval(alpha);
        }
}, 30)
y decias que con eso ya funciona cualquier texto, te falto poner lo mas importante que es esto:

Código:
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "ArialFont";
// where 'my font' is the linkage name of a font in the Library
my_fmt.size = 20;
//
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 120, 30);
my_txt.border = true;
my_txt.embedFonts = true;
my_txt.text = "Hello World";
my_txt.setTextFormat(my_fmt);
my_txt._alpha = 100;
//