Well I use the filereference to select files the user wants to upload using a
web app. So I do know the user can select and upload files from user local
files. Never tried to read one directly however after the user has selected
the files.
-Mark
-Original Message-
From:
check for URLLoader FileReference for file reading from client computer.
CSV parsing code , you can search on google.
On Sat, Jul 4, 2015 at 3:26 AM, modjklist [via Apache Flex Users]
ml-node+s246n1070...@n4.nabble.com wrote:
Looking for recommendations to read a text file in Flex web
Correct me if I'm wrong, but these functions by default can only read client
files if the swf runs locally on their computer. If I'm making a web app
running in a browser, the sandbox prevents accessing client file contents. I'm
thinking only AIR allows permissions for reading client files.
I've been looking into fileReference, for example:
fileReference= new FileReference();
fileReference.addEventListener(Event.SELECT, onFileSelected);
var txtTypeFilter:FileFilter = new FileFilter( Text Files (*.txt) ,
*.txt );
fileReference.browse([txtTypeFilter]);
Is it
You can load and read a file using the Filereference class:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html
Once the contents of the file are available, there is a pretty good method
to read a CSV file described in this stack overflow thread: