allora vorrei creare una funzione che mi formatti il testo dinamcio
creo un clip con un campo di testo di nome testo ed il clip si kiama tes:
tes.onEnterFrame = function() {
_root.formatta(this.testo);
this.testo.text = "testo formattato";
};
function formatta(test) {
mioTesto = new TextFormat();
mioTesto.bold = true;
//ora dovrei cambiare il font
mioTesto.font(?);
test.setTextFormat(mioTesto);
}
sul reference non vedo al sintassi per cambiare il font