Hi William, AFAIK, you can't get full path information, intentionally. Filereference class is granting permission to upload a file, not granting permission to send a file path, since the path could contain personal information.
Thanks and regards, Paritosh On Oct 20, 6:51 pm, William <[EMAIL PROTECTED]> wrote: > I want to use flex to browse for text file, then send the text file > full path to php to read the text file. > > Can anyone help me ?? I'm newbie to flex. > > I only get the filename not the full path including the c:\abc.txt. > > <mx:Script> > <![CDATA[ > import mx.controls.*; > import mx.managers.*; > import mx.events.*; > import flash.events.*; > import flash.net.*; > > private var _refAddFiles:FileReferenceList; > // Called to add file(s) for upload > private function addFiles():void { > _refAddFiles = new FileReferenceList(); > _refAddFiles.addEventListener(Event.SELECT, > onSelectFile); > _refAddFiles.browse(); > } > // Called when a file is selected > private function onSelectFile(event:Event):void { > abctxt.text = _refAddFiles.fileList[0].name; > } > > ]]> > </mx:Script> > > <mx:Button id="btnAdd" toolTip="Add file(s)" click="addFiles();" > x="86" y="301" label="Browse"/> > <mx:TextInput x="86" y="271" id="abctxt"/> > > Thank you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---