codice:
var stile = new TextFormat();
stile.align = "right";
testo.setNewTextFormat(stile);
testo.text = "tuo testo";