开发者

Downloading and saving files with AIR for iOs

For a project we need to download and save pdf files on an IPAD device 开发者_如何学运维for offline use through an AIR for iOs application. After a lot of searching I haven't found much information on this subject. My question is, can it be done, and if so, can you provide us with some pointers to lead us in the right direction.

Thanks for your time!


Sure, first you check if you can access the web - can use a class like air.net.URLMonitor, if you can you can set up a URLStream instance.

You get data while its downloading the file using the progress event, write that out to a File instance using the FileStream class.

To display the PDF file you can use a StageWebView or HTMLLoader.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜