2 Replies Latest reply on Sep 20, 2010 9:47 PM by Mainmanian

    AsyncToken's progress

    Mainmanian Level 1

      In my application, I upload files using AsyncToken and trap the result using AsyncResponder. Is there a way to monitor the progress of the file upload  using this method? The code snippet is below

       

                             var token:AsyncToken = AsyncToken(FileUtility.doUpload(data,refUploadFile.name));
                             token.addResponder(new AsyncResponder(asyncResult,asyncFault));

       

                  private function asyncResult(event:ResultEvent,token:AsyncToken):void {
                      if(event.result.toLowerCase()=="success"){
                          trace ("file upload succeeded");
                      }
                  }

       

      For an especially large file, it is important for me to monitor the upload progress. Thanks for your help. Cheers, Ramesh