0 Replies Latest reply on Aug 18, 2010 1:27 PM by MyBrainHurts777

    File Locking


      Hello all:


      I have a directory with several zipped files.  I am looping through the zipped files and HTTPing them to a remote server using URLRequest. So far so good.  Now I want to delete the file I just sent.  If I just try to delete them in the loop using someFileName.deleteFile() I get an error as Flex is trying to delete before the file transfer is complete.  So I want to monitor the Event.COMPLETE event and only delete the file when it is true.


      But I cannot seem to figure out a way to do this.  It seems I need to pass in the file name for the current file in the loop to the addEventListener function but how?


      All brilliance appreciated - thanks!