Simple Drag and Drop

Simple drag and drop example

This is a straight forward article on coding up a drag and drop application in AIR, along with the actual application that can be downloaded (with source).

This is a beta 1 example that may not work with the beta 2 runtime as it looks like changes have been made to the native drag and drop libaries - i will test and update when I can.

The example is very simple and has commenting in the source code on what is being done.

Overview
The steps required for this drag and drop example are:

There is a lot of stuff missing, such as checking filetypes, handling more that one file etc, etc. But the the code here is just an example of getting drag and drop working so it has been kept as simple as possible.

The attached files that can be downloaded are as follows

To run and install the AIR application you will need the appropriate runtime. see http://labs.adobe.com/downloads/air.html for more details.