Actionscript 3 air应用程序的文件类型关联

Actionscript 3 air应用程序的文件类型关联,actionscript-3,apache-flex,air,Actionscript 3,Apache Flex,Air,我正在创建一个air应用程序,当文件被放入应用程序图标时,它会显示文件的路径。在windows中工作得很好,但在Mac中,应用程序图标不接受在其上放置任何文件。因此,为了进行测试,我使用应用程序描述符向应用程序注册了一个.txt文件 myAIREditor.Text 文本 myAIREditor文本描述文件 文本/纯文本 唉,文本文件可以放在应用程序图标上,并显示路径。现在我是否必须为所有100亿种文件类型执行此操作 是否有一种方法可以让我的应用程序接受任何类型的文件,无论其扩展名是什么?

我正在创建一个air应用程序,当文件被放入应用程序图标时,它会显示文件的路径。在windows中工作得很好,但在Mac中,应用程序图标不接受在其上放置任何文件。因此,为了进行测试,我使用应用程序描述符向应用程序注册了一个.txt文件


myAIREditor.Text
文本
myAIREditor文本描述文件
文本/纯文本
唉,文本文件可以放在应用程序图标上,并显示路径。现在我是否必须为所有100亿种文件类型执行此操作


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

如果不说你是如何处理拖放操作的,那么就不可能提供帮助


尝试检查它是否适用于您的情况。

我正在使用NativeApplication.NativeApplication.addEventListener(InvokeeEvent.INVOKE,onInvokeEvent)调用应用程序;
        <!-- 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>