1 Reply Latest reply on Nov 24, 2010 1:00 PM by pseudohybriddesign

    progressBar problem

    pseudohybriddesign

      Hello,

       

      I'm working on an AIR application for splitting a very big  text file into 2 separate files. After the splitting I'm using the  following code to save the files locally:

       

      if(propValArr[j] >= minActivity && propValArr[j] <= maxActivity){
           sdfFile = File.desktopDirectory.resolvePath(outpathActive.text + "\\active.sdf");                  
           var sdfFileStream1:FileStream = new FileStream();
           sdfFileStream1.openAsync(sdfFile, FileMode.WRITE);
           sdfFileStream1.writeUTFBytes(actSDFStr);
           sdfFileStream1.close();
      }
      

       

      Since sometimes these text files which I want to save can be big, I want  to monitor the saving process using the progress bar.

       

      How to do this?  Is it possible?

       

      Thanks in advance,
      Nikola