Además, a este texto le aplico etiquetas html para que se cargue con formato.
Funciona bien en Explorer, Firefox, Safari y Opera, pero en Google Chrome no toma el formato y se ve el texto en bruto con las etiquetas y todo.
Suponiendo que el archivo de texto dice así:
comentarios=<p><b>Hola</b></p>
En todos los navegadores veo
Hola
Pero en Chrome veo
<p><b>Hola</b></p>
También dejo el as
Código ActionScript :
var variables:URLLoader = new URLLoader(); variables.dataFormat = URLLoaderDataFormat.VARIABLES; variables.addEventListener(Event.COMPLETE,textLOADED); variables.load(new URLRequest("archivo.txt")); function textLOADED(event:Event):void { var loader:URLLoader = URLLoader(event.target); this.comentarios.text = loader.data.comentarios; this.comentarios.htmlText = this.comentarios.text; }
Desde ya gracias por su ayuda