Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/02/2007, 04:52
pepero123
 
Fecha de Ingreso: enero-2002
Mensajes: 30
Antigüedad: 22 años, 3 meses
Puntos: 0
Canviar el formato de texto cargado

Tengo este codigo en actions:

//create a blank text box and set its parameters
_root.createTextField("theTextBox", 20, 50, 50, 400, 400);
theTextBox.background = true;
theTextBox.border = true;
theTextBox.backgroundColor = 0xFFFFFF; //white
theTextBox.borderColor = 0x000000; //black
theTextBox.multiline = true;
theTextBox.wordWrap = true;
theTextBox.html = true;
theTextBox.variable = "myText";

//create some formatting for our text box
myTextFormat = new TextFormat();
myTextFormat.font = "Arial";
myTextFormat.size = 30;
myTextFormat.color = 0x000000;//black

//format our text box
theTextBox.setTextFormat(myTextFormat);

loadVariables("welcome.txt", "_root"); // load our text


Pero no hay manera de que me cambie al nuevo formato Arial tamaño 30