avevo questo:
codice:
myVars= new LoadVars();
myVars.onLoad = function(success){
if(success){
_root.createTextField("mytext", 1, 100, 100, 300, 100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
mytext.html = true;
myformat = new TextFormat();
myformat.color = 0xff0000;
myformat.bullet = false;
myformat.underline = true;
mytext.htmlText = myVars.testo;
mytext.setTextFormat(myformat);
}
}
myVars.load("testo.txt");
l'ho sostituito per provare e a me cosi' funziona
codice:
....
.........
mytext.htmlText = myVars.testo;
mytext.setTextFormat(myformat);
}
}
testo = "testo.txt"
myVars.load(testo);
ciao..