Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/02/2007, 09:54
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
Re: Canviar el formato de texto cargado

Hola pepero123:
Coloca el código así:
_root.createTextField("theTextBox", 20, 50, 50, 400, 400);
theTextBox.background = true;
theTextBox.border = true;
theTextBox.backgroundColor = 0xFFFFFF;
theTextBox.borderColor = 0x000000;
theTextBox.multiline = true;
theTextBox.wordWrap = true;
theTextBox.html = true;
theTextBox.variable = "myText";
myTextFormat = new TextFormat();
myTextFormat.color = 0x000000;
loadVariables("welcome.txt", "_root");
Dentro de tu archivo .txt formatea la fuente y el tamaño así:
myText=<font face="Arial" size="30">Hola</font>

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