progressBar problem

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

Anyone?

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/FileStream.html#event:outputProgress