Does Air allow file downloads/transfers to desktop from inside app?

Hello,
I am looking into writing an air application that I intend to put onto a usb thumb drive. If a Mac or Pc user plugged the said usb drive into their computer, would the user of the app be able to easily download/transfer files directly onto their desktop from the app with a push of a button?
Secondly, would I be able to display a progress bar showing how much time is left in the download/transfer?
Lastly, if Air is bad choice for this, does anybody have any other recomendations?
Thank you all in advance!

Yes if you build your app with captive runtime you can put it on a thumb drive and copy anything anywhere you want.
You cannot get the progress of any given file's copyTo(), it does not support that event.  However if you have lots of files, you could simply count them and average.  The progress bar won't be compeltely accurate, but even on the native OS those progress bars are always wrong.  (like windows knows how long that folder copy is really going to take...)  You could also try to do something tricky like use File.download() from a URLRequest built on file://, but I'm not sure it would work.  If you played around with it, you probalby could.
If you have enough files, just count the files and make the progress bar be a % of the number of files transferred.
Also remember to copyToAsync() so that it runs in the background and your progress bar is smooth.
EDIT: please note that a captive runtime will be windows or mac specific (and wont run at all on linux).  As a result if you need to give your thumb drive to people with both OS's you'll have to bulid your application twice.  Also you'll have to have access to both a windows machine and a mac to do that, since you cannot publish for mac on windows and vice-versa.

Similar Messages

Maybe you are looking for

  • Photoshop cs6 is not working in windows 7 64 bit while all other cs6 programs are working.. what should I do make it work

    hi guys, My photoshop cs6 is not working in windows 7 64 bit while all other cs6 programs are working.. what should I do make it work? My OS is windows 7 RAM - 8gb HDD - 1 TB

  • Anti virus

    I own Bb Curve 8520. Does it come with antivirus installed? Or do I have to install one and if so, please advise. Solved! Go to Solution.

  • I have a question about the filter hud in aperture 3.

      I have a large project (4000 images) and I can't display filter hud.  The hud shows in all my other projects (including albums that are part of this project) but not when I am at the project level.  can anyone suggest a solution?

  • Abt ODS

    Hi, I have a doubt in ODS, I know that there r 5 images in changelog table, but whenever I open, I am able to see only before image with symbol 'N'and After image with symbol 'X'. What abt the other 3 images, how we can view them. pls clarify my doub

  • OSB inbound http webservice integration with OAM

    Hi, I have a requirment where I need to protect OSB inbound http webservice with OAM. So that OAM can fetch the user details from webservice SOAP header & authenticate the user against LDAP. Can someone tell me if this is a feasible approach. If yes,