ciao a tutti,
vorrei poter caricare del testo da un file txt.

ho provato con un esempio:

this.createTextField("my_txt", 10, 10, 10, 320, 100);
my_txt.autoSize = "left";
my_txt.border = true;
my_txt.multiline = true;
my_txt.wordWrap = true;

var lorem_lv:LoadVars = new LoadVars();
lorem_lv.onData = function (src:String):Void {
if (src != undefined) {
my_txt.text = src;
} else {
my_txt.text = "Unable to load external file.";
}
}
lorem_lv.load("http://www.helpexamples.com/flash/lorem.txt");

e sembra funzionare.

Il problema è che non mi becca gli apostrofi e gli accenti...
Inoltre anche definendo il formato del testp non riesco ad usare una font caricata in libreria utilizzando il comando:

txtformat.font = "HelveticaNeue";

E' normale tutto cio?

Premetto che sto lavorando su mac e non vorrei fosse un problema di mac nel leggere i *.txt.


Un saluto