You need to drag a file reference from your application to the desktop.
to control the drag-in gesture in your AIR application.
In ActionScript, you manage drag and drop gestures with the
NativeDragManager class. To support a
drag-out gesture specifically, you use the
doDrag static method of the
NativeDragManager class. You can pass in five
parameters; the first two are required:
The first required parameter,
dragInitiator, is the object that initiated
the drag action. It is required to be an
InteractiveObject or a class that inherits
from it. The second parameter,
clipboard, is an instance of the
Clipboard class or a class inheriting from the
Clipboard class. In this case, you
actually need to instantiate an instance of the
Clipboard class and add the data that needs to
be passed with the drag-out gesture.
In this example, the user interface consists of a label, a button, and a list:
<mx:Label id="directoryName" fontSize="20" fontWeight="bold" /> <mx:Button ...