Hello everyone, I came across the same need - that is: reading a local XML file - and I found this HTTPService to be working:
<mx:HTTPService id="xmlProjectData" resultFormat="e4x" url="file:///c:/Project13.xml <file:///c:/Project13.xml> " useProxy="false"/> The only problem with making this really usable just yet, is that the FileReference class does not expose a localpath property for the file(s) you select. Does anyone know how I could obtain the localpath without calling the upload method? Thanks much --- In flexcoders@yahoogroups.com, "Andrew Trice" <[EMAIL PROTECTED]> wrote: > > Unfortunately, Flex doesn't work the way you want b/c of security > implications. You can do this by having the user upload the file to the > server. Once the file is uploaded, parse it and then pull the data back > down to the client and use it. > > > > -Andy > > > > _____________________________________ > > Andrew Trice > > Cynergy Systems, Inc. > > http://www.cynergysystems.com > > > > Blog: http://www.cynergysystems.com/blogs/page/andrewtrice > > Email: [EMAIL PROTECTED] > > Office: 866-CYNERGY > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Torey Maerz > Sent: Friday, June 30, 2006 9:35 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Read Local File > > > > I would like to create a flex application (hosted on the internet) that > could read in a client's local file, parse that file and then display > in a datagrid for manipulation and eventually posting the data to my > server. My problem is on the reading of the local file piece. It > seems that the only way that I can do this is to have the swf running > on the client's machine. That is not an option so I have been in the > search for finding a solution that would allow me to sign my swf or > something similar so that it could be trusted on the client's machine > and allow the user to parse their local file. > > So what can I do to give my internet based application read access on > the client's machine? > > Thanks in advance! > > -Torey >