[AIR] 使用操作系统默认应用程序打开文件
AIR 2.0及以上提供了非常简单易用的API让你使用操作系统所定义的关联应用程序打开文件。
这使得使用AIR开发基于“文件管理器”的应用称为可能
用法如下:
var file:File = File.desktopDirectory.resolvePath("test.txt");//桌面上的一个txt文件 file.openWithDefaultApplication();
------------------------------------------------------------------
Always put yourself in the other's shoes.If you feel that it hurts you,it probably hurts others,too.------------------------------------------------------------------