Is it possible to drag an image from the inside of an Adobe Air app to the desktop or a folder? This code I'm using is only able to drag an image from app to app: (I'm using Windows XP)
myObject.addEventListener(MouseEvent.MOUSE_DOWN, mDown);
function mDown(MouseEvent):void
{
var bitmapData:BitmapData = new BitmapData(myObject.width,myObject.height);
bitmapData.draw(myObject);
var myClip:Clipboard = new Clipboard();
myClip.setData(ClipboardFormats.BITMAP_FORMAT, bitmapData);
var objPoint:Point = new Point( - myObject.mouseX, - myObject.mouseY);
NativeDragManager.doDrag(myObject, myClip, bitmapData, objPoint);
}
Is there something that needs to be added? Thanks Uli
you may need to use the URLFilePromise
class
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.