如何在AIR应用程序中使用DragDrop?

时间:2022-05-08 22:59:59

I am building an AIR application which opens some specific documents. I want to enable dragdrop on this application. So that when application is running and user drag a file and drop that file on the application window, the application must respond to that event and must be able to perform some action. How can I do this? Thanks

我正在构建一个AIR应用程序,它打开一些特定的文档。我想在这个应用程序上启用dragdrop。因此,当应用程序运行并且用户拖动文件并将该文件放在应用程序窗口上时,应用程序必须响应该事件并且必须能够执行某些操作。我怎样才能做到这一点?谢谢

2 个解决方案

#1


0  

I believe what you are looking for is a NativeDrag manager with specific settings in application.xml

我相信你要找的是一个NativeDrag管理器,在application.xml中有特定的设置

You can see more details at http://raghuonflex.wordpress.com/2007/12/17/drag-drop-of-a-file-into-an-air-app-beta-3/

您可以在http://raghuonflex.wordpress.com/2007/12/17/drag-drop-of-a-file-into-an-air-app-beta-3/查看更多详细信息。

#2


1  

I believe you're looking for the Invoke event.

我相信你正在寻找Invoke活动。

#1


0  

I believe what you are looking for is a NativeDrag manager with specific settings in application.xml

我相信你要找的是一个NativeDrag管理器,在application.xml中有特定的设置

You can see more details at http://raghuonflex.wordpress.com/2007/12/17/drag-drop-of-a-file-into-an-air-app-beta-3/

您可以在http://raghuonflex.wordpress.com/2007/12/17/drag-drop-of-a-file-into-an-air-app-beta-3/查看更多详细信息。

#2


1  

I believe you're looking for the Invoke event.

我相信你正在寻找Invoke活动。