I am trying to add dragproxy to dragmanager.dodrag method but the drag
proxy does not appear. The same code seems to be working in the web
version. PF the code below which is called on image mouse move event:
private function Img_mouseMoveHandler(event:MouseEvent):void
{
// Get the drag initiator component from the event object.
var dragInitiator:Image = Image(event.currentTarget);
// Create a DragSource object.
var ds:DragSource = new DragSource();
// Add the data to the object.
ds.addData(dragInitiator, 'img');
//Create a copy of the image to use as a drag proxy.
var dragProxy : Image = new Image ();
dragProxy.source = dragInitiator.source;
dragProxy.width = dragInitiator.width;
dragProxy.height = dragInitiator.height;
DragManager.doDrag(dragInitiator, ds, event, dragProxy);
}