简体   繁体   English

如何在我的AIR应用程序中附加文件扩展名,该文件扩展名默认情况下是通过AIR应用程序打开的?

[英]How to attach file extension with my AIR application that by default open with my AIR application?

I made an AIR application that parses some specific files. 我制作了一个AIR应用程序,用于解析一些特定文件。 I am using flex builder 4.5 and SDK 3.6. 我正在使用Flex Builder 4.5和SDK 3.6。 I want to attach Icons with those files and when I double click those files they should open with my application. 我想在这些文件上附加图标,当我双击那些文件时,它们应随我的应用程序一起打开。 How can I do this? 我怎样才能做到这一点?

Thanks 谢谢

In the Application Descriptor file (look in your project structure for a file named like your application, plus -app.xml as an ending) find the tag fileTypes . 在“ 应用程序描述符”文件中(在项目结构中查找名为应用程序的文件,加上-app.xml作为结尾),找到标记fileTypes If you uncomment it, you can specify which file types you application handles, and which icons to show for those files. 如果取消注释,则可以指定应用程序处理的文件类型,以及为这些文件显示的图标。

We can not do this using SDK 3.6 in flex builder 4.5. 我们无法在Flex Builder 4.5中使用SDK 3.6来执行此操作。 To do this we need to use SDK 4.5. 为此,我们需要使用SDK 4.5。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM