[quote=Flep;282254]Devi utilizzare la classe TextFormat.
grazie Flep, come sempre sei il max.
ho seguito il tuo consiglio, tralasciando di usare xml e css perchè mi sembrava inutile e stavo facendo solo casino....
allora ho fatto così:
on (release) {
var txt_fmt:TextFormat = new TextFormat();
txt_fmt.size = 14
txt_fmt.font = "Mom´sTypewriter";
}
on (release) {
this.createTextField("Text_txt", 10, -198, -110, 400, 30);
Text_txt.setNewTextFormat(txt_fmt);
Text_txt.text = "loading...";
Text_txt.wordWrap = true;
Text_txt.autoSize = "center";
Text_txt.embedFonts = true;
Text_txt.antiAliasType = "advanced";
Text_txt.text = "Do You Love Me?";
}
e funziona tutto alla grande; ho importato nella libreria pure il font che volevo io.....
Ciao dal Gabs!