Я использую следующее для загрузки файла во Flex:
private var filer:FileReference;
protected function button1_clickHandler(event:MouseEvent):void
{
var fd:String = "Files (*)";
var fe:String = "*";
var ff:FileFilter = new FileFilter(fd, fe);
filer = new FileReference();
filer.addEventListener(Event.SELECT, onFileSelect);
filer.browse(new Array(ff));
filer.addEventListener(Event.COMPLETE,
function (e:Event):void {
e.currentTarget.data.toString();
}
);
}
private function onFileSelect(e:Event):void {
filer.load();
}
И мой файл выглядит так:

Вот оригинальный файл: http://sesija.com/up/1.txt
Мне нужно прочитать загруженный файл и разобрать его. Проблема в том, что в моем e.currentTarget.data.toString();
я получаю только «1
», а не остальную часть строки.
Есть идеи, как успешно прочитать весь текстовый файл?