Veréis, tengo necesidad de utilizar los valores que adquiere un campo de texto, que relleno mediante <LoadVars>, fuera de la función <onLoad>, algo así:
Código :
listAlmac_mc.texto_txt.autoSize = true; var list_lv:LoadVars = new LoadVars (); list_lv.onLoad = function (exito) { if (exito) { listAlmac_mc.texto_txt.htmlText += "<br>"; listAlmac_mc.texto_txt.htmlText += this.rec; listAlmac_mc.texto_txt.htmlText += this.alm; listAlmac_mc.texto_txt.htmlText += this.pre; listAlmac_mc.marco_mc._height = listAlmac_mc.texto_txt._height + 20; listAlmac_mc.marco_mc._width = listAlmac_mc.texto_txt._width + 20; trace (listAlmac_mc.texto_txt._height); } }; list_lv.load ("textos/mensajes.txt"); trace (listAlmac_mc.texto_txt._height);
El trace de dentro de <onLoad>, me devuelve la altura que adquiere el campo en función de las variables que carga,
pero el trace de fuera, siempre me devuelve la altura inicial del campo. Como puedo conocer desde fuera el valor real de la altura del campo.