Download a file with Adobe AIR

后端 未结 5 2109
庸人自扰
庸人自扰 2020-12-05 07:52

How do I download a file from the internet in a Flex based AIR application.

I tried using a file with url set to the address, but I got a file does not exist error

5条回答
  •  失恋的感觉
    2020-12-05 08:27

    Please also check the URLLoader class for downloading files. An excellent example is here: http://www.adobe.com/devnet/air/flex/articles/exploring_file_capabilities.html

    This worked out to be very fast for me, as compared to the URLStream class, which was taking ages, and a lot of CPU to download files.

提交回复
热议问题