Hi Gurnam, I created below class file for my actionscript 3 application.In this class you can upload multiple file on server.You can call this class in flex or use same class in ur flex application.
package { import flash.display.Sprite; import flash.text.TextField; import flash.events.Event; import flash.events.MouseEvent; import flash.net.FileReference; import flash.net.FileReferenceList; public class fileReferenceList extends Sprite { private var _browse:TextField = new TextField(); private var _fileReferenceList:FileReferenceList; public function fileReferenceList() { _browse.htmlText = "<u><b>click</b> to browse files</u>"; _browse.addEventListener(MouseEvent.CLICK, clickHandler); addChild(_browse); _fileReferenceList = new FileReferenceList(); _fileReferenceList.addEventListener(Event.SELECT, selectHandler); _fileReferenceList.addEventListener(Event.CANCEL, cancelHandler); } private function clickHandler(event:MouseEvent):void { _fileReferenceList.browse(); } private function selectHandler(event:Event):void { _output.text = "Selected Files"; var file:FileReference; for(var i:Number = 0; i < _fileReferenceList.fileList.length; i++) { file = _fileReferenceList.fileList[i]; trace("\nName: "+ file.name); trace("\nSize: "+ file.size); trace("\nCreated On: "+ file.creationDate); trace("\nModified On: "+ file.modificationDate); trace("\n----------------------------------"); } } private function cancelHandler(event:Event):void { trace("Canceled"); } } } I hope it will help you On Mar 31, 2:37 pm, Gurnam Singh <saini.gur...@gmail.com> wrote: > if u hv any example please send it to me . please > > On Tue, Mar 31, 2009 at 3:04 PM, ManInAction <manesh.bahug...@gmail.com>wrote: > > > > > Hello, > > > You can use File Referrence.And when you will use upload property of > > file referrence it take complety path of ur file and > > send it to server whr you want. > > > On Mar 31, 11:40 am, Flex Baby <send2sivagan...@gmail.com> wrote: > > > hi, > > > i want to upload a file in flex. and i also want to take full file > > > path of that.any chance i get?or any other solution? > > > plz provide any sample to me. > > -- > Gurnam Singh --~--~---------~--~----~------------~-------~--~----~ 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 flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---