import flash.text.TextField;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
var archivo:URLRequest = new URLRequest("texts/ejemplo.txt");
var cargador:URLLoader = new URLLoader();
var texto:TextField = new TextField();
cargador.load(archivo);
cargador.addEventListener(Event.COMPLETE, carga);
function carga(event:Event) : void {
var loader:URLLoader = URLLoader(event.target);
texto.text = loader.data;
texto.x = 200;
texto.y = 50;
texto.height = 300;
texto.width = 200;
texto.wordWrap = true;
texto.borderColor = 0x66CC66;
texto.border = true;
addChild(texto);
}
aqui teneis los archivos por si alguien puede comprobarlo si le funciona, os lo agradeceria ya que me he quedado estancado y no se por donde seguir, gracias
http://rapidshare.com/files/259456228/aujazz.zip
