The file has to be uploaded to your server first, so your assumption that you don't need a backend script isn't correct. You don't have direct acces to files through a FileReference instance, for security reasons.
So after the user has selected the file using FileReference.browse(), you have to use FileReference.upload() to upload the file to your server using your choice of server side script (PHP, CF, JAVA, etc..). Once the file is uploaded you can then load it into your Flash app. regards, Muzak ----- Original Message ----- From: "Paul Chang" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, June 21, 2007 9:32 PM Subject: [Flashcoders] FileReference >I was happy to see a FileReference Class finally in Flash so that the upload >of basic files could be accomplished without the use >of backend scripts. > > However, I want to use FileReference in a slightly different way and I feel > like it should be possible but can't quite get there. > > Here's the goal: > > Allow the user to select a text file from their local file system to > populate a text field on the stage. > > Solution?: > > I used FileReference.browse() to allow the user to find the file of > interest, once selected, I have access to the FileReference > properties including file name. If I had the path to the file in addition to > name, I could use URLLoader to pull in the text > file, but I only have name. > > Questions: > > Is there a way to get at the full qualified path for the file? Or better, > since I have the FileReference object, is there a way > to access its contents? > > Thanks in advance, > Paul _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

