Stefan Henze
Stefan Henze

Reputation: 2731

How can I drag an eMail from Outlook into an Adobe AIR application

This is a quiestion concerning both, Adobe AIR and MS Outlook.

I'd like to drag an eMail from Outlook into an AIR application. I want the following data to be transferred into the AIR application:

Some windows applications do this, like My Life Organized or Linker. Is this possible in any way for AIR? I'm pretty sure I need not only the AIR application but also some windows app or Outlook plugin to achieve this. Any ideas?

Upvotes: 2

Views: 1412

Answers (2)

steelheart
steelheart

Reputation: 46

No, thers no way to drag and drop an attachment file from an outlook email

@Stefan: AIR dosn't allow dragging an eMail from Outlook into an AIR application. Instead you recieve a String, containing some mail infos like subject, size, recipient... No content, no attachments. That's a pity... Please feel free to correct me, but I have searched for a solution for a while and no solution found.... Greetings steelheart

Upvotes: 3

Richard Szalay
Richard Szalay

Reputation: 84784

  • Basically you listen to NativeDragEvent.NATIVE_DRAG_ENTER, NATIVE_DRAG_DROP and NATIVE_DRAG_EXIT on the UI element that will receive the drop.
  • All three of these events are raised with a NativeDragEvent, through which you can access data in various formats via event.clipboard.getData(), passing in a format specified by ClipboardFormats (eg. ClipboardFormats.FILE_LIST_FORMAT)
  • In NATIVE_DRAG_ENTER, you can accept/reject the drag operation via the static methods on NativeDragManager

The classes you need are all in the flash.desktop package. Just experiment with various ClipboardFormats until you see the data you need.

Upvotes: 5

Related Questions