0 Replies Latest reply on Feb 27, 2009 5:57 AM by gianiaz

    File size is often wrong

      Hi, Iìm tryng to download a list of zip files from my server with air, and decompress locally.

      I wrote a class that is almost identical to the code you can find here: http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7d53. html

      If you take a look on the code you can see that to work the code does a cycle:

      while (zStream.position < zfile.size)

      I can't understand why, but when I call the class inside a cycle sometimes at the 2nd, sometimes at the 3rd file the value returned by zfile.size is wrong and I got an actionscript error cause it fails to stop before the end of file.

      Someone can help me?