Ok, sorry, pensé en un textfield común. Justo ahora estoy convirtiendi unos tutoriales al árabe (flow RTL) y tuve que usar TLF. B{asicamente importas la fuente en la biblioteca, en el tab ActionScript marcas exportar para ActionScript y automáticamente le pone la clase (generalmente el nombre mismo de la fuente) y luego lo usas como String, pero en un TextLayoutFormat. Aquí un snippet de mi clase LangFormatter donde formateo el texto (para {arabe o inglés):
Código ActionScript :
public function getFormat():TextLayoutFormat {
var textFormat:TextLayoutFormat = new TextLayoutFormat();
textFormat.fontSize = 18;
textFormat.textAlign = TextAlign.RIGHT;
switch(lang) {
case "ar":
textFormat.fontFamily = "Arabic"
textFormat.locale = "ar";
textFormat.direction = Direction.RTL;
break;
case "en":
textFormat.fontFamily ="NewsGoth"
textFormat.direction = Direction.LTR
break;
}
return textFormat;
}
Jorge