航空应用程序的文件类型关联

时间:2013-02-05 20:32:26

标签: actionscript-3 flex air

我正在创建一个air应用程序,它将文件放入应用程序图标时显示文件的路径。在Windows中运行良好,但在Mac中,应用程序图标不接受任何文件放在它上面。因此,为了测试,我使用应用程序描述符将.txt文件注册到应用程序

        <!-- The name that the system displays for the registered file type. Required. -->
        <name>myAIREditor.Text</name>

        <!-- The extension to register. Required. -->
        <extension>txt</extension>

        <!-- The description of the file type. Optional. -->
        <description>myAIREditor text description file</description>

        <!-- The MIME content type. -->
        <contentType>text/plain</contentType>

        <!-- The icon to display for the file type. Optional. -->
        <!-- <icon>
            <image16x16></image16x16>
            <image32x32></image32x32>
            <image48x48></image48x48>
            <image128x128></image128x128>
        </icon> -->

    </fileType>

唉,文本文件可以放在应用程序图标上,然后显示路径。现在我必须为所有100亿个文件类型执行此操作吗?

有没有办法可以让我的应用程序接受任何类型的文件,无论扩展名是什么?

1 个答案:

答案 0 :(得分:0)

如果没有说明你是如何准确地拖拽/拖放那么就不可能提供帮助。

请尝试查看this helpful document以查看它是否适用于您的情况。