3 Replies Latest reply on Apr 1, 2008 12:04 AM by Dave 81


    Dave 81
      Dear all, reading the file "DEVELOPING ADOBE® AIR™ APPLICATIONS WITH ADOBE® FLEX™ 3", I found this example (page 170):
      If you use the openAsync() method to open the file for asynchronous file operations, set up event listeners to handle
      the asynchronous events:
      var myFile:File = File.documentsDirectory.resolvePath("AIR Test/test.txt");
      var myFileStream:FileStream = new FileStream();
      myFileStream.addEventListener(Event.COMPLETE, completeHandler);
      myFileStream.addEventListener(ProgressEvent.PROGRESS, progressHandler);
      myFileStream.addEventListener(IOErrorEvent.IOError, errorHandler);
      myFileStream.open(myFile, FileMode.READ);

      Isn't this last operation used to open file synchronously?