1 Reply Latest reply on Mar 19, 2011 8:19 AM by Ladislav Navrátil

    File problem

    Ladislav Navrátil

      Hi all,


      i would like to ask for some informations about works with files.


      User of my application should select files from his computer(probably by file.browseForOpenMultiple), than i would like to copy selected files to applicationStorageDirectory.


      But when i am trying do that by:


      var file:File = new File();

      file.addEventListener(FileListEvent.SELECT_MULTIPLE, onSelected);



      function onSelected(event:FileListEvent):void{

           var destinationFile:File = File.applicationStorageDirectory;

           for(var i:Number = 0; i < event.files.length; i++){






      it doesnt works.


      Thanks for your help.