Skip navigation
NandinhuuOliveira
Currently Being Moderated

Download files without PHP or another external programming

Jun 13, 2012 1:46 PM

Hi,

 

I have a question that is leaving me sleep every night.

 

How to download a file without using PHP or another programming language, only using Flash CS5.5 and ActionScript 3.

 

This is possible?

 

Fernando Oliveira

AS3 Programming.

 
Replies
  • Currently Being Moderated
    Jun 13, 2012 2:18 PM   in reply to NandinhuuOliveira

    If your browser does not recognize the extention of a file, instead of opening it starts downloading it.

    example:

    if you use a link like this http://domain.com/image.jpg then will open the image
    but if you use
    http://domain.com/program.exe page then start the download

    The advantage of PHP is that although it is an image you can do to start a download

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 3:24 PM   in reply to NandinhuuOliveira

    If I understand you right you want all of these desktops (170?) to be able to download some files specified in an XML file.

     

    To use the local filesystem (e.g. save a file) you will need to make an executable. A user loading a SWF in their browser will never have access to downloading and saving a file to the users computer. Flash is designed that way, so you're not worried a website is saving files on your computer (beyond innocent cookies). 

     

    You can use Adobe AIR which can save files or use a SWF projector extender like MDM Zinc or Screentime's mProjector. They can do as much and sometimes a lot more than AIR. I use all 3 and I download files in apps (AIR) and desktop (MDM Zinc). All 3 executables can be made for Windows, OSX and Linux. 

     

    Is an executable acceptable?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 4:22 PM   in reply to NandinhuuOliveira

    Feel free to post any questions saving local files on those methods.

     

    You're welcome and good luck!


    NandinhuuOliveira wrote:

     

    I'll see how it works.


    Thank you ..

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points