0 Replies Latest reply on Oct 7, 2009 8:58 AM by PetrKucera

    Downloading multiple files (i.e. fileReferenceList)

    PetrKucera Level 1

      Hi,

       

           I any way in Flex 3 to download from server many files to local drive? When I tried code like this:

       

      private function init():void {url=urls[0];}

       

      private function downComplete(evt:Event):void {download();}

       

      private function download():void {

      ...

      fRef.addEventListener(Event.COMPLETE, downComplete);

      fRef.download(new URLRequest(url), fileName);

      i++;

      for(i<urls.length){url=urls[i];}}

       

      I get error like this: "Some actions, can beinvoked only by users actions, i.e. button click"

       

      Is it impossible with FlashPlayer10 and Flash SDK 3, or is any way?

       

      Thanks

       

           Petr