Muchas gracias por su ayuda.
Código:
_root.contactar.onPress = function() {
filename = "contactar.txt";
cargador_lv.load(filename);
_root.nou_text = true;
_root.carregat_text = false;
};
cargador_lv.onLoad = function(exito) {
//Si las variables fueron cargadas con exito
if (exito) {
texto.styleSheet = myCSS;
texto.htmlText = this.texto;
//trace(texto._height);
texto.autoSize = true;
//trace("Voy hacer un autosize");
//trace(texto._height);
this._height = texto._height;
//trace(this._height);
_root.texto_cargat = true;
_root.carregat_text = true;
} else {
//Mostrar mensaje de error en el campo de texto
texto.htmlText = "Error!! :(";
}
};

