3 Replies Latest reply on Feb 9, 2011 3:45 AM by vamsikrishna@123

    Problem with URLRequest in Flex 3


      Hi All,



           I am using Flex and Java and displaying request parameters in servlet. Using the below code i can able to get only the "name2" parameter but "name" and "name1" parameters are not getting displayed. Please help me on this.



      private var fileRef:FileReference;

      private var urlVars:URLVariables;

      private var urlReq:URLRequest;


      private function start():void {




      private function upload():void {

           fileRef = new FileReference();

           fileRef.addEventListener(Event.SELECT, fileRef_select);


           urlVars = new URLVariables("name=Franklin");

           urlVars.name1 = "xxxx";


           urlReq = new URLRequest();

           urlReq.method = URLRequestMethod.POST;

           urlReq.data = urlVars;

           urlReq.url = "../FileUploadServlet.do?name2=sample";



      private function fileRef_select(evt:Event):void {