2 Replies Latest reply on Aug 9, 2010 9:55 PM by Balakrishnan V

    FileReference.load is not sending events.

    craneium

      I am uploading multiple files, but before i send them to the server i want to read them into memory, easly done with FileReference.load(), or so i thought, i am not getting any response from the "load()" call, not on start, not on complete, and not progressevent. what have i missed.

       

      private function RunOpp():void{

                          FileRefs = new FileReferenceList();

                          FileRefs.addEventListener(Event.SELECT,upLoadtoMe);

                          FileRefs.addEventListener(Event.CANCEL,UploadCancel);

                          FileRefs.browse();

                  }

       

      private function upLoadtoMe(evt:Event):void{
                      Filey = new FileReference;
                      Filey.addEventListener(Event.COMPLETE,SendToDLL);
                      Filey.addEventListener(Event.OPEN,setupprog);
                      Filey.addEventListener(ProgressEvent.PROGRESS,FileLoadProgress);
                      Filey.addEventListener(IOErrorEvent.IO_ERROR,gotError);
                      Filey = FileRefs.fileList[i];
                      Filey.load()
                  }