PDA

View Full Version : Air drag and drop images


aiborre
03-04-2009, 08:53 AM
Hey I am looking for a good tutorial on how to drag and drop images on to air, and uploaded the pictures to a folder, I have tried with this code but I can get I to work? Am I on the right track or??


stage.addEventListener(NativeDragEvent.NATIVE_DRAG _ENTER,onDragEnter)
stage.addEventListener(NativeDragEvent.NATIVE_DRAG _DROP, onDragDrop);

public function onDragEnter(e:NativeDragEvent):void{
NativeDragManager.acceptDragDrop(stage);
}
public function onDragDrop(e:NativeDragEvent):void{
var files:Object = e.clipboard.getData(ClipboardFormats.FILE_LIST_FOR MAT);
}