Hi All,
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);
}
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.